@kitman-sh/cli 0.13.14 → 0.13.15
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-vmww6hnk.js → chunk-3syr8kyv.js} +5 -5
- package/dist/{chunk-ef3nzqng.js → chunk-5qeqhjxy.js} +2 -2
- package/dist/{chunk-d4kmyv5h.js → chunk-6kz6qa2h.js} +4 -4
- package/dist/{chunk-hmt2egsx.js → chunk-6qdhhk6r.js} +6 -6
- package/dist/{chunk-st8ggqv1.js → chunk-6z499mrc.js} +21 -21
- package/dist/{chunk-vjsqg4a5.js → chunk-7cx4t4em.js} +7 -7
- package/dist/{chunk-8xpdkxr7.js → chunk-82w8rmkc.js} +60 -14
- package/dist/{chunk-3vbs995s.js → chunk-b07c43pg.js} +117 -108
- package/dist/{chunk-aa30tt6t.js → chunk-fc2bhh5v.js} +2 -2
- package/dist/{chunk-5mxvqg32.js → chunk-ga76znz9.js} +10 -10
- package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-mmd7mjv0.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-zencwg2t.js → chunk-h0jf48ew.js} +1 -1
- package/dist/{chunk-4142qeg3.js → chunk-hn9x2jjs.js} +3 -3
- package/dist/{chunk-89rpg6j9.js → chunk-jattyebv.js} +28 -28
- package/dist/{chunk-dwxqp8ez.js → chunk-my63gy4t.js} +7 -7
- package/dist/{chunk-hgfphycc.js → chunk-nf9gdnsf.js} +17 -26
- package/dist/{chunk-hw9fcfs0.js → chunk-npnbac9a.js} +9 -9
- package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-fk5238tn.js → chunk-rqrtf7sb.js} +4 -4
- package/dist/{chunk-ggmwpwhf.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-06dwvzv0.js → chunk-ydz5ctsj.js} +63 -63
- package/dist/{chunk-6agcvxbj.js → chunk-z4x9m2bv.js} +10 -10
- package/dist/{chunk-5ba08a9e.js → chunk-zem7mg1b.js} +18 -18
- package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-zw3gf6r5.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-nf9gdnsf.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-b07c43pg.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -624,7 +624,7 @@ Turning a start off stops new Runs from it. Runs it already started go on. \`kit
|
|
|
624
624
|
path: "loop-operations#agents-and-effort",
|
|
625
625
|
level: 2,
|
|
626
626
|
link: "https://kitman.sh/knowledge/docs/loop-operations#agents-and-effort",
|
|
627
|
-
text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `planned-implementer`, `reviewer`, `plan-reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort; the `plan-reviewer` runs on the same, with Opus at `high` effort;
|
|
627
|
+
text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `planned-implementer`, `reviewer`, `plan-reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort; the `plan-reviewer` runs on the same, with Opus at `high` effort; the `planner` runs on Claude Fable 5.2 at `high` effort; and the `implementer` runs on Claude alone, waiting out a known quota reset rather than falling back to Pi. The `planned-implementer` extends `implementer` at `low` effort: Build runs it for the first implementation of a Task that plan review passed, and `implementer` at `medium` for everything else. The implementers and the others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
title: "Projects and Saved Views",
|
|
@@ -1555,7 +1555,7 @@ var pathOfLink = (link) => {
|
|
|
1555
1555
|
return page === null ? link : page[1] || "index";
|
|
1556
1556
|
};
|
|
1557
1557
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1558
|
-
var pinnedLink2 = (link, version = "0.13.
|
|
1558
|
+
var pinnedLink2 = (link, version = "0.13.15") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1559
1559
|
var pageOf = (path) => path.split("#")[0];
|
|
1560
1560
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1561
1561
|
function excerpt(text, queryTerms) {
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-ga76znz9.js";
|
|
11
|
+
import"./chunk-82w8rmkc.js";
|
|
12
|
+
import"./chunk-nf9gdnsf.js";
|
|
13
|
+
import"./chunk-zw3gf6r5.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-my63gy4t.js";
|
|
8
|
+
import"./chunk-3syr8kyv.js";
|
|
9
|
+
import"./chunk-b07c43pg.js";
|
|
10
|
+
import"./chunk-q5w3v4k1.js";
|
|
11
|
+
import"./chunk-nf9gdnsf.js";
|
|
12
|
+
import"./chunk-zw3gf6r5.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -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
|
succeed5,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-zw3gf6r5.js";
|
|
108
108
|
import {
|
|
109
109
|
tap,
|
|
110
110
|
mapError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
withDefault,
|
|
117
117
|
option,
|
|
118
118
|
String2
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-nf9gdnsf.js";
|
|
120
120
|
import {
|
|
121
121
|
currentTimeMillis,
|
|
122
122
|
SecureRandom,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
digestSha256,
|
|
168
168
|
sha256Hasher,
|
|
169
169
|
raw,
|
|
170
|
-
|
|
170
|
+
make5,
|
|
171
171
|
get,
|
|
172
172
|
put,
|
|
173
173
|
HttpClient,
|
|
@@ -230,14 +230,14 @@ import {
|
|
|
230
230
|
harnessNames,
|
|
231
231
|
herdrRunnerCapabilities2,
|
|
232
232
|
declaredChecks
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-b07c43pg.js";
|
|
234
234
|
import {
|
|
235
235
|
Id
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-q5w3v4k1.js";
|
|
237
237
|
import {
|
|
238
238
|
ChildProcessSpawner,
|
|
239
|
-
|
|
240
|
-
} from "./chunk-
|
|
239
|
+
make3
|
|
240
|
+
} from "./chunk-82w8rmkc.js";
|
|
241
241
|
|
|
242
242
|
// apps/cli/src/cli-error.ts
|
|
243
243
|
function cliErrorCode(error, status) {
|
|
@@ -1018,10 +1018,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1018
1018
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1019
1019
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1020
1020
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1021
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1021
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rqrtf7sb.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1022
1022
|
});
|
|
1023
1023
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1024
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1024
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rqrtf7sb.js")), (module) => module.updateHerdrCore(options))
|
|
1025
1025
|
});
|
|
1026
1026
|
var herdrCoreMissing = (error) => {
|
|
1027
1027
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1447,7 +1447,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1447
1447
|
});
|
|
1448
1448
|
var syncKits = (input) => gen(function* () {
|
|
1449
1449
|
const fs = yield* FileSystem;
|
|
1450
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1450
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-z4x9m2bv.js"));
|
|
1451
1451
|
const harnesses = yield* syncTargets(input.harness);
|
|
1452
1452
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1453
1453
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1964,7 +1964,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1964
1964
|
run: (command, args) => runCommand2(command, args),
|
|
1965
1965
|
attach: (command, args) => gen(function* () {
|
|
1966
1966
|
const spawner = yield* ChildProcessSpawner;
|
|
1967
|
-
const handle = yield* spawner.spawn(
|
|
1967
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1968
1968
|
const exitCode = yield* handle.exitCode;
|
|
1969
1969
|
if (exitCode !== 0)
|
|
1970
1970
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2366,7 +2366,7 @@ var package_default = {
|
|
|
2366
2366
|
};
|
|
2367
2367
|
|
|
2368
2368
|
// apps/cli/src/scaffold.ts
|
|
2369
|
-
var cliVersion = "0.13.
|
|
2369
|
+
var cliVersion = "0.13.15";
|
|
2370
2370
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2371
2371
|
name,
|
|
2372
2372
|
private: true,
|
|
@@ -2518,7 +2518,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2518
2518
|
|
|
2519
2519
|
// apps/cli/src/commands.ts
|
|
2520
2520
|
var ClientId = "kitman-cli";
|
|
2521
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2521
|
+
var agentRuntime = promise(() => import("./chunk-ydz5ctsj.js"));
|
|
2522
2522
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2523
2523
|
defaultValue: () => gen(function* () {
|
|
2524
2524
|
const tui = yield* tryPromise({
|
|
@@ -3554,7 +3554,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3554
3554
|
});
|
|
3555
3555
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3556
3556
|
defaultValue: () => (options) => gen(function* () {
|
|
3557
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3557
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-6qdhhk6r.js"));
|
|
3558
3558
|
return yield* makeRunnerRpcClient({
|
|
3559
3559
|
runnerId: options.runnerId,
|
|
3560
3560
|
bearer: options.bearer,
|
|
@@ -3866,7 +3866,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3866
3866
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(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);
|
|
3867
3867
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
3868
3868
|
const platform = yield* context();
|
|
3869
|
-
const updated = yield*
|
|
3869
|
+
const updated = yield* make16();
|
|
3870
3870
|
const scope = yield* scope2;
|
|
3871
3871
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3872
3872
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4118,7 +4118,7 @@ function mcpCommand(args) {
|
|
|
4118
4118
|
if (command.action === "run") {
|
|
4119
4119
|
if (command.args.length > 0)
|
|
4120
4120
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4121
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4121
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-jattyebv.js"));
|
|
4122
4122
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4123
4123
|
}
|
|
4124
4124
|
if (command.action !== "setup")
|
|
@@ -4606,7 +4606,7 @@ function programLoopCommand(command) {
|
|
|
4606
4606
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4607
4607
|
});
|
|
4608
4608
|
}
|
|
4609
|
-
var docsModule = promise(() => import("./chunk-
|
|
4609
|
+
var docsModule = promise(() => import("./chunk-h0jf48ew.js"));
|
|
4610
4610
|
function docsCommand(args) {
|
|
4611
4611
|
return gen(function* () {
|
|
4612
4612
|
const command = parseCommand(args);
|
|
@@ -5441,9 +5441,9 @@ function changeRequestCommand(args) {
|
|
|
5441
5441
|
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}`);
|
|
5442
5442
|
});
|
|
5443
5443
|
}
|
|
5444
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5444
|
+
var KitWriter = map8(promise(() => import("./chunk-zem7mg1b.js")), (build) => build.writeKit);
|
|
5445
5445
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5446
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5446
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-zem7mg1b.js")), (build) => build.buildKit(directory))
|
|
5447
5447
|
});
|
|
5448
5448
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5449
5449
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6220,7 +6220,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6220
6220
|
return gen(function* () {
|
|
6221
6221
|
const fs = yield* FileSystem;
|
|
6222
6222
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6223
|
-
const response = yield* send(
|
|
6223
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
6224
6224
|
if (response.status < 200 || response.status >= 300)
|
|
6225
6225
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6226
6226
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -75,14 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import {
|
|
80
|
-
runForEach,
|
|
81
|
-
FileSystem
|
|
82
|
-
} from "./chunk-hgfphycc.js";
|
|
78
|
+
} from "./chunk-zw3gf6r5.js";
|
|
83
79
|
import {
|
|
84
80
|
guard
|
|
85
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-q5w3v4k1.js";
|
|
86
82
|
import {
|
|
87
83
|
currentTimeMillis,
|
|
88
84
|
WebCrypto,
|
|
@@ -109,7 +105,11 @@ import {
|
|
|
109
105
|
KitDigest,
|
|
110
106
|
KitSetup,
|
|
111
107
|
RunnerRpcError
|
|
112
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-b07c43pg.js";
|
|
109
|
+
import {
|
|
110
|
+
runForEach,
|
|
111
|
+
FileSystem
|
|
112
|
+
} from "./chunk-nf9gdnsf.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -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
|
map8,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-zgraq2y3.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-zw3gf6r5.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-nf9gdnsf.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(map8((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 };
|