@coreplane/switchboard 1.215.0 → 1.215.2

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.2",
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.2",
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.2",
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.2",
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.2",
3
+ "commit": "a8a7e7911cbea4f36117def038244496a2f52133",
4
+ "builtAt": "2026-09-14T22:09:51.193Z"
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) => ({
@@ -26030,7 +26033,7 @@ function putCommandFor(path, contentType, url) {
26030
26033
  return `curl -fsS -T ${shellQuote(path)} -H ${shellQuote(`Content-Type: ${contentType}`)} ${shellQuote(url)}`;
26031
26034
  }
26032
26035
  function postCommandFor(path, url) {
26033
- return `curl -fsS --data-binary @${shellQuote(path)} ${shellQuote(url)}`;
26036
+ return `curl -fsS --upload-file ${shellQuote(path)} -X POST ${shellQuote(url)}`;
26034
26037
  }
26035
26038
  async function attachThroughStore(path, name, lead, artifacts, ctx) {
26036
26039
  const exec = (command2, timeoutMs2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreplane/switchboard",
3
- "version": "1.215.0",
3
+ "version": "1.215.2",
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",