Adopt standalone package manifest and dependency lock

This commit is contained in:
Timothy J. Aveni
2026-09-05 18:43:41 -07:00
parent 7e4c51b815
commit ec604045df
6 changed files with 32 additions and 21 deletions
+5 -7
View File
@@ -11,15 +11,13 @@ export const source = async () => await fs.readFile(componentSourcePath, "utf8")
export const createComponent = (context: RuntimeContext) => context.objectId;
export const props = derived(async (context: RuntimeContext) => {
const projects = await context.edge("port:project-react:subject").resolve();
if (projects.length !== 1) {
throw new Error(`Project component ${context.objectId} has ${projects.length} subjects`);
}
const named = context.interface("port:project-react:named");
const tasks = context.interface("port:project-react:tasks");
return {
project_id: projects[0],
project_id: named.objectId,
component_id: context.objectId,
name: await context.state<string>("port:project-react:name").live(),
tasks: await context.edge("port:project-react:tasks").resolve(),
name: await named.live("operation:named:name:get"),
tasks: await tasks.invoke("operation:project-tasks:tasks:resolve"),
};
});