sparkecoder 0.1.116 → 0.1.118

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 (117) hide show
  1. package/dist/agent/index.d.ts +3 -3
  2. package/dist/agent/index.js +136 -697
  3. package/dist/agent/index.js.map +1 -1
  4. package/dist/cli.js +621 -1038
  5. package/dist/cli.js.map +1 -1
  6. package/dist/db/index.d.ts +2 -2
  7. package/dist/{index-Biy5JTop.d.ts → index-Bcz0aCAR.d.ts} +104 -113
  8. package/dist/index.d.ts +5 -5
  9. package/dist/index.js +353 -935
  10. package/dist/index.js.map +1 -1
  11. package/dist/{schema-CYSKJZ3m.d.ts → schema-BWbWmfDQ.d.ts} +3 -5
  12. package/dist/{search-CVVfuBPZ.d.ts → search-DOzC4ojH.d.ts} +4 -4
  13. package/dist/server/index.js +353 -935
  14. package/dist/server/index.js.map +1 -1
  15. package/dist/skills/default/desktop-automation.md +290 -0
  16. package/dist/skills/default/recording.md +3 -3
  17. package/dist/tools/index.d.ts +4 -170
  18. package/dist/tools/index.js +5 -590
  19. package/dist/tools/index.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/skills/default/desktop-automation.md +290 -0
  22. package/src/skills/default/recording.md +3 -3
  23. package/web/.next/BUILD_ID +1 -1
  24. package/web/.next/standalone/web/.next/BUILD_ID +1 -1
  25. package/web/.next/standalone/web/.next/build-manifest.json +2 -2
  26. package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
  27. package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
  28. package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
  29. package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  30. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  31. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  32. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  33. package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  34. package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
  35. package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
  36. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  37. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  38. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  39. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  40. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  41. package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  42. package/web/.next/standalone/web/.next/server/app/agents.html +1 -1
  43. package/web/.next/standalone/web/.next/server/app/agents.rsc +1 -1
  44. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents/__PAGE__.segment.rsc +1 -1
  45. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents.segment.rsc +1 -1
  46. package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p.segment.rsc +1 -1
  47. package/web/.next/standalone/web/.next/server/app/agents.segments/_full.segment.rsc +1 -1
  48. package/web/.next/standalone/web/.next/server/app/agents.segments/_head.segment.rsc +1 -1
  49. package/web/.next/standalone/web/.next/server/app/agents.segments/_index.segment.rsc +1 -1
  50. package/web/.next/standalone/web/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
  51. package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
  52. package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
  53. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
  54. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
  55. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +1 -1
  56. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
  57. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +1 -1
  58. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
  59. package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +1 -1
  60. package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
  61. package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +1 -1
  62. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
  63. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
  64. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +1 -1
  65. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
  66. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
  67. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
  68. package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +1 -1
  69. package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
  70. package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +1 -1
  71. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
  72. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
  73. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +1 -1
  74. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
  75. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +1 -1
  76. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
  77. package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +1 -1
  78. package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
  79. package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
  80. package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
  81. package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
  82. package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +1 -1
  83. package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
  84. package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +1 -1
  85. package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
  86. package/web/.next/standalone/web/.next/server/app/index.html +1 -1
  87. package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
  88. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
  89. package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
  90. package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
  91. package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
  92. package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +1 -1
  93. package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  94. package/web/.next/standalone/web/.next/server/app/settings.html +1 -1
  95. package/web/.next/standalone/web/.next/server/app/settings.rsc +1 -1
  96. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings/__PAGE__.segment.rsc +1 -1
  97. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings.segment.rsc +1 -1
  98. package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p.segment.rsc +1 -1
  99. package/web/.next/standalone/web/.next/server/app/settings.segments/_full.segment.rsc +1 -1
  100. package/web/.next/standalone/web/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  101. package/web/.next/standalone/web/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  102. package/web/.next/standalone/web/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  103. package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
  104. package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
  105. package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
  106. package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
  107. package/dist/skills/default/computer-use.md +0 -225
  108. package/src/skills/default/computer-use.md +0 -225
  109. /package/web/.next/standalone/web/.next/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_buildManifest.js +0 -0
  110. /package/web/.next/standalone/web/.next/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_clientMiddlewareManifest.json +0 -0
  111. /package/web/.next/standalone/web/.next/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_ssgManifest.js +0 -0
  112. /package/web/.next/standalone/web/.next/static/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_buildManifest.js +0 -0
  113. /package/web/.next/standalone/web/.next/static/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_clientMiddlewareManifest.json +0 -0
  114. /package/web/.next/standalone/web/.next/static/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_ssgManifest.js +0 -0
  115. /package/web/.next/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_buildManifest.js +0 -0
  116. /package/web/.next/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_clientMiddlewareManifest.json +0 -0
  117. /package/web/.next/static/{7tYFi20tEUZNGXmy2DJ1K → T8x1J_CS0n9FaWBr5GhLe}/_ssgManifest.js +0 -0
@@ -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-BWbWmfDQ.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-BWbWmfDQ.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-BWbWmfDQ.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,29 +38,26 @@ 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
- computerUseEnabled: z.ZodOptional<z.ZodBoolean>;
62
- computerUseDisplayWidth: z.ZodOptional<z.ZodNumber>;
63
- computerUseDisplayHeight: z.ZodOptional<z.ZodNumber>;
64
61
  role: z.ZodOptional<z.ZodEnum<["orchestrator", "worker", "chat"]>>;
65
62
  personality: z.ZodOptional<z.ZodString>;
66
63
  orchestratorSessionId: z.ZodOptional<z.ZodString>;
@@ -87,20 +84,20 @@ declare const SessionConfigSchema: z.ZodObject<{
87
84
  lastFiredAt: z.ZodOptional<z.ZodString>;
88
85
  createdAt: z.ZodString;
89
86
  }, "strip", z.ZodTypeAny, {
90
- enabled: boolean;
91
87
  id: string;
92
88
  name: string;
93
- cron: string;
94
- prompt: string;
89
+ enabled: boolean;
95
90
  createdAt: string;
91
+ prompt: string;
92
+ cron: string;
96
93
  replyChannel?: string | undefined;
97
94
  lastFiredAt?: string | undefined;
98
95
  }, {
99
96
  id: string;
100
97
  name: string;
101
- cron: string;
102
- prompt: string;
103
98
  createdAt: string;
99
+ prompt: string;
100
+ cron: string;
104
101
  enabled?: boolean | undefined;
105
102
  replyChannel?: string | undefined;
106
103
  lastFiredAt?: string | undefined;
@@ -115,19 +112,19 @@ declare const SessionConfigSchema: z.ZodObject<{
115
112
  lastHitAt: z.ZodOptional<z.ZodString>;
116
113
  createdAt: z.ZodString;
117
114
  }, "strip", z.ZodTypeAny, {
115
+ token: string;
118
116
  id: string;
119
117
  name: string;
120
118
  createdAt: string;
121
- token: string;
122
119
  wake: "now" | "next";
123
120
  hitCount: number;
124
121
  template?: string | undefined;
125
122
  lastHitAt?: string | undefined;
126
123
  }, {
124
+ token: string;
127
125
  id: string;
128
126
  name: string;
129
127
  createdAt: string;
130
- token: string;
131
128
  wake?: "now" | "next" | undefined;
132
129
  template?: string | undefined;
133
130
  hitCount?: number | undefined;
@@ -137,96 +134,90 @@ declare const SessionConfigSchema: z.ZodObject<{
137
134
  maxContextChars: number;
138
135
  toolApprovals?: Record<string, boolean> | undefined;
139
136
  approvalWebhook?: string | undefined;
140
- skillsDirectory?: string | undefined;
137
+ webhooks?: {
138
+ token: string;
139
+ id: string;
140
+ name: string;
141
+ createdAt: string;
142
+ wake: "now" | "next";
143
+ hitCount: number;
144
+ template?: string | undefined;
145
+ lastHitAt?: string | undefined;
146
+ }[] | undefined;
147
+ slack?: {
148
+ channel?: string | undefined;
149
+ threadTs?: string | undefined;
150
+ teamId?: string | undefined;
151
+ } | undefined;
141
152
  task?: {
142
- status: "running" | "completed" | "failed";
153
+ status: "completed" | "failed" | "running";
143
154
  enabled: boolean;
144
155
  outputSchema: Record<string, unknown>;
145
- webhookUrl?: string | undefined;
156
+ error?: string | undefined;
146
157
  maxIterations?: number | undefined;
158
+ webhookUrl?: string | undefined;
159
+ parentTaskId?: string | undefined;
147
160
  result?: unknown;
148
- error?: string | undefined;
149
161
  iterations?: number | undefined;
150
- parentTaskId?: string | undefined;
151
162
  } | undefined;
152
- computerUseEnabled?: boolean | undefined;
153
- computerUseDisplayWidth?: number | undefined;
154
- computerUseDisplayHeight?: number | undefined;
163
+ skillsDirectory?: string | undefined;
155
164
  role?: "orchestrator" | "worker" | "chat" | undefined;
156
165
  personality?: string | undefined;
157
166
  orchestratorSessionId?: string | undefined;
158
- slack?: {
159
- channel?: string | undefined;
160
- threadTs?: string | undefined;
161
- teamId?: string | undefined;
162
- } | undefined;
163
167
  schedules?: {
164
- enabled: boolean;
165
168
  id: string;
166
169
  name: string;
167
- cron: string;
168
- prompt: string;
170
+ enabled: boolean;
169
171
  createdAt: string;
172
+ prompt: string;
173
+ cron: string;
170
174
  replyChannel?: string | undefined;
171
175
  lastFiredAt?: string | undefined;
172
176
  }[] | undefined;
177
+ }, {
178
+ toolApprovals?: Record<string, boolean> | undefined;
179
+ approvalWebhook?: string | undefined;
173
180
  webhooks?: {
181
+ token: string;
174
182
  id: string;
175
183
  name: string;
176
184
  createdAt: string;
177
- token: string;
178
- wake: "now" | "next";
179
- hitCount: number;
185
+ wake?: "now" | "next" | undefined;
180
186
  template?: string | undefined;
187
+ hitCount?: number | undefined;
181
188
  lastHitAt?: string | undefined;
182
189
  }[] | undefined;
183
- }, {
184
- toolApprovals?: Record<string, boolean> | undefined;
185
- approvalWebhook?: string | undefined;
186
- skillsDirectory?: string | undefined;
187
- maxContextChars?: number | undefined;
190
+ slack?: {
191
+ channel?: string | undefined;
192
+ threadTs?: string | undefined;
193
+ teamId?: string | undefined;
194
+ } | undefined;
188
195
  task?: {
189
- status: "running" | "completed" | "failed";
196
+ status: "completed" | "failed" | "running";
190
197
  enabled: boolean;
191
198
  outputSchema: Record<string, unknown>;
192
- webhookUrl?: string | undefined;
199
+ error?: string | undefined;
193
200
  maxIterations?: number | undefined;
201
+ webhookUrl?: string | undefined;
202
+ parentTaskId?: string | undefined;
194
203
  result?: unknown;
195
- error?: string | undefined;
196
204
  iterations?: number | undefined;
197
- parentTaskId?: string | undefined;
198
205
  } | undefined;
199
- computerUseEnabled?: boolean | undefined;
200
- computerUseDisplayWidth?: number | undefined;
201
- computerUseDisplayHeight?: number | undefined;
206
+ skillsDirectory?: string | undefined;
207
+ maxContextChars?: number | undefined;
202
208
  role?: "orchestrator" | "worker" | "chat" | undefined;
203
209
  personality?: string | undefined;
204
210
  orchestratorSessionId?: string | undefined;
205
- slack?: {
206
- channel?: string | undefined;
207
- threadTs?: string | undefined;
208
- teamId?: string | undefined;
209
- } | undefined;
210
211
  schedules?: {
211
212
  id: string;
212
213
  name: string;
213
- cron: string;
214
- prompt: string;
215
214
  createdAt: string;
215
+ prompt: string;
216
+ cron: string;
216
217
  enabled?: boolean | undefined;
217
218
  replyChannel?: string | undefined;
218
219
  lastFiredAt?: string | undefined;
219
220
  }[] | 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
221
  }>;
231
222
  declare const SparkcoderConfigSchema: z.ZodObject<{
232
223
  defaultModel: z.ZodDefault<z.ZodString>;
@@ -392,15 +383,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
392
383
  expiresAt?: string | undefined;
393
384
  }>>;
394
385
  }, "strip", z.ZodTypeAny, {
395
- enabled: boolean;
396
386
  id: string;
397
387
  name: string;
398
- createdAt: string;
399
388
  transport: "http" | "sse" | "stdio";
400
- args?: string[] | undefined;
389
+ enabled: boolean;
390
+ createdAt: string;
401
391
  url?: string | undefined;
402
392
  headers?: Record<string, string> | undefined;
403
393
  command?: string | undefined;
394
+ args?: string[] | undefined;
404
395
  oauth?: {
405
396
  authorizationUrl?: string | undefined;
406
397
  tokenUrl?: string | undefined;
@@ -413,13 +404,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
413
404
  }, {
414
405
  id: string;
415
406
  name: string;
416
- createdAt: string;
417
407
  transport: "http" | "sse" | "stdio";
418
- enabled?: boolean | undefined;
419
- args?: string[] | undefined;
408
+ createdAt: string;
420
409
  url?: string | undefined;
421
410
  headers?: Record<string, string> | undefined;
422
411
  command?: string | undefined;
412
+ args?: string[] | undefined;
413
+ enabled?: boolean | undefined;
423
414
  oauth?: {
424
415
  authorizationUrl?: string | undefined;
425
416
  tokenUrl?: string | undefined;
@@ -432,15 +423,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
432
423
  }>, "many">>>>;
433
424
  }, "strip", z.ZodTypeAny, {
434
425
  servers?: {
435
- enabled: boolean;
436
426
  id: string;
437
427
  name: string;
438
- createdAt: string;
439
428
  transport: "http" | "sse" | "stdio";
440
- args?: string[] | undefined;
429
+ enabled: boolean;
430
+ createdAt: string;
441
431
  url?: string | undefined;
442
432
  headers?: Record<string, string> | undefined;
443
433
  command?: string | undefined;
434
+ args?: string[] | undefined;
444
435
  oauth?: {
445
436
  authorizationUrl?: string | undefined;
446
437
  tokenUrl?: string | undefined;
@@ -455,13 +446,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
455
446
  servers?: {
456
447
  id: string;
457
448
  name: string;
458
- createdAt: string;
459
449
  transport: "http" | "sse" | "stdio";
460
- enabled?: boolean | undefined;
461
- args?: string[] | undefined;
450
+ createdAt: string;
462
451
  url?: string | undefined;
463
452
  headers?: Record<string, string> | undefined;
464
453
  command?: string | undefined;
454
+ args?: string[] | undefined;
455
+ enabled?: boolean | undefined;
465
456
  oauth?: {
466
457
  authorizationUrl?: string | undefined;
467
458
  tokenUrl?: string | undefined;
@@ -504,6 +495,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
504
495
  allowedEmails?: string[] | undefined;
505
496
  }>>;
506
497
  }, "strip", z.ZodTypeAny, {
498
+ defaultModel: string;
507
499
  toolApprovals: {
508
500
  bash: boolean;
509
501
  write_file: boolean;
@@ -511,7 +503,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
511
503
  load_skill: boolean;
512
504
  todo: boolean;
513
505
  };
514
- defaultModel: string;
515
506
  skills: {
516
507
  directory: string;
517
508
  additionalDirectories: string[];
@@ -527,21 +518,11 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
527
518
  publicUrl?: string | undefined;
528
519
  };
529
520
  databasePath: string;
521
+ workingDirectory?: string | undefined;
530
522
  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
523
  webhooks?: {
542
524
  token?: string | undefined;
543
525
  } | undefined;
544
- workingDirectory?: string | undefined;
545
526
  remoteServer?: {
546
527
  url?: string | undefined;
547
528
  authKey?: string | undefined;
@@ -554,17 +535,27 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
554
535
  httpUrl?: string | undefined;
555
536
  namespace?: string | undefined;
556
537
  } | 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;
557
548
  mcp?: {
558
549
  servers?: {
559
- enabled: boolean;
560
550
  id: string;
561
551
  name: string;
562
- createdAt: string;
563
552
  transport: "http" | "sse" | "stdio";
564
- args?: string[] | undefined;
553
+ enabled: boolean;
554
+ createdAt: string;
565
555
  url?: string | undefined;
566
556
  headers?: Record<string, string> | undefined;
567
557
  command?: string | undefined;
558
+ args?: string[] | undefined;
568
559
  oauth?: {
569
560
  authorizationUrl?: string | undefined;
570
561
  tokenUrl?: string | undefined;
@@ -585,6 +576,8 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
585
576
  allowedEmails?: string[] | undefined;
586
577
  } | undefined;
587
578
  }, {
579
+ defaultModel?: string | undefined;
580
+ workingDirectory?: string | undefined;
588
581
  toolApprovals?: {
589
582
  bash?: boolean | undefined;
590
583
  write_file?: boolean | undefined;
@@ -593,21 +586,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
593
586
  todo?: boolean | undefined;
594
587
  } | undefined;
595
588
  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
589
  skills?: {
612
590
  directory?: string | undefined;
613
591
  additionalDirectories?: string[] | undefined;
@@ -622,6 +600,9 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
622
600
  host?: string | undefined;
623
601
  publicUrl?: string | undefined;
624
602
  } | undefined;
603
+ webhooks?: {
604
+ token?: string | undefined;
605
+ } | undefined;
625
606
  databasePath?: string | undefined;
626
607
  remoteServer?: {
627
608
  url?: string | undefined;
@@ -635,17 +616,27 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
635
616
  include?: string[] | undefined;
636
617
  exclude?: string[] | undefined;
637
618
  } | undefined;
619
+ slack?: {
620
+ botToken?: string | undefined;
621
+ signingSecret?: string | undefined;
622
+ defaultOrchestratorName?: string | undefined;
623
+ allowedUsers?: string[] | undefined;
624
+ allowedChannels?: string[] | undefined;
625
+ allowDmsFromAnyone?: boolean | undefined;
626
+ deniedReplyEnabled?: boolean | undefined;
627
+ deniedReplyTemplate?: string | undefined;
628
+ } | undefined;
638
629
  mcp?: {
639
630
  servers?: {
640
631
  id: string;
641
632
  name: string;
642
- createdAt: string;
643
633
  transport: "http" | "sse" | "stdio";
644
- enabled?: boolean | undefined;
645
- args?: string[] | undefined;
634
+ createdAt: string;
646
635
  url?: string | undefined;
647
636
  headers?: Record<string, string> | undefined;
648
637
  command?: string | undefined;
638
+ args?: string[] | undefined;
639
+ enabled?: boolean | undefined;
649
640
  oauth?: {
650
641
  authorizationUrl?: string | undefined;
651
642
  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-Bcz0aCAR.js';
2
+ export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-Bcz0aCAR.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-BWbWmfDQ.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-BWbWmfDQ.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';