Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Fix 3 CI failures: Windows .exe path, tre ssize_t, UI archive name
Martin Vogel5f9da0ee4a93
diff --git a/.github/workflows/dry-run.yml b/.github/workflows/dry-run.ymlindex 3c33fe871..51b762820 100644--- a/.github/workflows/dry-run.yml+++ b/.github/workflows/dry-run.yml@@ -380,6 +380,11 @@ jobs:SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}tar -czf "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \-C /tmp/smoke-server codebase-memory-mcp+ # Also serve under standard name so install.sh + update --standard work+ if [ -n "$SUFFIX" ]; then+ cp "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \+ "/tmp/smoke-server/codebase-memory-mcp-${OS}-${ARCH}.tar.gz"+ ficd /tmp/smoke-serversha256sum *.tar.gz > checksums.txt 2>/dev/null || shasum -a 256 *.tar.gz > checksums.txtpython3 -m http.server 18080 -d /tmp/smoke-server &@@ -476,6 +481,10 @@ jobs:SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}cd /tmp/smoke-serverzip -q "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" codebase-memory-mcp.exe+ # Also serve under standard name+ if [ -n "$SUFFIX" ]; then+ cp "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" "codebase-memory-mcp-windows-amd64.zip"+ fisha256sum *.zip > checksums.txtpython3 -m http.server 18080 -d /tmp/smoke-server &diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex d565f05e8..ef3a6bac1 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -376,6 +376,11 @@ jobs:SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}tar -czf "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \-C /tmp/smoke-server codebase-memory-mcp+ # Also serve under standard name so install.sh + update --standard work+ if [ -n "$SUFFIX" ]; then+ cp "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \+ "/tmp/smoke-server/codebase-memory-mcp-${OS}-${ARCH}.tar.gz"+ ficd /tmp/smoke-serversha256sum *.tar.gz > checksums.txt 2>/dev/null || shasum -a 256 *.tar.gz > checksums.txtpython3 -m http.server 18080 -d /tmp/smoke-server &@@ -473,6 +478,10 @@ jobs:SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}cd /tmp/smoke-serverzip -q "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" codebase-memory-mcp.exe+ # Also serve under standard name+ if [ -n "$SUFFIX" ]; then+ cp "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" "codebase-memory-mcp-windows-amd64.zip"+ fisha256sum *.zip > checksums.txtpython3 -m http.server 18080 -d /tmp/smoke-server &diff --git a/src/cli/cli.c b/src/cli/cli.cindex 1c59983f7..d3218497e 100644--- a/src/cli/cli.c+++ b/src/cli/cli.c@@ -2682,7 +2682,11 @@ int cbm_cmd_install(int argc, char **argv) {/* Step 2: Binary path */char self_path[1024];+#ifdef _WIN32+ snprintf(self_path, sizeof(self_path), "%s/.local/bin/codebase-memory-mcp.exe", home);+#elsesnprintf(self_path, sizeof(self_path), "%s/.local/bin/codebase-memory-mcp", home);+#endif/* Step 3: Install/refresh all agent configs */cbm_install_agent_configs(home, self_path, force, dry_run);@@ -3103,7 +3107,11 @@ int cbm_cmd_update(int argc, char **argv) {/* Step 5: Extract binary */char bin_dest[1024];+#ifdef _WIN32+ snprintf(bin_dest, sizeof(bin_dest), "%s/.local/bin/codebase-memory-mcp.exe", home);+#elsesnprintf(bin_dest, sizeof(bin_dest), "%s/.local/bin/codebase-memory-mcp", home);+#endif/* Ensure install directory exists */char bin_dir[1024];diff --git a/vendored/tre/tre-internal.h b/vendored/tre/tre-internal.hindex d74f349e7..79916d9bc 100644--- a/vendored/tre/tre-internal.h+++ b/vendored/tre/tre-internal.h@@ -9,6 +9,13 @@#ifndef TRE_INTERNAL_H#define TRE_INTERNAL_H 1+#ifdef _WIN32+#include <basetsd.h>+typedef SSIZE_T ssize_t;+#else+#include <sys/types.h> /* ssize_t */+#endif+#ifdef HAVE_WCHAR_H#include <wchar.h>#endif /* HAVE_WCHAR_H */