oh-my-opencode-cohub 1.12.3 → 1.12.5
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/dist/cli/config-io.d.ts.map +1 -1
- package/dist/cli/index.js +9 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-io.d.ts","sourceRoot":"","sources":["../../src/cli/config-io.ts"],"names":[],"mappings":"AAkCA,2CAA2C;AAC3C,wBAAgB,yBAAyB,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAajF;AAED,sCAAsC;AACtC,wBAAgB,oBAAoB,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAa5E;AAOD;;wDAEwD;AACxD,wBAAgB,mBAAmB,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"config-io.d.ts","sourceRoot":"","sources":["../../src/cli/config-io.ts"],"names":[],"mappings":"AAkCA,2CAA2C;AAC3C,wBAAgB,yBAAyB,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAajF;AAED,sCAAsC;AACtC,wBAAgB,oBAAoB,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAa5E;AAOD;;wDAEwD;AACxD,wBAAgB,mBAAmB,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAiE3E;AA+ED,4DAA4D;AAC5D,wBAAgB,kBAAkB,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CA2G1E;AAED,8BAA8B;AAC9B,wBAAgB,cAAc,IAAI;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CA6GzE"}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// package.json
|
|
3
|
-
var version = "1.12.
|
|
3
|
+
var version = "1.12.5";
|
|
4
4
|
|
|
5
5
|
// src/cli/config-io.ts
|
|
6
6
|
import * as fs from "node:fs";
|
|
@@ -98,6 +98,12 @@ function registerCoHubAgents() {
|
|
|
98
98
|
delete config.agent;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
+
config.agent = config.agent ?? {};
|
|
102
|
+
config.agent["co-orchestrator"] = {
|
|
103
|
+
mode: "primary",
|
|
104
|
+
description: "纯调度者——编排任务、委派执行"
|
|
105
|
+
};
|
|
106
|
+
needUpdate = true;
|
|
101
107
|
if (!config.default_agent) {
|
|
102
108
|
config.default_agent = "co-orchestrator";
|
|
103
109
|
needUpdate = true;
|
|
@@ -110,7 +116,7 @@ function registerCoHubAgents() {
|
|
|
110
116
|
msgParts.push(`清理 ${cleaned} 个旧模板条目`);
|
|
111
117
|
if (preserved > 0)
|
|
112
118
|
msgParts.push(`保留 ${preserved} 个含自定义字段的条目`);
|
|
113
|
-
msgParts.push("Agent
|
|
119
|
+
msgParts.push("Agent 定义已由插件运行时接管(参照 slim 架构)");
|
|
114
120
|
return { success: true, message: `✓ ${msgParts.join(",")}` };
|
|
115
121
|
}
|
|
116
122
|
var COHUB_CONFIG_PATH = path.join(os.homedir(), ".config", "opencode", "oh-my-opencode-cohub.json");
|
|
@@ -391,7 +397,7 @@ async function main() {
|
|
|
391
397
|
console.log(`
|
|
392
398
|
✅ CoHub 安装完成!`);
|
|
393
399
|
console.log(' 重启 OpenCode 后,TAB 选择 "co-orchestrator" 开始纯调度模式。');
|
|
394
|
-
console.log("
|
|
400
|
+
console.log(" 12 个 co-* 代理由插件运行时管理。");
|
|
395
401
|
console.log(`
|
|
396
402
|
${"=".repeat(60)}`);
|
|
397
403
|
console.log("\uD83D\uDCCB 已自动生成默认代理模型配置。如需自定义,可复制以下文案让 AI 帮你优化:");
|