@tangle-network/agent-interface 0.36.0 → 0.37.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-profile-schema.d.ts +336 -0
- package/dist/agent-candidate-promotion-schema.d.ts +2040 -2
- package/dist/agent-candidate-schema-common.js +1 -1
- package/dist/agent-candidate-schema.d.ts +336 -0
- package/dist/agent-candidate.d.ts +5 -0
- package/dist/agent-improvement-source.d.ts +61 -3
- package/dist/agent-improvement-source.js +122 -8
- package/dist/agent-profile-improvement-schema.d.ts +48 -4
- package/package.json +3 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { agentCandidateGitHubRepositorySchema, gitObjectSchema, isSafeRelativePath, isWellFormedUnicode, looksLikeCredential, sha256DigestSchema, } from "./agent-candidate-schema-common.js";
|
|
3
|
+
import { agentImprovementSourceSchema } from "./agent-improvement-source.js";
|
|
3
4
|
const base64Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4
5
|
const s3BucketPattern = /^(?!\d+\.\d+\.\d+\.\d+$)[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/;
|
|
5
6
|
const awsRegionPattern = /^[a-z]{2}(?:-gov)?-[a-z]+-\d$/;
|
|
@@ -156,6 +157,16 @@ export function validateEmbeddedArtifact(artifact, ctx) {
|
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
159
|
}
|
|
160
|
+
function validateResourceSourceDigest(resource, ctx) {
|
|
161
|
+
if (resource.source !== undefined &&
|
|
162
|
+
resource.source.sourceDigest !== resource.sha256) {
|
|
163
|
+
ctx.addIssue({
|
|
164
|
+
code: "custom",
|
|
165
|
+
path: ["source", "sourceDigest"],
|
|
166
|
+
message: "resource source digest must equal the frozen resource digest",
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
}
|
|
159
170
|
export const agentCandidateInlineResourceSchema = z
|
|
160
171
|
.object({
|
|
161
172
|
kind: z.literal("inline"),
|
|
@@ -163,6 +174,7 @@ export const agentCandidateInlineResourceSchema = z
|
|
|
163
174
|
content: z.string().refine(isWellFormedUnicode),
|
|
164
175
|
sha256: sha256DigestSchema,
|
|
165
176
|
byteLength: z.number().int().nonnegative(),
|
|
177
|
+
source: agentImprovementSourceSchema.optional(),
|
|
166
178
|
})
|
|
167
179
|
.strict()
|
|
168
180
|
.superRefine((resource, ctx) => {
|
|
@@ -173,6 +185,7 @@ export const agentCandidateInlineResourceSchema = z
|
|
|
173
185
|
message: "byteLength must match UTF-8 content",
|
|
174
186
|
});
|
|
175
187
|
}
|
|
188
|
+
validateResourceSourceDigest(resource, ctx);
|
|
176
189
|
});
|
|
177
190
|
export const agentCandidateGitHubResourceSchema = z
|
|
178
191
|
.object({
|
|
@@ -185,8 +198,10 @@ export const agentCandidateGitHubResourceSchema = z
|
|
|
185
198
|
name: z.string().min(1).refine(isWellFormedUnicode).optional(),
|
|
186
199
|
sha256: sha256DigestSchema,
|
|
187
200
|
byteLength: z.number().int().nonnegative(),
|
|
201
|
+
source: agentImprovementSourceSchema.optional(),
|
|
188
202
|
})
|
|
189
|
-
.strict()
|
|
203
|
+
.strict()
|
|
204
|
+
.superRefine(validateResourceSourceDigest);
|
|
190
205
|
export const agentCandidateResourceRefSchema = z.discriminatedUnion("kind", [
|
|
191
206
|
agentCandidateInlineResourceSchema,
|
|
192
207
|
agentCandidateGitHubResourceSchema,
|
|
@@ -89,6 +89,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
89
89
|
content: z.ZodString;
|
|
90
90
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
91
91
|
byteLength: z.ZodNumber;
|
|
92
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
kind: z.ZodString;
|
|
94
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
95
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
96
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
97
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"spdx">;
|
|
99
|
+
expression: z.ZodString;
|
|
100
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
101
|
+
kind: z.ZodLiteral<"custom">;
|
|
102
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
103
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
104
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
105
|
+
}, z.core.$strict>], "kind">>;
|
|
106
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
|
+
kind: z.ZodEnum<{
|
|
110
|
+
normalization: "normalization";
|
|
111
|
+
transformation: "transformation";
|
|
112
|
+
}>;
|
|
113
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
114
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
115
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
116
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
117
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
118
|
+
}, z.core.$strict>>>;
|
|
119
|
+
}, z.core.$strict>>;
|
|
92
120
|
}, z.core.$strict>, z.ZodObject<{
|
|
93
121
|
kind: z.ZodLiteral<"github">;
|
|
94
122
|
repository: z.ZodObject<{
|
|
@@ -101,6 +129,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
101
129
|
name: z.ZodOptional<z.ZodString>;
|
|
102
130
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
103
131
|
byteLength: z.ZodNumber;
|
|
132
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
kind: z.ZodString;
|
|
134
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
135
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
136
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
137
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
+
kind: z.ZodLiteral<"spdx">;
|
|
139
|
+
expression: z.ZodString;
|
|
140
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
141
|
+
kind: z.ZodLiteral<"custom">;
|
|
142
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
143
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
144
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
145
|
+
}, z.core.$strict>], "kind">>;
|
|
146
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
147
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
148
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
149
|
+
kind: z.ZodEnum<{
|
|
150
|
+
normalization: "normalization";
|
|
151
|
+
transformation: "transformation";
|
|
152
|
+
}>;
|
|
153
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
154
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
155
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
156
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
157
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
158
|
+
}, z.core.$strict>>>;
|
|
159
|
+
}, z.core.$strict>>;
|
|
104
160
|
}, z.core.$strict>], "kind">;
|
|
105
161
|
executable: z.ZodOptional<z.ZodBoolean>;
|
|
106
162
|
}, z.core.$strict>>>;
|
|
@@ -110,6 +166,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
110
166
|
content: z.ZodString;
|
|
111
167
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
112
168
|
byteLength: z.ZodNumber;
|
|
169
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
kind: z.ZodString;
|
|
171
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
172
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
173
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
174
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
175
|
+
kind: z.ZodLiteral<"spdx">;
|
|
176
|
+
expression: z.ZodString;
|
|
177
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
178
|
+
kind: z.ZodLiteral<"custom">;
|
|
179
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
180
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
181
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
182
|
+
}, z.core.$strict>], "kind">>;
|
|
183
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
184
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
185
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
186
|
+
kind: z.ZodEnum<{
|
|
187
|
+
normalization: "normalization";
|
|
188
|
+
transformation: "transformation";
|
|
189
|
+
}>;
|
|
190
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
191
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
192
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
193
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
194
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
195
|
+
}, z.core.$strict>>>;
|
|
196
|
+
}, z.core.$strict>>;
|
|
113
197
|
}, z.core.$strict>, z.ZodObject<{
|
|
114
198
|
kind: z.ZodLiteral<"github">;
|
|
115
199
|
repository: z.ZodObject<{
|
|
@@ -122,6 +206,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
122
206
|
name: z.ZodOptional<z.ZodString>;
|
|
123
207
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
124
208
|
byteLength: z.ZodNumber;
|
|
209
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
210
|
+
kind: z.ZodString;
|
|
211
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
212
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
213
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
214
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
215
|
+
kind: z.ZodLiteral<"spdx">;
|
|
216
|
+
expression: z.ZodString;
|
|
217
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
218
|
+
kind: z.ZodLiteral<"custom">;
|
|
219
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
220
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
221
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
222
|
+
}, z.core.$strict>], "kind">>;
|
|
223
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
224
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
225
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
226
|
+
kind: z.ZodEnum<{
|
|
227
|
+
normalization: "normalization";
|
|
228
|
+
transformation: "transformation";
|
|
229
|
+
}>;
|
|
230
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
231
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
232
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
233
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
234
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
235
|
+
}, z.core.$strict>>>;
|
|
236
|
+
}, z.core.$strict>>;
|
|
125
237
|
}, z.core.$strict>], "kind">>>;
|
|
126
238
|
skills: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
127
239
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -129,6 +241,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
129
241
|
content: z.ZodString;
|
|
130
242
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
131
243
|
byteLength: z.ZodNumber;
|
|
244
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
kind: z.ZodString;
|
|
246
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
247
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
248
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
249
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
250
|
+
kind: z.ZodLiteral<"spdx">;
|
|
251
|
+
expression: z.ZodString;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
kind: z.ZodLiteral<"custom">;
|
|
254
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
255
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
256
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
257
|
+
}, z.core.$strict>], "kind">>;
|
|
258
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
259
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
260
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
261
|
+
kind: z.ZodEnum<{
|
|
262
|
+
normalization: "normalization";
|
|
263
|
+
transformation: "transformation";
|
|
264
|
+
}>;
|
|
265
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
266
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
267
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
268
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
269
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
270
|
+
}, z.core.$strict>>>;
|
|
271
|
+
}, z.core.$strict>>;
|
|
132
272
|
}, z.core.$strict>, z.ZodObject<{
|
|
133
273
|
kind: z.ZodLiteral<"github">;
|
|
134
274
|
repository: z.ZodObject<{
|
|
@@ -141,6 +281,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
141
281
|
name: z.ZodOptional<z.ZodString>;
|
|
142
282
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
143
283
|
byteLength: z.ZodNumber;
|
|
284
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
kind: z.ZodString;
|
|
286
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
287
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
288
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
289
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
290
|
+
kind: z.ZodLiteral<"spdx">;
|
|
291
|
+
expression: z.ZodString;
|
|
292
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
293
|
+
kind: z.ZodLiteral<"custom">;
|
|
294
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
295
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
296
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
297
|
+
}, z.core.$strict>], "kind">>;
|
|
298
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
299
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
300
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
301
|
+
kind: z.ZodEnum<{
|
|
302
|
+
normalization: "normalization";
|
|
303
|
+
transformation: "transformation";
|
|
304
|
+
}>;
|
|
305
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
306
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
307
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
308
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
309
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
310
|
+
}, z.core.$strict>>>;
|
|
311
|
+
}, z.core.$strict>>;
|
|
144
312
|
}, z.core.$strict>], "kind">>>;
|
|
145
313
|
agents: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
146
314
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -148,6 +316,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
148
316
|
content: z.ZodString;
|
|
149
317
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
150
318
|
byteLength: z.ZodNumber;
|
|
319
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
320
|
+
kind: z.ZodString;
|
|
321
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
322
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
323
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
324
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
325
|
+
kind: z.ZodLiteral<"spdx">;
|
|
326
|
+
expression: z.ZodString;
|
|
327
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
328
|
+
kind: z.ZodLiteral<"custom">;
|
|
329
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
330
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
331
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
332
|
+
}, z.core.$strict>], "kind">>;
|
|
333
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
334
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
335
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
|
+
kind: z.ZodEnum<{
|
|
337
|
+
normalization: "normalization";
|
|
338
|
+
transformation: "transformation";
|
|
339
|
+
}>;
|
|
340
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
341
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
342
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
343
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
344
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
345
|
+
}, z.core.$strict>>>;
|
|
346
|
+
}, z.core.$strict>>;
|
|
151
347
|
}, z.core.$strict>, z.ZodObject<{
|
|
152
348
|
kind: z.ZodLiteral<"github">;
|
|
153
349
|
repository: z.ZodObject<{
|
|
@@ -160,6 +356,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
160
356
|
name: z.ZodOptional<z.ZodString>;
|
|
161
357
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
162
358
|
byteLength: z.ZodNumber;
|
|
359
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
360
|
+
kind: z.ZodString;
|
|
361
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
362
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
363
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
364
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
365
|
+
kind: z.ZodLiteral<"spdx">;
|
|
366
|
+
expression: z.ZodString;
|
|
367
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
368
|
+
kind: z.ZodLiteral<"custom">;
|
|
369
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
370
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
371
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
372
|
+
}, z.core.$strict>], "kind">>;
|
|
373
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
374
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
375
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
376
|
+
kind: z.ZodEnum<{
|
|
377
|
+
normalization: "normalization";
|
|
378
|
+
transformation: "transformation";
|
|
379
|
+
}>;
|
|
380
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
381
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
382
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
383
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
384
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
385
|
+
}, z.core.$strict>>>;
|
|
386
|
+
}, z.core.$strict>>;
|
|
163
387
|
}, z.core.$strict>], "kind">>>;
|
|
164
388
|
commands: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
165
389
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -167,6 +391,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
167
391
|
content: z.ZodString;
|
|
168
392
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
169
393
|
byteLength: z.ZodNumber;
|
|
394
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
395
|
+
kind: z.ZodString;
|
|
396
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
397
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
398
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
399
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
400
|
+
kind: z.ZodLiteral<"spdx">;
|
|
401
|
+
expression: z.ZodString;
|
|
402
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
403
|
+
kind: z.ZodLiteral<"custom">;
|
|
404
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
405
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
406
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
407
|
+
}, z.core.$strict>], "kind">>;
|
|
408
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
409
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
410
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
411
|
+
kind: z.ZodEnum<{
|
|
412
|
+
normalization: "normalization";
|
|
413
|
+
transformation: "transformation";
|
|
414
|
+
}>;
|
|
415
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
416
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
417
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
418
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
419
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
420
|
+
}, z.core.$strict>>>;
|
|
421
|
+
}, z.core.$strict>>;
|
|
170
422
|
}, z.core.$strict>, z.ZodObject<{
|
|
171
423
|
kind: z.ZodLiteral<"github">;
|
|
172
424
|
repository: z.ZodObject<{
|
|
@@ -179,6 +431,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
179
431
|
name: z.ZodOptional<z.ZodString>;
|
|
180
432
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
181
433
|
byteLength: z.ZodNumber;
|
|
434
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
435
|
+
kind: z.ZodString;
|
|
436
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
437
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
438
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
439
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
440
|
+
kind: z.ZodLiteral<"spdx">;
|
|
441
|
+
expression: z.ZodString;
|
|
442
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
443
|
+
kind: z.ZodLiteral<"custom">;
|
|
444
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
445
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
446
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
447
|
+
}, z.core.$strict>], "kind">>;
|
|
448
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
449
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
450
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
451
|
+
kind: z.ZodEnum<{
|
|
452
|
+
normalization: "normalization";
|
|
453
|
+
transformation: "transformation";
|
|
454
|
+
}>;
|
|
455
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
456
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
457
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
458
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
459
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
460
|
+
}, z.core.$strict>>>;
|
|
461
|
+
}, z.core.$strict>>;
|
|
182
462
|
}, z.core.$strict>], "kind">>>;
|
|
183
463
|
instructions: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
184
464
|
kind: z.ZodLiteral<"inline">;
|
|
@@ -186,6 +466,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
186
466
|
content: z.ZodString;
|
|
187
467
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
188
468
|
byteLength: z.ZodNumber;
|
|
469
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
kind: z.ZodString;
|
|
471
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
472
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
473
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
474
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
475
|
+
kind: z.ZodLiteral<"spdx">;
|
|
476
|
+
expression: z.ZodString;
|
|
477
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
478
|
+
kind: z.ZodLiteral<"custom">;
|
|
479
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
480
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
481
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
482
|
+
}, z.core.$strict>], "kind">>;
|
|
483
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
484
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
485
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
486
|
+
kind: z.ZodEnum<{
|
|
487
|
+
normalization: "normalization";
|
|
488
|
+
transformation: "transformation";
|
|
489
|
+
}>;
|
|
490
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
491
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
492
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
493
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
494
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
495
|
+
}, z.core.$strict>>>;
|
|
496
|
+
}, z.core.$strict>>;
|
|
189
497
|
}, z.core.$strict>, z.ZodObject<{
|
|
190
498
|
kind: z.ZodLiteral<"github">;
|
|
191
499
|
repository: z.ZodObject<{
|
|
@@ -198,6 +506,34 @@ export declare const agentCandidateProfileSchema: z.ZodObject<{
|
|
|
198
506
|
name: z.ZodOptional<z.ZodString>;
|
|
199
507
|
sha256: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
200
508
|
byteLength: z.ZodNumber;
|
|
509
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
510
|
+
kind: z.ZodString;
|
|
511
|
+
sourceIdentity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
512
|
+
sourceDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
513
|
+
sourceRevision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
514
|
+
license: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
515
|
+
kind: z.ZodLiteral<"spdx">;
|
|
516
|
+
expression: z.ZodString;
|
|
517
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
518
|
+
kind: z.ZodLiteral<"custom">;
|
|
519
|
+
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
520
|
+
reference: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
521
|
+
termsDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
522
|
+
}, z.core.$strict>], "kind">>;
|
|
523
|
+
attribution: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
524
|
+
notices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
525
|
+
transformations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
526
|
+
kind: z.ZodEnum<{
|
|
527
|
+
normalization: "normalization";
|
|
528
|
+
transformation: "transformation";
|
|
529
|
+
}>;
|
|
530
|
+
identity: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
531
|
+
revision: z.ZodUnion<readonly [z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>, z.ZodNumber]>;
|
|
532
|
+
procedureDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
533
|
+
inputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
534
|
+
outputDigest: z.ZodType<`sha256:${string}`, unknown, z.core.$ZodTypeInternals<`sha256:${string}`, unknown>>;
|
|
535
|
+
}, z.core.$strict>>>;
|
|
536
|
+
}, z.core.$strict>>;
|
|
201
537
|
}, z.core.$strict>], "kind">]>>;
|
|
202
538
|
failOnError: z.ZodLiteral<true>;
|
|
203
539
|
}, z.core.$strict>>;
|