@kitman-sh/cli 0.35.0 → 0.37.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-wkkjyzpx.js → chunk-2nqsmnx7.js} +4 -4
- package/dist/{chunk-ke4rajdh.js → chunk-2pqqspes.js} +128 -39
- package/dist/{chunk-qqb6djs7.js → chunk-310dsxts.js} +2 -2
- package/dist/{chunk-xc7kg57m.js → chunk-3xfsv475.js} +45 -45
- package/dist/{chunk-56gs4z53.js → chunk-5jnye659.js} +7 -7
- package/dist/{chunk-znhjs0t6.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-1hgsf81a.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-c8eg05nh.js → chunk-av744yc8.js} +4 -4
- package/dist/{chunk-t205gnzc.js → chunk-ay4s5qnv.js} +5 -5
- package/dist/{chunk-n01c55f9.js → chunk-b4gf06xg.js} +5 -5
- package/dist/{chunk-61dmxexa.js → chunk-bqbfyqx6.js} +30 -70
- package/dist/{chunk-y3c9pxez.js → chunk-bvpa6jrp.js} +7 -7
- package/dist/{chunk-r9x4ehsy.js → chunk-cb6yfbkf.js} +6 -6
- package/dist/{chunk-4qrb09w4.js → chunk-d4vhrja4.js} +3 -3
- package/dist/{chunk-rbpn35g5.js → chunk-ea29sbaq.js} +1 -1
- package/dist/{chunk-64arqv10.js → chunk-g0vpp6p9.js} +7 -7
- package/dist/{chunk-n0bp958m.js → chunk-gfzzgz3h.js} +4 -4
- package/dist/{chunk-er0e8d8v.js → chunk-k9fnm7ds.js} +60 -14
- package/dist/{chunk-5e1ndtnp.js → chunk-kk1wfhhz.js} +2 -2
- package/dist/{chunk-nna9pwp0.js → chunk-mpw74rad.js} +48 -36
- package/dist/{chunk-tsefrrxz.js → chunk-pdcj5cfz.js} +1 -1
- package/dist/{chunk-z0gqrc8c.js → chunk-vyx49k26.js} +17 -17
- package/dist/{chunk-q8e58p57.js → chunk-wy6gmtd9.js} +2 -2
- package/dist/{chunk-yhat3rhw.js → chunk-xmdyfzf3.js} +125 -116
- package/dist/{chunk-ee7ss0df.js → chunk-ymzkqbye.js} +3 -3
- package/dist/{chunk-t9dmwy8x.js → chunk-za4cezh6.js} +19 -19
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString,
|
|
4
|
+
hasProperty,
|
|
5
|
+
symbol,
|
|
6
|
+
hash,
|
|
7
|
+
symbol2,
|
|
8
|
+
equals,
|
|
3
9
|
BaseProto,
|
|
10
|
+
PipeInspectableProto,
|
|
4
11
|
Prototype,
|
|
5
12
|
some,
|
|
6
13
|
Service2,
|
|
@@ -14,11 +21,8 @@ import {
|
|
|
14
21
|
andThen2,
|
|
15
22
|
map9,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-61dmxexa.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-bqbfyqx6.js";
|
|
22
26
|
import {
|
|
23
27
|
unwrap,
|
|
24
28
|
drainFork,
|
|
@@ -27,7 +31,49 @@ import {
|
|
|
27
31
|
runCollect,
|
|
28
32
|
runDrain,
|
|
29
33
|
mkString
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-vyx49k26.js";
|
|
35
|
+
|
|
36
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
+
var value2 = (self) => {
|
|
39
|
+
if (redactedRegistry.has(self)) {
|
|
40
|
+
return redactedRegistry.get(self);
|
|
41
|
+
} else {
|
|
42
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
+
var TypeId = "~effect/Redacted";
|
|
48
|
+
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
+
var make = (value, options) => {
|
|
50
|
+
const self = Object.create(Proto);
|
|
51
|
+
if (options?.label) {
|
|
52
|
+
self.label = options.label;
|
|
53
|
+
}
|
|
54
|
+
redactedRegistry.set(self, value);
|
|
55
|
+
return self;
|
|
56
|
+
};
|
|
57
|
+
var Proto = {
|
|
58
|
+
[TypeId]: {
|
|
59
|
+
_A: (_) => _
|
|
60
|
+
},
|
|
61
|
+
label: undefined,
|
|
62
|
+
...PipeInspectableProto,
|
|
63
|
+
toJSON() {
|
|
64
|
+
return this.toString();
|
|
65
|
+
},
|
|
66
|
+
toString() {
|
|
67
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
+
},
|
|
69
|
+
[symbol]() {
|
|
70
|
+
return hash(redactedRegistry.get(this));
|
|
71
|
+
},
|
|
72
|
+
[symbol2](that) {
|
|
73
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var value = value2;
|
|
31
77
|
|
|
32
78
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
33
79
|
function nominal() {
|
|
@@ -55,7 +101,7 @@ var HandleProto = {
|
|
|
55
101
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
56
102
|
...params
|
|
57
103
|
}, HandleProto);
|
|
58
|
-
var
|
|
104
|
+
var make2 = (spawn) => {
|
|
59
105
|
const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
60
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
61
107
|
return ChildProcessSpawner.of({
|
|
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
|
|
|
176
222
|
if (word.length === 0)
|
|
177
223
|
return;
|
|
178
224
|
const value = word.map(unwrap2).join("");
|
|
179
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
225
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
|
|
180
226
|
word = [];
|
|
181
227
|
plain = true;
|
|
182
228
|
braceDepth = 0;
|
|
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
|
|
|
266
312
|
};
|
|
267
313
|
|
|
268
314
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
269
|
-
var
|
|
270
|
-
var
|
|
315
|
+
var TypeId2 = "~effect/process/ChildProcess";
|
|
316
|
+
var Proto2 = {
|
|
271
317
|
.../* @__PURE__ */ Prototype({
|
|
272
318
|
label: "Command",
|
|
273
319
|
evaluate(fiber) {
|
|
274
320
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
275
321
|
}
|
|
276
322
|
}),
|
|
277
|
-
[
|
|
323
|
+
[TypeId2]: TypeId2
|
|
278
324
|
};
|
|
279
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
325
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
|
|
280
326
|
_tag: "StandardCommand",
|
|
281
327
|
command,
|
|
282
328
|
args,
|
|
283
329
|
options
|
|
284
330
|
});
|
|
285
|
-
var
|
|
331
|
+
var make3 = function make(...args) {
|
|
286
332
|
if (isTemplateString(args[0])) {
|
|
287
333
|
const [templates, ...expressions] = args;
|
|
288
334
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
|
|
|
340
386
|
}
|
|
341
387
|
return script;
|
|
342
388
|
};
|
|
343
|
-
export { ExitCode, ProcessId, makeHandle,
|
|
389
|
+
export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
|
|
@@ -1320,7 +1320,7 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
|
|
|
1320
1320
|
path: "runner-operations#runner-settings",
|
|
1321
1321
|
level: 3,
|
|
1322
1322
|
link: "https://kitman.sh/knowledge/docs/runner-operations#runner-settings",
|
|
1323
|
-
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to 32. It applies a change within about 10 seconds, and work in flight finishes first.\n- **Sandbox**: `srt` (the default), `docker` or `host`. New Steps and checks use a change; a running Step keeps its own.\n- **Docker image**: the image `docker` runs agents in, pinned by digest. It applies when the Runner restarts.\n- **Check hosts**: hosts every check this Runner runs, for any Team, may also reach.\n- **Checks' Docker image** and **checks' registry image**: for a pipeline check's own Docker daemon (below), each pinned by digest. They apply when the Runner restarts.\n\n```sh\nkitman runner settings <runner> --concurrency 2 --check-hosts github.com\n```\n\nThe Runner's page shows where what the Runner applies differs from its settings, and why.\n\nA few things stay on your machine, because they start the Runner or protect it: the Runner's id, the API URL and its credential, `KITMAN_RUNNER_FULL_ACCESS`, and your consent to run agents with no sandbox, `KITMAN_RUNNER_ALLOW_FULL_ACCESS=1`. Kitman cannot give that consent, so nobody who can change the Runner's settings, nor a compromised control plane, can turn off your machine's sandbox: a Runner set to `host` on a machine without it runs its agents in `srt` and shows the `full_access_refused` Runner Problem. A Runner set to `host` on a machine with it runs agents that use your own `kitman` login. When Kitman refuses that login, the Runner shows the `cli_session_expired` Runner Problem: run `kitman login` on the machine.\n\nBefore Kitman kept these, they were the environment variables `KITMAN_RUNNER_CONCURRENCY`, `KITMAN_RUNNER_SANDBOX`, `KITMAN_RUNNER_DOCKER_IMAGE`, `KITMAN_RUNNER_CHECK_HOSTS`, `KITMAN_RUNNER_CHECK_DOCKER_IMAGE` and `KITMAN_RUNNER_CHECK_REGISTRY_IMAGE`. The first time a Runner starts on a version with settings, Kitman adopts the values they give, once, for each setting nobody has set yet (a shared Runner's sandbox excepted); after that the Runner ignores them and warns at each start that each one still set is deprecated. Remove them from its service when its settings look right. While `KITMAN_RUNNER_SANDBOX=host` stays set, it counts as your consent to run agents on the host."
|
|
1323
|
+
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to 32. It applies a change within about 10 seconds, and work in flight finishes first.\n- **Verification concurrency**: how many of those may be Verifications, the checks that test a Step's work, 2 by default. It never runs more of them than its concurrency, even when this setting is higher. Its other slots keep taking agent Steps. It caps each Runner process, so a Runner with several replicas runs that many on each.\n- **Sandbox**: `srt` (the default), `docker` or `host`. New Steps and checks use a change; a running Step keeps its own.\n- **Docker image**: the image `docker` runs agents in, pinned by digest. It applies when the Runner restarts.\n- **Check hosts**: hosts every check this Runner runs, for any Team, may also reach.\n- **Checks' Docker image** and **checks' registry image**: for a pipeline check's own Docker daemon (below), each pinned by digest. They apply when the Runner restarts.\n\n```sh\nkitman runner settings <runner> --concurrency 2 --check-hosts github.com\n```\n\nThe Runner's page shows where what the Runner applies differs from its settings, and why.\n\nA few things stay on your machine, because they start the Runner or protect it: the Runner's id, the API URL and its credential, `KITMAN_RUNNER_FULL_ACCESS`, and your consent to run agents with no sandbox, `KITMAN_RUNNER_ALLOW_FULL_ACCESS=1`. Kitman cannot give that consent, so nobody who can change the Runner's settings, nor a compromised control plane, can turn off your machine's sandbox: a Runner set to `host` on a machine without it runs its agents in `srt` and shows the `full_access_refused` Runner Problem. A Runner set to `host` on a machine with it runs agents that use your own `kitman` login. When Kitman refuses that login, the Runner shows the `cli_session_expired` Runner Problem: run `kitman login` on the machine.\n\nBefore Kitman kept these, they were the environment variables `KITMAN_RUNNER_CONCURRENCY`, `KITMAN_RUNNER_SANDBOX`, `KITMAN_RUNNER_DOCKER_IMAGE`, `KITMAN_RUNNER_CHECK_HOSTS`, `KITMAN_RUNNER_CHECK_DOCKER_IMAGE` and `KITMAN_RUNNER_CHECK_REGISTRY_IMAGE`. The first time a Runner starts on a version with settings, Kitman adopts the values they give, once, for each setting nobody has set yet (a shared Runner's sandbox excepted); after that the Runner ignores them and warns at each start that each one still set is deprecated. Remove them from its service when its settings look right. While `KITMAN_RUNNER_SANDBOX=host` stays set, it counts as your consent to run agents on the host."
|
|
1324
1324
|
},
|
|
1325
1325
|
{
|
|
1326
1326
|
title: "Runner Operations Guide \u203A The sandbox",
|
|
@@ -2211,7 +2211,7 @@ var pathOfLink = (link) => {
|
|
|
2211
2211
|
return page === null ? link : page[1] || "index";
|
|
2212
2212
|
};
|
|
2213
2213
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
2214
|
-
var pinnedLink2 = (link, version = "0.
|
|
2214
|
+
var pinnedLink2 = (link, version = "0.37.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
2215
2215
|
var pageOf = (path) => path.split("#")[0];
|
|
2216
2216
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
2217
2217
|
function excerpt(text, queryTerms) {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make16,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed4,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
decodeJsonStringOption,
|
|
110
110
|
encodeJsonStringSync,
|
|
111
111
|
encodePrettyJsonString
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-bqbfyqx6.js";
|
|
113
113
|
import {
|
|
114
114
|
currentTimeMillis,
|
|
115
115
|
tap,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
withDefault,
|
|
123
123
|
option,
|
|
124
124
|
String2
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-vyx49k26.js";
|
|
126
126
|
import {
|
|
127
127
|
SecureRandom,
|
|
128
128
|
layerWebCrypto,
|
|
@@ -163,6 +163,7 @@ import {
|
|
|
163
163
|
RunDisplayStates,
|
|
164
164
|
RunnerExecutionBackend,
|
|
165
165
|
MaxRunnerConcurrency,
|
|
166
|
+
verificationCap,
|
|
166
167
|
PinnedImage,
|
|
167
168
|
RunnerSettingNames,
|
|
168
169
|
RunnerSettingsUpdate,
|
|
@@ -186,7 +187,7 @@ import {
|
|
|
186
187
|
digestSha256,
|
|
187
188
|
sha256Hasher,
|
|
188
189
|
raw,
|
|
189
|
-
|
|
190
|
+
make5,
|
|
190
191
|
get,
|
|
191
192
|
put,
|
|
192
193
|
HttpClient,
|
|
@@ -252,15 +253,15 @@ import {
|
|
|
252
253
|
harnessNames,
|
|
253
254
|
herdrRunnerCapabilities2,
|
|
254
255
|
declaredChecks
|
|
255
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-xmdyfzf3.js";
|
|
256
257
|
import {
|
|
257
258
|
ChildProcessSpawner,
|
|
258
|
-
|
|
259
|
-
} from "./chunk-
|
|
259
|
+
make3
|
|
260
|
+
} from "./chunk-k9fnm7ds.js";
|
|
260
261
|
import {
|
|
261
262
|
Id,
|
|
262
263
|
Timestamp
|
|
263
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-ea29sbaq.js";
|
|
264
265
|
|
|
265
266
|
// apps/cli/src/cli-error.ts
|
|
266
267
|
function cliErrorCode(error, status) {
|
|
@@ -706,7 +707,8 @@ var Usage = [
|
|
|
706
707
|
" kitman pair [<pairing code>] [--api-url <url>] (what the command the web shows runs; no code finishes or re-keys with your session)",
|
|
707
708
|
" kitman pair <runner pairing code> --credential-file <path> (writes a shared Runner's credential for a container or its replicas to mount)",
|
|
708
709
|
" kitman runner start --credential-file <path> (or KITMAN_RUNNER_CREDENTIAL_FILE; starts the Runner the file holds)",
|
|
709
|
-
" kitman runner settings <runner> [--concurrency <1-32>] [--sandbox srt|docker|host]
|
|
710
|
+
" kitman runner settings <runner> [--concurrency <1-32>] [--verification-concurrency <1-32>] [--sandbox srt|docker|host]",
|
|
711
|
+
" [--docker-image <image@sha256:\u2026>|none]",
|
|
710
712
|
" [--check-hosts <host,\u2026>|none] [--check-docker-image <image@sha256:\u2026>|none] [--check-registry-image <image@sha256:\u2026>|none]",
|
|
711
713
|
" kitman runner settings history <runner> (each change: who, when, old and new value)",
|
|
712
714
|
"",
|
|
@@ -1327,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1327
1329
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1328
1330
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1329
1331
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1330
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-2nqsmnx7.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1331
1333
|
});
|
|
1332
1334
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1333
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1335
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-2nqsmnx7.js")), (module) => module.updateHerdrCore(options))
|
|
1334
1336
|
});
|
|
1335
1337
|
var herdrCoreMissing = (error) => {
|
|
1336
1338
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1393,6 +1395,7 @@ var settingVariables = {
|
|
|
1393
1395
|
checkDockerImage: "KITMAN_RUNNER_CHECK_DOCKER_IMAGE",
|
|
1394
1396
|
checkRegistryImage: "KITMAN_RUNNER_CHECK_REGISTRY_IMAGE"
|
|
1395
1397
|
};
|
|
1398
|
+
var environmentSettingNames = RunnerSettingNames.filter((setting) => (setting in settingVariables));
|
|
1396
1399
|
var AllowFullAccessVariable = "KITMAN_RUNNER_ALLOW_FULL_ACCESS";
|
|
1397
1400
|
var isPinnedImage = is(PinnedImage);
|
|
1398
1401
|
var isNetworkHost = is(NetworkHost);
|
|
@@ -1417,7 +1420,7 @@ var variableValue = (environment, name) => {
|
|
|
1417
1420
|
var environmentSettings = (environment) => {
|
|
1418
1421
|
const settings = {};
|
|
1419
1422
|
const variables = [];
|
|
1420
|
-
for (const setting of
|
|
1423
|
+
for (const setting of environmentSettingNames) {
|
|
1421
1424
|
const value = variableValue(environment, settingVariables[setting]);
|
|
1422
1425
|
if (value === undefined)
|
|
1423
1426
|
continue;
|
|
@@ -1450,7 +1453,7 @@ var appliedSandbox = (input) => {
|
|
|
1450
1453
|
return { sandbox: fallback, ...problem === undefined ? undefined : { problem } };
|
|
1451
1454
|
};
|
|
1452
1455
|
var missingFor = (input, sandbox) => input.unavailable?.find((entry) => entry.backend === sandbox)?.missing ?? ["unsupported"];
|
|
1453
|
-
var deprecationWarnings = (variables, settings) =>
|
|
1456
|
+
var deprecationWarnings = (variables, settings) => environmentSettingNames.flatMap((setting) => {
|
|
1454
1457
|
const variable = settingVariables[setting];
|
|
1455
1458
|
if (!variables.includes(variable))
|
|
1456
1459
|
return [];
|
|
@@ -1461,6 +1464,7 @@ var deprecationWarnings = (variables, settings) => RunnerSettingNames.flatMap((s
|
|
|
1461
1464
|
});
|
|
1462
1465
|
var settingFlags = {
|
|
1463
1466
|
"--concurrency": "concurrency",
|
|
1467
|
+
"--verification-concurrency": "verificationConcurrency",
|
|
1464
1468
|
"--sandbox": "sandbox",
|
|
1465
1469
|
"--docker-image": "dockerImage",
|
|
1466
1470
|
"--check-hosts": "checkHosts",
|
|
@@ -1472,7 +1476,7 @@ var isSettingsUpdate = is(RunnerSettingsUpdate);
|
|
|
1472
1476
|
var settingFromFlag = (flag, value) => {
|
|
1473
1477
|
const setting = settingFlags[flag];
|
|
1474
1478
|
const cleared = value.trim() === "none";
|
|
1475
|
-
const parsed = setting === "concurrency" ? Number(value) : setting === "checkHosts" ? cleared ? [] : value.split(",").map((host) => host.trim()).filter((host) => host !== "") : setting === "sandbox" ? value.trim() : cleared ? null : value.trim();
|
|
1479
|
+
const parsed = setting === "concurrency" || setting === "verificationConcurrency" ? Number(value) : setting === "checkHosts" ? cleared ? [] : value.split(",").map((host) => host.trim()).filter((host) => host !== "") : setting === "sandbox" ? value.trim() : cleared ? null : value.trim();
|
|
1476
1480
|
const update = { [setting]: parsed };
|
|
1477
1481
|
if (!isSettingsUpdate(update))
|
|
1478
1482
|
throw new Error(settingFlagRefused[setting]);
|
|
@@ -1480,6 +1484,7 @@ var settingFromFlag = (flag, value) => {
|
|
|
1480
1484
|
};
|
|
1481
1485
|
var settingFlagRefused = {
|
|
1482
1486
|
concurrency: `--concurrency takes a whole number from 1 to ${MaxRunnerConcurrency}`,
|
|
1487
|
+
verificationConcurrency: `--verification-concurrency takes a whole number from 1 to the Runner's concurrency`,
|
|
1483
1488
|
sandbox: "--sandbox takes srt, docker or host",
|
|
1484
1489
|
dockerImage: "--docker-image takes an image pinned by digest (name@sha256:...), or none",
|
|
1485
1490
|
checkHosts: "--check-hosts takes comma-separated hosts, such as registry.npmjs.org,*.example.com, or none",
|
|
@@ -1488,7 +1493,8 @@ var settingFlagRefused = {
|
|
|
1488
1493
|
};
|
|
1489
1494
|
var settingRows = (settings, applied) => RunnerSettingNames.map((setting) => {
|
|
1490
1495
|
const value = shownRunnerSetting(settings[setting]);
|
|
1491
|
-
const
|
|
1496
|
+
const appliedValue = applied?.[setting];
|
|
1497
|
+
const inEffect = appliedValue === undefined ? undefined : shownRunnerSetting(appliedValue);
|
|
1492
1498
|
return {
|
|
1493
1499
|
setting,
|
|
1494
1500
|
value,
|
|
@@ -1637,7 +1643,7 @@ var runnerUpdater = (input) => {
|
|
|
1637
1643
|
const drain = (version) => gen(function* () {
|
|
1638
1644
|
claiming = false;
|
|
1639
1645
|
const since = yield* currentTimeMillis;
|
|
1640
|
-
const switchNow = yield*
|
|
1646
|
+
const switchNow = yield* make16();
|
|
1641
1647
|
if (version !== undefined)
|
|
1642
1648
|
draining = {
|
|
1643
1649
|
report: {
|
|
@@ -1790,7 +1796,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1790
1796
|
});
|
|
1791
1797
|
var syncKits = (input) => gen(function* () {
|
|
1792
1798
|
const fs = yield* FileSystem;
|
|
1793
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1799
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-bvpa6jrp.js"));
|
|
1794
1800
|
const harnesses = yield* syncTargets(input.harness);
|
|
1795
1801
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1796
1802
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2307,7 +2313,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
2307
2313
|
run: (command, args) => runCommand2(command, args),
|
|
2308
2314
|
attach: (command, args) => gen(function* () {
|
|
2309
2315
|
const spawner = yield* ChildProcessSpawner;
|
|
2310
|
-
const handle = yield* spawner.spawn(
|
|
2316
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
2311
2317
|
const exitCode = yield* handle.exitCode;
|
|
2312
2318
|
if (exitCode !== 0)
|
|
2313
2319
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -3285,7 +3291,7 @@ var shipped_steps_generated_default = {
|
|
|
3285
3291
|
};
|
|
3286
3292
|
|
|
3287
3293
|
// apps/cli/src/scaffold-files.ts
|
|
3288
|
-
var cliVersion = "0.
|
|
3294
|
+
var cliVersion = "0.37.0";
|
|
3289
3295
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3290
3296
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3291
3297
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3550,7 +3556,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3550
3556
|
|
|
3551
3557
|
// apps/cli/src/commands.ts
|
|
3552
3558
|
var ClientId = "kitman-cli";
|
|
3553
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3559
|
+
var agentRuntime = promise(() => import("./chunk-2pqqspes.js"));
|
|
3554
3560
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3555
3561
|
defaultValue: () => gen(function* () {
|
|
3556
3562
|
const tui = yield* tryPromise({
|
|
@@ -5089,7 +5095,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5089
5095
|
});
|
|
5090
5096
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5091
5097
|
defaultValue: () => (options) => gen(function* () {
|
|
5092
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5098
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-cb6yfbkf.js"));
|
|
5093
5099
|
return yield* makeRunnerRpcClient({
|
|
5094
5100
|
runnerId: options.runnerId,
|
|
5095
5101
|
bearer: options.bearer,
|
|
@@ -5220,7 +5226,8 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5220
5226
|
runCheckouts,
|
|
5221
5227
|
runnerStepAttemptFromAgentStep,
|
|
5222
5228
|
superviseReplica,
|
|
5223
|
-
verificationExecutor
|
|
5229
|
+
verificationExecutor,
|
|
5230
|
+
verificationPermits
|
|
5224
5231
|
} = yield* agentRuntime;
|
|
5225
5232
|
const openRunnerRpc = yield* OpenRunnerRpc;
|
|
5226
5233
|
const hostSettings = yield* runnerHostSettings;
|
|
@@ -5241,9 +5248,9 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5241
5248
|
}))) : firstHeartbeat;
|
|
5242
5249
|
yield* rememberReleaseChannel(input.runnerId, runner.releaseChannel);
|
|
5243
5250
|
const personal = runner.ownership.kind === "personal";
|
|
5244
|
-
const settings =
|
|
5251
|
+
const settings = {
|
|
5245
5252
|
...defaultRunnerSettings(personal),
|
|
5246
|
-
...hostSettings.environment.settings
|
|
5253
|
+
...runner.settings ?? hostSettings.environment.settings
|
|
5247
5254
|
};
|
|
5248
5255
|
if (runner.settings !== undefined)
|
|
5249
5256
|
for (const warning of deprecationWarnings(hostSettings.environment.variables, runner.settings))
|
|
@@ -5357,6 +5364,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5357
5364
|
} : undefined;
|
|
5358
5365
|
const appliedSettings = () => ({
|
|
5359
5366
|
concurrency: live.settings.concurrency,
|
|
5367
|
+
verificationConcurrency: verificationCap(live.settings),
|
|
5360
5368
|
sandbox: live.sandbox,
|
|
5361
5369
|
dockerImage: settings.dockerImage,
|
|
5362
5370
|
checkHosts: live.settings.checkHosts,
|
|
@@ -5410,6 +5418,8 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5410
5418
|
bearer: controlPlane.rpcBearer
|
|
5411
5419
|
}).pipe(tap2((opened) => opened.settledRuns([])))));
|
|
5412
5420
|
const signals = yield* makeReplicaSignals;
|
|
5421
|
+
const verifications = verificationPermits(sync2(() => verificationCap(live.settings)));
|
|
5422
|
+
const heartbeat = (beat) => flatMap3(verifications.full, (full) => rpc.heartbeat(full ? { ...beat, takesVerifications: false } : beat));
|
|
5413
5423
|
const bundles = yield* kitmanBundles({
|
|
5414
5424
|
fetch: (digest) => rpc.bundle(digest).pipe(map9((found) => found.bundle)),
|
|
5415
5425
|
cacheDir: bundleCache
|
|
@@ -5418,7 +5428,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5418
5428
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map9(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
|
|
5419
5429
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5420
5430
|
const platform = yield* context();
|
|
5421
|
-
const updated = yield*
|
|
5431
|
+
const updated = yield* make16();
|
|
5422
5432
|
const scope = yield* scope2;
|
|
5423
5433
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5424
5434
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5447,7 +5457,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5447
5457
|
const applySettings = (next) => gen(function* () {
|
|
5448
5458
|
if (next === undefined)
|
|
5449
5459
|
return;
|
|
5450
|
-
live.settings = next;
|
|
5460
|
+
live.settings = { ...defaultRunnerSettings(personal), ...next };
|
|
5451
5461
|
const wanted = appliedSandbox({
|
|
5452
5462
|
wanted: next.sandbox,
|
|
5453
5463
|
personal,
|
|
@@ -5497,7 +5507,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5497
5507
|
const version = work.secretDestinations?.[name]?.version;
|
|
5498
5508
|
return version === undefined ? [] : [{ name, version }];
|
|
5499
5509
|
});
|
|
5500
|
-
return
|
|
5510
|
+
return heartbeat({
|
|
5501
5511
|
workUnitId: work.id,
|
|
5502
5512
|
lease: leaseOf(work),
|
|
5503
5513
|
...secrets.length === 0 ? undefined : { secrets }
|
|
@@ -5510,7 +5520,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5510
5520
|
spending,
|
|
5511
5521
|
sandbox: sandboxOf,
|
|
5512
5522
|
heartbeat: heartbeatOf,
|
|
5513
|
-
harnessStarted: (work) => asVoid(
|
|
5523
|
+
harnessStarted: (work) => asVoid(heartbeat({ workUnitId: work.id, lease: leaseOf(work), harnessStarted: true })),
|
|
5514
5524
|
gitCredentials: rpc.gitCredential,
|
|
5515
5525
|
checkpoints: rpcStepCheckpoints(rpc, signals, storage),
|
|
5516
5526
|
transcripts: (work, entries) => rpc.appendTranscript({ workUnitId: work.id, entries }),
|
|
@@ -5580,11 +5590,12 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5580
5590
|
};
|
|
5581
5591
|
const control = (capacitySlot) => {
|
|
5582
5592
|
return {
|
|
5583
|
-
claim: (idempotencyKey) => suspend3(() => {
|
|
5593
|
+
claim: (idempotencyKey, options) => suspend3(() => {
|
|
5584
5594
|
if (!updater.claiming())
|
|
5585
5595
|
return succeed6({});
|
|
5586
5596
|
claimsInFlight += 1;
|
|
5587
5597
|
return rpc.claim({
|
|
5598
|
+
...options,
|
|
5588
5599
|
...input.teamId === undefined ? undefined : { teamId: input.teamId },
|
|
5589
5600
|
runnerReplicaId: replica.id,
|
|
5590
5601
|
capacitySlot,
|
|
@@ -5608,7 +5619,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5608
5619
|
capacity: { maxConcurrentRuns: live.settings.concurrency },
|
|
5609
5620
|
telemetry: { activeWorkUnits: activeSlots.size }
|
|
5610
5621
|
}).pipe(asVoid)), tapError2(onProtocolRefusal)),
|
|
5611
|
-
heartbeatWork: (workUnitId, lease) =>
|
|
5622
|
+
heartbeatWork: (workUnitId, lease) => heartbeat({ workUnitId, lease }),
|
|
5612
5623
|
complete: (completion) => rpc.complete(completion),
|
|
5613
5624
|
release: (workUnitId, lease, crashed, tokens, ranModel) => rpc.release({
|
|
5614
5625
|
workUnitId,
|
|
@@ -5622,6 +5633,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5622
5633
|
const supervised = superviseReplica({
|
|
5623
5634
|
slots: Array.from({ length: MaxRunnerConcurrency }, (_, index) => `slot-${index + 1}`),
|
|
5624
5635
|
concurrency: sync2(() => live.settings.concurrency),
|
|
5636
|
+
verifications,
|
|
5625
5637
|
control,
|
|
5626
5638
|
executor: {
|
|
5627
5639
|
execute: (work) => {
|
|
@@ -5680,7 +5692,7 @@ function mcpCommand(args) {
|
|
|
5680
5692
|
if (command.action === "run") {
|
|
5681
5693
|
if (command.args.length > 0)
|
|
5682
5694
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5683
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5695
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-3xfsv475.js"));
|
|
5684
5696
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5685
5697
|
}
|
|
5686
5698
|
if (command.action !== "setup")
|
|
@@ -6180,7 +6192,7 @@ function programLoopCommand(command) {
|
|
|
6180
6192
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6181
6193
|
});
|
|
6182
6194
|
}
|
|
6183
|
-
var docsModule = promise(() => import("./chunk-
|
|
6195
|
+
var docsModule = promise(() => import("./chunk-pdcj5cfz.js"));
|
|
6184
6196
|
function docsCommand(args) {
|
|
6185
6197
|
return gen(function* () {
|
|
6186
6198
|
const command = parseCommand(args);
|
|
@@ -7184,7 +7196,7 @@ function changeRequestCommand(args) {
|
|
|
7184
7196
|
yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
|
|
7185
7197
|
});
|
|
7186
7198
|
}
|
|
7187
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7199
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-za4cezh6.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7188
7200
|
var loopOutline = (command) => gen(function* () {
|
|
7189
7201
|
const path = yield* Path;
|
|
7190
7202
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7204,9 +7216,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7204
7216
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7205
7217
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7206
7218
|
});
|
|
7207
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7219
|
+
var KitWriter = map9(promise(() => import("./chunk-za4cezh6.js")), (build) => build.writeKit);
|
|
7208
7220
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7209
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7221
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-za4cezh6.js")), (build) => build.buildKit(directory))
|
|
7210
7222
|
});
|
|
7211
7223
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7212
7224
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -7985,7 +7997,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
7985
7997
|
return gen(function* () {
|
|
7986
7998
|
const fs = yield* FileSystem;
|
|
7987
7999
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
7988
|
-
const response = yield* send(
|
|
8000
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
7989
8001
|
if (response.status < 200 || response.status >= 300)
|
|
7990
8002
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
7991
8003
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
String4,
|
|
206
206
|
toCodecStringTree,
|
|
207
207
|
encodeUnknownJsonStringSync
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-bqbfyqx6.js";
|
|
209
209
|
|
|
210
210
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
211
211
|
var headUnsafe = (self) => {
|
|
@@ -1137,7 +1137,7 @@ var MutableRefProto = {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
1139
|
};
|
|
1140
|
-
var
|
|
1140
|
+
var make8 = (value) => {
|
|
1141
1141
|
const ref = Object.create(MutableRefProto);
|
|
1142
1142
|
ref.current = value;
|
|
1143
1143
|
return ref;
|
|
@@ -1298,7 +1298,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1298
1298
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1299
1299
|
var TypeId3 = "~effect/PubSub";
|
|
1300
1300
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1301
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1301
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1302
1302
|
var unbounded = (options) => make5({
|
|
1303
1303
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1304
1304
|
strategy: () => new DroppingStrategy
|
|
@@ -1393,7 +1393,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1393
1393
|
subscribers.delete(subscription);
|
|
1394
1394
|
}
|
|
1395
1395
|
};
|
|
1396
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1396
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1397
1397
|
class UnboundedPubSub {
|
|
1398
1398
|
publisherHead = {
|
|
1399
1399
|
value: AbsentValue,
|
|
@@ -1810,7 +1810,7 @@ var QueueProto = {
|
|
|
1810
1810
|
};
|
|
1811
1811
|
}
|
|
1812
1812
|
};
|
|
1813
|
-
var
|
|
1813
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1814
1814
|
const self = Object.create(QueueProto);
|
|
1815
1815
|
self.dispatcher = fiber.currentDispatcher;
|
|
1816
1816
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1825,14 +1825,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1825
1825
|
};
|
|
1826
1826
|
return succeed2(self);
|
|
1827
1827
|
});
|
|
1828
|
-
var bounded = (capacity) =>
|
|
1828
|
+
var bounded = (capacity) => make9({
|
|
1829
1829
|
capacity
|
|
1830
1830
|
});
|
|
1831
|
-
var sliding = (capacity) =>
|
|
1831
|
+
var sliding = (capacity) => make9({
|
|
1832
1832
|
capacity,
|
|
1833
1833
|
strategy: "sliding"
|
|
1834
1834
|
});
|
|
1835
|
-
var unbounded2 = () =>
|
|
1835
|
+
var unbounded2 = () => make9();
|
|
1836
1836
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1837
1837
|
var offerUnsafe = (self, message) => {
|
|
1838
1838
|
if (self.state._tag !== "Open") {
|
|
@@ -2258,7 +2258,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2258
2258
|
return onError(pull, onCause);
|
|
2259
2259
|
}));
|
|
2260
2260
|
var toTransform = (channel) => channel.transform;
|
|
2261
|
-
var asyncQueue = (scope, f, options) =>
|
|
2261
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2262
2262
|
capacity: options?.bufferSize,
|
|
2263
2263
|
strategy: options?.strategy
|
|
2264
2264
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2299,7 +2299,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2299
2299
|
}));
|
|
2300
2300
|
var readableStreamToPullUnsafe = (options) => {
|
|
2301
2301
|
const reader = options.readable.getReader();
|
|
2302
|
-
const exit = options.exit ??
|
|
2302
|
+
const exit = options.exit ?? make8(undefined);
|
|
2303
2303
|
const pull = suspend3(() => {
|
|
2304
2304
|
if (exit.current)
|
|
2305
2305
|
return exit.current;
|
|
@@ -2960,7 +2960,7 @@ var release = (self, state) => {
|
|
|
2960
2960
|
};
|
|
2961
2961
|
|
|
2962
2962
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2963
|
-
var
|
|
2963
|
+
var make10 = make6;
|
|
2964
2964
|
var get3 = get2;
|
|
2965
2965
|
|
|
2966
2966
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2972,7 +2972,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2972
2972
|
var toChannel2 = (stream) => stream.channel;
|
|
2973
2973
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2974
2974
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2975
|
-
var
|
|
2975
|
+
var make11 = (...values) => fromArray2(values);
|
|
2976
2976
|
var suspend = (stream) => {
|
|
2977
2977
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2978
2978
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3173,7 +3173,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3173
3173
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3174
3174
|
var TypeId10 = "~effect/FileSystem";
|
|
3175
3175
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3176
|
-
var
|
|
3176
|
+
var make12 = (impl) => FileSystem.of({
|
|
3177
3177
|
...impl,
|
|
3178
3178
|
[TypeId10]: TypeId10,
|
|
3179
3179
|
glob: make2(impl),
|
|
@@ -3233,7 +3233,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3233
3233
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3234
3234
|
var TypeId11 = "~effect/Path";
|
|
3235
3235
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3236
|
-
var
|
|
3236
|
+
var make13 = (impl) => Path.of({
|
|
3237
3237
|
...impl,
|
|
3238
3238
|
[TypeId11]: TypeId11,
|
|
3239
3239
|
resolveWithin(root, input) {
|
|
@@ -3308,7 +3308,7 @@ function makeProvider(load, mapInput) {
|
|
|
3308
3308
|
function makeSource(get, transform) {
|
|
3309
3309
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3311
|
+
function make7(get) {
|
|
3312
3312
|
return makeSource(get, identityPath);
|
|
3313
3313
|
}
|
|
3314
3314
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3317,7 +3317,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3317
3317
|
function fromEnvRecord(env, options) {
|
|
3318
3318
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3319
3319
|
const trie = buildEnvTrie(env);
|
|
3320
|
-
return
|
|
3320
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3321
3321
|
}
|
|
3322
3322
|
function fromEnv(options) {
|
|
3323
3323
|
const env = options?.env ?? {
|
|
@@ -3649,4 +3649,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3649
3649
|
...argv
|
|
3650
3650
|
];
|
|
3651
3651
|
|
|
3652
|
-
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3652
|
+
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, make10, get3, isStream, fromChannel2, callback, empty2, make11, 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, make12, FileTypeId, WatchBackend, Path, make13, 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 };
|