@kitman-sh/cli 0.33.0 → 0.35.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-tsx0347c.js → chunk-1hgsf81a.js} +1 -1
- package/dist/{chunk-samxkpbz.js → chunk-4qrb09w4.js} +3 -3
- package/dist/{chunk-s34am3kw.js → chunk-56gs4z53.js} +7 -7
- package/dist/{chunk-bnhb3cth.js → chunk-5e1ndtnp.js} +3 -3
- package/dist/{chunk-h2f26xbd.js → chunk-61dmxexa.js} +70 -28
- package/dist/{chunk-mhx0tgm3.js → chunk-64arqv10.js} +7 -7
- package/dist/{chunk-gnq1ryhx.js → chunk-c8eg05nh.js} +4 -4
- package/dist/{chunk-xkkyx7bn.js → chunk-ee7ss0df.js} +3 -3
- package/dist/{chunk-9nbqzdqp.js → chunk-er0e8d8v.js} +14 -60
- package/dist/{chunk-racse7zf.js → chunk-ke4rajdh.js} +44 -28
- package/dist/{chunk-sgkgwzvb.js → chunk-n01c55f9.js} +5 -5
- package/dist/{chunk-hgxhpj6m.js → chunk-n0bp958m.js} +4 -4
- package/dist/{chunk-1zb8h7gv.js → chunk-nna9pwp0.js} +53 -32
- package/dist/{chunk-vz38kngm.js → chunk-q8e58p57.js} +2 -2
- package/dist/{chunk-x29m7k25.js → chunk-qqb6djs7.js} +2 -2
- package/dist/{chunk-py3133q0.js → chunk-r9x4ehsy.js} +6 -6
- package/dist/{chunk-4qjfn1sa.js → chunk-rbpn35g5.js} +1 -1
- package/dist/{chunk-np5n54ky.js → chunk-t205gnzc.js} +5 -5
- package/dist/{chunk-9tyv6211.js → chunk-t9dmwy8x.js} +19 -19
- package/dist/{chunk-a9ncx2a8.js → chunk-tsefrrxz.js} +1 -1
- package/dist/{chunk-yveqd8ye.js → chunk-wkkjyzpx.js} +4 -4
- package/dist/{chunk-jrwpte6y.js → chunk-xc7kg57m.js} +64 -64
- package/dist/{chunk-ak1qrm4q.js → chunk-y3c9pxez.js} +7 -7
- package/dist/{chunk-nwbry6c8.js → chunk-yhat3rhw.js} +139 -121
- package/dist/{chunk-8fyfsajs.js → chunk-z0gqrc8c.js} +17 -17
- package/dist/{chunk-5kqt4bqp.js → chunk-znhjs0t6.js} +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-q8e58p57.js";
|
|
8
|
+
import"./chunk-rbpn35g5.js";
|
|
9
|
+
import"./chunk-61dmxexa.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -35,19 +35,19 @@ import {
|
|
|
35
35
|
isJsonObject,
|
|
36
36
|
isString2,
|
|
37
37
|
encodeUnknownJsonStringSync
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-61dmxexa.js";
|
|
39
39
|
import {
|
|
40
40
|
currentTimeMillis,
|
|
41
|
-
|
|
41
|
+
make10,
|
|
42
42
|
runForEach,
|
|
43
43
|
toPull,
|
|
44
44
|
FileSystem,
|
|
45
45
|
compiled2
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-z0gqrc8c.js";
|
|
47
47
|
import {
|
|
48
48
|
ChildProcessSpawner,
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
make2
|
|
50
|
+
} from "./chunk-er0e8d8v.js";
|
|
51
51
|
|
|
52
52
|
// packages/agent-runtime/src/opencode-store.ts
|
|
53
53
|
import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
|
|
@@ -265,8 +265,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
265
265
|
var spawnReader = (request) => gen(function* () {
|
|
266
266
|
const spawner = yield* ChildProcessSpawner;
|
|
267
267
|
const [command, ...args] = opencodeReaderCommand();
|
|
268
|
-
return yield* spawner.spawn(
|
|
269
|
-
stdin:
|
|
268
|
+
return yield* spawner.spawn(make2(command, args, {
|
|
269
|
+
stdin: make10(new TextEncoder().encode(request)),
|
|
270
270
|
stderr: "ignore",
|
|
271
271
|
extendEnv: false,
|
|
272
272
|
env: {},
|
|
@@ -1334,7 +1334,7 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
|
|
|
1334
1334
|
path: "runner-operations#herdr-core",
|
|
1335
1335
|
level: 3,
|
|
1336
1336
|
link: "https://kitman.sh/knowledge/docs/runner-operations#herdr-core",
|
|
1337
|
-
text: "### herdr-core\n\nYour Runner runs each agent Step in a [herdr-core](https://herdr.dev) terminal, which pairing installs when `herdr-core` is missing. A personal Runner uses your own herdr-core, so `hc ls` lists its agents next to your terminals and `hc attach <terminal>` lets you watch one and type into it; `hc ls --label kitman.runner=<runner-id>` lists only that Runner's. If you run herdr-app, each Run is a space and each Step a tab in it. A shared Runner uses a herdr-core session of its own, so its agents never appear among your terminals.\n\nWhen a Step ends, your Runner stops every process its agent started, including one it detached into a session of its own, such as a test that launched another `claude`. A process it cannot stop shows as the `processes_unreaped` Runner Problem with the command that stops it. Where your Runner cannot hold every process an agent starts, on `host` without a systemd user manager or on srt outside Linux, it shows the `processes_uncontained` Runner Problem and how to fix it.\n\nAn agent on `host` reaches Docker through a socket of its Step's, set as its `DOCKER_HOST`, which labels each container, network and volume it creates with the Step. When the Step ends, your Runner removes them, each container with its anonymous volumes, and a Runner that starts again removes what its crashed Steps left. To keep one past its Step, create it with the `kitman.handed-on` label, such as `docker run --label kitman.handed-on=review \u2026`. When a disk that holds the Runner's checkouts, its temp directory or Docker's data has less free than 10 GiB, or a tenth of its size if that is less, your Runner shows the `disk_nearly_full` Runner Problem, before checks fail on it.\n\nWhen Kitman serves a release on your Workspace's release channel newer than your Runner's, your Runner installs it and restarts on it by itself. It first stops claiming and lets its running work finish, for up to 30 minutes, and any Step still running then goes back to Kitman for another Runner. A Runner in a container cannot update itself, so it shows the `update_required` Runner Problem with the release to run its image with, and keeps working on its current version."
|
|
1337
|
+
text: "### herdr-core\n\nYour Runner runs each agent Step in a [herdr-core](https://herdr.dev) terminal, which pairing installs when `herdr-core` is missing. A personal Runner uses your own herdr-core, so `hc ls` lists its agents next to your terminals and `hc attach <terminal>` lets you watch one and type into it; `hc ls --label kitman.runner=<runner-id>` lists only that Runner's. If you run herdr-app, each Run is a space and each Step a tab in it. A shared Runner uses a herdr-core session of its own, so its agents never appear among your terminals.\n\nWhen a Step ends, your Runner stops every process its agent started, including one it detached into a session of its own, such as a test that launched another `claude`. A process it cannot stop shows as the `processes_unreaped` Runner Problem with the command that stops it. Where your Runner cannot hold every process an agent starts, on `host` without a systemd user manager or on srt outside Linux, it shows the `processes_uncontained` Runner Problem and how to fix it.\n\nAn agent on `host` reaches Docker through a socket of its Step's, set as its `DOCKER_HOST`, which labels each container, network and volume it creates with the Step. When the Step ends, your Runner removes them, each container with its anonymous volumes, and a Runner that starts again removes what its crashed Steps left. To keep one past its Step, create it with the `kitman.handed-on` label, such as `docker run --label kitman.handed-on=review \u2026`. When a disk that holds the Runner's checkouts, its temp directory or Docker's data has less free than 10 GiB, or a tenth of its size if that is less, your Runner shows the `disk_nearly_full` Runner Problem, before checks fail on it.\n\nWhen Kitman serves a release on your Workspace's release channel newer than your Runner's, your Runner installs it and restarts on it by itself. It first stops claiming and lets its running work finish, for up to 30 minutes, and any Step still running then goes back to Kitman for another Runner. While it drains, its panel shows \"Draining to update\", the release, the Runs it waits for and the time it switches at the latest. Each queued Run that only that Runner could take says so instead of its place in the queue. A personal Runner's owner, or a Workspace admin, can press \"Switch now\" on the panel: the Runner switches at once, and the work it still runs goes back to the queue for a Runner to take. A Runner in a container cannot update itself, so it shows the `update_required` Runner Problem with the release to run its image with, and keeps working on its current version."
|
|
1338
1338
|
},
|
|
1339
1339
|
{
|
|
1340
1340
|
title: "Runner Operations Guide \u203A Release channel",
|
|
@@ -1348,7 +1348,7 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
|
|
|
1348
1348
|
path: "runner-operations#harnesses",
|
|
1349
1349
|
level: 3,
|
|
1350
1350
|
link: "https://kitman.sh/knowledge/docs/runner-operations#harnesses",
|
|
1351
|
-
text: "### Harnesses\n\nWhen it starts, the Runner offers each of Pi, Claude Code, Codex and Antigravity that is installed and logged in:\n\n| Harness | Installed when | Logged in when |\n| ----------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| Pi | `pi` is on `PATH` | `~/.pi/agent/auth.json` exists, or `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY` or `OPENROUTER_API_KEY` is set |\n| Claude Code | `claude` is on `PATH` | `~/.claude/.credentials.json` exists, `~/.claude.json` records an `oauthAccount`, or `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN` is set |\n| Codex | `codex` is on `PATH` | `~/.codex/auth.json` exists, or `OPENAI_API_KEY` or `CODEX_API_KEY` is set |\n| Antigravity | `agy` is on `PATH` | `~/.gemini/antigravity-cli/cache/onboarding.json` records a finished onboarding, which `agy` writes once you sign in with Google |\n\nFor each Harness it does not offer, the Runner reports what is missing, and the Runners tab under **Agents** and `kitman runner doctor` show it. After you install or log in to a Harness, restart the Runner's service so it is detected. OpenCode is never detected; an Agent that names it still launches it on a Runner that offers it.\n\nA Claude Code Step runs in Claude Code's experimental Code Mode: its agent writes JavaScript that calls its tools in one `REPL` call, instead of calling them one at a time. The Runner records Code Mode's caveats as accepted in the Step's `.claude.json`, so the Step never stops at its opt-in question. Code Mode turns Claude in Chrome off, so a Step whose Agent has the `browser` capability runs without it.\n\nAn Antigravity Step runs only in the `host` sandbox, because your Google login is in the OS keyring, which neither `srt` nor `docker` gives the agent. A Runner whose sandbox is `srt` or `docker` does not offer it, and says so. Antigravity keeps all its config under `~/.gemini` and has no setting that moves it, so a Step runs with its config directory as `HOME`. That home links to each entry of yours, such as `~/.gitconfig` and `~/.ssh`, except `~/.gemini` and `~/.agents`, and except one the Step writes itself, such as `~/kitman-skills` for the Kit skills its Agent does not list: the Step gets the Run's Kit setup in those, not your skills, plugins, MCP servers or rules. It gets a copy of the onboarding `agy` records, so it skips the first-run setup, and settings that trust the worktree, run commands outside Antigravity's own terminal sandbox and never wait for a person to review a plan. Its Transcript and tokens come from the conversation's `transcript_full.jsonl`. A retried attempt starts a new conversation, because the one `agy` resumes is a database the Runner does not carry between attempts."
|
|
1351
|
+
text: "### Harnesses\n\nWhen it starts, the Runner offers each of Pi, Claude Code, Codex and Antigravity that is installed and logged in:\n\n| Harness | Installed when | Logged in when |\n| ----------- | --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |\n| Pi | `pi` is on `PATH` | `~/.pi/agent/auth.json` exists, or `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY` or `OPENROUTER_API_KEY` is set |\n| Claude Code | `claude` is on `PATH` | `~/.claude/.credentials.json` exists, `~/.claude.json` records an `oauthAccount`, or `ANTHROPIC_API_KEY` or `CLAUDE_CODE_OAUTH_TOKEN` is set |\n| Codex | `codex` is on `PATH` | `~/.codex/auth.json` exists, or `OPENAI_API_KEY` or `CODEX_API_KEY` is set |\n| Antigravity | `agy` is on `PATH` | `~/.gemini/antigravity-cli/cache/onboarding.json` records a finished onboarding, which `agy` writes once you sign in with Google |\n\nFor each Harness it does not offer, the Runner reports what is missing, and the Runners tab under **Agents** and `kitman runner doctor` show it. After you install or log in to a Harness, restart the Runner's service so it is detected. OpenCode is never detected; an Agent that names it still launches it on a Runner that offers it.\n\nA Claude Code Step runs in Claude Code's experimental Code Mode: its agent writes JavaScript that calls its tools in one `REPL` call, instead of calling them one at a time. The Runner records Code Mode's caveats as accepted in the Step's `.claude.json`, so the Step never stops at its opt-in question. It starts Claude Code with `CLAUDE_CODE_SANDBOXED=1`, so Claude Code takes the Step's directory as trusted and never shows its folder trust prompt, even when another Claude Code session on the machine saves `~/.claude.json` over the trust the Runner recorded. If a Step still stops at that prompt, Kitman starts it again, twice at most. Code Mode turns Claude in Chrome off, so a Step whose Agent has the `browser` capability runs without it.\n\nAn Antigravity Step runs only in the `host` sandbox, because your Google login is in the OS keyring, which neither `srt` nor `docker` gives the agent. A Runner whose sandbox is `srt` or `docker` does not offer it, and says so. Antigravity keeps all its config under `~/.gemini` and has no setting that moves it, so a Step runs with its config directory as `HOME`. That home links to each entry of yours, such as `~/.gitconfig` and `~/.ssh`, except `~/.gemini` and `~/.agents`, and except one the Step writes itself, such as `~/kitman-skills` for the Kit skills its Agent does not list: the Step gets the Run's Kit setup in those, not your skills, plugins, MCP servers or rules. It gets a copy of the onboarding `agy` records, so it skips the first-run setup, and settings that trust the worktree, run commands outside Antigravity's own terminal sandbox and never wait for a person to review a plan. Its Transcript and tokens come from the conversation's `transcript_full.jsonl`. A retried attempt starts a new conversation, because the one `agy` resumes is a database the Runner does not carry between attempts."
|
|
1352
1352
|
},
|
|
1353
1353
|
{
|
|
1354
1354
|
title: "Runner Operations Guide \u203A Default Harness",
|
|
@@ -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.35.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) {
|
|
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
|
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
1333
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
|
|
1334
|
-
var
|
|
1334
|
+
var make13 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1335
1335
|
var isStrictEquivalent = (x, y) => x === y;
|
|
1336
1336
|
var strictEqual = () => isStrictEquivalent;
|
|
1337
1337
|
function Tuple(elements) {
|
|
1338
|
-
return
|
|
1338
|
+
return make13((self, that) => {
|
|
1339
1339
|
if (self.length !== that.length) {
|
|
1340
1340
|
return false;
|
|
1341
1341
|
}
|
|
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
1350
|
function Array_(item) {
|
|
1351
|
-
return
|
|
1351
|
+
return make13((self, that) => {
|
|
1352
1352
|
if (self.length !== that.length)
|
|
1353
1353
|
return false;
|
|
1354
1354
|
for (let i = 0;i < self.length; i++) {
|
|
@@ -1580,7 +1580,7 @@ var ServiceProto = {
|
|
|
1580
1580
|
return self;
|
|
1581
1581
|
},
|
|
1582
1582
|
context(self) {
|
|
1583
|
-
return
|
|
1583
|
+
return make14(this, self);
|
|
1584
1584
|
},
|
|
1585
1585
|
use(f) {
|
|
1586
1586
|
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
@@ -1684,7 +1684,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1684
1684
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1685
1685
|
var empty3 = () => emptyContext2;
|
|
1686
1686
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1687
|
-
var
|
|
1687
|
+
var make14 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1688
1688
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1689
1689
|
var addUnsafe = (self, key, service) => {
|
|
1690
1690
|
const impl = self;
|
|
@@ -3075,7 +3075,7 @@ class FiberImpl {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
let cause = causeInterrupt(fiberId);
|
|
3077
3077
|
if (this.cache.stackFrame) {
|
|
3078
|
-
cause = causeAnnotate(cause,
|
|
3078
|
+
cause = causeAnnotate(cause, make14(StackTraceKey, this.cache.stackFrame));
|
|
3079
3079
|
}
|
|
3080
3080
|
if (annotations) {
|
|
3081
3081
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -5183,7 +5183,7 @@ var DeferredImpl = function() {
|
|
|
5183
5183
|
};
|
|
5184
5184
|
DeferredImpl.prototype = DeferredProto;
|
|
5185
5185
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5186
|
-
var
|
|
5186
|
+
var make15 = () => sync(() => makeUnsafe5());
|
|
5187
5187
|
var _await = (self) => callback2((resume) => {
|
|
5188
5188
|
if (self.effect)
|
|
5189
5189
|
return resume(self.effect);
|
|
@@ -5331,9 +5331,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5331
5331
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5332
5332
|
var succeed5 = function() {
|
|
5333
5333
|
if (arguments.length === 1) {
|
|
5334
|
-
return (resource) => succeedContext(
|
|
5334
|
+
return (resource) => succeedContext(make14(arguments[0], resource));
|
|
5335
5335
|
}
|
|
5336
|
-
return succeedContext(
|
|
5336
|
+
return succeedContext(make14(arguments[0], arguments[1]));
|
|
5337
5337
|
};
|
|
5338
5338
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5339
5339
|
var effect = function() {
|
|
@@ -5342,7 +5342,7 @@ var effect = function() {
|
|
|
5342
5342
|
}
|
|
5343
5343
|
return effectImpl(arguments[0], arguments[1]);
|
|
5344
5344
|
};
|
|
5345
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5345
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make14(service, value)));
|
|
5346
5346
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5347
5347
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5348
5348
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -5985,6 +5985,48 @@ for (let i = 0;i < alphabet2.length; i++)
|
|
|
5985
5985
|
var decodeString = (str) => map5(decode2(str), (_) => decoder2.decode(_));
|
|
5986
5986
|
var decoder2 = /* @__PURE__ */ new TextDecoder;
|
|
5987
5987
|
|
|
5988
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
5989
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
5990
|
+
var value2 = (self) => {
|
|
5991
|
+
if (redactedRegistry.has(self)) {
|
|
5992
|
+
return redactedRegistry.get(self);
|
|
5993
|
+
} else {
|
|
5994
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
5995
|
+
}
|
|
5996
|
+
};
|
|
5997
|
+
|
|
5998
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
5999
|
+
var TypeId8 = "~effect/Redacted";
|
|
6000
|
+
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
6001
|
+
var make16 = (value, options) => {
|
|
6002
|
+
const self = Object.create(Proto2);
|
|
6003
|
+
if (options?.label) {
|
|
6004
|
+
self.label = options.label;
|
|
6005
|
+
}
|
|
6006
|
+
redactedRegistry.set(self, value);
|
|
6007
|
+
return self;
|
|
6008
|
+
};
|
|
6009
|
+
var Proto2 = {
|
|
6010
|
+
[TypeId8]: {
|
|
6011
|
+
_A: (_) => _
|
|
6012
|
+
},
|
|
6013
|
+
label: undefined,
|
|
6014
|
+
...PipeInspectableProto,
|
|
6015
|
+
toJSON() {
|
|
6016
|
+
return this.toString();
|
|
6017
|
+
},
|
|
6018
|
+
toString() {
|
|
6019
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
6020
|
+
},
|
|
6021
|
+
[symbol]() {
|
|
6022
|
+
return hash(redactedRegistry.get(this));
|
|
6023
|
+
},
|
|
6024
|
+
[symbol2](that) {
|
|
6025
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
6026
|
+
}
|
|
6027
|
+
};
|
|
6028
|
+
var value = value2;
|
|
6029
|
+
|
|
5988
6030
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
5989
6031
|
function resolve(ast) {
|
|
5990
6032
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -6016,16 +6058,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
6016
6058
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
6017
6059
|
|
|
6018
6060
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
6019
|
-
var
|
|
6061
|
+
var TypeId9 = "~effect/SchemaIssue/Issue";
|
|
6020
6062
|
function isIssue(u) {
|
|
6021
|
-
return hasProperty(u,
|
|
6063
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
6022
6064
|
}
|
|
6023
6065
|
function hasInput(issue) {
|
|
6024
6066
|
return Object.hasOwn(issue, "input");
|
|
6025
6067
|
}
|
|
6026
6068
|
|
|
6027
6069
|
class IssueNodeImpl {
|
|
6028
|
-
[
|
|
6070
|
+
[TypeId9] = TypeId9;
|
|
6029
6071
|
constructor(input, options) {
|
|
6030
6072
|
if (options?.reportInput === true && input !== missing) {
|
|
6031
6073
|
this.input = input;
|
|
@@ -6413,9 +6455,9 @@ function getContent(operation) {
|
|
|
6413
6455
|
}
|
|
6414
6456
|
|
|
6415
6457
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6416
|
-
var
|
|
6458
|
+
var TypeId10 = "~effect/SchemaTransformation/Transformation";
|
|
6417
6459
|
var Transformation = class extends Class3 {
|
|
6418
|
-
[
|
|
6460
|
+
[TypeId10] = TypeId10;
|
|
6419
6461
|
_tag = "Transformation";
|
|
6420
6462
|
decode;
|
|
6421
6463
|
encode;
|
|
@@ -6429,7 +6471,7 @@ var Transformation = class extends Class3 {
|
|
|
6429
6471
|
}
|
|
6430
6472
|
};
|
|
6431
6473
|
function isTransformation(u) {
|
|
6432
|
-
return hasProperty(u,
|
|
6474
|
+
return hasProperty(u, TypeId10) && u[TypeId10] === TypeId10;
|
|
6433
6475
|
}
|
|
6434
6476
|
var makeTransformation = (options) => {
|
|
6435
6477
|
if (isTransformation(options)) {
|
|
@@ -6549,10 +6591,10 @@ var Context = class {
|
|
|
6549
6591
|
this.annotations = annotations;
|
|
6550
6592
|
}
|
|
6551
6593
|
};
|
|
6552
|
-
var
|
|
6594
|
+
var TypeId11 = "~effect/Schema";
|
|
6553
6595
|
|
|
6554
6596
|
class ASTNodeImpl {
|
|
6555
|
-
[
|
|
6597
|
+
[TypeId11] = TypeId11;
|
|
6556
6598
|
annotations;
|
|
6557
6599
|
checks;
|
|
6558
6600
|
encoding;
|
|
@@ -8774,10 +8816,10 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8774
8816
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8775
8817
|
|
|
8776
8818
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8777
|
-
var
|
|
8819
|
+
var TypeId12 = "~effect/Schema/Schema";
|
|
8778
8820
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8779
8821
|
var SchemaProto = {
|
|
8780
|
-
[
|
|
8822
|
+
[TypeId12]: TypeId12,
|
|
8781
8823
|
get make() {
|
|
8782
8824
|
const value = make4(this);
|
|
8783
8825
|
Object.defineProperty(this, "make", {
|
|
@@ -10250,7 +10292,7 @@ function recur(ast) {
|
|
|
10250
10292
|
const rest = ast.rest.map(recur);
|
|
10251
10293
|
const [head, ...tail] = rest;
|
|
10252
10294
|
const tailLength = tail.length;
|
|
10253
|
-
return
|
|
10295
|
+
return make13((a, b) => {
|
|
10254
10296
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
10255
10297
|
return false;
|
|
10256
10298
|
}
|
|
@@ -10285,7 +10327,7 @@ function recur(ast) {
|
|
|
10285
10327
|
}
|
|
10286
10328
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
10287
10329
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
10288
|
-
return
|
|
10330
|
+
return make13((a, b) => {
|
|
10289
10331
|
if (!isObject(a) || !isObject(b)) {
|
|
10290
10332
|
return false;
|
|
10291
10333
|
}
|
|
@@ -10323,7 +10365,7 @@ function recur(ast) {
|
|
|
10323
10365
|
const types = toType2(ast).types;
|
|
10324
10366
|
const index = getCandidateIndex(types);
|
|
10325
10367
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
10326
|
-
return
|
|
10368
|
+
return make13((a, b) => {
|
|
10327
10369
|
const candidates = index(a, false);
|
|
10328
10370
|
for (let i = 0;i < candidates.length; i++) {
|
|
10329
10371
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -10336,7 +10378,7 @@ function recur(ast) {
|
|
|
10336
10378
|
}
|
|
10337
10379
|
case "Suspend": {
|
|
10338
10380
|
let equivalence;
|
|
10339
|
-
return
|
|
10381
|
+
return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
10340
10382
|
}
|
|
10341
10383
|
}
|
|
10342
10384
|
}
|
|
@@ -10434,7 +10476,7 @@ function isSchemaError(u) {
|
|
|
10434
10476
|
}
|
|
10435
10477
|
|
|
10436
10478
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
10437
|
-
var
|
|
10479
|
+
var TypeId13 = TypeId12;
|
|
10438
10480
|
function declareConstructor() {
|
|
10439
10481
|
return (typeParameters, run, annotations) => {
|
|
10440
10482
|
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
@@ -10547,7 +10589,7 @@ function encodeUnknownSync(schema, options) {
|
|
|
10547
10589
|
var encodeSync = encodeUnknownSync;
|
|
10548
10590
|
var make17 = make5;
|
|
10549
10591
|
function isSchema(u) {
|
|
10550
|
-
return hasProperty(u,
|
|
10592
|
+
return hasProperty(u, TypeId13) && u[TypeId13] === TypeId13;
|
|
10551
10593
|
}
|
|
10552
10594
|
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
10553
10595
|
schema
|
|
@@ -11447,7 +11489,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
11447
11489
|
}
|
|
11448
11490
|
});
|
|
11449
11491
|
}
|
|
11450
|
-
static [
|
|
11492
|
+
static [TypeId13] = TypeId13;
|
|
11451
11493
|
get [ClassTypeId]() {
|
|
11452
11494
|
return ClassTypeId;
|
|
11453
11495
|
}
|
|
@@ -11741,4 +11783,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
11741
11783
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
11742
11784
|
var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
|
|
11743
11785
|
|
|
11744
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype,
|
|
11786
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, chunksOf, empty4, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, map8, asVoidAll, makeUnsafe5, make15, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, upTo, while_, setInputType, isEffect, all3, validate, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map9, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, encode3, isRedacted, make16, value, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map10, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, link, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, TaggedClass2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-61dmxexa.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-z0gqrc8c.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-yhat3rhw.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make3,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-t205gnzc.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -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-56gs4z53.js";
|
|
13
|
+
import"./chunk-er0e8d8v.js";
|
|
14
|
+
import"./chunk-z0gqrc8c.js";
|
|
15
|
+
import"./chunk-61dmxexa.js";
|
|
16
16
|
export {
|
|
17
17
|
databaseStamp2 as databaseStamp,
|
|
18
18
|
decoded2 as decoded,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-61dmxexa.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-z0gqrc8c.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-yhat3rhw.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
isString,
|
|
4
|
-
hasProperty,
|
|
5
|
-
symbol,
|
|
6
|
-
hash,
|
|
7
|
-
symbol2,
|
|
8
|
-
equals,
|
|
9
3
|
BaseProto,
|
|
10
|
-
PipeInspectableProto,
|
|
11
4
|
Prototype,
|
|
12
5
|
some,
|
|
13
6
|
Service2,
|
|
@@ -21,8 +14,11 @@ import {
|
|
|
21
14
|
andThen2,
|
|
22
15
|
map9,
|
|
23
16
|
raceFirst,
|
|
24
|
-
scoped
|
|
25
|
-
|
|
17
|
+
scoped,
|
|
18
|
+
isRedacted,
|
|
19
|
+
make16,
|
|
20
|
+
value
|
|
21
|
+
} from "./chunk-61dmxexa.js";
|
|
26
22
|
import {
|
|
27
23
|
unwrap,
|
|
28
24
|
drainFork,
|
|
@@ -31,49 +27,7 @@ import {
|
|
|
31
27
|
runCollect,
|
|
32
28
|
runDrain,
|
|
33
29
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
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;
|
|
30
|
+
} from "./chunk-z0gqrc8c.js";
|
|
77
31
|
|
|
78
32
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
79
33
|
function nominal() {
|
|
@@ -101,7 +55,7 @@ var HandleProto = {
|
|
|
101
55
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
102
56
|
...params
|
|
103
57
|
}, HandleProto);
|
|
104
|
-
var
|
|
58
|
+
var make = (spawn) => {
|
|
105
59
|
const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
106
60
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
107
61
|
return ChildProcessSpawner.of({
|
|
@@ -222,7 +176,7 @@ var parseTemplate = (texts, values) => {
|
|
|
222
176
|
if (word.length === 0)
|
|
223
177
|
return;
|
|
224
178
|
const value = word.map(unwrap2).join("");
|
|
225
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
179
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
|
|
226
180
|
word = [];
|
|
227
181
|
plain = true;
|
|
228
182
|
braceDepth = 0;
|
|
@@ -312,23 +266,23 @@ var parseTemplate = (texts, values) => {
|
|
|
312
266
|
};
|
|
313
267
|
|
|
314
268
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
315
|
-
var
|
|
316
|
-
var
|
|
269
|
+
var TypeId = "~effect/process/ChildProcess";
|
|
270
|
+
var Proto = {
|
|
317
271
|
.../* @__PURE__ */ Prototype({
|
|
318
272
|
label: "Command",
|
|
319
273
|
evaluate(fiber) {
|
|
320
274
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
321
275
|
}
|
|
322
276
|
}),
|
|
323
|
-
[
|
|
277
|
+
[TypeId]: TypeId
|
|
324
278
|
};
|
|
325
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
279
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
|
|
326
280
|
_tag: "StandardCommand",
|
|
327
281
|
command,
|
|
328
282
|
args,
|
|
329
283
|
options
|
|
330
284
|
});
|
|
331
|
-
var
|
|
285
|
+
var make2 = function make(...args) {
|
|
332
286
|
if (isTemplateString(args[0])) {
|
|
333
287
|
const [templates, ...expressions] = args;
|
|
334
288
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -386,4 +340,4 @@ var shellScript = (templates, expressions) => {
|
|
|
386
340
|
}
|
|
387
341
|
return script;
|
|
388
342
|
};
|
|
389
|
-
export {
|
|
343
|
+
export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
|