opencode-orchestrator 0.5.21 → 0.5.23
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/index.js +12 -9
- package/dist/shared/agent.d.ts +7 -7
- package/dist/tools/callAgent.d.ts +5 -5
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -9,13 +9,14 @@ import { createRequire } from "node:module";
|
|
|
9
9
|
|
|
10
10
|
// src/shared/agent.ts
|
|
11
11
|
var AGENT_NAMES = {
|
|
12
|
-
COMMANDER: "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
COMMANDER: "Commander",
|
|
13
|
+
// Capital C like Sisyphus
|
|
14
|
+
ARCHITECT: "Architect",
|
|
15
|
+
BUILDER: "Builder",
|
|
16
|
+
INSPECTOR: "Inspector",
|
|
17
|
+
RECORDER: "Recorder",
|
|
18
|
+
LIBRARIAN: "Librarian",
|
|
19
|
+
RESEARCHER: "Researcher"
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
// src/core/agents/consts/task-status.const.ts
|
|
@@ -16495,8 +16496,10 @@ var OrchestratorPlugin = async (input) => {
|
|
|
16495
16496
|
color: "#45B7D1"
|
|
16496
16497
|
}
|
|
16497
16498
|
};
|
|
16498
|
-
config2.command = { ...
|
|
16499
|
-
config2.agent = { ...
|
|
16499
|
+
config2.command = { ...existingCommands, ...orchestratorCommands };
|
|
16500
|
+
config2.agent = { ...existingAgents, ...orchestratorAgents };
|
|
16501
|
+
console.log(`[orchestrator] Registered agents: ${Object.keys(orchestratorAgents).join(", ")}`);
|
|
16502
|
+
console.log(`[orchestrator] Commander prompt length: ${(AGENTS.commander.systemPrompt || "").length}`);
|
|
16500
16503
|
},
|
|
16501
16504
|
// -----------------------------------------------------------------
|
|
16502
16505
|
// chat.message hook - runs when user sends a message
|
package/dist/shared/agent.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Agent names, types, and interfaces.
|
|
5
5
|
*/
|
|
6
6
|
export declare const AGENT_NAMES: {
|
|
7
|
-
readonly COMMANDER: "
|
|
8
|
-
readonly ARCHITECT: "
|
|
9
|
-
readonly BUILDER: "
|
|
10
|
-
readonly INSPECTOR: "
|
|
11
|
-
readonly RECORDER: "
|
|
12
|
-
readonly LIBRARIAN: "
|
|
13
|
-
readonly RESEARCHER: "
|
|
7
|
+
readonly COMMANDER: "Commander";
|
|
8
|
+
readonly ARCHITECT: "Architect";
|
|
9
|
+
readonly BUILDER: "Builder";
|
|
10
|
+
readonly INSPECTOR: "Inspector";
|
|
11
|
+
readonly RECORDER: "Recorder";
|
|
12
|
+
readonly LIBRARIAN: "Librarian";
|
|
13
|
+
readonly RESEARCHER: "Researcher";
|
|
14
14
|
};
|
|
15
15
|
export type AgentName = (typeof AGENT_NAMES)[keyof typeof AGENT_NAMES];
|
|
16
16
|
export interface AgentDefinition {
|
|
@@ -2,16 +2,16 @@ export declare const callAgentTool: {
|
|
|
2
2
|
description: string;
|
|
3
3
|
args: {
|
|
4
4
|
agent: import("zod").ZodEnum<{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Architect: "Architect";
|
|
6
|
+
Builder: "Builder";
|
|
7
|
+
Inspector: "Inspector";
|
|
8
|
+
Recorder: "Recorder";
|
|
9
9
|
}>;
|
|
10
10
|
task: import("zod").ZodString;
|
|
11
11
|
context: import("zod").ZodOptional<import("zod").ZodString>;
|
|
12
12
|
};
|
|
13
13
|
execute(args: {
|
|
14
|
-
agent: "
|
|
14
|
+
agent: "Architect" | "Builder" | "Inspector" | "Recorder";
|
|
15
15
|
task: string;
|
|
16
16
|
context?: string | undefined;
|
|
17
17
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
3
|
"displayName": "OpenCode Orchestrator",
|
|
4
4
|
"description": "Distributed Cognitive Architecture for OpenCode. Turns simple prompts into specialized multi-agent workflows (Planner, Coder, Reviewer).",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.23",
|
|
6
6
|
"author": "agnusdei1207",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
@@ -58,7 +58,8 @@
|
|
|
58
58
|
"dev:test": "node dist/scripts/postinstall.js && echo '---' && node dist/scripts/preuninstall.js",
|
|
59
59
|
"dev:cache": "npm run build && rm -rf ~/.cache/opencode/node_modules/opencode-orchestrator && cp -r . ~/.cache/opencode/node_modules/opencode-orchestrator && echo 'SUCCESS: Copied to OpenCode cache. Restart OpenCode.'",
|
|
60
60
|
"reset:local": "brew uninstall opencode 2>/dev/null; rm -rf ~/.config/opencode ~/.opencode ~/.local/share/opencode ~/.cache/opencode/node_modules/opencode-orchestrator && echo '=== Clean done ===' && brew install opencode && echo '{\"plugin\": [\"opencode-orchestrator\"], \"$schema\": \"https://opencode.ai/config.json\"}' > ~/.config/opencode/opencode.json && echo '=== Reset (Dev) complete. Run: opencode ==='",
|
|
61
|
-
"reset:prod": "brew uninstall opencode 2>/dev/null; rm -rf ~/.config/opencode ~/.opencode ~/.local/share/opencode ~/.cache/opencode/node_modules/opencode-orchestrator && echo '=== Clean done ===' && brew install opencode && echo '{\"plugin\": [\"opencode-orchestrator\"], \"$schema\": \"https://opencode.ai/config.json\"}' > ~/.config/opencode/opencode.json && npm install -g opencode-orchestrator && echo '=== Reset (Prod) complete. Run: opencode ==='"
|
|
61
|
+
"reset:prod": "brew uninstall opencode 2>/dev/null; rm -rf ~/.config/opencode ~/.opencode ~/.local/share/opencode ~/.cache/opencode/node_modules/opencode-orchestrator && echo '=== Clean done ===' && brew install opencode && echo '{\"plugin\": [\"opencode-orchestrator\"], \"$schema\": \"https://opencode.ai/config.json\"}' > ~/.config/opencode/opencode.json && npm install -g opencode-orchestrator && echo '=== Reset (Prod) complete. Run: opencode ==='",
|
|
62
|
+
"ginstall": "npm install -g opencode-orchestrator"
|
|
62
63
|
},
|
|
63
64
|
"dependencies": {
|
|
64
65
|
"@opencode-ai/plugin": "^1.1.1",
|