@kitman-sh/cli 0.16.0 → 0.17.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.
Files changed (28) hide show
  1. package/dist/{chunk-rv6d2r5v.js → chunk-0f67q0tf.js} +9 -9
  2. package/dist/{chunk-gpcrp0tc.js → chunk-0wqkz371.js} +3 -3
  3. package/dist/{chunk-cqejv8e6.js → chunk-2928qj8m.js} +51 -30
  4. package/dist/{chunk-hbm0hybe.js → chunk-2sazk478.js} +4 -4
  5. package/dist/{chunk-f02v4cdn.js → chunk-5me7tnrw.js} +3 -3
  6. package/dist/{chunk-gt7gk0d4.js → chunk-829r4kya.js} +4 -4
  7. package/dist/{chunk-5jt8b98c.js → chunk-8r1a93rc.js} +4 -4
  8. package/dist/{chunk-djdhep8n.js → chunk-9a6wbk11.js} +3 -3
  9. package/dist/{chunk-r58fc2x9.js → chunk-ebpjd7kg.js} +6 -6
  10. package/dist/{chunk-xc76s9kk.js → chunk-ekyj0bps.js} +7 -7
  11. package/dist/{chunk-4g7cj90y.js → chunk-g3jqqpky.js} +9 -9
  12. package/dist/{chunk-zgbjha6j.js → chunk-j37p2y71.js} +190 -350
  13. package/dist/{chunk-9n6hd7es.js → chunk-jg1pjhba.js} +21 -21
  14. package/dist/{chunk-yg34g1m8.js → chunk-kx8rpa62.js} +5 -5
  15. package/dist/{chunk-gwzzacep.js → chunk-m1qp6swh.js} +1 -1
  16. package/dist/{chunk-n9fhwgzm.js → chunk-nf9rfrvv.js} +34 -34
  17. package/dist/{chunk-23nvmnkp.js → chunk-nqh0pbgt.js} +1 -1
  18. package/dist/{chunk-f2y0z04q.js → chunk-pd3azxev.js} +1 -1
  19. package/dist/{chunk-4v691rg5.js → chunk-pnckztvv.js} +20 -20
  20. package/dist/{chunk-1scjh42j.js → chunk-qjxgew0k.js} +2 -2
  21. package/dist/{chunk-x83q18w0.js → chunk-r2kzvdrg.js} +1 -1
  22. package/dist/{chunk-g6nhny28.js → chunk-r3d2yjsh.js} +25 -25
  23. package/dist/{chunk-4pq5vq59.js → chunk-vh2a72d1.js} +14 -60
  24. package/dist/{chunk-rfnasm3c.js → chunk-y64ssczv.js} +289 -71
  25. package/dist/{chunk-ppdf5m4j.js → chunk-z59pvcbk.js} +187 -178
  26. package/dist/{chunk-sd8b4k1t.js → chunk-zy21drtv.js} +2 -2
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -35,7 +35,15 @@ import {
35
35
  toCodecJson,
36
36
  Json,
37
37
  encodePrettyJsonString
38
- } from "./chunk-rfnasm3c.js";
38
+ } from "./chunk-y64ssczv.js";
39
+ import {
40
+ decodeText,
41
+ mkString,
42
+ FileSystem,
43
+ Path,
44
+ withDefault,
45
+ String2
46
+ } from "./chunk-z59pvcbk.js";
39
47
  import {
40
48
  SecureRandom,
41
49
  layerWebCrypto,
@@ -52,34 +60,26 @@ import {
52
60
  KitDeclarations,
53
61
  kitmanMcpServer,
54
62
  RunnerRpcProtocolVersion
55
- } from "./chunk-zgbjha6j.js";
56
- import {
57
- decodeText,
58
- mkString,
59
- FileSystem,
60
- Path,
61
- withDefault,
62
- String2
63
- } from "./chunk-ppdf5m4j.js";
63
+ } from "./chunk-j37p2y71.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-gpcrp0tc.js";
67
+ } from "./chunk-0wqkz371.js";
68
+ import {
69
+ ChildProcessSpawner,
70
+ make2
71
+ } from "./chunk-vh2a72d1.js";
68
72
  import {
69
73
  stepDefinedTwice,
70
74
  hostSteps,
71
75
  exports_activities,
72
76
  describeFlag,
73
77
  Described
74
- } from "./chunk-rv6d2r5v.js";
75
- import"./chunk-4g7cj90y.js";
76
- import"./chunk-f2y0z04q.js";
77
- import {
78
- ChildProcessSpawner,
79
- make3
80
- } from "./chunk-4pq5vq59.js";
81
- import"./chunk-4v691rg5.js";
82
- import"./chunk-x83q18w0.js";
78
+ } from "./chunk-0f67q0tf.js";
79
+ import"./chunk-g3jqqpky.js";
80
+ import"./chunk-pd3azxev.js";
81
+ import"./chunk-pnckztvv.js";
82
+ import"./chunk-r2kzvdrg.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -3891,7 +3891,7 @@ var ConfigAgents = Record(String4, Struct({
3891
3891
  }));
3892
3892
  var run = (command, args, cwd) => gen(function* () {
3893
3893
  const spawner = yield* ChildProcessSpawner;
3894
- const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
3894
+ const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
3895
3895
  const [stdout, stderr, exitCode] = yield* all3([
3896
3896
  mkString(decodeText(handle.stdout)),
3897
3897
  mkString(decodeText(handle.stderr)),
@@ -25,16 +25,16 @@ import {
25
25
  isJsonObject,
26
26
  isString2,
27
27
  encodeUnknownJsonStringSync
28
- } from "./chunk-rfnasm3c.js";
28
+ } from "./chunk-y64ssczv.js";
29
29
  import {
30
30
  make10,
31
31
  runForEach,
32
32
  compiled2
33
- } from "./chunk-ppdf5m4j.js";
33
+ } from "./chunk-z59pvcbk.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
- make3
37
- } from "./chunk-4pq5vq59.js";
36
+ make2
37
+ } from "./chunk-vh2a72d1.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -172,7 +172,7 @@ 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(make3(command, args, {
175
+ const handle = yield* spawner.spawn(make2(command, args, {
176
176
  stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
177
177
  stderr: "ignore",
178
178
  extendEnv: false,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-rfnasm3c.js";
6
+ } from "./chunk-y64ssczv.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -108,8 +108,25 @@ import {
108
108
  decodeJsonStringOption,
109
109
  encodeJsonStringSync,
110
110
  encodePrettyJsonString
111
- } from "./chunk-rfnasm3c.js";
111
+ } from "./chunk-y64ssczv.js";
112
112
  import {
113
+ tap,
114
+ mapError,
115
+ decodeText,
116
+ run,
117
+ mkString,
118
+ FileSystem,
119
+ Path,
120
+ withDefault,
121
+ option,
122
+ String2
123
+ } from "./chunk-z59pvcbk.js";
124
+ import {
125
+ ChildProcessSpawner,
126
+ make2
127
+ } from "./chunk-vh2a72d1.js";
128
+ import {
129
+ currentTimeMillis,
113
130
  SecureRandom,
114
131
  layerWebCrypto,
115
132
  runMain,
@@ -172,7 +189,7 @@ import {
172
189
  digestSha256,
173
190
  sha256Hasher,
174
191
  raw,
175
- make5,
192
+ make4,
176
193
  get,
177
194
  put,
178
195
  HttpClient,
@@ -238,28 +255,11 @@ import {
238
255
  harnessNames,
239
256
  herdrRunnerCapabilities2,
240
257
  declaredChecks
241
- } from "./chunk-zgbjha6j.js";
242
- import {
243
- currentTimeMillis,
244
- tap,
245
- mapError,
246
- decodeText,
247
- run,
248
- mkString,
249
- FileSystem,
250
- Path,
251
- withDefault,
252
- option,
253
- String2
254
- } from "./chunk-ppdf5m4j.js";
255
- import {
256
- ChildProcessSpawner,
257
- make3
258
- } from "./chunk-4pq5vq59.js";
258
+ } from "./chunk-j37p2y71.js";
259
259
  import {
260
260
  Id,
261
261
  Timestamp
262
- } from "./chunk-x83q18w0.js";
262
+ } from "./chunk-r2kzvdrg.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-gt7gk0d4.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-829r4kya.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-gt7gk0d4.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-829r4kya.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-xc76s9kk.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-ekyj0bps.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(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
2293
+ const handle = yield* spawner.spawn(make2(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.16.0";
3271
+ var cliVersion = "0.17.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-cqejv8e6.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-2928qj8m.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-r58fc2x9.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-ebpjd7kg.js"));
5076
5076
  return yield* makeRunnerRpcClient({
5077
5077
  runnerId: options.runnerId,
5078
5078
  bearer: options.bearer,
@@ -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-g6nhny28.js"));
5648
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-r3d2yjsh.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-23nvmnkp.js"));
6148
+ var docsModule = promise(() => import("./chunk-nqh0pbgt.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-9n6hd7es.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7152
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-jg1pjhba.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-9n6hd7es.js")), (build) => build.writeKit);
7172
+ var KitWriter = map9(promise(() => import("./chunk-jg1pjhba.js")), (build) => build.writeKit);
7173
7173
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7174
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-9n6hd7es.js")), (build) => build.buildKit(directory))
7174
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-jg1pjhba.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(make5(download.method)(download.url), failed);
7953
+ const response = yield* send(make4(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)));
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-f02v4cdn.js";
7
+ } from "./chunk-5me7tnrw.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  isString2
4
- } from "./chunk-rfnasm3c.js";
4
+ } from "./chunk-y64ssczv.js";
5
5
 
6
6
  // packages/core/src/question-recommendation.ts
7
7
  var optionValue = (option) => isString2(option) ? option : option.value;
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get3,
15
+ get4,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,8 +96,21 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-rfnasm3c.js";
99
+ } from "./chunk-y64ssczv.js";
100
100
  import {
101
+ interrupt,
102
+ getCurrent,
103
+ makeUnsafe2,
104
+ bounded,
105
+ offerAll,
106
+ failCause,
107
+ end,
108
+ shutdownUnsafe,
109
+ fromQueue,
110
+ unwrap
111
+ } from "./chunk-z59pvcbk.js";
112
+ import {
113
+ Clock,
101
114
  empty,
102
115
  fromInput,
103
116
  merge,
@@ -110,20 +123,7 @@ import {
110
123
  ParseOptions,
111
124
  RpcClientDefect,
112
125
  RpcClientError
113
- } from "./chunk-zgbjha6j.js";
114
- import {
115
- Clock,
116
- interrupt,
117
- getCurrent,
118
- makeUnsafe2,
119
- bounded,
120
- offerAll,
121
- failCause,
122
- end,
123
- shutdownUnsafe,
124
- fromQueue,
125
- unwrap
126
- } from "./chunk-ppdf5m4j.js";
126
+ } from "./chunk-j37p2y71.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")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get3(services, Scope);
240
+ const scope = get4(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
483
  };
484
484
  });
485
485
  var clientIdCounter = 0;
486
- var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
486
+ var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
487
  const clientId = clientIdCounter++;
488
488
  const {
489
489
  codecFor,
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get3(rpc.annotations, ParseOptions);
646
+ const parseOptions = get4(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -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, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-ppdf5m4j.js";
19
- import"./chunk-rfnasm3c.js";
18
+ } from "./chunk-z59pvcbk.js";
19
+ import"./chunk-y64ssczv.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-rfnasm3c.js";
21
+ } from "./chunk-y64ssczv.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -118,8 +118,9 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-rfnasm3c.js";
121
+ } from "./chunk-y64ssczv.js";
122
122
  import {
123
+ currentTimeMillis,
123
124
  SecureRandom,
124
125
  makeUnsafe,
125
126
  formatIso,
@@ -157,8 +158,8 @@ import {
157
158
  sessionForApi,
158
159
  readAuthStore,
159
160
  agentCredentialForApi,
161
+ make5,
160
162
  make6,
161
- make7,
162
163
  Service,
163
164
  shouldRefresh,
164
165
  refreshSession,
@@ -169,9 +170,8 @@ import {
169
170
  runMcpEffect,
170
171
  createAgentAuthSignedFetch,
171
172
  setupMcpAgentCredential
172
- } from "./chunk-zgbjha6j.js";
173
+ } from "./chunk-j37p2y71.js";
173
174
  import {
174
- currentTimeMillis,
175
175
  join,
176
176
  interrupt,
177
177
  empty2,
@@ -187,30 +187,30 @@ import {
187
187
  withDefault,
188
188
  option,
189
189
  String2
190
- } from "./chunk-ppdf5m4j.js";
190
+ } from "./chunk-z59pvcbk.js";
191
191
  import {
192
192
  searchDocs2,
193
193
  readDoc2
194
- } from "./chunk-f02v4cdn.js";
194
+ } from "./chunk-5me7tnrw.js";
195
195
  import {
196
196
  nextInt
197
- } from "./chunk-gwzzacep.js";
197
+ } from "./chunk-m1qp6swh.js";
198
198
  import {
199
199
  recommendationProblem
200
- } from "./chunk-f2y0z04q.js";
200
+ } from "./chunk-pd3azxev.js";
201
201
  import {
202
202
  layerJson,
203
- make4,
203
+ make3,
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-4v691rg5.js";
207
+ } from "./chunk-pnckztvv.js";
208
208
  import {
209
209
  guard,
210
210
  Id,
211
211
  Timestamp,
212
212
  ActorType
213
- } from "./chunk-x83q18w0.js";
213
+ } from "./chunk-r2kzvdrg.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 make7(make6("Session", {
1950
+ class LiveRpcs extends make6(make5("Session", {
1951
1951
  success: Struct({ workspaceId: String4, clientKind: String4 }),
1952
1952
  error: LiveRpcError
1953
- }), make6("Subscribe", {
1953
+ }), make5("Subscribe", {
1954
1954
  payload: LiveSubscribeInput,
1955
1955
  success: LiveSubscriptionMessage,
1956
1956
  error: LiveRpcError,
1957
1957
  stream: true
1958
- }), make6("Replay", {
1958
+ }), make5("Replay", {
1959
1959
  payload: LiveReplayInput,
1960
1960
  success: ArraySchema(LiveEvent),
1961
1961
  error: LiveRpcError
1962
- }), make6("Ack", {
1962
+ }), make5("Ack", {
1963
1963
  payload: LiveAckInput,
1964
1964
  success: LiveAckResult,
1965
1965
  error: LiveRpcError
1966
- }), make6("SubscribeWeb", {
1966
+ }), make5("SubscribeWeb", {
1967
1967
  payload: LiveWebSubscribeInput,
1968
1968
  success: LiveWebSubscriptionMessage,
1969
1969
  error: LiveRpcError,
1970
1970
  stream: true
1971
- }), make6("SubscriptionStatus", {
1971
+ }), make5("SubscriptionStatus", {
1972
1972
  payload: { subscriptionId: String4 },
1973
1973
  success: LiveSubscriptionStatus,
1974
1974
  error: LiveRpcError
1975
- }), make6("ReplayWeb", {
1975
+ }), make5("ReplayWeb", {
1976
1976
  payload: LiveWebReplayInput,
1977
1977
  success: LiveWebReplayResult,
1978
1978
  error: LiveRpcError
1979
- }), make6("AckWeb", {
1979
+ }), make5("AckWeb", {
1980
1980
  payload: LiveWebAckInput,
1981
1981
  success: LiveWebAckResult,
1982
1982
  error: LiveRpcError
1983
- }), make6("PublishPresence", {
1983
+ }), make5("PublishPresence", {
1984
1984
  payload: LivePresencePublishInput,
1985
1985
  success: LivePresenceEntry,
1986
1986
  error: LiveRpcError
1987
- }), make6("SubscribePresence", {
1987
+ }), make5("SubscribePresence", {
1988
1988
  payload: LivePresenceSubscribeInput,
1989
1989
  success: LivePresenceSubscriptionMessage,
1990
1990
  error: LiveRpcError,
1991
1991
  stream: true
1992
- }), make6("ClearPresence", {
1992
+ }), make5("ClearPresence", {
1993
1993
  payload: { scope: optional(LiveScope) },
1994
1994
  error: LiveRpcError
1995
- }), make6("RecordSessionUpdate", {
1995
+ }), make5("RecordSessionUpdate", {
1996
1996
  payload: { sessionId: String4, input: SessionUpdateCreate },
1997
1997
  success: SessionUpdate,
1998
1998
  error: LiveRpcError
1999
- }), make6("EndSession", {
1999
+ }), make5("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) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2051
+ const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2052
2052
  let abandon = () => {};
2053
2053
  const abandoned = new Promise((_resolve, reject) => {
2054
2054
  abandon = reject;