sparkecoder 0.1.3 → 0.1.5
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/README.md +2 -2
- package/dist/agent/index.d.ts +3 -2
- package/dist/agent/index.js +813 -566
- package/dist/agent/index.js.map +1 -1
- package/dist/bash-CGAqW7HR.d.ts +80 -0
- package/dist/cli.js +3044 -1081
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +67 -3
- package/dist/db/index.js +252 -13
- package/dist/db/index.js.map +1 -1
- package/dist/{index-BxpkHy7X.d.ts → index-Btr542-G.d.ts} +18 -2
- package/dist/index.d.ts +178 -77
- package/dist/index.js +2537 -976
- package/dist/index.js.map +1 -1
- package/dist/{schema-EPbMMFza.d.ts → schema-CkrIadxa.d.ts} +371 -5
- package/dist/server/index.d.ts +9 -2
- package/dist/server/index.js +2483 -945
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +5 -138
- package/dist/tools/index.js +787 -723
- package/dist/tools/index.js.map +1 -1
- package/package.json +4 -2
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,25 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { ToolSet } from 'ai';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
workingDirectory: string;
|
|
6
|
-
onOutput?: (output: string) => void;
|
|
7
|
-
}
|
|
8
|
-
declare function createBashTool(options: BashToolOptions): ai.Tool<{
|
|
9
|
-
command: string;
|
|
10
|
-
}, {
|
|
11
|
-
success: boolean;
|
|
12
|
-
stdout: string;
|
|
13
|
-
stderr: string;
|
|
14
|
-
exitCode: number;
|
|
15
|
-
error?: undefined;
|
|
16
|
-
} | {
|
|
17
|
-
success: boolean;
|
|
18
|
-
error: any;
|
|
19
|
-
stdout: string;
|
|
20
|
-
stderr: string;
|
|
21
|
-
exitCode: any;
|
|
22
|
-
}>;
|
|
3
|
+
import { B as BashToolProgress } from '../bash-CGAqW7HR.js';
|
|
4
|
+
export { a as BashToolOptions, c as createBashTool } from '../bash-CGAqW7HR.js';
|
|
23
5
|
|
|
24
6
|
interface ReadFileToolOptions {
|
|
25
7
|
workingDirectory: string;
|
|
@@ -50,6 +32,7 @@ declare function createReadFileTool(options: ReadFileToolOptions): ai.Tool<{
|
|
|
50
32
|
|
|
51
33
|
interface WriteFileToolOptions {
|
|
52
34
|
workingDirectory: string;
|
|
35
|
+
sessionId: string;
|
|
53
36
|
}
|
|
54
37
|
declare function createWriteFileTool(options: WriteFileToolOptions): ai.Tool<{
|
|
55
38
|
mode: "full" | "str_replace";
|
|
@@ -271,132 +254,16 @@ declare function createLoadSkillTool(options: LoadSkillToolOptions): ai.Tool<{
|
|
|
271
254
|
contentLength?: undefined;
|
|
272
255
|
}>;
|
|
273
256
|
|
|
274
|
-
interface TerminalToolOptions {
|
|
275
|
-
sessionId: string;
|
|
276
|
-
workingDirectory: string;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* Create the terminal tool for managing background processes
|
|
280
|
-
*/
|
|
281
|
-
declare function createTerminalTool(options: TerminalToolOptions): ai.Tool<{
|
|
282
|
-
action: "status" | "list" | "spawn" | "logs" | "kill" | "write";
|
|
283
|
-
name?: string | undefined;
|
|
284
|
-
input?: string | undefined;
|
|
285
|
-
command?: string | undefined;
|
|
286
|
-
cwd?: string | undefined;
|
|
287
|
-
terminalId?: string | undefined;
|
|
288
|
-
tail?: number | undefined;
|
|
289
|
-
signal?: "SIGKILL" | "SIGTERM" | undefined;
|
|
290
|
-
}, {
|
|
291
|
-
success: boolean;
|
|
292
|
-
error: string;
|
|
293
|
-
terminal?: undefined;
|
|
294
|
-
message?: undefined;
|
|
295
|
-
terminalId?: undefined;
|
|
296
|
-
logs?: undefined;
|
|
297
|
-
lineCount?: undefined;
|
|
298
|
-
terminals?: undefined;
|
|
299
|
-
count?: undefined;
|
|
300
|
-
running?: undefined;
|
|
301
|
-
} | {
|
|
302
|
-
success: boolean;
|
|
303
|
-
terminal: {
|
|
304
|
-
id: string;
|
|
305
|
-
name: string | null;
|
|
306
|
-
command: string;
|
|
307
|
-
cwd: string;
|
|
308
|
-
pid: number | null;
|
|
309
|
-
status: "error" | "running" | "stopped";
|
|
310
|
-
exitCode: number | null;
|
|
311
|
-
error: string | null;
|
|
312
|
-
createdAt: string;
|
|
313
|
-
stoppedAt: string | null;
|
|
314
|
-
};
|
|
315
|
-
message: string;
|
|
316
|
-
error?: undefined;
|
|
317
|
-
terminalId?: undefined;
|
|
318
|
-
logs?: undefined;
|
|
319
|
-
lineCount?: undefined;
|
|
320
|
-
terminals?: undefined;
|
|
321
|
-
count?: undefined;
|
|
322
|
-
running?: undefined;
|
|
323
|
-
} | {
|
|
324
|
-
success: boolean;
|
|
325
|
-
terminalId: string;
|
|
326
|
-
logs: string;
|
|
327
|
-
lineCount: number;
|
|
328
|
-
error?: undefined;
|
|
329
|
-
terminal?: undefined;
|
|
330
|
-
message?: undefined;
|
|
331
|
-
terminals?: undefined;
|
|
332
|
-
count?: undefined;
|
|
333
|
-
running?: undefined;
|
|
334
|
-
} | {
|
|
335
|
-
success: boolean;
|
|
336
|
-
terminal: {
|
|
337
|
-
id: string;
|
|
338
|
-
name: string | null;
|
|
339
|
-
command: string;
|
|
340
|
-
cwd: string;
|
|
341
|
-
pid: number | null;
|
|
342
|
-
status: "error" | "running" | "stopped";
|
|
343
|
-
exitCode: number | null;
|
|
344
|
-
error: string | null;
|
|
345
|
-
createdAt: string;
|
|
346
|
-
stoppedAt: string | null;
|
|
347
|
-
};
|
|
348
|
-
error?: undefined;
|
|
349
|
-
message?: undefined;
|
|
350
|
-
terminalId?: undefined;
|
|
351
|
-
logs?: undefined;
|
|
352
|
-
lineCount?: undefined;
|
|
353
|
-
terminals?: undefined;
|
|
354
|
-
count?: undefined;
|
|
355
|
-
running?: undefined;
|
|
356
|
-
} | {
|
|
357
|
-
success: boolean;
|
|
358
|
-
message: string;
|
|
359
|
-
error?: undefined;
|
|
360
|
-
terminal?: undefined;
|
|
361
|
-
terminalId?: undefined;
|
|
362
|
-
logs?: undefined;
|
|
363
|
-
lineCount?: undefined;
|
|
364
|
-
terminals?: undefined;
|
|
365
|
-
count?: undefined;
|
|
366
|
-
running?: undefined;
|
|
367
|
-
} | {
|
|
368
|
-
success: boolean;
|
|
369
|
-
terminals: {
|
|
370
|
-
id: string;
|
|
371
|
-
name: string | null;
|
|
372
|
-
command: string;
|
|
373
|
-
cwd: string;
|
|
374
|
-
pid: number | null;
|
|
375
|
-
status: "error" | "running" | "stopped";
|
|
376
|
-
exitCode: number | null;
|
|
377
|
-
error: string | null;
|
|
378
|
-
createdAt: string;
|
|
379
|
-
stoppedAt: string | null;
|
|
380
|
-
}[];
|
|
381
|
-
count: number;
|
|
382
|
-
running: number;
|
|
383
|
-
error?: undefined;
|
|
384
|
-
terminal?: undefined;
|
|
385
|
-
message?: undefined;
|
|
386
|
-
terminalId?: undefined;
|
|
387
|
-
logs?: undefined;
|
|
388
|
-
lineCount?: undefined;
|
|
389
|
-
}>;
|
|
390
|
-
|
|
391
257
|
interface CreateToolsOptions {
|
|
392
258
|
sessionId: string;
|
|
393
259
|
workingDirectory: string;
|
|
394
260
|
skillsDirectories: string[];
|
|
395
261
|
onBashOutput?: (output: string) => void;
|
|
262
|
+
onBashProgress?: (progress: BashToolProgress) => void;
|
|
396
263
|
}
|
|
397
264
|
/**
|
|
398
265
|
* Create all tools for an agent session
|
|
399
266
|
*/
|
|
400
267
|
declare function createTools(options: CreateToolsOptions): ToolSet;
|
|
401
268
|
|
|
402
|
-
export {
|
|
269
|
+
export { BashToolProgress, type CreateToolsOptions, type LoadSkillToolOptions, type ReadFileToolOptions, type TodoToolOptions, type WriteFileToolOptions, createLoadSkillTool, createReadFileTool, createTodoTool, createTools, createWriteFileTool };
|