capix-code 1.5.7 → 1.5.9
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 +1 -1
- package/scripts/build.sh +0 -13
- package/scripts/postinstall.cjs +1 -1
package/package.json
CHANGED
package/scripts/build.sh
CHANGED
|
@@ -118,19 +118,6 @@ MCPWRAPPER
|
|
|
118
118
|
cp "$DIR/launcher/target/release/capix-code$EXE_SUFFIX" "$ARTIFACT/bin/capix-code$EXE_SUFFIX"
|
|
119
119
|
chmod 0755 "$ARTIFACT/bin/capix-code$EXE_SUFFIX"
|
|
120
120
|
|
|
121
|
-
# ── Post-compile branding pass (same-byte-length only) ─────────────────
|
|
122
|
-
# Replace "opencode"/"OpenCode" in the compiled binary using EXACT same
|
|
123
|
-
# byte-length replacements to avoid corrupting Bun's length-dependent offsets.
|
|
124
|
-
ENGINE_BIN="$ARTIFACT/engine/capix-engine$EXE_SUFFIX"
|
|
125
|
-
if [ -f "$ENGINE_BIN" ]; then
|
|
126
|
-
echo "▸ Applying branding pass to engine binary..."
|
|
127
|
-
# Same-length replacements only: "opencode"→"capixcod", "OpenCode"→"CapixCod"
|
|
128
|
-
perl -pi -e '
|
|
129
|
-
s/OpenCode/CapixCod/g;
|
|
130
|
-
s/opencode/capixcod/g;
|
|
131
|
-
' "$ENGINE_BIN"
|
|
132
|
-
echo " ✓ branding pass applied to engine binary (same-length only)"
|
|
133
|
-
fi
|
|
134
121
|
"$DIR/scripts/assert-artifact.sh" "$ARTIFACT"
|
|
135
122
|
"$DIR/scripts/assert-customer-brand.sh" "$ARTIFACT"
|
|
136
123
|
echo "✓ Customer artifact staged: $ARTIFACT"
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -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.
|
|
12
|
+
const VERSION = '1.5.6';
|
|
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';
|