sparkecoder 0.1.114 → 0.1.115
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/cli.js +156 -1
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +2 -2
- package/dist/{index-Bi8Ek02A.d.ts → index-Biy5JTop.d.ts} +104 -104
- package/dist/index.d.ts +5 -5
- package/dist/{schema-ecQSnCMz.d.ts → schema-CYSKJZ3m.d.ts} +3 -3
- package/dist/{search-DOzC4ojH.d.ts → search-CVVfuBPZ.d.ts} +4 -4
- package/dist/skills/default/computer-use.md +20 -13
- package/dist/skills/default/recording.md +66 -42
- package/dist/tools/index.d.ts +3 -3
- package/package.json +1 -1
- package/src/skills/default/computer-use.md +20 -13
- package/src/skills/default/recording.md +66 -42
- 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/_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.html +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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 +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/!KG1haW4p/agents/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/web/.next/standalone/web/.next/server/app/agents.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs/installation.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/installation.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +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 +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/skills.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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 +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 +1 -1
- package/web/.next/standalone/web/.next/server/app/docs/tools.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.html +2 -2
- package/web/.next/standalone/web/.next/server/app/docs.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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 +1 -1
- package/web/.next/standalone/web/.next/server/app/docs.segments/docs.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.html +1 -1
- package/web/.next/standalone/web/.next/server/app/index.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p/__PAGE__.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/!KG1haW4p.segment.rsc +1 -1
- package/web/.next/standalone/web/.next/server/app/index.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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 +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/!KG1haW4p/settings/__PAGE__.segment.rsc +1 -1
- 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 +1 -1
- package/web/.next/standalone/web/.next/server/app/settings.segments/_full.segment.rsc +1 -1
- 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 +1 -1
- 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/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_ssgManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_buildManifest.js +0 -0
- /package/web/.next/standalone/web/.next/static/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/standalone/web/.next/static/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_ssgManifest.js +0 -0
- /package/web/.next/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_buildManifest.js +0 -0
- /package/web/.next/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_clientMiddlewareManifest.json +0 -0
- /package/web/.next/static/{N09EiHl0JwEgsGMdCtwpB → pSGgtxBjN5_o0YHZgQzXm}/_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-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';
|
|
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-CYSKJZ3m.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-CVVfuBPZ.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: "
|
|
41
|
+
status: "running" | "completed" | "failed";
|
|
42
42
|
enabled: boolean;
|
|
43
43
|
outputSchema: Record<string, unknown>;
|
|
44
|
-
error?: string | undefined;
|
|
45
|
-
maxIterations?: number | undefined;
|
|
46
44
|
webhookUrl?: string | undefined;
|
|
47
|
-
|
|
45
|
+
maxIterations?: number | undefined;
|
|
48
46
|
result?: unknown;
|
|
47
|
+
error?: string | undefined;
|
|
49
48
|
iterations?: number | undefined;
|
|
49
|
+
parentTaskId?: string | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
status: "
|
|
51
|
+
status: "running" | "completed" | "failed";
|
|
52
52
|
enabled: boolean;
|
|
53
53
|
outputSchema: Record<string, unknown>;
|
|
54
|
-
error?: string | undefined;
|
|
55
|
-
maxIterations?: number | undefined;
|
|
56
54
|
webhookUrl?: string | undefined;
|
|
57
|
-
|
|
55
|
+
maxIterations?: number | undefined;
|
|
58
56
|
result?: unknown;
|
|
57
|
+
error?: string | undefined;
|
|
59
58
|
iterations?: number | undefined;
|
|
59
|
+
parentTaskId?: string | undefined;
|
|
60
60
|
}>>;
|
|
61
61
|
computerUseEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
62
62
|
computerUseDisplayWidth: z.ZodOptional<z.ZodNumber>;
|
|
@@ -87,20 +87,20 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
87
87
|
lastFiredAt: z.ZodOptional<z.ZodString>;
|
|
88
88
|
createdAt: z.ZodString;
|
|
89
89
|
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
enabled: boolean;
|
|
90
91
|
id: string;
|
|
91
92
|
name: string;
|
|
92
|
-
enabled: boolean;
|
|
93
|
-
createdAt: string;
|
|
94
|
-
prompt: string;
|
|
95
93
|
cron: string;
|
|
94
|
+
prompt: string;
|
|
95
|
+
createdAt: string;
|
|
96
96
|
replyChannel?: string | undefined;
|
|
97
97
|
lastFiredAt?: string | undefined;
|
|
98
98
|
}, {
|
|
99
99
|
id: string;
|
|
100
100
|
name: string;
|
|
101
|
-
createdAt: string;
|
|
102
|
-
prompt: string;
|
|
103
101
|
cron: string;
|
|
102
|
+
prompt: string;
|
|
103
|
+
createdAt: string;
|
|
104
104
|
enabled?: boolean | undefined;
|
|
105
105
|
replyChannel?: string | undefined;
|
|
106
106
|
lastFiredAt?: string | undefined;
|
|
@@ -115,19 +115,19 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
115
115
|
lastHitAt: z.ZodOptional<z.ZodString>;
|
|
116
116
|
createdAt: z.ZodString;
|
|
117
117
|
}, "strip", z.ZodTypeAny, {
|
|
118
|
-
token: string;
|
|
119
118
|
id: string;
|
|
120
119
|
name: string;
|
|
121
120
|
createdAt: string;
|
|
121
|
+
token: string;
|
|
122
122
|
wake: "now" | "next";
|
|
123
123
|
hitCount: number;
|
|
124
124
|
template?: string | undefined;
|
|
125
125
|
lastHitAt?: string | undefined;
|
|
126
126
|
}, {
|
|
127
|
-
token: string;
|
|
128
127
|
id: string;
|
|
129
128
|
name: string;
|
|
130
129
|
createdAt: string;
|
|
130
|
+
token: string;
|
|
131
131
|
wake?: "now" | "next" | undefined;
|
|
132
132
|
template?: string | undefined;
|
|
133
133
|
hitCount?: number | undefined;
|
|
@@ -137,96 +137,96 @@ declare const SessionConfigSchema: z.ZodObject<{
|
|
|
137
137
|
maxContextChars: number;
|
|
138
138
|
toolApprovals?: Record<string, boolean> | undefined;
|
|
139
139
|
approvalWebhook?: string | undefined;
|
|
140
|
-
|
|
141
|
-
token: string;
|
|
142
|
-
id: string;
|
|
143
|
-
name: string;
|
|
144
|
-
createdAt: string;
|
|
145
|
-
wake: "now" | "next";
|
|
146
|
-
hitCount: number;
|
|
147
|
-
template?: string | undefined;
|
|
148
|
-
lastHitAt?: string | undefined;
|
|
149
|
-
}[] | undefined;
|
|
150
|
-
slack?: {
|
|
151
|
-
channel?: string | undefined;
|
|
152
|
-
threadTs?: string | undefined;
|
|
153
|
-
teamId?: string | undefined;
|
|
154
|
-
} | undefined;
|
|
140
|
+
skillsDirectory?: string | undefined;
|
|
155
141
|
task?: {
|
|
156
|
-
status: "
|
|
142
|
+
status: "running" | "completed" | "failed";
|
|
157
143
|
enabled: boolean;
|
|
158
144
|
outputSchema: Record<string, unknown>;
|
|
159
|
-
error?: string | undefined;
|
|
160
|
-
maxIterations?: number | undefined;
|
|
161
145
|
webhookUrl?: string | undefined;
|
|
162
|
-
|
|
146
|
+
maxIterations?: number | undefined;
|
|
163
147
|
result?: unknown;
|
|
148
|
+
error?: string | undefined;
|
|
164
149
|
iterations?: number | undefined;
|
|
150
|
+
parentTaskId?: string | undefined;
|
|
165
151
|
} | undefined;
|
|
166
|
-
skillsDirectory?: string | undefined;
|
|
167
152
|
computerUseEnabled?: boolean | undefined;
|
|
168
153
|
computerUseDisplayWidth?: number | undefined;
|
|
169
154
|
computerUseDisplayHeight?: number | undefined;
|
|
170
155
|
role?: "orchestrator" | "worker" | "chat" | undefined;
|
|
171
156
|
personality?: string | undefined;
|
|
172
157
|
orchestratorSessionId?: string | undefined;
|
|
158
|
+
slack?: {
|
|
159
|
+
channel?: string | undefined;
|
|
160
|
+
threadTs?: string | undefined;
|
|
161
|
+
teamId?: string | undefined;
|
|
162
|
+
} | undefined;
|
|
173
163
|
schedules?: {
|
|
164
|
+
enabled: boolean;
|
|
174
165
|
id: string;
|
|
175
166
|
name: string;
|
|
176
|
-
enabled: boolean;
|
|
177
|
-
createdAt: string;
|
|
178
|
-
prompt: string;
|
|
179
167
|
cron: string;
|
|
168
|
+
prompt: string;
|
|
169
|
+
createdAt: string;
|
|
180
170
|
replyChannel?: string | undefined;
|
|
181
171
|
lastFiredAt?: string | undefined;
|
|
182
172
|
}[] | undefined;
|
|
183
|
-
}, {
|
|
184
|
-
toolApprovals?: Record<string, boolean> | undefined;
|
|
185
|
-
approvalWebhook?: string | undefined;
|
|
186
173
|
webhooks?: {
|
|
187
|
-
token: string;
|
|
188
174
|
id: string;
|
|
189
175
|
name: string;
|
|
190
176
|
createdAt: string;
|
|
191
|
-
|
|
177
|
+
token: string;
|
|
178
|
+
wake: "now" | "next";
|
|
179
|
+
hitCount: number;
|
|
192
180
|
template?: string | undefined;
|
|
193
|
-
hitCount?: number | undefined;
|
|
194
181
|
lastHitAt?: string | undefined;
|
|
195
182
|
}[] | undefined;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
183
|
+
}, {
|
|
184
|
+
toolApprovals?: Record<string, boolean> | undefined;
|
|
185
|
+
approvalWebhook?: string | undefined;
|
|
186
|
+
skillsDirectory?: string | undefined;
|
|
187
|
+
maxContextChars?: number | undefined;
|
|
201
188
|
task?: {
|
|
202
|
-
status: "
|
|
189
|
+
status: "running" | "completed" | "failed";
|
|
203
190
|
enabled: boolean;
|
|
204
191
|
outputSchema: Record<string, unknown>;
|
|
205
|
-
error?: string | undefined;
|
|
206
|
-
maxIterations?: number | undefined;
|
|
207
192
|
webhookUrl?: string | undefined;
|
|
208
|
-
|
|
193
|
+
maxIterations?: number | undefined;
|
|
209
194
|
result?: unknown;
|
|
195
|
+
error?: string | undefined;
|
|
210
196
|
iterations?: number | undefined;
|
|
197
|
+
parentTaskId?: string | undefined;
|
|
211
198
|
} | undefined;
|
|
212
|
-
skillsDirectory?: string | undefined;
|
|
213
|
-
maxContextChars?: number | undefined;
|
|
214
199
|
computerUseEnabled?: boolean | undefined;
|
|
215
200
|
computerUseDisplayWidth?: number | undefined;
|
|
216
201
|
computerUseDisplayHeight?: number | undefined;
|
|
217
202
|
role?: "orchestrator" | "worker" | "chat" | undefined;
|
|
218
203
|
personality?: string | undefined;
|
|
219
204
|
orchestratorSessionId?: string | undefined;
|
|
205
|
+
slack?: {
|
|
206
|
+
channel?: string | undefined;
|
|
207
|
+
threadTs?: string | undefined;
|
|
208
|
+
teamId?: string | undefined;
|
|
209
|
+
} | undefined;
|
|
220
210
|
schedules?: {
|
|
221
211
|
id: string;
|
|
222
212
|
name: string;
|
|
223
|
-
createdAt: string;
|
|
224
|
-
prompt: string;
|
|
225
213
|
cron: string;
|
|
214
|
+
prompt: string;
|
|
215
|
+
createdAt: string;
|
|
226
216
|
enabled?: boolean | undefined;
|
|
227
217
|
replyChannel?: string | undefined;
|
|
228
218
|
lastFiredAt?: string | undefined;
|
|
229
219
|
}[] | undefined;
|
|
220
|
+
webhooks?: {
|
|
221
|
+
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
createdAt: string;
|
|
224
|
+
token: string;
|
|
225
|
+
wake?: "now" | "next" | undefined;
|
|
226
|
+
template?: string | undefined;
|
|
227
|
+
hitCount?: number | undefined;
|
|
228
|
+
lastHitAt?: string | undefined;
|
|
229
|
+
}[] | undefined;
|
|
230
230
|
}>;
|
|
231
231
|
declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
232
232
|
defaultModel: z.ZodDefault<z.ZodString>;
|
|
@@ -392,15 +392,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
392
392
|
expiresAt?: string | undefined;
|
|
393
393
|
}>>;
|
|
394
394
|
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
enabled: boolean;
|
|
395
396
|
id: string;
|
|
396
397
|
name: string;
|
|
397
|
-
transport: "http" | "sse" | "stdio";
|
|
398
|
-
enabled: boolean;
|
|
399
398
|
createdAt: string;
|
|
399
|
+
transport: "http" | "sse" | "stdio";
|
|
400
|
+
args?: string[] | undefined;
|
|
400
401
|
url?: string | undefined;
|
|
401
402
|
headers?: Record<string, string> | undefined;
|
|
402
403
|
command?: string | undefined;
|
|
403
|
-
args?: string[] | undefined;
|
|
404
404
|
oauth?: {
|
|
405
405
|
authorizationUrl?: string | undefined;
|
|
406
406
|
tokenUrl?: string | undefined;
|
|
@@ -413,13 +413,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
413
413
|
}, {
|
|
414
414
|
id: string;
|
|
415
415
|
name: string;
|
|
416
|
-
transport: "http" | "sse" | "stdio";
|
|
417
416
|
createdAt: string;
|
|
417
|
+
transport: "http" | "sse" | "stdio";
|
|
418
|
+
enabled?: boolean | undefined;
|
|
419
|
+
args?: string[] | undefined;
|
|
418
420
|
url?: string | undefined;
|
|
419
421
|
headers?: Record<string, string> | undefined;
|
|
420
422
|
command?: string | undefined;
|
|
421
|
-
args?: string[] | undefined;
|
|
422
|
-
enabled?: boolean | undefined;
|
|
423
423
|
oauth?: {
|
|
424
424
|
authorizationUrl?: string | undefined;
|
|
425
425
|
tokenUrl?: string | undefined;
|
|
@@ -432,15 +432,15 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
432
432
|
}>, "many">>>>;
|
|
433
433
|
}, "strip", z.ZodTypeAny, {
|
|
434
434
|
servers?: {
|
|
435
|
+
enabled: boolean;
|
|
435
436
|
id: string;
|
|
436
437
|
name: string;
|
|
437
|
-
transport: "http" | "sse" | "stdio";
|
|
438
|
-
enabled: boolean;
|
|
439
438
|
createdAt: string;
|
|
439
|
+
transport: "http" | "sse" | "stdio";
|
|
440
|
+
args?: string[] | undefined;
|
|
440
441
|
url?: string | undefined;
|
|
441
442
|
headers?: Record<string, string> | undefined;
|
|
442
443
|
command?: string | undefined;
|
|
443
|
-
args?: string[] | undefined;
|
|
444
444
|
oauth?: {
|
|
445
445
|
authorizationUrl?: string | undefined;
|
|
446
446
|
tokenUrl?: string | undefined;
|
|
@@ -455,13 +455,13 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
455
455
|
servers?: {
|
|
456
456
|
id: string;
|
|
457
457
|
name: string;
|
|
458
|
-
transport: "http" | "sse" | "stdio";
|
|
459
458
|
createdAt: string;
|
|
459
|
+
transport: "http" | "sse" | "stdio";
|
|
460
|
+
enabled?: boolean | undefined;
|
|
461
|
+
args?: string[] | undefined;
|
|
460
462
|
url?: string | undefined;
|
|
461
463
|
headers?: Record<string, string> | undefined;
|
|
462
464
|
command?: string | undefined;
|
|
463
|
-
args?: string[] | undefined;
|
|
464
|
-
enabled?: boolean | undefined;
|
|
465
465
|
oauth?: {
|
|
466
466
|
authorizationUrl?: string | undefined;
|
|
467
467
|
tokenUrl?: string | undefined;
|
|
@@ -504,7 +504,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
504
504
|
allowedEmails?: string[] | undefined;
|
|
505
505
|
}>>;
|
|
506
506
|
}, "strip", z.ZodTypeAny, {
|
|
507
|
-
defaultModel: string;
|
|
508
507
|
toolApprovals: {
|
|
509
508
|
bash: boolean;
|
|
510
509
|
write_file: boolean;
|
|
@@ -512,6 +511,7 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
512
511
|
load_skill: boolean;
|
|
513
512
|
todo: boolean;
|
|
514
513
|
};
|
|
514
|
+
defaultModel: string;
|
|
515
515
|
skills: {
|
|
516
516
|
directory: string;
|
|
517
517
|
additionalDirectories: string[];
|
|
@@ -527,11 +527,21 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
527
527
|
publicUrl?: string | undefined;
|
|
528
528
|
};
|
|
529
529
|
databasePath: string;
|
|
530
|
-
workingDirectory?: string | undefined;
|
|
531
530
|
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;
|
|
532
541
|
webhooks?: {
|
|
533
542
|
token?: string | undefined;
|
|
534
543
|
} | undefined;
|
|
544
|
+
workingDirectory?: string | undefined;
|
|
535
545
|
remoteServer?: {
|
|
536
546
|
url?: string | undefined;
|
|
537
547
|
authKey?: string | undefined;
|
|
@@ -544,27 +554,17 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
544
554
|
httpUrl?: string | undefined;
|
|
545
555
|
namespace?: string | undefined;
|
|
546
556
|
} | undefined;
|
|
547
|
-
slack?: {
|
|
548
|
-
botToken?: string | undefined;
|
|
549
|
-
signingSecret?: string | undefined;
|
|
550
|
-
defaultOrchestratorName?: string | undefined;
|
|
551
|
-
allowedUsers?: string[] | undefined;
|
|
552
|
-
allowedChannels?: string[] | undefined;
|
|
553
|
-
allowDmsFromAnyone?: boolean | undefined;
|
|
554
|
-
deniedReplyEnabled?: boolean | undefined;
|
|
555
|
-
deniedReplyTemplate?: string | undefined;
|
|
556
|
-
} | undefined;
|
|
557
557
|
mcp?: {
|
|
558
558
|
servers?: {
|
|
559
|
+
enabled: boolean;
|
|
559
560
|
id: string;
|
|
560
561
|
name: string;
|
|
561
|
-
transport: "http" | "sse" | "stdio";
|
|
562
|
-
enabled: boolean;
|
|
563
562
|
createdAt: string;
|
|
563
|
+
transport: "http" | "sse" | "stdio";
|
|
564
|
+
args?: string[] | undefined;
|
|
564
565
|
url?: string | undefined;
|
|
565
566
|
headers?: Record<string, string> | undefined;
|
|
566
567
|
command?: string | undefined;
|
|
567
|
-
args?: string[] | undefined;
|
|
568
568
|
oauth?: {
|
|
569
569
|
authorizationUrl?: string | undefined;
|
|
570
570
|
tokenUrl?: string | undefined;
|
|
@@ -585,8 +585,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
585
585
|
allowedEmails?: string[] | undefined;
|
|
586
586
|
} | undefined;
|
|
587
587
|
}, {
|
|
588
|
-
defaultModel?: string | undefined;
|
|
589
|
-
workingDirectory?: string | undefined;
|
|
590
588
|
toolApprovals?: {
|
|
591
589
|
bash?: boolean | undefined;
|
|
592
590
|
write_file?: boolean | undefined;
|
|
@@ -595,6 +593,21 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
595
593
|
todo?: boolean | undefined;
|
|
596
594
|
} | undefined;
|
|
597
595
|
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;
|
|
598
611
|
skills?: {
|
|
599
612
|
directory?: string | undefined;
|
|
600
613
|
additionalDirectories?: string[] | undefined;
|
|
@@ -609,9 +622,6 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
609
622
|
host?: string | undefined;
|
|
610
623
|
publicUrl?: string | undefined;
|
|
611
624
|
} | undefined;
|
|
612
|
-
webhooks?: {
|
|
613
|
-
token?: string | undefined;
|
|
614
|
-
} | undefined;
|
|
615
625
|
databasePath?: string | undefined;
|
|
616
626
|
remoteServer?: {
|
|
617
627
|
url?: string | undefined;
|
|
@@ -625,27 +635,17 @@ declare const SparkcoderConfigSchema: z.ZodObject<{
|
|
|
625
635
|
include?: string[] | undefined;
|
|
626
636
|
exclude?: string[] | undefined;
|
|
627
637
|
} | undefined;
|
|
628
|
-
slack?: {
|
|
629
|
-
botToken?: string | undefined;
|
|
630
|
-
signingSecret?: string | undefined;
|
|
631
|
-
defaultOrchestratorName?: string | undefined;
|
|
632
|
-
allowedUsers?: string[] | undefined;
|
|
633
|
-
allowedChannels?: string[] | undefined;
|
|
634
|
-
allowDmsFromAnyone?: boolean | undefined;
|
|
635
|
-
deniedReplyEnabled?: boolean | undefined;
|
|
636
|
-
deniedReplyTemplate?: string | undefined;
|
|
637
|
-
} | undefined;
|
|
638
638
|
mcp?: {
|
|
639
639
|
servers?: {
|
|
640
640
|
id: string;
|
|
641
641
|
name: string;
|
|
642
|
-
transport: "http" | "sse" | "stdio";
|
|
643
642
|
createdAt: string;
|
|
643
|
+
transport: "http" | "sse" | "stdio";
|
|
644
|
+
enabled?: boolean | undefined;
|
|
645
|
+
args?: string[] | undefined;
|
|
644
646
|
url?: string | undefined;
|
|
645
647
|
headers?: Record<string, string> | undefined;
|
|
646
648
|
command?: string | undefined;
|
|
647
|
-
args?: string[] | undefined;
|
|
648
|
-
enabled?: boolean | undefined;
|
|
649
649
|
oauth?: {
|
|
650
650
|
authorizationUrl?: string | undefined;
|
|
651
651
|
tokenUrl?: string | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { R as ResolvedConfig } from './index-
|
|
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-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';
|
|
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-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';
|
|
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-CVVfuBPZ.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: "
|
|
88
|
+
data: "completed" | "error" | "active" | "waiting";
|
|
89
89
|
driverParam: string;
|
|
90
90
|
notNull: true;
|
|
91
91
|
hasDefault: true;
|
|
@@ -391,7 +391,7 @@ declare const toolExecutions: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
391
391
|
tableName: "tool_executions";
|
|
392
392
|
dataType: "string";
|
|
393
393
|
columnType: "SQLiteText";
|
|
394
|
-
data: "
|
|
394
|
+
data: "completed" | "error" | "pending" | "approved" | "rejected";
|
|
395
395
|
driverParam: string;
|
|
396
396
|
notNull: true;
|
|
397
397
|
hasDefault: true;
|
|
@@ -814,7 +814,7 @@ declare const terminals: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
814
814
|
tableName: "terminals";
|
|
815
815
|
dataType: "string";
|
|
816
816
|
columnType: "SQLiteText";
|
|
817
|
-
data: "
|
|
817
|
+
data: "running" | "error" | "stopped";
|
|
818
818
|
driverParam: string;
|
|
819
819
|
notNull: true;
|
|
820
820
|
hasDefault: true;
|
|
@@ -16,11 +16,11 @@ interface BashToolOptions {
|
|
|
16
16
|
declare function createBashTool(options: BashToolOptions): ai.Tool<{
|
|
17
17
|
background: boolean;
|
|
18
18
|
id?: string | undefined;
|
|
19
|
-
command?: string | undefined;
|
|
20
19
|
input?: string | undefined;
|
|
20
|
+
command?: string | undefined;
|
|
21
21
|
kill?: boolean | undefined;
|
|
22
22
|
tail?: number | undefined;
|
|
23
|
-
key?: "
|
|
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;
|
|
@@ -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: "
|
|
69
|
+
status: "running" | "completed" | "error" | "stopped";
|
|
70
70
|
message?: undefined;
|
|
71
71
|
error?: undefined;
|
|
72
72
|
} | {
|
|
@@ -218,8 +218,8 @@ interface SearchToolOptions {
|
|
|
218
218
|
* Progress is streamed back to the UI so users can see exploration happening.
|
|
219
219
|
*/
|
|
220
220
|
declare function createSearchTool(options: SearchToolOptions): ai.Tool<{
|
|
221
|
-
context: string;
|
|
222
221
|
query: string;
|
|
222
|
+
context: string;
|
|
223
223
|
}, {
|
|
224
224
|
success: boolean;
|
|
225
225
|
error: string;
|
|
@@ -154,23 +154,30 @@ Coordinates are in the **logical points** of the primary display — same coordi
|
|
|
154
154
|
|
|
155
155
|
## Record what you're doing (default ON)
|
|
156
156
|
|
|
157
|
-
Computer-use sessions are *visual* — the user can't see the screen you're driving, only your text summary. **Record almost every computer-use task** so the user can replay it.
|
|
157
|
+
Computer-use sessions are *visual* — the user can't see the screen you're driving, only your text summary. **Record almost every computer-use task** so the user can replay it. Use the built-in `sparkecoder record` helper which manages start/stop properly so the recording covers the **entire task**, not just a fixed-time window:
|
|
158
158
|
|
|
159
159
|
```bash
|
|
160
|
-
# At the
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
160
|
+
# 1. At the START of the task, BEFORE your first `computer` action:
|
|
161
|
+
REC=$(sparkecoder record start --name "calculator-demo")
|
|
162
|
+
# REC is JSON: {"id":"rec-abc123","path":"~/recordings/rec-abc123-calculator-demo.mov","pid":12345}
|
|
163
|
+
REC_ID=$(echo "$REC" | jq -r .id)
|
|
164
|
+
REC_PATH=$(echo "$REC" | jq -r .path)
|
|
165
|
+
echo "Recording started: $REC_PATH (id=$REC_ID)"
|
|
166
|
+
|
|
167
|
+
# 2. ... do all your computer-use actions (open apps, click, type, etc.) ...
|
|
168
|
+
|
|
169
|
+
# 3. At the END (success OR failure), stop the recording:
|
|
170
|
+
sparkecoder record stop "$REC_ID"
|
|
171
|
+
# → JSON: {"id":"...","path":"...","durationSec":42,"sizeMb":18.4,"ok":true}
|
|
172
172
|
```
|
|
173
173
|
|
|
174
|
+
Why use `sparkecoder record` instead of `screencapture -V 60` directly:
|
|
175
|
+
|
|
176
|
+
- `-V <seconds>` is a fixed timeout — if your task takes longer than the guess, the recording ends mid-task and you get a partial. The helper has no timeout; it records until you explicitly stop it.
|
|
177
|
+
- The helper tracks PIDs in state so `sparkecoder record stop-all` can clean up if something crashes.
|
|
178
|
+
- Works on both macOS (screencapture) and Linux (ffmpeg x11grab) with the same command.
|
|
179
|
+
- Returns the file path as JSON, so you can include it in your final result without guessing.
|
|
180
|
+
|
|
174
181
|
Default behavior:
|
|
175
182
|
|
|
176
183
|
- **Always record** short / visually interesting tasks (open an app, click around, drag/drop, fill a form, demos, "show me X working").
|