@jiggai/recipes 0.2.16 → 0.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +11 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -2282,6 +2282,17 @@ const recipesPlugin = {
|
|
|
2282
2282
|
const teamMd = `# ${teamId}\n\nShared workspace for this agent team.\n\n## Folders\n- inbox/ — requests\n- outbox/ — deliverables\n- shared-context/ — curated shared context + append-only agent outputs\n- shared/ — legacy shared artifacts (back-compat)\n- notes/ — plan + status\n- work/ — working files\n`;
|
|
2283
2283
|
await writeFileSafely(teamMdPath, teamMd, options.overwrite ? "overwrite" : "createOnly");
|
|
2284
2284
|
|
|
2285
|
+
// Persist provenance (parent recipe) for UIs like ClawKitchen.
|
|
2286
|
+
// This avoids brittle heuristics like teamId==recipeId guessing.
|
|
2287
|
+
const teamMetaPath = path.join(teamDir, "team.json");
|
|
2288
|
+
const teamMeta = {
|
|
2289
|
+
teamId,
|
|
2290
|
+
recipeId: recipe.id,
|
|
2291
|
+
recipeName: recipe.name ?? "",
|
|
2292
|
+
scaffoldedAt: new Date().toISOString(),
|
|
2293
|
+
};
|
|
2294
|
+
await writeJsonFile(teamMetaPath, teamMeta);
|
|
2295
|
+
|
|
2285
2296
|
if (options.applyConfig) {
|
|
2286
2297
|
const snippets: AgentConfigSnippet[] = results.map((x: any) => x.next.configSnippet);
|
|
2287
2298
|
await applyAgentSnippetsToOpenClawConfig(api, snippets);
|
package/openclaw.plugin.json
CHANGED