@coreplane/switchboard 1.215.0 → 1.215.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "switchboard",
3
- "version": "1.215.0",
3
+ "version": "1.215.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "switchboard",
9
- "version": "1.215.0",
9
+ "version": "1.215.1",
10
10
  "license": "Apache-2.0",
11
11
  "workspaces": [
12
12
  "web",
@@ -19000,7 +19000,7 @@
19000
19000
  },
19001
19001
  "packages/switchboard": {
19002
19002
  "name": "@coreplane/switchboard",
19003
- "version": "1.215.0",
19003
+ "version": "1.215.1",
19004
19004
  "license": "Apache-2.0",
19005
19005
  "dependencies": {
19006
19006
  "@anthropic-ai/sdk": "^0.124.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "switchboard",
3
- "version": "1.215.0",
3
+ "version": "1.215.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.215.0",
3
- "commit": "801fa224f1f6af4bd152b8555337aa4c8c0b9ea2",
4
- "builtAt": "2026-09-14T21:24:17.702Z"
2
+ "version": "1.215.1",
3
+ "commit": "f3c2592a926e73d1b87d06fa7442c898b9097ba6",
4
+ "builtAt": "2026-09-14T21:52:33.658Z"
5
5
  }
package/dist/cli.js CHANGED
@@ -24746,15 +24746,18 @@ function parseRouteAnswer(raw, allowed2, compound) {
24746
24746
  }
24747
24747
  if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed))
24748
24748
  return { preset: void 0, reason: `not a single JSON object: ${tidyReason(trimmed)}` };
24749
- const { preset, reason, parts } = parsed;
24750
- if (typeof preset !== "string")
24749
+ const { preset: named, reason, parts } = parsed;
24750
+ const preset = typeof named === "string" ? named : Array.isArray(parts) ? COMPOUND_PRESET : void 0;
24751
+ const inferred = typeof named !== "string" && preset === COMPOUND_PRESET;
24752
+ if (preset === void 0)
24751
24753
  return { preset: void 0, reason: `missing preset in the router's answer: ${tidyReason(trimmed)}` };
24752
- if (typeof reason !== "string")
24754
+ if (typeof reason !== "string" && !inferred)
24753
24755
  return { preset: void 0, reason: `missing reason in the router's answer: ${tidyReason(trimmed)}` };
24754
- if (preset === COMPOUND_PRESET) return parseCompound(parts, tidyReason(reason), allowed2, compound);
24756
+ const tidy = typeof reason === "string" ? tidyReason(reason) : "compound inferred from parts";
24757
+ if (preset === COMPOUND_PRESET) return parseCompound(parts, tidy, allowed2, compound);
24755
24758
  if (!allowed2.includes(preset))
24756
24759
  return { preset: void 0, reason: `router said "${tidyReason(preset)}", not a preset the requester may run` };
24757
- return { preset, reason: tidyReason(reason) };
24760
+ return { preset, reason: tidy };
24758
24761
  }
24759
24762
  function parseCompound(parts, reason, allowed2, offer) {
24760
24763
  const rejected = (why) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreplane/switchboard",
3
- "version": "1.215.0",
3
+ "version": "1.215.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",