sparkecoder 0.1.61 → 0.1.63

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 (168) hide show
  1. package/dist/agent/index.d.ts +3 -3
  2. package/dist/agent/index.js +16 -3
  3. package/dist/agent/index.js.map +1 -1
  4. package/dist/cli.js +16 -3
  5. package/dist/cli.js.map +1 -1
  6. package/dist/db/index.d.ts +2 -2
  7. package/dist/{index-DuGtMaAJ.d.ts → index-Dn-eCGLe.d.ts} +25 -25
  8. package/dist/index.d.ts +5 -5
  9. package/dist/index.js +16 -3
  10. package/dist/index.js.map +1 -1
  11. package/dist/{schema-C7Mm4Ykn.d.ts → schema-XcP0dedO.d.ts} +3 -3
  12. package/dist/{search-C_IFImt1.d.ts → search-DINnDTgj.d.ts} +4 -4
  13. package/dist/server/index.js +16 -3
  14. package/dist/server/index.js.map +1 -1
  15. package/dist/tools/index.d.ts +2 -2
  16. package/package.json +1 -1
  17. package/web/.next/BUILD_ID +1 -1
  18. package/web/.next/standalone/web/.next/BUILD_ID +1 -1
  19. package/web/.next/standalone/web/.next/build-manifest.json +2 -2
  20. package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
  21. package/web/.next/standalone/web/.next/server/app/(main)/page.js.nft.json +1 -1
  22. package/web/.next/standalone/web/.next/server/app/(main)/page_client-reference-manifest.js +1 -1
  23. package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page.js.nft.json +1 -1
  24. package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page_client-reference-manifest.js +1 -1
  25. package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
  26. package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
  27. package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  28. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  29. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  30. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  31. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  32. package/web/.next/standalone/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  33. package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
  34. package/web/.next/standalone/web/.next/server/app/_not-found.rsc +2 -2
  35. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  36. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  37. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  38. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  39. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  40. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  41. package/web/.next/standalone/web/.next/server/app/docs/installation/page_client-reference-manifest.js +1 -1
  42. package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
  43. package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +2 -2
  44. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +2 -2
  45. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
  46. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +2 -2
  47. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +2 -2
  48. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
  49. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
  50. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
  51. package/web/.next/standalone/web/.next/server/app/docs/page_client-reference-manifest.js +1 -1
  52. package/web/.next/standalone/web/.next/server/app/docs/skills/page_client-reference-manifest.js +1 -1
  53. package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
  54. package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +2 -2
  55. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +2 -2
  56. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
  57. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +2 -2
  58. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +2 -2
  59. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
  60. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
  61. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
  62. package/web/.next/standalone/web/.next/server/app/docs/tools/page_client-reference-manifest.js +1 -1
  63. package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
  64. package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +2 -2
  65. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +2 -2
  66. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
  67. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +2 -2
  68. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +2 -2
  69. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
  70. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
  71. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
  72. package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
  73. package/web/.next/standalone/web/.next/server/app/docs.rsc +2 -2
  74. package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +2 -2
  75. package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  76. package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +2 -2
  77. package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +2 -2
  78. package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  79. package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  80. package/web/.next/standalone/web/.next/server/app/embed/[id]/page.js.nft.json +1 -1
  81. package/web/.next/standalone/web/.next/server/app/embed/[id]/page_client-reference-manifest.js +1 -1
  82. package/web/.next/standalone/web/.next/server/app/index.html +1 -1
  83. package/web/.next/standalone/web/.next/server/app/index.rsc +4 -4
  84. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +2 -2
  85. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +2 -2
  86. package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +4 -4
  87. package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  88. package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +2 -2
  89. package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  90. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_e19eaecc._.js → 2374f_04a544c8._.js} +1 -1
  91. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_0d0b1fb9._.js → 2374f_45534372._.js} +1 -1
  92. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_03d22c16._.js → 2374f_5c78460e._.js} +1 -1
  93. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_6166d14d._.js → 2374f_5d0b3394._.js} +1 -1
  94. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_b98835eb._.js → 2374f_5e9eb6da._.js} +1 -1
  95. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_3f7d6d28._.js → 2374f_68abddfe._.js} +1 -1
  96. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_99b7b533._.js → 2374f_72fb9db7._.js} +1 -1
  97. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_6b436efc._.js → 2374f_ab5b97d8._.js} +1 -1
  98. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_e3aec189._.js → 2374f_bfc8ef7d._.js} +1 -1
  99. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_a1a36483._.js → 2374f_c61a33b3._.js} +1 -1
  100. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_976b2ded._.js → 2374f_d5f5b9ba._.js} +1 -1
  101. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_67b9525f._.js → 2374f_db790cfe._.js} +1 -1
  102. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_98eba491._.js → 2374f_de60e6ea._.js} +1 -1
  103. package/web/.next/standalone/web/.next/server/chunks/ssr/{2374f_784d851c._.js → 2374f_e366206f._.js} +1 -1
  104. package/web/.next/standalone/web/.next/server/chunks/ssr/{[root-of-the-server]__4f176a16._.js → [root-of-the-server]__aa788b85._.js} +2 -2
  105. package/web/.next/standalone/web/.next/server/chunks/ssr/{[root-of-the-server]__d59f831d._.js → [root-of-the-server]__d04c460d._.js} +4 -4
  106. package/web/.next/standalone/web/.next/server/chunks/ssr/web_08bbd8c8._.js +7 -0
  107. package/web/.next/standalone/web/.next/server/chunks/ssr/web_2b3a5919._.js +1 -1
  108. package/web/.next/standalone/web/.next/server/chunks/ssr/web_38156da8._.js +1 -1
  109. package/web/.next/standalone/web/.next/server/chunks/ssr/{web_693f514e._.js → web_6fb589ac._.js} +2 -2
  110. package/web/.next/standalone/web/.next/server/chunks/ssr/{web_dc6ce793._.js → web_c729ad51._.js} +2 -2
  111. package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_components_sessions-sidebar_tsx_92510070._.js +1 -1
  112. package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
  113. package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
  114. package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
  115. package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
  116. package/web/.next/standalone/web/.next/static/chunks/{81685e5e8be4eac9.js → 054deec0c7b19894.js} +3 -3
  117. package/web/.next/standalone/web/.next/static/chunks/1ebba7ac024244f9.js +5 -0
  118. package/web/.next/{static/chunks/0358a0e7a40cfb93.css → standalone/web/.next/static/chunks/1f42a42914068041.css} +1 -1
  119. package/web/.next/standalone/web/.next/static/chunks/26eb5fab5216f3cc.js +1 -0
  120. package/web/.next/standalone/web/.next/static/chunks/{95436454a7559b0d.js → 5383c5717758f575.js} +3 -3
  121. package/web/.next/standalone/web/.next/static/chunks/{20e0fa99c7a1c1fc.js → 7fb141141caa4fac.js} +5 -5
  122. package/web/.next/standalone/web/.next/static/chunks/c6f40df16a9396b9.js +1 -0
  123. package/web/.next/standalone/web/.next/static/chunks/ea29be392100ab0f.js +5 -0
  124. package/web/.next/{static/chunks/294ebe8457006bce.js → standalone/web/.next/static/chunks/eea48be65cdb3f4b.js} +2 -2
  125. package/web/.next/{static/chunks/81685e5e8be4eac9.js → standalone/web/.next/static/static/chunks/054deec0c7b19894.js} +3 -3
  126. package/web/.next/standalone/web/.next/static/static/chunks/1ebba7ac024244f9.js +5 -0
  127. package/web/.next/standalone/web/.next/static/static/chunks/{0358a0e7a40cfb93.css → 1f42a42914068041.css} +1 -1
  128. package/web/.next/standalone/web/.next/static/static/chunks/26eb5fab5216f3cc.js +1 -0
  129. package/web/.next/standalone/web/.next/static/static/chunks/{95436454a7559b0d.js → 5383c5717758f575.js} +3 -3
  130. package/web/.next/standalone/web/.next/static/static/chunks/{20e0fa99c7a1c1fc.js → 7fb141141caa4fac.js} +5 -5
  131. package/web/.next/standalone/web/.next/static/static/chunks/c6f40df16a9396b9.js +1 -0
  132. package/web/.next/standalone/web/.next/static/static/chunks/ea29be392100ab0f.js +5 -0
  133. package/web/.next/standalone/web/.next/static/static/chunks/{294ebe8457006bce.js → eea48be65cdb3f4b.js} +2 -2
  134. package/web/.next/standalone/web/package-lock.json +20 -0
  135. package/web/.next/standalone/web/package.json +2 -0
  136. package/web/.next/standalone/web/src/components/ai-elements/complete-task-tool.tsx +36 -60
  137. package/web/.next/standalone/web/src/components/chat-interface.tsx +36 -32
  138. package/web/.next/standalone/web/src/components/sessions-sidebar.tsx +231 -16
  139. package/web/.next/standalone/web/src/lib/api.ts +17 -0
  140. package/web/.next/{standalone/web/.next/static/static/chunks/81685e5e8be4eac9.js → static/chunks/054deec0c7b19894.js} +3 -3
  141. package/web/.next/static/chunks/1ebba7ac024244f9.js +5 -0
  142. package/web/.next/{standalone/web/.next/static/chunks/0358a0e7a40cfb93.css → static/chunks/1f42a42914068041.css} +1 -1
  143. package/web/.next/static/chunks/26eb5fab5216f3cc.js +1 -0
  144. package/web/.next/static/chunks/{95436454a7559b0d.js → 5383c5717758f575.js} +3 -3
  145. package/web/.next/static/chunks/{20e0fa99c7a1c1fc.js → 7fb141141caa4fac.js} +5 -5
  146. package/web/.next/static/chunks/c6f40df16a9396b9.js +1 -0
  147. package/web/.next/static/chunks/ea29be392100ab0f.js +5 -0
  148. package/web/.next/{standalone/web/.next/static/chunks/294ebe8457006bce.js → static/chunks/eea48be65cdb3f4b.js} +2 -2
  149. package/web/package.json +2 -0
  150. package/web/.next/standalone/web/.next/server/chunks/ssr/web_a42a2651._.js +0 -7
  151. package/web/.next/standalone/web/.next/static/chunks/1ecde4c0d426a635.js +0 -1
  152. package/web/.next/standalone/web/.next/static/chunks/36688a049d72e8ab.js +0 -5
  153. package/web/.next/standalone/web/.next/static/chunks/a751ca474cc46212.js +0 -5
  154. package/web/.next/standalone/web/.next/static/static/chunks/1ecde4c0d426a635.js +0 -1
  155. package/web/.next/standalone/web/.next/static/static/chunks/36688a049d72e8ab.js +0 -5
  156. package/web/.next/standalone/web/.next/static/static/chunks/a751ca474cc46212.js +0 -5
  157. package/web/.next/static/chunks/1ecde4c0d426a635.js +0 -1
  158. package/web/.next/static/chunks/36688a049d72e8ab.js +0 -5
  159. package/web/.next/static/chunks/a751ca474cc46212.js +0 -5
  160. /package/web/.next/standalone/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_buildManifest.js +0 -0
  161. /package/web/.next/standalone/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_clientMiddlewareManifest.json +0 -0
  162. /package/web/.next/standalone/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_ssgManifest.js +0 -0
  163. /package/web/.next/standalone/web/.next/static/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_buildManifest.js +0 -0
  164. /package/web/.next/standalone/web/.next/static/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_clientMiddlewareManifest.json +0 -0
  165. /package/web/.next/standalone/web/.next/static/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_ssgManifest.js +0 -0
  166. /package/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_buildManifest.js +0 -0
  167. /package/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_clientMiddlewareManifest.json +0 -0
  168. /package/web/.next/static/{8zJH-RqrUQ3scBGbdaCmn → Xc8ztiG5d6CHUNHm_1G8b}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import 'ai';
2
- import '../schema-C7Mm4Ykn.js';
3
- export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, C as ContextManager, M as MessageAttachment, d as buildSystemPrompt, e as buildTaskPromptAddendum } from '../index-DuGtMaAJ.js';
4
- import '../search-C_IFImt1.js';
2
+ import '../schema-XcP0dedO.js';
3
+ export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, C as ContextManager, M as MessageAttachment, d as buildSystemPrompt, e as buildTaskPromptAddendum } from '../index-Dn-eCGLe.js';
4
+ import '../search-DINnDTgj.js';
5
5
  import 'drizzle-orm/sqlite-core';
6
6
  import 'zod';
@@ -4904,6 +4904,19 @@ ${searchInstructions}
4904
4904
  16. **Diversity** \u2014 Distrust all claims for "one true way"
4905
4905
  17. **Extensibility** \u2014 Design for the future, because it will be here sooner than you think
4906
4906
 
4907
+ ### Follow these design rules for any user interfaces or experiences you write (DESIGN LIKE APPLE):
4908
+
4909
+ 1. **Simplicity** \u2014 Simplicity is the ultimate sophistication. Remove everything unnecessary.
4910
+ 2. **Focus** \u2014 Say no to 1,000 things to say yes to the few that matter most.
4911
+ 3. **Clarity** \u2014 Make the interface so clear that it becomes invisible.
4912
+ 4. **Delight** \u2014 Sweat the details. The smallest touches create the biggest impact.
4913
+ 5. **Intuitive** \u2014 It should just work. No manual required.
4914
+ 6. **Human-Centered** \u2014 Design for people, not technology. Technology should adapt to humans, not the other way around.
4915
+ 7. **Consistency** \u2014 Familiar patterns reduce cognitive load. Be predictable where it matters.
4916
+ 8. **Feedback** \u2014 Every action deserves a response. Make interactions feel alive.
4917
+ 9. **Forgiveness** \u2014 Make it easy to undo. Never punish exploration.
4918
+ 10. **Beauty** \u2014 Aesthetics are not superficial. Beautiful things work better because people care about them.
4919
+
4907
4920
  ### Follow these rules to be a good agent for the user:
4908
4921
 
4909
4922
  1. Understand first - Read relevant files before making any changes. Use the \`explore_agent\` tool for exploratory questions about how things work, and direct searches (grep/rg) for finding exact strings or file names.
@@ -5526,7 +5539,7 @@ ${prompt}` });
5526
5539
 
5527
5540
  ${taskAddendum}`;
5528
5541
  fireWebhook("task.started", { prompt: options.prompt });
5529
- this.context.addUserMessage(options.prompt);
5542
+ await this.context.addUserMessage(options.prompt);
5530
5543
  let iteration = 0;
5531
5544
  while (iteration < maxIterations) {
5532
5545
  iteration++;
@@ -5555,7 +5568,7 @@ ${taskAddendum}`;
5555
5568
  }
5556
5569
  });
5557
5570
  const responseMessages = result.response.messages;
5558
- this.context.addResponseMessages(responseMessages);
5571
+ await this.context.addResponseMessages(responseMessages);
5559
5572
  if (result.text) {
5560
5573
  options.onText?.(result.text);
5561
5574
  fireWebhook("task.message", { iteration, text: result.text });
@@ -5601,7 +5614,7 @@ ${taskAddendum}`;
5601
5614
  iterations: iteration
5602
5615
  };
5603
5616
  }
5604
- this.context.addUserMessage(
5617
+ await this.context.addUserMessage(
5605
5618
  "Continue working on the task. When done, call `complete_task` with the result. If you cannot complete it, call `task_failed` with a reason."
5606
5619
  );
5607
5620
  }