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 +8 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/dist/desktop-core.cjs +8 -2
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/desktop-core.cjs
CHANGED
|
@@ -224247,7 +224247,7 @@ function reconcilePrice(model, live) {
|
|
|
224247
224247
|
}
|
|
224248
224248
|
|
|
224249
224249
|
// src/constants.ts
|
|
224250
|
-
var CASCADE_VERSION = "0.
|
|
224250
|
+
var CASCADE_VERSION = "0.56.0";
|
|
224251
224251
|
var CASCADE_CONFIG_DIR = ".cascade";
|
|
224252
224252
|
var CASCADE_MD_FILE = "CASCADE.md";
|
|
224253
224253
|
var CASCADE_IGNORE_FILE = ".cascadeignore";
|
|
@@ -256125,7 +256125,7 @@ HIERARCHY CONTEXT: ${this.hierarchyContext}` : ""),
|
|
|
256125
256125
|
const jsonMatch = /\[[\s\S]*\]/.exec(result.content);
|
|
256126
256126
|
if (!jsonMatch) throw new Error("No JSON array found");
|
|
256127
256127
|
const parsed = JSON.parse(jsonMatch[0]);
|
|
256128
|
-
return parsed.map((a2) => ({ ...a2, sectionTitle: assignment.sectionTitle }));
|
|
256128
|
+
return parsed.map((a2) => ({ ...a2, sectionTitle: assignment.sectionTitle, constraints: a2.constraints ?? [] }));
|
|
256129
256129
|
} catch {
|
|
256130
256130
|
return [{
|
|
256131
256131
|
subtaskId: crypto6.randomUUID(),
|
|
@@ -257083,6 +257083,12 @@ SPEC RULES \u2014 each subtask is a self-contained spec slice (workers execute f
|
|
|
257083
257083
|
if (!plan.sections || !Array.isArray(plan.sections) || plan.sections.length === 0) {
|
|
257084
257084
|
throw new Error("Invalid plan: no sections");
|
|
257085
257085
|
}
|
|
257086
|
+
for (const section of plan.sections) {
|
|
257087
|
+
section.constraints ??= [];
|
|
257088
|
+
for (const subtask of section.t3Subtasks ?? []) {
|
|
257089
|
+
subtask.constraints ??= [];
|
|
257090
|
+
}
|
|
257091
|
+
}
|
|
257086
257092
|
const [min, max] = COMPLEXITY_T2_COUNT[plan.complexity] ?? [1, 8];
|
|
257087
257093
|
if (plan.sections.length < min) ;
|
|
257088
257094
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -1897,7 +1897,7 @@ function reconcilePrice(model, live) {
|
|
|
1897
1897
|
}
|
|
1898
1898
|
|
|
1899
1899
|
// src/constants.ts
|
|
1900
|
-
var CASCADE_VERSION = "0.
|
|
1900
|
+
var CASCADE_VERSION = "0.56.0";
|
|
1901
1901
|
var CASCADE_CONFIG_DIR = ".cascade";
|
|
1902
1902
|
var CASCADE_MD_FILE = "CASCADE.md";
|
|
1903
1903
|
var CASCADE_IGNORE_FILE = ".cascadeignore";
|
|
@@ -7872,7 +7872,7 @@ HIERARCHY CONTEXT: ${this.hierarchyContext}` : ""),
|
|
|
7872
7872
|
const jsonMatch = /\[[\s\S]*\]/.exec(result.content);
|
|
7873
7873
|
if (!jsonMatch) throw new Error("No JSON array found");
|
|
7874
7874
|
const parsed = JSON.parse(jsonMatch[0]);
|
|
7875
|
-
return parsed.map((a) => ({ ...a, sectionTitle: assignment.sectionTitle }));
|
|
7875
|
+
return parsed.map((a) => ({ ...a, sectionTitle: assignment.sectionTitle, constraints: a.constraints ?? [] }));
|
|
7876
7876
|
} catch {
|
|
7877
7877
|
return [{
|
|
7878
7878
|
subtaskId: crypto4.randomUUID(),
|
|
@@ -8830,6 +8830,12 @@ SPEC RULES \u2014 each subtask is a self-contained spec slice (workers execute f
|
|
|
8830
8830
|
if (!plan.sections || !Array.isArray(plan.sections) || plan.sections.length === 0) {
|
|
8831
8831
|
throw new Error("Invalid plan: no sections");
|
|
8832
8832
|
}
|
|
8833
|
+
for (const section of plan.sections) {
|
|
8834
|
+
section.constraints ??= [];
|
|
8835
|
+
for (const subtask of section.t3Subtasks ?? []) {
|
|
8836
|
+
subtask.constraints ??= [];
|
|
8837
|
+
}
|
|
8838
|
+
}
|
|
8833
8839
|
const [min, max] = COMPLEXITY_T2_COUNT[plan.complexity] ?? [1, 8];
|
|
8834
8840
|
if (plan.sections.length < min) ;
|
|
8835
8841
|
}
|