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.
@@ -1,25 +1,7 @@
1
1
  import * as ai from 'ai';
2
2
  import { ToolSet } from 'ai';
3
-
4
- interface BashToolOptions {
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 { type BashToolOptions, type CreateToolsOptions, type LoadSkillToolOptions, type ReadFileToolOptions, type TerminalToolOptions, type TodoToolOptions, type WriteFileToolOptions, createBashTool, createLoadSkillTool, createReadFileTool, createTerminalTool, createTodoTool, createTools, createWriteFileTool };
268
+ export { BashToolProgress, type CreateToolsOptions, type LoadSkillToolOptions, type ReadFileToolOptions, type TodoToolOptions, type WriteFileToolOptions, createLoadSkillTool, createReadFileTool, createTodoTool, createTools, createWriteFileTool };