sparkecoder 0.1.84 → 0.1.86

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.
Files changed (89) hide show
  1. package/dist/agent/index.js +30 -2
  2. package/dist/agent/index.js.map +1 -1
  3. package/dist/cli.js +30 -2
  4. package/dist/cli.js.map +1 -1
  5. package/dist/db/index.js.map +1 -1
  6. package/dist/index.js +30 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/server/index.js +30 -2
  9. package/dist/server/index.js.map +1 -1
  10. package/dist/tools/index.d.ts +1 -8
  11. package/dist/tools/index.js +30 -2
  12. package/dist/tools/index.js.map +1 -1
  13. package/package.json +1 -1
  14. package/web/.next/BUILD_ID +1 -1
  15. package/web/.next/standalone/web/.next/BUILD_ID +1 -1
  16. package/web/.next/standalone/web/.next/build-manifest.json +2 -2
  17. package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
  18. package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
  19. package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
  20. package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  21. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  22. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  23. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  24. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  25. package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
  26. package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
  27. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  28. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  29. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  30. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  31. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  32. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  33. package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
  34. package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
  35. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
  36. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
  37. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
  38. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
  39. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
  40. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
  41. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
  42. package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
  43. package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
  44. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
  45. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
  46. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
  47. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
  48. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
  49. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
  50. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
  51. package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
  52. package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
  53. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
  54. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
  55. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
  56. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
  57. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
  58. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
  59. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
  60. package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
  61. package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
  62. package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
  63. package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  64. package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
  65. package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
  66. package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  67. package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  68. package/web/.next/standalone/web/.next/server/app/index.html +1 -1
  69. package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
  70. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
  71. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
  72. package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
  73. package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  74. package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
  75. package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  76. package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
  77. package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
  78. package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
  79. package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
  80. package/web/.next/standalone/web/package-lock.json +3 -3
  81. /package/web/.next/standalone/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_buildManifest.js +0 -0
  82. /package/web/.next/standalone/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_clientMiddlewareManifest.json +0 -0
  83. /package/web/.next/standalone/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_ssgManifest.js +0 -0
  84. /package/web/.next/standalone/web/.next/static/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_buildManifest.js +0 -0
  85. /package/web/.next/standalone/web/.next/static/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_clientMiddlewareManifest.json +0 -0
  86. /package/web/.next/standalone/web/.next/static/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_ssgManifest.js +0 -0
  87. /package/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_buildManifest.js +0 -0
  88. /package/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_clientMiddlewareManifest.json +0 -0
  89. /package/web/.next/static/{VBh1WkbuEIMDsCx5In9kr → Pt6kwIO6lniM7h7I5E6kk}/_ssgManifest.js +0 -0
package/dist/cli.js CHANGED
@@ -448,7 +448,11 @@ var init_remote = __esm({
448
448
  return result.files;
449
449
  },
450
450
  async getDownloadUrl(fileId) {
451
- return storageApi(`/download/${fileId}`);
451
+ const result = await storageApi(`/download/${fileId}`);
452
+ return {
453
+ downloadUrl: result.shortUrl || result.downloadUrl,
454
+ expiresAt: result.expiresAt
455
+ };
452
456
  },
453
457
  async deleteFile(fileId) {
454
458
  await storageApi(`/files/${fileId}`, { method: "DELETE" });
@@ -1198,10 +1202,34 @@ Plans should be markdown with this structure:
1198
1202
  error: `Todo item not found: ${todoId}`
1199
1203
  };
1200
1204
  }
1205
+ let planContinuation;
1206
+ if (status === "completed") {
1207
+ const allTodos = await todoQueries.getBySession(options.sessionId);
1208
+ const allDone = allTodos.every(
1209
+ (t) => t.status === "completed" || t.status === "cancelled"
1210
+ );
1211
+ if (allDone) {
1212
+ const plansDir = getPlansDir(options.workingDirectory, options.sessionId);
1213
+ if (existsSync9(plansDir)) {
1214
+ const planFiles = readdirSync(plansDir).filter((f) => f.endsWith(".md"));
1215
+ for (const f of planFiles) {
1216
+ try {
1217
+ const content = await readFile6(join4(plansDir, f), "utf-8");
1218
+ if (parseNextUncompletedPhase(content) !== null) {
1219
+ 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.";
1220
+ break;
1221
+ }
1222
+ } catch {
1223
+ }
1224
+ }
1225
+ }
1226
+ }
1227
+ }
1201
1228
  return {
1202
1229
  success: true,
1203
1230
  action: "mark",
1204
- item: formatTodoItem(updated)
1231
+ item: formatTodoItem(updated),
1232
+ ...planContinuation ? { planContinuation } : {}
1205
1233
  };
1206
1234
  }
1207
1235
  case "clear": {