@kitman-sh/cli 0.44.0 → 0.45.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-8a7337s1.js → chunk-04wqa07j.js} +1 -1
- package/dist/{chunk-d0rx9esz.js → chunk-0dfg674z.js} +7 -7
- package/dist/{chunk-9h16pekj.js → chunk-4vxbxjf8.js} +1 -1
- package/dist/{chunk-dj873p0e.js → chunk-5gbt1vhm.js} +10 -10
- package/dist/{chunk-1c4wk9dr.js → chunk-5pjbxhxy.js} +3 -3
- package/dist/{chunk-3mbp8cse.js → chunk-5smh4dp2.js} +17 -26
- package/dist/{chunk-1k6z8q79.js → chunk-69y8j7fs.js} +125 -116
- package/dist/{chunk-wh3pjr9r.js → chunk-8gkrs473.js} +13 -13
- package/dist/{chunk-5ccz7ghp.js → chunk-9qvgbp6k.js} +23 -23
- package/dist/{chunk-k2re3tp5.js → chunk-9ykh05hz.js} +1 -1
- package/dist/{chunk-ncp13gyf.js → chunk-a71b15k3.js} +2 -2
- package/dist/{chunk-d2tpz1yp.js → chunk-e3dv8hzy.js} +1 -1
- package/dist/{chunk-hmctc4eq.js → chunk-es6rnmyw.js} +3 -3
- package/dist/{chunk-wkg1v0kd.js → chunk-f957cxrx.js} +5 -5
- package/dist/{chunk-zvmdyf3v.js → chunk-fmvdwf5h.js} +24 -24
- package/dist/{chunk-134jdvs6.js → chunk-fqh4pj6b.js} +14 -60
- package/dist/{chunk-dre4f6s4.js → chunk-g26y214g.js} +9 -9
- package/dist/{chunk-x0ma41ys.js → chunk-k462v2v7.js} +70 -28
- package/dist/{chunk-j60f2tr1.js → chunk-k7eh8tac.js} +4 -4
- package/dist/{chunk-zkvrxna8.js → chunk-n3jpxd14.js} +2 -2
- package/dist/{chunk-7rj9d0rp.js → chunk-qzwsh96c.js} +2 -2
- package/dist/{chunk-dp6v658s.js → chunk-tfwgeqx5.js} +4 -4
- package/dist/{chunk-gw0pc35c.js → chunk-tqv14b4c.js} +19 -19
- package/dist/{chunk-qkwkxn4d.js → chunk-tx9aey19.js} +74 -74
- package/dist/{chunk-wvnsqt17.js → chunk-yyz9xrc1.js} +6 -6
- package/dist/{chunk-3zy2vbp0.js → chunk-zx86g3dw.js} +10 -10
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
currentTimeMillis,
|
|
4
|
-
make11,
|
|
5
|
-
runForEach,
|
|
6
|
-
toPull,
|
|
7
|
-
FileSystem,
|
|
8
|
-
compiled2
|
|
9
|
-
} from "./chunk-3mbp8cse.js";
|
|
10
2
|
import {
|
|
11
3
|
isSome,
|
|
12
4
|
getOrElse,
|
|
@@ -43,11 +35,19 @@ import {
|
|
|
43
35
|
isJsonObject,
|
|
44
36
|
isString2,
|
|
45
37
|
encodeUnknownJsonStringSync
|
|
46
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-k462v2v7.js";
|
|
39
|
+
import {
|
|
40
|
+
currentTimeMillis,
|
|
41
|
+
make10,
|
|
42
|
+
runForEach,
|
|
43
|
+
toPull,
|
|
44
|
+
FileSystem,
|
|
45
|
+
compiled2
|
|
46
|
+
} from "./chunk-5smh4dp2.js";
|
|
47
47
|
import {
|
|
48
48
|
ChildProcessSpawner,
|
|
49
|
-
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
make2
|
|
50
|
+
} from "./chunk-fqh4pj6b.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: {},
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make15,
|
|
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-k462v2v7.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-5smh4dp2.js";
|
|
126
126
|
import {
|
|
127
127
|
SecureRandom,
|
|
128
128
|
layerWebCrypto,
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
digestSha256,
|
|
187
187
|
sha256Hasher,
|
|
188
188
|
raw,
|
|
189
|
-
|
|
189
|
+
make4,
|
|
190
190
|
get,
|
|
191
191
|
put,
|
|
192
192
|
HttpClient,
|
|
@@ -252,15 +252,15 @@ import {
|
|
|
252
252
|
harnessNames,
|
|
253
253
|
herdrRunnerCapabilities2,
|
|
254
254
|
declaredChecks
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-69y8j7fs.js";
|
|
256
256
|
import {
|
|
257
257
|
ChildProcessSpawner,
|
|
258
|
-
|
|
259
|
-
} from "./chunk-
|
|
258
|
+
make2
|
|
259
|
+
} from "./chunk-fqh4pj6b.js";
|
|
260
260
|
import {
|
|
261
261
|
Id,
|
|
262
262
|
Timestamp
|
|
263
|
-
} from "./chunk-
|
|
263
|
+
} from "./chunk-4vxbxjf8.js";
|
|
264
264
|
|
|
265
265
|
// apps/cli/src/cli-error.ts
|
|
266
266
|
function cliErrorCode(error, status) {
|
|
@@ -1328,10 +1328,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1328
1328
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1329
1329
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1330
1330
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1331
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1331
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-k7eh8tac.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1332
1332
|
});
|
|
1333
1333
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1334
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1334
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-k7eh8tac.js")), (module) => module.updateHerdrCore(options))
|
|
1335
1335
|
});
|
|
1336
1336
|
var herdrCoreMissing = (error) => {
|
|
1337
1337
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1645,7 +1645,7 @@ var runnerUpdater = (input) => {
|
|
|
1645
1645
|
const drain = (version) => gen(function* () {
|
|
1646
1646
|
claiming = false;
|
|
1647
1647
|
const since = yield* currentTimeMillis;
|
|
1648
|
-
const switchNow = yield*
|
|
1648
|
+
const switchNow = yield* make15();
|
|
1649
1649
|
if (version !== undefined)
|
|
1650
1650
|
draining = {
|
|
1651
1651
|
report: {
|
|
@@ -1798,7 +1798,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1798
1798
|
});
|
|
1799
1799
|
var syncKits = (input) => gen(function* () {
|
|
1800
1800
|
const fs = yield* FileSystem;
|
|
1801
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1801
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-zx86g3dw.js"));
|
|
1802
1802
|
const harnesses = yield* syncTargets(input.harness);
|
|
1803
1803
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1804
1804
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2315,7 +2315,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
2315
2315
|
run: (command, args) => runCommand2(command, args),
|
|
2316
2316
|
attach: (command, args) => gen(function* () {
|
|
2317
2317
|
const spawner = yield* ChildProcessSpawner;
|
|
2318
|
-
const handle = yield* spawner.spawn(
|
|
2318
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
2319
2319
|
const exitCode = yield* handle.exitCode;
|
|
2320
2320
|
if (exitCode !== 0)
|
|
2321
2321
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -3293,7 +3293,7 @@ var shipped_steps_generated_default = {
|
|
|
3293
3293
|
};
|
|
3294
3294
|
|
|
3295
3295
|
// apps/cli/src/scaffold-files.ts
|
|
3296
|
-
var cliVersion = "0.
|
|
3296
|
+
var cliVersion = "0.45.0";
|
|
3297
3297
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3298
3298
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3299
3299
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3558,7 +3558,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3558
3558
|
|
|
3559
3559
|
// apps/cli/src/commands.ts
|
|
3560
3560
|
var ClientId = "kitman-cli";
|
|
3561
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3561
|
+
var agentRuntime = promise(() => import("./chunk-tx9aey19.js"));
|
|
3562
3562
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3563
3563
|
defaultValue: () => gen(function* () {
|
|
3564
3564
|
const tui = yield* tryPromise({
|
|
@@ -5097,7 +5097,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5097
5097
|
});
|
|
5098
5098
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5099
5099
|
defaultValue: () => (options) => gen(function* () {
|
|
5100
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5100
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-yyz9xrc1.js"));
|
|
5101
5101
|
return yield* makeRunnerRpcClient({
|
|
5102
5102
|
runnerId: options.runnerId,
|
|
5103
5103
|
bearer: options.bearer,
|
|
@@ -5443,7 +5443,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5443
5443
|
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);
|
|
5444
5444
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5445
5445
|
const platform = yield* context();
|
|
5446
|
-
const updated = yield*
|
|
5446
|
+
const updated = yield* make15();
|
|
5447
5447
|
const scope = yield* scope2;
|
|
5448
5448
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5449
5449
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5709,7 +5709,7 @@ function mcpCommand(args) {
|
|
|
5709
5709
|
if (command.action === "run") {
|
|
5710
5710
|
if (command.args.length > 0)
|
|
5711
5711
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5712
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5712
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-fmvdwf5h.js"));
|
|
5713
5713
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5714
5714
|
}
|
|
5715
5715
|
if (command.action !== "setup")
|
|
@@ -6209,7 +6209,7 @@ function programLoopCommand(command) {
|
|
|
6209
6209
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6210
6210
|
});
|
|
6211
6211
|
}
|
|
6212
|
-
var docsModule = promise(() => import("./chunk-
|
|
6212
|
+
var docsModule = promise(() => import("./chunk-e3dv8hzy.js"));
|
|
6213
6213
|
function docsCommand(args) {
|
|
6214
6214
|
return gen(function* () {
|
|
6215
6215
|
const command = parseCommand(args);
|
|
@@ -7213,7 +7213,7 @@ function changeRequestCommand(args) {
|
|
|
7213
7213
|
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}`);
|
|
7214
7214
|
});
|
|
7215
7215
|
}
|
|
7216
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7216
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-tqv14b4c.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7217
7217
|
var loopOutline = (command) => gen(function* () {
|
|
7218
7218
|
const path = yield* Path;
|
|
7219
7219
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7233,9 +7233,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7233
7233
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7234
7234
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7235
7235
|
});
|
|
7236
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7236
|
+
var KitWriter = map9(promise(() => import("./chunk-tqv14b4c.js")), (build) => build.writeKit);
|
|
7237
7237
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7238
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7238
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-tqv14b4c.js")), (build) => build.buildKit(directory))
|
|
7239
7239
|
});
|
|
7240
7240
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7241
7241
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -8014,7 +8014,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
8014
8014
|
return gen(function* () {
|
|
8015
8015
|
const fs = yield* FileSystem;
|
|
8016
8016
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
8017
|
-
const response = yield* send(
|
|
8017
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
8018
8018
|
if (response.status < 200 || response.status >= 300)
|
|
8019
8019
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
8020
8020
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
writeSrtSettings2,
|
|
16
16
|
srtStepArgv2,
|
|
17
17
|
srtArgv2
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
} from "./chunk-5smh4dp2.js";
|
|
19
|
+
import"./chunk-k462v2v7.js";
|
|
20
20
|
export {
|
|
21
21
|
compiled2 as compiled,
|
|
22
22
|
harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-k462v2v7.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5smh4dp2.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-69y8j7fs.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-k462v2v7.js";
|
|
100
100
|
import {
|
|
101
101
|
Clock,
|
|
102
102
|
interrupt,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
shutdownUnsafe,
|
|
110
110
|
fromQueue,
|
|
111
111
|
unwrap
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-5smh4dp2.js";
|
|
113
113
|
import {
|
|
114
114
|
empty,
|
|
115
115
|
fromInput,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-69y8j7fs.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 make3 = /* @__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, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-k462v2v7.js";
|
|
122
122
|
import {
|
|
123
123
|
SecureRandom,
|
|
124
124
|
makeUnsafe,
|
|
@@ -158,8 +158,8 @@ import {
|
|
|
158
158
|
sessionForApi,
|
|
159
159
|
readAuthStore,
|
|
160
160
|
agentCredentialForApi,
|
|
161
|
+
make5,
|
|
161
162
|
make6,
|
|
162
|
-
make7,
|
|
163
163
|
Service,
|
|
164
164
|
shouldRefresh,
|
|
165
165
|
refreshSession,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-69y8j7fs.js";
|
|
174
174
|
import {
|
|
175
175
|
currentTimeMillis,
|
|
176
176
|
join,
|
|
@@ -188,30 +188,30 @@ import {
|
|
|
188
188
|
withDefault,
|
|
189
189
|
option,
|
|
190
190
|
String2
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-5smh4dp2.js";
|
|
192
192
|
import {
|
|
193
193
|
searchDocs2,
|
|
194
194
|
readDoc2
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-qzwsh96c.js";
|
|
196
196
|
import {
|
|
197
197
|
nextInt
|
|
198
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-04wqa07j.js";
|
|
199
199
|
import {
|
|
200
200
|
recommendationProblem
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-9ykh05hz.js";
|
|
202
202
|
import {
|
|
203
203
|
layerJson,
|
|
204
|
-
|
|
204
|
+
make3,
|
|
205
205
|
withHeaders,
|
|
206
206
|
layerProtocolSocket,
|
|
207
207
|
ConnectionHooks
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-f957cxrx.js";
|
|
209
209
|
import {
|
|
210
210
|
guard,
|
|
211
211
|
Id,
|
|
212
212
|
Timestamp,
|
|
213
213
|
ActorType
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-4vxbxjf8.js";
|
|
215
215
|
|
|
216
216
|
// apps/cli/src/mcp.ts
|
|
217
217
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1948,56 +1948,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1948
1948
|
LivePresenceSubscriptionUpdate
|
|
1949
1949
|
]);
|
|
1950
1950
|
|
|
1951
|
-
class LiveRpcs extends
|
|
1951
|
+
class LiveRpcs extends make6(make5("Session", {
|
|
1952
1952
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1953
1953
|
error: LiveRpcError
|
|
1954
|
-
}),
|
|
1954
|
+
}), make5("Subscribe", {
|
|
1955
1955
|
payload: LiveSubscribeInput,
|
|
1956
1956
|
success: LiveSubscriptionMessage,
|
|
1957
1957
|
error: LiveRpcError,
|
|
1958
1958
|
stream: true
|
|
1959
|
-
}),
|
|
1959
|
+
}), make5("Replay", {
|
|
1960
1960
|
payload: LiveReplayInput,
|
|
1961
1961
|
success: ArraySchema(LiveEvent),
|
|
1962
1962
|
error: LiveRpcError
|
|
1963
|
-
}),
|
|
1963
|
+
}), make5("Ack", {
|
|
1964
1964
|
payload: LiveAckInput,
|
|
1965
1965
|
success: LiveAckResult,
|
|
1966
1966
|
error: LiveRpcError
|
|
1967
|
-
}),
|
|
1967
|
+
}), make5("SubscribeWeb", {
|
|
1968
1968
|
payload: LiveWebSubscribeInput,
|
|
1969
1969
|
success: LiveWebSubscriptionMessage,
|
|
1970
1970
|
error: LiveRpcError,
|
|
1971
1971
|
stream: true
|
|
1972
|
-
}),
|
|
1972
|
+
}), make5("SubscriptionStatus", {
|
|
1973
1973
|
payload: { subscriptionId: String4 },
|
|
1974
1974
|
success: LiveSubscriptionStatus,
|
|
1975
1975
|
error: LiveRpcError
|
|
1976
|
-
}),
|
|
1976
|
+
}), make5("ReplayWeb", {
|
|
1977
1977
|
payload: LiveWebReplayInput,
|
|
1978
1978
|
success: LiveWebReplayResult,
|
|
1979
1979
|
error: LiveRpcError
|
|
1980
|
-
}),
|
|
1980
|
+
}), make5("AckWeb", {
|
|
1981
1981
|
payload: LiveWebAckInput,
|
|
1982
1982
|
success: LiveWebAckResult,
|
|
1983
1983
|
error: LiveRpcError
|
|
1984
|
-
}),
|
|
1984
|
+
}), make5("PublishPresence", {
|
|
1985
1985
|
payload: LivePresencePublishInput,
|
|
1986
1986
|
success: LivePresenceEntry,
|
|
1987
1987
|
error: LiveRpcError
|
|
1988
|
-
}),
|
|
1988
|
+
}), make5("SubscribePresence", {
|
|
1989
1989
|
payload: LivePresenceSubscribeInput,
|
|
1990
1990
|
success: LivePresenceSubscriptionMessage,
|
|
1991
1991
|
error: LiveRpcError,
|
|
1992
1992
|
stream: true
|
|
1993
|
-
}),
|
|
1993
|
+
}), make5("ClearPresence", {
|
|
1994
1994
|
payload: { scope: optional(LiveScope) },
|
|
1995
1995
|
error: LiveRpcError
|
|
1996
|
-
}),
|
|
1996
|
+
}), make5("RecordSessionUpdate", {
|
|
1997
1997
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
1998
1998
|
success: SessionUpdate,
|
|
1999
1999
|
error: LiveRpcError
|
|
2000
|
-
}),
|
|
2000
|
+
}), make5("EndSession", {
|
|
2001
2001
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2002
2002
|
success: Session,
|
|
2003
2003
|
error: LiveRpcError
|
|
@@ -2049,7 +2049,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2049
2049
|
})
|
|
2050
2050
|
});
|
|
2051
2051
|
const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2052
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2052
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2053
2053
|
let abandon = () => {};
|
|
2054
2054
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2055
2055
|
abandon = reject;
|
|
@@ -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-k462v2v7.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-5smh4dp2.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 };
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path,
|
|
5
|
-
optionalEnv,
|
|
6
|
-
tempDirectoryScoped
|
|
7
|
-
} from "./chunk-3mbp8cse.js";
|
|
8
2
|
import {
|
|
9
3
|
Reference,
|
|
10
4
|
TaggedError,
|
|
@@ -31,15 +25,21 @@ import {
|
|
|
31
25
|
isString2,
|
|
32
26
|
encodePrettyJsonString,
|
|
33
27
|
decodeJsonStringSync
|
|
34
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-k462v2v7.js";
|
|
29
|
+
import {
|
|
30
|
+
FileSystem,
|
|
31
|
+
Path,
|
|
32
|
+
optionalEnv,
|
|
33
|
+
tempDirectoryScoped
|
|
34
|
+
} from "./chunk-5smh4dp2.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-69y8j7fs.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-es6rnmyw.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|