@tangle-network/agent-interface 5.7.1 → 5.8.1

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 (44) hide show
  1. package/README.md +11 -2
  2. package/dist/agent-candidate-code-schema.d.ts +24 -24
  3. package/dist/agent-candidate-execution-plan-schema.d.ts +245 -245
  4. package/dist/agent-candidate-lineage-schema.d.ts +2 -2
  5. package/dist/agent-candidate-outcome-schema.d.ts +56 -56
  6. package/dist/agent-candidate-profile-schema.d.ts +22 -22
  7. package/dist/agent-candidate-promotion-schema.d.ts +1824 -1824
  8. package/dist/agent-candidate-receipt-schema.d.ts +201 -201
  9. package/dist/agent-candidate-schema-common.d.ts +3 -3
  10. package/dist/agent-candidate-schema.d.ts +36 -36
  11. package/dist/agent-candidate-task-schema.d.ts +16 -16
  12. package/dist/agent-execution-preparation-receipt.d.ts +81 -81
  13. package/dist/agent-improvement-measurement-schema.d.ts +25 -25
  14. package/dist/agent-profile-improvement-schema.d.ts +75 -75
  15. package/dist/agent-profile.d.ts +10 -28
  16. package/dist/agent-workspace-lease.d.ts +4 -4
  17. package/dist/environment-interactive-control.d.ts +473 -473
  18. package/dist/environment-interactive-start.d.ts +38 -29
  19. package/dist/environment-observation.d.ts +32 -32
  20. package/dist/environment-profile-capabilities.d.ts +1 -1
  21. package/dist/environment-runtime.d.ts +171 -144
  22. package/dist/harness-capabilities.d.ts +17 -18
  23. package/dist/harness-capabilities.js +41 -44
  24. package/dist/harness.d.ts +13 -11
  25. package/dist/harness.js +5 -0
  26. package/dist/interaction-envelope.d.ts +26 -26
  27. package/dist/interaction-fields.d.ts +22 -22
  28. package/dist/interaction-permissions.d.ts +2 -2
  29. package/dist/learning-state.d.ts +143 -143
  30. package/dist/portable-context-base.d.ts +1 -1
  31. package/dist/portable-context-commitments.d.ts +8 -8
  32. package/dist/portable-context-continuation.d.ts +4 -4
  33. package/dist/portable-context-plan-request.d.ts +1 -1
  34. package/dist/portable-context-plan-wire.d.ts +2 -2
  35. package/dist/portable-context-plan.d.ts +5 -5
  36. package/dist/portable-context-shared.d.ts +1 -1
  37. package/dist/portable-context-transfer.d.ts +43 -34
  38. package/dist/profile-schema.d.ts +78 -60
  39. package/dist/profile-schema.js +7 -3
  40. package/dist/proxy-secrets.d.ts +12 -12
  41. package/dist/runtime-control.d.ts +5 -5
  42. package/dist/workspace-cleanup.d.ts +3 -3
  43. package/dist/workspace-fork.d.ts +4 -4
  44. package/package.json +5 -5
@@ -39,13 +39,13 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
39
39
  small: z.ZodOptional<z.ZodString>;
40
40
  provider: z.ZodOptional<z.ZodString>;
41
41
  reasoningEffort: z.ZodOptional<z.ZodEnum<{
42
- high: "high";
42
+ none: "none";
43
+ minimal: "minimal";
43
44
  low: "low";
44
45
  medium: "medium";
45
- minimal: "minimal";
46
- none: "none";
47
- ultracode: "ultracode";
46
+ high: "high";
48
47
  xhigh: "xhigh";
48
+ ultracode: "ultracode";
49
49
  }>>;
50
50
  maxVisibleOutputTokens: z.ZodOptional<z.ZodNumber>;
51
51
  maxReasoningTokens: z.ZodOptional<z.ZodNumber>;
@@ -53,44 +53,53 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
53
53
  metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
54
54
  }, z.core.$strict>>;
55
55
  harness: z.ZodOptional<z.ZodEnum<{
56
- acp: "acp";
57
- amp: "amp";
58
56
  "claude-code": "claude-code";
59
- "cli-base": "cli-base";
60
- codex: "codex";
61
- cursor: "cursor";
62
- "factory-droids": "factory-droids";
63
- forge: "forge";
64
- gemini: "gemini";
65
- hermes: "hermes";
66
- "kimi-code": "kimi-code";
67
57
  nanoclaw: "nanoclaw";
68
- openclaw: "openclaw";
58
+ codex: "codex";
69
59
  opencode: "opencode";
60
+ "kimi-code": "kimi-code";
70
61
  pi: "pi";
71
62
  prime: "prime";
63
+ gemini: "gemini";
64
+ hermes: "hermes";
65
+ openclaw: "openclaw";
66
+ amp: "amp";
67
+ "factory-droids": "factory-droids";
68
+ forge: "forge";
69
+ cursor: "cursor";
70
+ acp: "acp";
71
+ "cli-base": "cli-base";
72
72
  }>>;
73
73
  seats: z.ZodOptional<z.ZodArray<z.ZodObject<{
74
74
  harness: z.ZodEnum<{
75
- acp: "acp";
76
- amp: "amp";
77
75
  "claude-code": "claude-code";
78
- "cli-base": "cli-base";
79
- codex: "codex";
80
- cursor: "cursor";
81
- "factory-droids": "factory-droids";
82
- forge: "forge";
83
- gemini: "gemini";
84
- hermes: "hermes";
85
- "kimi-code": "kimi-code";
86
76
  nanoclaw: "nanoclaw";
87
- openclaw: "openclaw";
77
+ codex: "codex";
88
78
  opencode: "opencode";
79
+ "kimi-code": "kimi-code";
89
80
  pi: "pi";
90
81
  prime: "prime";
82
+ gemini: "gemini";
83
+ hermes: "hermes";
84
+ openclaw: "openclaw";
85
+ amp: "amp";
86
+ "factory-droids": "factory-droids";
87
+ forge: "forge";
88
+ cursor: "cursor";
89
+ acp: "acp";
90
+ "cli-base": "cli-base";
91
91
  }>;
92
92
  provider: z.ZodString;
93
93
  model: z.ZodString;
94
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
95
+ none: "none";
96
+ minimal: "minimal";
97
+ low: "low";
98
+ medium: "medium";
99
+ high: "high";
100
+ xhigh: "xhigh";
101
+ ultracode: "ultracode";
102
+ }>>;
94
103
  selector: z.ZodUnion<readonly [z.ZodObject<{
95
104
  kind: z.ZodLiteral<"all-eligible">;
96
105
  }, z.core.$strict>, z.ZodObject<{
@@ -106,8 +115,8 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
106
115
  paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
107
116
  envName: z.ZodString;
108
117
  secretRef: z.ZodObject<{
109
- kind: z.ZodLiteral<"secret-ref">;
110
118
  key: z.ZodString;
119
+ kind: z.ZodLiteral<"secret-ref">;
111
120
  }, z.core.$strict>;
112
121
  presentation: z.ZodDiscriminatedUnion<[z.ZodObject<{
113
122
  type: z.ZodLiteral<"bearer">;
@@ -237,7 +246,7 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
237
246
  env?: Record<string, {
238
247
  kind: "secret-ref";
239
248
  key: string;
240
- format?: "bearer" | "raw" | undefined;
249
+ format?: "raw" | "bearer" | undefined;
241
250
  } | {
242
251
  kind: "public";
243
252
  value: string;
@@ -250,7 +259,7 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
250
259
  env?: Record<string, {
251
260
  kind: "secret-ref";
252
261
  key: string;
253
- format?: "bearer" | "raw" | undefined;
262
+ format?: "raw" | "bearer" | undefined;
254
263
  } | {
255
264
  kind: "public";
256
265
  value: string;
@@ -88,31 +88,31 @@ export declare const ProviderIdentitySchema: z.ZodObject<{
88
88
  backend: z.ZodOptional<z.ZodString>;
89
89
  }, z.core.$strict>;
90
90
  export declare const AgentEnvironmentStatusSchema: z.ZodEnum<{
91
- expired: "expired";
91
+ unknown: "unknown";
92
92
  failed: "failed";
93
+ expired: "expired";
93
94
  pending: "pending";
94
- provisioning: "provisioning";
95
95
  running: "running";
96
+ provisioning: "provisioning";
96
97
  stopped: "stopped";
97
- unknown: "unknown";
98
98
  }>;
99
99
  /** Lifecycle, cleanup, continuity, and persistence of one environment. */
100
100
  export declare const EnvironmentLifecycleSchema: z.ZodObject<{
101
101
  status: z.ZodEnum<{
102
- expired: "expired";
102
+ unknown: "unknown";
103
103
  failed: "failed";
104
+ expired: "expired";
104
105
  pending: "pending";
105
- provisioning: "provisioning";
106
106
  running: "running";
107
+ provisioning: "provisioning";
107
108
  stopped: "stopped";
108
- unknown: "unknown";
109
109
  }>;
110
110
  cleanup: z.ZodOptional<z.ZodObject<{
111
111
  policy: z.ZodOptional<z.ZodEnum<{
112
- idle: "idle";
113
112
  manual: "manual";
114
- "on-exit": "on-exit";
113
+ idle: "idle";
115
114
  scheduled: "scheduled";
115
+ "on-exit": "on-exit";
116
116
  }>>;
117
117
  scheduledAt: z.ZodOptional<z.ZodISODateTime>;
118
118
  confirmed: z.ZodOptional<z.ZodBoolean>;
@@ -120,17 +120,17 @@ export declare const EnvironmentLifecycleSchema: z.ZodObject<{
120
120
  continuity: z.ZodOptional<z.ZodObject<{
121
121
  resumable: z.ZodBoolean;
122
122
  mode: z.ZodOptional<z.ZodEnum<{
123
- native: "native";
124
123
  none: "none";
124
+ native: "native";
125
125
  replayed: "replayed";
126
126
  }>>;
127
127
  }, z.core.$strict>>;
128
128
  persistence: z.ZodOptional<z.ZodObject<{
129
129
  durable: z.ZodBoolean;
130
130
  scope: z.ZodOptional<z.ZodEnum<{
131
+ session: "session";
131
132
  durable: "durable";
132
133
  ephemeral: "ephemeral";
133
- session: "session";
134
134
  }>>;
135
135
  }, z.core.$strict>>;
136
136
  }, z.core.$strict>;
@@ -169,10 +169,10 @@ export type ResourceUseSample = z.infer<typeof ResourceUseSampleSchema>;
169
169
  /** Where an environment was requested or verified to run. */
170
170
  export declare const PlacementDescriptorSchema: z.ZodObject<{
171
171
  kind: z.ZodEnum<{
172
- fleet: "fleet";
173
- local: "local";
174
172
  provider: "provider";
173
+ local: "local";
175
174
  sandbox: "sandbox";
175
+ fleet: "fleet";
176
176
  }>;
177
177
  sandboxId: z.ZodOptional<z.ZodString>;
178
178
  fleetId: z.ZodOptional<z.ZodString>;
@@ -423,20 +423,20 @@ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
423
423
  state: z.ZodLiteral<"known">;
424
424
  value: z.ZodObject<{
425
425
  status: z.ZodEnum<{
426
- expired: "expired";
426
+ unknown: "unknown";
427
427
  failed: "failed";
428
+ expired: "expired";
428
429
  pending: "pending";
429
- provisioning: "provisioning";
430
430
  running: "running";
431
+ provisioning: "provisioning";
431
432
  stopped: "stopped";
432
- unknown: "unknown";
433
433
  }>;
434
434
  cleanup: z.ZodOptional<z.ZodObject<{
435
435
  policy: z.ZodOptional<z.ZodEnum<{
436
- idle: "idle";
437
436
  manual: "manual";
438
- "on-exit": "on-exit";
437
+ idle: "idle";
439
438
  scheduled: "scheduled";
439
+ "on-exit": "on-exit";
440
440
  }>>;
441
441
  scheduledAt: z.ZodOptional<z.ZodISODateTime>;
442
442
  confirmed: z.ZodOptional<z.ZodBoolean>;
@@ -444,17 +444,17 @@ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
444
444
  continuity: z.ZodOptional<z.ZodObject<{
445
445
  resumable: z.ZodBoolean;
446
446
  mode: z.ZodOptional<z.ZodEnum<{
447
- native: "native";
448
447
  none: "none";
448
+ native: "native";
449
449
  replayed: "replayed";
450
450
  }>>;
451
451
  }, z.core.$strict>>;
452
452
  persistence: z.ZodOptional<z.ZodObject<{
453
453
  durable: z.ZodBoolean;
454
454
  scope: z.ZodOptional<z.ZodEnum<{
455
+ session: "session";
455
456
  durable: "durable";
456
457
  ephemeral: "ephemeral";
457
- session: "session";
458
458
  }>>;
459
459
  }, z.core.$strict>>;
460
460
  }, z.core.$strict>;
@@ -471,20 +471,20 @@ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
471
471
  state: z.ZodLiteral<"stale">;
472
472
  value: z.ZodObject<{
473
473
  status: z.ZodEnum<{
474
- expired: "expired";
474
+ unknown: "unknown";
475
475
  failed: "failed";
476
+ expired: "expired";
476
477
  pending: "pending";
477
- provisioning: "provisioning";
478
478
  running: "running";
479
+ provisioning: "provisioning";
479
480
  stopped: "stopped";
480
- unknown: "unknown";
481
481
  }>;
482
482
  cleanup: z.ZodOptional<z.ZodObject<{
483
483
  policy: z.ZodOptional<z.ZodEnum<{
484
- idle: "idle";
485
484
  manual: "manual";
486
- "on-exit": "on-exit";
485
+ idle: "idle";
487
486
  scheduled: "scheduled";
487
+ "on-exit": "on-exit";
488
488
  }>>;
489
489
  scheduledAt: z.ZodOptional<z.ZodISODateTime>;
490
490
  confirmed: z.ZodOptional<z.ZodBoolean>;
@@ -492,17 +492,17 @@ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
492
492
  continuity: z.ZodOptional<z.ZodObject<{
493
493
  resumable: z.ZodBoolean;
494
494
  mode: z.ZodOptional<z.ZodEnum<{
495
- native: "native";
496
495
  none: "none";
496
+ native: "native";
497
497
  replayed: "replayed";
498
498
  }>>;
499
499
  }, z.core.$strict>>;
500
500
  persistence: z.ZodOptional<z.ZodObject<{
501
501
  durable: z.ZodBoolean;
502
502
  scope: z.ZodOptional<z.ZodEnum<{
503
+ session: "session";
503
504
  durable: "durable";
504
505
  ephemeral: "ephemeral";
505
- session: "session";
506
506
  }>>;
507
507
  }, z.core.$strict>>;
508
508
  }, z.core.$strict>;
@@ -572,10 +572,10 @@ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
572
572
  placement: z.ZodOptional<z.ZodObject<{
573
573
  requested: z.ZodOptional<z.ZodObject<{
574
574
  kind: z.ZodEnum<{
575
- fleet: "fleet";
576
- local: "local";
577
575
  provider: "provider";
576
+ local: "local";
578
577
  sandbox: "sandbox";
578
+ fleet: "fleet";
579
579
  }>;
580
580
  sandboxId: z.ZodOptional<z.ZodString>;
581
581
  fleetId: z.ZodOptional<z.ZodString>;
@@ -586,10 +586,10 @@ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
586
586
  state: z.ZodLiteral<"known">;
587
587
  value: z.ZodObject<{
588
588
  kind: z.ZodEnum<{
589
- fleet: "fleet";
590
- local: "local";
591
589
  provider: "provider";
590
+ local: "local";
592
591
  sandbox: "sandbox";
592
+ fleet: "fleet";
593
593
  }>;
594
594
  sandboxId: z.ZodOptional<z.ZodString>;
595
595
  fleetId: z.ZodOptional<z.ZodString>;
@@ -609,10 +609,10 @@ export declare const AgentEnvironmentObservationSchema: z.ZodObject<{
609
609
  state: z.ZodLiteral<"stale">;
610
610
  value: z.ZodObject<{
611
611
  kind: z.ZodEnum<{
612
- fleet: "fleet";
613
- local: "local";
614
612
  provider: "provider";
613
+ local: "local";
615
614
  sandbox: "sandbox";
615
+ fleet: "fleet";
616
616
  }>;
617
617
  sandboxId: z.ZodOptional<z.ZodString>;
618
618
  fleetId: z.ZodOptional<z.ZodString>;
@@ -5,8 +5,8 @@ export declare const AgentProfileCapabilitiesSchema: z.ZodObject<{
5
5
  protocolVersion: z.ZodLiteral<1>;
6
6
  supportedDrivers: z.ZodArray<z.ZodString>;
7
7
  presentations: z.ZodArray<z.ZodEnum<{
8
- basic: "basic";
9
8
  bearer: "bearer";
9
+ basic: "basic";
10
10
  header: "header";
11
11
  query: "query";
12
12
  }>>;