@tangle-network/agent-interface 5.7.1 → 5.8.0

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
package/README.md CHANGED
@@ -12,8 +12,10 @@ across subscriptions. Each stage pins a harness, provider, model, and account
12
12
  selector. `all-eligible` lets the account manager choose each available seat in
13
13
  its own order; `seat` names one account. The first stage must equal the profile's
14
14
  top-level `harness`, `model.provider`, and `model.default`, so the initial run
15
- cannot silently change its authored model. The profile's reasoning effort and
16
- system prompt intent must be supported by every stage. The executor must check
15
+ cannot silently change its authored model. Each stage inherits `model.reasoningEffort`
16
+ unless it declares `reasoningEffort`; explicit `none` disables thinking where the
17
+ harness supports it. An explicit first-stage effort must equal the profile's.
18
+ Every stage must support its effective effort and the profile's system prompt intent. The executor must check
17
19
  the remaining profile capabilities and resolve seats before spend.
18
20
 
19
21
  An omitted `seats` field preserves the legacy single-provider policy. For each
@@ -22,6 +24,13 @@ provider-facing projection without `seats`, setting its top-level harness and
22
24
  model to the selected stage. A cross-provider continuation requires an explicit
23
25
  stage in the authored chain.
24
26
 
27
+ `parseSeatSpec("codex/gpt-6.1-sol@xhigh")` and `formatSeatSpec(spec)` share the
28
+ `harness/model[@effort]` command grammar. They are exported at the package root
29
+ and `harness-capabilities`. `claude` and `kimi` resolve to canonical harness names;
30
+ the authored model remains unchanged, including explicit provider prefixes.
31
+ The parsed `provider` is null when the model's provider is unknown. These pure
32
+ helpers do not choose accounts, rank models, load credentials, or fill omitted effort.
33
+
25
34
  Each later stage may replace the profile-level `tools` and `permissions` maps.
26
35
  An explicit `{}` removes those profile-level controls for that stage; an omitted
27
36
  map inherits them. If the first stage names a map, it must equal the top-level
@@ -105,8 +105,8 @@ export declare const agentCandidateContainerLaunchSchema: z.ZodObject<{
105
105
  kind: z.ZodLiteral<"secret-ref">;
106
106
  key: z.ZodString;
107
107
  format: z.ZodOptional<z.ZodEnum<{
108
- bearer: "bearer";
109
108
  raw: "raw";
109
+ bearer: "bearer";
110
110
  }>>;
111
111
  }, z.core.$strict>], "kind">>>;
112
112
  }, z.core.$strict>;
@@ -114,11 +114,11 @@ export declare const agentCandidateEntrypointLaunchSchema: z.ZodObject<{
114
114
  kind: z.ZodLiteral<"candidate-entrypoint">;
115
115
  entrypoint: z.ZodString;
116
116
  interpreter: z.ZodOptional<z.ZodEnum<{
117
- bun: "bun";
118
- deno: "deno";
119
117
  node: "node";
120
118
  python: "python";
121
119
  python3: "python3";
120
+ bun: "bun";
121
+ deno: "deno";
122
122
  tsx: "tsx";
123
123
  uv: "uv";
124
124
  }>>;
@@ -129,8 +129,8 @@ export declare const agentCandidateEntrypointLaunchSchema: z.ZodObject<{
129
129
  kind: z.ZodLiteral<"secret-ref">;
130
130
  key: z.ZodString;
131
131
  format: z.ZodOptional<z.ZodEnum<{
132
- bearer: "bearer";
133
132
  raw: "raw";
133
+ bearer: "bearer";
134
134
  }>>;
135
135
  }, z.core.$strict>], "kind">>>;
136
136
  }, z.core.$strict>;
@@ -144,19 +144,19 @@ export declare const agentCandidateLaunchSchema: z.ZodDiscriminatedUnion<[z.ZodO
144
144
  kind: z.ZodLiteral<"secret-ref">;
145
145
  key: z.ZodString;
146
146
  format: z.ZodOptional<z.ZodEnum<{
147
- bearer: "bearer";
148
147
  raw: "raw";
148
+ bearer: "bearer";
149
149
  }>>;
150
150
  }, z.core.$strict>], "kind">>>;
151
151
  }, z.core.$strict>, z.ZodObject<{
152
152
  kind: z.ZodLiteral<"candidate-entrypoint">;
153
153
  entrypoint: z.ZodString;
154
154
  interpreter: z.ZodOptional<z.ZodEnum<{
155
- bun: "bun";
156
- deno: "deno";
157
155
  node: "node";
158
156
  python: "python";
159
157
  python3: "python3";
158
+ bun: "bun";
159
+ deno: "deno";
160
160
  tsx: "tsx";
161
161
  uv: "uv";
162
162
  }>>;
@@ -167,8 +167,8 @@ export declare const agentCandidateLaunchSchema: z.ZodDiscriminatedUnion<[z.ZodO
167
167
  kind: z.ZodLiteral<"secret-ref">;
168
168
  key: z.ZodString;
169
169
  format: z.ZodOptional<z.ZodEnum<{
170
- bearer: "bearer";
171
170
  raw: "raw";
171
+ bearer: "bearer";
172
172
  }>>;
173
173
  }, z.core.$strict>], "kind">>>;
174
174
  }, z.core.$strict>], "kind">;
@@ -183,22 +183,22 @@ export declare const agentCandidateInstructionDeliverySchema: z.ZodDiscriminated
183
183
  }, z.core.$strict>], "kind">;
184
184
  export declare const agentCandidateExecutionSchema: z.ZodObject<{
185
185
  harness: z.ZodEnum<{
186
- acp: "acp";
187
- amp: "amp";
188
186
  "claude-code": "claude-code";
189
- "cli-base": "cli-base";
190
- codex: "codex";
191
- cursor: "cursor";
192
- "factory-droids": "factory-droids";
193
- forge: "forge";
194
- gemini: "gemini";
195
- hermes: "hermes";
196
- "kimi-code": "kimi-code";
197
187
  nanoclaw: "nanoclaw";
198
- openclaw: "openclaw";
188
+ codex: "codex";
199
189
  opencode: "opencode";
190
+ "kimi-code": "kimi-code";
200
191
  pi: "pi";
201
192
  prime: "prime";
193
+ gemini: "gemini";
194
+ hermes: "hermes";
195
+ openclaw: "openclaw";
196
+ amp: "amp";
197
+ "factory-droids": "factory-droids";
198
+ forge: "forge";
199
+ cursor: "cursor";
200
+ acp: "acp";
201
+ "cli-base": "cli-base";
202
202
  }>;
203
203
  harnessVersion: z.ZodString;
204
204
  launch: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -211,19 +211,19 @@ export declare const agentCandidateExecutionSchema: z.ZodObject<{
211
211
  kind: z.ZodLiteral<"secret-ref">;
212
212
  key: z.ZodString;
213
213
  format: z.ZodOptional<z.ZodEnum<{
214
- bearer: "bearer";
215
214
  raw: "raw";
215
+ bearer: "bearer";
216
216
  }>>;
217
217
  }, z.core.$strict>], "kind">>>;
218
218
  }, z.core.$strict>, z.ZodObject<{
219
219
  kind: z.ZodLiteral<"candidate-entrypoint">;
220
220
  entrypoint: z.ZodString;
221
221
  interpreter: z.ZodOptional<z.ZodEnum<{
222
- bun: "bun";
223
- deno: "deno";
224
222
  node: "node";
225
223
  python: "python";
226
224
  python3: "python3";
225
+ bun: "bun";
226
+ deno: "deno";
227
227
  tsx: "tsx";
228
228
  uv: "uv";
229
229
  }>>;
@@ -234,8 +234,8 @@ export declare const agentCandidateExecutionSchema: z.ZodObject<{
234
234
  kind: z.ZodLiteral<"secret-ref">;
235
235
  key: z.ZodString;
236
236
  format: z.ZodOptional<z.ZodEnum<{
237
- bearer: "bearer";
238
237
  raw: "raw";
238
+ bearer: "bearer";
239
239
  }>>;
240
240
  }, z.core.$strict>], "kind">>>;
241
241
  }, z.core.$strict>], "kind">;
@@ -262,8 +262,8 @@ export declare const agentCandidateExecutionSchema: z.ZodObject<{
262
262
  kind: z.ZodLiteral<"secret-ref">;
263
263
  key: z.ZodString;
264
264
  format: z.ZodOptional<z.ZodEnum<{
265
- bearer: "bearer";
266
265
  raw: "raw";
266
+ bearer: "bearer";
267
267
  }>>;
268
268
  }, z.core.$strict>], "kind">>>;
269
269
  environment: z.ZodDiscriminatedUnion<[z.ZodObject<{