sparkecoder 0.1.106 → 0.1.108
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.
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js.map +1 -1
- package/dist/cli.js +21 -8
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +2 -2
- package/dist/{index--JjYcERz.d.ts → index-D5l-DMGC.d.ts} +83 -83
- package/dist/index.d.ts +5 -5
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/{schema-BQ3Wfu-a.d.ts → schema-ecQSnCMz.d.ts} +3 -3
- package/dist/{search-BRnGaIl-.d.ts → search-DOzC4ojH.d.ts} +7 -7
- package/dist/server/index.js +12 -5
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +3 -3
- package/dist/tools/index.js.map +1 -1
- package/package.json +1 -1
- package/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/BUILD_ID +1 -1
- package/web/.next/standalone/web/.next/build-manifest.json +2 -2
- package/web/.next/standalone/web/.next/prerender-manifest.json +3 -3
- package/web/.next/standalone/web/.next/server/app/(main)/agents/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/session/[id]/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/(main)/settings/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.html +2 -2
- package/web/.next/standalone/web/.next/server/app/_global-error.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.html +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.html +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.rsc +4 -4
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/_full.segment.rsc +4 -4
- package/web/.next/standalone/web/.next/server/app/agents.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/agents.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs/installation.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/docs.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs/skills.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/docs.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools/page_client-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs/tools.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/docs.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +3 -3
- package/web/.next/standalone/web/.next/server/app/docs.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +4 -4
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/web/.next/standalone/web/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.html +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.rsc +4 -4
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings/__PAGE__.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.segments/_full.segment.rsc +4 -4
- package/web/.next/standalone/web/.next/server/app/settings.segments/_head.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/_index.segment.rsc +2 -2
- package/web/.next/standalone/web/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/pages/404.html +1 -1
- package/web/.next/standalone/web/.next/server/pages/500.html +2 -2
- package/web/.next/standalone/web/.next/server/server-reference-manifest.js +1 -1
- package/web/.next/standalone/web/.next/server/server-reference-manifest.json +1 -1
- package/web/.next/standalone/web/.next/static/chunks/b203b9aa975135d3.js +1 -0
- package/web/.next/standalone/web/.next/static/static/chunks/b203b9aa975135d3.js +1 -0
- package/web/.next/standalone/web/src/lib/config.ts +55 -6
- package/web/.next/static/chunks/b203b9aa975135d3.js +1 -0
- package/web/.next/standalone/web/.next/static/chunks/4239395558fab3ef.js +0 -1
- package/web/.next/standalone/web/.next/static/static/chunks/4239395558fab3ef.js +0 -1
- package/web/.next/static/chunks/4239395558fab3ef.js +0 -1
- /package/web/.next/standalone/web/.next/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_ssgManifest.js +0 -0
- /package/web/.next/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_buildManifest.js +0 -0
- /package/web/.next/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{gBMaoIWuyMCzyJoRerJkB → 0eOLjVRvTvNCm5RgROk6n}/_ssgManifest.js +0 -0
package/dist/db/index.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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: "completed" | "
|
|
41
|
+
status: "completed" | "failed" | "running";
|
|
42
42
|
enabled: boolean;
|
|
43
43
|
outputSchema: Record<string, unknown>;
|
|
44
44
|
error?: string | undefined;
|
|
45
|
-
webhookUrl?: string | undefined;
|
|
46
45
|
maxIterations?: number | undefined;
|
|
46
|
+
webhookUrl?: string | undefined;
|
|
47
|
+
parentTaskId?: string | undefined;
|
|
47
48
|
result?: unknown;
|
|
48
49
|
iterations?: number | undefined;
|
|
49
|
-
parentTaskId?: string | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
status: "completed" | "
|
|
51
|
+
status: "completed" | "failed" | "running";
|
|
52
52
|
enabled: boolean;
|
|
53
53
|
outputSchema: Record<string, unknown>;
|
|
54
54
|
error?: string | undefined;
|
|
55
|
-
webhookUrl?: string | undefined;
|
|
56
55
|
maxIterations?: number | undefined;
|
|
56
|
+
webhookUrl?: string | undefined;
|
|
57
|
+
parentTaskId?: string | undefined;
|
|
57
58
|
result?: unknown;
|
|
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>;
|
|
@@ -89,9 +89,9 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
90
|
id: string;
|
|
91
91
|
name: string;
|
|
92
|
+
enabled: boolean;
|
|
92
93
|
createdAt: string;
|
|
93
94
|
prompt: string;
|
|
94
|
-
enabled: boolean;
|
|
95
95
|
cron: string;
|
|
96
96
|
replyChannel?: string | undefined;
|
|
97
97
|
lastFiredAt?: string | undefined;
|
|
@@ -137,35 +137,35 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
137
137
|
maxContextChars: number;
|
|
138
138
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
139
139
|
approvalWebhook?: string | undefined;
|
|
140
|
-
|
|
140
|
+
slack?: {
|
|
141
|
+
channel?: string | undefined;
|
|
142
|
+
threadTs?: string | undefined;
|
|
143
|
+
teamId?: string | undefined;
|
|
144
|
+
} | undefined;
|
|
141
145
|
task?: {
|
|
142
|
-
status: "completed" | "
|
|
146
|
+
status: "completed" | "failed" | "running";
|
|
143
147
|
enabled: boolean;
|
|
144
148
|
outputSchema: Record<string, unknown>;
|
|
145
149
|
error?: string | undefined;
|
|
146
|
-
webhookUrl?: string | undefined;
|
|
147
150
|
maxIterations?: number | undefined;
|
|
151
|
+
webhookUrl?: string | undefined;
|
|
152
|
+
parentTaskId?: string | undefined;
|
|
148
153
|
result?: unknown;
|
|
149
154
|
iterations?: number | undefined;
|
|
150
|
-
parentTaskId?: string | undefined;
|
|
151
155
|
} | undefined;
|
|
156
|
+
skillsDirectory?: string | undefined;
|
|
152
157
|
computerUseEnabled?: boolean | undefined;
|
|
153
158
|
computerUseDisplayWidth?: number | undefined;
|
|
154
159
|
computerUseDisplayHeight?: number | undefined;
|
|
155
160
|
role?: "orchestrator" | "worker" | "chat" | undefined;
|
|
156
161
|
personality?: string | undefined;
|
|
157
162
|
orchestratorSessionId?: string | undefined;
|
|
158
|
-
slack?: {
|
|
159
|
-
channel?: string | undefined;
|
|
160
|
-
threadTs?: string | undefined;
|
|
161
|
-
teamId?: string | undefined;
|
|
162
|
-
} | undefined;
|
|
163
163
|
schedules?: {
|
|
164
164
|
id: string;
|
|
165
165
|
name: string;
|
|
166
|
+
enabled: boolean;
|
|
166
167
|
createdAt: string;
|
|
167
168
|
prompt: string;
|
|
168
|
-
enabled: boolean;
|
|
169
169
|
cron: string;
|
|
170
170
|
replyChannel?: string | undefined;
|
|
171
171
|
lastFiredAt?: string | undefined;
|
|
@@ -183,30 +183,30 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
183
183
|
}, {
|
|
184
184
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
185
185
|
approvalWebhook?: string | undefined;
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
slack?: {
|
|
187
|
+
channel?: string | undefined;
|
|
188
|
+
threadTs?: string | undefined;
|
|
189
|
+
teamId?: string | undefined;
|
|
190
|
+
} | undefined;
|
|
188
191
|
task?: {
|
|
189
|
-
status: "completed" | "
|
|
192
|
+
status: "completed" | "failed" | "running";
|
|
190
193
|
enabled: boolean;
|
|
191
194
|
outputSchema: Record<string, unknown>;
|
|
192
195
|
error?: string | undefined;
|
|
193
|
-
webhookUrl?: string | undefined;
|
|
194
196
|
maxIterations?: number | undefined;
|
|
197
|
+
webhookUrl?: string | undefined;
|
|
198
|
+
parentTaskId?: string | undefined;
|
|
195
199
|
result?: unknown;
|
|
196
200
|
iterations?: number | undefined;
|
|
197
|
-
parentTaskId?: string | undefined;
|
|
198
201
|
} | undefined;
|
|
202
|
+
skillsDirectory?: string | undefined;
|
|
203
|
+
maxContextChars?: number | undefined;
|
|
199
204
|
computerUseEnabled?: boolean | undefined;
|
|
200
205
|
computerUseDisplayWidth?: number | undefined;
|
|
201
206
|
computerUseDisplayHeight?: number | undefined;
|
|
202
207
|
role?: "orchestrator" | "worker" | "chat" | undefined;
|
|
203
208
|
personality?: string | undefined;
|
|
204
209
|
orchestratorSessionId?: string | undefined;
|
|
205
|
-
slack?: {
|
|
206
|
-
channel?: string | undefined;
|
|
207
|
-
threadTs?: string | undefined;
|
|
208
|
-
teamId?: string | undefined;
|
|
209
|
-
} | undefined;
|
|
210
210
|
schedules?: {
|
|
211
211
|
id: string;
|
|
212
212
|
name: string;
|
|
@@ -368,101 +368,101 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
368
368
|
refreshToken: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
369
369
|
expiresAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
370
370
|
}, "strip", z.ZodTypeAny, {
|
|
371
|
-
expiresAt?: string | undefined;
|
|
372
371
|
authorizationUrl?: string | undefined;
|
|
373
372
|
tokenUrl?: string | undefined;
|
|
374
373
|
clientId?: string | undefined;
|
|
375
374
|
clientSecret?: string | undefined;
|
|
376
375
|
accessToken?: string | undefined;
|
|
377
376
|
refreshToken?: string | undefined;
|
|
378
|
-
}, {
|
|
379
377
|
expiresAt?: string | undefined;
|
|
378
|
+
}, {
|
|
380
379
|
authorizationUrl?: string | undefined;
|
|
381
380
|
tokenUrl?: string | undefined;
|
|
382
381
|
clientId?: string | undefined;
|
|
383
382
|
clientSecret?: string | undefined;
|
|
384
383
|
accessToken?: string | undefined;
|
|
385
384
|
refreshToken?: string | undefined;
|
|
385
|
+
expiresAt?: string | undefined;
|
|
386
386
|
}>>;
|
|
387
387
|
}, "strip", z.ZodTypeAny, {
|
|
388
388
|
id: string;
|
|
389
389
|
name: string;
|
|
390
|
-
createdAt: string;
|
|
391
|
-
enabled: boolean;
|
|
392
390
|
transport: "http" | "sse" | "stdio";
|
|
393
|
-
|
|
394
|
-
|
|
391
|
+
enabled: boolean;
|
|
392
|
+
createdAt: string;
|
|
395
393
|
url?: string | undefined;
|
|
394
|
+
headers?: Record<string, string> | undefined;
|
|
395
|
+
command?: string | undefined;
|
|
396
396
|
args?: string[] | undefined;
|
|
397
397
|
oauth?: {
|
|
398
|
-
expiresAt?: string | undefined;
|
|
399
398
|
authorizationUrl?: string | undefined;
|
|
400
399
|
tokenUrl?: string | undefined;
|
|
401
400
|
clientId?: string | undefined;
|
|
402
401
|
clientSecret?: string | undefined;
|
|
403
402
|
accessToken?: string | undefined;
|
|
404
403
|
refreshToken?: string | undefined;
|
|
404
|
+
expiresAt?: string | undefined;
|
|
405
405
|
} | undefined;
|
|
406
406
|
}, {
|
|
407
407
|
id: string;
|
|
408
408
|
name: string;
|
|
409
|
-
createdAt: string;
|
|
410
409
|
transport: "http" | "sse" | "stdio";
|
|
411
|
-
|
|
412
|
-
headers?: Record<string, string> | undefined;
|
|
413
|
-
enabled?: boolean | undefined;
|
|
410
|
+
createdAt: string;
|
|
414
411
|
url?: string | undefined;
|
|
412
|
+
headers?: Record<string, string> | undefined;
|
|
413
|
+
command?: string | undefined;
|
|
415
414
|
args?: string[] | undefined;
|
|
415
|
+
enabled?: boolean | undefined;
|
|
416
416
|
oauth?: {
|
|
417
|
-
expiresAt?: string | undefined;
|
|
418
417
|
authorizationUrl?: string | undefined;
|
|
419
418
|
tokenUrl?: string | undefined;
|
|
420
419
|
clientId?: string | undefined;
|
|
421
420
|
clientSecret?: string | undefined;
|
|
422
421
|
accessToken?: string | undefined;
|
|
423
422
|
refreshToken?: string | undefined;
|
|
423
|
+
expiresAt?: string | undefined;
|
|
424
424
|
} | undefined;
|
|
425
425
|
}>, "many">>>>;
|
|
426
426
|
}, "strip", z.ZodTypeAny, {
|
|
427
427
|
servers?: {
|
|
428
428
|
id: string;
|
|
429
429
|
name: string;
|
|
430
|
-
createdAt: string;
|
|
431
|
-
enabled: boolean;
|
|
432
430
|
transport: "http" | "sse" | "stdio";
|
|
433
|
-
|
|
434
|
-
|
|
431
|
+
enabled: boolean;
|
|
432
|
+
createdAt: string;
|
|
435
433
|
url?: string | undefined;
|
|
434
|
+
headers?: Record<string, string> | undefined;
|
|
435
|
+
command?: string | undefined;
|
|
436
436
|
args?: string[] | undefined;
|
|
437
437
|
oauth?: {
|
|
438
|
-
expiresAt?: string | undefined;
|
|
439
438
|
authorizationUrl?: string | undefined;
|
|
440
439
|
tokenUrl?: string | undefined;
|
|
441
440
|
clientId?: string | undefined;
|
|
442
441
|
clientSecret?: string | undefined;
|
|
443
442
|
accessToken?: string | undefined;
|
|
444
443
|
refreshToken?: string | undefined;
|
|
444
|
+
expiresAt?: string | undefined;
|
|
445
445
|
} | undefined;
|
|
446
446
|
}[] | undefined;
|
|
447
447
|
}, {
|
|
448
448
|
servers?: {
|
|
449
449
|
id: string;
|
|
450
450
|
name: string;
|
|
451
|
-
createdAt: string;
|
|
452
451
|
transport: "http" | "sse" | "stdio";
|
|
453
|
-
|
|
454
|
-
headers?: Record<string, string> | undefined;
|
|
455
|
-
enabled?: boolean | undefined;
|
|
452
|
+
createdAt: string;
|
|
456
453
|
url?: string | undefined;
|
|
454
|
+
headers?: Record<string, string> | undefined;
|
|
455
|
+
command?: string | undefined;
|
|
457
456
|
args?: string[] | undefined;
|
|
457
|
+
enabled?: boolean | undefined;
|
|
458
458
|
oauth?: {
|
|
459
|
-
expiresAt?: string | undefined;
|
|
460
459
|
authorizationUrl?: string | undefined;
|
|
461
460
|
tokenUrl?: string | undefined;
|
|
462
461
|
clientId?: string | undefined;
|
|
463
462
|
clientSecret?: string | undefined;
|
|
464
463
|
accessToken?: string | undefined;
|
|
465
464
|
refreshToken?: string | undefined;
|
|
465
|
+
expiresAt?: string | undefined;
|
|
466
466
|
} | undefined;
|
|
467
467
|
}[] | undefined;
|
|
468
468
|
}>>;
|
|
@@ -497,6 +497,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
497
497
|
allowedEmails?: string[] | undefined;
|
|
498
498
|
}>>;
|
|
499
499
|
}, "strip", z.ZodTypeAny, {
|
|
500
|
+
defaultModel: string;
|
|
500
501
|
toolApprovals: {
|
|
501
502
|
bash: boolean;
|
|
502
503
|
write_file: boolean;
|
|
@@ -504,7 +505,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
504
505
|
load_skill: boolean;
|
|
505
506
|
todo: boolean;
|
|
506
507
|
};
|
|
507
|
-
defaultModel: string;
|
|
508
508
|
skills: {
|
|
509
509
|
directory: string;
|
|
510
510
|
additionalDirectories: string[];
|
|
@@ -522,16 +522,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
522
522
|
databasePath: string;
|
|
523
523
|
workingDirectory?: string | undefined;
|
|
524
524
|
approvalWebhook?: string | undefined;
|
|
525
|
-
slack?: {
|
|
526
|
-
botToken?: string | undefined;
|
|
527
|
-
signingSecret?: string | undefined;
|
|
528
|
-
defaultOrchestratorName?: string | undefined;
|
|
529
|
-
allowedUsers?: string[] | undefined;
|
|
530
|
-
allowedChannels?: string[] | undefined;
|
|
531
|
-
allowDmsFromAnyone?: boolean | undefined;
|
|
532
|
-
deniedReplyEnabled?: boolean | undefined;
|
|
533
|
-
deniedReplyTemplate?: string | undefined;
|
|
534
|
-
} | undefined;
|
|
535
525
|
remoteServer?: {
|
|
536
526
|
url?: string | undefined;
|
|
537
527
|
authKey?: string | undefined;
|
|
@@ -544,25 +534,35 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
544
534
|
httpUrl?: string | undefined;
|
|
545
535
|
namespace?: string | undefined;
|
|
546
536
|
} | undefined;
|
|
537
|
+
slack?: {
|
|
538
|
+
botToken?: string | undefined;
|
|
539
|
+
signingSecret?: string | undefined;
|
|
540
|
+
defaultOrchestratorName?: string | undefined;
|
|
541
|
+
allowedUsers?: string[] | undefined;
|
|
542
|
+
allowedChannels?: string[] | undefined;
|
|
543
|
+
allowDmsFromAnyone?: boolean | undefined;
|
|
544
|
+
deniedReplyEnabled?: boolean | undefined;
|
|
545
|
+
deniedReplyTemplate?: string | undefined;
|
|
546
|
+
} | undefined;
|
|
547
547
|
mcp?: {
|
|
548
548
|
servers?: {
|
|
549
549
|
id: string;
|
|
550
550
|
name: string;
|
|
551
|
-
createdAt: string;
|
|
552
|
-
enabled: boolean;
|
|
553
551
|
transport: "http" | "sse" | "stdio";
|
|
554
|
-
|
|
555
|
-
|
|
552
|
+
enabled: boolean;
|
|
553
|
+
createdAt: string;
|
|
556
554
|
url?: string | undefined;
|
|
555
|
+
headers?: Record<string, string> | undefined;
|
|
556
|
+
command?: string | undefined;
|
|
557
557
|
args?: string[] | undefined;
|
|
558
558
|
oauth?: {
|
|
559
|
-
expiresAt?: string | undefined;
|
|
560
559
|
authorizationUrl?: string | undefined;
|
|
561
560
|
tokenUrl?: string | undefined;
|
|
562
561
|
clientId?: string | undefined;
|
|
563
562
|
clientSecret?: string | undefined;
|
|
564
563
|
accessToken?: string | undefined;
|
|
565
564
|
refreshToken?: string | undefined;
|
|
565
|
+
expiresAt?: string | undefined;
|
|
566
566
|
} | undefined;
|
|
567
567
|
}[] | undefined;
|
|
568
568
|
} | undefined;
|
|
@@ -575,6 +575,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
575
575
|
allowedEmails?: string[] | undefined;
|
|
576
576
|
} | undefined;
|
|
577
577
|
}, {
|
|
578
|
+
defaultModel?: string | undefined;
|
|
578
579
|
workingDirectory?: string | undefined;
|
|
579
580
|
toolApprovals?: {
|
|
580
581
|
bash?: boolean | undefined;
|
|
@@ -584,17 +585,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
584
585
|
todo?: boolean | undefined;
|
|
585
586
|
} | undefined;
|
|
586
587
|
approvalWebhook?: string | undefined;
|
|
587
|
-
slack?: {
|
|
588
|
-
botToken?: string | undefined;
|
|
589
|
-
signingSecret?: string | undefined;
|
|
590
|
-
defaultOrchestratorName?: string | undefined;
|
|
591
|
-
allowedUsers?: string[] | undefined;
|
|
592
|
-
allowedChannels?: string[] | undefined;
|
|
593
|
-
allowDmsFromAnyone?: boolean | undefined;
|
|
594
|
-
deniedReplyEnabled?: boolean | undefined;
|
|
595
|
-
deniedReplyTemplate?: string | undefined;
|
|
596
|
-
} | undefined;
|
|
597
|
-
defaultModel?: string | undefined;
|
|
598
588
|
skills?: {
|
|
599
589
|
directory?: string | undefined;
|
|
600
590
|
additionalDirectories?: string[] | undefined;
|
|
@@ -622,25 +612,35 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
622
612
|
include?: string[] | undefined;
|
|
623
613
|
exclude?: string[] | undefined;
|
|
624
614
|
} | undefined;
|
|
615
|
+
slack?: {
|
|
616
|
+
botToken?: string | undefined;
|
|
617
|
+
signingSecret?: string | undefined;
|
|
618
|
+
defaultOrchestratorName?: string | undefined;
|
|
619
|
+
allowedUsers?: string[] | undefined;
|
|
620
|
+
allowedChannels?: string[] | undefined;
|
|
621
|
+
allowDmsFromAnyone?: boolean | undefined;
|
|
622
|
+
deniedReplyEnabled?: boolean | undefined;
|
|
623
|
+
deniedReplyTemplate?: string | undefined;
|
|
624
|
+
} | undefined;
|
|
625
625
|
mcp?: {
|
|
626
626
|
servers?: {
|
|
627
627
|
id: string;
|
|
628
628
|
name: string;
|
|
629
|
-
createdAt: string;
|
|
630
629
|
transport: "http" | "sse" | "stdio";
|
|
631
|
-
|
|
632
|
-
headers?: Record<string, string> | undefined;
|
|
633
|
-
enabled?: boolean | undefined;
|
|
630
|
+
createdAt: string;
|
|
634
631
|
url?: string | undefined;
|
|
632
|
+
headers?: Record<string, string> | undefined;
|
|
633
|
+
command?: string | undefined;
|
|
635
634
|
args?: string[] | undefined;
|
|
635
|
+
enabled?: boolean | undefined;
|
|
636
636
|
oauth?: {
|
|
637
|
-
expiresAt?: string | undefined;
|
|
638
637
|
authorizationUrl?: string | undefined;
|
|
639
638
|
tokenUrl?: string | undefined;
|
|
640
639
|
clientId?: string | undefined;
|
|
641
640
|
clientSecret?: string | undefined;
|
|
642
641
|
accessToken?: string | undefined;
|
|
643
642
|
refreshToken?: string | undefined;
|
|
643
|
+
expiresAt?: string | undefined;
|
|
644
644
|
} | undefined;
|
|
645
645
|
}[] | undefined;
|
|
646
646
|
} | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as ResolvedConfig } from './index
|
|
2
|
-
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index
|
|
1
|
+
import { R as ResolvedConfig } from './index-D5l-DMGC.js';
|
|
2
|
+
export { A as Agent, a as AgentOptions, b as AgentRunOptions, c as AgentStreamResult, S as SparkcoderConfig, T as ToolApprovalConfig } from './index-D5l-DMGC.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-
|
|
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-
|
|
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-
|
|
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';
|
package/dist/index.js
CHANGED
|
@@ -815,11 +815,18 @@ function getStoredAuthKeyInfo() {
|
|
|
815
815
|
}
|
|
816
816
|
return null;
|
|
817
817
|
}
|
|
818
|
-
async function registerWithRemoteServer(serverUrl, name) {
|
|
818
|
+
async function registerWithRemoteServer(serverUrl, name, token) {
|
|
819
|
+
const registerToken = token || process.env.SPARKECODER_REGISTER_TOKEN || process.env.SPARKECODER_SETUP_SECRET;
|
|
819
820
|
const response = await fetch(`${serverUrl}/auth/register`, {
|
|
820
821
|
method: "POST",
|
|
821
|
-
headers: {
|
|
822
|
-
|
|
822
|
+
headers: {
|
|
823
|
+
"Content-Type": "application/json",
|
|
824
|
+
...registerToken ? { "X-Register-Token": registerToken } : {}
|
|
825
|
+
},
|
|
826
|
+
body: JSON.stringify({
|
|
827
|
+
name: name || `CLI ${(/* @__PURE__ */ new Date()).toISOString()}`,
|
|
828
|
+
...registerToken ? { token: registerToken } : {}
|
|
829
|
+
})
|
|
823
830
|
});
|
|
824
831
|
if (!response.ok) {
|
|
825
832
|
const error = await response.json().catch(() => ({}));
|
|
@@ -829,7 +836,7 @@ async function registerWithRemoteServer(serverUrl, name) {
|
|
|
829
836
|
saveAuthKey(data.authKey, data.userId);
|
|
830
837
|
return data;
|
|
831
838
|
}
|
|
832
|
-
async function ensureRemoteAuthKey(serverUrl) {
|
|
839
|
+
async function ensureRemoteAuthKey(serverUrl, token) {
|
|
833
840
|
if (process.env.SPARKECODER_AUTH_KEY) {
|
|
834
841
|
return process.env.SPARKECODER_AUTH_KEY;
|
|
835
842
|
}
|
|
@@ -837,7 +844,7 @@ async function ensureRemoteAuthKey(serverUrl) {
|
|
|
837
844
|
if (storedKey) {
|
|
838
845
|
return storedKey;
|
|
839
846
|
}
|
|
840
|
-
const { authKey: authKey3 } = await registerWithRemoteServer(serverUrl);
|
|
847
|
+
const { authKey: authKey3 } = await registerWithRemoteServer(serverUrl, void 0, token);
|
|
841
848
|
return authKey3;
|
|
842
849
|
}
|
|
843
850
|
function getApiKeysPath() {
|