@devries-cameron20 / composio Mirror · read-only / commits / fa0b8f7c1
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 18:30 UTC

fix(cli): align generated Windows install guidance

jkomyno committed Jul 28, 2026 at 21:15 UTC fa0b8f7c1c6b39f87017fbac17d64dd9333e6570
2 files changed +32 -1
.github/workflows/build-cli-binaries.yml
+2 -1
@@ -340,7 +340,8 @@ jobs:
340 - macOS x64 (Intel)
341 - macOS ARM64 (Apple Silicon)
342
343 - Windows support coming soon!
343 + ❌ **Not Supported:**
344 + - Windows — use [WSL](https://learn.microsoft.com/windows/wsl/install) and run the install script inside your WSL distribution
345 EOF
346 sed -i.bak "s|RELEASE_TAG_PLACEHOLDER|$RELEASE_TAG|g" INSTALL.md && rm -f INSTALL.md.bak
347
test/release-workflow.test.ts
+30
@@ -42,6 +42,7 @@ const changesetBinPath = new URL('../node_modules/.bin/changeset', import.meta.u
42 const releaseScriptUrl = new URL('../ts/scripts/changeset-release.sh', import.meta.url);
43 const releaseScriptPath = releaseScriptUrl.pathname;
44 const releaseScript = readFileSync(releaseScriptUrl, 'utf8');
45 +const rootInstallGuide = readFileSync(new URL('../INSTALL.md', import.meta.url), 'utf8');
46 const buildCliWorkflow = readFileSync(
47 new URL('../.github/workflows/build-cli-binaries.yml', import.meta.url),
48 'utf8'
@@ -418,6 +419,35 @@ if (!releaseScript.includes('New tag:[[:space:]]*@composio\\/cli@')) {
419
420 // --- build-cli-binaries.yml: the CLI binary workflow is the sole, hardened release writer ---
421
422 +const canonicalWindowsInstallGuidance = requireMatch(
423 + rootInstallGuide,
424 + /^(- Windows — .+)$/m,
425 + 'canonical Windows install guidance'
426 +);
427 +const generatedInstallGuide = requireMatch(
428 + buildCliWorkflow,
429 + /cat > INSTALL\.md << 'EOF'\n([\s\S]*?)\n\s+EOF/,
430 + 'generated CLI release INSTALL.md'
431 +);
432 +const generatedWindowsInstallGuidance = requireMatch(
433 + generatedInstallGuide,
434 + /^\s*(- Windows — .+)$/m,
435 + 'generated Windows install guidance'
436 +);
437 +
438 +if (
439 + !canonicalWindowsInstallGuidance.includes(
440 + '[WSL](https://learn.microsoft.com/windows/wsl/install)'
441 + )
442 +) {
443 + throw new Error('INSTALL.md must direct Windows users to the canonical WSL instructions');
444 +}
445 +if (generatedWindowsInstallGuidance !== canonicalWindowsInstallGuidance) {
446 + throw new Error(
447 + 'build-cli-binaries.yml generated INSTALL.md must match the canonical Windows guidance'
448 + );
449 +}
450 +
451 // A single failed platform must never publish a partial set: fail-fast: false makes the build
452 // job `success` only when every matrix leg passes, gating the release job.
453 if (!buildCliWorkflow.includes('fail-fast: false')) {