@kitman-sh/cli 0.17.0 → 0.18.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-qjxgew0k.js → chunk-1j38xtvp.js} +2 -2
- package/dist/{chunk-ebpjd7kg.js → chunk-2bagaygt.js} +6 -6
- package/dist/{chunk-jg1pjhba.js → chunk-4p1k3yyc.js} +21 -21
- package/dist/{chunk-r2kzvdrg.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-m1qp6swh.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-z59pvcbk.js → chunk-63cyj9dh.js} +174 -31
- package/dist/{chunk-0wqkz371.js → chunk-9jffw2mk.js} +3 -3
- package/dist/{chunk-0f67q0tf.js → chunk-bqhfbng3.js} +9 -9
- package/dist/{chunk-2928qj8m.js → chunk-d3gs4jvd.js} +69 -69
- package/dist/{chunk-vh2a72d1.js → chunk-gap0vmj7.js} +60 -14
- package/dist/{chunk-y64ssczv.js → chunk-h2f26xbd.js} +40 -226
- package/dist/{chunk-829r4kya.js → chunk-hj8ex4x6.js} +4 -4
- package/dist/{chunk-8r1a93rc.js → chunk-jaa8qjky.js} +9 -9
- package/dist/{chunk-2sazk478.js → chunk-js64y97w.js} +4 -4
- package/dist/{chunk-5me7tnrw.js → chunk-mca2zp8p.js} +2 -2
- package/dist/{chunk-g3jqqpky.js → chunk-mg3mxhxe.js} +7 -7
- package/dist/{chunk-pnckztvv.js → chunk-mqsxwm53.js} +5 -5
- package/dist/{chunk-kx8rpa62.js → chunk-my92qn4x.js} +10 -10
- package/dist/{chunk-nf9rfrvv.js → chunk-n05bj55h.js} +24 -24
- package/dist/{chunk-r3d2yjsh.js → chunk-nfnw3dh1.js} +24 -24
- package/dist/{chunk-9a6wbk11.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-pd3azxev.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-zy21drtv.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-nqh0pbgt.js → chunk-wg6xkkcr.js} +1 -1
- package/dist/{chunk-ekyj0bps.js → chunk-x8zzax0f.js} +10 -10
- package/dist/{chunk-j37p2y71.js → chunk-zmqm4mrm.js} +118 -117
- 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-h2f26xbd.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-63cyj9dh.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-zmqm4mrm.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 };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make11,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-63cyj9dh.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -25,16 +30,11 @@ import {
|
|
|
25
30
|
isJsonObject,
|
|
26
31
|
isString2,
|
|
27
32
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
make10,
|
|
31
|
-
runForEach,
|
|
32
|
-
compiled2
|
|
33
|
-
} from "./chunk-z59pvcbk.js";
|
|
33
|
+
} from "./chunk-h2f26xbd.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make3
|
|
37
|
+
} from "./chunk-gap0vmj7.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -172,8 +172,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
172
172
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
173
173
|
const spawner = yield* ChildProcessSpawner;
|
|
174
174
|
const [command, ...args] = opencodeReaderCommand();
|
|
175
|
-
const handle = yield* spawner.spawn(
|
|
176
|
-
stdin:
|
|
175
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
176
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
177
177
|
stderr: "ignore",
|
|
178
178
|
extendEnv: false,
|
|
179
179
|
env: {},
|
|
@@ -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,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
decodeJsonStringOption,
|
|
109
109
|
encodeJsonStringSync,
|
|
110
110
|
encodePrettyJsonString
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-h2f26xbd.js";
|
|
112
112
|
import {
|
|
113
113
|
tap,
|
|
114
114
|
mapError,
|
|
@@ -120,11 +120,7 @@ import {
|
|
|
120
120
|
withDefault,
|
|
121
121
|
option,
|
|
122
122
|
String2
|
|
123
|
-
} from "./chunk-
|
|
124
|
-
import {
|
|
125
|
-
ChildProcessSpawner,
|
|
126
|
-
make2
|
|
127
|
-
} from "./chunk-vh2a72d1.js";
|
|
123
|
+
} from "./chunk-63cyj9dh.js";
|
|
128
124
|
import {
|
|
129
125
|
currentTimeMillis,
|
|
130
126
|
SecureRandom,
|
|
@@ -189,7 +185,7 @@ import {
|
|
|
189
185
|
digestSha256,
|
|
190
186
|
sha256Hasher,
|
|
191
187
|
raw,
|
|
192
|
-
|
|
188
|
+
make5,
|
|
193
189
|
get,
|
|
194
190
|
put,
|
|
195
191
|
HttpClient,
|
|
@@ -255,11 +251,15 @@ import {
|
|
|
255
251
|
harnessNames,
|
|
256
252
|
herdrRunnerCapabilities2,
|
|
257
253
|
declaredChecks
|
|
258
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-zmqm4mrm.js";
|
|
255
|
+
import {
|
|
256
|
+
ChildProcessSpawner,
|
|
257
|
+
make3
|
|
258
|
+
} from "./chunk-gap0vmj7.js";
|
|
259
259
|
import {
|
|
260
260
|
Id,
|
|
261
261
|
Timestamp
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-4qjfn1sa.js";
|
|
263
263
|
|
|
264
264
|
// apps/cli/src/cli-error.ts
|
|
265
265
|
function cliErrorCode(error, status) {
|
|
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1326
1326
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1327
1327
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1328
1328
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1329
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1329
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hj8ex4x6.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1330
1330
|
});
|
|
1331
1331
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hj8ex4x6.js")), (module) => module.updateHerdrCore(options))
|
|
1333
1333
|
});
|
|
1334
1334
|
var herdrCoreMissing = (error) => {
|
|
1335
1335
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
var syncKits = (input) => gen(function* () {
|
|
1775
1775
|
const fs = yield* FileSystem;
|
|
1776
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1776
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-x8zzax0f.js"));
|
|
1777
1777
|
const harnesses = yield* syncTargets(input.harness);
|
|
1778
1778
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1779
1779
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2290,7 +2290,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
2290
2290
|
run: (command, args) => runCommand2(command, args),
|
|
2291
2291
|
attach: (command, args) => gen(function* () {
|
|
2292
2292
|
const spawner = yield* ChildProcessSpawner;
|
|
2293
|
-
const handle = yield* spawner.spawn(
|
|
2293
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
2294
2294
|
const exitCode = yield* handle.exitCode;
|
|
2295
2295
|
if (exitCode !== 0)
|
|
2296
2296
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
3270
3270
|
// apps/cli/src/scaffold-files.ts
|
|
3271
|
-
var cliVersion = "0.
|
|
3271
|
+
var cliVersion = "0.18.0";
|
|
3272
3272
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3273
3273
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3274
3274
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3533
3533
|
|
|
3534
3534
|
// apps/cli/src/commands.ts
|
|
3535
3535
|
var ClientId = "kitman-cli";
|
|
3536
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3536
|
+
var agentRuntime = promise(() => import("./chunk-d3gs4jvd.js"));
|
|
3537
3537
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3538
3538
|
defaultValue: () => gen(function* () {
|
|
3539
3539
|
const tui = yield* tryPromise({
|
|
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5072
5072
|
});
|
|
5073
5073
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5074
5074
|
defaultValue: () => (options) => gen(function* () {
|
|
5075
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5075
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-2bagaygt.js"));
|
|
5076
5076
|
return yield* makeRunnerRpcClient({
|
|
5077
5077
|
runnerId: options.runnerId,
|
|
5078
5078
|
bearer: options.bearer,
|
|
@@ -5385,7 +5385,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5385
5385
|
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);
|
|
5386
5386
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5387
5387
|
const platform = yield* context();
|
|
5388
|
-
const updated = yield*
|
|
5388
|
+
const updated = yield* make16();
|
|
5389
5389
|
const scope = yield* scope2;
|
|
5390
5390
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5391
5391
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5645,7 +5645,7 @@ function mcpCommand(args) {
|
|
|
5645
5645
|
if (command.action === "run") {
|
|
5646
5646
|
if (command.args.length > 0)
|
|
5647
5647
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5648
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5648
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-nfnw3dh1.js"));
|
|
5649
5649
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5650
5650
|
}
|
|
5651
5651
|
if (command.action !== "setup")
|
|
@@ -6145,7 +6145,7 @@ function programLoopCommand(command) {
|
|
|
6145
6145
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6146
6146
|
});
|
|
6147
6147
|
}
|
|
6148
|
-
var docsModule = promise(() => import("./chunk-
|
|
6148
|
+
var docsModule = promise(() => import("./chunk-wg6xkkcr.js"));
|
|
6149
6149
|
function docsCommand(args) {
|
|
6150
6150
|
return gen(function* () {
|
|
6151
6151
|
const command = parseCommand(args);
|
|
@@ -7149,7 +7149,7 @@ function changeRequestCommand(args) {
|
|
|
7149
7149
|
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}`);
|
|
7150
7150
|
});
|
|
7151
7151
|
}
|
|
7152
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7152
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-4p1k3yyc.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7153
7153
|
var loopOutline = (command) => gen(function* () {
|
|
7154
7154
|
const path = yield* Path;
|
|
7155
7155
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7169,9 +7169,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7169
7169
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7170
7170
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7171
7171
|
});
|
|
7172
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7172
|
+
var KitWriter = map9(promise(() => import("./chunk-4p1k3yyc.js")), (build) => build.writeKit);
|
|
7173
7173
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7174
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7174
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-4p1k3yyc.js")), (build) => build.buildKit(directory))
|
|
7175
7175
|
});
|
|
7176
7176
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7177
7177
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -7950,7 +7950,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
7950
7950
|
return gen(function* () {
|
|
7951
7951
|
const fs = yield* FileSystem;
|
|
7952
7952
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
7953
|
-
const response = yield* send(
|
|
7953
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
7954
7954
|
if (response.status < 200 || response.status >= 300)
|
|
7955
7955
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
7956
7956
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-h2f26xbd.js";
|
|
122
122
|
import {
|
|
123
123
|
currentTimeMillis,
|
|
124
124
|
SecureRandom,
|
|
@@ -158,8 +158,8 @@ import {
|
|
|
158
158
|
sessionForApi,
|
|
159
159
|
readAuthStore,
|
|
160
160
|
agentCredentialForApi,
|
|
161
|
-
make5,
|
|
162
161
|
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-zmqm4mrm.js";
|
|
174
174
|
import {
|
|
175
175
|
join,
|
|
176
176
|
interrupt,
|
|
@@ -187,30 +187,30 @@ import {
|
|
|
187
187
|
withDefault,
|
|
188
188
|
option,
|
|
189
189
|
String2
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-63cyj9dh.js";
|
|
191
191
|
import {
|
|
192
192
|
searchDocs2,
|
|
193
193
|
readDoc2
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-mca2zp8p.js";
|
|
195
195
|
import {
|
|
196
196
|
nextInt
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-5kqt4bqp.js";
|
|
198
198
|
import {
|
|
199
199
|
recommendationProblem
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-tsx0347c.js";
|
|
201
201
|
import {
|
|
202
202
|
layerJson,
|
|
203
|
-
|
|
203
|
+
make4,
|
|
204
204
|
withHeaders,
|
|
205
205
|
layerProtocolSocket,
|
|
206
206
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-mqsxwm53.js";
|
|
208
208
|
import {
|
|
209
209
|
guard,
|
|
210
210
|
Id,
|
|
211
211
|
Timestamp,
|
|
212
212
|
ActorType
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-4qjfn1sa.js";
|
|
214
214
|
|
|
215
215
|
// apps/cli/src/mcp.ts
|
|
216
216
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1947,56 +1947,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1947
1947
|
LivePresenceSubscriptionUpdate
|
|
1948
1948
|
]);
|
|
1949
1949
|
|
|
1950
|
-
class LiveRpcs extends make6(
|
|
1950
|
+
class LiveRpcs extends make7(make6("Session", {
|
|
1951
1951
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1952
1952
|
error: LiveRpcError
|
|
1953
|
-
}),
|
|
1953
|
+
}), make6("Subscribe", {
|
|
1954
1954
|
payload: LiveSubscribeInput,
|
|
1955
1955
|
success: LiveSubscriptionMessage,
|
|
1956
1956
|
error: LiveRpcError,
|
|
1957
1957
|
stream: true
|
|
1958
|
-
}),
|
|
1958
|
+
}), make6("Replay", {
|
|
1959
1959
|
payload: LiveReplayInput,
|
|
1960
1960
|
success: ArraySchema(LiveEvent),
|
|
1961
1961
|
error: LiveRpcError
|
|
1962
|
-
}),
|
|
1962
|
+
}), make6("Ack", {
|
|
1963
1963
|
payload: LiveAckInput,
|
|
1964
1964
|
success: LiveAckResult,
|
|
1965
1965
|
error: LiveRpcError
|
|
1966
|
-
}),
|
|
1966
|
+
}), make6("SubscribeWeb", {
|
|
1967
1967
|
payload: LiveWebSubscribeInput,
|
|
1968
1968
|
success: LiveWebSubscriptionMessage,
|
|
1969
1969
|
error: LiveRpcError,
|
|
1970
1970
|
stream: true
|
|
1971
|
-
}),
|
|
1971
|
+
}), make6("SubscriptionStatus", {
|
|
1972
1972
|
payload: { subscriptionId: String4 },
|
|
1973
1973
|
success: LiveSubscriptionStatus,
|
|
1974
1974
|
error: LiveRpcError
|
|
1975
|
-
}),
|
|
1975
|
+
}), make6("ReplayWeb", {
|
|
1976
1976
|
payload: LiveWebReplayInput,
|
|
1977
1977
|
success: LiveWebReplayResult,
|
|
1978
1978
|
error: LiveRpcError
|
|
1979
|
-
}),
|
|
1979
|
+
}), make6("AckWeb", {
|
|
1980
1980
|
payload: LiveWebAckInput,
|
|
1981
1981
|
success: LiveWebAckResult,
|
|
1982
1982
|
error: LiveRpcError
|
|
1983
|
-
}),
|
|
1983
|
+
}), make6("PublishPresence", {
|
|
1984
1984
|
payload: LivePresencePublishInput,
|
|
1985
1985
|
success: LivePresenceEntry,
|
|
1986
1986
|
error: LiveRpcError
|
|
1987
|
-
}),
|
|
1987
|
+
}), make6("SubscribePresence", {
|
|
1988
1988
|
payload: LivePresenceSubscribeInput,
|
|
1989
1989
|
success: LivePresenceSubscriptionMessage,
|
|
1990
1990
|
error: LiveRpcError,
|
|
1991
1991
|
stream: true
|
|
1992
|
-
}),
|
|
1992
|
+
}), make6("ClearPresence", {
|
|
1993
1993
|
payload: { scope: optional(LiveScope) },
|
|
1994
1994
|
error: LiveRpcError
|
|
1995
|
-
}),
|
|
1995
|
+
}), make6("RecordSessionUpdate", {
|
|
1996
1996
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
1997
1997
|
success: SessionUpdate,
|
|
1998
1998
|
error: LiveRpcError
|
|
1999
|
-
}),
|
|
1999
|
+
}), make6("EndSession", {
|
|
2000
2000
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2001
2001
|
success: Session,
|
|
2002
2002
|
error: LiveRpcError
|
|
@@ -2048,7 +2048,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2048
2048
|
})
|
|
2049
2049
|
});
|
|
2050
2050
|
const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2051
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2051
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2052
2052
|
let abandon = () => {};
|
|
2053
2053
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2054
2054
|
abandon = reject;
|
|
@@ -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-vz38kngm.js";
|
|
8
|
+
import"./chunk-4qjfn1sa.js";
|
|
9
|
+
import"./chunk-h2f26xbd.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-h2f26xbd.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4qjfn1sa.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path
|
|
5
|
+
} from "./chunk-63cyj9dh.js";
|
|
2
6
|
import {
|
|
3
7
|
isObject,
|
|
4
8
|
isUint8Array,
|
|
@@ -13,17 +17,13 @@ import {
|
|
|
13
17
|
isJsonObject,
|
|
14
18
|
decodeJsonString,
|
|
15
19
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
FileSystem,
|
|
19
|
-
Path
|
|
20
|
-
} from "./chunk-z59pvcbk.js";
|
|
20
|
+
} from "./chunk-h2f26xbd.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-jaa8qjky.js";
|
|
27
27
|
import {
|
|
28
28
|
instructionsStart,
|
|
29
29
|
instructionsEnd,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
antigravityPlugins,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-zmqm4mrm.js";
|
|
35
|
+
import"./chunk-9jffw2mk.js";
|
|
36
|
+
import"./chunk-gap0vmj7.js";
|
|
37
|
+
import"./chunk-4qjfn1sa.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
40
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|