@kitman-sh/cli 0.10.81 → 0.10.83
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-zktywann.js → chunk-1chta572.js} +14 -14
- package/dist/{chunk-a10dn5vf.js → chunk-20rbya07.js} +35 -35
- package/dist/{chunk-1mcwey0c.js → chunk-292vjjdz.js} +1 -1
- package/dist/{chunk-w9j2yb0n.js → chunk-2fqry6rd.js} +40 -183
- package/dist/{chunk-5tezkbn0.js → chunk-2rpwpzt5.js} +119 -132
- package/dist/{chunk-52209e52.js → chunk-66fhj0c3.js} +12 -10
- package/dist/{chunk-xk8qzgn7.js → chunk-6kt28g8r.js} +69 -28
- package/dist/{chunk-cw2ghw7n.js → chunk-72232jhj.js} +4 -4
- package/dist/{chunk-p74pmd81.js → chunk-7bsf0fyh.js} +1 -6
- package/dist/{chunk-bjbphmyt.js → chunk-7wag4s6j.js} +4 -4
- package/dist/{chunk-maj4dn1b.js → chunk-93vddjpx.js} +1 -1
- package/dist/{chunk-dmwqvnmb.js → chunk-999xbcaa.js} +6 -6
- package/dist/{chunk-q0gqkem3.js → chunk-adqabkwv.js} +5 -5
- package/dist/{chunk-ybp1mwv9.js → chunk-bjexx93x.js} +60 -14
- package/dist/{chunk-aj4ev9v2.js → chunk-by54dw1n.js} +2 -2
- package/dist/{chunk-f5mmvr81.js → chunk-dzthc6th.js} +9 -9
- package/dist/{chunk-ym8t1vr6.js → chunk-hccw303w.js} +7 -7
- package/dist/{chunk-5dwyvg1z.js → chunk-mr30hj39.js} +5 -5
- package/dist/{chunk-4325dpky.js → chunk-ptp9p22x.js} +20 -20
- package/dist/{chunk-vne4rsj0.js → chunk-qnnsy306.js} +2 -2
- package/dist/{chunk-tbgxe3w0.js → chunk-smnx6fad.js} +8 -8
- package/dist/{chunk-symx9akd.js → chunk-tnqzvx55.js} +361 -196
- package/dist/{chunk-scabqmnx.js → chunk-xbyd16q3.js} +3 -3
- package/dist/{chunk-caqesagt.js → chunk-xq4k0mgr.js} +59 -101
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -32,9 +32,8 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-1mcwey0c.js";
|
|
35
|
+
} from "./chunk-xq4k0mgr.js";
|
|
36
|
+
import"./chunk-292vjjdz.js";
|
|
38
37
|
import {
|
|
39
38
|
SecureRandom,
|
|
40
39
|
layerWebCrypto,
|
|
@@ -46,7 +45,7 @@ import {
|
|
|
46
45
|
layer4,
|
|
47
46
|
kitmanMcpServer,
|
|
48
47
|
RunnerRpcProtocolVersion
|
|
49
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-tnqzvx55.js";
|
|
50
49
|
import {
|
|
51
50
|
decodeText,
|
|
52
51
|
mkString,
|
|
@@ -54,23 +53,24 @@ import {
|
|
|
54
53
|
Path,
|
|
55
54
|
withDefault,
|
|
56
55
|
String2
|
|
57
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-2fqry6rd.js";
|
|
58
57
|
import {
|
|
59
58
|
Packument,
|
|
60
59
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import
|
|
63
|
-
ChildProcessSpawner,
|
|
64
|
-
make2
|
|
65
|
-
} from "./chunk-ybp1mwv9.js";
|
|
66
|
-
import"./chunk-f5mmvr81.js";
|
|
60
|
+
} from "./chunk-xbyd16q3.js";
|
|
61
|
+
import"./chunk-dzthc6th.js";
|
|
67
62
|
import {
|
|
68
63
|
AgentDeclaration,
|
|
69
64
|
KitDeclarations,
|
|
70
65
|
describeFlag,
|
|
71
66
|
Described
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import
|
|
67
|
+
} from "./chunk-66fhj0c3.js";
|
|
68
|
+
import {
|
|
69
|
+
ChildProcessSpawner,
|
|
70
|
+
make3
|
|
71
|
+
} from "./chunk-bjexx93x.js";
|
|
72
|
+
import"./chunk-ptp9p22x.js";
|
|
73
|
+
import"./chunk-7bsf0fyh.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
109
109
|
}));
|
|
110
110
|
var run = (command, args, cwd) => gen(function* () {
|
|
111
111
|
const spawner = yield* ChildProcessSpawner;
|
|
112
|
-
const handle = yield* spawner.spawn(
|
|
112
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
113
113
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
114
114
|
mkString(decodeText(handle.stdout)),
|
|
115
115
|
mkString(decodeText(handle.stderr)),
|
|
@@ -85,25 +85,8 @@ import {
|
|
|
85
85
|
decodeJsonString,
|
|
86
86
|
encodeJsonStringSync,
|
|
87
87
|
encodePrettyJsonString
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-xq4k0mgr.js";
|
|
89
89
|
import {
|
|
90
|
-
tap,
|
|
91
|
-
mapError,
|
|
92
|
-
decodeText,
|
|
93
|
-
run,
|
|
94
|
-
mkString,
|
|
95
|
-
FileSystem,
|
|
96
|
-
Path,
|
|
97
|
-
withDefault,
|
|
98
|
-
option,
|
|
99
|
-
String2
|
|
100
|
-
} from "./chunk-w9j2yb0n.js";
|
|
101
|
-
import {
|
|
102
|
-
ChildProcessSpawner,
|
|
103
|
-
make2
|
|
104
|
-
} from "./chunk-ybp1mwv9.js";
|
|
105
|
-
import {
|
|
106
|
-
currentTimeMillis,
|
|
107
90
|
SecureRandom,
|
|
108
91
|
layerWebCrypto,
|
|
109
92
|
runMain,
|
|
@@ -139,7 +122,7 @@ import {
|
|
|
139
122
|
digestSha256,
|
|
140
123
|
sha256Hasher,
|
|
141
124
|
raw,
|
|
142
|
-
|
|
125
|
+
make5,
|
|
143
126
|
get,
|
|
144
127
|
put,
|
|
145
128
|
HttpClient,
|
|
@@ -201,10 +184,7 @@ import {
|
|
|
201
184
|
harnessNames,
|
|
202
185
|
herdrRunnerCapabilities2,
|
|
203
186
|
declaredChecks
|
|
204
|
-
} from "./chunk-
|
|
205
|
-
import {
|
|
206
|
-
Id
|
|
207
|
-
} from "./chunk-p74pmd81.js";
|
|
187
|
+
} from "./chunk-tnqzvx55.js";
|
|
208
188
|
import {
|
|
209
189
|
toJsonValue,
|
|
210
190
|
isOneOf,
|
|
@@ -214,7 +194,27 @@ import {
|
|
|
214
194
|
isObject,
|
|
215
195
|
isJsonObject,
|
|
216
196
|
isString
|
|
217
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-292vjjdz.js";
|
|
198
|
+
import {
|
|
199
|
+
currentTimeMillis,
|
|
200
|
+
tap,
|
|
201
|
+
mapError,
|
|
202
|
+
decodeText,
|
|
203
|
+
run,
|
|
204
|
+
mkString,
|
|
205
|
+
FileSystem,
|
|
206
|
+
Path,
|
|
207
|
+
withDefault,
|
|
208
|
+
option,
|
|
209
|
+
String2
|
|
210
|
+
} from "./chunk-2fqry6rd.js";
|
|
211
|
+
import {
|
|
212
|
+
ChildProcessSpawner,
|
|
213
|
+
make3
|
|
214
|
+
} from "./chunk-bjexx93x.js";
|
|
215
|
+
import {
|
|
216
|
+
Id
|
|
217
|
+
} from "./chunk-7bsf0fyh.js";
|
|
218
218
|
|
|
219
219
|
// apps/cli/src/cli-error.ts
|
|
220
220
|
function cliErrorCode(error, status) {
|
|
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
|
|
|
504
504
|
var checkRegistryImageSetting = pinnedImage;
|
|
505
505
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
506
506
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
507
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
507
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-7wag4s6j.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
508
508
|
});
|
|
509
509
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
510
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
510
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-7wag4s6j.js")), (module) => module.updateHerdrCore(options))
|
|
511
511
|
});
|
|
512
512
|
var herdrCoreMissing = (error) => {
|
|
513
513
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
733
733
|
});
|
|
734
734
|
var syncKits = (input) => gen(function* () {
|
|
735
735
|
const fs = yield* FileSystem;
|
|
736
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
736
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-smnx6fad.js"));
|
|
737
737
|
const harnesses = yield* syncTargets(input.harness);
|
|
738
738
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
739
739
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1249,7 +1249,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1249
1249
|
run: (command, args) => runCommand2(command, args),
|
|
1250
1250
|
attach: (command, args) => gen(function* () {
|
|
1251
1251
|
const spawner = yield* ChildProcessSpawner;
|
|
1252
|
-
const handle = yield* spawner.spawn(
|
|
1252
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1253
1253
|
const exitCode = yield* handle.exitCode;
|
|
1254
1254
|
if (exitCode !== 0)
|
|
1255
1255
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -1651,7 +1651,7 @@ var package_default = {
|
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
1653
|
// apps/cli/src/scaffold.ts
|
|
1654
|
-
var cliVersion = "0.10.
|
|
1654
|
+
var cliVersion = "0.10.83";
|
|
1655
1655
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1656
1656
|
name,
|
|
1657
1657
|
private: true,
|
|
@@ -1901,7 +1901,7 @@ var Usage = [
|
|
|
1901
1901
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
1902
1902
|
].join(`
|
|
1903
1903
|
`);
|
|
1904
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
1904
|
+
var agentRuntime = promise(() => import("./chunk-6kt28g8r.js"));
|
|
1905
1905
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
1906
1906
|
defaultValue: () => gen(function* () {
|
|
1907
1907
|
const tui = yield* tryPromise({
|
|
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2779
2779
|
defaultValue: () => (options) => gen(function* () {
|
|
2780
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2780
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-hccw303w.js"));
|
|
2781
2781
|
return yield* makeRunnerRpcClient({
|
|
2782
2782
|
runnerId: options.runnerId,
|
|
2783
2783
|
bearer: options.bearer,
|
|
@@ -3161,7 +3161,7 @@ function mcpCommand(args) {
|
|
|
3161
3161
|
if (command.action === "run") {
|
|
3162
3162
|
if (command.args.length > 0)
|
|
3163
3163
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3164
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3164
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-2rpwpzt5.js"));
|
|
3165
3165
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3166
3166
|
}
|
|
3167
3167
|
if (command.action !== "setup")
|
|
@@ -4372,9 +4372,9 @@ function claimCommand(args) {
|
|
|
4372
4372
|
}
|
|
4373
4373
|
});
|
|
4374
4374
|
}
|
|
4375
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
4375
|
+
var KitWriter = map8(promise(() => import("./chunk-1chta572.js")), (build) => build.writeKit);
|
|
4376
4376
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4377
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4377
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-1chta572.js")), (build) => build.buildKit(directory))
|
|
4378
4378
|
});
|
|
4379
4379
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4380
4380
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -5132,7 +5132,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
5132
5132
|
return gen(function* () {
|
|
5133
5133
|
const fs = yield* FileSystem;
|
|
5134
5134
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
5135
|
-
const response = yield* send(
|
|
5135
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
5136
5136
|
if (response.status < 200 || response.status >= 300)
|
|
5137
5137
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
5138
5138
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -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,
|
|
@@ -79,12 +76,13 @@ import {
|
|
|
79
76
|
fiberRunIn,
|
|
80
77
|
makeLatchUnsafe,
|
|
81
78
|
makeLatch,
|
|
79
|
+
ClockRef,
|
|
80
|
+
currentTimeMillis2,
|
|
82
81
|
succeed3,
|
|
83
82
|
failCause2,
|
|
84
83
|
fail4,
|
|
85
84
|
interrupt2,
|
|
86
85
|
void_2,
|
|
87
|
-
isSuccess2,
|
|
88
86
|
isFailure2,
|
|
89
87
|
asVoidAll,
|
|
90
88
|
makeUnsafe5,
|
|
@@ -156,14 +154,12 @@ import {
|
|
|
156
154
|
tapError2,
|
|
157
155
|
ignoreCause,
|
|
158
156
|
orElseSucceed,
|
|
159
|
-
sleep,
|
|
160
157
|
raceFirst,
|
|
161
158
|
when,
|
|
162
159
|
matchCauseEffect,
|
|
163
160
|
context,
|
|
164
161
|
contextWith,
|
|
165
162
|
provideContext2,
|
|
166
|
-
scope2,
|
|
167
163
|
scoped,
|
|
168
164
|
scopedWith,
|
|
169
165
|
ensuring2,
|
|
@@ -173,7 +169,6 @@ import {
|
|
|
173
169
|
interrupt3,
|
|
174
170
|
onInterrupt,
|
|
175
171
|
uninterruptible,
|
|
176
|
-
uninterruptibleMask2,
|
|
177
172
|
forever,
|
|
178
173
|
forkChild,
|
|
179
174
|
forkIn,
|
|
@@ -195,11 +190,11 @@ import {
|
|
|
195
190
|
toEncoded,
|
|
196
191
|
decodeUnknownEffect,
|
|
197
192
|
SchemaError,
|
|
198
|
-
|
|
193
|
+
make16,
|
|
199
194
|
String4,
|
|
200
195
|
toCodecStringTree,
|
|
201
196
|
encodeUnknownJsonStringSync
|
|
202
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-xq4k0mgr.js";
|
|
203
198
|
|
|
204
199
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
205
200
|
var headUnsafe = (self) => {
|
|
@@ -248,6 +243,10 @@ var makeEquivalence = (equivalence) => {
|
|
|
248
243
|
return (self, that) => is(self, that) && is(that, self);
|
|
249
244
|
};
|
|
250
245
|
|
|
246
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
247
|
+
var Clock = ClockRef;
|
|
248
|
+
var currentTimeMillis = currentTimeMillis2;
|
|
249
|
+
|
|
251
250
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
252
251
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
253
252
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -368,7 +367,7 @@ var fromStringUnsafe = (input) => {
|
|
|
368
367
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
369
368
|
return make(value);
|
|
370
369
|
};
|
|
371
|
-
var
|
|
370
|
+
var fromInputUnsafe = (input) => {
|
|
372
371
|
switch (typeof input) {
|
|
373
372
|
case "bigint":
|
|
374
373
|
if (input < bigint0)
|
|
@@ -381,7 +380,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
381
380
|
}
|
|
382
381
|
return invalid(`unsupported input ${input}`);
|
|
383
382
|
};
|
|
384
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
383
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
385
384
|
|
|
386
385
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
387
386
|
var join = fiberJoin;
|
|
@@ -1127,7 +1126,7 @@ var MutableRefProto = {
|
|
|
1127
1126
|
};
|
|
1128
1127
|
}
|
|
1129
1128
|
};
|
|
1130
|
-
var
|
|
1129
|
+
var make8 = (value) => {
|
|
1131
1130
|
const ref = Object.create(MutableRefProto);
|
|
1132
1131
|
ref.current = value;
|
|
1133
1132
|
return ref;
|
|
@@ -1288,7 +1287,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1288
1287
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1289
1288
|
var TypeId3 = "~effect/PubSub";
|
|
1290
1289
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1291
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1290
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1292
1291
|
var unbounded = (options) => make5({
|
|
1293
1292
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1294
1293
|
strategy: () => new DroppingStrategy
|
|
@@ -1307,7 +1306,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1307
1306
|
return false;
|
|
1308
1307
|
});
|
|
1309
1308
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1310
|
-
const localScope =
|
|
1309
|
+
const localScope = get3(services, Scope);
|
|
1311
1310
|
const scope = forkUnsafe(self.scope);
|
|
1312
1311
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1313
1312
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1383,7 +1382,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1383
1382
|
subscribers.delete(subscription);
|
|
1384
1383
|
}
|
|
1385
1384
|
};
|
|
1386
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1385
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1387
1386
|
class UnboundedPubSub {
|
|
1388
1387
|
publisherHead = {
|
|
1389
1388
|
value: AbsentValue,
|
|
@@ -1800,7 +1799,7 @@ var QueueProto = {
|
|
|
1800
1799
|
};
|
|
1801
1800
|
}
|
|
1802
1801
|
};
|
|
1803
|
-
var
|
|
1802
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1804
1803
|
const self = Object.create(QueueProto);
|
|
1805
1804
|
self.dispatcher = fiber.currentDispatcher;
|
|
1806
1805
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1815,14 +1814,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1815
1814
|
};
|
|
1816
1815
|
return succeed2(self);
|
|
1817
1816
|
});
|
|
1818
|
-
var bounded = (capacity) =>
|
|
1817
|
+
var bounded = (capacity) => make9({
|
|
1819
1818
|
capacity
|
|
1820
1819
|
});
|
|
1821
|
-
var sliding = (capacity) =>
|
|
1820
|
+
var sliding = (capacity) => make9({
|
|
1822
1821
|
capacity,
|
|
1823
1822
|
strategy: "sliding"
|
|
1824
1823
|
});
|
|
1825
|
-
var unbounded2 = () =>
|
|
1824
|
+
var unbounded2 = () => make9();
|
|
1826
1825
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1827
1826
|
var offerUnsafe = (self, message) => {
|
|
1828
1827
|
if (self.state._tag !== "Open") {
|
|
@@ -2248,7 +2247,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2248
2247
|
return onError(pull, onCause);
|
|
2249
2248
|
}));
|
|
2250
2249
|
var toTransform = (channel) => channel.transform;
|
|
2251
|
-
var asyncQueue = (scope, f, options) =>
|
|
2250
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2252
2251
|
capacity: options?.bufferSize,
|
|
2253
2252
|
strategy: options?.strategy
|
|
2254
2253
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2289,7 +2288,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2289
2288
|
}));
|
|
2290
2289
|
var readableStreamToPullUnsafe = (options) => {
|
|
2291
2290
|
const reader = options.readable.getReader();
|
|
2292
|
-
const exit = options.exit ??
|
|
2291
|
+
const exit = options.exit ?? make8(undefined);
|
|
2293
2292
|
const pull = suspend3(() => {
|
|
2294
2293
|
if (exit.current)
|
|
2295
2294
|
return exit.current;
|
|
@@ -2764,151 +2763,9 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2764
2763
|
}), catchDone(() => endVoid)));
|
|
2765
2764
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2766
2765
|
|
|
2767
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2768
|
-
var TypeId8 = "~effect/RcRef";
|
|
2769
|
-
var stateEmpty = {
|
|
2770
|
-
_tag: "Empty"
|
|
2771
|
-
};
|
|
2772
|
-
var stateClosed = {
|
|
2773
|
-
_tag: "Closed"
|
|
2774
|
-
};
|
|
2775
|
-
var variance2 = {
|
|
2776
|
-
_A: identity,
|
|
2777
|
-
_E: identity
|
|
2778
|
-
};
|
|
2779
|
-
|
|
2780
|
-
class RcRefImpl {
|
|
2781
|
-
[TypeId8] = variance2;
|
|
2782
|
-
pipe() {
|
|
2783
|
-
return pipeArguments(this, arguments);
|
|
2784
|
-
}
|
|
2785
|
-
state = stateEmpty;
|
|
2786
|
-
acquire;
|
|
2787
|
-
context;
|
|
2788
|
-
scope;
|
|
2789
|
-
idleTimeToLive;
|
|
2790
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2791
|
-
this.acquire = acquire;
|
|
2792
|
-
this.context = context;
|
|
2793
|
-
this.scope = scope;
|
|
2794
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
var make6 = (options) => withFiber2((fiber) => {
|
|
2798
|
-
const context = fiber.context;
|
|
2799
|
-
const scope = get4(context, Scope);
|
|
2800
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2801
|
-
return as(addFinalizerExit(scope, () => {
|
|
2802
|
-
const state = ref.state;
|
|
2803
|
-
ref.state = stateClosed;
|
|
2804
|
-
if (state._tag === "Acquired")
|
|
2805
|
-
return close(state.scope, void_2);
|
|
2806
|
-
if (state._tag === "Acquiring")
|
|
2807
|
-
return interrupt(state.fiber);
|
|
2808
|
-
return void_3;
|
|
2809
|
-
}), ref);
|
|
2810
|
-
});
|
|
2811
|
-
var getState = (self, restore) => {
|
|
2812
|
-
switch (self.state._tag) {
|
|
2813
|
-
case "Closed": {
|
|
2814
|
-
return interrupt3;
|
|
2815
|
-
}
|
|
2816
|
-
case "Acquired": {
|
|
2817
|
-
const state = self.state;
|
|
2818
|
-
state.refCount++;
|
|
2819
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2820
|
-
}
|
|
2821
|
-
case "Acquiring": {
|
|
2822
|
-
const state = self.state;
|
|
2823
|
-
state.awaiters++;
|
|
2824
|
-
return awaitAcquiring(self, state, restore);
|
|
2825
|
-
}
|
|
2826
|
-
case "Empty": {
|
|
2827
|
-
const acquiring = {
|
|
2828
|
-
_tag: "Acquiring",
|
|
2829
|
-
fiber: undefined,
|
|
2830
|
-
awaiters: 1,
|
|
2831
|
-
acquired: undefined
|
|
2832
|
-
};
|
|
2833
|
-
self.state = acquiring;
|
|
2834
|
-
const scope = makeUnsafe6();
|
|
2835
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2836
|
-
if (self.state !== acquiring) {
|
|
2837
|
-
return interrupt3;
|
|
2838
|
-
}
|
|
2839
|
-
const state = {
|
|
2840
|
-
_tag: "Acquired",
|
|
2841
|
-
value,
|
|
2842
|
-
scope,
|
|
2843
|
-
fiber: undefined,
|
|
2844
|
-
refCount: acquiring.awaiters,
|
|
2845
|
-
invalidated: false
|
|
2846
|
-
};
|
|
2847
|
-
self.state = state;
|
|
2848
|
-
acquiring.acquired = state;
|
|
2849
|
-
return succeed6(state);
|
|
2850
|
-
}), onExit((exit) => {
|
|
2851
|
-
if (isSuccess2(exit))
|
|
2852
|
-
return void_3;
|
|
2853
|
-
if (self.state === acquiring)
|
|
2854
|
-
self.state = stateEmpty;
|
|
2855
|
-
return close(scope, exit);
|
|
2856
|
-
}));
|
|
2857
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2858
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
};
|
|
2862
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2863
|
-
const acquired = acquiring.acquired;
|
|
2864
|
-
if (acquired !== undefined) {
|
|
2865
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2866
|
-
}
|
|
2867
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2868
|
-
return void_3;
|
|
2869
|
-
self.state = stateEmpty;
|
|
2870
|
-
return interrupt(acquiring.fiber);
|
|
2871
|
-
});
|
|
2872
|
-
var get2 = (self_) => {
|
|
2873
|
-
const self = self_;
|
|
2874
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2875
|
-
};
|
|
2876
|
-
var release = (self, state) => {
|
|
2877
|
-
state.refCount--;
|
|
2878
|
-
if (state.refCount > 0) {
|
|
2879
|
-
return void_3;
|
|
2880
|
-
}
|
|
2881
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
2882
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2883
|
-
if (self.state === state) {
|
|
2884
|
-
self.state = stateEmpty;
|
|
2885
|
-
}
|
|
2886
|
-
return close(state.scope, void_2);
|
|
2887
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
2888
|
-
return void_3;
|
|
2889
|
-
}
|
|
2890
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2891
|
-
if (self.state === state && state.refCount === 0) {
|
|
2892
|
-
self.state = stateEmpty;
|
|
2893
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
2894
|
-
log: "Unhandled",
|
|
2895
|
-
message: "Unhandled error in RcRef finalizer"
|
|
2896
|
-
});
|
|
2897
|
-
}
|
|
2898
|
-
return void_3;
|
|
2899
|
-
})).pipe(ensuring2(sync2(() => {
|
|
2900
|
-
state.fiber = undefined;
|
|
2901
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
2902
|
-
return void_3;
|
|
2903
|
-
};
|
|
2904
|
-
|
|
2905
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2906
|
-
var make9 = make6;
|
|
2907
|
-
var get3 = get2;
|
|
2908
|
-
|
|
2909
2766
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2910
|
-
var
|
|
2911
|
-
var isStream = (u) => hasProperty(u,
|
|
2767
|
+
var TypeId8 = "~effect/Stream";
|
|
2768
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2912
2769
|
var fromChannel2 = fromChannel3;
|
|
2913
2770
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2914
2771
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
@@ -3078,11 +2935,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3078
2935
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3079
2936
|
|
|
3080
2937
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3081
|
-
var
|
|
2938
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3082
2939
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3083
2940
|
var make11 = (impl) => FileSystem.of({
|
|
3084
2941
|
...impl,
|
|
3085
|
-
[
|
|
2942
|
+
[TypeId9]: TypeId9,
|
|
3086
2943
|
glob: make2(impl),
|
|
3087
2944
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3088
2945
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3098,11 +2955,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3098
2955
|
const file = yield* impl.open(path, {
|
|
3099
2956
|
flag: "r"
|
|
3100
2957
|
});
|
|
3101
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2958
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3102
2959
|
if (offset) {
|
|
3103
2960
|
yield* file.seek(offset, "start");
|
|
3104
2961
|
}
|
|
3105
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2962
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3106
2963
|
let totalBytesRead = BigInt(0);
|
|
3107
2964
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3108
2965
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3138,11 +2995,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3138
2995
|
}
|
|
3139
2996
|
|
|
3140
2997
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3141
|
-
var
|
|
2998
|
+
var TypeId10 = "~effect/Path";
|
|
3142
2999
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3143
3000
|
var make12 = (impl) => Path.of({
|
|
3144
3001
|
...impl,
|
|
3145
|
-
[
|
|
3002
|
+
[TypeId10]: TypeId10,
|
|
3146
3003
|
resolveWithin(root, input) {
|
|
3147
3004
|
if (impl.parse(input).root !== "")
|
|
3148
3005
|
return none();
|
|
@@ -3215,7 +3072,7 @@ function makeProvider(load, mapInput) {
|
|
|
3215
3072
|
function makeSource(get, transform) {
|
|
3216
3073
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3217
3074
|
}
|
|
3218
|
-
function
|
|
3075
|
+
function make6(get) {
|
|
3219
3076
|
return makeSource(get, identityPath);
|
|
3220
3077
|
}
|
|
3221
3078
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3224,7 +3081,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3224
3081
|
function fromEnvRecord(env, options) {
|
|
3225
3082
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3226
3083
|
const trie = buildEnvTrie(env);
|
|
3227
|
-
return
|
|
3084
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3228
3085
|
}
|
|
3229
3086
|
function fromEnv(options) {
|
|
3230
3087
|
const env = options?.env ?? {
|
|
@@ -3277,7 +3134,7 @@ function trieNodeAt(root, path) {
|
|
|
3277
3134
|
}
|
|
3278
3135
|
|
|
3279
3136
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3280
|
-
var
|
|
3137
|
+
var TypeId11 = "~effect/Config";
|
|
3281
3138
|
class ConfigError {
|
|
3282
3139
|
_tag = "ConfigError";
|
|
3283
3140
|
name = "ConfigError";
|
|
@@ -3299,14 +3156,14 @@ var Proto2 = {
|
|
|
3299
3156
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3300
3157
|
}
|
|
3301
3158
|
}),
|
|
3302
|
-
[
|
|
3159
|
+
[TypeId11]: TypeId11,
|
|
3303
3160
|
toJSON() {
|
|
3304
3161
|
return {
|
|
3305
3162
|
_id: "Config"
|
|
3306
3163
|
};
|
|
3307
3164
|
}
|
|
3308
3165
|
};
|
|
3309
|
-
function
|
|
3166
|
+
function make7(evaluator) {
|
|
3310
3167
|
const self = Object.create(Proto2);
|
|
3311
3168
|
self.evaluator = evaluator;
|
|
3312
3169
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3314,14 +3171,14 @@ function make14(evaluator) {
|
|
|
3314
3171
|
}
|
|
3315
3172
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3316
3173
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3317
|
-
return
|
|
3174
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3318
3175
|
});
|
|
3319
3176
|
function all(arg) {
|
|
3320
3177
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3321
|
-
return
|
|
3178
|
+
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));
|
|
3322
3179
|
}
|
|
3323
3180
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3324
|
-
return
|
|
3181
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3325
3182
|
});
|
|
3326
3183
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3327
3184
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3438,9 +3295,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3438
3295
|
function schema(codec, path) {
|
|
3439
3296
|
const codecStringTree = toCodecStringTree(codec);
|
|
3440
3297
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3441
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3298
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3442
3299
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3443
|
-
return
|
|
3300
|
+
return make7((provider, pathPrefix) => {
|
|
3444
3301
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3445
3302
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3446
3303
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3552,4 +3409,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3552
3409
|
...argv
|
|
3553
3410
|
];
|
|
3554
3411
|
|
|
3555
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3412
|
+
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, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|