@kitman-sh/cli 0.42.0 → 0.42.2
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-v9y1ene9.js → chunk-17715h5w.js} +35 -35
- package/dist/{chunk-mrgeje8k.js → chunk-1gr39h4v.js} +2 -2
- package/dist/{chunk-01ntfatw.js → chunk-1w517sym.js} +7 -7
- package/dist/{chunk-cnryphhh.js → chunk-2bt9e1fj.js} +5 -5
- package/dist/{chunk-ez61p8ef.js → chunk-33zd0yt4.js} +10 -10
- package/dist/{chunk-6x08g7m6.js → chunk-3gax0xq6.js} +2 -2
- package/dist/{chunk-bqbfyqx6.js → chunk-b4td2pgc.js} +61 -61
- package/dist/{chunk-5r3j4h21.js → chunk-c3ms91a6.js} +18 -18
- package/dist/{chunk-wy6gmtd9.js → chunk-dhe1fwhw.js} +2 -2
- package/dist/{chunk-ns26fbmk.js → chunk-drw8m50d.js} +2 -2
- package/dist/{chunk-jwtgfc34.js → chunk-gqgbah9q.js} +6 -6
- package/dist/{chunk-d4vhrja4.js → chunk-hfy8nmat.js} +3 -3
- package/dist/{chunk-netm7d3w.js → chunk-hg9y4ykj.js} +4 -4
- package/dist/{chunk-r4fs82ar.js → chunk-mc0xxx2z.js} +6 -6
- package/dist/{chunk-67ybyzmq.js → chunk-q6qn9c47.js} +266 -110
- package/dist/{chunk-ea29sbaq.js → chunk-qndcafax.js} +1 -1
- package/dist/{chunk-hgvft7vy.js → chunk-r5b36fgg.js} +4 -4
- package/dist/{chunk-ae26brmm.js → chunk-rc4wvjf2.js} +29 -23
- package/dist/{chunk-zzg4b212.js → chunk-re7cr0kk.js} +8 -8
- package/dist/{chunk-etrfc5cn.js → chunk-sasjamqz.js} +29 -178
- package/dist/{chunk-dtbkp9eq.js → chunk-sbk4evb4.js} +3 -3
- package/dist/{chunk-v8mfd1bm.js → chunk-t8y2y7ha.js} +1 -1
- package/dist/{chunk-98azvx6g.js → chunk-tpmyf5mk.js} +1 -1
- package/dist/{chunk-px1fhc26.js → chunk-vjkgbsry.js} +4 -4
- package/dist/{chunk-8b02x7vv.js → chunk-wre79w3z.js} +1 -1
- package/dist/{chunk-mdqc88kx.js → chunk-y6mjtq6n.js} +8 -8
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
readOpencode2,
|
|
10
10
|
databaseStamp2,
|
|
11
11
|
runOpencodeReader2
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
15
|
-
import"./chunk-
|
|
12
|
+
} from "./chunk-2bt9e1fj.js";
|
|
13
|
+
import"./chunk-3gax0xq6.js";
|
|
14
|
+
import"./chunk-sasjamqz.js";
|
|
15
|
+
import"./chunk-b4td2pgc.js";
|
|
16
16
|
export {
|
|
17
17
|
databaseStamp2 as databaseStamp,
|
|
18
18
|
decoded2 as decoded,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
isFailure2,
|
|
46
46
|
hasInterrupts,
|
|
47
47
|
makeUnsafe5,
|
|
48
|
-
|
|
48
|
+
make15,
|
|
49
49
|
_await,
|
|
50
50
|
fail5,
|
|
51
51
|
isDoneUnsafe,
|
|
@@ -175,7 +175,7 @@ import {
|
|
|
175
175
|
decodeJsonStringSync,
|
|
176
176
|
encodeUnknownJsonStringSync,
|
|
177
177
|
storable
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-b4td2pgc.js";
|
|
179
179
|
import {
|
|
180
180
|
SecureRandom,
|
|
181
181
|
layerWebCrypto,
|
|
@@ -215,6 +215,7 @@ import {
|
|
|
215
215
|
commandTimeoutMillisDefault,
|
|
216
216
|
commandTextLimit,
|
|
217
217
|
catchUpPathLimit,
|
|
218
|
+
verificationCap,
|
|
218
219
|
createId,
|
|
219
220
|
digestSha256,
|
|
220
221
|
AgentEvent,
|
|
@@ -263,7 +264,7 @@ import {
|
|
|
263
264
|
checkServicesFile,
|
|
264
265
|
checkServices,
|
|
265
266
|
serviceChecks
|
|
266
|
-
} from "./chunk-
|
|
267
|
+
} from "./chunk-q6qn9c47.js";
|
|
267
268
|
import {
|
|
268
269
|
currentTimeMillis,
|
|
269
270
|
join,
|
|
@@ -273,7 +274,7 @@ import {
|
|
|
273
274
|
unbounded2,
|
|
274
275
|
offer,
|
|
275
276
|
makeUnsafe3,
|
|
276
|
-
|
|
277
|
+
make10,
|
|
277
278
|
fromQueue,
|
|
278
279
|
fromPubSub,
|
|
279
280
|
map2,
|
|
@@ -312,7 +313,7 @@ import {
|
|
|
312
313
|
writeSrtSettings2,
|
|
313
314
|
srtStepArgv2,
|
|
314
315
|
srtArgv2
|
|
315
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-sasjamqz.js";
|
|
316
317
|
import {
|
|
317
318
|
writeAgentEnvironmentConfigFile2,
|
|
318
319
|
readManifestSkillPaths2,
|
|
@@ -328,8 +329,8 @@ import {
|
|
|
328
329
|
applyAgentEnvironmentMaterialization2,
|
|
329
330
|
isPathWithin2,
|
|
330
331
|
skillIdentity2
|
|
331
|
-
} from "./chunk-
|
|
332
|
-
import"./chunk-
|
|
332
|
+
} from "./chunk-vjkgbsry.js";
|
|
333
|
+
import"./chunk-sbk4evb4.js";
|
|
333
334
|
import {
|
|
334
335
|
egressAllowed,
|
|
335
336
|
writeSecretRegistry,
|
|
@@ -339,7 +340,7 @@ import {
|
|
|
339
340
|
secretFilter2,
|
|
340
341
|
opaqueTunnelRefusal2,
|
|
341
342
|
isOpaqueConnectReason2
|
|
342
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-dhe1fwhw.js";
|
|
343
344
|
import {
|
|
344
345
|
sliceBytes2,
|
|
345
346
|
maxLineBytes2,
|
|
@@ -349,29 +350,29 @@ import {
|
|
|
349
350
|
lookAtOpencode2,
|
|
350
351
|
readOpencode2,
|
|
351
352
|
databaseStamp2
|
|
352
|
-
} from "./chunk-
|
|
353
|
+
} from "./chunk-2bt9e1fj.js";
|
|
353
354
|
import {
|
|
354
355
|
uploadRunFile,
|
|
355
356
|
programLease,
|
|
356
357
|
rpcRunFiles,
|
|
357
358
|
programHostsEnv,
|
|
358
359
|
undeclaredHostsEnv
|
|
359
|
-
} from "./chunk-
|
|
360
|
-
import"./chunk-
|
|
360
|
+
} from "./chunk-re7cr0kk.js";
|
|
361
|
+
import"./chunk-gqgbah9q.js";
|
|
361
362
|
import {
|
|
362
363
|
nextInt
|
|
363
|
-
} from "./chunk-
|
|
364
|
-
import"./chunk-
|
|
364
|
+
} from "./chunk-wre79w3z.js";
|
|
365
|
+
import"./chunk-tpmyf5mk.js";
|
|
365
366
|
import {
|
|
366
367
|
ChildProcessSpawner,
|
|
367
368
|
make3
|
|
368
|
-
} from "./chunk-
|
|
369
|
-
import"./chunk-
|
|
369
|
+
} from "./chunk-3gax0xq6.js";
|
|
370
|
+
import"./chunk-c3ms91a6.js";
|
|
370
371
|
import {
|
|
371
372
|
Id,
|
|
372
373
|
secretReference,
|
|
373
374
|
secretPlaceholder
|
|
374
|
-
} from "./chunk-
|
|
375
|
+
} from "./chunk-qndcafax.js";
|
|
375
376
|
|
|
376
377
|
// packages/core/src/sync-kit.ts
|
|
377
378
|
import { createHash } from "crypto";
|
|
@@ -4507,6 +4508,10 @@ var systemStepProcessesLayer = effect(StepProcesses, gen(function* () {
|
|
|
4507
4508
|
import { availableParallelism } from "os";
|
|
4508
4509
|
var threadBudget = (cores, concurrency) => Math.max(2, Math.floor(cores / concurrency));
|
|
4509
4510
|
var hostThreadBudget = (concurrency) => threadBudget(availableParallelism(), concurrency);
|
|
4511
|
+
var checkThreadBudget = (settings) => {
|
|
4512
|
+
const cap = verificationCap(settings);
|
|
4513
|
+
return cap < settings.concurrency ? hostThreadBudget(cap) : undefined;
|
|
4514
|
+
};
|
|
4510
4515
|
var threadBudgetVariables = [
|
|
4511
4516
|
"GOMAXPROCS",
|
|
4512
4517
|
"RAYON_NUM_THREADS",
|
|
@@ -4514,7 +4519,7 @@ var threadBudgetVariables = [
|
|
|
4514
4519
|
"VITEST_MAX_WORKERS"
|
|
4515
4520
|
];
|
|
4516
4521
|
var threadBudgetNames = new Set(threadBudgetVariables);
|
|
4517
|
-
var threadBudgetEnvironment = (budget) => Object.fromEntries(threadBudgetVariables.map((name) => [name, String(budget)]));
|
|
4522
|
+
var threadBudgetEnvironment = (budget) => budget === undefined ? {} : Object.fromEntries(threadBudgetVariables.map((name) => [name, String(budget)]));
|
|
4518
4523
|
var threadBudgetCollision = (kind, names) => {
|
|
4519
4524
|
const reserved = names.filter((name) => threadBudgetNames.has(name));
|
|
4520
4525
|
return reserved.length === 0 ? undefined : `The ${kind} ${reserved.join(", ")} name a thread budget variable, which the Runner sets for every attempt; rename them.`;
|
|
@@ -5167,7 +5172,7 @@ var herdrCoreAgentBackendLayer = (options) => effect(AgentBackend, gen(function*
|
|
|
5167
5172
|
...options.srtBinaries === undefined ? undefined : { srtBinaries: options.srtBinaries },
|
|
5168
5173
|
...options.docker === undefined ? undefined : { docker: options.docker },
|
|
5169
5174
|
stepProcesses: yield* StepProcesses,
|
|
5170
|
-
threadBudget: options.threadBudget ??
|
|
5175
|
+
threadBudget: options.threadBudget ?? undefined_
|
|
5171
5176
|
};
|
|
5172
5177
|
return AgentBackend.of({
|
|
5173
5178
|
sandboxBackends,
|
|
@@ -8684,7 +8689,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
8684
8689
|
return {
|
|
8685
8690
|
request: (method, params) => gen(function* () {
|
|
8686
8691
|
const id = ++lastId;
|
|
8687
|
-
const deferred = yield*
|
|
8692
|
+
const deferred = yield* make15();
|
|
8688
8693
|
pending.set(id, deferred);
|
|
8689
8694
|
yield* send({ id, method, params });
|
|
8690
8695
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -8827,7 +8832,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
|
8827
8832
|
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
8828
8833
|
extendEnv: true,
|
|
8829
8834
|
env: mcp.env,
|
|
8830
|
-
stdin: { stream:
|
|
8835
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
8831
8836
|
stderr: "ignore"
|
|
8832
8837
|
}));
|
|
8833
8838
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -8901,7 +8906,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
8901
8906
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
8902
8907
|
const spawner = yield* ChildProcessSpawner;
|
|
8903
8908
|
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
8904
|
-
stdin:
|
|
8909
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
8905
8910
|
stdout: "inherit",
|
|
8906
8911
|
stderr: "inherit",
|
|
8907
8912
|
extendEnv: false,
|
|
@@ -10048,7 +10053,7 @@ var removeUntracked = (worktree, files) => forEach(chunksOf(files, 200), (some)
|
|
|
10048
10053
|
"--",
|
|
10049
10054
|
...some.map((file) => `:(literal,top)${file}`)
|
|
10050
10055
|
]), { discard: true });
|
|
10051
|
-
var afterMergeRunner = (sandbox, threadBudget
|
|
10056
|
+
var afterMergeRunner = (sandbox, threadBudget) => (work, worktree, command, args) => gen(function* () {
|
|
10052
10057
|
const { repoBinding } = work;
|
|
10053
10058
|
if (repoBinding === undefined)
|
|
10054
10059
|
return yield* new AfterMergeUnrun({ message: "The Step has no repository" });
|
|
@@ -10208,7 +10213,7 @@ var verificationExecutor = (input) => (work) => gen(function* () {
|
|
|
10208
10213
|
failureSummary: "A shared Runner runs verifications only in `srt` or `docker`."
|
|
10209
10214
|
};
|
|
10210
10215
|
const cache = yield* tempDirectoryScoped(yield* FileSystem, { prefix: "kitman-verify-cache-" });
|
|
10211
|
-
const threadBudget = input.threadBudget
|
|
10216
|
+
const threadBudget = input.threadBudget;
|
|
10212
10217
|
const runIn = checkRunner(work, input.sandbox, cache, yield* inheritedEnvironment2(srtInheritedEnv2), threadBudget);
|
|
10213
10218
|
const checkouts = runCheckouts(input.rootDir, input.gitCredentials);
|
|
10214
10219
|
if (work.resolve !== undefined)
|
|
@@ -10419,6 +10424,7 @@ export {
|
|
|
10419
10424
|
checkPostgresUrl,
|
|
10420
10425
|
checkRegistryCacheVolume,
|
|
10421
10426
|
checkRegistryMirrorArgs,
|
|
10427
|
+
checkThreadBudget,
|
|
10422
10428
|
clearSettledCheckpoints,
|
|
10423
10429
|
commandFile,
|
|
10424
10430
|
commandHostProbe,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
empty3,
|
|
13
13
|
add,
|
|
14
14
|
getOrUndefined2,
|
|
15
|
-
|
|
15
|
+
get3,
|
|
16
16
|
merge3,
|
|
17
17
|
Reference,
|
|
18
18
|
fromInputUnsafe,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
toJsonSchemaDocument,
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-b4td2pgc.js";
|
|
142
142
|
import {
|
|
143
143
|
WebCrypto,
|
|
144
144
|
makeUnsafe,
|
|
@@ -175,24 +175,24 @@ import {
|
|
|
175
175
|
StepManifest,
|
|
176
176
|
KitSetup,
|
|
177
177
|
RunnerRpcError
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-q6qn9c47.js";
|
|
179
179
|
import {
|
|
180
180
|
currentTimeMillis,
|
|
181
181
|
getCurrent,
|
|
182
182
|
runForEach,
|
|
183
183
|
FileSystem
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-sasjamqz.js";
|
|
185
185
|
import {
|
|
186
186
|
splitQuestionOptions,
|
|
187
187
|
recommendationProblem,
|
|
188
188
|
questionAdvice
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-tpmyf5mk.js";
|
|
190
190
|
import {
|
|
191
191
|
guard,
|
|
192
192
|
Id,
|
|
193
193
|
Timestamp,
|
|
194
194
|
ActorType
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-qndcafax.js";
|
|
196
196
|
var __defProp = Object.defineProperty;
|
|
197
197
|
var __returnValue = (v) => v;
|
|
198
198
|
function __exportSetter(name, newValue) {
|
|
@@ -769,7 +769,7 @@ class Suspended extends (/* @__PURE__ */ Class2("effect/workflow/Workflow/Suspen
|
|
|
769
769
|
[ResultTypeId] = ResultTypeId;
|
|
770
770
|
}
|
|
771
771
|
var wrapActivityResult = (effect, isSuspend) => contextWith((context) => {
|
|
772
|
-
const instance =
|
|
772
|
+
const instance = get3(context, InstanceTag);
|
|
773
773
|
return acquireUseRelease(sync2(() => adoptActivityUnsafe(context, instance) ?? registerActivityUnsafe(instance)), () => effect, (registration, exit) => {
|
|
774
774
|
releaseActivityUnsafe(registration);
|
|
775
775
|
const isSuspended = isSuccess2(exit) && isSuspend(exit.value);
|
|
@@ -1420,7 +1420,7 @@ var scopingActivities = (engine) => ({
|
|
|
1420
1420
|
}),
|
|
1421
1421
|
activityExecute: (activity, attempt) => gen(function* () {
|
|
1422
1422
|
const scope = yield* StepScope;
|
|
1423
|
-
if (scope === "" ||
|
|
1423
|
+
if (scope === "" || get3(activity.annotations, ActivityNamed))
|
|
1424
1424
|
return yield* engine.activityExecute(activity, attempt);
|
|
1425
1425
|
return yield* engine.activityExecute(renamed(activity, scopedName(scope, activity.name)), attempt);
|
|
1426
1426
|
})
|
|
@@ -34,11 +34,8 @@ import {
|
|
|
34
34
|
getOrUndefined,
|
|
35
35
|
map4,
|
|
36
36
|
Service2,
|
|
37
|
-
|
|
38
|
-
get4,
|
|
37
|
+
get3,
|
|
39
38
|
Reference,
|
|
40
|
-
fromInputUnsafe,
|
|
41
|
-
isFinite,
|
|
42
39
|
normalize,
|
|
43
40
|
succeed,
|
|
44
41
|
fail3,
|
|
@@ -88,7 +85,6 @@ import {
|
|
|
88
85
|
fail4,
|
|
89
86
|
interrupt2,
|
|
90
87
|
void_2,
|
|
91
|
-
isSuccess2,
|
|
92
88
|
isFailure2,
|
|
93
89
|
asVoidAll,
|
|
94
90
|
makeUnsafe5,
|
|
@@ -160,14 +156,12 @@ import {
|
|
|
160
156
|
tapError2,
|
|
161
157
|
ignoreCause,
|
|
162
158
|
orElseSucceed,
|
|
163
|
-
sleep,
|
|
164
159
|
raceFirst,
|
|
165
160
|
when,
|
|
166
161
|
matchCauseEffect,
|
|
167
162
|
context,
|
|
168
163
|
contextWith,
|
|
169
164
|
provideContext2,
|
|
170
|
-
scope2,
|
|
171
165
|
scoped,
|
|
172
166
|
scopedWith,
|
|
173
167
|
acquireRelease,
|
|
@@ -178,7 +172,6 @@ import {
|
|
|
178
172
|
interrupt3,
|
|
179
173
|
onInterrupt,
|
|
180
174
|
uninterruptible,
|
|
181
|
-
uninterruptibleMask2,
|
|
182
175
|
forever,
|
|
183
176
|
forkChild,
|
|
184
177
|
forkIn,
|
|
@@ -201,11 +194,11 @@ import {
|
|
|
201
194
|
toEncoded,
|
|
202
195
|
decodeUnknownEffect,
|
|
203
196
|
SchemaError,
|
|
204
|
-
|
|
197
|
+
make16,
|
|
205
198
|
String4,
|
|
206
199
|
toCodecStringTree,
|
|
207
200
|
encodeUnknownJsonStringSync
|
|
208
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-b4td2pgc.js";
|
|
209
202
|
|
|
210
203
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
211
204
|
var headUnsafe = (self) => {
|
|
@@ -378,7 +371,7 @@ var fromStringUnsafe = (input) => {
|
|
|
378
371
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
379
372
|
return make(value);
|
|
380
373
|
};
|
|
381
|
-
var
|
|
374
|
+
var fromInputUnsafe = (input) => {
|
|
382
375
|
switch (typeof input) {
|
|
383
376
|
case "bigint":
|
|
384
377
|
if (input < bigint0)
|
|
@@ -391,7 +384,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
391
384
|
}
|
|
392
385
|
return invalid(`unsupported input ${input}`);
|
|
393
386
|
};
|
|
394
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
387
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
395
388
|
|
|
396
389
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
397
390
|
var join = fiberJoin;
|
|
@@ -1317,7 +1310,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1317
1310
|
return false;
|
|
1318
1311
|
});
|
|
1319
1312
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1320
|
-
const localScope =
|
|
1313
|
+
const localScope = get3(services, Scope);
|
|
1321
1314
|
const scope = forkUnsafe(self.scope);
|
|
1322
1315
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1323
1316
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2760,7 +2753,7 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
|
|
|
2760
2753
|
var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
|
|
2761
2754
|
const semaphore = makeUnsafe3(1);
|
|
2762
2755
|
const context2 = yield* context();
|
|
2763
|
-
const scope =
|
|
2756
|
+
const scope = get3(context2, Scope);
|
|
2764
2757
|
const pull = yield* toTransform(self)(done(), scope);
|
|
2765
2758
|
return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
|
|
2766
2759
|
}, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
|
|
@@ -2821,158 +2814,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2821
2814
|
}), catchDone(() => endVoid)));
|
|
2822
2815
|
var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
|
|
2823
2816
|
|
|
2824
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2825
|
-
var TypeId8 = "~effect/RcRef";
|
|
2826
|
-
var stateEmpty = {
|
|
2827
|
-
_tag: "Empty"
|
|
2828
|
-
};
|
|
2829
|
-
var stateClosed = {
|
|
2830
|
-
_tag: "Closed"
|
|
2831
|
-
};
|
|
2832
|
-
var variance2 = {
|
|
2833
|
-
_A: identity,
|
|
2834
|
-
_E: identity
|
|
2835
|
-
};
|
|
2836
|
-
|
|
2837
|
-
class RcRefImpl {
|
|
2838
|
-
[TypeId8] = variance2;
|
|
2839
|
-
pipe() {
|
|
2840
|
-
return pipeArguments(this, arguments);
|
|
2841
|
-
}
|
|
2842
|
-
state = stateEmpty;
|
|
2843
|
-
acquire;
|
|
2844
|
-
context;
|
|
2845
|
-
scope;
|
|
2846
|
-
idleTimeToLive;
|
|
2847
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2848
|
-
this.acquire = acquire;
|
|
2849
|
-
this.context = context;
|
|
2850
|
-
this.scope = scope;
|
|
2851
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
2852
|
-
}
|
|
2853
|
-
}
|
|
2854
|
-
var make6 = (options) => withFiber2((fiber) => {
|
|
2855
|
-
const context = fiber.context;
|
|
2856
|
-
const scope = get4(context, Scope);
|
|
2857
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2858
|
-
return as(addFinalizerExit(scope, () => {
|
|
2859
|
-
const state = ref.state;
|
|
2860
|
-
ref.state = stateClosed;
|
|
2861
|
-
if (state._tag === "Acquired")
|
|
2862
|
-
return close(state.scope, void_2);
|
|
2863
|
-
if (state._tag === "Acquiring")
|
|
2864
|
-
return interrupt(state.fiber);
|
|
2865
|
-
return void_3;
|
|
2866
|
-
}), ref);
|
|
2867
|
-
});
|
|
2868
|
-
var getState = (self, restore) => {
|
|
2869
|
-
switch (self.state._tag) {
|
|
2870
|
-
case "Closed": {
|
|
2871
|
-
return interrupt3;
|
|
2872
|
-
}
|
|
2873
|
-
case "Acquired": {
|
|
2874
|
-
const state = self.state;
|
|
2875
|
-
state.refCount++;
|
|
2876
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2877
|
-
}
|
|
2878
|
-
case "Acquiring": {
|
|
2879
|
-
const state = self.state;
|
|
2880
|
-
state.awaiters++;
|
|
2881
|
-
return awaitAcquiring(self, state, restore);
|
|
2882
|
-
}
|
|
2883
|
-
case "Empty": {
|
|
2884
|
-
const acquiring = {
|
|
2885
|
-
_tag: "Acquiring",
|
|
2886
|
-
fiber: undefined,
|
|
2887
|
-
awaiters: 1,
|
|
2888
|
-
acquired: undefined
|
|
2889
|
-
};
|
|
2890
|
-
self.state = acquiring;
|
|
2891
|
-
const scope = makeUnsafe6();
|
|
2892
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2893
|
-
if (self.state !== acquiring) {
|
|
2894
|
-
return interrupt3;
|
|
2895
|
-
}
|
|
2896
|
-
const state = {
|
|
2897
|
-
_tag: "Acquired",
|
|
2898
|
-
value,
|
|
2899
|
-
scope,
|
|
2900
|
-
fiber: undefined,
|
|
2901
|
-
refCount: acquiring.awaiters,
|
|
2902
|
-
invalidated: false
|
|
2903
|
-
};
|
|
2904
|
-
self.state = state;
|
|
2905
|
-
acquiring.acquired = state;
|
|
2906
|
-
return succeed6(state);
|
|
2907
|
-
}), onExit((exit) => {
|
|
2908
|
-
if (isSuccess2(exit))
|
|
2909
|
-
return void_3;
|
|
2910
|
-
if (self.state === acquiring)
|
|
2911
|
-
self.state = stateEmpty;
|
|
2912
|
-
return close(scope, exit);
|
|
2913
|
-
}));
|
|
2914
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2915
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
2916
|
-
}
|
|
2917
|
-
}
|
|
2918
|
-
};
|
|
2919
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2920
|
-
const acquired = acquiring.acquired;
|
|
2921
|
-
if (acquired !== undefined) {
|
|
2922
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2923
|
-
}
|
|
2924
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2925
|
-
return void_3;
|
|
2926
|
-
self.state = stateEmpty;
|
|
2927
|
-
return interrupt(acquiring.fiber);
|
|
2928
|
-
});
|
|
2929
|
-
var get2 = (self_) => {
|
|
2930
|
-
const self = self_;
|
|
2931
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2932
|
-
};
|
|
2933
|
-
var release = (self, state) => {
|
|
2934
|
-
state.refCount--;
|
|
2935
|
-
if (state.refCount > 0) {
|
|
2936
|
-
return void_3;
|
|
2937
|
-
}
|
|
2938
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
2939
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2940
|
-
if (self.state === state) {
|
|
2941
|
-
self.state = stateEmpty;
|
|
2942
|
-
}
|
|
2943
|
-
return close(state.scope, void_2);
|
|
2944
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
2945
|
-
return void_3;
|
|
2946
|
-
}
|
|
2947
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2948
|
-
if (self.state === state && state.refCount === 0) {
|
|
2949
|
-
self.state = stateEmpty;
|
|
2950
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
2951
|
-
log: "Unhandled",
|
|
2952
|
-
message: "Unhandled error in RcRef finalizer"
|
|
2953
|
-
});
|
|
2954
|
-
}
|
|
2955
|
-
return void_3;
|
|
2956
|
-
})).pipe(ensuring2(sync2(() => {
|
|
2957
|
-
state.fiber = undefined;
|
|
2958
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
2959
|
-
return void_3;
|
|
2960
|
-
};
|
|
2961
|
-
|
|
2962
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2963
|
-
var make10 = make6;
|
|
2964
|
-
var get3 = get2;
|
|
2965
|
-
|
|
2966
2817
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2967
|
-
var
|
|
2968
|
-
var isStream = (u) => hasProperty(u,
|
|
2818
|
+
var TypeId8 = "~effect/Stream";
|
|
2819
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2969
2820
|
var fromChannel2 = fromChannel3;
|
|
2970
2821
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2971
2822
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2972
2823
|
var toChannel2 = (stream) => stream.channel;
|
|
2973
2824
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2974
2825
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2975
|
-
var
|
|
2826
|
+
var make10 = (...values) => fromArray2(values);
|
|
2976
2827
|
var suspend = (stream) => {
|
|
2977
2828
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2978
2829
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3171,11 +3022,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3171
3022
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3172
3023
|
|
|
3173
3024
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3174
|
-
var
|
|
3025
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3175
3026
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3176
|
-
var
|
|
3027
|
+
var make11 = (impl) => FileSystem.of({
|
|
3177
3028
|
...impl,
|
|
3178
|
-
[
|
|
3029
|
+
[TypeId9]: TypeId9,
|
|
3179
3030
|
glob: make2(impl),
|
|
3180
3031
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3181
3032
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3191,11 +3042,11 @@ var make12 = (impl) => FileSystem.of({
|
|
|
3191
3042
|
const file = yield* impl.open(path, {
|
|
3192
3043
|
flag: "r"
|
|
3193
3044
|
});
|
|
3194
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3045
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3195
3046
|
if (offset) {
|
|
3196
3047
|
yield* file.seek(offset, "start");
|
|
3197
3048
|
}
|
|
3198
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3049
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3199
3050
|
let totalBytesRead = BigInt(0);
|
|
3200
3051
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3201
3052
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3231,11 +3082,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3231
3082
|
}
|
|
3232
3083
|
|
|
3233
3084
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3234
|
-
var
|
|
3085
|
+
var TypeId10 = "~effect/Path";
|
|
3235
3086
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3236
|
-
var
|
|
3087
|
+
var make12 = (impl) => Path.of({
|
|
3237
3088
|
...impl,
|
|
3238
|
-
[
|
|
3089
|
+
[TypeId10]: TypeId10,
|
|
3239
3090
|
resolveWithin(root, input) {
|
|
3240
3091
|
if (impl.parse(input).root !== "")
|
|
3241
3092
|
return none();
|
|
@@ -3308,7 +3159,7 @@ function makeProvider(load, mapInput) {
|
|
|
3308
3159
|
function makeSource(get, transform) {
|
|
3309
3160
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3310
3161
|
}
|
|
3311
|
-
function
|
|
3162
|
+
function make6(get) {
|
|
3312
3163
|
return makeSource(get, identityPath);
|
|
3313
3164
|
}
|
|
3314
3165
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3317,7 +3168,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3317
3168
|
function fromEnvRecord(env, options) {
|
|
3318
3169
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3319
3170
|
const trie = buildEnvTrie(env);
|
|
3320
|
-
return
|
|
3171
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3321
3172
|
}
|
|
3322
3173
|
function fromEnv(options) {
|
|
3323
3174
|
const env = options?.env ?? {
|
|
@@ -3370,7 +3221,7 @@ function trieNodeAt(root, path) {
|
|
|
3370
3221
|
}
|
|
3371
3222
|
|
|
3372
3223
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3373
|
-
var
|
|
3224
|
+
var TypeId11 = "~effect/Config";
|
|
3374
3225
|
class ConfigError {
|
|
3375
3226
|
_tag = "ConfigError";
|
|
3376
3227
|
name = "ConfigError";
|
|
@@ -3392,14 +3243,14 @@ var Proto2 = {
|
|
|
3392
3243
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3393
3244
|
}
|
|
3394
3245
|
}),
|
|
3395
|
-
[
|
|
3246
|
+
[TypeId11]: TypeId11,
|
|
3396
3247
|
toJSON() {
|
|
3397
3248
|
return {
|
|
3398
3249
|
_id: "Config"
|
|
3399
3250
|
};
|
|
3400
3251
|
}
|
|
3401
3252
|
};
|
|
3402
|
-
function
|
|
3253
|
+
function make7(evaluator) {
|
|
3403
3254
|
const self = Object.create(Proto2);
|
|
3404
3255
|
self.evaluator = evaluator;
|
|
3405
3256
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3407,14 +3258,14 @@ function make14(evaluator) {
|
|
|
3407
3258
|
}
|
|
3408
3259
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3409
3260
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3410
|
-
return
|
|
3261
|
+
return make7((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3411
3262
|
});
|
|
3412
3263
|
function all(arg) {
|
|
3413
3264
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3414
|
-
return
|
|
3265
|
+
return make7((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
|
|
3415
3266
|
}
|
|
3416
3267
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3417
|
-
return
|
|
3268
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3418
3269
|
});
|
|
3419
3270
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3420
3271
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3531,9 +3382,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3531
3382
|
function schema(codec, path) {
|
|
3532
3383
|
const codecStringTree = toCodecStringTree(codec);
|
|
3533
3384
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3534
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3385
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3535
3386
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3536
|
-
return
|
|
3387
|
+
return make7((provider, pathPrefix) => {
|
|
3537
3388
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3538
3389
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3539
3390
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3663,4 +3514,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3663
3514
|
...argv
|
|
3664
3515
|
];
|
|
3665
3516
|
|
|
3666
|
-
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain,
|
|
3517
|
+
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, runIn, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-b4td2pgc.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-sasjamqz.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-q6qn9c47.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|