capix-code 1.5.14 → 1.5.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capix-code",
3
- "version": "1.5.14",
3
+ "version": "1.5.16",
4
4
  "description": "Capix Code — decentralized AI coding agent with GPU marketplace",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/scripts/build.sh CHANGED
@@ -24,6 +24,7 @@ echo "▸ Building capix-code standalone binary…"
24
24
  # API metadata and diagnostics all report the customer release.
25
25
  CAPIX_RELEASE_VERSION="${CAPIX_CODE_VERSION:-$(node -p 'require(process.argv[1]).version' "$DIR/package.json")}"
26
26
  export CAPIX_CODE_VERSION="$CAPIX_RELEASE_VERSION"
27
+ export CAPIX_CODE_CHANNEL="latest"
27
28
  export OPENCODE_VERSION="$CAPIX_RELEASE_VERSION"
28
29
 
29
30
  # Write default config if the init script exists.
@@ -60,10 +61,19 @@ if [ -n "$OUTPUT" ]; then
60
61
  cp "$DIR/config/capix-defaults.json" "$DIR/config/defaults.json" "$ARTIFACT/config/"
61
62
  cp -R "$DIR/commands" "$ARTIFACT/commands"
62
63
  # Build and bundle the MCP server from the capix-mcp npm package
63
- mkdir -p "$ARTIFACT/mcp"
64
+ mkdir -p "$ARTIFACT/mcp" "$ARTIFACT/mcp/node_modules"
64
65
  npm install capix-mcp@2.1.0 --prefix "$DIR/dist/mcp-tmp" 2>/dev/null
65
66
  cp -R "$DIR/dist/mcp-tmp/node_modules/capix-mcp/dist/"* "$ARTIFACT/mcp/" 2>/dev/null
66
67
  cp "$DIR/dist/mcp-tmp/node_modules/capix-mcp/package.json" "$ARTIFACT/mcp/" 2>/dev/null
68
+ # Copy ALL dependencies needed by capix-mcp
69
+ for dep in @modelcontextprotocol zod; do
70
+ if [ -d "$DIR/dist/mcp-tmp/node_modules/$dep" ]; then
71
+ cp -R "$DIR/dist/mcp-tmp/node_modules/$dep" "$ARTIFACT/mcp/node_modules/" 2>/dev/null
72
+ fi
73
+ done
74
+ if [ -d "$DIR/dist/mcp-tmp/node_modules/capix-mcp/node_modules" ]; then
75
+ cp -R "$DIR/dist/mcp-tmp/node_modules/capix-mcp/node_modules/"* "$ARTIFACT/mcp/node_modules/" 2>/dev/null
76
+ fi
67
77
  # Copy capix-mcp's dependencies (SDK, zod, etc.)
68
78
  mkdir -p "$ARTIFACT/mcp/node_modules"
69
79
  if [ -d "$DIR/dist/mcp-tmp/node_modules/capix-mcp/node_modules" ]; then
@@ -9,7 +9,7 @@ if (process.env.CI || process.env.GITHUB_ACTIONS) {
9
9
  process.exit(0);
10
10
  }
11
11
 
12
- const VERSION = '1.5.7';
12
+ const VERSION = '1.6.0';
13
13
  const PLATFORM_MAP = { darwin: 'darwin', linux: 'linux', win32: 'win32' };
14
14
  const ARCH_MAP = { arm64: 'arm64', x64: 'x64' };
15
15
  const platform = PLATFORM_MAP[process.platform] || 'linux';
@@ -28,6 +28,9 @@ if [ -f "$SCRIPT_SRC" ]; then
28
28
  sed -i.bak 's/env\.OPENCODE_VERSION/env.CAPIX_CODE_VERSION/g' "$SCRIPT_SRC"
29
29
  sed -i.bak 's/env\.OPENCODE_BUMP/env.CAPIX_CODE_BUMP/g' "$SCRIPT_SRC"
30
30
  sed -i.bak 's/env\.OPENCODE_RELEASE/env.CAPIX_CODE_RELEASE/g' "$SCRIPT_SRC"
31
+ sed -i.bak 's/env\.OPENCODE_CHANNEL/env.CAPIX_CODE_CHANNEL/g' "$SCRIPT_SRC"
32
+ sed -i.bak 's/OPENCODE_CHANNEL/CAPIX_CODE_CHANNEL/g' "$SCRIPT_SRC"
33
+ sed -i.bak 's/process\.env\["OPENCODE_CHANNEL"\]/process.env["CAPIX_CODE_CHANNEL"]/g' "$SCRIPT_SRC"
31
34
  rm -f "$SCRIPT_SRC.bak"
32
35
  echo " ✓ script package env vars rebranded"
33
36
  fi