opencode-orchestrator 0.1.34 → 0.1.36
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 +11 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12338,6 +12338,7 @@ function tool(input) {
|
|
|
12338
12338
|
}
|
|
12339
12339
|
tool.schema = exports_external;
|
|
12340
12340
|
// src/index.ts
|
|
12341
|
+
import { appendFileSync } from "fs";
|
|
12341
12342
|
var __dirname2 = dirname(fileURLToPath(import.meta.url));
|
|
12342
12343
|
var AGENTS = {
|
|
12343
12344
|
orchestrator: {
|
|
@@ -12959,8 +12960,17 @@ function detectSlashCommand(text) {
|
|
|
12959
12960
|
return null;
|
|
12960
12961
|
return { command: match[1], args: match[2] || "" };
|
|
12961
12962
|
}
|
|
12963
|
+
var LOG_FILE = "/tmp/opencode_debug.log";
|
|
12964
|
+
var log = (msg) => {
|
|
12965
|
+
try {
|
|
12966
|
+
appendFileSync(LOG_FILE, `[${new Date().toISOString()}] ${msg}
|
|
12967
|
+
`);
|
|
12968
|
+
} catch {}
|
|
12969
|
+
};
|
|
12962
12970
|
var OrchestratorPlugin = async (input) => {
|
|
12971
|
+
log("Plugin initializing...");
|
|
12963
12972
|
const { directory } = input;
|
|
12973
|
+
log(`Directory: ${directory}`);
|
|
12964
12974
|
return {
|
|
12965
12975
|
tool: {
|
|
12966
12976
|
call_agent: callAgentTool,
|
|
@@ -12969,6 +12979,7 @@ var OrchestratorPlugin = async (input) => {
|
|
|
12969
12979
|
glob_search: globSearchTool(directory)
|
|
12970
12980
|
},
|
|
12971
12981
|
config: async (config2) => {
|
|
12982
|
+
log("Config handler called");
|
|
12972
12983
|
const existingCommands = config2.command ?? {};
|
|
12973
12984
|
const orchestratorCommands = {};
|
|
12974
12985
|
for (const [name, cmd] of Object.entries(COMMANDS)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-orchestrator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"description": "6-Agent collaborative architecture for OpenCode - Make any model reliable",
|
|
5
5
|
"author": "agnusdei1207",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build:rust": "docker compose run --rm dev",
|
|
42
42
|
"build:rust:copy": "docker compose run --rm dev sh -c 'cp /app/target/release/orchestrator /app/bin/' && chmod +x bin/orchestrator",
|
|
43
|
-
"build:ts": "bun build src/index.ts --outdir dist --target bun --format esm && tsc --emitDeclarationOnly",
|
|
43
|
+
"build:ts": "bun build src/index.ts --outdir dist --target bun --format esm --sourcemap=none && tsc --emitDeclarationOnly",
|
|
44
44
|
"build:scripts": "mkdir -p dist/scripts && bun build scripts/postinstall.ts --outdir dist/scripts --target node",
|
|
45
45
|
"build": "bun run build:ts && bun run build:scripts",
|
|
46
46
|
"build:full": "bun run build:rust && bun run build:rust:copy && bun run build",
|