sparkecoder 0.1.84 → 0.1.85
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/agent/index.js +25 -1
- package/dist/agent/index.js.map +1 -1
- package/dist/cli.js +25 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/server/index.js +25 -1
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +1 -8
- package/dist/tools/index.js +25 -1
- package/dist/tools/index.js.map +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
- package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
- /package/web/.next/standalone/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_ssgManifest.js +0 -0
- /package/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_buildManifest.js +0 -0
- /package/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → J0gen1p9aNjUNIU1NDO5h}/_ssgManifest.js +0 -0
package/dist/tools/index.d.ts
CHANGED
|
@@ -104,7 +104,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
104
104
|
createdAt: string;
|
|
105
105
|
}[];
|
|
106
106
|
stats?: undefined;
|
|
107
|
-
item?: undefined;
|
|
108
107
|
itemsRemoved?: undefined;
|
|
109
108
|
plans?: undefined;
|
|
110
109
|
count?: undefined;
|
|
@@ -131,7 +130,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
131
130
|
createdAt: string;
|
|
132
131
|
}[];
|
|
133
132
|
itemsAdded?: undefined;
|
|
134
|
-
item?: undefined;
|
|
135
133
|
itemsRemoved?: undefined;
|
|
136
134
|
plans?: undefined;
|
|
137
135
|
count?: undefined;
|
|
@@ -141,6 +139,7 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
141
139
|
deleted?: undefined;
|
|
142
140
|
error?: undefined;
|
|
143
141
|
} | {
|
|
142
|
+
planContinuation?: string | undefined;
|
|
144
143
|
success: boolean;
|
|
145
144
|
action: string;
|
|
146
145
|
item: {
|
|
@@ -168,7 +167,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
168
167
|
itemsAdded?: undefined;
|
|
169
168
|
items?: undefined;
|
|
170
169
|
stats?: undefined;
|
|
171
|
-
item?: undefined;
|
|
172
170
|
plans?: undefined;
|
|
173
171
|
count?: undefined;
|
|
174
172
|
planName?: undefined;
|
|
@@ -192,7 +190,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
192
190
|
itemsAdded?: undefined;
|
|
193
191
|
items?: undefined;
|
|
194
192
|
stats?: undefined;
|
|
195
|
-
item?: undefined;
|
|
196
193
|
itemsRemoved?: undefined;
|
|
197
194
|
plans?: undefined;
|
|
198
195
|
count?: undefined;
|
|
@@ -212,7 +209,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
212
209
|
itemsAdded?: undefined;
|
|
213
210
|
items?: undefined;
|
|
214
211
|
stats?: undefined;
|
|
215
|
-
item?: undefined;
|
|
216
212
|
itemsRemoved?: undefined;
|
|
217
213
|
planName?: undefined;
|
|
218
214
|
content?: undefined;
|
|
@@ -228,7 +224,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
228
224
|
itemsAdded?: undefined;
|
|
229
225
|
items?: undefined;
|
|
230
226
|
stats?: undefined;
|
|
231
|
-
item?: undefined;
|
|
232
227
|
itemsRemoved?: undefined;
|
|
233
228
|
plans?: undefined;
|
|
234
229
|
count?: undefined;
|
|
@@ -242,7 +237,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
242
237
|
itemsAdded?: undefined;
|
|
243
238
|
items?: undefined;
|
|
244
239
|
stats?: undefined;
|
|
245
|
-
item?: undefined;
|
|
246
240
|
itemsRemoved?: undefined;
|
|
247
241
|
plans?: undefined;
|
|
248
242
|
count?: undefined;
|
|
@@ -256,7 +250,6 @@ declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
|
|
|
256
250
|
itemsAdded?: undefined;
|
|
257
251
|
items?: undefined;
|
|
258
252
|
stats?: undefined;
|
|
259
|
-
item?: undefined;
|
|
260
253
|
itemsRemoved?: undefined;
|
|
261
254
|
plans?: undefined;
|
|
262
255
|
count?: undefined;
|
package/dist/tools/index.js
CHANGED
|
@@ -2883,10 +2883,34 @@ Plans should be markdown with this structure:
|
|
|
2883
2883
|
error: `Todo item not found: ${todoId}`
|
|
2884
2884
|
};
|
|
2885
2885
|
}
|
|
2886
|
+
let planContinuation;
|
|
2887
|
+
if (status === "completed") {
|
|
2888
|
+
const allTodos = await todoQueries.getBySession(options.sessionId);
|
|
2889
|
+
const allDone = allTodos.every(
|
|
2890
|
+
(t) => t.status === "completed" || t.status === "cancelled"
|
|
2891
|
+
);
|
|
2892
|
+
if (allDone) {
|
|
2893
|
+
const plansDir = getPlansDir(options.workingDirectory, options.sessionId);
|
|
2894
|
+
if (existsSync9(plansDir)) {
|
|
2895
|
+
const planFiles = readdirSync(plansDir).filter((f) => f.endsWith(".md"));
|
|
2896
|
+
for (const f of planFiles) {
|
|
2897
|
+
try {
|
|
2898
|
+
const content = await readFile6(join4(plansDir, f), "utf-8");
|
|
2899
|
+
if (parseNextUncompletedPhase(content) !== null) {
|
|
2900
|
+
planContinuation = "All todos are done but your plan has remaining phases. Update the plan now: mark the completed phase heading with [completed] and its items with [x], then call save_plan to save \u2014 new todos will be auto-created from the next phase.";
|
|
2901
|
+
break;
|
|
2902
|
+
}
|
|
2903
|
+
} catch {
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2886
2909
|
return {
|
|
2887
2910
|
success: true,
|
|
2888
2911
|
action: "mark",
|
|
2889
|
-
item: formatTodoItem(updated)
|
|
2912
|
+
item: formatTodoItem(updated),
|
|
2913
|
+
...planContinuation ? { planContinuation } : {}
|
|
2890
2914
|
};
|
|
2891
2915
|
}
|
|
2892
2916
|
case "clear": {
|