@forloop-cc/forloop-opencode-plugin-planner 2.2.10 → 2.2.11
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.
|
|
4
|
+
"version": "2.2.11",
|
|
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",
|
|
@@ -309,10 +309,12 @@ export class ForLoopAPIClient {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
-
async addStoryComment(storyId: number, body: string): Promise<any> {
|
|
312
|
+
async addStoryComment(storyId: number, body: string, authorAgentKey?: string): Promise<any> {
|
|
313
|
+
const payload: Record<string, unknown> = { body };
|
|
314
|
+
if (authorAgentKey) payload.authorAgentKey = authorAgentKey;
|
|
313
315
|
return this.request(`/api/opencode/stories/${storyId}/comments`, {
|
|
314
316
|
method: 'POST',
|
|
315
|
-
body: JSON.stringify(
|
|
317
|
+
body: JSON.stringify(payload),
|
|
316
318
|
});
|
|
317
319
|
}
|
|
318
320
|
|