@chorus-aidlc/chorus-openclaw-plugin 0.2.5 → 0.3.0

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.5",
3
+ "version": "0.3.0",
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",
@@ -432,4 +432,28 @@ export function registerCommonTools(api: any, mcpClient: ChorusMcpClient) {
432
432
  return JSON.stringify(result, null, 2);
433
433
  },
434
434
  });
435
+
436
+ api.registerTool({
437
+ name: "chorus_search",
438
+ description: "Search across tasks, ideas, proposals, documents, projects, and project groups.",
439
+ parameters: {
440
+ type: "object",
441
+ properties: {
442
+ query: { type: "string", description: "Search query (matches title, description, content)" },
443
+ scope: { type: "string", enum: ["global", "group", "project"], description: "Search scope (default: global)" },
444
+ scopeUuid: { type: "string", description: "Project group UUID (when scope=group) or project UUID (when scope=project)" },
445
+ entityTypes: { type: "array", items: { type: "string", enum: ["task", "idea", "proposal", "document", "project", "project_group"] }, description: "Entity types to search (default: all). Example: [\"task\", \"idea\"]" },
446
+ },
447
+ required: ["query"],
448
+ additionalProperties: false,
449
+ },
450
+ async execute(_id: string, { query, scope, scopeUuid, entityTypes }: { query: string; scope?: string; scopeUuid?: string; entityTypes?: string[] }) {
451
+ const args: Record<string, unknown> = { query };
452
+ if (scope) args.scope = scope;
453
+ if (scopeUuid) args.scopeUuid = scopeUuid;
454
+ if (entityTypes) args.entityTypes = entityTypes;
455
+ const result = await mcpClient.callTool("chorus_search", args);
456
+ return JSON.stringify(result, null, 2);
457
+ },
458
+ });
435
459
  }