@kitman-sh/cli 0.25.0 → 0.26.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/dist/{chunk-30s4vp2g.js → chunk-007n8acn.js} +1 -1
- package/dist/{chunk-1ync8395.js → chunk-1vnvmeqr.js} +3 -3
- package/dist/{chunk-4z5s9xtq.js → chunk-220vzyz9.js} +4 -4
- package/dist/{chunk-rbpn35g5.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-znhjs0t6.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-e491q405.js → chunk-7re3n1ze.js} +10 -10
- package/dist/{chunk-fmjgw6fw.js → chunk-83nqkmbj.js} +1 -1
- package/dist/{chunk-eshk0da5.js → chunk-8t2wcrvv.js} +2 -2
- package/dist/{chunk-3x8t5408.js → chunk-aax2a975.js} +24 -24
- package/dist/{chunk-j021bman.js → chunk-bsgvmq34.js} +60 -14
- package/dist/{chunk-63b19adg.js → chunk-dfvamygr.js} +113 -78
- package/dist/{chunk-61dmxexa.js → chunk-h2f26xbd.js} +28 -70
- package/dist/{chunk-sm340tvm.js → chunk-j4b1yvcd.js} +17 -26
- package/dist/{chunk-p34frxzr.js → chunk-ja48xvcs.js} +9 -9
- package/dist/{chunk-xk96db4j.js → chunk-ks4q040v.js} +6 -6
- package/dist/{chunk-yh0v42dk.js → chunk-mvqggmpj.js} +19 -19
- package/dist/{chunk-fyjet273.js → chunk-npfdbssf.js} +4 -4
- package/dist/{chunk-4qrb09w4.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-7wyejgj2.js → chunk-sc93ezsw.js} +22 -22
- package/dist/{chunk-5c1vqpf3.js → chunk-t6ynnbcb.js} +7 -7
- package/dist/{chunk-1hgsf81a.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-gf62mx34.js → chunk-vv7zg8rb.js} +5 -5
- package/dist/{chunk-q8e58p57.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-1phk7q49.js → chunk-xppw33hz.js} +125 -116
- package/dist/{chunk-py3zfen9.js → chunk-z05pkzhf.js} +10 -10
- package/dist/{chunk-zn881qsb.js → chunk-zysde2fp.js} +9 -9
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
isFailure2,
|
|
44
44
|
hasInterrupts,
|
|
45
45
|
makeUnsafe5,
|
|
46
|
-
|
|
46
|
+
make16,
|
|
47
47
|
_await,
|
|
48
48
|
fail5,
|
|
49
49
|
isDoneUnsafe,
|
|
@@ -172,53 +172,7 @@ import {
|
|
|
172
172
|
decodeJsonStringSync,
|
|
173
173
|
encodeUnknownJsonStringSync,
|
|
174
174
|
storable
|
|
175
|
-
} from "./chunk-
|
|
176
|
-
import {
|
|
177
|
-
join,
|
|
178
|
-
interrupt,
|
|
179
|
-
unbounded,
|
|
180
|
-
publishUnsafe,
|
|
181
|
-
unbounded2,
|
|
182
|
-
offer,
|
|
183
|
-
makeUnsafe3,
|
|
184
|
-
make10,
|
|
185
|
-
fromQueue,
|
|
186
|
-
fromPubSub,
|
|
187
|
-
map2,
|
|
188
|
-
filter,
|
|
189
|
-
take2,
|
|
190
|
-
mapAccum,
|
|
191
|
-
decodeText,
|
|
192
|
-
encodeText,
|
|
193
|
-
splitLines,
|
|
194
|
-
run,
|
|
195
|
-
runCollect,
|
|
196
|
-
runFold,
|
|
197
|
-
runHead,
|
|
198
|
-
runForEach,
|
|
199
|
-
FileSystem,
|
|
200
|
-
Path,
|
|
201
|
-
embeddedFile,
|
|
202
|
-
extractEmbeddedFile,
|
|
203
|
-
optionalEnv,
|
|
204
|
-
operatorConfigHome,
|
|
205
|
-
tempDirectoryScoped,
|
|
206
|
-
harnessesUnsupportedInSrt2,
|
|
207
|
-
harnessesUnsupportedInDocker2,
|
|
208
|
-
compiled2,
|
|
209
|
-
pinnedSrtCommand2,
|
|
210
|
-
pinnedSrtStepCommand2,
|
|
211
|
-
runSrtCli2,
|
|
212
|
-
kitmanCacheDirectory2,
|
|
213
|
-
srtSettings2,
|
|
214
|
-
srtCacheEnvironment2,
|
|
215
|
-
srtInheritedEnv2,
|
|
216
|
-
inheritedEnvironment2,
|
|
217
|
-
withOnlyEnvironment2,
|
|
218
|
-
writeSrtSettings2,
|
|
219
|
-
srtStepArgv2,
|
|
220
|
-
srtArgv2
|
|
221
|
-
} from "./chunk-sm340tvm.js";
|
|
175
|
+
} from "./chunk-h2f26xbd.js";
|
|
222
176
|
import {
|
|
223
177
|
currentTimeMillis,
|
|
224
178
|
SecureRandom,
|
|
@@ -307,7 +261,53 @@ import {
|
|
|
307
261
|
checkServicesFile,
|
|
308
262
|
checkServices,
|
|
309
263
|
serviceChecks
|
|
310
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-xppw33hz.js";
|
|
265
|
+
import {
|
|
266
|
+
join,
|
|
267
|
+
interrupt,
|
|
268
|
+
unbounded,
|
|
269
|
+
publishUnsafe,
|
|
270
|
+
unbounded2,
|
|
271
|
+
offer,
|
|
272
|
+
makeUnsafe3,
|
|
273
|
+
make11,
|
|
274
|
+
fromQueue,
|
|
275
|
+
fromPubSub,
|
|
276
|
+
map2,
|
|
277
|
+
filter,
|
|
278
|
+
take2,
|
|
279
|
+
mapAccum,
|
|
280
|
+
decodeText,
|
|
281
|
+
encodeText,
|
|
282
|
+
splitLines,
|
|
283
|
+
run,
|
|
284
|
+
runCollect,
|
|
285
|
+
runFold,
|
|
286
|
+
runHead,
|
|
287
|
+
runForEach,
|
|
288
|
+
FileSystem,
|
|
289
|
+
Path,
|
|
290
|
+
embeddedFile,
|
|
291
|
+
extractEmbeddedFile,
|
|
292
|
+
optionalEnv,
|
|
293
|
+
operatorConfigHome,
|
|
294
|
+
tempDirectoryScoped,
|
|
295
|
+
harnessesUnsupportedInSrt2,
|
|
296
|
+
harnessesUnsupportedInDocker2,
|
|
297
|
+
compiled2,
|
|
298
|
+
pinnedSrtCommand2,
|
|
299
|
+
pinnedSrtStepCommand2,
|
|
300
|
+
runSrtCli2,
|
|
301
|
+
kitmanCacheDirectory2,
|
|
302
|
+
srtSettings2,
|
|
303
|
+
srtCacheEnvironment2,
|
|
304
|
+
srtInheritedEnv2,
|
|
305
|
+
inheritedEnvironment2,
|
|
306
|
+
withOnlyEnvironment2,
|
|
307
|
+
writeSrtSettings2,
|
|
308
|
+
srtStepArgv2,
|
|
309
|
+
srtArgv2
|
|
310
|
+
} from "./chunk-j4b1yvcd.js";
|
|
311
311
|
import {
|
|
312
312
|
writeAgentEnvironmentConfigFile2,
|
|
313
313
|
readManifestSkillPaths2,
|
|
@@ -323,8 +323,8 @@ import {
|
|
|
323
323
|
applyAgentEnvironmentMaterialization2,
|
|
324
324
|
isPathWithin2,
|
|
325
325
|
skillIdentity2
|
|
326
|
-
} from "./chunk-
|
|
327
|
-
import"./chunk-
|
|
326
|
+
} from "./chunk-zysde2fp.js";
|
|
327
|
+
import"./chunk-1vnvmeqr.js";
|
|
328
328
|
import {
|
|
329
329
|
egressAllowed,
|
|
330
330
|
writeSecretRegistry,
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
secretFilter2,
|
|
335
335
|
opaqueTunnelRefusal2,
|
|
336
336
|
isOpaqueConnectReason2
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-vz38kngm.js";
|
|
338
338
|
import {
|
|
339
339
|
sliceBytes2,
|
|
340
340
|
maxLineBytes2,
|
|
@@ -342,29 +342,29 @@ import {
|
|
|
342
342
|
decodedOption2,
|
|
343
343
|
decoded2,
|
|
344
344
|
readOpencode2
|
|
345
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-7re3n1ze.js";
|
|
346
346
|
import {
|
|
347
347
|
uploadRunFile,
|
|
348
348
|
programLease,
|
|
349
349
|
rpcRunFiles,
|
|
350
350
|
programHostsEnv,
|
|
351
351
|
undeclaredHostsEnv
|
|
352
|
-
} from "./chunk-
|
|
353
|
-
import"./chunk-
|
|
352
|
+
} from "./chunk-ja48xvcs.js";
|
|
353
|
+
import"./chunk-t6ynnbcb.js";
|
|
354
354
|
import {
|
|
355
355
|
nextInt
|
|
356
|
-
} from "./chunk-
|
|
357
|
-
import"./chunk-
|
|
356
|
+
} from "./chunk-5kqt4bqp.js";
|
|
357
|
+
import"./chunk-tsx0347c.js";
|
|
358
358
|
import {
|
|
359
359
|
ChildProcessSpawner,
|
|
360
|
-
|
|
361
|
-
} from "./chunk-
|
|
362
|
-
import"./chunk-
|
|
360
|
+
make3
|
|
361
|
+
} from "./chunk-bsgvmq34.js";
|
|
362
|
+
import"./chunk-vv7zg8rb.js";
|
|
363
363
|
import {
|
|
364
364
|
Id,
|
|
365
365
|
secretReference,
|
|
366
366
|
secretPlaceholder
|
|
367
|
-
} from "./chunk-
|
|
367
|
+
} from "./chunk-4qjfn1sa.js";
|
|
368
368
|
|
|
369
369
|
// packages/core/src/sync-kit.ts
|
|
370
370
|
import { createHash } from "crypto";
|
|
@@ -8004,7 +8004,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
8004
8004
|
const input = yield* unbounded2();
|
|
8005
8005
|
const pending = new Map;
|
|
8006
8006
|
let lastId = 0;
|
|
8007
|
-
const handle = yield* spawner.spawn(
|
|
8007
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
8008
8008
|
cwd: env.home,
|
|
8009
8009
|
extendEnv: true,
|
|
8010
8010
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -8027,7 +8027,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
8027
8027
|
return {
|
|
8028
8028
|
request: (method, params) => gen(function* () {
|
|
8029
8029
|
const id = ++lastId;
|
|
8030
|
-
const deferred = yield*
|
|
8030
|
+
const deferred = yield* make16();
|
|
8031
8031
|
pending.set(id, deferred);
|
|
8032
8032
|
yield* send({ id, method, params });
|
|
8033
8033
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -8167,10 +8167,10 @@ var handshake = [
|
|
|
8167
8167
|
`).join("");
|
|
8168
8168
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
8169
8169
|
const spawner = yield* ChildProcessSpawner;
|
|
8170
|
-
const server = yield* spawner.spawn(
|
|
8170
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
8171
8171
|
extendEnv: true,
|
|
8172
8172
|
env: mcp.env,
|
|
8173
|
-
stdin: { stream:
|
|
8173
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
8174
8174
|
stderr: "ignore"
|
|
8175
8175
|
}));
|
|
8176
8176
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -8243,8 +8243,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
8243
8243
|
};
|
|
8244
8244
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
8245
8245
|
const spawner = yield* ChildProcessSpawner;
|
|
8246
|
-
const handle = yield* spawner.spawn(
|
|
8247
|
-
stdin:
|
|
8246
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
8247
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
8248
8248
|
stdout: "inherit",
|
|
8249
8249
|
stderr: "inherit",
|
|
8250
8250
|
extendEnv: false,
|
|
@@ -9051,12 +9051,36 @@ var without = (failures, taken) => {
|
|
|
9051
9051
|
printed: failures.printed.filter((name) => !printed.has(name))
|
|
9052
9052
|
};
|
|
9053
9053
|
};
|
|
9054
|
+
var holds = (suite, id) => {
|
|
9055
|
+
const at = suite.indexOf(" > ");
|
|
9056
|
+
if (at === -1)
|
|
9057
|
+
return false;
|
|
9058
|
+
const file = suite.slice(0, at);
|
|
9059
|
+
const name = suite.slice(at + 3);
|
|
9060
|
+
if (!id.startsWith(`${file} > `))
|
|
9061
|
+
return false;
|
|
9062
|
+
const path = id.slice(file.length + 3);
|
|
9063
|
+
return name === file || path.startsWith(`${name} > `) || path.includes(` > ${name} > `);
|
|
9064
|
+
};
|
|
9065
|
+
var outcomeIn = (statuses, id) => {
|
|
9066
|
+
const own = statuses.get(id);
|
|
9067
|
+
if (own !== undefined)
|
|
9068
|
+
return own;
|
|
9069
|
+
const inside = [...statuses].flatMap(([test, is]) => holds(id, test) ? [is] : []);
|
|
9070
|
+
if (inside.length === 0)
|
|
9071
|
+
return;
|
|
9072
|
+
return inside.includes("failed") ? "failed" : inside.includes("passed") ? "passed" : "skipped";
|
|
9073
|
+
};
|
|
9074
|
+
var failedInSetup = (ran) => {
|
|
9075
|
+
const skipped = withStatus(ran.statuses, "skipped");
|
|
9076
|
+
return withStatus(ran.statuses, "failed").filter((suite) => skipped.some((id) => holds(suite, id)));
|
|
9077
|
+
};
|
|
9054
9078
|
var passedIn = (ran, failures) => {
|
|
9055
9079
|
const passed = withStatus(ran.statuses, "passed");
|
|
9056
9080
|
const unmatched = new Set(printedNotReported(passed, failures.printed));
|
|
9057
9081
|
const passedUnreported = ran.statuses.size === 0 && ran.evidence.status === "passed";
|
|
9058
9082
|
return {
|
|
9059
|
-
reported: failures.reported.filter((id) => ran.statuses
|
|
9083
|
+
reported: failures.reported.filter((id) => outcomeIn(ran.statuses, id) === "passed"),
|
|
9060
9084
|
printed: failures.printed.filter((name) => passedUnreported || !unmatched.has(name))
|
|
9061
9085
|
};
|
|
9062
9086
|
};
|
|
@@ -9081,17 +9105,21 @@ var judged = (evidence) => ({
|
|
|
9081
9105
|
...evidence,
|
|
9082
9106
|
tests: { ...evidence.tests, environmentJudged: true }
|
|
9083
9107
|
});
|
|
9084
|
-
var afterFreshService = (first, again) => {
|
|
9108
|
+
var afterFreshService = (first, again, judging = failuresOf(first)) => {
|
|
9085
9109
|
const failures = failuresOf(first);
|
|
9086
|
-
const cleared = passedIn(again,
|
|
9110
|
+
const cleared = passedIn(again, judging);
|
|
9087
9111
|
const remaining = without(failures, cleared);
|
|
9088
9112
|
const newlyFailed = failedOnlyIn(again, failures);
|
|
9089
9113
|
const passedBefore = passedIn(first, newlyFailed);
|
|
9090
9114
|
const charged = without(newlyFailed, passedBefore);
|
|
9091
9115
|
const againPassed = again.evidence.status === "passed";
|
|
9116
|
+
const environmentJudged = hasNone(without(failures, judging));
|
|
9092
9117
|
const recovered = hasNone(remaining) && hasNone(charged) && (againPassed || !hasNone(failures) && !hasNone(newlyFailed));
|
|
9093
9118
|
if (!recovered && hasNone(cleared))
|
|
9094
|
-
return {
|
|
9119
|
+
return {
|
|
9120
|
+
...environmentJudged ? judged(first.evidence) : first.evidence,
|
|
9121
|
+
...bothFileIds(first.evidence, again.evidence)
|
|
9122
|
+
};
|
|
9095
9123
|
const ranFirst = new Set(first.evidence.tests.ranDigests);
|
|
9096
9124
|
const skippedTests = again.evidence.tests.skippedTests.filter((id) => !ranFirst.has(testDigest(id)));
|
|
9097
9125
|
const { failedTests: _failedAgain, ...againTests } = again.evidence.tests;
|
|
@@ -9120,7 +9148,7 @@ var afterFreshService = (first, again) => {
|
|
|
9120
9148
|
outputTail: first.evidence.outputTail,
|
|
9121
9149
|
...retryFailedTests.length === 0 ? undefined : { retryFailedTests }
|
|
9122
9150
|
},
|
|
9123
|
-
environmentJudged:
|
|
9151
|
+
...environmentJudged ? { environmentJudged } : undefined
|
|
9124
9152
|
}
|
|
9125
9153
|
};
|
|
9126
9154
|
};
|
|
@@ -9598,23 +9626,30 @@ var verificationExecutor = (input) => (work) => gen(function* () {
|
|
|
9598
9626
|
const rejudged = (entry) => entry.tree === baselineTree && failedOnPostgres.some((ran) => sameCheck(ran.evidence)(entry));
|
|
9599
9627
|
const baselineRan = comparable ? yield* runChecks(baseline, work.checks.filter((check) => check.pipeline !== true), baselineTree, known.filter((entry) => !rejudged(entry)), runIn(baseline), keeper("baseline-"), services(`${work.id}-baseline`)).pipe(scoped) : [];
|
|
9600
9628
|
const headRevision = (yield* runCommand2("git", ["-C", head, "rev-parse", "HEAD"])).trim();
|
|
9601
|
-
const onFreshService = (check, attempt) => gen(function* () {
|
|
9629
|
+
const onFreshService = (check, attempt, onPostgres) => gen(function* () {
|
|
9602
9630
|
const worktree = yield* checkouts.checkout({ runId: work.runId, id: `${work.id}-rerun`, baseRevision: headRevision }, work.repoBinding);
|
|
9603
9631
|
const run = runIn(worktree);
|
|
9604
9632
|
const fresh = services(`${work.id}-rerun-${attempt}`);
|
|
9605
9633
|
yield* installIn(worktree, run);
|
|
9606
9634
|
const postgres = yield* startedCheckPostgres(worktree, fresh, run);
|
|
9607
|
-
return postgres === undefined ? undefined : yield* runCheck(worktree, check, run, keeper("rerun-"), fresh, postgres);
|
|
9635
|
+
return postgres === undefined && onPostgres ? undefined : yield* runCheck(worktree, check, run, keeper("rerun-"), fresh, postgres);
|
|
9608
9636
|
}).pipe(scoped);
|
|
9609
9637
|
const headChecks = yield* forEach(firstHead, (ran, index) => gen(function* () {
|
|
9610
9638
|
const check = work.checks.find(sameCheck(ran.evidence));
|
|
9611
9639
|
const atBaseline = baselineRan.find((other) => sameCheck(other.evidence)(ran.evidence));
|
|
9612
|
-
if (check === undefined
|
|
9640
|
+
if (check === undefined)
|
|
9641
|
+
return ran.evidence;
|
|
9642
|
+
const judgesFailure = atBaseline !== undefined && failedOnPostgres.includes(ran) && passedAtBaseline(ran, atBaseline);
|
|
9643
|
+
const setupFailed = comparable && check.pipeline !== true && ran.evidence.status === "failed" ? failedInSetup(ran).filter((suite) => {
|
|
9644
|
+
const before = atBaseline === undefined ? undefined : outcomeIn(atBaseline.statuses, suite);
|
|
9645
|
+
return before !== "failed" && before !== "skipped";
|
|
9646
|
+
}) : [];
|
|
9647
|
+
if (!judgesFailure && setupFailed.length === 0)
|
|
9613
9648
|
return ran.evidence;
|
|
9614
|
-
|
|
9649
|
+
const again = yield* onFreshService(check, index + 1, ran.onPostgres);
|
|
9650
|
+
if (again === undefined)
|
|
9615
9651
|
return ran.evidence;
|
|
9616
|
-
|
|
9617
|
-
return again === undefined ? ran.evidence : afterFreshService(ran, again);
|
|
9652
|
+
return judgesFailure ? afterFreshService(ran, again) : afterFreshService(ran, again, { reported: setupFailed, printed: [] });
|
|
9618
9653
|
}));
|
|
9619
9654
|
const baselineChecks = baselineRan.filter((ran) => !known.some((entry) => entry.tree === baselineTree && sameCheck(ran.evidence)(entry))).map((ran) => ran.evidence);
|
|
9620
9655
|
return {
|
|
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
|
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
1333
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
|
|
1334
|
-
var
|
|
1334
|
+
var make14 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1335
1335
|
var isStrictEquivalent = (x, y) => x === y;
|
|
1336
1336
|
var strictEqual = () => isStrictEquivalent;
|
|
1337
1337
|
function Tuple(elements) {
|
|
1338
|
-
return
|
|
1338
|
+
return make14((self, that) => {
|
|
1339
1339
|
if (self.length !== that.length) {
|
|
1340
1340
|
return false;
|
|
1341
1341
|
}
|
|
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
1350
|
function Array_(item) {
|
|
1351
|
-
return
|
|
1351
|
+
return make14((self, that) => {
|
|
1352
1352
|
if (self.length !== that.length)
|
|
1353
1353
|
return false;
|
|
1354
1354
|
for (let i = 0;i < self.length; i++) {
|
|
@@ -1580,7 +1580,7 @@ var ServiceProto = {
|
|
|
1580
1580
|
return self;
|
|
1581
1581
|
},
|
|
1582
1582
|
context(self) {
|
|
1583
|
-
return
|
|
1583
|
+
return make15(this, self);
|
|
1584
1584
|
},
|
|
1585
1585
|
use(f) {
|
|
1586
1586
|
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
@@ -1684,7 +1684,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1684
1684
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1685
1685
|
var empty3 = () => emptyContext2;
|
|
1686
1686
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1687
|
-
var
|
|
1687
|
+
var make15 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1688
1688
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1689
1689
|
var addUnsafe = (self, key, service) => {
|
|
1690
1690
|
const impl = self;
|
|
@@ -3075,7 +3075,7 @@ class FiberImpl {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
let cause = causeInterrupt(fiberId);
|
|
3077
3077
|
if (this.cache.stackFrame) {
|
|
3078
|
-
cause = causeAnnotate(cause,
|
|
3078
|
+
cause = causeAnnotate(cause, make15(StackTraceKey, this.cache.stackFrame));
|
|
3079
3079
|
}
|
|
3080
3080
|
if (annotations) {
|
|
3081
3081
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -5183,7 +5183,7 @@ var DeferredImpl = function() {
|
|
|
5183
5183
|
};
|
|
5184
5184
|
DeferredImpl.prototype = DeferredProto;
|
|
5185
5185
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5186
|
-
var
|
|
5186
|
+
var make16 = () => sync(() => makeUnsafe5());
|
|
5187
5187
|
var _await = (self) => callback2((resume) => {
|
|
5188
5188
|
if (self.effect)
|
|
5189
5189
|
return resume(self.effect);
|
|
@@ -5331,9 +5331,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5331
5331
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5332
5332
|
var succeed5 = function() {
|
|
5333
5333
|
if (arguments.length === 1) {
|
|
5334
|
-
return (resource) => succeedContext(
|
|
5334
|
+
return (resource) => succeedContext(make15(arguments[0], resource));
|
|
5335
5335
|
}
|
|
5336
|
-
return succeedContext(
|
|
5336
|
+
return succeedContext(make15(arguments[0], arguments[1]));
|
|
5337
5337
|
};
|
|
5338
5338
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5339
5339
|
var effect = function() {
|
|
@@ -5342,7 +5342,7 @@ var effect = function() {
|
|
|
5342
5342
|
}
|
|
5343
5343
|
return effectImpl(arguments[0], arguments[1]);
|
|
5344
5344
|
};
|
|
5345
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5345
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make15(service, value)));
|
|
5346
5346
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5347
5347
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5348
5348
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -5985,48 +5985,6 @@ for (let i = 0;i < alphabet2.length; i++)
|
|
|
5985
5985
|
var decodeString = (str) => map5(decode2(str), (_) => decoder2.decode(_));
|
|
5986
5986
|
var decoder2 = /* @__PURE__ */ new TextDecoder;
|
|
5987
5987
|
|
|
5988
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
5989
|
-
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
5990
|
-
var value2 = (self) => {
|
|
5991
|
-
if (redactedRegistry.has(self)) {
|
|
5992
|
-
return redactedRegistry.get(self);
|
|
5993
|
-
} else {
|
|
5994
|
-
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
5995
|
-
}
|
|
5996
|
-
};
|
|
5997
|
-
|
|
5998
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
5999
|
-
var TypeId8 = "~effect/Redacted";
|
|
6000
|
-
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
6001
|
-
var make16 = (value, options) => {
|
|
6002
|
-
const self = Object.create(Proto2);
|
|
6003
|
-
if (options?.label) {
|
|
6004
|
-
self.label = options.label;
|
|
6005
|
-
}
|
|
6006
|
-
redactedRegistry.set(self, value);
|
|
6007
|
-
return self;
|
|
6008
|
-
};
|
|
6009
|
-
var Proto2 = {
|
|
6010
|
-
[TypeId8]: {
|
|
6011
|
-
_A: (_) => _
|
|
6012
|
-
},
|
|
6013
|
-
label: undefined,
|
|
6014
|
-
...PipeInspectableProto,
|
|
6015
|
-
toJSON() {
|
|
6016
|
-
return this.toString();
|
|
6017
|
-
},
|
|
6018
|
-
toString() {
|
|
6019
|
-
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
6020
|
-
},
|
|
6021
|
-
[symbol]() {
|
|
6022
|
-
return hash(redactedRegistry.get(this));
|
|
6023
|
-
},
|
|
6024
|
-
[symbol2](that) {
|
|
6025
|
-
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
6026
|
-
}
|
|
6027
|
-
};
|
|
6028
|
-
var value = value2;
|
|
6029
|
-
|
|
6030
5988
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
6031
5989
|
function resolve(ast) {
|
|
6032
5990
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -6058,16 +6016,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
6058
6016
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
6059
6017
|
|
|
6060
6018
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
6061
|
-
var
|
|
6019
|
+
var TypeId8 = "~effect/SchemaIssue/Issue";
|
|
6062
6020
|
function isIssue(u) {
|
|
6063
|
-
return hasProperty(u,
|
|
6021
|
+
return hasProperty(u, TypeId8) && u[TypeId8] === TypeId8;
|
|
6064
6022
|
}
|
|
6065
6023
|
function hasInput(issue) {
|
|
6066
6024
|
return Object.hasOwn(issue, "input");
|
|
6067
6025
|
}
|
|
6068
6026
|
|
|
6069
6027
|
class IssueNodeImpl {
|
|
6070
|
-
[
|
|
6028
|
+
[TypeId8] = TypeId8;
|
|
6071
6029
|
constructor(input, options) {
|
|
6072
6030
|
if (options?.reportInput === true && input !== missing) {
|
|
6073
6031
|
this.input = input;
|
|
@@ -6455,9 +6413,9 @@ function getContent(operation) {
|
|
|
6455
6413
|
}
|
|
6456
6414
|
|
|
6457
6415
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6458
|
-
var
|
|
6416
|
+
var TypeId9 = "~effect/SchemaTransformation/Transformation";
|
|
6459
6417
|
var Transformation = class extends Class3 {
|
|
6460
|
-
[
|
|
6418
|
+
[TypeId9] = TypeId9;
|
|
6461
6419
|
_tag = "Transformation";
|
|
6462
6420
|
decode;
|
|
6463
6421
|
encode;
|
|
@@ -6471,7 +6429,7 @@ var Transformation = class extends Class3 {
|
|
|
6471
6429
|
}
|
|
6472
6430
|
};
|
|
6473
6431
|
function isTransformation(u) {
|
|
6474
|
-
return hasProperty(u,
|
|
6432
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
6475
6433
|
}
|
|
6476
6434
|
var makeTransformation = (options) => {
|
|
6477
6435
|
if (isTransformation(options)) {
|
|
@@ -6591,10 +6549,10 @@ var Context = class {
|
|
|
6591
6549
|
this.annotations = annotations;
|
|
6592
6550
|
}
|
|
6593
6551
|
};
|
|
6594
|
-
var
|
|
6552
|
+
var TypeId10 = "~effect/Schema";
|
|
6595
6553
|
|
|
6596
6554
|
class ASTNodeImpl {
|
|
6597
|
-
[
|
|
6555
|
+
[TypeId10] = TypeId10;
|
|
6598
6556
|
annotations;
|
|
6599
6557
|
checks;
|
|
6600
6558
|
encoding;
|
|
@@ -8816,10 +8774,10 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8816
8774
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8817
8775
|
|
|
8818
8776
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8819
|
-
var
|
|
8777
|
+
var TypeId11 = "~effect/Schema/Schema";
|
|
8820
8778
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8821
8779
|
var SchemaProto = {
|
|
8822
|
-
[
|
|
8780
|
+
[TypeId11]: TypeId11,
|
|
8823
8781
|
get make() {
|
|
8824
8782
|
const value = make4(this);
|
|
8825
8783
|
Object.defineProperty(this, "make", {
|
|
@@ -10292,7 +10250,7 @@ function recur(ast) {
|
|
|
10292
10250
|
const rest = ast.rest.map(recur);
|
|
10293
10251
|
const [head, ...tail] = rest;
|
|
10294
10252
|
const tailLength = tail.length;
|
|
10295
|
-
return
|
|
10253
|
+
return make14((a, b) => {
|
|
10296
10254
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
10297
10255
|
return false;
|
|
10298
10256
|
}
|
|
@@ -10327,7 +10285,7 @@ function recur(ast) {
|
|
|
10327
10285
|
}
|
|
10328
10286
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
10329
10287
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
10330
|
-
return
|
|
10288
|
+
return make14((a, b) => {
|
|
10331
10289
|
if (!isObject(a) || !isObject(b)) {
|
|
10332
10290
|
return false;
|
|
10333
10291
|
}
|
|
@@ -10365,7 +10323,7 @@ function recur(ast) {
|
|
|
10365
10323
|
const types = toType2(ast).types;
|
|
10366
10324
|
const index = getCandidateIndex(types);
|
|
10367
10325
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
10368
|
-
return
|
|
10326
|
+
return make14((a, b) => {
|
|
10369
10327
|
const candidates = index(a, false);
|
|
10370
10328
|
for (let i = 0;i < candidates.length; i++) {
|
|
10371
10329
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -10378,7 +10336,7 @@ function recur(ast) {
|
|
|
10378
10336
|
}
|
|
10379
10337
|
case "Suspend": {
|
|
10380
10338
|
let equivalence;
|
|
10381
|
-
return
|
|
10339
|
+
return make14((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
10382
10340
|
}
|
|
10383
10341
|
}
|
|
10384
10342
|
}
|
|
@@ -10476,7 +10434,7 @@ function isSchemaError(u) {
|
|
|
10476
10434
|
}
|
|
10477
10435
|
|
|
10478
10436
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
10479
|
-
var
|
|
10437
|
+
var TypeId12 = TypeId11;
|
|
10480
10438
|
function declareConstructor() {
|
|
10481
10439
|
return (typeParameters, run, annotations) => {
|
|
10482
10440
|
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
@@ -10589,7 +10547,7 @@ function encodeUnknownSync(schema, options) {
|
|
|
10589
10547
|
var encodeSync = encodeUnknownSync;
|
|
10590
10548
|
var make17 = make5;
|
|
10591
10549
|
function isSchema(u) {
|
|
10592
|
-
return hasProperty(u,
|
|
10550
|
+
return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
|
|
10593
10551
|
}
|
|
10594
10552
|
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
10595
10553
|
schema
|
|
@@ -11489,7 +11447,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
11489
11447
|
}
|
|
11490
11448
|
});
|
|
11491
11449
|
}
|
|
11492
|
-
static [
|
|
11450
|
+
static [TypeId12] = TypeId12;
|
|
11493
11451
|
get [ClassTypeId]() {
|
|
11494
11452
|
return ClassTypeId;
|
|
11495
11453
|
}
|
|
@@ -11783,4 +11741,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
11783
11741
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
11784
11742
|
var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
|
|
11785
11743
|
|
|
11786
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype,
|
|
11744
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, chunksOf, empty4, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, map8, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, upTo, while_, setInputType, isEffect, all3, validate, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map9, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, encode3, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map10, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, link, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, TaggedClass2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|