@covibes/zeroshot 2.0.0 → 2.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [2.1.0](https://github.com/covibes/zeroshot/compare/v2.0.0...v2.1.0) (2025-12-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * add first-run wizard and update checker ([c93cdfe](https://github.com/covibes/zeroshot/commit/c93cdfec65f05ce5b1ed4583b5ec0a23fcf56f31)), closes [#17](https://github.com/covibes/zeroshot/issues/17)
7
+
1
8
  # [2.0.0](https://github.com/covibes/zeroshot/compare/v1.5.0...v2.0.0) (2025-12-29)
2
9
 
3
10
 
@@ -40,7 +40,7 @@
40
40
  "topic": "ISSUE_OPENED",
41
41
  "logic": {
42
42
  "engine": "javascript",
43
- "script": "return message.sender === 'system';"
43
+ "script": "return message.sender === 'system' && !message.metadata?._republished;"
44
44
  },
45
45
  "action": "execute_task"
46
46
  }
@@ -50,7 +50,7 @@
50
50
  "action": "publish_message",
51
51
  "transform": {
52
52
  "engine": "javascript",
53
- "script": "const { complexity, taskType, reasoning } = result;\nconst taskText = triggeringMessage.content?.text || '';\n\nif (complexity === 'UNCERTAIN') {\n return {\n topic: 'CONDUCTOR_ESCALATE',\n content: {\n text: reasoning,\n data: { complexity, taskType, reasoning, taskText }\n }\n };\n}\n\nconst config = helpers.getConfig(complexity, taskType);\n\nreturn {\n topic: 'CLUSTER_OPERATIONS',\n content: {\n text: `[${complexity}:${taskType}] ${reasoning}`,\n data: {\n complexity,\n taskType,\n operations: [\n { action: 'load_config', config },\n { action: 'publish', topic: 'ISSUE_OPENED', content: { text: taskText } }\n ]\n }\n }\n};"
53
+ "script": "const { complexity, taskType, reasoning } = result;\nconst taskText = triggeringMessage.content?.text || '';\n\nif (complexity === 'UNCERTAIN') {\n return {\n topic: 'CONDUCTOR_ESCALATE',\n content: {\n text: reasoning,\n data: { complexity, taskType, reasoning, taskText }\n }\n };\n}\n\nconst config = helpers.getConfig(complexity, taskType);\n\nreturn {\n topic: 'CLUSTER_OPERATIONS',\n content: {\n text: `[${complexity}:${taskType}] ${reasoning}`,\n data: {\n complexity,\n taskType,\n operations: [\n { action: 'load_config', config },\n { action: 'publish', topic: 'ISSUE_OPENED', content: { text: taskText }, metadata: { _republished: true } }\n ]\n }\n }\n};"
54
54
  }
55
55
  }
56
56
  }
@@ -113,7 +113,7 @@
113
113
  "action": "publish_message",
114
114
  "transform": {
115
115
  "engine": "javascript",
116
- "script": "const { complexity, taskType, reasoning } = result;\n\nlet taskText = triggeringMessage.content?.data?.taskText || '';\nif (!taskText) {\n taskText = triggeringMessage.content?.text || '';\n}\n\nconst config = helpers.getConfig(complexity, taskType);\n\nreturn {\n topic: 'CLUSTER_OPERATIONS',\n content: {\n text: `Senior: [${complexity}:${taskType}] ${reasoning}`,\n data: {\n complexity,\n taskType,\n operations: [\n { action: 'load_config', config },\n { action: 'publish', topic: 'ISSUE_OPENED', content: { text: taskText } }\n ]\n }\n }\n};"
116
+ "script": "const { complexity, taskType, reasoning } = result;\n\nlet taskText = triggeringMessage.content?.data?.taskText || '';\nif (!taskText) {\n taskText = triggeringMessage.content?.text || '';\n}\n\nconst config = helpers.getConfig(complexity, taskType);\n\nreturn {\n topic: 'CLUSTER_OPERATIONS',\n content: {\n text: `Senior: [${complexity}:${taskType}] ${reasoning}`,\n data: {\n complexity,\n taskType,\n operations: [\n { action: 'load_config', config },\n { action: 'publish', topic: 'ISSUE_OPENED', content: { text: taskText }, metadata: { _republished: true } }\n ]\n }\n }\n};"
117
117
  }
118
118
  }
119
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@covibes/zeroshot",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Multi-agent orchestration engine for Claude - cluster coordinator and CLI",
5
5
  "main": "src/orchestrator.js",
6
6
  "bin": {
@@ -1658,7 +1658,7 @@ Continue from where you left off. Review your previous output to understand what
1658
1658
  * @private
1659
1659
  */
1660
1660
  _opPublish(cluster, op, sender) {
1661
- const { topic, content } = op;
1661
+ const { topic, content, metadata } = op;
1662
1662
  if (!topic) {
1663
1663
  throw new Error('publish operation missing topic');
1664
1664
  }
@@ -1669,6 +1669,7 @@ Continue from where you left off. Review your previous output to understand what
1669
1669
  sender: op.sender || sender,
1670
1670
  receiver: op.receiver || 'broadcast',
1671
1671
  content: content || {},
1672
+ metadata: metadata || null,
1672
1673
  });
1673
1674
 
1674
1675
  this._log(` ✓ Published to topic: ${topic}`);