@frumu/tandem-client 0.3.28 → 0.4.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.
- package/README.md +23 -0
- package/dist/client.d.ts +421 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/index.cjs +881 -14
- package/dist/index.js +881 -14
- package/dist/normalize/index.d.ts +10 -2
- package/dist/normalize/index.d.ts.map +1 -1
- package/dist/public/index.d.ts +614 -2
- package/dist/public/index.d.ts.map +1 -1
- package/dist/wire/index.d.ts +419 -2
- package/dist/wire/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -40,10 +40,18 @@ export declare const jsonFallback: z.ZodPipe<z.ZodAny, z.ZodTransform<string | n
|
|
|
40
40
|
[key: string]: Public.JsonValue;
|
|
41
41
|
} | null, any>>;
|
|
42
42
|
export declare const jsonObjectFallback: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Public.JsonObject, Record<string, any>>>;
|
|
43
|
-
export declare const SystemHealthSchema: z.ZodObject<{
|
|
43
|
+
export declare const SystemHealthSchema: z.ZodPipe<z.ZodObject<{
|
|
44
44
|
ready: z.ZodOptional<z.ZodBoolean>;
|
|
45
45
|
phase: z.ZodOptional<z.ZodString>;
|
|
46
|
-
|
|
46
|
+
workspace_root: z.ZodOptional<z.ZodString>;
|
|
47
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$loose>, z.ZodTransform<Public.SystemHealth, {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
ready?: boolean | undefined;
|
|
51
|
+
phase?: string | undefined;
|
|
52
|
+
workspace_root?: string | undefined;
|
|
53
|
+
workspaceRoot?: string | undefined;
|
|
54
|
+
}>>;
|
|
47
55
|
export declare const SessionRecordSchema: z.ZodPipe<z.ZodObject<{
|
|
48
56
|
id: z.ZodString;
|
|
49
57
|
title: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/normalize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,qBAAa,qBAAsB,SAAQ,KAAK;aAE5B,QAAQ,EAAE,MAAM;aAChB,MAAM,EAAE,MAAM;aACd,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;aACpB,UAAU,EAAE,MAAM;gBAHlB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,EACpB,UAAU,EAAE,MAAM;CAKrC;AAKD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCrB,CAAC;AAGL,eAAO,MAAM,YAAY;;eAAsD,CAAC;AAChF,eAAO,MAAM,kBAAkB,uGAEgB,CAAC;AAIhD,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/normalize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,qBAAa,qBAAsB,SAAQ,KAAK;aAE5B,QAAQ,EAAE,MAAM;aAChB,MAAM,EAAE,MAAM;aACd,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;aACpB,UAAU,EAAE,MAAM;gBAHlB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,EACpB,UAAU,EAAE,MAAM;CAKrC;AAKD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCrB,CAAC;AAGL,eAAO,MAAM,YAAY;;eAAsD,CAAC;AAChF,eAAO,MAAM,kBAAkB,uGAEgB,CAAC;AAIhD,eAAO,MAAM,kBAAkB;;;;;;;;;;;GAauB,CAAC;AAIvD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;GAkB7B,CAAC;AAEJ,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;iBAKtB,CAAC;AAEjB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;GAsBtC,CAAC;AAIL,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;GAc9B,CAAC;AAEJ,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;GAsBzB,CAAC;AAIJ,eAAO,MAAM,2BAA2B;;;iBAKxB,CAAC;AAEjB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;GAe9B,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;iBAKvB,CAAC;AAIjB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2B1B,CAAC;AAEJ,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKrB,CAAC;AAEjB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;GAqBlC,CAAC;AAEJ,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;iBAKvB,CAAC;AAIjB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;GAoB1B,CAAC;AAGL,wBAAgB,aAAa,CAAC,CAAC,EAC7B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,EAC9B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,CAAC,CAOH"}
|
package/dist/public/index.d.ts
CHANGED
|
@@ -16,6 +16,57 @@ export interface TandemClientOptions {
|
|
|
16
16
|
export interface SystemHealth {
|
|
17
17
|
ready?: boolean;
|
|
18
18
|
phase?: string;
|
|
19
|
+
workspaceRoot?: string;
|
|
20
|
+
workspace_root?: string;
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface BrowserBlockingIssue {
|
|
24
|
+
code?: string;
|
|
25
|
+
message?: string;
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export interface BrowserBinaryStatus {
|
|
29
|
+
found?: boolean;
|
|
30
|
+
path?: string | null;
|
|
31
|
+
version?: string | null;
|
|
32
|
+
channel?: string | null;
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export interface BrowserStatusResponse {
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
runnable?: boolean;
|
|
38
|
+
headless_default?: boolean;
|
|
39
|
+
sidecar?: BrowserBinaryStatus;
|
|
40
|
+
browser?: BrowserBinaryStatus;
|
|
41
|
+
blocking_issues?: BrowserBlockingIssue[];
|
|
42
|
+
recommendations?: string[];
|
|
43
|
+
install_hints?: string[];
|
|
44
|
+
last_error?: string | null;
|
|
45
|
+
[key: string]: unknown;
|
|
46
|
+
}
|
|
47
|
+
export interface BrowserInstallResponse {
|
|
48
|
+
ok?: boolean;
|
|
49
|
+
code?: string;
|
|
50
|
+
error?: string;
|
|
51
|
+
version?: string;
|
|
52
|
+
asset_name?: string;
|
|
53
|
+
installed_path?: string;
|
|
54
|
+
downloaded_bytes?: number;
|
|
55
|
+
status?: BrowserStatusResponse;
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
}
|
|
58
|
+
export interface BrowserSmokeTestResponse {
|
|
59
|
+
ok?: boolean;
|
|
60
|
+
code?: string;
|
|
61
|
+
error?: string;
|
|
62
|
+
status?: BrowserStatusResponse;
|
|
63
|
+
url?: string;
|
|
64
|
+
final_url?: string;
|
|
65
|
+
title?: string;
|
|
66
|
+
load_state?: string;
|
|
67
|
+
element_count?: number;
|
|
68
|
+
excerpt?: string | null;
|
|
69
|
+
closed?: boolean;
|
|
19
70
|
[key: string]: unknown;
|
|
20
71
|
}
|
|
21
72
|
export interface CreateSessionOptions {
|
|
@@ -148,6 +199,9 @@ export interface ProviderEntry {
|
|
|
148
199
|
id: string;
|
|
149
200
|
name?: string;
|
|
150
201
|
models?: Record<string, ProviderModelEntry>;
|
|
202
|
+
catalog_source?: string;
|
|
203
|
+
catalog_status?: string;
|
|
204
|
+
catalog_message?: string;
|
|
151
205
|
}
|
|
152
206
|
export interface ProviderCatalog {
|
|
153
207
|
all: ProviderEntry[];
|
|
@@ -320,7 +374,7 @@ export interface MemoryAuditResponse {
|
|
|
320
374
|
entries: MemoryAuditEntry[];
|
|
321
375
|
count: number;
|
|
322
376
|
}
|
|
323
|
-
export type SkillLocation = "
|
|
377
|
+
export type SkillLocation = "project" | "global";
|
|
324
378
|
export interface SkillRecord {
|
|
325
379
|
name: string;
|
|
326
380
|
location?: SkillLocation;
|
|
@@ -337,7 +391,7 @@ export interface SkillImportOptions {
|
|
|
337
391
|
fileOrPath?: string;
|
|
338
392
|
location: SkillLocation;
|
|
339
393
|
namespace?: string;
|
|
340
|
-
conflictPolicy?: "skip" | "overwrite" | "
|
|
394
|
+
conflictPolicy?: "skip" | "overwrite" | "rename";
|
|
341
395
|
}
|
|
342
396
|
export interface SkillImportResponse {
|
|
343
397
|
ok: boolean;
|
|
@@ -353,6 +407,107 @@ export interface SkillTemplatesResponse {
|
|
|
353
407
|
templates: SkillTemplate[];
|
|
354
408
|
count: number;
|
|
355
409
|
}
|
|
410
|
+
export interface SkillCatalogRecord {
|
|
411
|
+
info: SkillRecord;
|
|
412
|
+
sections?: string[];
|
|
413
|
+
missing_sections?: string[];
|
|
414
|
+
missingSections?: string[];
|
|
415
|
+
schedule_compatibility?: string[];
|
|
416
|
+
scheduleCompatibility?: string[];
|
|
417
|
+
has_manifest?: boolean;
|
|
418
|
+
hasManifest?: boolean;
|
|
419
|
+
has_workflow?: boolean;
|
|
420
|
+
hasWorkflow?: boolean;
|
|
421
|
+
}
|
|
422
|
+
export interface SkillValidationIssue {
|
|
423
|
+
code: string;
|
|
424
|
+
level: "error" | "warning" | string;
|
|
425
|
+
message: string;
|
|
426
|
+
}
|
|
427
|
+
export interface SkillValidationItem {
|
|
428
|
+
source: string;
|
|
429
|
+
valid: boolean;
|
|
430
|
+
name?: string;
|
|
431
|
+
issues?: SkillValidationIssue[];
|
|
432
|
+
sections?: string[];
|
|
433
|
+
missing_sections?: string[];
|
|
434
|
+
missingSections?: string[];
|
|
435
|
+
schedule_compatibility?: string[];
|
|
436
|
+
scheduleCompatibility?: string[];
|
|
437
|
+
has_manifest?: boolean;
|
|
438
|
+
hasManifest?: boolean;
|
|
439
|
+
has_workflow?: boolean;
|
|
440
|
+
hasWorkflow?: boolean;
|
|
441
|
+
}
|
|
442
|
+
export interface SkillValidationResponse {
|
|
443
|
+
items: SkillValidationItem[];
|
|
444
|
+
total: number;
|
|
445
|
+
valid: number;
|
|
446
|
+
invalid: number;
|
|
447
|
+
}
|
|
448
|
+
export interface SkillRouterMatch {
|
|
449
|
+
skill_name?: string;
|
|
450
|
+
skillName?: string;
|
|
451
|
+
confidence: number;
|
|
452
|
+
reason: string;
|
|
453
|
+
}
|
|
454
|
+
export interface SkillRouterMatchResponse {
|
|
455
|
+
decision: "match" | "no_match" | string;
|
|
456
|
+
skill_name?: string;
|
|
457
|
+
skillName?: string;
|
|
458
|
+
confidence: number;
|
|
459
|
+
reason: string;
|
|
460
|
+
top_matches?: SkillRouterMatch[];
|
|
461
|
+
topMatches?: SkillRouterMatch[];
|
|
462
|
+
}
|
|
463
|
+
export interface SkillsEvalCaseInput {
|
|
464
|
+
prompt: string;
|
|
465
|
+
expectedSkill?: string;
|
|
466
|
+
expected_skill?: string;
|
|
467
|
+
}
|
|
468
|
+
export interface SkillsBenchmarkEvalResponse {
|
|
469
|
+
status: string;
|
|
470
|
+
total: number;
|
|
471
|
+
passed: number;
|
|
472
|
+
failed: number;
|
|
473
|
+
accuracy: number;
|
|
474
|
+
threshold: number;
|
|
475
|
+
cases: Array<Record<string, unknown>>;
|
|
476
|
+
}
|
|
477
|
+
export interface SkillsTriggerEvalResponse {
|
|
478
|
+
status: string;
|
|
479
|
+
skillName?: string;
|
|
480
|
+
skill_name?: string;
|
|
481
|
+
threshold: number;
|
|
482
|
+
total: number;
|
|
483
|
+
truePositive?: number;
|
|
484
|
+
true_positive?: number;
|
|
485
|
+
falseNegative?: number;
|
|
486
|
+
false_negative?: number;
|
|
487
|
+
recall: number;
|
|
488
|
+
cases: Array<Record<string, unknown>>;
|
|
489
|
+
}
|
|
490
|
+
export interface SkillCompileResponse {
|
|
491
|
+
status: string;
|
|
492
|
+
skillName?: string;
|
|
493
|
+
skill_name?: string;
|
|
494
|
+
workflowKind?: string;
|
|
495
|
+
workflow_kind?: string;
|
|
496
|
+
validation?: Record<string, unknown>;
|
|
497
|
+
executionPlan?: Record<string, unknown>;
|
|
498
|
+
execution_plan?: Record<string, unknown>;
|
|
499
|
+
}
|
|
500
|
+
export interface SkillGenerateResponse {
|
|
501
|
+
status: string;
|
|
502
|
+
prompt: string;
|
|
503
|
+
router?: Record<string, unknown>;
|
|
504
|
+
artifacts?: Record<string, string>;
|
|
505
|
+
}
|
|
506
|
+
export interface SkillGenerateInstallResponse {
|
|
507
|
+
status: string;
|
|
508
|
+
skill?: SkillRecord;
|
|
509
|
+
validation?: Record<string, unknown>;
|
|
510
|
+
}
|
|
356
511
|
export interface ResourceRecord {
|
|
357
512
|
key: string;
|
|
358
513
|
value: unknown;
|
|
@@ -377,6 +532,255 @@ export interface ResourceWriteResponse {
|
|
|
377
532
|
rev?: number;
|
|
378
533
|
[key: string]: unknown;
|
|
379
534
|
}
|
|
535
|
+
export interface WorkflowRecord {
|
|
536
|
+
id?: string;
|
|
537
|
+
workflowId?: string;
|
|
538
|
+
workflow_id?: string;
|
|
539
|
+
name?: string;
|
|
540
|
+
description?: string;
|
|
541
|
+
enabled?: boolean;
|
|
542
|
+
[key: string]: unknown;
|
|
543
|
+
}
|
|
544
|
+
export interface WorkflowListResponse {
|
|
545
|
+
workflows: WorkflowRecord[];
|
|
546
|
+
count: number;
|
|
547
|
+
}
|
|
548
|
+
export interface WorkflowRunRecord {
|
|
549
|
+
id?: string;
|
|
550
|
+
runId?: string;
|
|
551
|
+
run_id?: string;
|
|
552
|
+
workflowId?: string;
|
|
553
|
+
workflow_id?: string;
|
|
554
|
+
status?: string;
|
|
555
|
+
createdAtMs?: number;
|
|
556
|
+
created_at_ms?: number;
|
|
557
|
+
updatedAtMs?: number;
|
|
558
|
+
updated_at_ms?: number;
|
|
559
|
+
[key: string]: unknown;
|
|
560
|
+
}
|
|
561
|
+
export interface WorkflowRunListResponse {
|
|
562
|
+
runs: WorkflowRunRecord[];
|
|
563
|
+
count: number;
|
|
564
|
+
}
|
|
565
|
+
export interface WorkflowHookRecord {
|
|
566
|
+
id?: string;
|
|
567
|
+
workflowId?: string;
|
|
568
|
+
workflow_id?: string;
|
|
569
|
+
eventType?: string;
|
|
570
|
+
event_type?: string;
|
|
571
|
+
enabled?: boolean;
|
|
572
|
+
[key: string]: unknown;
|
|
573
|
+
}
|
|
574
|
+
export interface WorkflowHookListResponse {
|
|
575
|
+
hooks: WorkflowHookRecord[];
|
|
576
|
+
count: number;
|
|
577
|
+
}
|
|
578
|
+
export interface BugMonitorConfigRow {
|
|
579
|
+
enabled?: boolean;
|
|
580
|
+
paused?: boolean;
|
|
581
|
+
workspace_root?: string | null;
|
|
582
|
+
repo?: string | null;
|
|
583
|
+
mcp_server?: string | null;
|
|
584
|
+
provider_preference?: string | null;
|
|
585
|
+
model_policy?: JsonObject | null;
|
|
586
|
+
auto_create_new_issues?: boolean;
|
|
587
|
+
require_approval_for_new_issues?: boolean;
|
|
588
|
+
auto_comment_on_matched_open_issues?: boolean;
|
|
589
|
+
label_mode?: string | null;
|
|
590
|
+
[key: string]: unknown;
|
|
591
|
+
}
|
|
592
|
+
export interface BugMonitorConfigResponse {
|
|
593
|
+
bug_monitor: BugMonitorConfigRow;
|
|
594
|
+
}
|
|
595
|
+
export interface BugMonitorStatusRow {
|
|
596
|
+
config?: BugMonitorConfigRow;
|
|
597
|
+
readiness?: Record<string, boolean>;
|
|
598
|
+
runtime?: JsonObject;
|
|
599
|
+
required_capabilities?: Record<string, boolean>;
|
|
600
|
+
missing_required_capabilities?: string[];
|
|
601
|
+
resolved_capabilities?: JsonObject[];
|
|
602
|
+
discovered_mcp_tools?: string[];
|
|
603
|
+
selected_server_binding_candidates?: JsonObject[];
|
|
604
|
+
binding_source_version?: string | null;
|
|
605
|
+
bindings_last_merged_at_ms?: number | null;
|
|
606
|
+
selected_model?: JsonObject | null;
|
|
607
|
+
pending_drafts?: number;
|
|
608
|
+
pending_posts?: number;
|
|
609
|
+
last_activity_at_ms?: number | null;
|
|
610
|
+
last_error?: string | null;
|
|
611
|
+
[key: string]: unknown;
|
|
612
|
+
}
|
|
613
|
+
export interface BugMonitorStatusResponse {
|
|
614
|
+
status: BugMonitorStatusRow;
|
|
615
|
+
}
|
|
616
|
+
export interface BugMonitorIncidentRecord {
|
|
617
|
+
incident_id: string;
|
|
618
|
+
fingerprint?: string;
|
|
619
|
+
event_type?: string;
|
|
620
|
+
status?: string;
|
|
621
|
+
repo?: string;
|
|
622
|
+
workspace_root?: string;
|
|
623
|
+
title?: string;
|
|
624
|
+
detail?: string | null;
|
|
625
|
+
excerpt?: string[];
|
|
626
|
+
occurrence_count?: number;
|
|
627
|
+
created_at_ms?: number;
|
|
628
|
+
updated_at_ms?: number;
|
|
629
|
+
draft_id?: string | null;
|
|
630
|
+
triage_run_id?: string | null;
|
|
631
|
+
last_error?: string | null;
|
|
632
|
+
[key: string]: unknown;
|
|
633
|
+
}
|
|
634
|
+
export interface BugMonitorIncidentListResponse {
|
|
635
|
+
incidents: BugMonitorIncidentRecord[];
|
|
636
|
+
count: number;
|
|
637
|
+
}
|
|
638
|
+
export interface BugMonitorDraftRecord {
|
|
639
|
+
draft_id: string;
|
|
640
|
+
fingerprint?: string;
|
|
641
|
+
repo?: string;
|
|
642
|
+
status?: string;
|
|
643
|
+
created_at_ms?: number;
|
|
644
|
+
triage_run_id?: string | null;
|
|
645
|
+
issue_number?: number | null;
|
|
646
|
+
title?: string | null;
|
|
647
|
+
detail?: string | null;
|
|
648
|
+
github_status?: string | null;
|
|
649
|
+
github_issue_url?: string | null;
|
|
650
|
+
github_comment_url?: string | null;
|
|
651
|
+
github_posted_at_ms?: number | null;
|
|
652
|
+
matched_issue_number?: number | null;
|
|
653
|
+
matched_issue_state?: string | null;
|
|
654
|
+
evidence_digest?: string | null;
|
|
655
|
+
last_post_error?: string | null;
|
|
656
|
+
[key: string]: unknown;
|
|
657
|
+
}
|
|
658
|
+
export interface BugMonitorDraftListResponse {
|
|
659
|
+
drafts: BugMonitorDraftRecord[];
|
|
660
|
+
count: number;
|
|
661
|
+
}
|
|
662
|
+
export interface BugMonitorPostRecord {
|
|
663
|
+
post_id: string;
|
|
664
|
+
draft_id?: string;
|
|
665
|
+
repo?: string;
|
|
666
|
+
operation?: string;
|
|
667
|
+
status?: string;
|
|
668
|
+
issue_number?: number | null;
|
|
669
|
+
issue_url?: string | null;
|
|
670
|
+
comment_url?: string | null;
|
|
671
|
+
error?: string | null;
|
|
672
|
+
updated_at_ms?: number | null;
|
|
673
|
+
[key: string]: unknown;
|
|
674
|
+
}
|
|
675
|
+
export interface BugMonitorPostListResponse {
|
|
676
|
+
posts: BugMonitorPostRecord[];
|
|
677
|
+
count: number;
|
|
678
|
+
}
|
|
679
|
+
export interface PackInstallRecord {
|
|
680
|
+
pack_id: string;
|
|
681
|
+
name: string;
|
|
682
|
+
version: string;
|
|
683
|
+
pack_type?: string;
|
|
684
|
+
install_path?: string;
|
|
685
|
+
sha256?: string;
|
|
686
|
+
installed_at_ms?: number;
|
|
687
|
+
routines_enabled?: boolean;
|
|
688
|
+
[key: string]: unknown;
|
|
689
|
+
}
|
|
690
|
+
export interface PacksListResponse {
|
|
691
|
+
packs: PackInstallRecord[];
|
|
692
|
+
}
|
|
693
|
+
export interface PackInspectionResponse {
|
|
694
|
+
pack: {
|
|
695
|
+
installed: PackInstallRecord;
|
|
696
|
+
manifest?: JsonObject;
|
|
697
|
+
trust?: JsonObject;
|
|
698
|
+
risk?: JsonObject;
|
|
699
|
+
permission_sheet?: JsonObject;
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
export interface PackInstallOptions {
|
|
703
|
+
path?: string;
|
|
704
|
+
url?: string;
|
|
705
|
+
source?: JsonObject;
|
|
706
|
+
}
|
|
707
|
+
export interface PackUninstallOptions {
|
|
708
|
+
pack_id?: string;
|
|
709
|
+
name?: string;
|
|
710
|
+
version?: string;
|
|
711
|
+
}
|
|
712
|
+
export interface PackExportOptions {
|
|
713
|
+
pack_id?: string;
|
|
714
|
+
name?: string;
|
|
715
|
+
version?: string;
|
|
716
|
+
output_path?: string;
|
|
717
|
+
}
|
|
718
|
+
export interface PackDetectOptions {
|
|
719
|
+
path: string;
|
|
720
|
+
attachment_id?: string;
|
|
721
|
+
connector?: string;
|
|
722
|
+
channel_id?: string;
|
|
723
|
+
sender_id?: string;
|
|
724
|
+
}
|
|
725
|
+
export interface CapabilityBindingRecord {
|
|
726
|
+
capability_id: string;
|
|
727
|
+
provider: string;
|
|
728
|
+
tool_name: string;
|
|
729
|
+
tool_name_aliases?: string[];
|
|
730
|
+
request_transform?: JsonObject | null;
|
|
731
|
+
response_transform?: JsonObject | null;
|
|
732
|
+
metadata?: JsonObject;
|
|
733
|
+
}
|
|
734
|
+
export interface CapabilityBindingsFile {
|
|
735
|
+
schema_version: string;
|
|
736
|
+
generated_at?: string | null;
|
|
737
|
+
bindings: CapabilityBindingRecord[];
|
|
738
|
+
}
|
|
739
|
+
export interface CapabilityResolveInput {
|
|
740
|
+
workflow_id?: string;
|
|
741
|
+
required_capabilities?: string[];
|
|
742
|
+
optional_capabilities?: string[];
|
|
743
|
+
provider_preference?: string[];
|
|
744
|
+
available_tools?: Array<{
|
|
745
|
+
provider: string;
|
|
746
|
+
tool_name: string;
|
|
747
|
+
schema?: JsonObject;
|
|
748
|
+
}>;
|
|
749
|
+
}
|
|
750
|
+
export interface CapabilityReadinessInput {
|
|
751
|
+
workflow_id?: string;
|
|
752
|
+
required_capabilities?: string[];
|
|
753
|
+
optional_capabilities?: string[];
|
|
754
|
+
provider_preference?: string[];
|
|
755
|
+
available_tools?: Array<{
|
|
756
|
+
provider: string;
|
|
757
|
+
tool_name: string;
|
|
758
|
+
schema?: JsonObject;
|
|
759
|
+
}>;
|
|
760
|
+
allow_unbound?: boolean;
|
|
761
|
+
}
|
|
762
|
+
export interface CapabilityBlockingIssue {
|
|
763
|
+
code: string;
|
|
764
|
+
message: string;
|
|
765
|
+
capability_ids?: string[];
|
|
766
|
+
providers?: string[];
|
|
767
|
+
tools?: string[];
|
|
768
|
+
}
|
|
769
|
+
export interface CapabilityReadinessOutput {
|
|
770
|
+
workflow_id: string;
|
|
771
|
+
runnable: boolean;
|
|
772
|
+
resolved?: JsonObject[];
|
|
773
|
+
missing_required_capabilities?: string[];
|
|
774
|
+
unbound_capabilities?: string[];
|
|
775
|
+
missing_optional_capabilities?: string[];
|
|
776
|
+
missing_servers?: string[];
|
|
777
|
+
disconnected_servers?: string[];
|
|
778
|
+
auth_pending_tools?: string[];
|
|
779
|
+
missing_secret_refs?: string[];
|
|
780
|
+
considered_bindings?: number;
|
|
781
|
+
recommendations?: string[];
|
|
782
|
+
blocking_issues?: CapabilityBlockingIssue[];
|
|
783
|
+
}
|
|
380
784
|
export type RoutineFamily = "routines" | "automations";
|
|
381
785
|
export type RoutineSchedule = {
|
|
382
786
|
type: "cron";
|
|
@@ -490,6 +894,12 @@ export interface RunRecord {
|
|
|
490
894
|
status?: RunStatus | string;
|
|
491
895
|
startedAtMs?: number;
|
|
492
896
|
finishedAtMs?: number;
|
|
897
|
+
activeSessionIds?: string[];
|
|
898
|
+
active_session_ids?: string[];
|
|
899
|
+
latestSessionId?: string | null;
|
|
900
|
+
latest_session_id?: string | null;
|
|
901
|
+
attachEventStream?: string | null;
|
|
902
|
+
attach_event_stream?: string | null;
|
|
493
903
|
[key: string]: unknown;
|
|
494
904
|
}
|
|
495
905
|
export interface ArtifactRecord {
|
|
@@ -515,6 +925,96 @@ export interface RoutineHistoryResponse {
|
|
|
515
925
|
history: RoutineHistoryEntry[];
|
|
516
926
|
count: number;
|
|
517
927
|
}
|
|
928
|
+
export interface CoderRepoBinding {
|
|
929
|
+
projectId?: string;
|
|
930
|
+
project_id?: string;
|
|
931
|
+
workspaceId?: string;
|
|
932
|
+
workspace_id?: string;
|
|
933
|
+
workspaceRoot?: string;
|
|
934
|
+
workspace_root?: string;
|
|
935
|
+
repoSlug: string;
|
|
936
|
+
repo_slug?: string;
|
|
937
|
+
defaultBranch?: string | null;
|
|
938
|
+
default_branch?: string | null;
|
|
939
|
+
}
|
|
940
|
+
export interface CoderGithubRef {
|
|
941
|
+
kind: "issue" | "pull_request" | string;
|
|
942
|
+
number: number;
|
|
943
|
+
url?: string | null;
|
|
944
|
+
}
|
|
945
|
+
export interface CoderRunRecord {
|
|
946
|
+
coderRunId?: string;
|
|
947
|
+
coder_run_id?: string;
|
|
948
|
+
workflowMode?: string;
|
|
949
|
+
workflow_mode?: string;
|
|
950
|
+
linkedContextRunId?: string;
|
|
951
|
+
linked_context_run_id?: string;
|
|
952
|
+
repoBinding?: CoderRepoBinding;
|
|
953
|
+
repo_binding?: CoderRepoBinding;
|
|
954
|
+
githubRef?: CoderGithubRef | null;
|
|
955
|
+
github_ref?: CoderGithubRef | null;
|
|
956
|
+
sourceClient?: string | null;
|
|
957
|
+
source_client?: string | null;
|
|
958
|
+
status?: string;
|
|
959
|
+
phase?: string;
|
|
960
|
+
createdAtMs?: number;
|
|
961
|
+
created_at_ms?: number;
|
|
962
|
+
updatedAtMs?: number;
|
|
963
|
+
updated_at_ms?: number;
|
|
964
|
+
[key: string]: unknown;
|
|
965
|
+
}
|
|
966
|
+
export interface CoderRunsListResponse {
|
|
967
|
+
runs: CoderRunRecord[];
|
|
968
|
+
count?: number;
|
|
969
|
+
}
|
|
970
|
+
export interface CoderRunGetResponse {
|
|
971
|
+
coderRun?: CoderRunRecord;
|
|
972
|
+
coder_run?: CoderRunRecord;
|
|
973
|
+
run?: JsonObject;
|
|
974
|
+
[key: string]: unknown;
|
|
975
|
+
}
|
|
976
|
+
export interface CoderArtifactRecord {
|
|
977
|
+
id: string;
|
|
978
|
+
tsMs?: number;
|
|
979
|
+
ts_ms?: number;
|
|
980
|
+
path: string;
|
|
981
|
+
artifactType?: string;
|
|
982
|
+
artifact_type?: string;
|
|
983
|
+
stepId?: string | null;
|
|
984
|
+
step_id?: string | null;
|
|
985
|
+
sourceEventId?: string | null;
|
|
986
|
+
source_event_id?: string | null;
|
|
987
|
+
[key: string]: unknown;
|
|
988
|
+
}
|
|
989
|
+
export interface CoderArtifactsResponse {
|
|
990
|
+
artifacts: CoderArtifactRecord[];
|
|
991
|
+
count?: number;
|
|
992
|
+
[key: string]: unknown;
|
|
993
|
+
}
|
|
994
|
+
export interface CoderMemoryHitRecord {
|
|
995
|
+
[key: string]: unknown;
|
|
996
|
+
}
|
|
997
|
+
export interface CoderMemoryHitsResponse {
|
|
998
|
+
hits: CoderMemoryHitRecord[];
|
|
999
|
+
count?: number;
|
|
1000
|
+
[key: string]: unknown;
|
|
1001
|
+
}
|
|
1002
|
+
export interface CoderMemoryCandidateRecord {
|
|
1003
|
+
candidateId?: string;
|
|
1004
|
+
candidate_id?: string;
|
|
1005
|
+
kind?: string;
|
|
1006
|
+
summary?: string | null;
|
|
1007
|
+
payload?: JsonObject;
|
|
1008
|
+
artifact?: CoderArtifactRecord | null;
|
|
1009
|
+
createdAtMs?: number;
|
|
1010
|
+
created_at_ms?: number;
|
|
1011
|
+
[key: string]: unknown;
|
|
1012
|
+
}
|
|
1013
|
+
export interface CoderMemoryCandidatesResponse {
|
|
1014
|
+
candidates: CoderMemoryCandidateRecord[];
|
|
1015
|
+
count?: number;
|
|
1016
|
+
[key: string]: unknown;
|
|
1017
|
+
}
|
|
518
1018
|
export interface AgentTeamSpawnInput {
|
|
519
1019
|
missionId?: string;
|
|
520
1020
|
parentInstanceId?: string;
|
|
@@ -612,6 +1112,17 @@ export interface AutomationV2FlowNode {
|
|
|
612
1112
|
agentId: string;
|
|
613
1113
|
objective: string;
|
|
614
1114
|
dependsOn?: string[];
|
|
1115
|
+
inputRefs?: Array<{
|
|
1116
|
+
fromStepId?: string;
|
|
1117
|
+
from_step_id?: string;
|
|
1118
|
+
alias: string;
|
|
1119
|
+
}>;
|
|
1120
|
+
outputContract?: {
|
|
1121
|
+
kind: string;
|
|
1122
|
+
};
|
|
1123
|
+
output_contract?: {
|
|
1124
|
+
kind: string;
|
|
1125
|
+
};
|
|
615
1126
|
retryPolicy?: JsonObject;
|
|
616
1127
|
timeoutMs?: number;
|
|
617
1128
|
}
|
|
@@ -632,6 +1143,107 @@ export interface AutomationV2Spec {
|
|
|
632
1143
|
};
|
|
633
1144
|
outputTargets?: string[];
|
|
634
1145
|
creatorId?: string;
|
|
1146
|
+
workspaceRoot?: string;
|
|
1147
|
+
workspace_root?: string;
|
|
1148
|
+
metadata?: JsonObject;
|
|
1149
|
+
[key: string]: unknown;
|
|
1150
|
+
}
|
|
1151
|
+
export interface WorkflowPlanStep {
|
|
1152
|
+
stepId?: string;
|
|
1153
|
+
step_id?: string;
|
|
1154
|
+
kind: string;
|
|
1155
|
+
objective: string;
|
|
1156
|
+
dependsOn?: string[];
|
|
1157
|
+
depends_on?: string[];
|
|
1158
|
+
agentRole?: string;
|
|
1159
|
+
agent_role?: string;
|
|
1160
|
+
inputRefs?: Array<{
|
|
1161
|
+
fromStepId?: string;
|
|
1162
|
+
from_step_id?: string;
|
|
1163
|
+
alias: string;
|
|
1164
|
+
}>;
|
|
1165
|
+
input_refs?: Array<{
|
|
1166
|
+
fromStepId?: string;
|
|
1167
|
+
from_step_id?: string;
|
|
1168
|
+
alias: string;
|
|
1169
|
+
}>;
|
|
1170
|
+
outputContract?: {
|
|
1171
|
+
kind: string;
|
|
1172
|
+
};
|
|
1173
|
+
output_contract?: {
|
|
1174
|
+
kind: string;
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
export interface WorkflowPlan {
|
|
1178
|
+
planId?: string;
|
|
1179
|
+
plan_id?: string;
|
|
1180
|
+
plannerVersion?: string;
|
|
1181
|
+
planner_version?: string;
|
|
1182
|
+
planSource?: string;
|
|
1183
|
+
plan_source?: string;
|
|
1184
|
+
originalPrompt?: string;
|
|
1185
|
+
original_prompt?: string;
|
|
1186
|
+
normalizedPrompt?: string;
|
|
1187
|
+
normalized_prompt?: string;
|
|
1188
|
+
confidence?: string;
|
|
1189
|
+
title: string;
|
|
1190
|
+
description?: string;
|
|
1191
|
+
schedule: AutomationV2Schedule;
|
|
1192
|
+
executionTarget?: string;
|
|
1193
|
+
execution_target?: string;
|
|
1194
|
+
workspaceRoot?: string;
|
|
1195
|
+
workspace_root?: string;
|
|
1196
|
+
steps: WorkflowPlanStep[];
|
|
1197
|
+
allowedMcpServers?: string[];
|
|
1198
|
+
allowed_mcp_servers?: string[];
|
|
1199
|
+
operatorPreferences?: JsonObject;
|
|
1200
|
+
operator_preferences?: JsonObject;
|
|
1201
|
+
metadata?: JsonObject;
|
|
1202
|
+
[key: string]: unknown;
|
|
1203
|
+
}
|
|
1204
|
+
export interface WorkflowPlanPackBuilderExportRequest {
|
|
1205
|
+
enabled?: boolean;
|
|
1206
|
+
sessionId?: string;
|
|
1207
|
+
session_id?: string;
|
|
1208
|
+
threadKey?: string;
|
|
1209
|
+
thread_key?: string;
|
|
1210
|
+
autoApply?: boolean;
|
|
1211
|
+
auto_apply?: boolean;
|
|
1212
|
+
}
|
|
1213
|
+
export interface WorkflowPlanPackBuilderExportResult {
|
|
1214
|
+
status?: string;
|
|
1215
|
+
error?: string;
|
|
1216
|
+
httpStatus?: number;
|
|
1217
|
+
http_status?: number;
|
|
1218
|
+
planId?: string;
|
|
1219
|
+
plan_id?: string;
|
|
1220
|
+
sessionId?: string;
|
|
1221
|
+
session_id?: string;
|
|
1222
|
+
threadKey?: string;
|
|
1223
|
+
thread_key?: string;
|
|
1224
|
+
autoApplyRequested?: boolean;
|
|
1225
|
+
auto_apply_requested?: boolean;
|
|
1226
|
+
autoApplyReady?: boolean;
|
|
1227
|
+
auto_apply_ready?: boolean;
|
|
1228
|
+
[key: string]: unknown;
|
|
1229
|
+
}
|
|
1230
|
+
export interface WorkflowPlanChatMessage {
|
|
1231
|
+
role: string;
|
|
1232
|
+
text: string;
|
|
1233
|
+
createdAtMs?: number;
|
|
1234
|
+
created_at_ms?: number;
|
|
1235
|
+
[key: string]: unknown;
|
|
1236
|
+
}
|
|
1237
|
+
export interface WorkflowPlanConversation {
|
|
1238
|
+
conversationId?: string;
|
|
1239
|
+
conversation_id?: string;
|
|
1240
|
+
planId?: string;
|
|
1241
|
+
plan_id?: string;
|
|
1242
|
+
createdAtMs?: number;
|
|
1243
|
+
created_at_ms?: number;
|
|
1244
|
+
updatedAtMs?: number;
|
|
1245
|
+
updated_at_ms?: number;
|
|
1246
|
+
messages: WorkflowPlanChatMessage[];
|
|
635
1247
|
[key: string]: unknown;
|
|
636
1248
|
}
|
|
637
1249
|
export interface AutomationV2RunRecord {
|