@chorus-aidlc/chorus-openclaw-plugin 0.2.1 → 0.2.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@chorus-aidlc/chorus-openclaw-plugin",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "OpenClaw plugin for Chorus AI-DLC collaboration platform — SSE real-time events + MCP tool integration",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -98,7 +98,7 @@ export function registerPmTools(api: any, mcpClient: ChorusMcpClient) {
98
98
  // 5. chorus_create_proposal
99
99
  api.registerTool({
100
100
  name: "chorus_create_proposal",
101
- description: "Create a Proposal container with optional document drafts and task drafts.",
101
+ description: "Create an empty Proposal container. Use chorus_add_document_draft and chorus_add_task_draft to populate it afterwards.",
102
102
  parameters: {
103
103
  type: "object",
104
104
  properties: {
@@ -107,19 +107,15 @@ export function registerPmTools(api: any, mcpClient: ChorusMcpClient) {
107
107
  inputType: { type: "string", description: 'Input source type: "idea" or "document"' },
108
108
  inputUuids: { type: "array", description: "Array of input UUIDs", items: { type: "string" } },
109
109
  description: { type: "string", description: "Proposal description" },
110
- documentDrafts: { type: "array", description: "Array of { type, title, content }", items: { type: "object" } },
111
- taskDrafts: { type: "array", description: "Array of { title, description?, priority?, storyPoints?, acceptanceCriteriaItems?, dependsOnDraftUuids? }", items: { type: "object" } },
112
110
  },
113
111
  required: ["projectUuid", "title", "inputType", "inputUuids"],
114
112
  additionalProperties: false,
115
113
  },
116
114
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
- async execute(_id: string, { projectUuid, title, inputType, inputUuids, description, documentDrafts, taskDrafts }: any) {
115
+ async execute(_id: string, { projectUuid, title, inputType, inputUuids, description }: any) {
118
116
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
119
117
  const args: Record<string, any> = { projectUuid, title, inputType, inputUuids };
120
118
  if (description !== undefined) args.description = description;
121
- if (documentDrafts !== undefined) args.documentDrafts = documentDrafts;
122
- if (taskDrafts !== undefined) args.taskDrafts = taskDrafts;
123
119
  const result = await mcpClient.callTool("chorus_pm_create_proposal", args);
124
120
  return JSON.stringify(result, null, 2);
125
121
  },