@forloop-cc/forloop-opencode-plugin-planner 2.2.16 → 2.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@forloop-cc/forloop-opencode-plugin-planner",
4
- "version": "2.2.16",
4
+ "version": "2.2.17",
5
5
  "description": "ForLoop integration plugin for opencode — Sprint, story, and agent tools for the ForLoop platform",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -111,9 +111,15 @@ function createCreatorGenerateTool(client: ForLoopAPIClient) {
111
111
  storyId: args.storyId,
112
112
  });
113
113
 
114
+ // The ECS pipeline (EventBridge → SFN → ECS) does not carry `metadata`,
115
+ // so the Creator agent only ever sees the `message`. Bake the storyId into
116
+ // the message so the Creator can forloopContextFetch the correct story.
117
+ const baseMessage = args.message || 'Generate the files described in the assigned story';
118
+ const message = `${baseMessage}\n\nTarget story ID: ${args.storyId}`;
119
+
114
120
  const response = await client.chatWithAI({
115
121
  sprintId: args.sprintId,
116
- message: args.message,
122
+ message,
117
123
  selectedAgentKey: 'forLoopCreator',
118
124
  type: 'creator.generate',
119
125
  metadata: { channel: 'creator_generate', storyId: args.storyId },