sparkecoder 0.1.133 → 0.1.135

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 (118) hide show
  1. package/dist/agent/index.d.ts +3 -3
  2. package/dist/db/index.d.ts +2 -2
  3. package/dist/{index-Bc0p0VPE.d.ts → index-UtOo3D9f.d.ts} +101 -101
  4. package/dist/index.d.ts +5 -5
  5. package/dist/{schema-BSz4MzhJ.d.ts → schema-BTrvqaJL.d.ts} +3 -3
  6. package/dist/{search-DOzC4ojH.d.ts → search-BRnGaIl-.d.ts} +7 -7
  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/_global-error.html +2 -2
  14. package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
  15. package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  16. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  17. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  18. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  19. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  20. package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
  21. package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
  22. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  23. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  24. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  25. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  26. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  27. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  28. package/web/.next/standalone/web/.next/server/app/agents.html +1 -1
  29. package/web/.next/standalone/web/.next/server/app/agents.rsc +1 -1
  30. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents/__PAGE__.segment.rsc +1 -1
  31. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents.segment.rsc +1 -1
  32. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p.segment.rsc +1 -1
  33. package/web/.next/standalone/web/.next/server/app/agents.segments/_full.segment.rsc +1 -1
  34. package/web/.next/standalone/web/.next/server/app/agents.segments/_head.segment.rsc +1 -1
  35. package/web/.next/standalone/web/.next/server/app/agents.segments/_index.segment.rsc +1 -1
  36. package/web/.next/standalone/web/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
  37. package/web/.next/standalone/web/.next/server/app/api/config/route.js +1 -1
  38. package/web/.next/standalone/web/.next/server/app/api/config/route.js.nft.json +1 -1
  39. package/web/.next/standalone/web/.next/server/app/api/health/route.js +1 -1
  40. package/web/.next/standalone/web/.next/server/app/api/health/route.js.nft.json +1 -1
  41. package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
  42. package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
  43. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
  44. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
  45. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
  46. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
  47. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
  48. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
  49. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
  50. package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
  51. package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
  52. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
  53. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
  54. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
  55. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
  56. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
  57. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
  58. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
  59. package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
  60. package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
  61. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
  62. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
  63. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
  64. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
  65. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
  66. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
  67. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
  68. package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
  69. package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
  70. package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
  71. package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  72. package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
  73. package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
  74. package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  75. package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  76. package/web/.next/standalone/web/.next/server/app/index.html +1 -1
  77. package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
  78. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
  79. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
  80. package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
  81. package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  82. package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
  83. package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  84. package/web/.next/standalone/web/.next/server/app/settings.html +1 -1
  85. package/web/.next/standalone/web/.next/server/app/settings.rsc +1 -1
  86. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings/__PAGE__.segment.rsc +1 -1
  87. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings.segment.rsc +1 -1
  88. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p.segment.rsc +1 -1
  89. package/web/.next/standalone/web/.next/server/app/settings.segments/_full.segment.rsc +1 -1
  90. package/web/.next/standalone/web/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  91. package/web/.next/standalone/web/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  92. package/web/.next/standalone/web/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  93. package/web/.next/standalone/web/.next/server/app/sfapi/[...path]/route.js +1 -1
  94. package/web/.next/standalone/web/.next/server/app/sfapi/[...path]/route.js.nft.json +1 -1
  95. package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__78517719._.js +3 -0
  96. package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__9d50fe63._.js +3 -0
  97. package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__ce44139a._.js +3 -0
  98. package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
  99. package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
  100. package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
  101. package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
  102. package/web/.next/standalone/web/package-lock.json +7 -7
  103. package/web/.next/standalone/web/src/app/api/config/route.ts +4 -38
  104. package/web/.next/standalone/web/src/app/api/health/route.ts +3 -33
  105. package/web/.next/standalone/web/src/app/sfapi/[...path]/route.ts +22 -34
  106. package/web/.next/standalone/web/src/lib/local-api.ts +42 -0
  107. package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__36edac7c._.js +0 -3
  108. package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__74ebc442._.js +0 -3
  109. package/web/.next/standalone/web/.next/server/chunks/[root-of-the-server]__912d97d3._.js +0 -3
  110. /package/web/.next/standalone/web/.next/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_buildManifest.js +0 -0
  111. /package/web/.next/standalone/web/.next/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_clientMiddlewareManifest.json +0 -0
  112. /package/web/.next/standalone/web/.next/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_ssgManifest.js +0 -0
  113. /package/web/.next/standalone/web/.next/static/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_buildManifest.js +0 -0
  114. /package/web/.next/standalone/web/.next/static/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_clientMiddlewareManifest.json +0 -0
  115. /package/web/.next/standalone/web/.next/static/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_ssgManifest.js +0 -0
  116. /package/web/.next/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_buildManifest.js +0 -0
  117. /package/web/.next/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_clientMiddlewareManifest.json +0 -0
  118. /package/web/.next/static/{Mvd2J29fa2_xre21byVay → X_TnGNSMsK4hjzA1W-_Gz}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import 'ai';
2
- import '../schema-BSz4MzhJ.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-Bc0p0VPE.js';
4
- import '../search-DOzC4ojH.js';
2
+ import '../schema-BTrvqaJL.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-UtOo3D9f.js';
4
+ import '../search-BRnGaIl-.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-BSz4MzhJ.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, s as TaskMcpServerSummary, t as TaskSkillSummary, U as UserContentPart, u as UserFilePart, v as UserImagePart, w as UserModelMessage, x as UserTextPart } from '../schema-BSz4MzhJ.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-BTrvqaJL.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, s as TaskMcpServerSummary, t as TaskSkillSummary, U as UserContentPart, u as UserFilePart, v as UserImagePart, w as UserModelMessage, x as UserTextPart } from '../schema-BTrvqaJL.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-BSz4MzhJ.js';
2
+ import { S as Session, b as ToolExecution, r as TaskConfig } from './schema-BTrvqaJL.js';
3
3
  import { z } from 'zod';
4
- import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from './search-DOzC4ojH.js';
4
+ import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from './search-BRnGaIl-.js';
5
5
 
6
6
  declare const ToolApprovalConfigSchema: z.ZodObject<{
7
7
  bash: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
@@ -39,25 +39,25 @@ declare const SessionConfigSchema: z.ZodObject<{
39
39
  iterations: z.ZodOptional<z.ZodNumber>;
40
40
  parentTaskId: z.ZodOptional<z.ZodString>;
41
41
  }, "strip", z.ZodTypeAny, {
42
- status: "completed" | "failed" | "running";
42
+ status: "completed" | "running" | "failed";
43
43
  enabled: boolean;
44
44
  outputSchema: Record<string, unknown>;
45
45
  error?: string | undefined;
46
- maxIterations?: number | undefined;
47
46
  webhookUrl?: string | undefined;
48
- parentTaskId?: string | undefined;
47
+ maxIterations?: number | undefined;
49
48
  result?: unknown;
50
49
  iterations?: number | undefined;
50
+ parentTaskId?: string | undefined;
51
51
  }, {
52
- status: "completed" | "failed" | "running";
52
+ status: "completed" | "running" | "failed";
53
53
  enabled: boolean;
54
54
  outputSchema: Record<string, unknown>;
55
55
  error?: string | undefined;
56
- maxIterations?: number | undefined;
57
56
  webhookUrl?: string | undefined;
58
- parentTaskId?: string | undefined;
57
+ maxIterations?: number | undefined;
59
58
  result?: unknown;
60
59
  iterations?: number | undefined;
60
+ parentTaskId?: string | undefined;
61
61
  }>>;
62
62
  role: z.ZodOptional<z.ZodEnum<["orchestrator", "worker", "chat"]>>;
63
63
  personality: z.ZodOptional<z.ZodString>;
@@ -85,11 +85,11 @@ declare const SessionConfigSchema: z.ZodObject<{
85
85
  lastFiredAt: z.ZodOptional<z.ZodString>;
86
86
  createdAt: z.ZodString;
87
87
  }, "strip", z.ZodTypeAny, {
88
- enabled: boolean;
89
88
  id: string;
90
89
  name: string;
91
90
  createdAt: string;
92
91
  prompt: string;
92
+ enabled: boolean;
93
93
  cron: string;
94
94
  replyChannel?: string | undefined;
95
95
  lastFiredAt?: string | undefined;
@@ -113,19 +113,19 @@ declare const SessionConfigSchema: z.ZodObject<{
113
113
  lastHitAt: z.ZodOptional<z.ZodString>;
114
114
  createdAt: z.ZodString;
115
115
  }, "strip", z.ZodTypeAny, {
116
- token: string;
117
116
  id: string;
118
117
  name: string;
119
118
  createdAt: string;
119
+ token: string;
120
120
  wake: "now" | "next";
121
121
  hitCount: number;
122
122
  template?: string | undefined;
123
123
  lastHitAt?: string | undefined;
124
124
  }, {
125
- token: string;
126
125
  id: string;
127
126
  name: string;
128
127
  createdAt: string;
128
+ token: string;
129
129
  wake?: "now" | "next" | undefined;
130
130
  template?: string | undefined;
131
131
  hitCount?: number | undefined;
@@ -135,80 +135,70 @@ declare const SessionConfigSchema: z.ZodObject<{
135
135
  maxContextChars: number;
136
136
  toolApprovals?: Record<string, boolean> | undefined;
137
137
  approvalWebhook?: string | undefined;
138
- webhooks?: {
139
- token: string;
140
- id: string;
141
- name: string;
142
- createdAt: string;
143
- wake: "now" | "next";
144
- hitCount: number;
145
- template?: string | undefined;
146
- lastHitAt?: string | undefined;
147
- }[] | undefined;
148
- slack?: {
149
- channel?: string | undefined;
150
- threadTs?: string | undefined;
151
- teamId?: string | undefined;
152
- } | undefined;
138
+ skillsDirectory?: string | undefined;
153
139
  task?: {
154
- status: "completed" | "failed" | "running";
140
+ status: "completed" | "running" | "failed";
155
141
  enabled: boolean;
156
142
  outputSchema: Record<string, unknown>;
157
143
  error?: string | undefined;
158
- maxIterations?: number | undefined;
159
144
  webhookUrl?: string | undefined;
160
- parentTaskId?: string | undefined;
145
+ maxIterations?: number | undefined;
161
146
  result?: unknown;
162
147
  iterations?: number | undefined;
148
+ parentTaskId?: string | undefined;
163
149
  } | undefined;
164
- skillsDirectory?: string | undefined;
165
150
  role?: "orchestrator" | "worker" | "chat" | undefined;
166
151
  personality?: string | undefined;
167
152
  orchestratorSessionId?: string | undefined;
153
+ slack?: {
154
+ channel?: string | undefined;
155
+ threadTs?: string | undefined;
156
+ teamId?: string | undefined;
157
+ } | undefined;
168
158
  schedules?: {
169
- enabled: boolean;
170
159
  id: string;
171
160
  name: string;
172
161
  createdAt: string;
173
162
  prompt: string;
163
+ enabled: boolean;
174
164
  cron: string;
175
165
  replyChannel?: string | undefined;
176
166
  lastFiredAt?: string | undefined;
177
167
  }[] | undefined;
178
- }, {
179
- toolApprovals?: Record<string, boolean> | undefined;
180
- approvalWebhook?: string | undefined;
181
168
  webhooks?: {
182
- token: string;
183
169
  id: string;
184
170
  name: string;
185
171
  createdAt: string;
186
- wake?: "now" | "next" | undefined;
172
+ token: string;
173
+ wake: "now" | "next";
174
+ hitCount: number;
187
175
  template?: string | undefined;
188
- hitCount?: number | undefined;
189
176
  lastHitAt?: string | undefined;
190
177
  }[] | undefined;
191
- slack?: {
192
- channel?: string | undefined;
193
- threadTs?: string | undefined;
194
- teamId?: string | undefined;
195
- } | undefined;
178
+ }, {
179
+ toolApprovals?: Record<string, boolean> | undefined;
180
+ approvalWebhook?: string | undefined;
181
+ skillsDirectory?: string | undefined;
182
+ maxContextChars?: number | undefined;
196
183
  task?: {
197
- status: "completed" | "failed" | "running";
184
+ status: "completed" | "running" | "failed";
198
185
  enabled: boolean;
199
186
  outputSchema: Record<string, unknown>;
200
187
  error?: string | undefined;
201
- maxIterations?: number | undefined;
202
188
  webhookUrl?: string | undefined;
203
- parentTaskId?: string | undefined;
189
+ maxIterations?: number | undefined;
204
190
  result?: unknown;
205
191
  iterations?: number | undefined;
192
+ parentTaskId?: string | undefined;
206
193
  } | undefined;
207
- skillsDirectory?: string | undefined;
208
- maxContextChars?: number | undefined;
209
194
  role?: "orchestrator" | "worker" | "chat" | undefined;
210
195
  personality?: string | undefined;
211
196
  orchestratorSessionId?: string | undefined;
197
+ slack?: {
198
+ channel?: string | undefined;
199
+ threadTs?: string | undefined;
200
+ teamId?: string | undefined;
201
+ } | undefined;
212
202
  schedules?: {
213
203
  id: string;
214
204
  name: string;
@@ -219,6 +209,16 @@ declare const SessionConfigSchema: z.ZodObject<{
219
209
  replyChannel?: string | undefined;
220
210
  lastFiredAt?: string | undefined;
221
211
  }[] | undefined;
212
+ webhooks?: {
213
+ id: string;
214
+ name: string;
215
+ createdAt: string;
216
+ token: string;
217
+ wake?: "now" | "next" | undefined;
218
+ template?: string | undefined;
219
+ hitCount?: number | undefined;
220
+ lastHitAt?: string | undefined;
221
+ }[] | undefined;
222
222
  }>;
223
223
  declare const SparkcoderConfigSchema: z.ZodObject<{
224
224
  defaultModel: z.ZodDefault<z.ZodString>;
@@ -377,101 +377,101 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
377
377
  refreshToken: z.ZodOptional<z.ZodOptional<z.ZodString>>;
378
378
  expiresAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
379
379
  }, "strip", z.ZodTypeAny, {
380
+ expiresAt?: string | undefined;
380
381
  authorizationUrl?: string | undefined;
381
382
  tokenUrl?: string | undefined;
382
383
  clientId?: string | undefined;
383
384
  clientSecret?: string | undefined;
384
385
  accessToken?: string | undefined;
385
386
  refreshToken?: string | undefined;
386
- expiresAt?: string | undefined;
387
387
  }, {
388
+ expiresAt?: string | undefined;
388
389
  authorizationUrl?: string | undefined;
389
390
  tokenUrl?: string | undefined;
390
391
  clientId?: string | undefined;
391
392
  clientSecret?: string | undefined;
392
393
  accessToken?: string | undefined;
393
394
  refreshToken?: string | undefined;
394
- expiresAt?: string | undefined;
395
395
  }>>;
396
396
  }, "strip", z.ZodTypeAny, {
397
- enabled: boolean;
398
397
  id: string;
399
398
  name: string;
400
- transport: "http" | "sse" | "stdio";
401
399
  createdAt: string;
402
- url?: string | undefined;
403
- headers?: Record<string, string> | undefined;
400
+ enabled: boolean;
401
+ transport: "http" | "sse" | "stdio";
404
402
  command?: string | undefined;
403
+ headers?: Record<string, string> | undefined;
404
+ url?: string | undefined;
405
405
  args?: string[] | undefined;
406
406
  oauth?: {
407
+ expiresAt?: string | undefined;
407
408
  authorizationUrl?: string | undefined;
408
409
  tokenUrl?: string | undefined;
409
410
  clientId?: string | undefined;
410
411
  clientSecret?: string | undefined;
411
412
  accessToken?: string | undefined;
412
413
  refreshToken?: string | undefined;
413
- expiresAt?: string | undefined;
414
414
  } | undefined;
415
415
  }, {
416
416
  id: string;
417
417
  name: string;
418
- transport: "http" | "sse" | "stdio";
419
418
  createdAt: string;
419
+ transport: "http" | "sse" | "stdio";
420
+ command?: string | undefined;
421
+ headers?: Record<string, string> | undefined;
420
422
  enabled?: boolean | undefined;
421
423
  url?: string | undefined;
422
- headers?: Record<string, string> | undefined;
423
- command?: string | undefined;
424
424
  args?: string[] | undefined;
425
425
  oauth?: {
426
+ expiresAt?: string | undefined;
426
427
  authorizationUrl?: string | undefined;
427
428
  tokenUrl?: string | undefined;
428
429
  clientId?: string | undefined;
429
430
  clientSecret?: string | undefined;
430
431
  accessToken?: string | undefined;
431
432
  refreshToken?: string | undefined;
432
- expiresAt?: string | undefined;
433
433
  } | undefined;
434
434
  }>, "many">>>>;
435
435
  }, "strip", z.ZodTypeAny, {
436
436
  servers?: {
437
- enabled: boolean;
438
437
  id: string;
439
438
  name: string;
440
- transport: "http" | "sse" | "stdio";
441
439
  createdAt: string;
442
- url?: string | undefined;
443
- headers?: Record<string, string> | undefined;
440
+ enabled: boolean;
441
+ transport: "http" | "sse" | "stdio";
444
442
  command?: string | undefined;
443
+ headers?: Record<string, string> | undefined;
444
+ url?: string | undefined;
445
445
  args?: string[] | undefined;
446
446
  oauth?: {
447
+ expiresAt?: string | undefined;
447
448
  authorizationUrl?: string | undefined;
448
449
  tokenUrl?: string | undefined;
449
450
  clientId?: string | undefined;
450
451
  clientSecret?: string | undefined;
451
452
  accessToken?: string | undefined;
452
453
  refreshToken?: string | undefined;
453
- expiresAt?: string | undefined;
454
454
  } | undefined;
455
455
  }[] | undefined;
456
456
  }, {
457
457
  servers?: {
458
458
  id: string;
459
459
  name: string;
460
- transport: "http" | "sse" | "stdio";
461
460
  createdAt: string;
461
+ transport: "http" | "sse" | "stdio";
462
+ command?: string | undefined;
463
+ headers?: Record<string, string> | undefined;
462
464
  enabled?: boolean | undefined;
463
465
  url?: string | undefined;
464
- headers?: Record<string, string> | undefined;
465
- command?: string | undefined;
466
466
  args?: string[] | undefined;
467
467
  oauth?: {
468
+ expiresAt?: string | undefined;
468
469
  authorizationUrl?: string | undefined;
469
470
  tokenUrl?: string | undefined;
470
471
  clientId?: string | undefined;
471
472
  clientSecret?: string | undefined;
472
473
  accessToken?: string | undefined;
473
474
  refreshToken?: string | undefined;
474
- expiresAt?: string | undefined;
475
475
  } | undefined;
476
476
  }[] | undefined;
477
477
  }>>;
@@ -506,7 +506,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
506
506
  allowedEmails?: string[] | undefined;
507
507
  }>>;
508
508
  }, "strip", z.ZodTypeAny, {
509
- defaultModel: string;
510
509
  toolApprovals: {
511
510
  bash: boolean;
512
511
  write_file: boolean;
@@ -514,6 +513,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
514
513
  load_skill: boolean;
515
514
  todo: boolean;
516
515
  };
516
+ defaultModel: string;
517
517
  skills: {
518
518
  directory: string;
519
519
  additionalDirectories: string[];
@@ -535,6 +535,16 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
535
535
  databasePath: string;
536
536
  workingDirectory?: string | undefined;
537
537
  approvalWebhook?: string | undefined;
538
+ slack?: {
539
+ botToken?: string | undefined;
540
+ signingSecret?: string | undefined;
541
+ defaultOrchestratorName?: string | undefined;
542
+ allowedUsers?: string[] | undefined;
543
+ allowedChannels?: string[] | undefined;
544
+ allowDmsFromAnyone?: boolean | undefined;
545
+ deniedReplyEnabled?: boolean | undefined;
546
+ deniedReplyTemplate?: string | undefined;
547
+ } | undefined;
538
548
  webhooks?: {
539
549
  token?: string | undefined;
540
550
  } | undefined;
@@ -550,35 +560,25 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
550
560
  httpUrl?: string | undefined;
551
561
  namespace?: string | undefined;
552
562
  } | undefined;
553
- slack?: {
554
- botToken?: string | undefined;
555
- signingSecret?: string | undefined;
556
- defaultOrchestratorName?: string | undefined;
557
- allowedUsers?: string[] | undefined;
558
- allowedChannels?: string[] | undefined;
559
- allowDmsFromAnyone?: boolean | undefined;
560
- deniedReplyEnabled?: boolean | undefined;
561
- deniedReplyTemplate?: string | undefined;
562
- } | undefined;
563
563
  mcp?: {
564
564
  servers?: {
565
- enabled: boolean;
566
565
  id: string;
567
566
  name: string;
568
- transport: "http" | "sse" | "stdio";
569
567
  createdAt: string;
570
- url?: string | undefined;
571
- headers?: Record<string, string> | undefined;
568
+ enabled: boolean;
569
+ transport: "http" | "sse" | "stdio";
572
570
  command?: string | undefined;
571
+ headers?: Record<string, string> | undefined;
572
+ url?: string | undefined;
573
573
  args?: string[] | undefined;
574
574
  oauth?: {
575
+ expiresAt?: string | undefined;
575
576
  authorizationUrl?: string | undefined;
576
577
  tokenUrl?: string | undefined;
577
578
  clientId?: string | undefined;
578
579
  clientSecret?: string | undefined;
579
580
  accessToken?: string | undefined;
580
581
  refreshToken?: string | undefined;
581
- expiresAt?: string | undefined;
582
582
  } | undefined;
583
583
  }[] | undefined;
584
584
  } | undefined;
@@ -591,7 +591,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
591
591
  allowedEmails?: string[] | undefined;
592
592
  } | undefined;
593
593
  }, {
594
- defaultModel?: string | undefined;
595
594
  workingDirectory?: string | undefined;
596
595
  toolApprovals?: {
597
596
  bash?: boolean | undefined;
@@ -601,6 +600,20 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
601
600
  todo?: boolean | undefined;
602
601
  } | undefined;
603
602
  approvalWebhook?: string | undefined;
603
+ slack?: {
604
+ botToken?: string | undefined;
605
+ signingSecret?: string | undefined;
606
+ defaultOrchestratorName?: string | undefined;
607
+ allowedUsers?: string[] | undefined;
608
+ allowedChannels?: string[] | undefined;
609
+ allowDmsFromAnyone?: boolean | undefined;
610
+ deniedReplyEnabled?: boolean | undefined;
611
+ deniedReplyTemplate?: string | undefined;
612
+ } | undefined;
613
+ webhooks?: {
614
+ token?: string | undefined;
615
+ } | undefined;
616
+ defaultModel?: string | undefined;
604
617
  skills?: {
605
618
  directory?: string | undefined;
606
619
  additionalDirectories?: string[] | undefined;
@@ -615,9 +628,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
615
628
  host?: string | undefined;
616
629
  publicUrl?: string | undefined;
617
630
  } | undefined;
618
- webhooks?: {
619
- token?: string | undefined;
620
- } | undefined;
621
631
  autoUpdate?: {
622
632
  enabled?: boolean | undefined;
623
633
  intervalHours?: number | undefined;
@@ -635,35 +645,25 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
635
645
  include?: string[] | undefined;
636
646
  exclude?: string[] | undefined;
637
647
  } | undefined;
638
- slack?: {
639
- botToken?: string | undefined;
640
- signingSecret?: string | undefined;
641
- defaultOrchestratorName?: string | undefined;
642
- allowedUsers?: string[] | undefined;
643
- allowedChannels?: string[] | undefined;
644
- allowDmsFromAnyone?: boolean | undefined;
645
- deniedReplyEnabled?: boolean | undefined;
646
- deniedReplyTemplate?: string | undefined;
647
- } | undefined;
648
648
  mcp?: {
649
649
  servers?: {
650
650
  id: string;
651
651
  name: string;
652
- transport: "http" | "sse" | "stdio";
653
652
  createdAt: string;
653
+ transport: "http" | "sse" | "stdio";
654
+ command?: string | undefined;
655
+ headers?: Record<string, string> | undefined;
654
656
  enabled?: boolean | undefined;
655
657
  url?: string | undefined;
656
- headers?: Record<string, string> | undefined;
657
- command?: string | undefined;
658
658
  args?: string[] | undefined;
659
659
  oauth?: {
660
+ expiresAt?: string | undefined;
660
661
  authorizationUrl?: string | undefined;
661
662
  tokenUrl?: string | undefined;
662
663
  clientId?: string | undefined;
663
664
  clientSecret?: string | undefined;
664
665
  accessToken?: string | undefined;
665
666
  refreshToken?: string | undefined;
666
- expiresAt?: string | undefined;
667
667
  } | undefined;
668
668
  }[] | undefined;
669
669
  } | undefined;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as ResolvedConfig } from './index-Bc0p0VPE.js';
2
- export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-Bc0p0VPE.js';
1
+ import { R as ResolvedConfig } from './index-UtOo3D9f.js';
2
+ export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-UtOo3D9f.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-BSz4MzhJ.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-BSz4MzhJ.js';
5
+ import { F as FileBackup, C as Checkpoint } from './schema-BTrvqaJL.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-BTrvqaJL.js';
7
7
  export { createLoadSkillTool, createReadFileTool, createTodoTool, createTools } from './tools/index.js';
8
- export { c as createBashTool, a as createWriteFileTool } from './search-DOzC4ojH.js';
8
+ export { c as createBashTool, a as createWriteFileTool } from './search-BRnGaIl-.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: "error" | "completed" | "active" | "waiting";
88
+ data: "active" | "waiting" | "completed" | "error";
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: "error" | "completed" | "pending" | "approved" | "rejected";
394
+ data: "completed" | "error" | "pending" | "approved" | "rejected";
395
395
  driverParam: string;
396
396
  notNull: true;
397
397
  hasDefault: true;
@@ -967,7 +967,7 @@ declare const activeStreams: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
967
967
  tableName: "active_streams";
968
968
  dataType: "string";
969
969
  columnType: "SQLiteText";
970
- data: "error" | "active" | "finished";
970
+ data: "active" | "error" | "finished";
971
971
  driverParam: string;
972
972
  notNull: true;
973
973
  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
- command?: string | undefined;
20
19
  input?: string | undefined;
20
+ command?: string | undefined;
21
21
  kill?: boolean | undefined;
22
22
  tail?: number | undefined;
23
- key?: "y" | "Enter" | "Escape" | "Up" | "Down" | "Left" | "Right" | "Tab" | "C-c" | "C-d" | "n" | undefined;
23
+ key?: "Enter" | "Escape" | "Up" | "Down" | "Left" | "Right" | "Tab" | "C-c" | "C-d" | "y" | "n" | undefined;
24
24
  }, {
25
25
  success: boolean;
26
26
  id: string;
@@ -41,7 +41,7 @@ declare function createBashTool(options: BashToolOptions): ai.Tool<{
41
41
  success: boolean;
42
42
  id: string;
43
43
  output: string;
44
- status: "unknown" | "running" | "stopped";
44
+ status: "running" | "stopped" | "unknown";
45
45
  message: string;
46
46
  error?: undefined;
47
47
  exitCode?: undefined;
@@ -49,7 +49,7 @@ declare function createBashTool(options: BashToolOptions): ai.Tool<{
49
49
  success: boolean;
50
50
  id: string;
51
51
  output: string;
52
- status: "unknown" | "running" | "stopped";
52
+ status: "running" | "stopped" | "unknown";
53
53
  message?: undefined;
54
54
  error?: undefined;
55
55
  exitCode?: undefined;
@@ -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: "error" | "completed" | "running" | "stopped";
69
+ status: "completed" | "error" | "running" | "stopped";
70
70
  message?: undefined;
71
71
  error?: undefined;
72
72
  } | {
@@ -116,8 +116,8 @@ interface WriteFileToolOptions {
116
116
  onProgress?: (progress: WriteFileProgress) => void;
117
117
  }
118
118
  declare function createWriteFileTool(options: WriteFileToolOptions): ai.Tool<{
119
- path: string;
120
119
  mode: "full" | "str_replace";
120
+ path: string;
121
121
  content?: string | undefined;
122
122
  old_string?: string | undefined;
123
123
  new_string?: string | undefined;
@@ -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
- context: string;
222
221
  query: string;
222
+ context: 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-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';
3
+ import { B as BashToolProgress, W as WriteFileProgress, S as SearchToolProgress } from '../search-BRnGaIl-.js';
4
+ export { b as BashToolOptions, d as SearchToolOptions, e as WriteFileToolOptions, c as createBashTool, f as createSearchTool, a as createWriteFileTool } from '../search-BRnGaIl-.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: "list" | "add" | "mark" | "clear" | "save_plan" | "list_plans" | "get_plan" | "delete_plan";
113
+ action: "add" | "list" | "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.133",
3
+ "version": "0.1.135",
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
- Mvd2J29fa2_xre21byVay
1
+ X_TnGNSMsK4hjzA1W-_Gz
@@ -1 +1 @@
1
- Mvd2J29fa2_xre21byVay
1
+ X_TnGNSMsK4hjzA1W-_Gz
@@ -7,8 +7,8 @@
7
7
  "static/chunks/a6dad97d9634a72d.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/Mvd2J29fa2_xre21byVay/_ssgManifest.js",
11
- "static/Mvd2J29fa2_xre21byVay/_buildManifest.js"
10
+ "static/X_TnGNSMsK4hjzA1W-_Gz/_ssgManifest.js",
11
+ "static/X_TnGNSMsK4hjzA1W-_Gz/_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": "a513fd1a90c5434774e622f2df33cfa4",
371
- "previewModeSigningKey": "d67325a0ff0e73ce23eaa558b159a7ff344b2a27126282d8407e7011791f48f2",
372
- "previewModeEncryptionKey": "a85989bf0a438781892d80e2d3e331fbf32193d89fbe22a5c8a0d06359a73e3a"
370
+ "previewModeId": "35d5ed6ddf078800c28ca1987415028c",
371
+ "previewModeSigningKey": "a36c29caf0669e7aef629f99b5cb434569813a40b6796d06c16e8a02e694e8ec",
372
+ "previewModeEncryptionKey": "c86b0856257b6f1ecd19f54eedfa5a55dbc7af3fea09c0b2c04688098c2ec6df"
373
373
  }
374
374
  }