@fro.bot/systematic 3.22.3 → 3.22.4
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/cli.js +3 -3
- package/dist/{index-99dtcz5j.js → index-0sc6c1vd.js} +55 -19
- package/dist/index.js +759 -154
- package/dist/lib/opencode-operation-observer.d.ts +61 -2
- package/dist/pi.js +55 -19
- package/package.json +2 -2
- package/skills/ce-review/scripts/validate-review.mjs +67 -32
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
export type OperationObserverReasonCode = 'target-unavailable' | 'command-failed' | 'command-timeout' | 'command-output-limit' | 'file-limit' | 'file-output-limit' | 'file-read-failed' | 'remote-command-failed' | 'remote-command-output-limit' | 'remote-invalid-json' | 'remote-missing-field' | 'remote-item-limit' | 'remote-not-advanced' | 'commit-not-closed' | 'worktree-unstable';
|
|
2
3
|
export interface RegisteredWorktreeParentIdentity {
|
|
3
4
|
readonly targetRoot: string;
|
|
4
5
|
readonly gitDir: string;
|
|
@@ -39,6 +40,8 @@ export interface OperationObserverCommandResult {
|
|
|
39
40
|
readonly stdout: string;
|
|
40
41
|
readonly stderr: string;
|
|
41
42
|
readonly timedOut?: boolean;
|
|
43
|
+
/** stdout was not valid UTF-8; `stdout` must not be trusted. */
|
|
44
|
+
readonly invalidOutput?: boolean;
|
|
42
45
|
}
|
|
43
46
|
export interface OperationObserverRemoteCommandResult {
|
|
44
47
|
readonly status: number;
|
|
@@ -71,6 +74,7 @@ export interface OperationObserverLimits {
|
|
|
71
74
|
readonly maxCommandOutputBytes?: number;
|
|
72
75
|
readonly maxCommandTimeoutMs?: number;
|
|
73
76
|
readonly maxFiles?: number;
|
|
77
|
+
readonly maxGitlinks?: number;
|
|
74
78
|
readonly maxRemoteCommandOutputBytes?: number;
|
|
75
79
|
readonly maxRemoteItems?: number;
|
|
76
80
|
readonly maxTotalFileBytes?: number;
|
|
@@ -82,13 +86,17 @@ export interface OperationObserverFileStat {
|
|
|
82
86
|
readonly isDirectory: boolean;
|
|
83
87
|
readonly mode: number;
|
|
84
88
|
readonly size: number;
|
|
89
|
+
readonly dev?: number | bigint;
|
|
90
|
+
readonly ino?: number | bigint;
|
|
91
|
+
readonly mtimeNs?: number | bigint;
|
|
92
|
+
readonly ctimeNs?: number | bigint;
|
|
85
93
|
}
|
|
86
94
|
export interface OpencodeOperationObserverOptions {
|
|
87
95
|
readonly targetDirectory: string;
|
|
88
96
|
readonly commandRunner?: OperationObserverCommandRunner;
|
|
89
97
|
readonly remoteCommandRunner?: OperationObserverRemoteCommandRunner;
|
|
90
98
|
readonly fileReader?: (filePath: string) => Uint8Array;
|
|
91
|
-
readonly symlinkReader?: (filePath: string) =>
|
|
99
|
+
readonly symlinkReader?: (filePath: string) => Uint8Array;
|
|
92
100
|
readonly statReader?: (filePath: string) => OperationObserverFileStat;
|
|
93
101
|
readonly realPath?: (filePath: string) => string;
|
|
94
102
|
readonly limits?: OperationObserverLimits;
|
|
@@ -99,5 +107,56 @@ export interface OpencodeOperationObserver {
|
|
|
99
107
|
snapshot(): Promise<OperationObserverResult>;
|
|
100
108
|
remoteSnapshot?(operation: RemoteOperation, phase: RemoteReadbackPhase): Promise<OperationObserverRemoteResult>;
|
|
101
109
|
}
|
|
110
|
+
/** Git object format; selects the hash used for blob ids. */
|
|
111
|
+
export type ObjectFormat = 'sha1' | 'sha256';
|
|
112
|
+
export type WorktreeRecordKind = 'regular' | 'symlink' | 'gitlink' | 'missing';
|
|
113
|
+
/**
|
|
114
|
+
* One record per observed path. `id` is the git blob id of the raw bytes read
|
|
115
|
+
* (a symlink's target bytes for a symlink), or the submodule `HEAD` for a
|
|
116
|
+
* gitlink. A `missing` path (listed but gone by the time it was read) has an
|
|
117
|
+
* empty `mode` and no `id`.
|
|
118
|
+
*/
|
|
119
|
+
export interface WorktreeRecord {
|
|
120
|
+
readonly path: string;
|
|
121
|
+
readonly kind: WorktreeRecordKind;
|
|
122
|
+
/** Git-style mode: `100644`, `100755`, `120000` or `160000`. */
|
|
123
|
+
readonly mode: string;
|
|
124
|
+
readonly id: string | undefined;
|
|
125
|
+
}
|
|
102
126
|
export declare function validateRegisteredWorktree(candidateDirectory: string, parentIdentity: RegisteredWorktreeParentIdentity, options?: RegisteredWorktreeValidationOptions): RegisteredWorktreeValidationResult;
|
|
127
|
+
/**
|
|
128
|
+
* Feeds one variable-length field into a digest as `<byte length>:<bytes>`, so
|
|
129
|
+
* the boundary between two fields is part of what is hashed. Without it, a
|
|
130
|
+
* file whose content spells out the next record would hash like two files.
|
|
131
|
+
*
|
|
132
|
+
* @internal Exported for the framing test only.
|
|
133
|
+
*/
|
|
134
|
+
export declare function hashField(hash: ReturnType<typeof createHash>, field: string | Uint8Array): void;
|
|
135
|
+
export interface HeadTreeEntry {
|
|
136
|
+
readonly mode: string;
|
|
137
|
+
readonly id: string;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Gitlinks that only `HEAD` lists and that now have paths beneath them. A
|
|
141
|
+
* gitlink in the index is current, so it is never displaced: a populated
|
|
142
|
+
* directory without `.git` there is still malformed.
|
|
143
|
+
*
|
|
144
|
+
* `sortedPaths` must be in UTF-8 byte order, as the path set is.
|
|
145
|
+
*
|
|
146
|
+
* @internal Exported for tests only.
|
|
147
|
+
*/
|
|
148
|
+
export declare function findDisplacedGitlinks(sortedPaths: readonly string[], indexModes: ReadonlyMap<string, string>, headTree: ReadonlyMap<string, HeadTreeEntry>): ReadonlySet<string>;
|
|
149
|
+
/**
|
|
150
|
+
* @internal Test hook: runs the worktree read on its own and returns the path
|
|
151
|
+
* records beside the digest. The observer API does not expose records.
|
|
152
|
+
*/
|
|
153
|
+
export declare function readWorktreeRecords(targetDirectory: string, options?: Omit<OpencodeOperationObserverOptions, 'targetDirectory' | 'remoteCommandRunner'>): {
|
|
154
|
+
status: 'ok';
|
|
155
|
+
digest: string;
|
|
156
|
+
records: readonly WorktreeRecord[];
|
|
157
|
+
headTree: ReadonlyMap<string, HeadTreeEntry>;
|
|
158
|
+
} | {
|
|
159
|
+
status: 'error';
|
|
160
|
+
reasonCode: OperationObserverReasonCode;
|
|
161
|
+
};
|
|
103
162
|
export declare function createOpencodeOperationObserver(options: OpencodeOperationObserverOptions): OpencodeOperationObserver;
|
package/dist/pi.js
CHANGED
|
@@ -3557,7 +3557,7 @@ var BUNDLED_SKILL_NAMES = [
|
|
|
3557
3557
|
"writing-skills"
|
|
3558
3558
|
];
|
|
3559
3559
|
|
|
3560
|
-
// node_modules/.bun/zod@4.6.
|
|
3560
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/util.js
|
|
3561
3561
|
function getEnumValues(entries) {
|
|
3562
3562
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
3563
3563
|
const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -3903,6 +3903,18 @@ function prefixIssues(path, issues) {
|
|
|
3903
3903
|
function unwrapMessage(message) {
|
|
3904
3904
|
return typeof message === "string" ? message : message?.message;
|
|
3905
3905
|
}
|
|
3906
|
+
function sizeCaps(defChecks) {
|
|
3907
|
+
const caps = [];
|
|
3908
|
+
for (const ch of defChecks ?? []) {
|
|
3909
|
+
const d = ch._zod.def;
|
|
3910
|
+
if (!/_(length|size)$|_equals$/.test(d.check))
|
|
3911
|
+
break;
|
|
3912
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
3913
|
+
if (max >= 0)
|
|
3914
|
+
caps.push([max, ch]);
|
|
3915
|
+
}
|
|
3916
|
+
return caps;
|
|
3917
|
+
}
|
|
3906
3918
|
function attachSchema(issues, start, inst) {
|
|
3907
3919
|
var _a;
|
|
3908
3920
|
for (let i = start;i < issues.length; i++) {
|
|
@@ -4100,7 +4112,7 @@ function constantCatch(value) {
|
|
|
4100
4112
|
return fn;
|
|
4101
4113
|
}
|
|
4102
4114
|
|
|
4103
|
-
// node_modules/.bun/zod@4.6.
|
|
4115
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/core.js
|
|
4104
4116
|
var _a;
|
|
4105
4117
|
var _zodDesc = { value: undefined, enumerable: false };
|
|
4106
4118
|
var _E = "captureStackTrace" in Error ? Error : null;
|
|
@@ -4218,7 +4230,7 @@ function config(newConfig) {
|
|
|
4218
4230
|
Object.assign(globalConfig, newConfig);
|
|
4219
4231
|
return globalConfig;
|
|
4220
4232
|
}
|
|
4221
|
-
// node_modules/.bun/zod@4.6.
|
|
4233
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/errors.js
|
|
4222
4234
|
function _getMessage() {
|
|
4223
4235
|
const internals = this._zod;
|
|
4224
4236
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -4333,7 +4345,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
4333
4345
|
return fieldErrors;
|
|
4334
4346
|
}
|
|
4335
4347
|
|
|
4336
|
-
// node_modules/.bun/zod@4.6.
|
|
4348
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/parse.js
|
|
4337
4349
|
function finalizeParams(callee, params) {
|
|
4338
4350
|
return { callee: params?.callee ?? callee, Err: params?.Err };
|
|
4339
4351
|
}
|
|
@@ -4480,7 +4492,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
4480
4492
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
4481
4493
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
4482
4494
|
};
|
|
4483
|
-
// node_modules/.bun/zod@4.6.
|
|
4495
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/regexes.js
|
|
4484
4496
|
var cuid = /^[cC][0-9a-z]{6,}$/;
|
|
4485
4497
|
var cuid2 = /^[0-9a-z]+$/;
|
|
4486
4498
|
var ulid = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
@@ -4538,7 +4550,7 @@ var boolean = /^(?:true|false)$/i;
|
|
|
4538
4550
|
var lowercase = /^[^A-Z]*$/;
|
|
4539
4551
|
var uppercase = /^[^a-z]*$/;
|
|
4540
4552
|
|
|
4541
|
-
// node_modules/.bun/zod@4.6.
|
|
4553
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/checks.js
|
|
4542
4554
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
4543
4555
|
var _a;
|
|
4544
4556
|
inst._zod ?? (inst._zod = {});
|
|
@@ -4854,7 +4866,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
4854
4866
|
};
|
|
4855
4867
|
});
|
|
4856
4868
|
|
|
4857
|
-
// node_modules/.bun/zod@4.6.
|
|
4869
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/doc.js
|
|
4858
4870
|
class Doc {
|
|
4859
4871
|
constructor(args = [], closed = {}) {
|
|
4860
4872
|
this.content = [];
|
|
@@ -4896,14 +4908,14 @@ ${content.join(`
|
|
|
4896
4908
|
}
|
|
4897
4909
|
}
|
|
4898
4910
|
|
|
4899
|
-
// node_modules/.bun/zod@4.6.
|
|
4911
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/versions.js
|
|
4900
4912
|
var version = {
|
|
4901
4913
|
major: 4,
|
|
4902
4914
|
minor: 6,
|
|
4903
|
-
patch:
|
|
4915
|
+
patch: 6
|
|
4904
4916
|
};
|
|
4905
4917
|
|
|
4906
|
-
// node_modules/.bun/zod@4.6.
|
|
4918
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/schemas.js
|
|
4907
4919
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
4908
4920
|
var _a;
|
|
4909
4921
|
inst ?? (inst = {});
|
|
@@ -5452,6 +5464,29 @@ var $ZodNever = /* @__PURE__ */ $constructor("$ZodNever", (inst, def) => {
|
|
|
5452
5464
|
return payload;
|
|
5453
5465
|
};
|
|
5454
5466
|
});
|
|
5467
|
+
function capSize(inst, size) {
|
|
5468
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
5469
|
+
if (!caps.length)
|
|
5470
|
+
return;
|
|
5471
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
5472
|
+
const parse = inst._zod.parse;
|
|
5473
|
+
inst._zod.parse = (payload, ctx) => {
|
|
5474
|
+
const n = size(payload.value);
|
|
5475
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
5476
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
5477
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
5478
|
+
const start = payload.issues.length;
|
|
5479
|
+
ch._zod.check(payload);
|
|
5480
|
+
payload.issues[start].continue = false;
|
|
5481
|
+
attachSchema(payload.issues, start, inst);
|
|
5482
|
+
return payload;
|
|
5483
|
+
}
|
|
5484
|
+
}
|
|
5485
|
+
}
|
|
5486
|
+
return parse(payload, ctx);
|
|
5487
|
+
};
|
|
5488
|
+
}
|
|
5489
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
5455
5490
|
function handleArrayResult(result, final, index) {
|
|
5456
5491
|
if (result.issues.length) {
|
|
5457
5492
|
final.issues.push(...prefixIssues(index, result.issues));
|
|
@@ -5495,6 +5530,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
5495
5530
|
}
|
|
5496
5531
|
return payload;
|
|
5497
5532
|
};
|
|
5533
|
+
capSize(inst, arraySize);
|
|
5498
5534
|
});
|
|
5499
5535
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
5500
5536
|
const isPresent = key in input;
|
|
@@ -6432,7 +6468,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
6432
6468
|
payload.issues.push(issue(_iss));
|
|
6433
6469
|
}
|
|
6434
6470
|
}
|
|
6435
|
-
// node_modules/.bun/zod@4.6.
|
|
6471
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/memoizer.js
|
|
6436
6472
|
class $ZodCyclicError extends Error {
|
|
6437
6473
|
constructor() {
|
|
6438
6474
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -6701,7 +6737,7 @@ function isBackEdge(ctx, value) {
|
|
|
6701
6737
|
const backEdges = ctx[STATE]?.backEdges;
|
|
6702
6738
|
return backEdges !== undefined && isRef(value) && backEdges.has(value);
|
|
6703
6739
|
}
|
|
6704
|
-
// node_modules/.bun/zod@4.6.
|
|
6740
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/locales/en.js
|
|
6705
6741
|
var error = () => {
|
|
6706
6742
|
const Sizable = {
|
|
6707
6743
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -6823,7 +6859,7 @@ function en_default() {
|
|
|
6823
6859
|
localeError: error()
|
|
6824
6860
|
};
|
|
6825
6861
|
}
|
|
6826
|
-
// node_modules/.bun/zod@4.6.
|
|
6862
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/registries.js
|
|
6827
6863
|
var _a2;
|
|
6828
6864
|
class $ZodRegistry {
|
|
6829
6865
|
constructor() {
|
|
@@ -6870,7 +6906,7 @@ function registry() {
|
|
|
6870
6906
|
}
|
|
6871
6907
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
6872
6908
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
6873
|
-
// node_modules/.bun/zod@4.6.
|
|
6909
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/api.js
|
|
6874
6910
|
function snapshotChecks(def) {
|
|
6875
6911
|
if (def.checks)
|
|
6876
6912
|
def.checks = [...def.checks];
|
|
@@ -7318,7 +7354,7 @@ function _check(fn, params) {
|
|
|
7318
7354
|
ch._zod.check = fn;
|
|
7319
7355
|
return ch;
|
|
7320
7356
|
}
|
|
7321
|
-
// node_modules/.bun/zod@4.6.
|
|
7357
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/to-json-schema.js
|
|
7322
7358
|
function assignProps(target, ...sources) {
|
|
7323
7359
|
for (const source of sources) {
|
|
7324
7360
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -7841,7 +7877,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
7841
7877
|
extractDefs(ctx, schema);
|
|
7842
7878
|
return finalize(ctx, schema);
|
|
7843
7879
|
};
|
|
7844
|
-
// node_modules/.bun/zod@4.6.
|
|
7880
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
7845
7881
|
var narrowMin = (agg, key, value) => {
|
|
7846
7882
|
if (agg[key] === undefined || value > agg[key])
|
|
7847
7883
|
agg[key] = value;
|
|
@@ -8366,7 +8402,7 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
8366
8402
|
const seen = ctx.seen.get(schema);
|
|
8367
8403
|
seen.ref = def.innerType;
|
|
8368
8404
|
};
|
|
8369
|
-
// node_modules/.bun/zod@4.6.
|
|
8405
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/errors.js
|
|
8370
8406
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
8371
8407
|
function _lazyMethod(proto, key, make) {
|
|
8372
8408
|
Object.defineProperty(proto, key, {
|
|
@@ -8411,7 +8447,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, undefi
|
|
|
8411
8447
|
Parent: Error
|
|
8412
8448
|
});
|
|
8413
8449
|
|
|
8414
|
-
// node_modules/.bun/zod@4.6.
|
|
8450
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/parse.js
|
|
8415
8451
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
8416
8452
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
8417
8453
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -8425,7 +8461,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
8425
8461
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
8426
8462
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
8427
8463
|
|
|
8428
|
-
// node_modules/.bun/zod@4.6.
|
|
8464
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/schemas.js
|
|
8429
8465
|
function _ensureDefaultLocale() {
|
|
8430
8466
|
if (!globalConfig.localeError)
|
|
8431
8467
|
config(en_default());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fro.bot/systematic",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.4",
|
|
4
4
|
"description": "Compound-engineering loops for OpenCode, Pi, and Claude Code",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://fro.bot/systematic",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"jsonc-parser": "^3.3.0",
|
|
123
123
|
"tree-sitter-bash": "0.25.1",
|
|
124
124
|
"web-tree-sitter": "0.27.1",
|
|
125
|
-
"zod": "4.6.
|
|
125
|
+
"zod": "4.6.6"
|
|
126
126
|
},
|
|
127
127
|
"overrides": {
|
|
128
128
|
"@earendil-works/pi-ai": "0.83.0",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// biome-ignore-all assist/source/organizeImports: generated bundle
|
|
3
3
|
// Generated by scripts/generate-ce-review-validator.ts; do not edit by hand.
|
|
4
4
|
// Run `bun run ce-review-validator:build` to regenerate.
|
|
5
|
-
// source-digest:
|
|
5
|
+
// source-digest: d0a61dacb5d9963752c917e75a3e03d4a9a318973da276e3dcbb1f6137299c75
|
|
6
6
|
var __defProp = Object.defineProperty
|
|
7
7
|
var __returnValue = (v) => v
|
|
8
8
|
function __exportSetter(name, newValue) {
|
|
@@ -18,6 +18,19 @@ var __export = (target, all) => {
|
|
|
18
18
|
})
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/iso.js
|
|
22
|
+
var exports_iso = {}
|
|
23
|
+
__export(exports_iso, {
|
|
24
|
+
ZodISODate: () => ZodISODate,
|
|
25
|
+
ZodISODateTime: () => ZodISODateTime,
|
|
26
|
+
ZodISODuration: () => ZodISODuration,
|
|
27
|
+
ZodISOTime: () => ZodISOTime,
|
|
28
|
+
date: () => date2,
|
|
29
|
+
datetime: () => datetime2,
|
|
30
|
+
duration: () => duration2,
|
|
31
|
+
time: () => time2,
|
|
32
|
+
})
|
|
33
|
+
|
|
21
34
|
// src/ce-review-validator.ts
|
|
22
35
|
import fs3 from 'node:fs'
|
|
23
36
|
import { fileURLToPath } from 'node:url'
|
|
@@ -173,7 +186,7 @@ function resolveReviewArtifactPath(input, cwd, options = {}) {
|
|
|
173
186
|
return { ok: true, path: canonicalTarget }
|
|
174
187
|
}
|
|
175
188
|
|
|
176
|
-
// node_modules/.bun/zod@4.6.
|
|
189
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/util.js
|
|
177
190
|
function getEnumValues(entries) {
|
|
178
191
|
const numericValues = Object.values(entries).filter(
|
|
179
192
|
(v) => typeof v === 'number',
|
|
@@ -560,6 +573,16 @@ function prefixIssues(path, issues) {
|
|
|
560
573
|
function unwrapMessage(message) {
|
|
561
574
|
return typeof message === 'string' ? message : message?.message
|
|
562
575
|
}
|
|
576
|
+
function sizeCaps(defChecks) {
|
|
577
|
+
const caps = []
|
|
578
|
+
for (const ch of defChecks ?? []) {
|
|
579
|
+
const d = ch._zod.def
|
|
580
|
+
if (!/_(length|size)$|_equals$/.test(d.check)) break
|
|
581
|
+
const max = d.maximum ?? d.length ?? d.size
|
|
582
|
+
if (max >= 0) caps.push([max, ch])
|
|
583
|
+
}
|
|
584
|
+
return caps
|
|
585
|
+
}
|
|
563
586
|
function attachSchema(issues, start, inst) {
|
|
564
587
|
var _a
|
|
565
588
|
for (let i = start; i < issues.length; i++) {
|
|
@@ -794,7 +817,7 @@ function constantCatch(value) {
|
|
|
794
817
|
return fn
|
|
795
818
|
}
|
|
796
819
|
|
|
797
|
-
// node_modules/.bun/zod@4.6.
|
|
820
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/core.js
|
|
798
821
|
var _a
|
|
799
822
|
var _zodDesc = { value: undefined, enumerable: false }
|
|
800
823
|
var _E = 'captureStackTrace' in Error ? Error : null
|
|
@@ -908,7 +931,7 @@ function config(newConfig) {
|
|
|
908
931
|
if (newConfig) Object.assign(globalConfig, newConfig)
|
|
909
932
|
return globalConfig
|
|
910
933
|
}
|
|
911
|
-
// node_modules/.bun/zod@4.6.
|
|
934
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/errors.js
|
|
912
935
|
function _getMessage() {
|
|
913
936
|
const internals = this._zod
|
|
914
937
|
internals.message ??
|
|
@@ -1045,7 +1068,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
1045
1068
|
return fieldErrors
|
|
1046
1069
|
}
|
|
1047
1070
|
|
|
1048
|
-
// node_modules/.bun/zod@4.6.
|
|
1071
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/parse.js
|
|
1049
1072
|
function finalizeParams(callee, params) {
|
|
1050
1073
|
return { callee: params?.callee ?? callee, Err: params?.Err }
|
|
1051
1074
|
}
|
|
@@ -1207,7 +1230,7 @@ var _safeEncodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
1207
1230
|
var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
1208
1231
|
return _safeParseAsync(_Err)(schema, value, _ctx)
|
|
1209
1232
|
}
|
|
1210
|
-
// node_modules/.bun/zod@4.6.
|
|
1233
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/regexes.js
|
|
1211
1234
|
var cuid = /^[cC][0-9a-z]{6,}$/
|
|
1212
1235
|
var cuid2 = /^[0-9a-z]+$/
|
|
1213
1236
|
var ulid = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/
|
|
@@ -1284,7 +1307,7 @@ var boolean = /^(?:true|false)$/i
|
|
|
1284
1307
|
var lowercase = /^[^A-Z]*$/
|
|
1285
1308
|
var uppercase = /^[^a-z]*$/
|
|
1286
1309
|
|
|
1287
|
-
// node_modules/.bun/zod@4.6.
|
|
1310
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/checks.js
|
|
1288
1311
|
var $ZodCheck = /* @__PURE__ */ $constructor('$ZodCheck', (inst, def) => {
|
|
1289
1312
|
var _a
|
|
1290
1313
|
inst._zod ?? (inst._zod = {})
|
|
@@ -1664,7 +1687,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor(
|
|
|
1664
1687
|
},
|
|
1665
1688
|
)
|
|
1666
1689
|
|
|
1667
|
-
// node_modules/.bun/zod@4.6.
|
|
1690
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/doc.js
|
|
1668
1691
|
class Doc {
|
|
1669
1692
|
constructor(args = [], closed = {}) {
|
|
1670
1693
|
this.content = []
|
|
@@ -1715,14 +1738,14 @@ ${content.join(`
|
|
|
1715
1738
|
}
|
|
1716
1739
|
}
|
|
1717
1740
|
|
|
1718
|
-
// node_modules/.bun/zod@4.6.
|
|
1741
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/versions.js
|
|
1719
1742
|
var version = {
|
|
1720
1743
|
major: 4,
|
|
1721
1744
|
minor: 6,
|
|
1722
|
-
patch:
|
|
1745
|
+
patch: 6,
|
|
1723
1746
|
}
|
|
1724
1747
|
|
|
1725
|
-
// node_modules/.bun/zod@4.6.
|
|
1748
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/schemas.js
|
|
1726
1749
|
var $ZodType = /* @__PURE__ */ $constructor(
|
|
1727
1750
|
'$ZodType',
|
|
1728
1751
|
(inst, def) => {
|
|
@@ -2298,6 +2321,28 @@ var $ZodNever = /* @__PURE__ */ $constructor('$ZodNever', (inst, def) => {
|
|
|
2298
2321
|
return payload
|
|
2299
2322
|
}
|
|
2300
2323
|
})
|
|
2324
|
+
function capSize(inst, size) {
|
|
2325
|
+
const caps = sizeCaps(inst._zod.def.checks)
|
|
2326
|
+
if (!caps.length) return
|
|
2327
|
+
const cap = Math.min(...caps.map((c) => c[0]))
|
|
2328
|
+
const parse = inst._zod.parse
|
|
2329
|
+
inst._zod.parse = (payload, ctx) => {
|
|
2330
|
+
const n = size(payload.value)
|
|
2331
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== 'backward') {
|
|
2332
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
|
|
2333
|
+
if (n > max && ch._zod.def.when(payload)) {
|
|
2334
|
+
const start = payload.issues.length
|
|
2335
|
+
ch._zod.check(payload)
|
|
2336
|
+
payload.issues[start].continue = false
|
|
2337
|
+
attachSchema(payload.issues, start, inst)
|
|
2338
|
+
return payload
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
}
|
|
2342
|
+
return parse(payload, ctx)
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
var arraySize = (input) => (Array.isArray(input) ? input.length : -1)
|
|
2301
2346
|
function handleArrayResult(result, final, index) {
|
|
2302
2347
|
if (result.issues.length) {
|
|
2303
2348
|
final.issues.push(...prefixIssues(index, result.issues))
|
|
@@ -2347,6 +2392,7 @@ var $ZodArray = /* @__PURE__ */ $constructor('$ZodArray', (inst, def) => {
|
|
|
2347
2392
|
}
|
|
2348
2393
|
return payload
|
|
2349
2394
|
}
|
|
2395
|
+
capSize(inst, arraySize)
|
|
2350
2396
|
})
|
|
2351
2397
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
2352
2398
|
const isPresent = key in input
|
|
@@ -3309,7 +3355,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
3309
3355
|
payload.issues.push(issue(_iss))
|
|
3310
3356
|
}
|
|
3311
3357
|
}
|
|
3312
|
-
// node_modules/.bun/zod@4.6.
|
|
3358
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/memoizer.js
|
|
3313
3359
|
class $ZodCyclicError extends Error {
|
|
3314
3360
|
constructor() {
|
|
3315
3361
|
super(`Cannot parse a reference cycle that closes through a transform`)
|
|
@@ -3566,7 +3612,7 @@ function isBackEdge(ctx, value) {
|
|
|
3566
3612
|
const backEdges = ctx[STATE]?.backEdges
|
|
3567
3613
|
return backEdges !== undefined && isRef(value) && backEdges.has(value)
|
|
3568
3614
|
}
|
|
3569
|
-
// node_modules/.bun/zod@4.6.
|
|
3615
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/locales/en.js
|
|
3570
3616
|
var error = () => {
|
|
3571
3617
|
const Sizable = {
|
|
3572
3618
|
string: { unit: 'characters', verb: 'to have' },
|
|
@@ -3696,7 +3742,7 @@ function en_default() {
|
|
|
3696
3742
|
localeError: error(),
|
|
3697
3743
|
}
|
|
3698
3744
|
}
|
|
3699
|
-
// node_modules/.bun/zod@4.6.
|
|
3745
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/registries.js
|
|
3700
3746
|
var _a2
|
|
3701
3747
|
class $ZodRegistry {
|
|
3702
3748
|
constructor() {
|
|
@@ -3744,7 +3790,7 @@ function registry() {
|
|
|
3744
3790
|
;(_a2 = globalThis).__zod_globalRegistry ??
|
|
3745
3791
|
(_a2.__zod_globalRegistry = registry())
|
|
3746
3792
|
var globalRegistry = globalThis.__zod_globalRegistry
|
|
3747
|
-
// node_modules/.bun/zod@4.6.
|
|
3793
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/api.js
|
|
3748
3794
|
function snapshotChecks(def) {
|
|
3749
3795
|
if (def.checks) def.checks = [...def.checks]
|
|
3750
3796
|
return def
|
|
@@ -4193,7 +4239,7 @@ function _check(fn, params) {
|
|
|
4193
4239
|
ch._zod.check = fn
|
|
4194
4240
|
return ch
|
|
4195
4241
|
}
|
|
4196
|
-
// node_modules/.bun/zod@4.6.
|
|
4242
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/to-json-schema.js
|
|
4197
4243
|
function assignProps(target, ...sources) {
|
|
4198
4244
|
for (const source of sources) {
|
|
4199
4245
|
for (const key of Reflect.ownKeys(source)) {
|
|
@@ -4748,7 +4794,7 @@ var createStandardJSONSchemaMethod =
|
|
|
4748
4794
|
extractDefs(ctx, schema)
|
|
4749
4795
|
return finalize(ctx, schema)
|
|
4750
4796
|
}
|
|
4751
|
-
// node_modules/.bun/zod@4.6.
|
|
4797
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
4752
4798
|
var narrowMin = (agg, key, value) => {
|
|
4753
4799
|
if (agg[key] === undefined || value > agg[key]) agg[key] = value
|
|
4754
4800
|
}
|
|
@@ -5238,7 +5284,7 @@ var optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
5238
5284
|
const seen = ctx.seen.get(schema)
|
|
5239
5285
|
seen.ref = def.innerType
|
|
5240
5286
|
}
|
|
5241
|
-
// node_modules/.bun/zod@4.6.
|
|
5287
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/errors.js
|
|
5242
5288
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([
|
|
5243
5289
|
Object.prototype,
|
|
5244
5290
|
Error.prototype,
|
|
@@ -5302,7 +5348,7 @@ var ZodRealError = /* @__PURE__ */ $constructor(
|
|
|
5302
5348
|
},
|
|
5303
5349
|
)
|
|
5304
5350
|
|
|
5305
|
-
// node_modules/.bun/zod@4.6.
|
|
5351
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/parse.js
|
|
5306
5352
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError)
|
|
5307
5353
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError)
|
|
5308
5354
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError)
|
|
@@ -5316,7 +5362,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError)
|
|
|
5316
5362
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError)
|
|
5317
5363
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError)
|
|
5318
5364
|
|
|
5319
|
-
// node_modules/.bun/zod@4.6.
|
|
5365
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/schemas.js
|
|
5320
5366
|
function _ensureDefaultLocale() {
|
|
5321
5367
|
if (!globalConfig.localeError) config(en_default())
|
|
5322
5368
|
}
|
|
@@ -6285,18 +6331,7 @@ function refine(fn, _params = {}) {
|
|
|
6285
6331
|
function superRefine(fn, params) {
|
|
6286
6332
|
return _superRefine(fn, params)
|
|
6287
6333
|
}
|
|
6288
|
-
// node_modules/.bun/zod@4.6.
|
|
6289
|
-
var exports_iso = {}
|
|
6290
|
-
__export(exports_iso, {
|
|
6291
|
-
ZodISODate: () => ZodISODate,
|
|
6292
|
-
ZodISODateTime: () => ZodISODateTime,
|
|
6293
|
-
ZodISODuration: () => ZodISODuration,
|
|
6294
|
-
ZodISOTime: () => ZodISOTime,
|
|
6295
|
-
date: () => date2,
|
|
6296
|
-
datetime: () => datetime2,
|
|
6297
|
-
duration: () => duration2,
|
|
6298
|
-
time: () => time2,
|
|
6299
|
-
})
|
|
6334
|
+
// node_modules/.bun/zod@4.6.6/node_modules/zod/v4/classic/iso.js
|
|
6300
6335
|
function datetime2(params) {
|
|
6301
6336
|
return _isoDateTime(ZodISODateTime, params)
|
|
6302
6337
|
}
|