@syntero/orca-cli 1.3.1 → 1.3.3

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.
Files changed (68) hide show
  1. package/dist/assistant/anthropic.js +1 -1
  2. package/dist/assistant/anthropic.js.map +1 -1
  3. package/dist/assistant/helpers.js +1 -1
  4. package/dist/assistant/helpers.js.map +1 -1
  5. package/dist/assistant/openai.js +1 -1
  6. package/dist/assistant/openai.js.map +1 -1
  7. package/dist/assistant/prompts.d.ts.map +1 -1
  8. package/dist/assistant/prompts.js +53 -24
  9. package/dist/assistant/prompts.js.map +1 -1
  10. package/dist/assistant/types.d.ts +1 -1
  11. package/dist/assistant/types.d.ts.map +1 -1
  12. package/dist/components/ChatApp.d.ts +0 -1
  13. package/dist/components/ChatApp.d.ts.map +1 -1
  14. package/dist/components/ChatApp.js +43 -47
  15. package/dist/components/ChatApp.js.map +1 -1
  16. package/dist/components/InputFooter.d.ts +3 -1
  17. package/dist/components/InputFooter.d.ts.map +1 -1
  18. package/dist/components/InputFooter.js +3 -2
  19. package/dist/components/InputFooter.js.map +1 -1
  20. package/dist/tools/auth-tools.d.ts +26 -0
  21. package/dist/tools/auth-tools.d.ts.map +1 -0
  22. package/dist/tools/auth-tools.js +53 -0
  23. package/dist/tools/auth-tools.js.map +1 -0
  24. package/dist/tools/command.d.ts +28 -0
  25. package/dist/tools/command.d.ts.map +1 -0
  26. package/dist/tools/command.js +76 -0
  27. package/dist/tools/command.js.map +1 -0
  28. package/dist/tools/database.d.ts +19 -0
  29. package/dist/tools/database.d.ts.map +1 -0
  30. package/dist/tools/database.js +90 -0
  31. package/dist/tools/database.js.map +1 -0
  32. package/dist/tools/deployment.d.ts +195 -0
  33. package/dist/tools/deployment.d.ts.map +1 -0
  34. package/dist/tools/deployment.js +324 -0
  35. package/dist/tools/deployment.js.map +1 -0
  36. package/dist/tools/docker.d.ts +51 -0
  37. package/dist/tools/docker.d.ts.map +1 -0
  38. package/dist/tools/docker.js +68 -0
  39. package/dist/tools/docker.js.map +1 -0
  40. package/dist/tools/env.d.ts +18 -0
  41. package/dist/tools/env.d.ts.map +1 -0
  42. package/dist/tools/env.js +52 -0
  43. package/dist/tools/env.js.map +1 -0
  44. package/dist/tools/filesystem.d.ts +77 -0
  45. package/dist/tools/filesystem.d.ts.map +1 -0
  46. package/dist/tools/filesystem.js +138 -0
  47. package/dist/tools/filesystem.js.map +1 -0
  48. package/dist/tools/handler.d.ts +5 -0
  49. package/dist/tools/handler.d.ts.map +1 -0
  50. package/dist/tools/handler.js +51 -0
  51. package/dist/tools/handler.js.map +1 -0
  52. package/dist/tools/index.d.ts +462 -0
  53. package/dist/tools/index.d.ts.map +1 -0
  54. package/dist/tools/index.js +38 -0
  55. package/dist/tools/index.js.map +1 -0
  56. package/dist/tools/shared.d.ts +21 -0
  57. package/dist/tools/shared.d.ts.map +1 -0
  58. package/dist/tools/shared.js +75 -0
  59. package/dist/tools/shared.js.map +1 -0
  60. package/dist/tools/types.d.ts +2 -0
  61. package/dist/tools/types.d.ts.map +1 -0
  62. package/dist/tools/types.js +3 -0
  63. package/dist/tools/types.js.map +1 -0
  64. package/package.json +1 -1
  65. package/dist/tools.d.ts +0 -616
  66. package/dist/tools.d.ts.map +0 -1
  67. package/dist/tools.js +0 -678
  68. package/dist/tools.js.map +0 -1
package/dist/tools.d.ts DELETED
@@ -1,616 +0,0 @@
1
- export { detectDangerousCommand, checkCommand, allCategoriesApproved, type DangerousCommand, type DangerCheckResult, type RiskLevel, } from './confirmation/index.js';
2
- export declare const TOOLS_ANTHROPIC: ({
3
- name: string;
4
- description: string;
5
- input_schema: {
6
- type: string;
7
- properties: {
8
- command: {
9
- type: string;
10
- description: string;
11
- };
12
- gist: {
13
- type: string;
14
- description: string;
15
- };
16
- path?: undefined;
17
- tail?: undefined;
18
- show_all?: undefined;
19
- query?: undefined;
20
- container?: undefined;
21
- pattern?: undefined;
22
- case_insensitive?: undefined;
23
- context_lines?: undefined;
24
- target_dir?: undefined;
25
- org_id?: undefined;
26
- };
27
- required: string[];
28
- };
29
- } | {
30
- name: string;
31
- description: string;
32
- input_schema: {
33
- type: string;
34
- properties: {
35
- path: {
36
- type: string;
37
- description: string;
38
- };
39
- tail: {
40
- type: string;
41
- description: string;
42
- };
43
- command?: undefined;
44
- gist?: undefined;
45
- show_all?: undefined;
46
- query?: undefined;
47
- container?: undefined;
48
- pattern?: undefined;
49
- case_insensitive?: undefined;
50
- context_lines?: undefined;
51
- target_dir?: undefined;
52
- org_id?: undefined;
53
- };
54
- required: string[];
55
- };
56
- } | {
57
- name: string;
58
- description: string;
59
- input_schema: {
60
- type: string;
61
- properties: {
62
- path: {
63
- type: string;
64
- description: string;
65
- };
66
- command?: undefined;
67
- gist?: undefined;
68
- tail?: undefined;
69
- show_all?: undefined;
70
- query?: undefined;
71
- container?: undefined;
72
- pattern?: undefined;
73
- case_insensitive?: undefined;
74
- context_lines?: undefined;
75
- target_dir?: undefined;
76
- org_id?: undefined;
77
- };
78
- required: string[];
79
- };
80
- } | {
81
- name: string;
82
- description: string;
83
- input_schema: {
84
- type: string;
85
- properties: {
86
- show_all: {
87
- type: string;
88
- description: string;
89
- };
90
- command?: undefined;
91
- gist?: undefined;
92
- path?: undefined;
93
- tail?: undefined;
94
- query?: undefined;
95
- container?: undefined;
96
- pattern?: undefined;
97
- case_insensitive?: undefined;
98
- context_lines?: undefined;
99
- target_dir?: undefined;
100
- org_id?: undefined;
101
- };
102
- required?: undefined;
103
- };
104
- } | {
105
- name: string;
106
- description: string;
107
- input_schema: {
108
- type: string;
109
- properties: {
110
- query: {
111
- type: string;
112
- description: string;
113
- };
114
- command?: undefined;
115
- gist?: undefined;
116
- path?: undefined;
117
- tail?: undefined;
118
- show_all?: undefined;
119
- container?: undefined;
120
- pattern?: undefined;
121
- case_insensitive?: undefined;
122
- context_lines?: undefined;
123
- target_dir?: undefined;
124
- org_id?: undefined;
125
- };
126
- required: string[];
127
- };
128
- } | {
129
- name: string;
130
- description: string;
131
- input_schema: {
132
- type: string;
133
- properties: {
134
- container: {
135
- type: string;
136
- description: string;
137
- };
138
- pattern: {
139
- type: string;
140
- description: string;
141
- };
142
- case_insensitive: {
143
- type: string;
144
- description: string;
145
- };
146
- context_lines: {
147
- type: string;
148
- description: string;
149
- };
150
- command?: undefined;
151
- gist?: undefined;
152
- path?: undefined;
153
- tail?: undefined;
154
- show_all?: undefined;
155
- query?: undefined;
156
- target_dir?: undefined;
157
- org_id?: undefined;
158
- };
159
- required: string[];
160
- };
161
- } | {
162
- name: string;
163
- description: string;
164
- input_schema: {
165
- type: string;
166
- properties: {
167
- container: {
168
- type: string;
169
- description: string;
170
- };
171
- command?: undefined;
172
- gist?: undefined;
173
- path?: undefined;
174
- tail?: undefined;
175
- show_all?: undefined;
176
- query?: undefined;
177
- pattern?: undefined;
178
- case_insensitive?: undefined;
179
- context_lines?: undefined;
180
- target_dir?: undefined;
181
- org_id?: undefined;
182
- };
183
- required?: undefined;
184
- };
185
- } | {
186
- name: string;
187
- description: string;
188
- input_schema: {
189
- type: string;
190
- properties: {
191
- pattern: {
192
- type: string;
193
- description: string;
194
- };
195
- path: {
196
- type: string;
197
- description: string;
198
- };
199
- case_insensitive: {
200
- type: string;
201
- description: string;
202
- };
203
- context_lines: {
204
- type: string;
205
- description: string;
206
- };
207
- command?: undefined;
208
- gist?: undefined;
209
- tail?: undefined;
210
- show_all?: undefined;
211
- query?: undefined;
212
- container?: undefined;
213
- target_dir?: undefined;
214
- org_id?: undefined;
215
- };
216
- required: string[];
217
- };
218
- } | {
219
- name: string;
220
- description: string;
221
- input_schema: {
222
- type: string;
223
- properties: {
224
- command?: undefined;
225
- gist?: undefined;
226
- path?: undefined;
227
- tail?: undefined;
228
- show_all?: undefined;
229
- query?: undefined;
230
- container?: undefined;
231
- pattern?: undefined;
232
- case_insensitive?: undefined;
233
- context_lines?: undefined;
234
- target_dir?: undefined;
235
- org_id?: undefined;
236
- };
237
- required?: undefined;
238
- };
239
- } | {
240
- name: string;
241
- description: string;
242
- input_schema: {
243
- type: string;
244
- properties: {
245
- target_dir: {
246
- type: string;
247
- description: string;
248
- };
249
- command?: undefined;
250
- gist?: undefined;
251
- path?: undefined;
252
- tail?: undefined;
253
- show_all?: undefined;
254
- query?: undefined;
255
- container?: undefined;
256
- pattern?: undefined;
257
- case_insensitive?: undefined;
258
- context_lines?: undefined;
259
- org_id?: undefined;
260
- };
261
- required: string[];
262
- };
263
- } | {
264
- name: string;
265
- description: string;
266
- input_schema: {
267
- type: string;
268
- properties: {
269
- command?: undefined;
270
- gist?: undefined;
271
- path?: undefined;
272
- tail?: undefined;
273
- show_all?: undefined;
274
- query?: undefined;
275
- container?: undefined;
276
- pattern?: undefined;
277
- case_insensitive?: undefined;
278
- context_lines?: undefined;
279
- target_dir?: undefined;
280
- org_id?: undefined;
281
- };
282
- required: never[];
283
- };
284
- } | {
285
- name: string;
286
- description: string;
287
- input_schema: {
288
- type: string;
289
- properties: {
290
- org_id: {
291
- type: string;
292
- description: string;
293
- };
294
- command?: undefined;
295
- gist?: undefined;
296
- path?: undefined;
297
- tail?: undefined;
298
- show_all?: undefined;
299
- query?: undefined;
300
- container?: undefined;
301
- pattern?: undefined;
302
- case_insensitive?: undefined;
303
- context_lines?: undefined;
304
- target_dir?: undefined;
305
- };
306
- required: string[];
307
- };
308
- })[];
309
- export declare const TOOLS_OPENAI: {
310
- type: "function";
311
- function: {
312
- name: string;
313
- description: string;
314
- parameters: {
315
- type: string;
316
- properties: {
317
- command: {
318
- type: string;
319
- description: string;
320
- };
321
- gist: {
322
- type: string;
323
- description: string;
324
- };
325
- path?: undefined;
326
- tail?: undefined;
327
- show_all?: undefined;
328
- query?: undefined;
329
- container?: undefined;
330
- pattern?: undefined;
331
- case_insensitive?: undefined;
332
- context_lines?: undefined;
333
- target_dir?: undefined;
334
- org_id?: undefined;
335
- };
336
- required: string[];
337
- } | {
338
- type: string;
339
- properties: {
340
- path: {
341
- type: string;
342
- description: string;
343
- };
344
- tail: {
345
- type: string;
346
- description: string;
347
- };
348
- command?: undefined;
349
- gist?: undefined;
350
- show_all?: undefined;
351
- query?: undefined;
352
- container?: undefined;
353
- pattern?: undefined;
354
- case_insensitive?: undefined;
355
- context_lines?: undefined;
356
- target_dir?: undefined;
357
- org_id?: undefined;
358
- };
359
- required: string[];
360
- } | {
361
- type: string;
362
- properties: {
363
- path: {
364
- type: string;
365
- description: string;
366
- };
367
- command?: undefined;
368
- gist?: undefined;
369
- tail?: undefined;
370
- show_all?: undefined;
371
- query?: undefined;
372
- container?: undefined;
373
- pattern?: undefined;
374
- case_insensitive?: undefined;
375
- context_lines?: undefined;
376
- target_dir?: undefined;
377
- org_id?: undefined;
378
- };
379
- required: string[];
380
- } | {
381
- type: string;
382
- properties: {
383
- show_all: {
384
- type: string;
385
- description: string;
386
- };
387
- command?: undefined;
388
- gist?: undefined;
389
- path?: undefined;
390
- tail?: undefined;
391
- query?: undefined;
392
- container?: undefined;
393
- pattern?: undefined;
394
- case_insensitive?: undefined;
395
- context_lines?: undefined;
396
- target_dir?: undefined;
397
- org_id?: undefined;
398
- };
399
- required?: undefined;
400
- } | {
401
- type: string;
402
- properties: {
403
- query: {
404
- type: string;
405
- description: string;
406
- };
407
- command?: undefined;
408
- gist?: undefined;
409
- path?: undefined;
410
- tail?: undefined;
411
- show_all?: undefined;
412
- container?: undefined;
413
- pattern?: undefined;
414
- case_insensitive?: undefined;
415
- context_lines?: undefined;
416
- target_dir?: undefined;
417
- org_id?: undefined;
418
- };
419
- required: string[];
420
- } | {
421
- type: string;
422
- properties: {
423
- container: {
424
- type: string;
425
- description: string;
426
- };
427
- pattern: {
428
- type: string;
429
- description: string;
430
- };
431
- case_insensitive: {
432
- type: string;
433
- description: string;
434
- };
435
- context_lines: {
436
- type: string;
437
- description: string;
438
- };
439
- command?: undefined;
440
- gist?: undefined;
441
- path?: undefined;
442
- tail?: undefined;
443
- show_all?: undefined;
444
- query?: undefined;
445
- target_dir?: undefined;
446
- org_id?: undefined;
447
- };
448
- required: string[];
449
- } | {
450
- type: string;
451
- properties: {
452
- container: {
453
- type: string;
454
- description: string;
455
- };
456
- command?: undefined;
457
- gist?: undefined;
458
- path?: undefined;
459
- tail?: undefined;
460
- show_all?: undefined;
461
- query?: undefined;
462
- pattern?: undefined;
463
- case_insensitive?: undefined;
464
- context_lines?: undefined;
465
- target_dir?: undefined;
466
- org_id?: undefined;
467
- };
468
- required?: undefined;
469
- } | {
470
- type: string;
471
- properties: {
472
- pattern: {
473
- type: string;
474
- description: string;
475
- };
476
- path: {
477
- type: string;
478
- description: string;
479
- };
480
- case_insensitive: {
481
- type: string;
482
- description: string;
483
- };
484
- context_lines: {
485
- type: string;
486
- description: string;
487
- };
488
- command?: undefined;
489
- gist?: undefined;
490
- tail?: undefined;
491
- show_all?: undefined;
492
- query?: undefined;
493
- container?: undefined;
494
- target_dir?: undefined;
495
- org_id?: undefined;
496
- };
497
- required: string[];
498
- } | {
499
- type: string;
500
- properties: {
501
- command?: undefined;
502
- gist?: undefined;
503
- path?: undefined;
504
- tail?: undefined;
505
- show_all?: undefined;
506
- query?: undefined;
507
- container?: undefined;
508
- pattern?: undefined;
509
- case_insensitive?: undefined;
510
- context_lines?: undefined;
511
- target_dir?: undefined;
512
- org_id?: undefined;
513
- };
514
- required?: undefined;
515
- } | {
516
- type: string;
517
- properties: {
518
- target_dir: {
519
- type: string;
520
- description: string;
521
- };
522
- command?: undefined;
523
- gist?: undefined;
524
- path?: undefined;
525
- tail?: undefined;
526
- show_all?: undefined;
527
- query?: undefined;
528
- container?: undefined;
529
- pattern?: undefined;
530
- case_insensitive?: undefined;
531
- context_lines?: undefined;
532
- org_id?: undefined;
533
- };
534
- required: string[];
535
- } | {
536
- type: string;
537
- properties: {
538
- command?: undefined;
539
- gist?: undefined;
540
- path?: undefined;
541
- tail?: undefined;
542
- show_all?: undefined;
543
- query?: undefined;
544
- container?: undefined;
545
- pattern?: undefined;
546
- case_insensitive?: undefined;
547
- context_lines?: undefined;
548
- target_dir?: undefined;
549
- org_id?: undefined;
550
- };
551
- required: never[];
552
- } | {
553
- type: string;
554
- properties: {
555
- org_id: {
556
- type: string;
557
- description: string;
558
- };
559
- command?: undefined;
560
- gist?: undefined;
561
- path?: undefined;
562
- tail?: undefined;
563
- show_all?: undefined;
564
- query?: undefined;
565
- container?: undefined;
566
- pattern?: undefined;
567
- case_insensitive?: undefined;
568
- context_lines?: undefined;
569
- target_dir?: undefined;
570
- };
571
- required: string[];
572
- };
573
- };
574
- }[];
575
- /**
576
- * Execute a shell command with timeout.
577
- *
578
- * Note: Dangerous command detection is now handled at a higher level
579
- * (assistant.ts/ChatApp.tsx) via the confirmation system. This function
580
- * executes commands directly - callers are responsible for confirming
581
- * dangerous commands before calling this.
582
- */
583
- export declare function runCommand(command: string, timeout?: number, signal?: AbortSignal): Promise<string>;
584
- /**
585
- * Read a file's contents.
586
- */
587
- export declare function readFile(filePath: string, tail?: number): string;
588
- /**
589
- * List directory contents using Node.js fs APIs (cross-platform).
590
- */
591
- export declare function listDirectory(dirPath: string): string;
592
- /**
593
- * Inspect .env file with secrets redacted.
594
- */
595
- export declare function inspectEnv(showAll?: boolean): string;
596
- /**
597
- * Execute a read-only SQL query.
598
- */
599
- export declare function queryDatabase(query: string, signal?: AbortSignal): Promise<string>;
600
- /**
601
- * Search container logs for a pattern.
602
- */
603
- export declare function searchLogs(container: string, pattern: string, caseInsensitive?: boolean, contextLines?: number, signal?: AbortSignal): Promise<string>;
604
- /**
605
- * Search for a pattern in a file or directory using grep.
606
- */
607
- export declare function grepFile(pattern: string, filePath: string, caseInsensitive?: boolean, contextLines?: number, signal?: AbortSignal): Promise<string>;
608
- /**
609
- * Check health of Orca containers.
610
- */
611
- export declare function checkContainerHealth(container?: string, signal?: AbortSignal): Promise<string>;
612
- /**
613
- * Handle a tool call and return the result.
614
- */
615
- export declare function handleToolCall(name: string, inputData: Record<string, unknown>, signal?: AbortSignal): Promise<string>;
616
- //# sourceMappingURL=tools.d.ts.map
@@ -1 +0,0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