@coreplane/switchboard 1.202.0 → 1.202.1

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.
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ // The `switchboard` bin: this file hands the process to dist/cli.js, the bundle
3
+ // the build writes (build.mts; docs/reference/specs/packaging.md item 1). A
4
+ // committed entry rather than the bundle itself, because npm links a bin only
5
+ // when its target exists at install time, and the gitignored dist/ does not
6
+ // until the build runs: with dist/cli.js as the bin, `npx <the package>` inside
7
+ // the checkout — where npx prefers the workspace over the registry — found no
8
+ // link and died with `sh: switchboard: command not found`. The published package
9
+ // always carries the bundle, so there this is one extra module load; a checkout
10
+ // that has not built the package is told what to run.
11
+ import { existsSync } from "node:fs";
12
+ import { fileURLToPath } from "node:url";
13
+
14
+ const bundle = new URL("../dist/cli.js", import.meta.url);
15
+
16
+ if (!existsSync(bundle)) {
17
+ console.error(
18
+ `switchboard: ${fileURLToPath(bundle)} is missing — the package is not built. Inside the checkout, npx runs this workspace, not the published package: run \`npm run build -w packages/switchboard\` first, or use the checkout's CLI, \`npm run cli -- <group> <verb> …\`.`,
19
+ );
20
+ process.exit(1);
21
+ }
22
+
23
+ // From here the bundle is the script: its entry claim (src/invokedAsScript.ts)
24
+ // and its usage spelling (`programName`, src/cli.ts) read argv[1].
25
+ process.argv[1] = fileURLToPath(bundle);
26
+ await import(bundle.href);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "switchboard",
3
- "version": "1.202.0",
3
+ "version": "1.202.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "switchboard",
9
- "version": "1.202.0",
9
+ "version": "1.202.1",
10
10
  "license": "Apache-2.0",
11
11
  "workspaces": [
12
12
  "web",
@@ -18806,7 +18806,7 @@
18806
18806
  },
18807
18807
  "packages/switchboard": {
18808
18808
  "name": "@coreplane/switchboard",
18809
- "version": "1.202.0",
18809
+ "version": "1.202.1",
18810
18810
  "license": "Apache-2.0",
18811
18811
  "dependencies": {
18812
18812
  "@anthropic-ai/sdk": "^0.124.0",
@@ -18818,7 +18818,7 @@
18818
18818
  "zod": "^4.5.4"
18819
18819
  },
18820
18820
  "bin": {
18821
- "switchboard": "dist/cli.js"
18821
+ "switchboard": "bin/switchboard.js"
18822
18822
  },
18823
18823
  "devDependencies": {
18824
18824
  "esbuild": "^0.28.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchboard",
3
- "version": "1.202.0",
3
+ "version": "1.202.1",
4
4
  "private": true,
5
5
  "description": "Mention it in Slack and an agent reviews the PR, ships the fix, or answers the question — on the model you choose, with its tools running where you decide.",
6
6
  "license": "Apache-2.0",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.202.0",
3
- "commit": "1da9e3cbb372db6a36b9218f2df3f33a9ed0a828",
4
- "builtAt": "2026-09-11T21:24:21.512Z"
2
+ "version": "1.202.1",
3
+ "commit": "6b854f551a2f58a17c473c3e42f8c681f2276008",
4
+ "builtAt": "2026-09-11T21:48:47.444Z"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreplane/switchboard",
3
- "version": "1.202.0",
3
+ "version": "1.202.1",
4
4
  "description": "Mention it in Slack and an agent reviews the PR, ships the fix, or answers the question — on the model you choose, with its tools running where you decide.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://openswitchboard.dev",
@@ -17,9 +17,10 @@
17
17
  "node": ">=24"
18
18
  },
19
19
  "bin": {
20
- "switchboard": "dist/cli.js"
20
+ "switchboard": "bin/switchboard.js"
21
21
  },
22
22
  "files": [
23
+ "bin",
23
24
  "dist"
24
25
  ],
25
26
  "publishConfig": {