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/cli.js
CHANGED
|
@@ -1746,7 +1746,7 @@ var CASCADE_VERSION, CASCADE_CONFIG_FILE, CASCADE_DB_FILE, CASCADE_DASHBOARD_SEC
|
|
|
1746
1746
|
var init_constants = __esm({
|
|
1747
1747
|
"src/constants.ts"() {
|
|
1748
1748
|
init_pricing();
|
|
1749
|
-
CASCADE_VERSION = "0.
|
|
1749
|
+
CASCADE_VERSION = "0.56.0";
|
|
1750
1750
|
CASCADE_CONFIG_FILE = ".cascade/config.json";
|
|
1751
1751
|
CASCADE_DB_FILE = ".cascade/memory.db";
|
|
1752
1752
|
CASCADE_DASHBOARD_SECRET_FILE = ".cascade/dashboard-secret";
|
|
@@ -10165,7 +10165,7 @@ HIERARCHY CONTEXT: ${this.hierarchyContext}` : ""),
|
|
|
10165
10165
|
const jsonMatch = /\[[\s\S]*\]/.exec(result.content);
|
|
10166
10166
|
if (!jsonMatch) throw new Error("No JSON array found");
|
|
10167
10167
|
const parsed = JSON.parse(jsonMatch[0]);
|
|
10168
|
-
return parsed.map((a) => ({ ...a, sectionTitle: assignment.sectionTitle }));
|
|
10168
|
+
return parsed.map((a) => ({ ...a, sectionTitle: assignment.sectionTitle, constraints: a.constraints ?? [] }));
|
|
10169
10169
|
} catch {
|
|
10170
10170
|
return [{
|
|
10171
10171
|
subtaskId: randomUUID(),
|
|
@@ -11126,6 +11126,12 @@ SPEC RULES \u2014 each subtask is a self-contained spec slice (workers execute f
|
|
|
11126
11126
|
if (!plan.sections || !Array.isArray(plan.sections) || plan.sections.length === 0) {
|
|
11127
11127
|
throw new Error("Invalid plan: no sections");
|
|
11128
11128
|
}
|
|
11129
|
+
for (const section of plan.sections) {
|
|
11130
|
+
section.constraints ??= [];
|
|
11131
|
+
for (const subtask of section.t3Subtasks ?? []) {
|
|
11132
|
+
subtask.constraints ??= [];
|
|
11133
|
+
}
|
|
11134
|
+
}
|
|
11129
11135
|
const [min, max] = COMPLEXITY_T2_COUNT[plan.complexity] ?? [1, 8];
|
|
11130
11136
|
if (plan.sections.length < min) ;
|
|
11131
11137
|
}
|