Skip to content

Commit 5f9da0e

Browse files
committed
Fix 3 CI failures: Windows .exe path, tre ssize_t, UI archive name
1. Windows install/update: append .exe to binary path on _WIN32 (was writing empty command to .claude.json) 2. Vendored tre: add ssize_t typedef for Windows (basetsd.h SSIZE_T) 3. Smoke server: copy UI archive under standard name too, so install.sh and update --standard work in UI variant smoke tests
1 parent adb14ee commit 5f9da0e

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.github/workflows/dry-run.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ jobs:
380380
SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}
381381
tar -czf "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \
382382
-C /tmp/smoke-server codebase-memory-mcp
383+
# Also serve under standard name so install.sh + update --standard work
384+
if [ -n "$SUFFIX" ]; then
385+
cp "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \
386+
"/tmp/smoke-server/codebase-memory-mcp-${OS}-${ARCH}.tar.gz"
387+
fi
383388
cd /tmp/smoke-server
384389
sha256sum *.tar.gz > checksums.txt 2>/dev/null || shasum -a 256 *.tar.gz > checksums.txt
385390
python3 -m http.server 18080 -d /tmp/smoke-server &
@@ -476,6 +481,10 @@ jobs:
476481
SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}
477482
cd /tmp/smoke-server
478483
zip -q "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" codebase-memory-mcp.exe
484+
# Also serve under standard name
485+
if [ -n "$SUFFIX" ]; then
486+
cp "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" "codebase-memory-mcp-windows-amd64.zip"
487+
fi
479488
sha256sum *.zip > checksums.txt
480489
python3 -m http.server 18080 -d /tmp/smoke-server &
481490

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ jobs:
376376
SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}
377377
tar -czf "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \
378378
-C /tmp/smoke-server codebase-memory-mcp
379+
# Also serve under standard name so install.sh + update --standard work
380+
if [ -n "$SUFFIX" ]; then
381+
cp "/tmp/smoke-server/codebase-memory-mcp${SUFFIX}-${OS}-${ARCH}.tar.gz" \
382+
"/tmp/smoke-server/codebase-memory-mcp-${OS}-${ARCH}.tar.gz"
383+
fi
379384
cd /tmp/smoke-server
380385
sha256sum *.tar.gz > checksums.txt 2>/dev/null || shasum -a 256 *.tar.gz > checksums.txt
381386
python3 -m http.server 18080 -d /tmp/smoke-server &
@@ -473,6 +478,10 @@ jobs:
473478
SUFFIX=${{ matrix.variant == 'ui' && '-ui' || '' }}
474479
cd /tmp/smoke-server
475480
zip -q "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" codebase-memory-mcp.exe
481+
# Also serve under standard name
482+
if [ -n "$SUFFIX" ]; then
483+
cp "codebase-memory-mcp${SUFFIX}-windows-amd64.zip" "codebase-memory-mcp-windows-amd64.zip"
484+
fi
476485
sha256sum *.zip > checksums.txt
477486
python3 -m http.server 18080 -d /tmp/smoke-server &
478487

src/cli/cli.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,7 +2682,11 @@ int cbm_cmd_install(int argc, char **argv) {
26822682

26832683
/* Step 2: Binary path */
26842684
char self_path[1024];
2685+
#ifdef _WIN32
2686+
snprintf(self_path, sizeof(self_path), "%s/.local/bin/codebase-memory-mcp.exe", home);
2687+
#else
26852688
snprintf(self_path, sizeof(self_path), "%s/.local/bin/codebase-memory-mcp", home);
2689+
#endif
26862690

26872691
/* Step 3: Install/refresh all agent configs */
26882692
cbm_install_agent_configs(home, self_path, force, dry_run);
@@ -3103,7 +3107,11 @@ int cbm_cmd_update(int argc, char **argv) {
31033107

31043108
/* Step 5: Extract binary */
31053109
char bin_dest[1024];
3110+
#ifdef _WIN32
3111+
snprintf(bin_dest, sizeof(bin_dest), "%s/.local/bin/codebase-memory-mcp.exe", home);
3112+
#else
31063113
snprintf(bin_dest, sizeof(bin_dest), "%s/.local/bin/codebase-memory-mcp", home);
3114+
#endif
31073115

31083116
/* Ensure install directory exists */
31093117
char bin_dir[1024];

vendored/tre/tre-internal.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
#ifndef TRE_INTERNAL_H
1010
#define TRE_INTERNAL_H 1
1111

12+
#ifdef _WIN32
13+
#include <basetsd.h>
14+
typedef SSIZE_T ssize_t;
15+
#else
16+
#include <sys/types.h> /* ssize_t */
17+
#endif
18+
1219
#ifdef HAVE_WCHAR_H
1320
#include <wchar.h>
1421
#endif /* HAVE_WCHAR_H */

0 commit comments

Comments
 (0)