@locusai/cli 0.11.7 → 0.11.8

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.
@@ -15532,9 +15532,7 @@ class ClaudeRunner {
15532
15532
  "stream-json",
15533
15533
  "--include-partial-messages",
15534
15534
  "--model",
15535
- this.model,
15536
- "--settings",
15537
- SANDBOX_SETTINGS
15535
+ this.model
15538
15536
  ];
15539
15537
  const env = getAugmentedEnv({
15540
15538
  FORCE_COLOR: "1",
@@ -15783,9 +15781,7 @@ class ClaudeRunner {
15783
15781
  "stream-json",
15784
15782
  "--include-partial-messages",
15785
15783
  "--model",
15786
- this.model,
15787
- "--settings",
15788
- SANDBOX_SETTINGS
15784
+ this.model
15789
15785
  ];
15790
15786
  const env = getAugmentedEnv({
15791
15787
  FORCE_COLOR: "1",
@@ -15887,21 +15883,11 @@ ${c.primary("[Claude]")} ${c.bold(`Running ${content_block.name}...`)}
15887
15883
  return new Error(message);
15888
15884
  }
15889
15885
  }
15890
- var SANDBOX_SETTINGS, DEFAULT_TIMEOUT_MS;
15886
+ var DEFAULT_TIMEOUT_MS;
15891
15887
  var init_claude_runner = __esm(() => {
15892
15888
  init_config();
15893
15889
  init_colors();
15894
15890
  init_resolve_bin();
15895
- SANDBOX_SETTINGS = JSON.stringify({
15896
- permissions: {
15897
- deny: ["Read(../**)", "Edit(../**)"]
15898
- },
15899
- sandbox: {
15900
- enabled: true,
15901
- autoAllow: true,
15902
- allowUnsandboxedCommands: false
15903
- }
15904
- });
15905
15891
  DEFAULT_TIMEOUT_MS = 60 * 60 * 1000;
15906
15892
  });
15907
15893
 
package/bin/locus.js CHANGED
@@ -6324,9 +6324,6 @@ function extractJsonFromLLMOutput(raw) {
6324
6324
  if (codeBlockMatch) {
6325
6325
  return codeBlockMatch[1]?.trim() || "";
6326
6326
  }
6327
- if (trimmed.startsWith("{")) {
6328
- return trimmed;
6329
- }
6330
6327
  const startIdx = trimmed.indexOf("{");
6331
6328
  if (startIdx === -1) {
6332
6329
  return trimmed;
@@ -6340,19 +6337,19 @@ function extractJsonFromLLMOutput(raw) {
6340
6337
  escaped = false;
6341
6338
  continue;
6342
6339
  }
6343
- if (ch === "\\") {
6344
- escaped = true;
6340
+ if (inString) {
6341
+ if (ch === "\\") {
6342
+ escaped = true;
6343
+ } else if (ch === '"') {
6344
+ inString = false;
6345
+ }
6345
6346
  continue;
6346
6347
  }
6347
6348
  if (ch === '"') {
6348
- inString = !inString;
6349
- continue;
6350
- }
6351
- if (inString)
6352
- continue;
6353
- if (ch === "{")
6349
+ inString = true;
6350
+ } else if (ch === "{") {
6354
6351
  depth++;
6355
- else if (ch === "}") {
6352
+ } else if (ch === "}") {
6356
6353
  depth--;
6357
6354
  if (depth === 0) {
6358
6355
  return trimmed.slice(startIdx, i + 1);
@@ -7123,9 +7120,7 @@ class ClaudeRunner {
7123
7120
  "stream-json",
7124
7121
  "--include-partial-messages",
7125
7122
  "--model",
7126
- this.model,
7127
- "--settings",
7128
- SANDBOX_SETTINGS
7123
+ this.model
7129
7124
  ];
7130
7125
  const env = getAugmentedEnv({
7131
7126
  FORCE_COLOR: "1",
@@ -7374,9 +7369,7 @@ class ClaudeRunner {
7374
7369
  "stream-json",
7375
7370
  "--include-partial-messages",
7376
7371
  "--model",
7377
- this.model,
7378
- "--settings",
7379
- SANDBOX_SETTINGS
7372
+ this.model
7380
7373
  ];
7381
7374
  const env = getAugmentedEnv({
7382
7375
  FORCE_COLOR: "1",
@@ -7478,21 +7471,11 @@ ${c.primary("[Claude]")} ${c.bold(`Running ${content_block.name}...`)}
7478
7471
  return new Error(message);
7479
7472
  }
7480
7473
  }
7481
- var SANDBOX_SETTINGS, DEFAULT_TIMEOUT_MS;
7474
+ var DEFAULT_TIMEOUT_MS;
7482
7475
  var init_claude_runner = __esm(() => {
7483
7476
  init_config();
7484
7477
  init_colors();
7485
7478
  init_resolve_bin();
7486
- SANDBOX_SETTINGS = JSON.stringify({
7487
- permissions: {
7488
- deny: ["Read(../**)", "Edit(../**)"]
7489
- },
7490
- sandbox: {
7491
- enabled: true,
7492
- autoAllow: true,
7493
- allowUnsandboxedCommands: false
7494
- }
7495
- });
7496
7479
  DEFAULT_TIMEOUT_MS = 60 * 60 * 1000;
7497
7480
  });
7498
7481
 
@@ -41011,7 +40994,14 @@ function plannedTasksToCreatePayloads(plan, sprintId) {
41011
40994
  }
41012
40995
  function parseSprintPlanFromAI(raw, directive) {
41013
40996
  const jsonStr = extractJsonFromLLMOutput(raw);
41014
- let parsed = JSON.parse(jsonStr);
40997
+ let parsed;
40998
+ try {
40999
+ parsed = JSON.parse(jsonStr);
41000
+ } catch (err) {
41001
+ const preview = jsonStr.slice(0, 200);
41002
+ throw new Error(`Failed to parse sprint plan JSON: ${err instanceof Error ? err.message : String(err)}
41003
+ Extracted JSON preview: ${preview}`);
41004
+ }
41015
41005
  if (parsed.revisedPlan) {
41016
41006
  parsed = parsed.revisedPlan;
41017
41007
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/cli",
3
- "version": "0.11.7",
3
+ "version": "0.11.8",
4
4
  "description": "CLI for Locus - AI-native project management platform",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,7 +33,7 @@
33
33
  "author": "",
34
34
  "license": "MIT",
35
35
  "dependencies": {
36
- "@locusai/sdk": "^0.11.7"
36
+ "@locusai/sdk": "^0.11.8"
37
37
  },
38
38
  "devDependencies": {}
39
39
  }