sparkecoder 0.1.3 → 0.1.4
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 +653 -574
- package/dist/agent/index.js.map +1 -1
- package/dist/bash-CGAqW7HR.d.ts +80 -0
- package/dist/cli.js +2912 -1374
- package/dist/cli.js.map +1 -1
- package/dist/db/index.d.ts +16 -3
- package/dist/db/index.js +68 -13
- package/dist/db/index.js.map +1 -1
- package/dist/{index-BxpkHy7X.d.ts → index-DkR9Ln_7.d.ts} +18 -2
- package/dist/index.d.ts +117 -79
- package/dist/index.js +2402 -1242
- package/dist/index.js.map +1 -1
- package/dist/{schema-EPbMMFza.d.ts → schema-cUDLVN-b.d.ts} +127 -5
- package/dist/server/index.d.ts +9 -2
- package/dist/server/index.js +2390 -1245
- package/dist/server/index.js.map +1 -1
- package/dist/tools/index.d.ts +4 -138
- package/dist/tools/index.js +483 -558
- 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;
|
|
@@ -271,132 +253,16 @@ declare function createLoadSkillTool(options: LoadSkillToolOptions): ai.Tool<{
|
|
|
271
253
|
contentLength?: undefined;
|
|
272
254
|
}>;
|
|
273
255
|
|
|
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
256
|
interface CreateToolsOptions {
|
|
392
257
|
sessionId: string;
|
|
393
258
|
workingDirectory: string;
|
|
394
259
|
skillsDirectories: string[];
|
|
395
260
|
onBashOutput?: (output: string) => void;
|
|
261
|
+
onBashProgress?: (progress: BashToolProgress) => void;
|
|
396
262
|
}
|
|
397
263
|
/**
|
|
398
264
|
* Create all tools for an agent session
|
|
399
265
|
*/
|
|
400
266
|
declare function createTools(options: CreateToolsOptions): ToolSet;
|
|
401
267
|
|
|
402
|
-
export {
|
|
268
|
+
export { BashToolProgress, type CreateToolsOptions, type LoadSkillToolOptions, type ReadFileToolOptions, type TodoToolOptions, type WriteFileToolOptions, createLoadSkillTool, createReadFileTool, createTodoTool, createTools, createWriteFileTool };
|