sparkecoder 0.1.109 → 0.1.111

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 (111) hide show
  1. package/dist/agent/index.d.ts +3 -3
  2. package/dist/db/index.d.ts +2 -2
  3. package/dist/{index-Biy5JTop.d.ts → index-Bi8Ek02A.d.ts} +104 -104
  4. package/dist/index.d.ts +5 -5
  5. package/dist/{schema-CYSKJZ3m.d.ts → schema-ecQSnCMz.d.ts} +3 -3
  6. package/dist/{search-CVVfuBPZ.d.ts → search-DOzC4ojH.d.ts} +4 -4
  7. package/dist/tools/index.d.ts +3 -3
  8. package/package.json +1 -1
  9. package/web/.next/BUILD_ID +1 -1
  10. package/web/.next/standalone/web/.next/BUILD_ID +1 -1
  11. package/web/.next/standalone/web/.next/build-manifest.json +2 -2
  12. package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
  13. package/web/.next/standalone/web/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
  14. package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
  15. package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
  16. package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  17. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  18. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  19. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  20. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  21. package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
  22. package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
  23. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  24. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  26. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  29. package/web/.next/standalone/web/.next/server/app/agents.html +1 -1
  30. package/web/.next/standalone/web/.next/server/app/agents.rsc +1 -1
  31. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents/__PAGE__.segment.rsc +1 -1
  32. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents.segment.rsc +1 -1
  33. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p.segment.rsc +1 -1
  34. package/web/.next/standalone/web/.next/server/app/agents.segments/_full.segment.rsc +1 -1
  35. package/web/.next/standalone/web/.next/server/app/agents.segments/_head.segment.rsc +1 -1
  36. package/web/.next/standalone/web/.next/server/app/agents.segments/_index.segment.rsc +1 -1
  37. package/web/.next/standalone/web/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
  38. package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
  39. package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
  40. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
  41. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
  42. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
  43. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
  44. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
  45. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
  46. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
  47. package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
  48. package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
  49. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
  50. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
  51. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
  52. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
  53. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
  54. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
  55. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
  56. package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
  57. package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
  58. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
  59. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
  60. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
  61. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
  62. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
  63. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
  64. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
  65. package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
  66. package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
  67. package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
  68. package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  69. package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
  70. package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
  71. package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  72. package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  73. package/web/.next/standalone/web/.next/server/app/index.html +1 -1
  74. package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
  75. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
  76. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
  77. package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
  78. package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  79. package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
  80. package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  81. package/web/.next/standalone/web/.next/server/app/settings.html +1 -1
  82. package/web/.next/standalone/web/.next/server/app/settings.rsc +2 -2
  83. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings/__PAGE__.segment.rsc +2 -2
  84. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings.segment.rsc +1 -1
  85. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p.segment.rsc +1 -1
  86. package/web/.next/standalone/web/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  87. package/web/.next/standalone/web/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  88. package/web/.next/standalone/web/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  89. package/web/.next/standalone/web/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  90. package/web/.next/standalone/web/.next/server/chunks/ssr/web_src_app_(main)_settings_page_tsx_eb320e07._.js +1 -31
  91. package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
  92. package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
  93. package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
  94. package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
  95. package/web/.next/standalone/web/.next/static/chunks/f6e2bbd3014e1fc9.js +1 -0
  96. package/web/.next/standalone/web/.next/static/static/chunks/f6e2bbd3014e1fc9.js +1 -0
  97. package/web/.next/standalone/web/package-lock.json +7 -7
  98. package/web/.next/standalone/web/src/app/(main)/settings/page.tsx +69 -32
  99. package/web/.next/static/chunks/f6e2bbd3014e1fc9.js +1 -0
  100. package/web/.next/standalone/web/.next/static/chunks/d54077a2bb8314ed.js +0 -31
  101. package/web/.next/standalone/web/.next/static/static/chunks/d54077a2bb8314ed.js +0 -31
  102. package/web/.next/static/chunks/d54077a2bb8314ed.js +0 -31
  103. /package/web/.next/standalone/web/.next/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_buildManifest.js +0 -0
  104. /package/web/.next/standalone/web/.next/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_clientMiddlewareManifest.json +0 -0
  105. /package/web/.next/standalone/web/.next/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_ssgManifest.js +0 -0
  106. /package/web/.next/standalone/web/.next/static/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_buildManifest.js +0 -0
  107. /package/web/.next/standalone/web/.next/static/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_clientMiddlewareManifest.json +0 -0
  108. /package/web/.next/standalone/web/.next/static/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_ssgManifest.js +0 -0
  109. /package/web/.next/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_buildManifest.js +0 -0
  110. /package/web/.next/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_clientMiddlewareManifest.json +0 -0
  111. /package/web/.next/static/{56Y89huUkFkd-4Ip1HcYY → Tm_6r8b-tCAfCBoIt-U0X}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import 'ai';
2
- import '../schema-CYSKJZ3m.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-Biy5JTop.js';
4
- import '../search-CVVfuBPZ.js';
2
+ import '../schema-ecQSnCMz.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-Bi8Ek02A.js';
4
+ import '../search-DOzC4ojH.js';
5
5
  import 'drizzle-orm/sqlite-core';
6
6
  import 'zod';
@@ -1,5 +1,5 @@
1
- import { C as Checkpoint, F as FileBackup, M as ModelMessage, a as Message, S as Session, L as LoadedSkill, T as TodoItem, b as ToolExecution, A as ActiveStream, I as IndexStatusRecord, c as IndexedChunk, d as SubagentExecution, e as SubagentStep, f as Terminal } from '../schema-CYSKJZ3m.js';
2
- export { N as NewActiveStream, g as NewCheckpoint, h as NewFileBackup, i as NewIndexStatusRecord, j as NewIndexedChunk, k as NewMessage, l as NewSession, m as NewSubagentExecution, n as NewTerminal, o as NewTodoItem, p as NewToolExecution, q as SessionConfig, r as TaskConfig, U as UserContentPart, s as UserFilePart, t as UserImagePart, u as UserModelMessage, v as UserTextPart } from '../schema-CYSKJZ3m.js';
1
+ import { C as Checkpoint, F as FileBackup, M as ModelMessage, a as Message, S as Session, L as LoadedSkill, T as TodoItem, b as ToolExecution, A as ActiveStream, I as IndexStatusRecord, c as IndexedChunk, d as SubagentExecution, e as SubagentStep, f as Terminal } from '../schema-ecQSnCMz.js';
2
+ export { N as NewActiveStream, g as NewCheckpoint, h as NewFileBackup, i as NewIndexStatusRecord, j as NewIndexedChunk, k as NewMessage, l as NewSession, m as NewSubagentExecution, n as NewTerminal, o as NewTodoItem, p as NewToolExecution, q as SessionConfig, r as TaskConfig, U as UserContentPart, s as UserFilePart, t as UserImagePart, u as UserModelMessage, v as UserTextPart } from '../schema-ecQSnCMz.js';
3
3
  import 'drizzle-orm/sqlite-core';
4
4
 
5
5
  /**
@@ -1,7 +1,7 @@
1
1
  import { ModelMessage, streamText } from 'ai';
2
- import { S as Session, b as ToolExecution, r as TaskConfig } from './schema-CYSKJZ3m.js';
2
+ import { S as Session, b as ToolExecution, r as TaskConfig } from './schema-ecQSnCMz.js';
3
3
  import { z } from 'zod';
4
- import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from './search-CVVfuBPZ.js';
4
+ import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from './search-DOzC4ojH.js';
5
5
 
6
6
  declare const ToolApprovalConfigSchema: z.ZodObject<{
7
7
  bash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -38,25 +38,25 @@ declare const SessionConfigSchema: z.ZodObject<{
38
38
  iterations: z.ZodOptional<z.ZodNumber>;
39
39
  parentTaskId: z.ZodOptional<z.ZodString>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- status: "running" | "completed" | "failed";
41
+ status: "completed" | "failed" | "running";
42
42
  enabled: boolean;
43
43
  outputSchema: Record<string, unknown>;
44
- webhookUrl?: string | undefined;
44
+ error?: string | undefined;
45
45
  maxIterations?: number | undefined;
46
+ webhookUrl?: string | undefined;
47
+ parentTaskId?: string | undefined;
46
48
  result?: unknown;
47
- error?: string | undefined;
48
49
  iterations?: number | undefined;
49
- parentTaskId?: string | undefined;
50
50
  }, {
51
- status: "running" | "completed" | "failed";
51
+ status: "completed" | "failed" | "running";
52
52
  enabled: boolean;
53
53
  outputSchema: Record<string, unknown>;
54
- webhookUrl?: string | undefined;
54
+ error?: string | undefined;
55
55
  maxIterations?: number | undefined;
56
+ webhookUrl?: string | undefined;
57
+ parentTaskId?: string | undefined;
56
58
  result?: unknown;
57
- error?: string | undefined;
58
59
  iterations?: number | undefined;
59
- parentTaskId?: string | undefined;
60
60
  }>>;
61
61
  computerUseEnabled: z.ZodOptional<z.ZodBoolean>;
62
62
  computerUseDisplayWidth: z.ZodOptional<z.ZodNumber>;
@@ -87,20 +87,20 @@ declare const SessionConfigSchema: z.ZodObject<{
87
87
  lastFiredAt: z.ZodOptional<z.ZodString>;
88
88
  createdAt: z.ZodString;
89
89
  }, "strip", z.ZodTypeAny, {
90
- enabled: boolean;
91
90
  id: string;
92
91
  name: string;
93
- cron: string;
94
- prompt: string;
92
+ enabled: boolean;
95
93
  createdAt: string;
94
+ prompt: string;
95
+ cron: string;
96
96
  replyChannel?: string | undefined;
97
97
  lastFiredAt?: string | undefined;
98
98
  }, {
99
99
  id: string;
100
100
  name: string;
101
- cron: string;
102
- prompt: string;
103
101
  createdAt: string;
102
+ prompt: string;
103
+ cron: string;
104
104
  enabled?: boolean | undefined;
105
105
  replyChannel?: string | undefined;
106
106
  lastFiredAt?: string | undefined;
@@ -115,19 +115,19 @@ declare const SessionConfigSchema: z.ZodObject<{
115
115
  lastHitAt: z.ZodOptional<z.ZodString>;
116
116
  createdAt: z.ZodString;
117
117
  }, "strip", z.ZodTypeAny, {
118
+ token: string;
118
119
  id: string;
119
120
  name: string;
120
121
  createdAt: string;
121
- token: string;
122
122
  wake: "now" | "next";
123
123
  hitCount: number;
124
124
  template?: string | undefined;
125
125
  lastHitAt?: string | undefined;
126
126
  }, {
127
+ token: string;
127
128
  id: string;
128
129
  name: string;
129
130
  createdAt: string;
130
- token: string;
131
131
  wake?: "now" | "next" | undefined;
132
132
  template?: string | undefined;
133
133
  hitCount?: number | undefined;
@@ -137,96 +137,96 @@ declare const SessionConfigSchema: z.ZodObject<{
137
137
  maxContextChars: number;
138
138
  toolApprovals?: Record<string, boolean> | undefined;
139
139
  approvalWebhook?: string | undefined;
140
- skillsDirectory?: string | undefined;
140
+ webhooks?: {
141
+ token: string;
142
+ id: string;
143
+ name: string;
144
+ createdAt: string;
145
+ wake: "now" | "next";
146
+ hitCount: number;
147
+ template?: string | undefined;
148
+ lastHitAt?: string | undefined;
149
+ }[] | undefined;
150
+ slack?: {
151
+ channel?: string | undefined;
152
+ threadTs?: string | undefined;
153
+ teamId?: string | undefined;
154
+ } | undefined;
141
155
  task?: {
142
- status: "running" | "completed" | "failed";
156
+ status: "completed" | "failed" | "running";
143
157
  enabled: boolean;
144
158
  outputSchema: Record<string, unknown>;
145
- webhookUrl?: string | undefined;
159
+ error?: string | undefined;
146
160
  maxIterations?: number | undefined;
161
+ webhookUrl?: string | undefined;
162
+ parentTaskId?: string | undefined;
147
163
  result?: unknown;
148
- error?: string | undefined;
149
164
  iterations?: number | undefined;
150
- parentTaskId?: string | undefined;
151
165
  } | undefined;
166
+ skillsDirectory?: string | undefined;
152
167
  computerUseEnabled?: boolean | undefined;
153
168
  computerUseDisplayWidth?: number | undefined;
154
169
  computerUseDisplayHeight?: number | undefined;
155
170
  role?: "orchestrator" | "worker" | "chat" | undefined;
156
171
  personality?: string | undefined;
157
172
  orchestratorSessionId?: string | undefined;
158
- slack?: {
159
- channel?: string | undefined;
160
- threadTs?: string | undefined;
161
- teamId?: string | undefined;
162
- } | undefined;
163
173
  schedules?: {
164
- enabled: boolean;
165
174
  id: string;
166
175
  name: string;
167
- cron: string;
168
- prompt: string;
176
+ enabled: boolean;
169
177
  createdAt: string;
178
+ prompt: string;
179
+ cron: string;
170
180
  replyChannel?: string | undefined;
171
181
  lastFiredAt?: string | undefined;
172
182
  }[] | undefined;
183
+ }, {
184
+ toolApprovals?: Record<string, boolean> | undefined;
185
+ approvalWebhook?: string | undefined;
173
186
  webhooks?: {
187
+ token: string;
174
188
  id: string;
175
189
  name: string;
176
190
  createdAt: string;
177
- token: string;
178
- wake: "now" | "next";
179
- hitCount: number;
191
+ wake?: "now" | "next" | undefined;
180
192
  template?: string | undefined;
193
+ hitCount?: number | undefined;
181
194
  lastHitAt?: string | undefined;
182
195
  }[] | undefined;
183
- }, {
184
- toolApprovals?: Record<string, boolean> | undefined;
185
- approvalWebhook?: string | undefined;
186
- skillsDirectory?: string | undefined;
187
- maxContextChars?: number | undefined;
196
+ slack?: {
197
+ channel?: string | undefined;
198
+ threadTs?: string | undefined;
199
+ teamId?: string | undefined;
200
+ } | undefined;
188
201
  task?: {
189
- status: "running" | "completed" | "failed";
202
+ status: "completed" | "failed" | "running";
190
203
  enabled: boolean;
191
204
  outputSchema: Record<string, unknown>;
192
- webhookUrl?: string | undefined;
205
+ error?: string | undefined;
193
206
  maxIterations?: number | undefined;
207
+ webhookUrl?: string | undefined;
208
+ parentTaskId?: string | undefined;
194
209
  result?: unknown;
195
- error?: string | undefined;
196
210
  iterations?: number | undefined;
197
- parentTaskId?: string | undefined;
198
211
  } | undefined;
212
+ skillsDirectory?: string | undefined;
213
+ maxContextChars?: number | undefined;
199
214
  computerUseEnabled?: boolean | undefined;
200
215
  computerUseDisplayWidth?: number | undefined;
201
216
  computerUseDisplayHeight?: number | undefined;
202
217
  role?: "orchestrator" | "worker" | "chat" | undefined;
203
218
  personality?: string | undefined;
204
219
  orchestratorSessionId?: string | undefined;
205
- slack?: {
206
- channel?: string | undefined;
207
- threadTs?: string | undefined;
208
- teamId?: string | undefined;
209
- } | undefined;
210
220
  schedules?: {
211
221
  id: string;
212
222
  name: string;
213
- cron: string;
214
- prompt: string;
215
223
  createdAt: string;
224
+ prompt: string;
225
+ cron: string;
216
226
  enabled?: boolean | undefined;
217
227
  replyChannel?: string | undefined;
218
228
  lastFiredAt?: string | undefined;
219
229
  }[] | undefined;
220
- webhooks?: {
221
- id: string;
222
- name: string;
223
- createdAt: string;
224
- token: string;
225
- wake?: "now" | "next" | undefined;
226
- template?: string | undefined;
227
- hitCount?: number | undefined;
228
- lastHitAt?: string | undefined;
229
- }[] | undefined;
230
230
  }>;
231
231
  declare const SparkcoderConfigSchema: z.ZodObject<{
232
232
  defaultModel: z.ZodDefault<z.ZodString>;
@@ -392,15 +392,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
392
392
  expiresAt?: string | undefined;
393
393
  }>>;
394
394
  }, "strip", z.ZodTypeAny, {
395
- enabled: boolean;
396
395
  id: string;
397
396
  name: string;
398
- createdAt: string;
399
397
  transport: "http" | "sse" | "stdio";
400
- args?: string[] | undefined;
398
+ enabled: boolean;
399
+ createdAt: string;
401
400
  url?: string | undefined;
402
401
  headers?: Record<string, string> | undefined;
403
402
  command?: string | undefined;
403
+ args?: string[] | undefined;
404
404
  oauth?: {
405
405
  authorizationUrl?: string | undefined;
406
406
  tokenUrl?: string | undefined;
@@ -413,13 +413,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
413
413
  }, {
414
414
  id: string;
415
415
  name: string;
416
- createdAt: string;
417
416
  transport: "http" | "sse" | "stdio";
418
- enabled?: boolean | undefined;
419
- args?: string[] | undefined;
417
+ createdAt: string;
420
418
  url?: string | undefined;
421
419
  headers?: Record<string, string> | undefined;
422
420
  command?: string | undefined;
421
+ args?: string[] | undefined;
422
+ enabled?: boolean | undefined;
423
423
  oauth?: {
424
424
  authorizationUrl?: string | undefined;
425
425
  tokenUrl?: string | undefined;
@@ -432,15 +432,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
432
432
  }>, "many">>>>;
433
433
  }, "strip", z.ZodTypeAny, {
434
434
  servers?: {
435
- enabled: boolean;
436
435
  id: string;
437
436
  name: string;
438
- createdAt: string;
439
437
  transport: "http" | "sse" | "stdio";
440
- args?: string[] | undefined;
438
+ enabled: boolean;
439
+ createdAt: string;
441
440
  url?: string | undefined;
442
441
  headers?: Record<string, string> | undefined;
443
442
  command?: string | undefined;
443
+ args?: string[] | undefined;
444
444
  oauth?: {
445
445
  authorizationUrl?: string | undefined;
446
446
  tokenUrl?: string | undefined;
@@ -455,13 +455,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
455
455
  servers?: {
456
456
  id: string;
457
457
  name: string;
458
- createdAt: string;
459
458
  transport: "http" | "sse" | "stdio";
460
- enabled?: boolean | undefined;
461
- args?: string[] | undefined;
459
+ createdAt: string;
462
460
  url?: string | undefined;
463
461
  headers?: Record<string, string> | undefined;
464
462
  command?: string | undefined;
463
+ args?: string[] | undefined;
464
+ enabled?: boolean | undefined;
465
465
  oauth?: {
466
466
  authorizationUrl?: string | undefined;
467
467
  tokenUrl?: string | undefined;
@@ -504,6 +504,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
504
504
  allowedEmails?: string[] | undefined;
505
505
  }>>;
506
506
  }, "strip", z.ZodTypeAny, {
507
+ defaultModel: string;
507
508
  toolApprovals: {
508
509
  bash: boolean;
509
510
  write_file: boolean;
@@ -511,7 +512,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
511
512
  load_skill: boolean;
512
513
  todo: boolean;
513
514
  };
514
- defaultModel: string;
515
515
  skills: {
516
516
  directory: string;
517
517
  additionalDirectories: string[];
@@ -527,21 +527,11 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
527
527
  publicUrl?: string | undefined;
528
528
  };
529
529
  databasePath: string;
530
+ workingDirectory?: string | undefined;
530
531
  approvalWebhook?: string | undefined;
531
- slack?: {
532
- botToken?: string | undefined;
533
- signingSecret?: string | undefined;
534
- defaultOrchestratorName?: string | undefined;
535
- allowedUsers?: string[] | undefined;
536
- allowedChannels?: string[] | undefined;
537
- allowDmsFromAnyone?: boolean | undefined;
538
- deniedReplyEnabled?: boolean | undefined;
539
- deniedReplyTemplate?: string | undefined;
540
- } | undefined;
541
532
  webhooks?: {
542
533
  token?: string | undefined;
543
534
  } | undefined;
544
- workingDirectory?: string | undefined;
545
535
  remoteServer?: {
546
536
  url?: string | undefined;
547
537
  authKey?: string | undefined;
@@ -554,17 +544,27 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
554
544
  httpUrl?: string | undefined;
555
545
  namespace?: string | undefined;
556
546
  } | undefined;
547
+ slack?: {
548
+ botToken?: string | undefined;
549
+ signingSecret?: string | undefined;
550
+ defaultOrchestratorName?: string | undefined;
551
+ allowedUsers?: string[] | undefined;
552
+ allowedChannels?: string[] | undefined;
553
+ allowDmsFromAnyone?: boolean | undefined;
554
+ deniedReplyEnabled?: boolean | undefined;
555
+ deniedReplyTemplate?: string | undefined;
556
+ } | undefined;
557
557
  mcp?: {
558
558
  servers?: {
559
- enabled: boolean;
560
559
  id: string;
561
560
  name: string;
562
- createdAt: string;
563
561
  transport: "http" | "sse" | "stdio";
564
- args?: string[] | undefined;
562
+ enabled: boolean;
563
+ createdAt: string;
565
564
  url?: string | undefined;
566
565
  headers?: Record<string, string> | undefined;
567
566
  command?: string | undefined;
567
+ args?: string[] | undefined;
568
568
  oauth?: {
569
569
  authorizationUrl?: string | undefined;
570
570
  tokenUrl?: string | undefined;
@@ -585,6 +585,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
585
585
  allowedEmails?: string[] | undefined;
586
586
  } | undefined;
587
587
  }, {
588
+ defaultModel?: string | undefined;
589
+ workingDirectory?: string | undefined;
588
590
  toolApprovals?: {
589
591
  bash?: boolean | undefined;
590
592
  write_file?: boolean | undefined;
@@ -593,21 +595,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
593
595
  todo?: boolean | undefined;
594
596
  } | undefined;
595
597
  approvalWebhook?: string | undefined;
596
- slack?: {
597
- botToken?: string | undefined;
598
- signingSecret?: string | undefined;
599
- defaultOrchestratorName?: string | undefined;
600
- allowedUsers?: string[] | undefined;
601
- allowedChannels?: string[] | undefined;
602
- allowDmsFromAnyone?: boolean | undefined;
603
- deniedReplyEnabled?: boolean | undefined;
604
- deniedReplyTemplate?: string | undefined;
605
- } | undefined;
606
- webhooks?: {
607
- token?: string | undefined;
608
- } | undefined;
609
- workingDirectory?: string | undefined;
610
- defaultModel?: string | undefined;
611
598
  skills?: {
612
599
  directory?: string | undefined;
613
600
  additionalDirectories?: string[] | undefined;
@@ -622,6 +609,9 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
622
609
  host?: string | undefined;
623
610
  publicUrl?: string | undefined;
624
611
  } | undefined;
612
+ webhooks?: {
613
+ token?: string | undefined;
614
+ } | undefined;
625
615
  databasePath?: string | undefined;
626
616
  remoteServer?: {
627
617
  url?: string | undefined;
@@ -635,17 +625,27 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
635
625
  include?: string[] | undefined;
636
626
  exclude?: string[] | undefined;
637
627
  } | undefined;
628
+ slack?: {
629
+ botToken?: string | undefined;
630
+ signingSecret?: string | undefined;
631
+ defaultOrchestratorName?: string | undefined;
632
+ allowedUsers?: string[] | undefined;
633
+ allowedChannels?: string[] | undefined;
634
+ allowDmsFromAnyone?: boolean | undefined;
635
+ deniedReplyEnabled?: boolean | undefined;
636
+ deniedReplyTemplate?: string | undefined;
637
+ } | undefined;
638
638
  mcp?: {
639
639
  servers?: {
640
640
  id: string;
641
641
  name: string;
642
- createdAt: string;
643
642
  transport: "http" | "sse" | "stdio";
644
- enabled?: boolean | undefined;
645
- args?: string[] | undefined;
643
+ createdAt: string;
646
644
  url?: string | undefined;
647
645
  headers?: Record<string, string> | undefined;
648
646
  command?: string | undefined;
647
+ args?: string[] | undefined;
648
+ enabled?: boolean | undefined;
649
649
  oauth?: {
650
650
  authorizationUrl?: string | undefined;
651
651
  tokenUrl?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as ResolvedConfig } from './index-Biy5JTop.js';
2
- export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-Biy5JTop.js';
1
+ import { R as ResolvedConfig } from './index-Bi8Ek02A.js';
2
+ export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-Bi8Ek02A.js';
3
3
  export { ServerOptions, createApp, startServer, stopServer } from './server/index.js';
4
4
  export { checkpointQueries, closeDatabase, fileBackupQueries, getDb, initDatabase, messageQueries, sessionQueries, skillQueries, todoQueries, toolExecutionQueries } from './db/index.js';
5
- import { F as FileBackup, C as Checkpoint } from './schema-CYSKJZ3m.js';
6
- export { a as Message, M as ModelMessage, S as Session, q as SessionConfig, f as Terminal, T as TodoItem, b as ToolExecution } from './schema-CYSKJZ3m.js';
5
+ import { F as FileBackup, C as Checkpoint } from './schema-ecQSnCMz.js';
6
+ export { a as Message, M as ModelMessage, S as Session, q as SessionConfig, f as Terminal, T as TodoItem, b as ToolExecution } from './schema-ecQSnCMz.js';
7
7
  export { createLoadSkillTool, createReadFileTool, createTodoTool, createTools } from './tools/index.js';
8
- export { c as createBashTool, a as createWriteFileTool } from './search-CVVfuBPZ.js';
8
+ export { c as createBashTool, a as createWriteFileTool } from './search-DOzC4ojH.js';
9
9
  import 'ai';
10
10
  import 'zod';
11
11
  import 'hono/types';
@@ -85,7 +85,7 @@ declare const sessions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
85
85
  tableName: "sessions";
86
86
  dataType: "string";
87
87
  columnType: "SQLiteText";
88
- data: "completed" | "error" | "active" | "waiting";
88
+ data: "error" | "completed" | "active" | "waiting";
89
89
  driverParam: string;
90
90
  notNull: true;
91
91
  hasDefault: true;
@@ -391,7 +391,7 @@ declare const toolExecutions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
391
391
  tableName: "tool_executions";
392
392
  dataType: "string";
393
393
  columnType: "SQLiteText";
394
- data: "completed" | "error" | "pending" | "approved" | "rejected";
394
+ data: "error" | "completed" | "pending" | "approved" | "rejected";
395
395
  driverParam: string;
396
396
  notNull: true;
397
397
  hasDefault: true;
@@ -814,7 +814,7 @@ declare const terminals: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
814
814
  tableName: "terminals";
815
815
  dataType: "string";
816
816
  columnType: "SQLiteText";
817
- data: "running" | "error" | "stopped";
817
+ data: "error" | "running" | "stopped";
818
818
  driverParam: string;
819
819
  notNull: true;
820
820
  hasDefault: true;
@@ -16,11 +16,11 @@ interface BashToolOptions {
16
16
  declare function createBashTool(options: BashToolOptions): ai.Tool<{
17
17
  background: boolean;
18
18
  id?: string | undefined;
19
- input?: string | undefined;
20
19
  command?: string | undefined;
20
+ input?: string | undefined;
21
21
  kill?: boolean | undefined;
22
22
  tail?: number | undefined;
23
- key?: "Enter" | "Escape" | "Up" | "Down" | "Left" | "Right" | "Tab" | "C-c" | "C-d" | "y" | "n" | undefined;
23
+ key?: "y" | "Enter" | "Escape" | "Up" | "Down" | "Left" | "Right" | "Tab" | "C-c" | "C-d" | "n" | undefined;
24
24
  }, {
25
25
  success: boolean;
26
26
  id: string;
@@ -66,7 +66,7 @@ declare function createBashTool(options: BashToolOptions): ai.Tool<{
66
66
  id: string;
67
67
  output: string;
68
68
  exitCode: number;
69
- status: "running" | "completed" | "error" | "stopped";
69
+ status: "error" | "completed" | "running" | "stopped";
70
70
  message?: undefined;
71
71
  error?: undefined;
72
72
  } | {
@@ -218,8 +218,8 @@ interface SearchToolOptions {
218
218
  * Progress is streamed back to the UI so users can see exploration happening.
219
219
  */
220
220
  declare function createSearchTool(options: SearchToolOptions): ai.Tool<{
221
- query: string;
222
221
  context: string;
222
+ query: string;
223
223
  }, {
224
224
  success: boolean;
225
225
  error: string;
@@ -1,7 +1,7 @@
1
1
  import * as ai from 'ai';
2
2
  import { ToolSet } from 'ai';
3
- import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from '../search-CVVfuBPZ.js';
4
- export { b as BashToolOptions, d as SearchToolOptions, e as WriteFileToolOptions, c as createBashTool, f as createSearchTool, a as createWriteFileTool } from '../search-CVVfuBPZ.js';
3
+ import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from '../search-DOzC4ojH.js';
4
+ export { b as BashToolOptions, d as SearchToolOptions, e as WriteFileToolOptions, c as createBashTool, f as createSearchTool, a as createWriteFileTool } from '../search-DOzC4ojH.js';
5
5
 
6
6
  interface TaskCompletionSignal {
7
7
  status: 'completed' | 'failed';
@@ -110,7 +110,7 @@ interface TodoToolOptions {
110
110
  workingDirectory: string;
111
111
  }
112
112
  declare function createTodoTool(options: TodoToolOptions): ai.Tool<{
113
- action: "clear" | "add" | "list" | "mark" | "save_plan" | "list_plans" | "get_plan" | "delete_plan";
113
+ action: "list" | "add" | "mark" | "clear" | "save_plan" | "list_plans" | "get_plan" | "delete_plan";
114
114
  status?: "completed" | "pending" | "in_progress" | "cancelled" | undefined;
115
115
  items?: {
116
116
  content: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sparkecoder",
3
- "version": "0.1.109",
3
+ "version": "0.1.111",
4
4
  "description": "A powerful coding agent CLI with HTTP API for development environments",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1 +1 @@
1
- 56Y89huUkFkd-4Ip1HcYY
1
+ Tm_6r8b-tCAfCBoIt-U0X
@@ -1 +1 @@
1
- 56Y89huUkFkd-4Ip1HcYY
1
+ Tm_6r8b-tCAfCBoIt-U0X
@@ -7,8 +7,8 @@
7
7
  "static/chunks/a6dad97d9634a72d.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/56Y89huUkFkd-4Ip1HcYY/_ssgManifest.js",
11
- "static/56Y89huUkFkd-4Ip1HcYY/_buildManifest.js"
10
+ "static/Tm_6r8b-tCAfCBoIt-U0X/_ssgManifest.js",
11
+ "static/Tm_6r8b-tCAfCBoIt-U0X/_buildManifest.js"
12
12
  ],
13
13
  "rootMainFiles": [
14
14
  "static/chunks/651e187cc15d66de.js",
@@ -367,8 +367,8 @@
367
367
  "dynamicRoutes": {},
368
368
  "notFoundRoutes": [],
369
369
  "preview": {
370
- "previewModeId": "0ef14e42ac4566a4eed20bf15c098b0a",
371
- "previewModeSigningKey": "d0f0e4404081fcfa09c60551640b37413f98daa77a0181433d27be7226a726bb",
372
- "previewModeEncryptionKey": "eb2d6326764a24d96ba2a46bfc36d822ebe19d92098df9b006c7fe55164d4ab2"
370
+ "previewModeId": "9e865532c213e603c793b3abdd282b17",
371
+ "previewModeSigningKey": "c9af3eb16d46126975e8a2c3005a7ca941cdd7b75e2e3a3dce1abbb467d54db9",
372
+ "previewModeEncryptionKey": "beb9734f9d8722ceb37d3d0c45261af288f9727dd8dc41baf3d03cac47d0b134"
373
373
  }
374
374
  }