opencode-orchestrator 0.1.50 → 0.1.51

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.
@@ -27,7 +27,7 @@ function getPluginPath() {
27
27
  }
28
28
  }
29
29
  function install() {
30
- console.log("\uD83E\uDD80 OpenCode Orchestrator - Installing...");
30
+ console.log("\u{1F980} OpenCode Orchestrator - Installing...");
31
31
  if (!existsSync(CONFIG_DIR)) {
32
32
  mkdirSync(CONFIG_DIR, { recursive: true });
33
33
  }
@@ -43,18 +43,20 @@ function install() {
43
43
  config.plugin = [];
44
44
  }
45
45
  const pluginPath = getPluginPath();
46
- const hasPlugin = config.plugin.some((p) => p === PLUGIN_NAME || p === pluginPath || p.includes("opencode-orchestrator"));
46
+ const hasPlugin = config.plugin.some(
47
+ (p) => p === PLUGIN_NAME || p === pluginPath || p.includes("opencode-orchestrator")
48
+ );
47
49
  if (!hasPlugin) {
48
50
  config.plugin.push(pluginPath);
49
51
  writeFileSync(CONFIG_FILE, JSON.stringify(config, null, 2));
50
- console.log(" Plugin registered!");
52
+ console.log("\u2705 Plugin registered!");
51
53
  console.log(` Path: ${pluginPath}`);
52
54
  console.log(` Config: ${CONFIG_FILE}`);
53
55
  } else {
54
- console.log(" Plugin already registered.");
56
+ console.log("\u2705 Plugin already registered.");
55
57
  }
56
58
  console.log("");
57
- console.log("\uD83D\uDE80 Ready! Restart OpenCode to use.");
59
+ console.log("\u{1F680} Ready! Restart OpenCode to use.");
58
60
  console.log("");
59
61
  console.log("Commands:");
60
62
  console.log(' /task "goal" - Distributed Cognitive Task (PDCA Cycle)');
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.1.50",
5
+ "version": "0.1.51",
6
6
  "author": "agnusdei1207",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -44,16 +44,16 @@
44
44
  "scripts": {
45
45
  "build:bin:linux-x64": "docker compose run --rm dev sh -c 'cargo build --release && cp target/release/orchestrator bin/orchestrator-linux-x64' && chmod +x bin/orchestrator-linux-x64",
46
46
  "build:bin:linux-arm64": "docker compose run --rm dev sh -c 'rustup target add aarch64-unknown-linux-gnu && apt-get update && apt-get install -y gcc-aarch64-linux-gnu && CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc cargo build --release --target aarch64-unknown-linux-gnu && cp target/aarch64-unknown-linux-gnu/release/orchestrator bin/orchestrator-linux-arm64' && chmod +x bin/orchestrator-linux-arm64",
47
- "build:bin": "bun run build:bin:linux-x64 && bun run build:bin:linux-arm64",
48
- "build:js": "bun build src/index.ts --outdir dist --target bun --format esm --sourcemap=none && bun build src/cli.ts --outdir dist --target node --format esm --sourcemap=none && tsc --emitDeclarationOnly && mkdir -p dist/scripts && bun build scripts/postinstall.ts --outdir dist/scripts --target node",
49
- "build": "bun run build:bin && bun run build:js",
47
+ "build:bin": "npm run build:bin:linux-x64 && npm run build:bin:linux-arm64",
48
+ "build:js": "npx esbuild src/index.ts --bundle --outfile=dist/index.js --platform=node --format=esm --packages=external && npx esbuild src/cli.ts --bundle --outfile=dist/cli.js --platform=node --format=esm --packages=external && tsc --emitDeclarationOnly && mkdir -p dist/scripts && npx esbuild scripts/postinstall.ts --bundle --outfile=dist/scripts/postinstall.js --platform=node --format=esm --packages=external",
49
+ "build": "npm run build:bin && npm run build:js",
50
50
  "test": "docker compose run --rm test",
51
- "release:patch": "bun run build && bun run test && npm version patch --no-git-tag-version && bun run release:ship",
52
- "release:minor": "bun run build && bun run test && npm version minor --no-git-tag-version && bun run release:ship",
53
- "release:major": "bun run build && bun run test && npm version major --no-git-tag-version && bun run release:ship",
51
+ "release:patch": "npm run build && npm run test && npm version patch --no-git-tag-version && npm run release:ship",
52
+ "release:minor": "npm run build && npm run test && npm version minor --no-git-tag-version && npm run release:ship",
53
+ "release:major": "npm run build && npm run test && npm version major --no-git-tag-version && npm run release:ship",
54
54
  "release:ship": "npm publish --access public && git add -A && git commit -m \"v$(node -p \"require('./package.json').version\")\" && git tag \"v$(node -p \"require('./package.json').version\")\" && git push && git push --tags",
55
55
  "postinstall": "node dist/scripts/postinstall.js 2>/dev/null || true",
56
- "prepublishOnly": "bun run build:js",
56
+ "prepublishOnly": "npm run build:js",
57
57
  "util:stars": "gh api repos/agnusdei1207/opencode-orchestrator/stargazers --jq '.[].login'"
58
58
  },
59
59
  "dependencies": {
@@ -62,6 +62,7 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@types/node": "^22.0.0",
65
+ "esbuild": "^0.24.0",
65
66
  "typescript": "^5.7.0"
66
67
  }
67
68
  }