@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 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);
@@ -2,7 +2,7 @@
2
2
  "id": "recipes",
3
3
  "name": "Recipes",
4
4
  "description": "Markdown recipes that scaffold agents and teams (workspace-local).",
5
- "version": "0.2.16",
5
+ "version": "0.2.17",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiggai/recipes",
3
- "version": "0.2.16",
3
+ "version": "0.2.17",
4
4
  "description": "ClawRecipes plugin for OpenClaw (markdown recipes -> scaffold agents/teams)",
5
5
  "main": "index.ts",
6
6
  "type": "commonjs",