@tangle-network/agent-interface 0.36.0 → 0.38.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.
- package/README.md +2 -2
- package/dist/agent-candidate-artifact-schema.d.ts +504 -0
- package/dist/agent-candidate-artifact-schema.js +16 -1
- package/dist/agent-candidate-execution-plan-schema.d.ts +50 -27
- package/dist/agent-candidate-execution-plan-schema.js +4 -16
- package/dist/agent-candidate-profile-schema.d.ts +341 -25
- package/dist/agent-candidate-promotion-schema.d.ts +2320 -287
- package/dist/agent-candidate-receipt-schema.d.ts +50 -27
- package/dist/agent-candidate-schema-common.js +1 -1
- package/dist/agent-candidate-schema.d.ts +341 -25
- package/dist/agent-candidate.d.ts +7 -8
- package/dist/agent-execution-preparation.d.ts +366 -0
- package/dist/agent-execution-preparation.js +793 -0
- package/dist/agent-improvement-source.d.ts +61 -3
- package/dist/agent-improvement-source.js +122 -8
- package/dist/agent-profile-activation.d.ts +41 -0
- package/dist/agent-profile-activation.js +24 -0
- package/dist/agent-profile-improvement-schema.d.ts +48 -4
- package/dist/agent-profile-materialization.d.ts +34 -0
- package/dist/agent-profile-materialization.js +243 -0
- package/dist/agent-profile.d.ts +44 -7
- package/dist/agent-profile.js +39 -2
- package/dist/agent-workspace-lease.d.ts +138 -0
- package/dist/agent-workspace-lease.js +203 -0
- package/dist/harness-capabilities.d.ts +1 -1
- package/dist/harness-capabilities.js +2 -9
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/profile-schema.d.ts +142 -84
- package/dist/profile-schema.js +152 -41
- package/package.json +3 -1
|
@@ -191,11 +191,10 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
191
191
|
}, z.core.$strict>;
|
|
192
192
|
}, z.core.$strict>;
|
|
193
193
|
profileActivation: z.ZodObject<{
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
material: z.ZodType<{
|
|
194
|
+
profilePlan: z.ZodType<{
|
|
195
|
+
kind: "agent-profile-workspace-plan";
|
|
196
|
+
digest: `sha256:${string}`;
|
|
197
|
+
material: {
|
|
199
198
|
sourceProfileDigest: `sha256:${string}`;
|
|
200
199
|
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
|
|
201
200
|
files: {
|
|
@@ -219,7 +218,30 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
219
218
|
kind: "public";
|
|
220
219
|
value: string;
|
|
221
220
|
} | undefined;
|
|
222
|
-
}
|
|
221
|
+
};
|
|
222
|
+
artifact: {
|
|
223
|
+
locator: {
|
|
224
|
+
kind: "s3";
|
|
225
|
+
bucket: string;
|
|
226
|
+
key: string;
|
|
227
|
+
region?: string | undefined;
|
|
228
|
+
} | {
|
|
229
|
+
kind: "ipfs";
|
|
230
|
+
cid: string;
|
|
231
|
+
path?: string | undefined;
|
|
232
|
+
};
|
|
233
|
+
sha256: `sha256:${string}`;
|
|
234
|
+
byteLength: number;
|
|
235
|
+
} | {
|
|
236
|
+
encoding: "base64";
|
|
237
|
+
content: string;
|
|
238
|
+
sha256: `sha256:${string}`;
|
|
239
|
+
byteLength: number;
|
|
240
|
+
};
|
|
241
|
+
}, unknown, z.core.$ZodTypeInternals<{
|
|
242
|
+
kind: "agent-profile-workspace-plan";
|
|
243
|
+
digest: `sha256:${string}`;
|
|
244
|
+
material: {
|
|
223
245
|
sourceProfileDigest: `sha256:${string}`;
|
|
224
246
|
harness: "claude-code" | "nanoclaw" | "codex" | "opencode" | "kimi-code" | "pi" | "gemini" | "hermes" | "openclaw" | "amp" | "factory-droids" | "acp" | "cli-base";
|
|
225
247
|
files: {
|
|
@@ -243,33 +265,34 @@ export declare const agentCandidateMaterializationReceiptSchema: z.ZodObject<{
|
|
|
243
265
|
kind: "public";
|
|
244
266
|
value: string;
|
|
245
267
|
} | undefined;
|
|
246
|
-
}
|
|
247
|
-
artifact:
|
|
248
|
-
locator:
|
|
249
|
-
kind:
|
|
250
|
-
bucket:
|
|
251
|
-
key:
|
|
252
|
-
region
|
|
253
|
-
}
|
|
254
|
-
kind:
|
|
255
|
-
cid:
|
|
256
|
-
path
|
|
257
|
-
}
|
|
258
|
-
sha256:
|
|
259
|
-
byteLength:
|
|
260
|
-
}
|
|
261
|
-
encoding:
|
|
262
|
-
content:
|
|
263
|
-
sha256:
|
|
264
|
-
byteLength:
|
|
265
|
-
}
|
|
266
|
-
},
|
|
268
|
+
};
|
|
269
|
+
artifact: {
|
|
270
|
+
locator: {
|
|
271
|
+
kind: "s3";
|
|
272
|
+
bucket: string;
|
|
273
|
+
key: string;
|
|
274
|
+
region?: string | undefined;
|
|
275
|
+
} | {
|
|
276
|
+
kind: "ipfs";
|
|
277
|
+
cid: string;
|
|
278
|
+
path?: string | undefined;
|
|
279
|
+
};
|
|
280
|
+
sha256: `sha256:${string}`;
|
|
281
|
+
byteLength: number;
|
|
282
|
+
} | {
|
|
283
|
+
encoding: "base64";
|
|
284
|
+
content: string;
|
|
285
|
+
sha256: `sha256:${string}`;
|
|
286
|
+
byteLength: number;
|
|
287
|
+
};
|
|
288
|
+
}, unknown>>;
|
|
267
289
|
files: z.ZodArray<z.ZodObject<{
|
|
268
290
|
path: z.ZodString;
|
|
269
291
|
mode: z.ZodNumber;
|
|
270
292
|
content: z.ZodString;
|
|
271
293
|
}, z.core.$strict>>;
|
|
272
294
|
digest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
295
|
+
kind: z.ZodLiteral<"agent-candidate-profile-activation">;
|
|
273
296
|
}, z.core.$strict>;
|
|
274
297
|
executionPlan: z.ZodObject<{
|
|
275
298
|
kind: z.ZodLiteral<"agent-candidate-execution-plan">;
|
|
@@ -7,7 +7,7 @@ const headerNamePattern = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
|
7
7
|
const mediaTypePattern = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/;
|
|
8
8
|
const githubComponentPattern = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$/;
|
|
9
9
|
const secretNamePattern = /(?:^|[_-])(?:api[_-]?key|access[_-]?key|private[_-]?key|token|secret|password|credentials?|authorization|cookie|database[_-]?url|dsn|pat)(?:[_-]|$)/i;
|
|
10
|
-
const obviousSecretValuePattern = /(?:\b
|
|
10
|
+
const obviousSecretValuePattern = /(?:\bsk[-_][-_A-Za-z0-9]{10,}\b|\bgh[pousr]_[A-Za-z0-9]{12,}\b|\bgithub_pat_[A-Za-z0-9_]{12,}\b|\bAKIA[A-Z0-9]{12,}\b|-----BEGIN [A-Z ]*PRIVATE KEY-----|\bBearer\s+\S+)/;
|
|
11
11
|
const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
|
|
12
12
|
const reservedWorkspaceRoots = new Set([".git", ".sidecar"]);
|
|
13
13
|
const shellNames = new Set([
|
|
@@ -52,25 +52,13 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
52
52
|
allow: "allow";
|
|
53
53
|
ask: "ask";
|
|
54
54
|
deny: "deny";
|
|
55
|
-
}>, z.
|
|
56
|
-
allow: "allow";
|
|
57
|
-
ask: "ask";
|
|
58
|
-
deny: "deny";
|
|
59
|
-
}>>]>>>;
|
|
55
|
+
}>, z.ZodType<Record<string, "allow" | "ask" | "deny">, unknown, z.core.$ZodTypeInternals<Record<string, "allow" | "ask" | "deny">, unknown>>]>>>;
|
|
60
56
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
61
57
|
mcp: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./agent-candidate.js").AgentCandidateMcpServer, unknown, z.core.$ZodTypeInternals<import("./agent-candidate.js").AgentCandidateMcpServer, unknown>>>>;
|
|
62
58
|
subagents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
63
59
|
prompt: z.ZodOptional<z.ZodString>;
|
|
64
|
-
permissions: z.ZodOptional<z.
|
|
65
|
-
|
|
66
|
-
ask: "ask";
|
|
67
|
-
deny: "deny";
|
|
68
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
69
|
-
allow: "allow";
|
|
70
|
-
ask: "ask";
|
|
71
|
-
deny: "deny";
|
|
72
|
-
}>>]>>>;
|
|
73
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
60
|
+
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>>>;
|
|
61
|
+
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
74
62
|
description: z.ZodOptional<z.ZodString>;
|
|
75
63
|
model: z.ZodOptional<z.ZodString>;
|
|
76
64
|
maxSteps: z.ZodOptional<z.ZodNumber>;
|
|
@@ -84,6 +72,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
84
72
|
content: z.ZodString;
|
|
85
73
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
86
74
|
byteLength: z.ZodNumber;
|
|
75
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
kind: z.ZodString;
|
|
77
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
78
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
79
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
80
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
|
+
kind: z.ZodLiteral<"spdx">;
|
|
82
|
+
expression: z.ZodString;
|
|
83
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"custom">;
|
|
85
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
86
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
87
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
88
|
+
}, z.core.$strict>], "kind">>;
|
|
89
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
92
|
+
kind: z.ZodEnum<{
|
|
93
|
+
normalization: "normalization";
|
|
94
|
+
transformation: "transformation";
|
|
95
|
+
}>;
|
|
96
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
97
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
98
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
99
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
100
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
101
|
+
}, z.core.$strict>>>;
|
|
102
|
+
}, z.core.$strict>>;
|
|
87
103
|
}, z.core.$strict>, z.ZodObject<{
|
|
88
104
|
kind: z.ZodLiteral<"github">;
|
|
89
105
|
repository: z.ZodObject<{
|
|
@@ -96,6 +112,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
96
112
|
name: z.ZodOptional<z.ZodString>;
|
|
97
113
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
98
114
|
byteLength: z.ZodNumber;
|
|
115
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
kind: z.ZodString;
|
|
117
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
118
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
119
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
120
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
121
|
+
kind: z.ZodLiteral<"spdx">;
|
|
122
|
+
expression: z.ZodString;
|
|
123
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
+
kind: z.ZodLiteral<"custom">;
|
|
125
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
126
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
127
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
128
|
+
}, z.core.$strict>], "kind">>;
|
|
129
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
131
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
132
|
+
kind: z.ZodEnum<{
|
|
133
|
+
normalization: "normalization";
|
|
134
|
+
transformation: "transformation";
|
|
135
|
+
}>;
|
|
136
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
137
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
138
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
139
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
140
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
141
|
+
}, z.core.$strict>>>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
99
143
|
}, z.core.$strict>], "kind">;
|
|
100
144
|
executable: z.ZodOptional<z.ZodBoolean>;
|
|
101
145
|
}, z.core.$strict>>>;
|
|
@@ -105,6 +149,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
105
149
|
content: z.ZodString;
|
|
106
150
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
107
151
|
byteLength: z.ZodNumber;
|
|
152
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
153
|
+
kind: z.ZodString;
|
|
154
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
155
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
156
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
157
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
158
|
+
kind: z.ZodLiteral<"spdx">;
|
|
159
|
+
expression: z.ZodString;
|
|
160
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"custom">;
|
|
162
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
163
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
164
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
165
|
+
}, z.core.$strict>], "kind">>;
|
|
166
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
169
|
+
kind: z.ZodEnum<{
|
|
170
|
+
normalization: "normalization";
|
|
171
|
+
transformation: "transformation";
|
|
172
|
+
}>;
|
|
173
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
174
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
175
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
176
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
177
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
178
|
+
}, z.core.$strict>>>;
|
|
179
|
+
}, z.core.$strict>>;
|
|
108
180
|
}, z.core.$strict>, z.ZodObject<{
|
|
109
181
|
kind: z.ZodLiteral<"github">;
|
|
110
182
|
repository: z.ZodObject<{
|
|
@@ -117,6 +189,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
117
189
|
name: z.ZodOptional<z.ZodString>;
|
|
118
190
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
119
191
|
byteLength: z.ZodNumber;
|
|
192
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
kind: z.ZodString;
|
|
194
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
195
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
196
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
197
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
198
|
+
kind: z.ZodLiteral<"spdx">;
|
|
199
|
+
expression: z.ZodString;
|
|
200
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
+
kind: z.ZodLiteral<"custom">;
|
|
202
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
203
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
204
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
205
|
+
}, z.core.$strict>], "kind">>;
|
|
206
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
207
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
208
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
209
|
+
kind: z.ZodEnum<{
|
|
210
|
+
normalization: "normalization";
|
|
211
|
+
transformation: "transformation";
|
|
212
|
+
}>;
|
|
213
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
214
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
215
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
216
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
217
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
218
|
+
}, z.core.$strict>>>;
|
|
219
|
+
}, z.core.$strict>>;
|
|
120
220
|
}, z.core.$strict>], "kind">>>;
|
|
121
221
|
skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
122
222
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -124,6 +224,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
124
224
|
content: z.ZodString;
|
|
125
225
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
126
226
|
byteLength: z.ZodNumber;
|
|
227
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
kind: z.ZodString;
|
|
229
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
230
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
231
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
232
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
233
|
+
kind: z.ZodLiteral<"spdx">;
|
|
234
|
+
expression: z.ZodString;
|
|
235
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
236
|
+
kind: z.ZodLiteral<"custom">;
|
|
237
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
238
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
239
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
240
|
+
}, z.core.$strict>], "kind">>;
|
|
241
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
243
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
244
|
+
kind: z.ZodEnum<{
|
|
245
|
+
normalization: "normalization";
|
|
246
|
+
transformation: "transformation";
|
|
247
|
+
}>;
|
|
248
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
249
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
250
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
251
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
252
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
253
|
+
}, z.core.$strict>>>;
|
|
254
|
+
}, z.core.$strict>>;
|
|
127
255
|
}, z.core.$strict>, z.ZodObject<{
|
|
128
256
|
kind: z.ZodLiteral<"github">;
|
|
129
257
|
repository: z.ZodObject<{
|
|
@@ -136,6 +264,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
136
264
|
name: z.ZodOptional<z.ZodString>;
|
|
137
265
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
138
266
|
byteLength: z.ZodNumber;
|
|
267
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
kind: z.ZodString;
|
|
269
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
270
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
271
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
272
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
273
|
+
kind: z.ZodLiteral<"spdx">;
|
|
274
|
+
expression: z.ZodString;
|
|
275
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
276
|
+
kind: z.ZodLiteral<"custom">;
|
|
277
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
278
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
279
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
280
|
+
}, z.core.$strict>], "kind">>;
|
|
281
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
282
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
284
|
+
kind: z.ZodEnum<{
|
|
285
|
+
normalization: "normalization";
|
|
286
|
+
transformation: "transformation";
|
|
287
|
+
}>;
|
|
288
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
289
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
290
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
291
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
292
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
293
|
+
}, z.core.$strict>>>;
|
|
294
|
+
}, z.core.$strict>>;
|
|
139
295
|
}, z.core.$strict>], "kind">>>;
|
|
140
296
|
agents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
141
297
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -143,6 +299,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
143
299
|
content: z.ZodString;
|
|
144
300
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
145
301
|
byteLength: z.ZodNumber;
|
|
302
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
kind: z.ZodString;
|
|
304
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
305
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
306
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
307
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
308
|
+
kind: z.ZodLiteral<"spdx">;
|
|
309
|
+
expression: z.ZodString;
|
|
310
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
311
|
+
kind: z.ZodLiteral<"custom">;
|
|
312
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
313
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
314
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
315
|
+
}, z.core.$strict>], "kind">>;
|
|
316
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
317
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
318
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
|
+
kind: z.ZodEnum<{
|
|
320
|
+
normalization: "normalization";
|
|
321
|
+
transformation: "transformation";
|
|
322
|
+
}>;
|
|
323
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
324
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
325
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
326
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
327
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
328
|
+
}, z.core.$strict>>>;
|
|
329
|
+
}, z.core.$strict>>;
|
|
146
330
|
}, z.core.$strict>, z.ZodObject<{
|
|
147
331
|
kind: z.ZodLiteral<"github">;
|
|
148
332
|
repository: z.ZodObject<{
|
|
@@ -155,6 +339,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
155
339
|
name: z.ZodOptional<z.ZodString>;
|
|
156
340
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
157
341
|
byteLength: z.ZodNumber;
|
|
342
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
343
|
+
kind: z.ZodString;
|
|
344
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
345
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
346
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
347
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
348
|
+
kind: z.ZodLiteral<"spdx">;
|
|
349
|
+
expression: z.ZodString;
|
|
350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
+
kind: z.ZodLiteral<"custom">;
|
|
352
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
353
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
354
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
355
|
+
}, z.core.$strict>], "kind">>;
|
|
356
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
357
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
358
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
359
|
+
kind: z.ZodEnum<{
|
|
360
|
+
normalization: "normalization";
|
|
361
|
+
transformation: "transformation";
|
|
362
|
+
}>;
|
|
363
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
364
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
365
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
366
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
367
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
368
|
+
}, z.core.$strict>>>;
|
|
369
|
+
}, z.core.$strict>>;
|
|
158
370
|
}, z.core.$strict>], "kind">>>;
|
|
159
371
|
commands: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
160
372
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -162,6 +374,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
162
374
|
content: z.ZodString;
|
|
163
375
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
164
376
|
byteLength: z.ZodNumber;
|
|
377
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
kind: z.ZodString;
|
|
379
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
380
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
381
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
382
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
383
|
+
kind: z.ZodLiteral<"spdx">;
|
|
384
|
+
expression: z.ZodString;
|
|
385
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
386
|
+
kind: z.ZodLiteral<"custom">;
|
|
387
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
388
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
389
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
390
|
+
}, z.core.$strict>], "kind">>;
|
|
391
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
392
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
393
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
394
|
+
kind: z.ZodEnum<{
|
|
395
|
+
normalization: "normalization";
|
|
396
|
+
transformation: "transformation";
|
|
397
|
+
}>;
|
|
398
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
399
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
400
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
401
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
402
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
403
|
+
}, z.core.$strict>>>;
|
|
404
|
+
}, z.core.$strict>>;
|
|
165
405
|
}, z.core.$strict>, z.ZodObject<{
|
|
166
406
|
kind: z.ZodLiteral<"github">;
|
|
167
407
|
repository: z.ZodObject<{
|
|
@@ -174,6 +414,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
174
414
|
name: z.ZodOptional<z.ZodString>;
|
|
175
415
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
176
416
|
byteLength: z.ZodNumber;
|
|
417
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
418
|
+
kind: z.ZodString;
|
|
419
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
420
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
421
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
422
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
423
|
+
kind: z.ZodLiteral<"spdx">;
|
|
424
|
+
expression: z.ZodString;
|
|
425
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
426
|
+
kind: z.ZodLiteral<"custom">;
|
|
427
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
428
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
429
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
430
|
+
}, z.core.$strict>], "kind">>;
|
|
431
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
432
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
433
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
434
|
+
kind: z.ZodEnum<{
|
|
435
|
+
normalization: "normalization";
|
|
436
|
+
transformation: "transformation";
|
|
437
|
+
}>;
|
|
438
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
439
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
440
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
441
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
442
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
443
|
+
}, z.core.$strict>>>;
|
|
444
|
+
}, z.core.$strict>>;
|
|
177
445
|
}, z.core.$strict>], "kind">>>;
|
|
178
446
|
instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
179
447
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -181,6 +449,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
181
449
|
content: z.ZodString;
|
|
182
450
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
183
451
|
byteLength: z.ZodNumber;
|
|
452
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
453
|
+
kind: z.ZodString;
|
|
454
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
455
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
456
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
457
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
|
+
kind: z.ZodLiteral<"spdx">;
|
|
459
|
+
expression: z.ZodString;
|
|
460
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
461
|
+
kind: z.ZodLiteral<"custom">;
|
|
462
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
463
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
464
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
465
|
+
}, z.core.$strict>], "kind">>;
|
|
466
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
467
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
468
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
469
|
+
kind: z.ZodEnum<{
|
|
470
|
+
normalization: "normalization";
|
|
471
|
+
transformation: "transformation";
|
|
472
|
+
}>;
|
|
473
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
474
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
475
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
476
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
477
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
478
|
+
}, z.core.$strict>>>;
|
|
479
|
+
}, z.core.$strict>>;
|
|
184
480
|
}, z.core.$strict>, z.ZodObject<{
|
|
185
481
|
kind: z.ZodLiteral<"github">;
|
|
186
482
|
repository: z.ZodObject<{
|
|
@@ -193,6 +489,34 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
193
489
|
name: z.ZodOptional<z.ZodString>;
|
|
194
490
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
195
491
|
byteLength: z.ZodNumber;
|
|
492
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
493
|
+
kind: z.ZodString;
|
|
494
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
495
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
496
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
497
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
498
|
+
kind: z.ZodLiteral<"spdx">;
|
|
499
|
+
expression: z.ZodString;
|
|
500
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
501
|
+
kind: z.ZodLiteral<"custom">;
|
|
502
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
503
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
504
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
505
|
+
}, z.core.$strict>], "kind">>;
|
|
506
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
507
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
508
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
509
|
+
kind: z.ZodEnum<{
|
|
510
|
+
normalization: "normalization";
|
|
511
|
+
transformation: "transformation";
|
|
512
|
+
}>;
|
|
513
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
514
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
515
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
516
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
517
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
518
|
+
}, z.core.$strict>>>;
|
|
519
|
+
}, z.core.$strict>>;
|
|
196
520
|
}, z.core.$strict>], "kind">]>>;
|
|
197
521
|
failOnError: z.ZodLiteral<true>;
|
|
198
522
|
}, z.core.$strict>>;
|
|
@@ -212,16 +536,8 @@ export declare const agentCandidateBundleSchema: z.ZodObject<{
|
|
|
212
536
|
}, z.core.$strict>>>>;
|
|
213
537
|
modes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
214
538
|
prompt: z.ZodOptional<z.ZodString>;
|
|
215
|
-
permissions: z.ZodOptional<z.
|
|
216
|
-
|
|
217
|
-
ask: "ask";
|
|
218
|
-
deny: "deny";
|
|
219
|
-
}>, z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
220
|
-
allow: "allow";
|
|
221
|
-
ask: "ask";
|
|
222
|
-
deny: "deny";
|
|
223
|
-
}>>]>>>;
|
|
224
|
-
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
539
|
+
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>>>;
|
|
540
|
+
tools: z.ZodOptional<z.ZodType<Record<string, boolean>, unknown, z.core.$ZodTypeInternals<Record<string, boolean>, unknown>>>;
|
|
225
541
|
description: z.ZodOptional<z.ZodString>;
|
|
226
542
|
model: z.ZodOptional<z.ZodString>;
|
|
227
543
|
}, z.core.$strict>>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AgentProfile, AgentProfileFileMount, AgentProfileHookCommand, AgentProfileMode, AgentProfileModelHints, AgentProfileResources, AgentSubagentProfile, ReasoningEffort } from "./agent-profile.js";
|
|
2
|
+
import type { AgentProfileActivationEvidence } from "./agent-profile-activation.js";
|
|
2
3
|
import type { HarnessType } from "./harness.js";
|
|
3
4
|
import type { AgentProfileImprovementExecutionRef, AgentProfileImprovementMeasuredComparison } from "./agent-profile-improvement.js";
|
|
5
|
+
import type { AgentImprovementSource } from "./agent-improvement-source.js";
|
|
4
6
|
/** Full SHA-256 digest with an explicit algorithm prefix. */
|
|
5
7
|
export type Sha256Digest = `sha256:${string}`;
|
|
6
8
|
/** RFC 8785 JSON Canonicalization Scheme followed by SHA-256. */
|
|
@@ -55,6 +57,8 @@ export interface AgentCandidateInlineResource {
|
|
|
55
57
|
content: string;
|
|
56
58
|
sha256: Sha256Digest;
|
|
57
59
|
byteLength: number;
|
|
60
|
+
/** Optional immutable origin, license obligations, and import history. */
|
|
61
|
+
source?: AgentImprovementSource;
|
|
58
62
|
}
|
|
59
63
|
/** GitHub content pinned to a full Git object id and expected content digest. */
|
|
60
64
|
export interface AgentCandidateGitHubResource {
|
|
@@ -65,6 +69,8 @@ export interface AgentCandidateGitHubResource {
|
|
|
65
69
|
name?: string;
|
|
66
70
|
sha256: Sha256Digest;
|
|
67
71
|
byteLength: number;
|
|
72
|
+
/** Optional immutable origin, license obligations, and import history. */
|
|
73
|
+
source?: AgentImprovementSource;
|
|
68
74
|
}
|
|
69
75
|
export type AgentCandidateResourceRef = AgentCandidateInlineResource | AgentCandidateGitHubResource;
|
|
70
76
|
export interface AgentCandidateFileMount extends Omit<AgentProfileFileMount, "resource"> {
|
|
@@ -594,15 +600,8 @@ export interface AgentCandidateProfilePlanEvidence {
|
|
|
594
600
|
artifact: AgentCandidateCapturedArtifact;
|
|
595
601
|
}
|
|
596
602
|
/** Exact native profile files and the canonical plan that activated them. */
|
|
597
|
-
export interface AgentCandidateProfileActivation {
|
|
603
|
+
export interface AgentCandidateProfileActivation extends AgentProfileActivationEvidence<AgentCandidateProfilePlanEvidence> {
|
|
598
604
|
kind: "agent-candidate-profile-activation";
|
|
599
|
-
profilePlan: AgentCandidateProfilePlanEvidence;
|
|
600
|
-
files: Array<{
|
|
601
|
-
path: string;
|
|
602
|
-
mode: number;
|
|
603
|
-
content: string;
|
|
604
|
-
}>;
|
|
605
|
-
digest: Sha256Digest;
|
|
606
605
|
}
|
|
607
606
|
export interface AgentCandidateExecutionPlanEvidence {
|
|
608
607
|
kind: "agent-candidate-execution-plan";
|