@tangle-network/agent-interface 5.10.27 → 5.10.28

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.
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import type { Sha256Digest } from "./agent-candidate.js";
3
3
  import { type ReasoningEffort } from "./agent-profile.js";
4
4
  import { type AgentProfileMaterializationAxis } from "./agent-profile-materialization.js";
5
- import { type HarnessType } from "./harness.js";
5
+ import { type RecordedHarnessType } from "./harness.js";
6
6
  import { type AgentWorkspaceSourceSnapshotPolicy } from "./agent-workspace-source-snapshot.js";
7
7
  export type AgentExecutionPreparationDisposition = "behavior" | "control" | "overridden" | "unsupported";
8
8
  export type AgentExecutionPreparationOwner = "runtime" | "executor";
@@ -85,7 +85,7 @@ export interface AgentExecutionPreparationReceipt {
85
85
  /** Canonical identity after executor overrides. */
86
86
  effectiveProfileDigest: Sha256Digest;
87
87
  backend: string;
88
- harness: HarnessType;
88
+ harness: RecordedHarnessType;
89
89
  harnessVersion: string;
90
90
  resolvedModel: AgentExecutionPreparationResolvedModel;
91
91
  workspace: AgentExecutionPreparationWorkspace;
@@ -197,13 +197,13 @@ export declare const agentExecutionPreparationReceiptSchema: z.ZodObject<{
197
197
  openclaw: "openclaw";
198
198
  amp: "amp";
199
199
  "factory-droids": "factory-droids";
200
- forge: "forge";
201
200
  cursor: "cursor";
202
201
  grok: "grok";
203
202
  nanocode: "nanocode";
204
203
  exo: "exo";
205
204
  acp: "acp";
206
205
  "cli-base": "cli-base";
206
+ forge: "forge";
207
207
  }>;
208
208
  harnessVersion: z.ZodString;
209
209
  resolvedModel: z.ZodObject<{
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import { canonicalCandidateDigest, canonicalCandidateJson, isCanonicalJsonValue, isWellFormedUnicode, looksLikeCredential, omitTopLevelDigest, sha256DigestSchema, } from "./agent-candidate-schema-common.js";
3
3
  import { REASONING_EFFORTS } from "./agent-profile.js";
4
4
  import { AGENT_PROFILE_MATERIALIZATION_AXES, } from "./agent-profile-materialization.js";
5
- import { harnessTypeSchema } from "./harness.js";
5
+ import { recordedHarnessTypeSchema } from "./harness.js";
6
6
  import { agentWorkspaceSourceSnapshotPolicySchema, } from "./agent-workspace-source-snapshot.js";
7
7
  const nonBlankStringSchema = z
8
8
  .string()
@@ -108,7 +108,7 @@ export const agentExecutionPreparationReceiptSchema = z
108
108
  authoredProfileDigest: sha256DigestSchema,
109
109
  effectiveProfileDigest: sha256DigestSchema,
110
110
  backend: nonBlankStringSchema.max(200),
111
- harness: harnessTypeSchema,
111
+ harness: recordedHarnessTypeSchema,
112
112
  harnessVersion: nonBlankStringSchema.max(200),
113
113
  resolvedModel: z.strictObject({
114
114
  requested: z.string().max(500),
@@ -4,6 +4,7 @@ import type { AgentProfileActivationEvidence } from "./agent-profile-activation.
4
4
  import { type AgentProfileMaterializationAxis } from "./agent-profile-materialization.js";
5
5
  import { type AgentExecutionPreparationAxisResult, type AgentExecutionPreparationMaterializer, type AgentExecutionPreparationReceipt, type AgentExecutionPreparationResolvedModel } from "./agent-execution-preparation-receipt.js";
6
6
  import type { HarnessType } from "./harness.js";
7
+ import { type RecordedAgentProfile } from "./profile-schema.js";
7
8
  import { type AgentWorkspaceSealedLeaseRecord } from "./agent-workspace-lease.js";
8
9
  export { agentExecutionPreparationAxisResultSchema, agentExecutionPreparationReasoningEffortSchema, agentExecutionPreparationReceiptSchema, type AgentExecutionPreparationAxisResult, type AgentExecutionPreparationDisposition, type AgentExecutionPreparationMaterializer, type AgentExecutionPreparationOwner, type AgentExecutionPreparationReasoningEffort, type AgentExecutionPreparationReceipt, type AgentExecutionPreparationResolvedModel, type AgentExecutionPreparationWorkspace, } from "./agent-execution-preparation-receipt.js";
9
10
  export interface BuildAgentExecutionPreparationReceiptInput {
@@ -49,7 +50,7 @@ export type AgentExecutionPreparationValidationResult = {
49
50
  * pattern matching cannot decide whether it is secret. Resolve opaque secret
50
51
  * references only after this public identity is fixed.
51
52
  */
52
- export declare function canonicalAgentProfileDigest(profile: AgentProfile): Sha256Digest;
53
+ export declare function canonicalAgentProfileDigest(profile: RecordedAgentProfile): Sha256Digest;
53
54
  /** Build, self-hash, and cross-check one pre-compute executor acknowledgement. */
54
55
  export declare function buildAgentExecutionPreparationReceipt(input: BuildAgentExecutionPreparationReceiptInput): AgentExecutionPreparationReceipt;
55
56
  export declare class AgentExecutionPreparationValidationError extends Error {
@@ -2,7 +2,7 @@ import { canonicalCandidateDigest, canonicalCandidateJson, isCanonicalJsonValue,
2
2
  import { canonicalAgentProfileValue } from "./agent-profile-canonical.js";
3
3
  import { profileMaterializationRequests, } from "./agent-profile-materialization.js";
4
4
  import { agentExecutionPreparationAxisResultKey as axisResultKey, agentExecutionPreparationAxisResultsEqual as canonicalRowsEqual, agentExecutionPreparationReceiptSchema, compareAgentExecutionPreparationAxisResults as compareAxisResults, } from "./agent-execution-preparation-receipt.js";
5
- import { agentProfileSchema } from "./profile-schema.js";
5
+ import { agentProfileSchema, recordedAgentProfileSchema } from "./profile-schema.js";
6
6
  import { agentWorkspaceLeaseRecordSchema, } from "./agent-workspace-lease.js";
7
7
  export { agentExecutionPreparationAxisResultSchema, agentExecutionPreparationReasoningEffortSchema, agentExecutionPreparationReceiptSchema, } from "./agent-execution-preparation-receipt.js";
8
8
  /**
@@ -14,7 +14,7 @@ export { agentExecutionPreparationAxisResultSchema, agentExecutionPreparationRea
14
14
  * references only after this public identity is fixed.
15
15
  */
16
16
  export function canonicalAgentProfileDigest(profile) {
17
- const parsed = agentProfileSchema.parse(profile);
17
+ const parsed = recordedAgentProfileSchema.parse(profile);
18
18
  const material = canonicalAgentProfileValue(parsed);
19
19
  if (material === undefined || !isCanonicalJsonValue(material)) {
20
20
  throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
@@ -1,5 +1,5 @@
1
1
  import type { Sha256Digest } from "./agent-candidate.js";
2
- import type { AgentProfile } from "./agent-profile.js";
2
+ import { type RecordedAgentProfile } from "./profile-schema.js";
3
3
  /** UTF-8 source bytes and logical lines, without normalizing the supplied text. */
4
4
  export interface AgentProfileTextMeasurement {
5
5
  /** RFC 6901 pointer into the measured profile. */
@@ -54,4 +54,4 @@ export interface AgentProfileMeasurements {
54
54
  * Results preserve declaration order and contain no prompt/resource content,
55
55
  * server configuration, permission values, or secret references.
56
56
  */
57
- export declare function measureAgentProfile(profile: AgentProfile): AgentProfileMeasurements;
57
+ export declare function measureAgentProfile(profile: RecordedAgentProfile): AgentProfileMeasurements;
@@ -1,6 +1,6 @@
1
1
  import { canonicalAgentProfileDigest } from "./agent-execution-preparation.js";
2
2
  import { canonicalAgentProfileJson } from "./agent-profile-canonical.js";
3
- import { agentProfileSchema } from "./profile-schema.js";
3
+ import { recordedAgentProfileSchema } from "./profile-schema.js";
4
4
  const utf8 = new TextEncoder();
5
5
  function textMeasurement(path, text) {
6
6
  const breaks = text.match(/\r\n|\r|\n/g)?.length ?? 0;
@@ -34,7 +34,7 @@ function capabilityCounts(enabled) {
34
34
  * server configuration, permission values, or secret references.
35
35
  */
36
36
  export function measureAgentProfile(profile) {
37
- const value = agentProfileSchema.parse(profile);
37
+ const value = recordedAgentProfileSchema.parse(profile);
38
38
  const profileDigest = canonicalAgentProfileDigest(value);
39
39
  const canonical = canonicalAgentProfileJson(value);
40
40
  const prompt = [];
@@ -36,13 +36,13 @@ export declare const AgentInteractiveSessionRefSchema: z.ZodObject<{
36
36
  openclaw: "openclaw";
37
37
  amp: "amp";
38
38
  "factory-droids": "factory-droids";
39
- forge: "forge";
40
39
  cursor: "cursor";
41
40
  grok: "grok";
42
41
  nanocode: "nanocode";
43
42
  exo: "exo";
44
43
  acp: "acp";
45
44
  "cli-base": "cli-base";
45
+ forge: "forge";
46
46
  }>;
47
47
  harnessVersion: z.ZodString;
48
48
  resolvedModel: z.ZodObject<{
@@ -219,13 +219,13 @@ export declare const AgentInteractiveSessionControlClaimRequestSchema: z.ZodObje
219
219
  openclaw: "openclaw";
220
220
  amp: "amp";
221
221
  "factory-droids": "factory-droids";
222
- forge: "forge";
223
222
  cursor: "cursor";
224
223
  grok: "grok";
225
224
  nanocode: "nanocode";
226
225
  exo: "exo";
227
226
  acp: "acp";
228
227
  "cli-base": "cli-base";
228
+ forge: "forge";
229
229
  }>;
230
230
  harnessVersion: z.ZodString;
231
231
  resolvedModel: z.ZodObject<{
@@ -393,13 +393,13 @@ export declare const AgentInteractiveSessionControlClaimAcknowledgementSchema: z
393
393
  openclaw: "openclaw";
394
394
  amp: "amp";
395
395
  "factory-droids": "factory-droids";
396
- forge: "forge";
397
396
  cursor: "cursor";
398
397
  grok: "grok";
399
398
  nanocode: "nanocode";
400
399
  exo: "exo";
401
400
  acp: "acp";
402
401
  "cli-base": "cli-base";
402
+ forge: "forge";
403
403
  }>;
404
404
  harnessVersion: z.ZodString;
405
405
  resolvedModel: z.ZodObject<{
@@ -589,13 +589,13 @@ export declare const AgentInteractiveSessionStatusSchema: z.ZodDiscriminatedUnio
589
589
  openclaw: "openclaw";
590
590
  amp: "amp";
591
591
  "factory-droids": "factory-droids";
592
- forge: "forge";
593
592
  cursor: "cursor";
594
593
  grok: "grok";
595
594
  nanocode: "nanocode";
596
595
  exo: "exo";
597
596
  acp: "acp";
598
597
  "cli-base": "cli-base";
598
+ forge: "forge";
599
599
  }>;
600
600
  harnessVersion: z.ZodString;
601
601
  resolvedModel: z.ZodObject<{
@@ -744,13 +744,13 @@ export declare const AgentInteractiveSessionStatusSchema: z.ZodDiscriminatedUnio
744
744
  openclaw: "openclaw";
745
745
  amp: "amp";
746
746
  "factory-droids": "factory-droids";
747
- forge: "forge";
748
747
  cursor: "cursor";
749
748
  grok: "grok";
750
749
  nanocode: "nanocode";
751
750
  exo: "exo";
752
751
  acp: "acp";
753
752
  "cli-base": "cli-base";
753
+ forge: "forge";
754
754
  }>;
755
755
  harnessVersion: z.ZodString;
756
756
  resolvedModel: z.ZodObject<{
@@ -907,13 +907,13 @@ export declare const AgentInteractiveSessionStatusSchema: z.ZodDiscriminatedUnio
907
907
  openclaw: "openclaw";
908
908
  amp: "amp";
909
909
  "factory-droids": "factory-droids";
910
- forge: "forge";
911
910
  cursor: "cursor";
912
911
  grok: "grok";
913
912
  nanocode: "nanocode";
914
913
  exo: "exo";
915
914
  acp: "acp";
916
915
  "cli-base": "cli-base";
916
+ forge: "forge";
917
917
  }>;
918
918
  harnessVersion: z.ZodString;
919
919
  resolvedModel: z.ZodObject<{
@@ -1076,13 +1076,13 @@ export declare const AgentInteractiveSessionStopCommandSchema: z.ZodObject<{
1076
1076
  openclaw: "openclaw";
1077
1077
  amp: "amp";
1078
1078
  "factory-droids": "factory-droids";
1079
- forge: "forge";
1080
1079
  cursor: "cursor";
1081
1080
  grok: "grok";
1082
1081
  nanocode: "nanocode";
1083
1082
  exo: "exo";
1084
1083
  acp: "acp";
1085
1084
  "cli-base": "cli-base";
1085
+ forge: "forge";
1086
1086
  }>;
1087
1087
  harnessVersion: z.ZodString;
1088
1088
  resolvedModel: z.ZodObject<{
@@ -1252,13 +1252,13 @@ export declare const AgentInteractiveSessionStopAcknowledgementSchema: z.ZodObje
1252
1252
  openclaw: "openclaw";
1253
1253
  amp: "amp";
1254
1254
  "factory-droids": "factory-droids";
1255
- forge: "forge";
1256
1255
  cursor: "cursor";
1257
1256
  grok: "grok";
1258
1257
  nanocode: "nanocode";
1259
1258
  exo: "exo";
1260
1259
  acp: "acp";
1261
1260
  "cli-base": "cli-base";
1261
+ forge: "forge";
1262
1262
  }>;
1263
1263
  harnessVersion: z.ZodString;
1264
1264
  resolvedModel: z.ZodObject<{
@@ -1446,13 +1446,13 @@ export declare const AgentInteractiveSessionPromptCommandSchema: z.ZodObject<{
1446
1446
  openclaw: "openclaw";
1447
1447
  amp: "amp";
1448
1448
  "factory-droids": "factory-droids";
1449
- forge: "forge";
1450
1449
  cursor: "cursor";
1451
1450
  grok: "grok";
1452
1451
  nanocode: "nanocode";
1453
1452
  exo: "exo";
1454
1453
  acp: "acp";
1455
1454
  "cli-base": "cli-base";
1455
+ forge: "forge";
1456
1456
  }>;
1457
1457
  harnessVersion: z.ZodString;
1458
1458
  resolvedModel: z.ZodObject<{
@@ -1621,13 +1621,13 @@ export declare const AgentInteractiveSessionPromptAcknowledgementSchema: z.ZodOb
1621
1621
  openclaw: "openclaw";
1622
1622
  amp: "amp";
1623
1623
  "factory-droids": "factory-droids";
1624
- forge: "forge";
1625
1624
  cursor: "cursor";
1626
1625
  grok: "grok";
1627
1626
  nanocode: "nanocode";
1628
1627
  exo: "exo";
1629
1628
  acp: "acp";
1630
1629
  "cli-base": "cli-base";
1630
+ forge: "forge";
1631
1631
  }>;
1632
1632
  harnessVersion: z.ZodString;
1633
1633
  resolvedModel: z.ZodObject<{
@@ -56,75 +56,6 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
56
56
  maxTotalOutputTokens: z.ZodOptional<z.ZodNumber>;
57
57
  metadata: z.ZodOptional<z.ZodType<Record<string, unknown>, unknown, z.core.$ZodTypeInternals<Record<string, unknown>, unknown>>>;
58
58
  }, z.core.$strict>>;
59
- harness: z.ZodOptional<z.ZodEnum<{
60
- "claude-code": "claude-code";
61
- nanoclaw: "nanoclaw";
62
- codex: "codex";
63
- opencode: "opencode";
64
- "kimi-code": "kimi-code";
65
- pi: "pi";
66
- prime: "prime";
67
- gemini: "gemini";
68
- hermes: "hermes";
69
- openclaw: "openclaw";
70
- amp: "amp";
71
- "factory-droids": "factory-droids";
72
- forge: "forge";
73
- cursor: "cursor";
74
- grok: "grok";
75
- nanocode: "nanocode";
76
- exo: "exo";
77
- acp: "acp";
78
- "cli-base": "cli-base";
79
- }>>;
80
- seats: z.ZodOptional<z.ZodArray<z.ZodObject<{
81
- harness: z.ZodEnum<{
82
- "claude-code": "claude-code";
83
- nanoclaw: "nanoclaw";
84
- codex: "codex";
85
- opencode: "opencode";
86
- "kimi-code": "kimi-code";
87
- pi: "pi";
88
- prime: "prime";
89
- gemini: "gemini";
90
- hermes: "hermes";
91
- openclaw: "openclaw";
92
- amp: "amp";
93
- "factory-droids": "factory-droids";
94
- forge: "forge";
95
- cursor: "cursor";
96
- grok: "grok";
97
- nanocode: "nanocode";
98
- exo: "exo";
99
- acp: "acp";
100
- "cli-base": "cli-base";
101
- }>;
102
- provider: z.ZodString;
103
- model: z.ZodString;
104
- reasoningEffort: z.ZodOptional<z.ZodEnum<{
105
- none: "none";
106
- minimal: "minimal";
107
- low: "low";
108
- medium: "medium";
109
- high: "high";
110
- xhigh: "xhigh";
111
- ultracode: "ultracode";
112
- }>>;
113
- credentialSource: z.ZodOptional<z.ZodEnum<{
114
- router: "router";
115
- "api-key": "api-key";
116
- subscription: "subscription";
117
- managed: "managed";
118
- }>>;
119
- selector: z.ZodUnion<readonly [z.ZodObject<{
120
- kind: z.ZodLiteral<"all-eligible">;
121
- }, z.core.$strict>, z.ZodObject<{
122
- kind: z.ZodLiteral<"seat">;
123
- id: z.ZodString;
124
- }, z.core.$strict>]>;
125
- tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
126
- permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
127
- }, z.core.$strict>>>;
128
59
  proxySecrets: z.ZodOptional<z.ZodArray<z.ZodObject<{
129
60
  hosts: z.ZodReadonly<z.ZodArray<z.ZodString>>;
130
61
  methods: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
@@ -304,6 +235,73 @@ export declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
304
235
  }, z.core.$strict>>;
305
236
  metadata: z.ZodOptional<z.ZodType<import("./agent-profile.js").AgentProfileMetadata, unknown, z.core.$ZodTypeInternals<import("./agent-profile.js").AgentProfileMetadata, unknown>>>;
306
237
  extensions: z.ZodOptional<z.ZodType<Record<string, Record<string, unknown> | undefined>, unknown, z.core.$ZodTypeInternals<Record<string, Record<string, unknown> | undefined>, unknown>>>;
238
+ harness: z.ZodOptional<z.ZodEnum<{
239
+ "claude-code": "claude-code";
240
+ nanoclaw: "nanoclaw";
241
+ codex: "codex";
242
+ opencode: "opencode";
243
+ "kimi-code": "kimi-code";
244
+ pi: "pi";
245
+ prime: "prime";
246
+ gemini: "gemini";
247
+ hermes: "hermes";
248
+ openclaw: "openclaw";
249
+ amp: "amp";
250
+ "factory-droids": "factory-droids";
251
+ cursor: "cursor";
252
+ grok: "grok";
253
+ nanocode: "nanocode";
254
+ exo: "exo";
255
+ acp: "acp";
256
+ "cli-base": "cli-base";
257
+ }>>;
258
+ seats: z.ZodOptional<z.ZodArray<z.ZodObject<{
259
+ harness: z.ZodEnum<{
260
+ "claude-code": "claude-code";
261
+ nanoclaw: "nanoclaw";
262
+ codex: "codex";
263
+ opencode: "opencode";
264
+ "kimi-code": "kimi-code";
265
+ pi: "pi";
266
+ prime: "prime";
267
+ gemini: "gemini";
268
+ hermes: "hermes";
269
+ openclaw: "openclaw";
270
+ amp: "amp";
271
+ "factory-droids": "factory-droids";
272
+ cursor: "cursor";
273
+ grok: "grok";
274
+ nanocode: "nanocode";
275
+ exo: "exo";
276
+ acp: "acp";
277
+ "cli-base": "cli-base";
278
+ }>;
279
+ provider: z.ZodString;
280
+ model: z.ZodString;
281
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
282
+ none: "none";
283
+ minimal: "minimal";
284
+ low: "low";
285
+ medium: "medium";
286
+ high: "high";
287
+ xhigh: "xhigh";
288
+ ultracode: "ultracode";
289
+ }>>;
290
+ credentialSource: z.ZodOptional<z.ZodEnum<{
291
+ router: "router";
292
+ "api-key": "api-key";
293
+ subscription: "subscription";
294
+ managed: "managed";
295
+ }>>;
296
+ selector: z.ZodUnion<readonly [z.ZodObject<{
297
+ kind: z.ZodLiteral<"all-eligible">;
298
+ }, z.core.$strict>, z.ZodObject<{
299
+ kind: z.ZodLiteral<"seat">;
300
+ id: z.ZodString;
301
+ }, z.core.$strict>]>;
302
+ tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
303
+ permissions: z.ZodOptional<z.ZodType<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny" | Record<string, "allow" | "ask" | "deny">>, unknown>>>;
304
+ }, z.core.$strict>>>;
307
305
  }, z.core.$strict>;
308
306
  requestedProfileDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
309
307
  authMode: z.ZodOptional<z.ZodLiteral<"oauth">>;