@cleocode/adapters 2026.5.89 → 2026.5.92
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/dist/index.js +221 -187
- package/dist/index.js.map +3 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1208,8 +1208,41 @@ var init_peer = __esm({
|
|
|
1208
1208
|
}
|
|
1209
1209
|
});
|
|
1210
1210
|
|
|
1211
|
-
// packages/contracts/src/release/
|
|
1211
|
+
// packages/contracts/src/release/evidence-atoms.ts
|
|
1212
1212
|
import { z as z5 } from "zod";
|
|
1213
|
+
var parsedPrEvidenceAtomSchema, ghPrViewSchema, PR_REQUIRED_WORKFLOWS;
|
|
1214
|
+
var init_evidence_atoms = __esm({
|
|
1215
|
+
"packages/contracts/src/release/evidence-atoms.ts"() {
|
|
1216
|
+
"use strict";
|
|
1217
|
+
parsedPrEvidenceAtomSchema = z5.object({
|
|
1218
|
+
kind: z5.literal("pr"),
|
|
1219
|
+
prNumber: z5.number().int().positive()
|
|
1220
|
+
});
|
|
1221
|
+
ghPrViewSchema = z5.object({
|
|
1222
|
+
state: z5.enum(["OPEN", "CLOSED", "MERGED"]),
|
|
1223
|
+
mergedAt: z5.string().nullable(),
|
|
1224
|
+
headRefOid: z5.string().optional(),
|
|
1225
|
+
mergeable: z5.string().optional(),
|
|
1226
|
+
statusCheckRollup: z5.array(
|
|
1227
|
+
z5.object({
|
|
1228
|
+
__typename: z5.string().optional(),
|
|
1229
|
+
name: z5.string().optional(),
|
|
1230
|
+
workflowName: z5.string().optional(),
|
|
1231
|
+
conclusion: z5.string().nullable().optional(),
|
|
1232
|
+
status: z5.string().optional()
|
|
1233
|
+
}).passthrough()
|
|
1234
|
+
).optional().default([])
|
|
1235
|
+
}).passthrough();
|
|
1236
|
+
PR_REQUIRED_WORKFLOWS = Object.freeze([
|
|
1237
|
+
"CI",
|
|
1238
|
+
"Lockfile Check",
|
|
1239
|
+
"Contracts Dep Lint"
|
|
1240
|
+
]);
|
|
1241
|
+
}
|
|
1242
|
+
});
|
|
1243
|
+
|
|
1244
|
+
// packages/contracts/src/release/plan.ts
|
|
1245
|
+
import { z as z6 } from "zod";
|
|
1213
1246
|
var RELEASE_CHANNEL, RELEASE_SCHEME, RELEASE_KIND, RELEASE_STATUS, GATE_STATUS, GATE_NAME, PLATFORM_TUPLE, PUBLISHER, TASK_KIND, IMPACT, RESOLVED_SOURCE, ReleaseChannelSchema, ReleaseSchemeSchema, ReleaseKindSchema, ReleaseStatusSchema, GateStatusSchema, GateNameSchema, PlatformTupleSchema, PublisherSchema, TaskKindSchema, ImpactSchema, ResolvedSourceSchema, Iso8601, NonEmptyString, ReleasePlanTaskSchema, ReleaseGateSchema, ReleasePlatformMatrixEntrySchema, ReleasePreflightSummarySchema, ReleasePlanChangelogSchema, ReleasePlanMetaSchema, ReleasePlanSchema;
|
|
1214
1247
|
var init_plan = __esm({
|
|
1215
1248
|
"packages/contracts/src/release/plan.ts"() {
|
|
@@ -1252,20 +1285,20 @@ var init_plan = __esm({
|
|
|
1252
1285
|
];
|
|
1253
1286
|
IMPACT = ["major", "minor", "patch"];
|
|
1254
1287
|
RESOLVED_SOURCE = ["project-context", "language-default", "legacy-alias"];
|
|
1255
|
-
ReleaseChannelSchema =
|
|
1256
|
-
ReleaseSchemeSchema =
|
|
1257
|
-
ReleaseKindSchema =
|
|
1258
|
-
ReleaseStatusSchema =
|
|
1259
|
-
GateStatusSchema =
|
|
1260
|
-
GateNameSchema =
|
|
1261
|
-
PlatformTupleSchema =
|
|
1262
|
-
PublisherSchema =
|
|
1263
|
-
TaskKindSchema =
|
|
1264
|
-
ImpactSchema =
|
|
1265
|
-
ResolvedSourceSchema =
|
|
1266
|
-
Iso8601 =
|
|
1267
|
-
NonEmptyString =
|
|
1268
|
-
ReleasePlanTaskSchema =
|
|
1288
|
+
ReleaseChannelSchema = z6.enum(RELEASE_CHANNEL);
|
|
1289
|
+
ReleaseSchemeSchema = z6.enum(RELEASE_SCHEME);
|
|
1290
|
+
ReleaseKindSchema = z6.enum(RELEASE_KIND);
|
|
1291
|
+
ReleaseStatusSchema = z6.enum(RELEASE_STATUS);
|
|
1292
|
+
GateStatusSchema = z6.enum(GATE_STATUS);
|
|
1293
|
+
GateNameSchema = z6.enum(GATE_NAME);
|
|
1294
|
+
PlatformTupleSchema = z6.enum(PLATFORM_TUPLE);
|
|
1295
|
+
PublisherSchema = z6.enum(PUBLISHER);
|
|
1296
|
+
TaskKindSchema = z6.enum(TASK_KIND);
|
|
1297
|
+
ImpactSchema = z6.enum(IMPACT);
|
|
1298
|
+
ResolvedSourceSchema = z6.enum(RESOLVED_SOURCE);
|
|
1299
|
+
Iso8601 = z6.iso.datetime({ offset: true });
|
|
1300
|
+
NonEmptyString = z6.string().min(1);
|
|
1301
|
+
ReleasePlanTaskSchema = z6.object({
|
|
1269
1302
|
/** Task ID (e.g. "T10001"). Format intentionally loose so historical IDs validate. */
|
|
1270
1303
|
id: NonEmptyString,
|
|
1271
1304
|
/** Conventional-commit-aligned task classification. */
|
|
@@ -1273,20 +1306,20 @@ var init_plan = __esm({
|
|
|
1273
1306
|
/** SemVer impact classification. */
|
|
1274
1307
|
impact: ImpactSchema,
|
|
1275
1308
|
/** Human-readable changelog line for this task. */
|
|
1276
|
-
userFacingSummary:
|
|
1309
|
+
userFacingSummary: z6.string(),
|
|
1277
1310
|
/**
|
|
1278
1311
|
* ADR-051 evidence atoms attesting the task's gate results. Format is
|
|
1279
1312
|
* `kind:value` (e.g. `commit:abc123`, `test-run:vitest.json`). The contract
|
|
1280
1313
|
* accepts empty arrays so legacy plans validate; `cleo release plan`
|
|
1281
1314
|
* enforces non-empty via R-301.
|
|
1282
1315
|
*/
|
|
1283
|
-
evidenceAtoms:
|
|
1316
|
+
evidenceAtoms: z6.array(NonEmptyString),
|
|
1284
1317
|
/** IVTR phase at plan time — informational only per R-316. */
|
|
1285
|
-
ivtrPhaseAtPlan:
|
|
1318
|
+
ivtrPhaseAtPlan: z6.string().optional(),
|
|
1286
1319
|
/** Epic this task rolls up to, locked at plan time per R-303. */
|
|
1287
1320
|
epicAncestor: NonEmptyString
|
|
1288
1321
|
});
|
|
1289
|
-
ReleaseGateSchema =
|
|
1322
|
+
ReleaseGateSchema = z6.object({
|
|
1290
1323
|
/** Canonical gate name. */
|
|
1291
1324
|
name: GateNameSchema,
|
|
1292
1325
|
/** ADR-051 atom string identifying the resolved tool (e.g. `tool:test`). */
|
|
@@ -1296,11 +1329,11 @@ var init_plan = __esm({
|
|
|
1296
1329
|
/** ISO-8601 timestamp the gate was last verified. */
|
|
1297
1330
|
lastVerifiedAt: Iso8601,
|
|
1298
1331
|
/** Resolved shell command (e.g. `pnpm run test`). Optional for unresolved gates. */
|
|
1299
|
-
resolvedCommand:
|
|
1332
|
+
resolvedCommand: z6.string().optional(),
|
|
1300
1333
|
/** Provenance of the resolved command. Optional for unresolved gates. */
|
|
1301
1334
|
resolvedSource: ResolvedSourceSchema.optional()
|
|
1302
1335
|
});
|
|
1303
|
-
ReleasePlatformMatrixEntrySchema =
|
|
1336
|
+
ReleasePlatformMatrixEntrySchema = z6.object({
|
|
1304
1337
|
/** Target platform tuple. */
|
|
1305
1338
|
platform: PlatformTupleSchema,
|
|
1306
1339
|
/** Distribution backend. */
|
|
@@ -1308,47 +1341,47 @@ var init_plan = __esm({
|
|
|
1308
1341
|
/** Package identifier on the target backend (e.g. `@cleocode/cleo`). */
|
|
1309
1342
|
package: NonEmptyString,
|
|
1310
1343
|
/** Whether to run the GHA smoke job for this matrix entry. */
|
|
1311
|
-
smoke:
|
|
1344
|
+
smoke: z6.boolean().default(true).optional()
|
|
1312
1345
|
});
|
|
1313
|
-
ReleasePreflightSummarySchema =
|
|
1346
|
+
ReleasePreflightSummarySchema = z6.object({
|
|
1314
1347
|
/** True if esbuild externals are out of sync with package.json. */
|
|
1315
|
-
esbuildExternalsDrift:
|
|
1348
|
+
esbuildExternalsDrift: z6.boolean(),
|
|
1316
1349
|
/** True if `pnpm-lock.yaml` diverges from the workspace manifest. */
|
|
1317
|
-
lockfileDrift:
|
|
1350
|
+
lockfileDrift: z6.boolean(),
|
|
1318
1351
|
/** True if all epic children are in terminal lifecycle states. */
|
|
1319
|
-
epicCompletenessClean:
|
|
1352
|
+
epicCompletenessClean: z6.boolean(),
|
|
1320
1353
|
/** True if no task appears in multiple in-flight release plans. */
|
|
1321
|
-
doubleListingClean:
|
|
1354
|
+
doubleListingClean: z6.boolean(),
|
|
1322
1355
|
/** Non-fatal preflight warnings (e.g. unresolved tools per R-024). */
|
|
1323
|
-
preflightWarnings:
|
|
1356
|
+
preflightWarnings: z6.array(z6.string()).default([]).optional()
|
|
1324
1357
|
});
|
|
1325
|
-
ReleasePlanChangelogSchema =
|
|
1358
|
+
ReleasePlanChangelogSchema = z6.object({
|
|
1326
1359
|
/** `kind=feat` tasks. */
|
|
1327
|
-
features:
|
|
1360
|
+
features: z6.array(NonEmptyString).default([]),
|
|
1328
1361
|
/** `kind=fix` or `kind=hotfix` tasks. */
|
|
1329
|
-
fixes:
|
|
1362
|
+
fixes: z6.array(NonEmptyString).default([]),
|
|
1330
1363
|
/** `kind=chore`, `docs`, `refactor`, `test`, `perf` tasks. */
|
|
1331
|
-
chores:
|
|
1364
|
+
chores: z6.array(NonEmptyString).default([]),
|
|
1332
1365
|
/** `kind=breaking` or `kind=revert` tasks. */
|
|
1333
|
-
breaking:
|
|
1366
|
+
breaking: z6.array(NonEmptyString).default([])
|
|
1334
1367
|
});
|
|
1335
|
-
ReleasePlanMetaSchema =
|
|
1368
|
+
ReleasePlanMetaSchema = z6.object({
|
|
1336
1369
|
/** True if this is the project's first ever release. */
|
|
1337
|
-
firstEverRelease:
|
|
1370
|
+
firstEverRelease: z6.boolean().optional(),
|
|
1338
1371
|
/** Canonical tool names that could not be resolved at plan time. */
|
|
1339
|
-
unresolvedTools:
|
|
1372
|
+
unresolvedTools: z6.array(z6.string()).optional(),
|
|
1340
1373
|
/** Project archetype detected at plan time. */
|
|
1341
|
-
archetype:
|
|
1342
|
-
}).catchall(
|
|
1343
|
-
ReleasePlanSchema =
|
|
1374
|
+
archetype: z6.string().optional()
|
|
1375
|
+
}).catchall(z6.unknown());
|
|
1376
|
+
ReleasePlanSchema = z6.object({
|
|
1344
1377
|
/** Schema URL for this plan version. */
|
|
1345
|
-
$schema:
|
|
1378
|
+
$schema: z6.string().optional(),
|
|
1346
1379
|
/** Requested version string (e.g. "v2026.6.0"). Includes the leading `v`. */
|
|
1347
1380
|
version: NonEmptyString,
|
|
1348
1381
|
/** Resolved version string after suffix application (e.g. "v2026.6.0.2"). */
|
|
1349
1382
|
resolvedVersion: NonEmptyString,
|
|
1350
1383
|
/** True if a `calver-suffix` was applied to disambiguate a same-day hotfix. */
|
|
1351
|
-
suffixApplied:
|
|
1384
|
+
suffixApplied: z6.boolean(),
|
|
1352
1385
|
/** Versioning scheme governing `version` / `resolvedVersion`. */
|
|
1353
1386
|
scheme: ReleaseSchemeSchema,
|
|
1354
1387
|
/** npm dist-tag channel for this release. */
|
|
@@ -1365,27 +1398,27 @@ var init_plan = __esm({
|
|
|
1365
1398
|
* Version of the previous release on the same channel. MUST be `null` only
|
|
1366
1399
|
* for first-ever releases (R-300, enforced at the verb layer).
|
|
1367
1400
|
*/
|
|
1368
|
-
previousVersion:
|
|
1401
|
+
previousVersion: z6.string().nullable(),
|
|
1369
1402
|
/** Git tag of the previous release (typically `previousVersion` prefixed). */
|
|
1370
|
-
previousTag:
|
|
1403
|
+
previousTag: z6.string().nullable(),
|
|
1371
1404
|
/** ISO-8601 timestamp the previous release was published. */
|
|
1372
1405
|
previousShippedAt: Iso8601.nullable(),
|
|
1373
1406
|
/** Tasks rolled into this release. */
|
|
1374
|
-
tasks:
|
|
1407
|
+
tasks: z6.array(ReleasePlanTaskSchema),
|
|
1375
1408
|
/** Bucketed changelog. */
|
|
1376
1409
|
changelog: ReleasePlanChangelogSchema,
|
|
1377
1410
|
/** Per-gate verification status. */
|
|
1378
|
-
gates:
|
|
1411
|
+
gates: z6.array(ReleaseGateSchema),
|
|
1379
1412
|
/** Platform / publisher matrix. */
|
|
1380
|
-
platformMatrix:
|
|
1413
|
+
platformMatrix: z6.array(ReleasePlatformMatrixEntrySchema),
|
|
1381
1414
|
/** Preflight summary from `cleo release plan`. */
|
|
1382
1415
|
preflightSummary: ReleasePreflightSummarySchema,
|
|
1383
1416
|
/** URL of the GHA workflow run (populated by `release-prepare.yml`). */
|
|
1384
|
-
workflowRunUrl:
|
|
1417
|
+
workflowRunUrl: z6.string().nullable(),
|
|
1385
1418
|
/** URL of the bump PR (populated by `cleo release open`). */
|
|
1386
|
-
prUrl:
|
|
1419
|
+
prUrl: z6.string().nullable(),
|
|
1387
1420
|
/** Merge commit SHA on `main` (populated by `release-publish.yml`). */
|
|
1388
|
-
mergeCommitSha:
|
|
1421
|
+
mergeCommitSha: z6.string().nullable(),
|
|
1389
1422
|
/** Current FSM state per R-302. */
|
|
1390
1423
|
status: ReleaseStatusSchema,
|
|
1391
1424
|
/** Informational / forward-compat metadata. */
|
|
@@ -1402,52 +1435,52 @@ var init_session2 = __esm({
|
|
|
1402
1435
|
});
|
|
1403
1436
|
|
|
1404
1437
|
// packages/contracts/src/session-journal.ts
|
|
1405
|
-
import { z as
|
|
1438
|
+
import { z as z7 } from "zod";
|
|
1406
1439
|
var SESSION_JOURNAL_SCHEMA_VERSION, sessionJournalDoctorSummarySchema, sessionJournalDebriefSummarySchema, sessionJournalEntrySchema;
|
|
1407
1440
|
var init_session_journal = __esm({
|
|
1408
1441
|
"packages/contracts/src/session-journal.ts"() {
|
|
1409
1442
|
"use strict";
|
|
1410
1443
|
SESSION_JOURNAL_SCHEMA_VERSION = "1.0";
|
|
1411
|
-
sessionJournalDoctorSummarySchema =
|
|
1444
|
+
sessionJournalDoctorSummarySchema = z7.object({
|
|
1412
1445
|
/** `true` when zero noise patterns were detected. */
|
|
1413
|
-
isClean:
|
|
1446
|
+
isClean: z7.boolean(),
|
|
1414
1447
|
/** Total number of noise findings across all patterns. */
|
|
1415
|
-
findingsCount:
|
|
1448
|
+
findingsCount: z7.number().int().nonnegative(),
|
|
1416
1449
|
/** Pattern names that were detected (empty when isClean). */
|
|
1417
|
-
patterns:
|
|
1450
|
+
patterns: z7.array(z7.string()),
|
|
1418
1451
|
/** Total brain entries scanned. `0` = empty or unavailable. */
|
|
1419
|
-
totalScanned:
|
|
1452
|
+
totalScanned: z7.number().int().nonnegative()
|
|
1420
1453
|
});
|
|
1421
|
-
sessionJournalDebriefSummarySchema =
|
|
1454
|
+
sessionJournalDebriefSummarySchema = z7.object({
|
|
1422
1455
|
/** First 200 characters of the session end note (if provided). */
|
|
1423
|
-
noteExcerpt:
|
|
1456
|
+
noteExcerpt: z7.string().max(200).optional(),
|
|
1424
1457
|
/** Number of tasks completed during the session. */
|
|
1425
|
-
tasksCompletedCount:
|
|
1458
|
+
tasksCompletedCount: z7.number().int().nonnegative(),
|
|
1426
1459
|
/** Up to 5 task IDs (not titles) that were the focus of the session. */
|
|
1427
|
-
tasksFocused:
|
|
1460
|
+
tasksFocused: z7.array(z7.string()).max(5).optional()
|
|
1428
1461
|
});
|
|
1429
|
-
sessionJournalEntrySchema =
|
|
1462
|
+
sessionJournalEntrySchema = z7.object({
|
|
1430
1463
|
// Identity
|
|
1431
1464
|
/** Schema version for forward-compatibility. Always `'1.0'` in this release. */
|
|
1432
|
-
schemaVersion:
|
|
1465
|
+
schemaVersion: z7.literal(SESSION_JOURNAL_SCHEMA_VERSION),
|
|
1433
1466
|
/** ISO 8601 timestamp when the entry was written. */
|
|
1434
|
-
timestamp:
|
|
1467
|
+
timestamp: z7.string(),
|
|
1435
1468
|
/** CLEO session ID (e.g. `ses_20260424055456_ede571`). */
|
|
1436
|
-
sessionId:
|
|
1469
|
+
sessionId: z7.string(),
|
|
1437
1470
|
/** Event type that triggered this journal entry. */
|
|
1438
|
-
eventType:
|
|
1471
|
+
eventType: z7.enum(["session_start", "session_end", "observation", "decision", "error"]),
|
|
1439
1472
|
// Session metadata (set on session_start / session_end)
|
|
1440
1473
|
/** Agent identifier (e.g. `cleo-prime`, `claude-code`). */
|
|
1441
|
-
agentIdentifier:
|
|
1474
|
+
agentIdentifier: z7.string().optional(),
|
|
1442
1475
|
/** Provider adapter ID active for this session. */
|
|
1443
|
-
providerId:
|
|
1476
|
+
providerId: z7.string().optional(),
|
|
1444
1477
|
/** Session scope string (e.g. `'global'` or `'epic:T1263'`). */
|
|
1445
|
-
scope:
|
|
1478
|
+
scope: z7.string().optional(),
|
|
1446
1479
|
// Session-end fields
|
|
1447
1480
|
/** Duration of the session in seconds (session_end only). */
|
|
1448
|
-
duration:
|
|
1481
|
+
duration: z7.number().int().nonnegative().optional(),
|
|
1449
1482
|
/** Task IDs (not titles) completed during the session. */
|
|
1450
|
-
tasksCompleted:
|
|
1483
|
+
tasksCompleted: z7.array(z7.string()).optional(),
|
|
1451
1484
|
// Doctor summary (T1262 absorbed)
|
|
1452
1485
|
/** Compact result of `scanBrainNoise` run at session-end. */
|
|
1453
1486
|
doctorSummary: sessionJournalDoctorSummarySchema.optional(),
|
|
@@ -1456,7 +1489,7 @@ var init_session_journal = __esm({
|
|
|
1456
1489
|
debriefSummary: sessionJournalDebriefSummarySchema.optional(),
|
|
1457
1490
|
// Optional hash chain
|
|
1458
1491
|
/** SHA-256 hex of the previous entry's raw JSON string (for integrity chain). */
|
|
1459
|
-
prevEntryHash:
|
|
1492
|
+
prevEntryHash: z7.string().optional()
|
|
1460
1493
|
});
|
|
1461
1494
|
}
|
|
1462
1495
|
});
|
|
@@ -1476,52 +1509,52 @@ var init_task = __esm({
|
|
|
1476
1509
|
});
|
|
1477
1510
|
|
|
1478
1511
|
// packages/contracts/src/task-evidence.ts
|
|
1479
|
-
import { z as
|
|
1512
|
+
import { z as z8 } from "zod";
|
|
1480
1513
|
var fileEvidenceSchema, logEvidenceSchema, screenshotEvidenceSchema, testOutputEvidenceSchema, commandOutputEvidenceSchema, taskEvidenceSchema;
|
|
1481
1514
|
var init_task_evidence = __esm({
|
|
1482
1515
|
"packages/contracts/src/task-evidence.ts"() {
|
|
1483
1516
|
"use strict";
|
|
1484
|
-
fileEvidenceSchema =
|
|
1485
|
-
kind:
|
|
1486
|
-
sha256:
|
|
1487
|
-
timestamp:
|
|
1488
|
-
path:
|
|
1489
|
-
mime:
|
|
1490
|
-
description:
|
|
1491
|
-
});
|
|
1492
|
-
logEvidenceSchema =
|
|
1493
|
-
kind:
|
|
1494
|
-
sha256:
|
|
1495
|
-
timestamp:
|
|
1496
|
-
source:
|
|
1497
|
-
description:
|
|
1498
|
-
});
|
|
1499
|
-
screenshotEvidenceSchema =
|
|
1500
|
-
kind:
|
|
1501
|
-
sha256:
|
|
1502
|
-
timestamp:
|
|
1503
|
-
mime:
|
|
1504
|
-
description:
|
|
1505
|
-
});
|
|
1506
|
-
testOutputEvidenceSchema =
|
|
1507
|
-
kind:
|
|
1508
|
-
sha256:
|
|
1509
|
-
timestamp:
|
|
1510
|
-
passed:
|
|
1511
|
-
failed:
|
|
1512
|
-
skipped:
|
|
1513
|
-
exitCode:
|
|
1514
|
-
description:
|
|
1515
|
-
});
|
|
1516
|
-
commandOutputEvidenceSchema =
|
|
1517
|
-
kind:
|
|
1518
|
-
sha256:
|
|
1519
|
-
timestamp:
|
|
1520
|
-
cmd:
|
|
1521
|
-
exitCode:
|
|
1522
|
-
description:
|
|
1523
|
-
});
|
|
1524
|
-
taskEvidenceSchema =
|
|
1517
|
+
fileEvidenceSchema = z8.object({
|
|
1518
|
+
kind: z8.literal("file"),
|
|
1519
|
+
sha256: z8.string().length(64),
|
|
1520
|
+
timestamp: z8.string().datetime(),
|
|
1521
|
+
path: z8.string().min(1),
|
|
1522
|
+
mime: z8.string().optional(),
|
|
1523
|
+
description: z8.string().optional()
|
|
1524
|
+
});
|
|
1525
|
+
logEvidenceSchema = z8.object({
|
|
1526
|
+
kind: z8.literal("log"),
|
|
1527
|
+
sha256: z8.string().length(64),
|
|
1528
|
+
timestamp: z8.string().datetime(),
|
|
1529
|
+
source: z8.string().min(1),
|
|
1530
|
+
description: z8.string().optional()
|
|
1531
|
+
});
|
|
1532
|
+
screenshotEvidenceSchema = z8.object({
|
|
1533
|
+
kind: z8.literal("screenshot"),
|
|
1534
|
+
sha256: z8.string().length(64),
|
|
1535
|
+
timestamp: z8.string().datetime(),
|
|
1536
|
+
mime: z8.enum(["image/png", "image/jpeg", "image/webp"]).optional(),
|
|
1537
|
+
description: z8.string().optional()
|
|
1538
|
+
});
|
|
1539
|
+
testOutputEvidenceSchema = z8.object({
|
|
1540
|
+
kind: z8.literal("test-output"),
|
|
1541
|
+
sha256: z8.string().length(64),
|
|
1542
|
+
timestamp: z8.string().datetime(),
|
|
1543
|
+
passed: z8.number().int().nonnegative(),
|
|
1544
|
+
failed: z8.number().int().nonnegative(),
|
|
1545
|
+
skipped: z8.number().int().nonnegative(),
|
|
1546
|
+
exitCode: z8.number().int(),
|
|
1547
|
+
description: z8.string().optional()
|
|
1548
|
+
});
|
|
1549
|
+
commandOutputEvidenceSchema = z8.object({
|
|
1550
|
+
kind: z8.literal("command-output"),
|
|
1551
|
+
sha256: z8.string().length(64),
|
|
1552
|
+
timestamp: z8.string().datetime(),
|
|
1553
|
+
cmd: z8.string().min(1),
|
|
1554
|
+
exitCode: z8.number().int(),
|
|
1555
|
+
description: z8.string().optional()
|
|
1556
|
+
});
|
|
1557
|
+
taskEvidenceSchema = z8.discriminatedUnion("kind", [
|
|
1525
1558
|
fileEvidenceSchema,
|
|
1526
1559
|
logEvidenceSchema,
|
|
1527
1560
|
screenshotEvidenceSchema,
|
|
@@ -1532,12 +1565,12 @@ var init_task_evidence = __esm({
|
|
|
1532
1565
|
});
|
|
1533
1566
|
|
|
1534
1567
|
// packages/contracts/src/tasks/archive.ts
|
|
1535
|
-
import { z as
|
|
1568
|
+
import { z as z9 } from "zod";
|
|
1536
1569
|
var ArchiveReason, ARCHIVE_REASON_VALUES;
|
|
1537
1570
|
var init_archive = __esm({
|
|
1538
1571
|
"packages/contracts/src/tasks/archive.ts"() {
|
|
1539
1572
|
"use strict";
|
|
1540
|
-
ArchiveReason =
|
|
1573
|
+
ArchiveReason = z9.enum([
|
|
1541
1574
|
"verified",
|
|
1542
1575
|
"reconciled",
|
|
1543
1576
|
"superseded",
|
|
@@ -1569,6 +1602,7 @@ var init_src = __esm({
|
|
|
1569
1602
|
init_nexus_scope_map();
|
|
1570
1603
|
init_params();
|
|
1571
1604
|
init_peer();
|
|
1605
|
+
init_evidence_atoms();
|
|
1572
1606
|
init_plan();
|
|
1573
1607
|
init_session2();
|
|
1574
1608
|
init_session_journal();
|
|
@@ -15595,7 +15629,7 @@ function resolveRef(ref, ctx) {
|
|
|
15595
15629
|
function convertBaseSchema(schema, ctx) {
|
|
15596
15630
|
if (schema.not !== void 0) {
|
|
15597
15631
|
if (typeof schema.not === "object" && Object.keys(schema.not).length === 0) {
|
|
15598
|
-
return
|
|
15632
|
+
return z10.never();
|
|
15599
15633
|
}
|
|
15600
15634
|
throw new Error("not is not supported in Zod (except { not: {} } for never)");
|
|
15601
15635
|
}
|
|
@@ -15617,7 +15651,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15617
15651
|
return ctx.refs.get(refPath);
|
|
15618
15652
|
}
|
|
15619
15653
|
if (ctx.processing.has(refPath)) {
|
|
15620
|
-
return
|
|
15654
|
+
return z10.lazy(() => {
|
|
15621
15655
|
if (!ctx.refs.has(refPath)) {
|
|
15622
15656
|
throw new Error(`Circular reference not resolved: ${refPath}`);
|
|
15623
15657
|
}
|
|
@@ -15634,25 +15668,25 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15634
15668
|
if (schema.enum !== void 0) {
|
|
15635
15669
|
const enumValues = schema.enum;
|
|
15636
15670
|
if (ctx.version === "openapi-3.0" && schema.nullable === true && enumValues.length === 1 && enumValues[0] === null) {
|
|
15637
|
-
return
|
|
15671
|
+
return z10.null();
|
|
15638
15672
|
}
|
|
15639
15673
|
if (enumValues.length === 0) {
|
|
15640
|
-
return
|
|
15674
|
+
return z10.never();
|
|
15641
15675
|
}
|
|
15642
15676
|
if (enumValues.length === 1) {
|
|
15643
|
-
return
|
|
15677
|
+
return z10.literal(enumValues[0]);
|
|
15644
15678
|
}
|
|
15645
15679
|
if (enumValues.every((v) => typeof v === "string")) {
|
|
15646
|
-
return
|
|
15680
|
+
return z10.enum(enumValues);
|
|
15647
15681
|
}
|
|
15648
|
-
const literalSchemas = enumValues.map((v) =>
|
|
15682
|
+
const literalSchemas = enumValues.map((v) => z10.literal(v));
|
|
15649
15683
|
if (literalSchemas.length < 2) {
|
|
15650
15684
|
return literalSchemas[0];
|
|
15651
15685
|
}
|
|
15652
|
-
return
|
|
15686
|
+
return z10.union([literalSchemas[0], literalSchemas[1], ...literalSchemas.slice(2)]);
|
|
15653
15687
|
}
|
|
15654
15688
|
if (schema.const !== void 0) {
|
|
15655
|
-
return
|
|
15689
|
+
return z10.literal(schema.const);
|
|
15656
15690
|
}
|
|
15657
15691
|
const type = schema.type;
|
|
15658
15692
|
if (Array.isArray(type)) {
|
|
@@ -15661,68 +15695,68 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15661
15695
|
return convertBaseSchema(typeSchema, ctx);
|
|
15662
15696
|
});
|
|
15663
15697
|
if (typeSchemas.length === 0) {
|
|
15664
|
-
return
|
|
15698
|
+
return z10.never();
|
|
15665
15699
|
}
|
|
15666
15700
|
if (typeSchemas.length === 1) {
|
|
15667
15701
|
return typeSchemas[0];
|
|
15668
15702
|
}
|
|
15669
|
-
return
|
|
15703
|
+
return z10.union(typeSchemas);
|
|
15670
15704
|
}
|
|
15671
15705
|
if (!type) {
|
|
15672
|
-
return
|
|
15706
|
+
return z10.any();
|
|
15673
15707
|
}
|
|
15674
15708
|
let zodSchema2;
|
|
15675
15709
|
switch (type) {
|
|
15676
15710
|
case "string": {
|
|
15677
|
-
let stringSchema =
|
|
15711
|
+
let stringSchema = z10.string();
|
|
15678
15712
|
if (schema.format) {
|
|
15679
15713
|
const format = schema.format;
|
|
15680
15714
|
if (format === "email") {
|
|
15681
|
-
stringSchema = stringSchema.check(
|
|
15715
|
+
stringSchema = stringSchema.check(z10.email());
|
|
15682
15716
|
} else if (format === "uri" || format === "uri-reference") {
|
|
15683
|
-
stringSchema = stringSchema.check(
|
|
15717
|
+
stringSchema = stringSchema.check(z10.url());
|
|
15684
15718
|
} else if (format === "uuid" || format === "guid") {
|
|
15685
|
-
stringSchema = stringSchema.check(
|
|
15719
|
+
stringSchema = stringSchema.check(z10.uuid());
|
|
15686
15720
|
} else if (format === "date-time") {
|
|
15687
|
-
stringSchema = stringSchema.check(
|
|
15721
|
+
stringSchema = stringSchema.check(z10.iso.datetime());
|
|
15688
15722
|
} else if (format === "date") {
|
|
15689
|
-
stringSchema = stringSchema.check(
|
|
15723
|
+
stringSchema = stringSchema.check(z10.iso.date());
|
|
15690
15724
|
} else if (format === "time") {
|
|
15691
|
-
stringSchema = stringSchema.check(
|
|
15725
|
+
stringSchema = stringSchema.check(z10.iso.time());
|
|
15692
15726
|
} else if (format === "duration") {
|
|
15693
|
-
stringSchema = stringSchema.check(
|
|
15727
|
+
stringSchema = stringSchema.check(z10.iso.duration());
|
|
15694
15728
|
} else if (format === "ipv4") {
|
|
15695
|
-
stringSchema = stringSchema.check(
|
|
15729
|
+
stringSchema = stringSchema.check(z10.ipv4());
|
|
15696
15730
|
} else if (format === "ipv6") {
|
|
15697
|
-
stringSchema = stringSchema.check(
|
|
15731
|
+
stringSchema = stringSchema.check(z10.ipv6());
|
|
15698
15732
|
} else if (format === "mac") {
|
|
15699
|
-
stringSchema = stringSchema.check(
|
|
15733
|
+
stringSchema = stringSchema.check(z10.mac());
|
|
15700
15734
|
} else if (format === "cidr") {
|
|
15701
|
-
stringSchema = stringSchema.check(
|
|
15735
|
+
stringSchema = stringSchema.check(z10.cidrv4());
|
|
15702
15736
|
} else if (format === "cidr-v6") {
|
|
15703
|
-
stringSchema = stringSchema.check(
|
|
15737
|
+
stringSchema = stringSchema.check(z10.cidrv6());
|
|
15704
15738
|
} else if (format === "base64") {
|
|
15705
|
-
stringSchema = stringSchema.check(
|
|
15739
|
+
stringSchema = stringSchema.check(z10.base64());
|
|
15706
15740
|
} else if (format === "base64url") {
|
|
15707
|
-
stringSchema = stringSchema.check(
|
|
15741
|
+
stringSchema = stringSchema.check(z10.base64url());
|
|
15708
15742
|
} else if (format === "e164") {
|
|
15709
|
-
stringSchema = stringSchema.check(
|
|
15743
|
+
stringSchema = stringSchema.check(z10.e164());
|
|
15710
15744
|
} else if (format === "jwt") {
|
|
15711
|
-
stringSchema = stringSchema.check(
|
|
15745
|
+
stringSchema = stringSchema.check(z10.jwt());
|
|
15712
15746
|
} else if (format === "emoji") {
|
|
15713
|
-
stringSchema = stringSchema.check(
|
|
15747
|
+
stringSchema = stringSchema.check(z10.emoji());
|
|
15714
15748
|
} else if (format === "nanoid") {
|
|
15715
|
-
stringSchema = stringSchema.check(
|
|
15749
|
+
stringSchema = stringSchema.check(z10.nanoid());
|
|
15716
15750
|
} else if (format === "cuid") {
|
|
15717
|
-
stringSchema = stringSchema.check(
|
|
15751
|
+
stringSchema = stringSchema.check(z10.cuid());
|
|
15718
15752
|
} else if (format === "cuid2") {
|
|
15719
|
-
stringSchema = stringSchema.check(
|
|
15753
|
+
stringSchema = stringSchema.check(z10.cuid2());
|
|
15720
15754
|
} else if (format === "ulid") {
|
|
15721
|
-
stringSchema = stringSchema.check(
|
|
15755
|
+
stringSchema = stringSchema.check(z10.ulid());
|
|
15722
15756
|
} else if (format === "xid") {
|
|
15723
|
-
stringSchema = stringSchema.check(
|
|
15757
|
+
stringSchema = stringSchema.check(z10.xid());
|
|
15724
15758
|
} else if (format === "ksuid") {
|
|
15725
|
-
stringSchema = stringSchema.check(
|
|
15759
|
+
stringSchema = stringSchema.check(z10.ksuid());
|
|
15726
15760
|
}
|
|
15727
15761
|
}
|
|
15728
15762
|
if (typeof schema.minLength === "number") {
|
|
@@ -15739,7 +15773,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15739
15773
|
}
|
|
15740
15774
|
case "number":
|
|
15741
15775
|
case "integer": {
|
|
15742
|
-
let numberSchema = type === "integer" ?
|
|
15776
|
+
let numberSchema = type === "integer" ? z10.number().int() : z10.number();
|
|
15743
15777
|
if (typeof schema.minimum === "number") {
|
|
15744
15778
|
numberSchema = numberSchema.min(schema.minimum);
|
|
15745
15779
|
}
|
|
@@ -15763,11 +15797,11 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15763
15797
|
break;
|
|
15764
15798
|
}
|
|
15765
15799
|
case "boolean": {
|
|
15766
|
-
zodSchema2 =
|
|
15800
|
+
zodSchema2 = z10.boolean();
|
|
15767
15801
|
break;
|
|
15768
15802
|
}
|
|
15769
15803
|
case "null": {
|
|
15770
|
-
zodSchema2 =
|
|
15804
|
+
zodSchema2 = z10.null();
|
|
15771
15805
|
break;
|
|
15772
15806
|
}
|
|
15773
15807
|
case "object": {
|
|
@@ -15780,14 +15814,14 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15780
15814
|
}
|
|
15781
15815
|
if (schema.propertyNames) {
|
|
15782
15816
|
const keySchema = convertSchema(schema.propertyNames, ctx);
|
|
15783
|
-
const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) :
|
|
15817
|
+
const valueSchema = schema.additionalProperties && typeof schema.additionalProperties === "object" ? convertSchema(schema.additionalProperties, ctx) : z10.any();
|
|
15784
15818
|
if (Object.keys(shape).length === 0) {
|
|
15785
|
-
zodSchema2 =
|
|
15819
|
+
zodSchema2 = z10.record(keySchema, valueSchema);
|
|
15786
15820
|
break;
|
|
15787
15821
|
}
|
|
15788
|
-
const objectSchema2 =
|
|
15789
|
-
const recordSchema =
|
|
15790
|
-
zodSchema2 =
|
|
15822
|
+
const objectSchema2 = z10.object(shape).passthrough();
|
|
15823
|
+
const recordSchema = z10.looseRecord(keySchema, valueSchema);
|
|
15824
|
+
zodSchema2 = z10.intersection(objectSchema2, recordSchema);
|
|
15791
15825
|
break;
|
|
15792
15826
|
}
|
|
15793
15827
|
if (schema.patternProperties) {
|
|
@@ -15796,28 +15830,28 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15796
15830
|
const looseRecords = [];
|
|
15797
15831
|
for (const pattern of patternKeys) {
|
|
15798
15832
|
const patternValue = convertSchema(patternProps[pattern], ctx);
|
|
15799
|
-
const keySchema =
|
|
15800
|
-
looseRecords.push(
|
|
15833
|
+
const keySchema = z10.string().regex(new RegExp(pattern));
|
|
15834
|
+
looseRecords.push(z10.looseRecord(keySchema, patternValue));
|
|
15801
15835
|
}
|
|
15802
15836
|
const schemasToIntersect = [];
|
|
15803
15837
|
if (Object.keys(shape).length > 0) {
|
|
15804
|
-
schemasToIntersect.push(
|
|
15838
|
+
schemasToIntersect.push(z10.object(shape).passthrough());
|
|
15805
15839
|
}
|
|
15806
15840
|
schemasToIntersect.push(...looseRecords);
|
|
15807
15841
|
if (schemasToIntersect.length === 0) {
|
|
15808
|
-
zodSchema2 =
|
|
15842
|
+
zodSchema2 = z10.object({}).passthrough();
|
|
15809
15843
|
} else if (schemasToIntersect.length === 1) {
|
|
15810
15844
|
zodSchema2 = schemasToIntersect[0];
|
|
15811
15845
|
} else {
|
|
15812
|
-
let result =
|
|
15846
|
+
let result = z10.intersection(schemasToIntersect[0], schemasToIntersect[1]);
|
|
15813
15847
|
for (let i = 2; i < schemasToIntersect.length; i++) {
|
|
15814
|
-
result =
|
|
15848
|
+
result = z10.intersection(result, schemasToIntersect[i]);
|
|
15815
15849
|
}
|
|
15816
15850
|
zodSchema2 = result;
|
|
15817
15851
|
}
|
|
15818
15852
|
break;
|
|
15819
15853
|
}
|
|
15820
|
-
const objectSchema =
|
|
15854
|
+
const objectSchema = z10.object(shape);
|
|
15821
15855
|
if (schema.additionalProperties === false) {
|
|
15822
15856
|
zodSchema2 = objectSchema.strict();
|
|
15823
15857
|
} else if (typeof schema.additionalProperties === "object") {
|
|
@@ -15834,33 +15868,33 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15834
15868
|
const tupleItems = prefixItems.map((item) => convertSchema(item, ctx));
|
|
15835
15869
|
const rest = items && typeof items === "object" && !Array.isArray(items) ? convertSchema(items, ctx) : void 0;
|
|
15836
15870
|
if (rest) {
|
|
15837
|
-
zodSchema2 =
|
|
15871
|
+
zodSchema2 = z10.tuple(tupleItems).rest(rest);
|
|
15838
15872
|
} else {
|
|
15839
|
-
zodSchema2 =
|
|
15873
|
+
zodSchema2 = z10.tuple(tupleItems);
|
|
15840
15874
|
}
|
|
15841
15875
|
if (typeof schema.minItems === "number") {
|
|
15842
|
-
zodSchema2 = zodSchema2.check(
|
|
15876
|
+
zodSchema2 = zodSchema2.check(z10.minLength(schema.minItems));
|
|
15843
15877
|
}
|
|
15844
15878
|
if (typeof schema.maxItems === "number") {
|
|
15845
|
-
zodSchema2 = zodSchema2.check(
|
|
15879
|
+
zodSchema2 = zodSchema2.check(z10.maxLength(schema.maxItems));
|
|
15846
15880
|
}
|
|
15847
15881
|
} else if (Array.isArray(items)) {
|
|
15848
15882
|
const tupleItems = items.map((item) => convertSchema(item, ctx));
|
|
15849
15883
|
const rest = schema.additionalItems && typeof schema.additionalItems === "object" ? convertSchema(schema.additionalItems, ctx) : void 0;
|
|
15850
15884
|
if (rest) {
|
|
15851
|
-
zodSchema2 =
|
|
15885
|
+
zodSchema2 = z10.tuple(tupleItems).rest(rest);
|
|
15852
15886
|
} else {
|
|
15853
|
-
zodSchema2 =
|
|
15887
|
+
zodSchema2 = z10.tuple(tupleItems);
|
|
15854
15888
|
}
|
|
15855
15889
|
if (typeof schema.minItems === "number") {
|
|
15856
|
-
zodSchema2 = zodSchema2.check(
|
|
15890
|
+
zodSchema2 = zodSchema2.check(z10.minLength(schema.minItems));
|
|
15857
15891
|
}
|
|
15858
15892
|
if (typeof schema.maxItems === "number") {
|
|
15859
|
-
zodSchema2 = zodSchema2.check(
|
|
15893
|
+
zodSchema2 = zodSchema2.check(z10.maxLength(schema.maxItems));
|
|
15860
15894
|
}
|
|
15861
15895
|
} else if (items !== void 0) {
|
|
15862
15896
|
const element = convertSchema(items, ctx);
|
|
15863
|
-
let arraySchema =
|
|
15897
|
+
let arraySchema = z10.array(element);
|
|
15864
15898
|
if (typeof schema.minItems === "number") {
|
|
15865
15899
|
arraySchema = arraySchema.min(schema.minItems);
|
|
15866
15900
|
}
|
|
@@ -15869,7 +15903,7 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15869
15903
|
}
|
|
15870
15904
|
zodSchema2 = arraySchema;
|
|
15871
15905
|
} else {
|
|
15872
|
-
zodSchema2 =
|
|
15906
|
+
zodSchema2 = z10.array(z10.any());
|
|
15873
15907
|
}
|
|
15874
15908
|
break;
|
|
15875
15909
|
}
|
|
@@ -15886,37 +15920,37 @@ function convertBaseSchema(schema, ctx) {
|
|
|
15886
15920
|
}
|
|
15887
15921
|
function convertSchema(schema, ctx) {
|
|
15888
15922
|
if (typeof schema === "boolean") {
|
|
15889
|
-
return schema ?
|
|
15923
|
+
return schema ? z10.any() : z10.never();
|
|
15890
15924
|
}
|
|
15891
15925
|
let baseSchema = convertBaseSchema(schema, ctx);
|
|
15892
15926
|
const hasExplicitType = schema.type || schema.enum !== void 0 || schema.const !== void 0;
|
|
15893
15927
|
if (schema.anyOf && Array.isArray(schema.anyOf)) {
|
|
15894
15928
|
const options = schema.anyOf.map((s) => convertSchema(s, ctx));
|
|
15895
|
-
const anyOfUnion =
|
|
15896
|
-
baseSchema = hasExplicitType ?
|
|
15929
|
+
const anyOfUnion = z10.union(options);
|
|
15930
|
+
baseSchema = hasExplicitType ? z10.intersection(baseSchema, anyOfUnion) : anyOfUnion;
|
|
15897
15931
|
}
|
|
15898
15932
|
if (schema.oneOf && Array.isArray(schema.oneOf)) {
|
|
15899
15933
|
const options = schema.oneOf.map((s) => convertSchema(s, ctx));
|
|
15900
|
-
const oneOfUnion =
|
|
15901
|
-
baseSchema = hasExplicitType ?
|
|
15934
|
+
const oneOfUnion = z10.xor(options);
|
|
15935
|
+
baseSchema = hasExplicitType ? z10.intersection(baseSchema, oneOfUnion) : oneOfUnion;
|
|
15902
15936
|
}
|
|
15903
15937
|
if (schema.allOf && Array.isArray(schema.allOf)) {
|
|
15904
15938
|
if (schema.allOf.length === 0) {
|
|
15905
|
-
baseSchema = hasExplicitType ? baseSchema :
|
|
15939
|
+
baseSchema = hasExplicitType ? baseSchema : z10.any();
|
|
15906
15940
|
} else {
|
|
15907
15941
|
let result = hasExplicitType ? baseSchema : convertSchema(schema.allOf[0], ctx);
|
|
15908
15942
|
const startIdx = hasExplicitType ? 0 : 1;
|
|
15909
15943
|
for (let i = startIdx; i < schema.allOf.length; i++) {
|
|
15910
|
-
result =
|
|
15944
|
+
result = z10.intersection(result, convertSchema(schema.allOf[i], ctx));
|
|
15911
15945
|
}
|
|
15912
15946
|
baseSchema = result;
|
|
15913
15947
|
}
|
|
15914
15948
|
}
|
|
15915
15949
|
if (schema.nullable === true && ctx.version === "openapi-3.0") {
|
|
15916
|
-
baseSchema =
|
|
15950
|
+
baseSchema = z10.nullable(baseSchema);
|
|
15917
15951
|
}
|
|
15918
15952
|
if (schema.readOnly === true) {
|
|
15919
|
-
baseSchema =
|
|
15953
|
+
baseSchema = z10.readonly(baseSchema);
|
|
15920
15954
|
}
|
|
15921
15955
|
const extraMeta = {};
|
|
15922
15956
|
const coreMetadataKeys = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"];
|
|
@@ -15943,7 +15977,7 @@ function convertSchema(schema, ctx) {
|
|
|
15943
15977
|
}
|
|
15944
15978
|
function fromJSONSchema(schema, params) {
|
|
15945
15979
|
if (typeof schema === "boolean") {
|
|
15946
|
-
return schema ?
|
|
15980
|
+
return schema ? z10.any() : z10.never();
|
|
15947
15981
|
}
|
|
15948
15982
|
const version2 = detectVersion(schema, params?.defaultTarget);
|
|
15949
15983
|
const defs = schema.$defs || schema.definitions || {};
|
|
@@ -15957,14 +15991,14 @@ function fromJSONSchema(schema, params) {
|
|
|
15957
15991
|
};
|
|
15958
15992
|
return convertSchema(schema, ctx);
|
|
15959
15993
|
}
|
|
15960
|
-
var
|
|
15994
|
+
var z10, RECOGNIZED_KEYS;
|
|
15961
15995
|
var init_from_json_schema = __esm({
|
|
15962
15996
|
"node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/from-json-schema.js"() {
|
|
15963
15997
|
init_registries();
|
|
15964
15998
|
init_checks2();
|
|
15965
15999
|
init_iso();
|
|
15966
16000
|
init_schemas2();
|
|
15967
|
-
|
|
16001
|
+
z10 = {
|
|
15968
16002
|
...schemas_exports2,
|
|
15969
16003
|
...checks_exports2,
|
|
15970
16004
|
iso: iso_exports
|