@cleocode/adapters 2026.10.22 → 2026.10.23
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 +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -475,7 +475,7 @@ var init_cant_context = __esm({
|
|
|
475
475
|
|
|
476
476
|
// packages/contracts/src/acceptance-gate-schema.ts
|
|
477
477
|
import { z } from "zod";
|
|
478
|
-
var gateBaseSchema, fileAssertionSchema, testGateSchema, testCountReportSchema, testCountSummarySchema, fileGateSchema, commandGateSchema, lintGateSchema, httpGateSchema, manualGateSchema, acceptanceGateSchema, gateResultDetailsSchema, capturedExecutionSchema, gateBindingPathSchema, acceptanceGateBindingSchema, acceptanceGateResultSchema, acceptanceItemSchema, acceptanceArraySchema;
|
|
478
|
+
var gateBaseSchema, fileAssertionSchema, gateEnvKeysSchema, testGateSchema, testCountReportSchema, testCountSummarySchema, fileGateSchema, commandGateSchema, lintGateSchema, httpGateSchema, manualGateSchema, acceptanceGateSchema, gateResultDetailsSchema, capturedExecutionSchema, gateBindingPathSchema, acceptanceGateBindingSchema, acceptanceGateResultSchema, acceptanceItemSchema, acceptanceArraySchema;
|
|
479
479
|
var init_acceptance_gate_schema = __esm({
|
|
480
480
|
"packages/contracts/src/acceptance-gate-schema.ts"() {
|
|
481
481
|
"use strict";
|
|
@@ -505,6 +505,7 @@ var init_acceptance_gate_schema = __esm({
|
|
|
505
505
|
}),
|
|
506
506
|
z.object({ type: z.literal("sha256"), value: z.string().length(64) })
|
|
507
507
|
]);
|
|
508
|
+
gateEnvKeysSchema = z.array(z.string().regex(/^[A-Za-z_][A-Za-z0-9_]*$/)).optional();
|
|
508
509
|
testGateSchema = gateBaseSchema.extend({
|
|
509
510
|
kind: z.literal("test"),
|
|
510
511
|
command: z.string().min(1),
|
|
@@ -512,7 +513,8 @@ var init_acceptance_gate_schema = __esm({
|
|
|
512
513
|
expect: z.enum(["pass", "exit0"]),
|
|
513
514
|
minCount: z.number().int().nonnegative().optional(),
|
|
514
515
|
cwd: z.string().optional(),
|
|
515
|
-
env: z.record(z.string(), z.string()).optional()
|
|
516
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
517
|
+
envKeys: gateEnvKeysSchema
|
|
516
518
|
});
|
|
517
519
|
testCountReportSchema = z.object({
|
|
518
520
|
numTotalTests: z.number().int().nonnegative().safe(),
|
|
@@ -592,7 +594,8 @@ var init_acceptance_gate_schema = __esm({
|
|
|
592
594
|
stdoutMatches: z.string().optional(),
|
|
593
595
|
stderrMatches: z.string().optional(),
|
|
594
596
|
cwd: z.string().optional(),
|
|
595
|
-
env: z.record(z.string(), z.string()).optional()
|
|
597
|
+
env: z.record(z.string(), z.string()).optional(),
|
|
598
|
+
envKeys: gateEnvKeysSchema
|
|
596
599
|
});
|
|
597
600
|
lintGateSchema = gateBaseSchema.extend({
|
|
598
601
|
kind: z.literal("lint"),
|