@tangle-network/agent-interface 0.28.0 → 0.30.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 (30) hide show
  1. package/dist/agent-candidate-code-schema.d.ts +0 -8
  2. package/dist/agent-candidate-code-schema.js +0 -1
  3. package/dist/agent-candidate-execution-plan-schema.d.ts +193 -350
  4. package/dist/agent-candidate-execution-plan-schema.js +98 -131
  5. package/dist/agent-candidate-lineage-schema.d.ts +1 -28
  6. package/dist/agent-candidate-lineage-schema.js +3 -33
  7. package/dist/agent-candidate-outcome-schema.d.ts +48 -18
  8. package/dist/agent-candidate-outcome-schema.js +19 -24
  9. package/dist/agent-candidate-profile-schema.d.ts +3 -28
  10. package/dist/agent-candidate-profile-schema.js +15 -27
  11. package/dist/agent-candidate-promotion-schema.d.ts +10981 -2356
  12. package/dist/agent-candidate-promotion-schema.js +495 -105
  13. package/dist/agent-candidate-receipt-schema.d.ts +268 -303
  14. package/dist/agent-candidate-receipt-schema.js +82 -8
  15. package/dist/agent-candidate-schema-common.d.ts +8 -0
  16. package/dist/agent-candidate-schema-common.js +35 -1
  17. package/dist/agent-candidate-schema.d.ts +3 -52
  18. package/dist/agent-candidate-schema.js +3 -28
  19. package/dist/agent-candidate-task-schema.d.ts +643 -0
  20. package/dist/agent-candidate-task-schema.js +191 -0
  21. package/dist/agent-candidate.d.ts +191 -75
  22. package/dist/agent-candidate.test-fixture.d.ts +0 -26
  23. package/dist/agent-candidate.test-fixture.js +0 -26
  24. package/dist/agent-profile.d.ts +33 -9
  25. package/dist/harness-capabilities.d.ts +2 -2
  26. package/dist/harness-capabilities.js +23 -14
  27. package/dist/profile-schema.d.ts +65 -84
  28. package/dist/profile-schema.js +82 -32
  29. package/dist/profile-security.js +2 -0
  30. package/package.json +2 -2
@@ -92,9 +92,9 @@ export interface AgentProfileResources {
92
92
  * - `none` — extended thinking OFF (no reasoning budget at all)
93
93
  * - `minimal` — thinking ON, the lowest budget (distinct from `none`)
94
94
  * - `low` / `medium` / `high` / `xhigh`
95
- * - `ultracode` — maximum (claude-code's "ultracode" run mode; codex's `max` reconciles here).
96
- * A backend without a matching native tier clamps to its nearest (e.g. codex maps `ultracode` → `xhigh`
97
- * on models that support it).
95
+ * - `ultracode` — maximum (Claude Code's `max` and Codex's `ultra` reconcile here).
96
+ * A backend without a matching native tier may clamp down to its strongest supported level, but it
97
+ * must never turn reasoning on for `none` or silently increase a requested effort.
98
98
  */
99
99
  export type ReasoningEffort = "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "ultracode";
100
100
  /**
@@ -191,17 +191,40 @@ export interface AgentProfileConfidential {
191
191
  /**
192
192
  * Generic MCP server configuration.
193
193
  */
194
- export interface AgentProfileMcpServer {
195
- transport?: "stdio" | "sse" | "http";
196
- command?: string;
194
+ interface AgentProfileMcpServerBase {
195
+ metadata?: Record<string, unknown>;
196
+ }
197
+ interface AgentProfileLocalMcpServer extends AgentProfileMcpServerBase {
198
+ enabled?: true;
199
+ transport?: "stdio";
200
+ command: string;
197
201
  args?: string[];
198
202
  env?: Record<string, string>;
199
203
  cwd?: string;
200
- url?: string;
204
+ url?: never;
205
+ headers?: never;
206
+ }
207
+ interface AgentProfileRemoteMcpServer extends AgentProfileMcpServerBase {
208
+ enabled?: true;
209
+ transport?: "sse" | "http";
210
+ command?: never;
211
+ args?: never;
212
+ env?: never;
213
+ cwd?: never;
214
+ url: string;
201
215
  headers?: Record<string, string>;
202
- enabled?: boolean;
203
- metadata?: Record<string, unknown>;
204
216
  }
217
+ interface AgentProfileDisabledMcpServer extends AgentProfileMcpServerBase {
218
+ enabled: false;
219
+ transport?: never;
220
+ command?: never;
221
+ args?: never;
222
+ env?: never;
223
+ cwd?: never;
224
+ url?: never;
225
+ headers?: never;
226
+ }
227
+ export type AgentProfileMcpServer = AgentProfileLocalMcpServer | AgentProfileRemoteMcpServer | AgentProfileDisabledMcpServer;
205
228
  /**
206
229
  * Hub-managed integration grant. The sandbox runtime resolves each declared
207
230
  * connection/capability pair into an MCP tool backed by Tangle Hub policy.
@@ -317,3 +340,4 @@ export interface AgentProfileValidationResult {
317
340
  * Overlay fields win on conflicts. Array-like instruction sets are appended.
318
341
  */
319
342
  export declare function mergeAgentProfiles(base: AgentProfile | undefined, overlay: AgentProfile | undefined): AgentProfile | undefined;
343
+ export {};
@@ -11,8 +11,8 @@ import { type HarnessType } from "./harness.js";
11
11
  * cli-bridge backends, the sandbox UI pickers, and the router all read one truth instead of each
12
12
  * hand-rolling a divergent copy.
13
13
  *
14
- * Grounded in cli-bridge's real backend clamps (codex is `low..xhigh` for current models, kimi is
15
- * binary on/off, claude carries the full range, cli-base has no agent) — NOT a guessed matrix. The
14
+ * Grounded in the native CLI controls (Codex is `minimal..ultra`, Kimi is binary on/off, Claude is
15
+ * `low..max`, cli-base has no agent) — NOT a guessed matrix. The
16
16
  * per-MODEL reasoning capability (does this specific model reason at all) is dynamic catalog data the
17
17
  * caller supplies.
18
18
  */
@@ -10,8 +10,8 @@ import { canonicalizeHarness } from "./harness.js";
10
10
  * cli-bridge backends, the sandbox UI pickers, and the router all read one truth instead of each
11
11
  * hand-rolling a divergent copy.
12
12
  *
13
- * Grounded in cli-bridge's real backend clamps (codex is `low..xhigh` for current models, kimi is
14
- * binary on/off, claude carries the full range, cli-base has no agent) — NOT a guessed matrix. The
13
+ * Grounded in the native CLI controls (Codex is `minimal..ultra`, Kimi is binary on/off, Claude is
14
+ * `low..max`, cli-base has no agent) — NOT a guessed matrix. The
15
15
  * per-MODEL reasoning capability (does this specific model reason at all) is dynamic catalog data the
16
16
  * caller supplies.
17
17
  */
@@ -125,21 +125,30 @@ export function snapHarnessToModel(harness, modelId) {
125
125
  /**
126
126
  * The explicit reasoning-effort set a harness's runtime accepts when it ISN'T a plain `none…ceiling`
127
127
  * slice — grounded in the cli-bridge adapters (NOT the canonical ladder):
128
- * - codex: current models advertise `low|medium|high|xhigh`; `none` is omitted (use `auto`) and
129
- * legacy `minimal` requests clamp up to `low`.
130
- * - claude-code: `--effort` accepts `low|medium|high|xhigh|max`. `ultracode` is the ladder's stand-in
131
- * for claude's `max` (clamped at runtime); `minimal`→`low` and `none`/`auto`→no flag, so both are
132
- * dropped as redundant.
133
- * - pi / openclaw: `--thinking` accepts `minimal…xhigh` (max/ultracode clamp to `xhigh`; no `none`).
134
- * - kimi-code: `--thinking` is BINARY (off/on) — `minimal` is the only value that emits
135
- * `--no-thinking`, `high` is "thinking on". So two levels, not five.
128
+ * - codex: `model_reasoning_effort` accepts `minimal|low|medium|high|xhigh|max|ultra`; canonical
129
+ * `ultracode` maps to native `ultra`. Per-model catalog data narrows this list.
130
+ * - claude-code: `--effort` accepts `low|medium|high|xhigh|max`; canonical `ultracode` maps to
131
+ * native `max`. It cannot express `none` or `minimal`.
132
+ * - pi: `--thinking` accepts `off|minimal|low|medium|high|xhigh`; canonical `none` maps to `off`.
133
+ * - openclaw: `--thinking` accepts `off|minimal|low|medium|high|xhigh|max`; canonical `none` maps
134
+ * to `off` and `ultracode` maps to `max`.
135
+ * - kimi-code: `--thinking` is binary. Canonical `none` emits `--no-thinking`; any non-none level
136
+ * emits `--thinking`, represented here by `high`.
136
137
  */
137
138
  const harnessReasoningEffortsOverride = {
138
- codex: ["low", "medium", "high", "xhigh"],
139
+ codex: ["minimal", "low", "medium", "high", "xhigh", "ultracode"],
139
140
  "claude-code": ["low", "medium", "high", "xhigh", "ultracode"],
140
- pi: ["minimal", "low", "medium", "high", "xhigh"],
141
- openclaw: ["minimal", "low", "medium", "high", "xhigh"],
142
- "kimi-code": ["minimal", "high"],
141
+ pi: ["none", "minimal", "low", "medium", "high", "xhigh"],
142
+ openclaw: [
143
+ "none",
144
+ "minimal",
145
+ "low",
146
+ "medium",
147
+ "high",
148
+ "xhigh",
149
+ "ultracode",
150
+ ],
151
+ "kimi-code": ["none", "high"],
143
152
  };
144
153
  /**
145
154
  * The ceiling for harnesses whose set IS a plain `none…ceiling` slice. Only the no-thinking runners
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { AgentProfile } from "./agent-profile.js";
2
+ import type { AgentProfile, AgentProfileMcpServer } from "./agent-profile.js";
3
3
  import type { AgentProfileDiff } from "./profile-diff.js";
4
4
  import { type SandboxSizePreset } from "./sandbox-size.js";
5
5
  export declare const agentProfilePermissionValueSchema: z.ZodEnum<{
@@ -20,28 +20,28 @@ export declare const agentProfileResourceRefSchema: z.ZodUnion<readonly [z.ZodOb
20
20
  kind: z.ZodLiteral<"inline">;
21
21
  name: z.ZodString;
22
22
  content: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
23
+ }, z.core.$strict>, z.ZodObject<{
24
24
  kind: z.ZodLiteral<"github">;
25
25
  repository: z.ZodOptional<z.ZodString>;
26
26
  path: z.ZodString;
27
27
  ref: z.ZodOptional<z.ZodString>;
28
28
  name: z.ZodOptional<z.ZodString>;
29
- }, z.core.$strip>]>;
29
+ }, z.core.$strict>]>;
30
30
  export declare const agentProfileFileMountSchema: z.ZodObject<{
31
31
  path: z.ZodString;
32
32
  resource: z.ZodUnion<readonly [z.ZodObject<{
33
33
  kind: z.ZodLiteral<"inline">;
34
34
  name: z.ZodString;
35
35
  content: z.ZodString;
36
- }, z.core.$strip>, z.ZodObject<{
36
+ }, z.core.$strict>, z.ZodObject<{
37
37
  kind: z.ZodLiteral<"github">;
38
38
  repository: z.ZodOptional<z.ZodString>;
39
39
  path: z.ZodString;
40
40
  ref: z.ZodOptional<z.ZodString>;
41
41
  name: z.ZodOptional<z.ZodString>;
42
- }, z.core.$strip>]>;
42
+ }, z.core.$strict>]>;
43
43
  executable: z.ZodOptional<z.ZodBoolean>;
44
- }, z.core.$strip>;
44
+ }, z.core.$strict>;
45
45
  export declare const agentProfileResourcesSchema: z.ZodObject<{
46
46
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
47
47
  path: z.ZodString;
@@ -49,72 +49,81 @@ export declare const agentProfileResourcesSchema: z.ZodObject<{
49
49
  kind: z.ZodLiteral<"inline">;
50
50
  name: z.ZodString;
51
51
  content: z.ZodString;
52
- }, z.core.$strip>, z.ZodObject<{
52
+ }, z.core.$strict>, z.ZodObject<{
53
53
  kind: z.ZodLiteral<"github">;
54
54
  repository: z.ZodOptional<z.ZodString>;
55
55
  path: z.ZodString;
56
56
  ref: z.ZodOptional<z.ZodString>;
57
57
  name: z.ZodOptional<z.ZodString>;
58
- }, z.core.$strip>]>;
58
+ }, z.core.$strict>]>;
59
59
  executable: z.ZodOptional<z.ZodBoolean>;
60
- }, z.core.$strip>>>;
60
+ }, z.core.$strict>>>;
61
61
  tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
62
62
  kind: z.ZodLiteral<"inline">;
63
63
  name: z.ZodString;
64
64
  content: z.ZodString;
65
- }, z.core.$strip>, z.ZodObject<{
65
+ }, z.core.$strict>, z.ZodObject<{
66
66
  kind: z.ZodLiteral<"github">;
67
67
  repository: z.ZodOptional<z.ZodString>;
68
68
  path: z.ZodString;
69
69
  ref: z.ZodOptional<z.ZodString>;
70
70
  name: z.ZodOptional<z.ZodString>;
71
- }, z.core.$strip>]>>>;
71
+ }, z.core.$strict>]>>>;
72
72
  skills: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
73
73
  kind: z.ZodLiteral<"inline">;
74
74
  name: z.ZodString;
75
75
  content: z.ZodString;
76
- }, z.core.$strip>, z.ZodObject<{
76
+ }, z.core.$strict>, z.ZodObject<{
77
77
  kind: z.ZodLiteral<"github">;
78
78
  repository: z.ZodOptional<z.ZodString>;
79
79
  path: z.ZodString;
80
80
  ref: z.ZodOptional<z.ZodString>;
81
81
  name: z.ZodOptional<z.ZodString>;
82
- }, z.core.$strip>]>>>;
82
+ }, z.core.$strict>]>>>;
83
83
  agents: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
84
84
  kind: z.ZodLiteral<"inline">;
85
85
  name: z.ZodString;
86
86
  content: z.ZodString;
87
- }, z.core.$strip>, z.ZodObject<{
87
+ }, z.core.$strict>, z.ZodObject<{
88
88
  kind: z.ZodLiteral<"github">;
89
89
  repository: z.ZodOptional<z.ZodString>;
90
90
  path: z.ZodString;
91
91
  ref: z.ZodOptional<z.ZodString>;
92
92
  name: z.ZodOptional<z.ZodString>;
93
- }, z.core.$strip>]>>>;
93
+ }, z.core.$strict>]>>>;
94
94
  commands: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
95
95
  kind: z.ZodLiteral<"inline">;
96
96
  name: z.ZodString;
97
97
  content: z.ZodString;
98
- }, z.core.$strip>, z.ZodObject<{
98
+ }, z.core.$strict>, z.ZodObject<{
99
99
  kind: z.ZodLiteral<"github">;
100
100
  repository: z.ZodOptional<z.ZodString>;
101
101
  path: z.ZodString;
102
102
  ref: z.ZodOptional<z.ZodString>;
103
103
  name: z.ZodOptional<z.ZodString>;
104
- }, z.core.$strip>]>>>;
104
+ }, z.core.$strict>]>>>;
105
105
  instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
106
106
  kind: z.ZodLiteral<"inline">;
107
107
  name: z.ZodString;
108
108
  content: z.ZodString;
109
- }, z.core.$strip>, z.ZodObject<{
109
+ }, z.core.$strict>, z.ZodObject<{
110
110
  kind: z.ZodLiteral<"github">;
111
111
  repository: z.ZodOptional<z.ZodString>;
112
112
  path: z.ZodString;
113
113
  ref: z.ZodOptional<z.ZodString>;
114
114
  name: z.ZodOptional<z.ZodString>;
115
- }, z.core.$strip>]>]>>;
115
+ }, z.core.$strict>]>]>>;
116
116
  failOnError: z.ZodOptional<z.ZodBoolean>;
117
- }, z.core.$strip>;
117
+ }, z.core.$strict>;
118
+ export declare const reasoningEffortSchema: z.ZodEnum<{
119
+ none: "none";
120
+ minimal: "minimal";
121
+ low: "low";
122
+ medium: "medium";
123
+ high: "high";
124
+ xhigh: "xhigh";
125
+ ultracode: "ultracode";
126
+ }>;
118
127
  export declare const agentProfileModelHintsSchema: z.ZodObject<{
119
128
  default: z.ZodOptional<z.ZodString>;
120
129
  small: z.ZodOptional<z.ZodString>;
@@ -129,11 +138,11 @@ export declare const agentProfileModelHintsSchema: z.ZodObject<{
129
138
  ultracode: "ultracode";
130
139
  }>>;
131
140
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
132
- }, z.core.$strip>;
141
+ }, z.core.$strict>;
133
142
  export declare const agentProfilePromptSchema: z.ZodObject<{
134
143
  systemPrompt: z.ZodOptional<z.ZodString>;
135
144
  instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
- }, z.core.$strip>;
145
+ }, z.core.$strict>;
137
146
  export declare const agentSubagentProfileSchema: z.ZodObject<{
138
147
  description: z.ZodOptional<z.ZodString>;
139
148
  prompt: z.ZodOptional<z.ZodString>;
@@ -150,14 +159,14 @@ export declare const agentSubagentProfileSchema: z.ZodObject<{
150
159
  }>>]>>>;
151
160
  maxSteps: z.ZodOptional<z.ZodNumber>;
152
161
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
153
- }, z.core.$strip>;
162
+ }, z.core.$strict>;
154
163
  export declare const agentProfileHookCommandSchema: z.ZodObject<{
155
164
  command: z.ZodString;
156
165
  timeoutMs: z.ZodOptional<z.ZodNumber>;
157
166
  blocking: z.ZodOptional<z.ZodBoolean>;
158
167
  matcher: z.ZodOptional<z.ZodString>;
159
168
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
160
- }, z.core.$strip>;
169
+ }, z.core.$strict>;
161
170
  export declare const agentProfileModeSchema: z.ZodObject<{
162
171
  description: z.ZodOptional<z.ZodString>;
163
172
  model: z.ZodOptional<z.ZodString>;
@@ -173,37 +182,23 @@ export declare const agentProfileModeSchema: z.ZodObject<{
173
182
  deny: "deny";
174
183
  }>>]>>>;
175
184
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
176
- }, z.core.$strip>;
185
+ }, z.core.$strict>;
177
186
  export declare const agentProfileConfidentialSchema: z.ZodObject<{
178
187
  tee: z.ZodOptional<z.ZodString>;
179
188
  attestationNonce: z.ZodOptional<z.ZodString>;
180
189
  sealed: z.ZodOptional<z.ZodBoolean>;
181
190
  attestationRefresh: z.ZodOptional<z.ZodBoolean>;
182
- }, z.core.$strip>;
183
- export declare const agentProfileMcpServerSchema: z.ZodObject<{
184
- transport: z.ZodOptional<z.ZodEnum<{
185
- stdio: "stdio";
186
- sse: "sse";
187
- http: "http";
188
- }>>;
189
- command: z.ZodOptional<z.ZodString>;
190
- args: z.ZodOptional<z.ZodArray<z.ZodString>>;
191
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
192
- cwd: z.ZodOptional<z.ZodString>;
193
- url: z.ZodOptional<z.ZodString>;
194
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
195
- enabled: z.ZodOptional<z.ZodBoolean>;
196
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
197
- }, z.core.$strip>;
191
+ }, z.core.$strict>;
192
+ export declare const agentProfileMcpServerSchema: z.ZodType<AgentProfileMcpServer>;
198
193
  export declare const agentProfileConnectionSchema: z.ZodObject<{
199
194
  connectionId: z.ZodString;
200
195
  capabilities: z.ZodArray<z.ZodString>;
201
196
  alias: z.ZodOptional<z.ZodString>;
202
- }, z.core.$strip>;
197
+ }, z.core.$strict>;
203
198
  export declare const agentProfilePromptRemovalSchema: z.ZodObject<{
204
199
  systemPrompt: z.ZodOptional<z.ZodLiteral<true>>;
205
200
  instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
206
- }, z.core.$strip>;
201
+ }, z.core.$strict>;
207
202
  export declare const agentProfileResourceRemovalSchema: z.ZodObject<{
208
203
  files: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
209
204
  tools: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
@@ -212,14 +207,14 @@ export declare const agentProfileResourceRemovalSchema: z.ZodObject<{
212
207
  commands: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
213
208
  instructions: z.ZodOptional<z.ZodLiteral<true>>;
214
209
  failOnError: z.ZodOptional<z.ZodLiteral<true>>;
215
- }, z.core.$strip>;
210
+ }, z.core.$strict>;
216
211
  export declare const agentProfileDiffRemovalSchema: z.ZodObject<{
217
212
  identity: z.ZodOptional<z.ZodLiteral<true>>;
218
213
  tags: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
219
214
  prompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
220
215
  systemPrompt: z.ZodOptional<z.ZodLiteral<true>>;
221
216
  instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
222
- }, z.core.$strip>]>>;
217
+ }, z.core.$strict>]>>;
223
218
  model: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
224
219
  harness: z.ZodOptional<z.ZodLiteral<true>>;
225
220
  permissions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
@@ -235,13 +230,13 @@ export declare const agentProfileDiffRemovalSchema: z.ZodObject<{
235
230
  commands: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
236
231
  instructions: z.ZodOptional<z.ZodLiteral<true>>;
237
232
  failOnError: z.ZodOptional<z.ZodLiteral<true>>;
238
- }, z.core.$strip>]>>;
233
+ }, z.core.$strict>]>>;
239
234
  hooks: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
240
235
  modes: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
241
236
  confidential: z.ZodOptional<z.ZodLiteral<true>>;
242
237
  metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
243
238
  extensions: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodArray<z.ZodString>]>>;
244
- }, z.core.$strip>;
239
+ }, z.core.$strict>;
245
240
  /**
246
241
  * The complete provider-neutral agent profile schema — the runtime validator for
247
242
  * the canonical {@link AgentProfile} TS contract. Kept structurally in lock-step
@@ -255,7 +250,7 @@ export declare const agentProfileSchema: z.ZodObject<{
255
250
  prompt: z.ZodOptional<z.ZodObject<{
256
251
  systemPrompt: z.ZodOptional<z.ZodString>;
257
252
  instructions: z.ZodOptional<z.ZodArray<z.ZodString>>;
258
- }, z.core.$strip>>;
253
+ }, z.core.$strict>>;
259
254
  model: z.ZodOptional<z.ZodObject<{
260
255
  default: z.ZodOptional<z.ZodString>;
261
256
  small: z.ZodOptional<z.ZodString>;
@@ -270,7 +265,7 @@ export declare const agentProfileSchema: z.ZodObject<{
270
265
  ultracode: "ultracode";
271
266
  }>>;
272
267
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
- }, z.core.$strip>>;
268
+ }, z.core.$strict>>;
274
269
  harness: z.ZodOptional<z.ZodEnum<{
275
270
  "claude-code": "claude-code";
276
271
  claude: "claude";
@@ -299,26 +294,12 @@ export declare const agentProfileSchema: z.ZodObject<{
299
294
  deny: "deny";
300
295
  }>>]>>>;
301
296
  tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
302
- mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
303
- transport: z.ZodOptional<z.ZodEnum<{
304
- stdio: "stdio";
305
- sse: "sse";
306
- http: "http";
307
- }>>;
308
- command: z.ZodOptional<z.ZodString>;
309
- args: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
- env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
311
- cwd: z.ZodOptional<z.ZodString>;
312
- url: z.ZodOptional<z.ZodString>;
313
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
314
- enabled: z.ZodOptional<z.ZodBoolean>;
315
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
316
- }, z.core.$strip>>>;
297
+ mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<AgentProfileMcpServer, unknown, z.core.$ZodTypeInternals<AgentProfileMcpServer, unknown>>>>;
317
298
  connections: z.ZodOptional<z.ZodArray<z.ZodObject<{
318
299
  connectionId: z.ZodString;
319
300
  capabilities: z.ZodArray<z.ZodString>;
320
301
  alias: z.ZodOptional<z.ZodString>;
321
- }, z.core.$strip>>>;
302
+ }, z.core.$strict>>>;
322
303
  subagents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
323
304
  description: z.ZodOptional<z.ZodString>;
324
305
  prompt: z.ZodOptional<z.ZodString>;
@@ -335,7 +316,7 @@ export declare const agentProfileSchema: z.ZodObject<{
335
316
  }>>]>>>;
336
317
  maxSteps: z.ZodOptional<z.ZodNumber>;
337
318
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
338
- }, z.core.$strip>>>;
319
+ }, z.core.$strict>>>;
339
320
  resources: z.ZodOptional<z.ZodObject<{
340
321
  files: z.ZodOptional<z.ZodArray<z.ZodObject<{
341
322
  path: z.ZodString;
@@ -343,79 +324,79 @@ export declare const agentProfileSchema: z.ZodObject<{
343
324
  kind: z.ZodLiteral<"inline">;
344
325
  name: z.ZodString;
345
326
  content: z.ZodString;
346
- }, z.core.$strip>, z.ZodObject<{
327
+ }, z.core.$strict>, z.ZodObject<{
347
328
  kind: z.ZodLiteral<"github">;
348
329
  repository: z.ZodOptional<z.ZodString>;
349
330
  path: z.ZodString;
350
331
  ref: z.ZodOptional<z.ZodString>;
351
332
  name: z.ZodOptional<z.ZodString>;
352
- }, z.core.$strip>]>;
333
+ }, z.core.$strict>]>;
353
334
  executable: z.ZodOptional<z.ZodBoolean>;
354
- }, z.core.$strip>>>;
335
+ }, z.core.$strict>>>;
355
336
  tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
356
337
  kind: z.ZodLiteral<"inline">;
357
338
  name: z.ZodString;
358
339
  content: z.ZodString;
359
- }, z.core.$strip>, z.ZodObject<{
340
+ }, z.core.$strict>, z.ZodObject<{
360
341
  kind: z.ZodLiteral<"github">;
361
342
  repository: z.ZodOptional<z.ZodString>;
362
343
  path: z.ZodString;
363
344
  ref: z.ZodOptional<z.ZodString>;
364
345
  name: z.ZodOptional<z.ZodString>;
365
- }, z.core.$strip>]>>>;
346
+ }, z.core.$strict>]>>>;
366
347
  skills: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
367
348
  kind: z.ZodLiteral<"inline">;
368
349
  name: z.ZodString;
369
350
  content: z.ZodString;
370
- }, z.core.$strip>, z.ZodObject<{
351
+ }, z.core.$strict>, z.ZodObject<{
371
352
  kind: z.ZodLiteral<"github">;
372
353
  repository: z.ZodOptional<z.ZodString>;
373
354
  path: z.ZodString;
374
355
  ref: z.ZodOptional<z.ZodString>;
375
356
  name: z.ZodOptional<z.ZodString>;
376
- }, z.core.$strip>]>>>;
357
+ }, z.core.$strict>]>>>;
377
358
  agents: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
378
359
  kind: z.ZodLiteral<"inline">;
379
360
  name: z.ZodString;
380
361
  content: z.ZodString;
381
- }, z.core.$strip>, z.ZodObject<{
362
+ }, z.core.$strict>, z.ZodObject<{
382
363
  kind: z.ZodLiteral<"github">;
383
364
  repository: z.ZodOptional<z.ZodString>;
384
365
  path: z.ZodString;
385
366
  ref: z.ZodOptional<z.ZodString>;
386
367
  name: z.ZodOptional<z.ZodString>;
387
- }, z.core.$strip>]>>>;
368
+ }, z.core.$strict>]>>>;
388
369
  commands: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
389
370
  kind: z.ZodLiteral<"inline">;
390
371
  name: z.ZodString;
391
372
  content: z.ZodString;
392
- }, z.core.$strip>, z.ZodObject<{
373
+ }, z.core.$strict>, z.ZodObject<{
393
374
  kind: z.ZodLiteral<"github">;
394
375
  repository: z.ZodOptional<z.ZodString>;
395
376
  path: z.ZodString;
396
377
  ref: z.ZodOptional<z.ZodString>;
397
378
  name: z.ZodOptional<z.ZodString>;
398
- }, z.core.$strip>]>>>;
379
+ }, z.core.$strict>]>>>;
399
380
  instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
400
381
  kind: z.ZodLiteral<"inline">;
401
382
  name: z.ZodString;
402
383
  content: z.ZodString;
403
- }, z.core.$strip>, z.ZodObject<{
384
+ }, z.core.$strict>, z.ZodObject<{
404
385
  kind: z.ZodLiteral<"github">;
405
386
  repository: z.ZodOptional<z.ZodString>;
406
387
  path: z.ZodString;
407
388
  ref: z.ZodOptional<z.ZodString>;
408
389
  name: z.ZodOptional<z.ZodString>;
409
- }, z.core.$strip>]>]>>;
390
+ }, z.core.$strict>]>]>>;
410
391
  failOnError: z.ZodOptional<z.ZodBoolean>;
411
- }, z.core.$strip>>;
392
+ }, z.core.$strict>>;
412
393
  hooks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
413
394
  command: z.ZodString;
414
395
  timeoutMs: z.ZodOptional<z.ZodNumber>;
415
396
  blocking: z.ZodOptional<z.ZodBoolean>;
416
397
  matcher: z.ZodOptional<z.ZodString>;
417
398
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
418
- }, z.core.$strip>>>>;
399
+ }, z.core.$strict>>>>;
419
400
  modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
420
401
  description: z.ZodOptional<z.ZodString>;
421
402
  model: z.ZodOptional<z.ZodString>;
@@ -431,16 +412,16 @@ export declare const agentProfileSchema: z.ZodObject<{
431
412
  deny: "deny";
432
413
  }>>]>>>;
433
414
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
434
- }, z.core.$strip>>>;
415
+ }, z.core.$strict>>>;
435
416
  confidential: z.ZodOptional<z.ZodObject<{
436
417
  tee: z.ZodOptional<z.ZodString>;
437
418
  attestationNonce: z.ZodOptional<z.ZodString>;
438
419
  sealed: z.ZodOptional<z.ZodBoolean>;
439
420
  attestationRefresh: z.ZodOptional<z.ZodBoolean>;
440
- }, z.core.$strip>>;
421
+ }, z.core.$strict>>;
441
422
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
442
423
  extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodUndefined]>>>;
443
- }, z.core.$strip>;
424
+ }, z.core.$strict>;
444
425
  export declare const agentProfileDiffSchema: z.ZodType<AgentProfileDiff>;
445
426
  /**
446
427
  * A registered capability: a stable id paired with its canonical