cascade-ai 0.55.0 → 0.56.0

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.
package/dist/cli.cjs CHANGED
@@ -1799,7 +1799,7 @@ var CASCADE_VERSION, CASCADE_CONFIG_FILE, CASCADE_DB_FILE, CASCADE_DASHBOARD_SEC
1799
1799
  var init_constants = __esm({
1800
1800
  "src/constants.ts"() {
1801
1801
  init_pricing();
1802
- CASCADE_VERSION = "0.55.0";
1802
+ CASCADE_VERSION = "0.56.0";
1803
1803
  CASCADE_CONFIG_FILE = ".cascade/config.json";
1804
1804
  CASCADE_DB_FILE = ".cascade/memory.db";
1805
1805
  CASCADE_DASHBOARD_SECRET_FILE = ".cascade/dashboard-secret";
@@ -10218,7 +10218,7 @@ HIERARCHY CONTEXT: ${this.hierarchyContext}` : ""),
10218
10218
  const jsonMatch = /\[[\s\S]*\]/.exec(result.content);
10219
10219
  if (!jsonMatch) throw new Error("No JSON array found");
10220
10220
  const parsed = JSON.parse(jsonMatch[0]);
10221
- return parsed.map((a) => ({ ...a, sectionTitle: assignment.sectionTitle }));
10221
+ return parsed.map((a) => ({ ...a, sectionTitle: assignment.sectionTitle, constraints: a.constraints ?? [] }));
10222
10222
  } catch {
10223
10223
  return [{
10224
10224
  subtaskId: crypto.randomUUID(),
@@ -11179,6 +11179,12 @@ SPEC RULES \u2014 each subtask is a self-contained spec slice (workers execute f
11179
11179
  if (!plan.sections || !Array.isArray(plan.sections) || plan.sections.length === 0) {
11180
11180
  throw new Error("Invalid plan: no sections");
11181
11181
  }
11182
+ for (const section of plan.sections) {
11183
+ section.constraints ??= [];
11184
+ for (const subtask of section.t3Subtasks ?? []) {
11185
+ subtask.constraints ??= [];
11186
+ }
11187
+ }
11182
11188
  const [min, max] = COMPLEXITY_T2_COUNT[plan.complexity] ?? [1, 8];
11183
11189
  if (plan.sections.length < min) ;
11184
11190
  }