@kitman-sh/cli 0.50.1 → 0.52.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-8r9k7pqk.js → chunk-2nq80r46.js} +59 -19
  2. package/dist/{chunk-k5cqc0cs.js → chunk-2t1hcdeq.js} +19 -21
  3. package/dist/{chunk-apv9h5tz.js → chunk-5yygjn0k.js} +1 -1
  4. package/dist/{chunk-g3c1vesf.js → chunk-84qb67e2.js} +1 -1
  5. package/dist/{chunk-rr0rem5d.js → chunk-9hde8p6b.js} +6 -6
  6. package/dist/{chunk-mtrhqr16.js → chunk-a40yta1r.js} +3 -3
  7. package/dist/{chunk-h3wes7wf.js → chunk-axfp5tzk.js} +7 -7
  8. package/dist/{chunk-qfwhsqej.js → chunk-bhz25x76.js} +3 -3
  9. package/dist/{chunk-hyaq30ne.js → chunk-bj0zchck.js} +179 -188
  10. package/dist/{chunk-watq46xe.js → chunk-chbdcf34.js} +9 -11
  11. package/dist/{chunk-7y1w0dhd.js → chunk-eqh0h088.js} +25 -27
  12. package/dist/{chunk-ecweehc6.js → chunk-h5ydhdhx.js} +23 -23
  13. package/dist/{chunk-q8m2ygyt.js → chunk-kt26vpwf.js} +9 -9
  14. package/dist/{chunk-brbym443.js → chunk-mmt6xq48.js} +2 -2
  15. package/dist/{chunk-v96hm634.js → chunk-my9db578.js} +4 -4
  16. package/dist/{chunk-72ht3484.js → chunk-pppryg54.js} +6 -6
  17. package/dist/{chunk-ag79vvjy.js → chunk-q2z8rct0.js} +4 -4
  18. package/dist/{chunk-s6z4sdkw.js → chunk-qjfzcrv5.js} +4 -4
  19. package/dist/{chunk-s8ws5fqj.js → chunk-qsbq9gvr.js} +350 -185
  20. package/dist/{chunk-n00cpb86.js → chunk-tfznw549.js} +2 -2
  21. package/dist/{chunk-k1fdsn2c.js → chunk-tqspx38s.js} +1 -1
  22. package/dist/{chunk-9jz94mb7.js → chunk-trtgab3h.js} +3 -3
  23. package/dist/{chunk-9vdy85kg.js → chunk-wb04fv2s.js} +34 -34
  24. package/dist/{chunk-5tgpa02q.js → chunk-wxg9k10v.js} +1 -1
  25. package/dist/{chunk-bk28dr40.js → chunk-xbqd3kqc.js} +14 -14
  26. package/dist/{chunk-n381rqax.js → chunk-zb4t1yrt.js} +71 -257
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-n381rqax.js";
121
+ } from "./chunk-zb4t1yrt.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,
162
161
  make6,
162
+ make7,
163
163
  Service,
164
164
  shouldRefresh,
165
165
  refreshSession,
@@ -170,8 +170,9 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-s8ws5fqj.js";
173
+ } from "./chunk-qsbq9gvr.js";
174
174
  import {
175
+ currentTimeMillis,
175
176
  join,
176
177
  interrupt,
177
178
  empty3,
@@ -187,33 +188,30 @@ import {
187
188
  withDefault,
188
189
  option,
189
190
  String2
190
- } from "./chunk-hyaq30ne.js";
191
+ } from "./chunk-bj0zchck.js";
191
192
  import {
192
193
  searchDocs2,
193
194
  readDoc2
194
- } from "./chunk-9jz94mb7.js";
195
+ } from "./chunk-trtgab3h.js";
195
196
  import {
196
197
  nextInt
197
- } from "./chunk-apv9h5tz.js";
198
+ } from "./chunk-5yygjn0k.js";
198
199
  import {
199
200
  recommendationProblem
200
- } from "./chunk-k1fdsn2c.js";
201
- import {
202
- currentTimeMillis
203
- } from "./chunk-8r9k7pqk.js";
201
+ } from "./chunk-tqspx38s.js";
204
202
  import {
205
203
  layerJson,
206
- make3,
204
+ make4,
207
205
  withHeaders,
208
206
  layerProtocolSocket,
209
207
  ConnectionHooks
210
- } from "./chunk-k5cqc0cs.js";
208
+ } from "./chunk-2t1hcdeq.js";
211
209
  import {
212
210
  guard,
213
211
  Id,
214
212
  Timestamp,
215
213
  ActorType
216
- } from "./chunk-5tgpa02q.js";
214
+ } from "./chunk-wxg9k10v.js";
217
215
 
218
216
  // apps/cli/src/mcp.ts
219
217
  import { tmpdir as tmpdir2 } from "os";
@@ -1950,56 +1948,56 @@ var LivePresenceSubscriptionMessage = Union([
1950
1948
  LivePresenceSubscriptionUpdate
1951
1949
  ]);
1952
1950
 
1953
- class LiveRpcs extends make6(make5("Session", {
1951
+ class LiveRpcs extends make7(make6("Session", {
1954
1952
  success: Struct({ workspaceId: String4, clientKind: String4 }),
1955
1953
  error: LiveRpcError
1956
- }), make5("Subscribe", {
1954
+ }), make6("Subscribe", {
1957
1955
  payload: LiveSubscribeInput,
1958
1956
  success: LiveSubscriptionMessage,
1959
1957
  error: LiveRpcError,
1960
1958
  stream: true
1961
- }), make5("Replay", {
1959
+ }), make6("Replay", {
1962
1960
  payload: LiveReplayInput,
1963
1961
  success: ArraySchema(LiveEvent),
1964
1962
  error: LiveRpcError
1965
- }), make5("Ack", {
1963
+ }), make6("Ack", {
1966
1964
  payload: LiveAckInput,
1967
1965
  success: LiveAckResult,
1968
1966
  error: LiveRpcError
1969
- }), make5("SubscribeWeb", {
1967
+ }), make6("SubscribeWeb", {
1970
1968
  payload: LiveWebSubscribeInput,
1971
1969
  success: LiveWebSubscriptionMessage,
1972
1970
  error: LiveRpcError,
1973
1971
  stream: true
1974
- }), make5("SubscriptionStatus", {
1972
+ }), make6("SubscriptionStatus", {
1975
1973
  payload: { subscriptionId: String4 },
1976
1974
  success: LiveSubscriptionStatus,
1977
1975
  error: LiveRpcError
1978
- }), make5("ReplayWeb", {
1976
+ }), make6("ReplayWeb", {
1979
1977
  payload: LiveWebReplayInput,
1980
1978
  success: LiveWebReplayResult,
1981
1979
  error: LiveRpcError
1982
- }), make5("AckWeb", {
1980
+ }), make6("AckWeb", {
1983
1981
  payload: LiveWebAckInput,
1984
1982
  success: LiveWebAckResult,
1985
1983
  error: LiveRpcError
1986
- }), make5("PublishPresence", {
1984
+ }), make6("PublishPresence", {
1987
1985
  payload: LivePresencePublishInput,
1988
1986
  success: LivePresenceEntry,
1989
1987
  error: LiveRpcError
1990
- }), make5("SubscribePresence", {
1988
+ }), make6("SubscribePresence", {
1991
1989
  payload: LivePresenceSubscribeInput,
1992
1990
  success: LivePresenceSubscriptionMessage,
1993
1991
  error: LiveRpcError,
1994
1992
  stream: true
1995
- }), make5("ClearPresence", {
1993
+ }), make6("ClearPresence", {
1996
1994
  payload: { scope: optional(LiveScope) },
1997
1995
  error: LiveRpcError
1998
- }), make5("RecordSessionUpdate", {
1996
+ }), make6("RecordSessionUpdate", {
1999
1997
  payload: { sessionId: String4, input: SessionUpdateCreate },
2000
1998
  success: SessionUpdate,
2001
1999
  error: LiveRpcError
2002
- }), make5("EndSession", {
2000
+ }), make6("EndSession", {
2003
2001
  payload: { sessionId: String4, input: SessionEnd },
2004
2002
  success: Session,
2005
2003
  error: LiveRpcError
@@ -2051,7 +2049,7 @@ function connectKitmanLiveRoot(protocol) {
2051
2049
  })
2052
2050
  });
2053
2051
  const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
2054
- const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2052
+ const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2055
2053
  let abandon = () => {};
2056
2054
  const abandoned = new Promise((_resolve, reject) => {
2057
2055
  abandon = reject;
@@ -186,7 +186,7 @@ import {
186
186
  decodeJsonStringSync,
187
187
  encodeUnknownJsonStringSync,
188
188
  storable
189
- } from "./chunk-n381rqax.js";
189
+ } from "./chunk-zb4t1yrt.js";
190
190
  import {
191
191
  SecureRandom,
192
192
  layerWebCrypto,
@@ -277,9 +277,10 @@ import {
277
277
  checkServicesFile,
278
278
  checkServices,
279
279
  serviceChecks
280
- } from "./chunk-s8ws5fqj.js";
280
+ } from "./chunk-qsbq9gvr.js";
281
281
  import {
282
282
  empty2,
283
+ currentTimeMillis,
283
284
  join,
284
285
  interrupt,
285
286
  interruptAll,
@@ -329,7 +330,7 @@ import {
329
330
  writeSrtSettings2,
330
331
  srtStepArgv2,
331
332
  srtArgv2
332
- } from "./chunk-hyaq30ne.js";
333
+ } from "./chunk-bj0zchck.js";
333
334
  import {
334
335
  writeAgentEnvironmentConfigFile2,
335
336
  readManifestSkillPaths2,
@@ -345,13 +346,8 @@ import {
345
346
  applyAgentEnvironmentMaterialization2,
346
347
  isPathWithin2,
347
348
  skillIdentity2
348
- } from "./chunk-v96hm634.js";
349
- import"./chunk-mtrhqr16.js";
350
- import {
351
- currentTimeMillis,
352
- ChildProcessSpawner,
353
- make2
354
- } from "./chunk-8r9k7pqk.js";
349
+ } from "./chunk-my9db578.js";
350
+ import"./chunk-a40yta1r.js";
355
351
  import {
356
352
  egressAllowed,
357
353
  writeSecretRegistry,
@@ -361,7 +357,7 @@ import {
361
357
  secretFilter2,
362
358
  opaqueTunnelRefusal2,
363
359
  isOpaqueConnectReason2
364
- } from "./chunk-n00cpb86.js";
360
+ } from "./chunk-tfznw549.js";
365
361
  import {
366
362
  sliceBytes2,
367
363
  maxLineBytes2,
@@ -371,25 +367,29 @@ import {
371
367
  lookAtOpencode2,
372
368
  readOpencode2,
373
369
  databaseStamp2
374
- } from "./chunk-72ht3484.js";
370
+ } from "./chunk-pppryg54.js";
375
371
  import {
376
372
  uploadRunFile,
377
373
  programLease,
378
374
  rpcRunFiles,
379
375
  programHostsEnv,
380
376
  undeclaredHostsEnv
381
- } from "./chunk-watq46xe.js";
382
- import"./chunk-q8m2ygyt.js";
377
+ } from "./chunk-chbdcf34.js";
378
+ import"./chunk-kt26vpwf.js";
383
379
  import {
384
380
  nextInt
385
- } from "./chunk-apv9h5tz.js";
386
- import"./chunk-k1fdsn2c.js";
387
- import"./chunk-k5cqc0cs.js";
381
+ } from "./chunk-5yygjn0k.js";
382
+ import"./chunk-tqspx38s.js";
383
+ import {
384
+ ChildProcessSpawner,
385
+ make3
386
+ } from "./chunk-2nq80r46.js";
387
+ import"./chunk-2t1hcdeq.js";
388
388
  import {
389
389
  Id,
390
390
  secretReference,
391
391
  secretPlaceholder
392
- } from "./chunk-5tgpa02q.js";
392
+ } from "./chunk-wxg9k10v.js";
393
393
 
394
394
  // packages/core/src/sync-kit.ts
395
395
  import { createHash } from "crypto";
@@ -3335,7 +3335,7 @@ var Proto2 = {
3335
3335
  };
3336
3336
  }
3337
3337
  };
3338
- var make3 = (value) => map9(unbounded({
3338
+ var make2 = (value) => map9(unbounded({
3339
3339
  replay: 1
3340
3340
  }), (pubsub) => {
3341
3341
  const self = Object.create(Proto2);
@@ -5168,7 +5168,7 @@ var runAttempt = (request, options) => gen(function* () {
5168
5168
  return isTagged(terminal.failure, "HerdrCoreRpcError") ? failed("harness_launch_failed", `herdr-core refused to start the Harness: ${terminal.failure.message}`) : { status: "unreported", reason: "herdr_unavailable" };
5169
5169
  }
5170
5170
  const { address } = terminal.success;
5171
- const seen = yield* make3({ status: null, turn: 0, end: undefined });
5171
+ const seen = yield* make2({ status: null, turn: 0, end: undefined });
5172
5172
  yield* forkScoped(follow(options.core, attempt.id, address, seen));
5173
5173
  const stop = gen(function* () {
5174
5174
  if ((yield* get2(seen)).end === "unreachable")
@@ -8909,7 +8909,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
8909
8909
  const input = yield* unbounded2();
8910
8910
  const pending = new Map;
8911
8911
  let lastId = 0;
8912
- const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
8912
+ const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
8913
8913
  cwd: env.home,
8914
8914
  extendEnv: true,
8915
8915
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -9072,7 +9072,7 @@ var handshake = [
9072
9072
  `).join("");
9073
9073
  var kitmanMcpPreflight = (mcp) => gen(function* () {
9074
9074
  const spawner = yield* ChildProcessSpawner;
9075
- const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
9075
+ const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
9076
9076
  extendEnv: true,
9077
9077
  env: mcp.env,
9078
9078
  stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
@@ -9155,7 +9155,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
9155
9155
  };
9156
9156
  const { ended, output } = sandbox === undefined ? yield* gen(function* () {
9157
9157
  const spawner = yield* ChildProcessSpawner;
9158
- const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
9158
+ const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
9159
9159
  stdin: make10(new TextEncoder().encode(stdin)),
9160
9160
  stdout: "pipe",
9161
9161
  stderr: "pipe",
@@ -6,10 +6,7 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-n381rqax.js";
10
- import {
11
- runForEach
12
- } from "./chunk-hyaq30ne.js";
9
+ } from "./chunk-zb4t1yrt.js";
13
10
  import {
14
11
  WebSocketConstructor,
15
12
  layerWebSocketConstructorGlobal,
@@ -19,13 +16,16 @@ import {
19
16
  RunnerReplicaRpcs,
20
17
  RunnerRunFileRpcs,
21
18
  ProgramRpcs
22
- } from "./chunk-s8ws5fqj.js";
19
+ } from "./chunk-qsbq9gvr.js";
20
+ import {
21
+ runForEach
22
+ } from "./chunk-bj0zchck.js";
23
23
  import {
24
24
  layerJson,
25
- make3,
25
+ make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-k5cqc0cs.js";
28
+ } from "./chunk-2t1hcdeq.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-hyaq30ne.js";
19
- import"./chunk-n381rqax.js";
18
+ } from "./chunk-bj0zchck.js";
19
+ import"./chunk-zb4t1yrt.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-n381rqax.js";
28
+ } from "./chunk-zb4t1yrt.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-hyaq30ne.js";
34
+ } from "./chunk-bj0zchck.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-s8ws5fqj.js";
39
+ } from "./chunk-qsbq9gvr.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-mtrhqr16.js";
42
+ } from "./chunk-a40yta1r.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -35,19 +35,19 @@ import {
35
35
  isJsonObject,
36
36
  isString2,
37
37
  encodeUnknownJsonStringSync
38
- } from "./chunk-n381rqax.js";
38
+ } from "./chunk-zb4t1yrt.js";
39
39
  import {
40
+ currentTimeMillis,
40
41
  make10,
41
42
  runForEach,
42
43
  toPull,
43
44
  FileSystem,
44
45
  compiled2
45
- } from "./chunk-hyaq30ne.js";
46
+ } from "./chunk-bj0zchck.js";
46
47
  import {
47
- currentTimeMillis,
48
48
  ChildProcessSpawner,
49
- make2
50
- } from "./chunk-8r9k7pqk.js";
49
+ make3
50
+ } from "./chunk-2nq80r46.js";
51
51
 
52
52
  // packages/agent-runtime/src/opencode-store.ts
53
53
  import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
@@ -265,7 +265,7 @@ 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(make2(command, args, {
268
+ return yield* spawner.spawn(make3(command, args, {
269
269
  stdin: make10(new TextEncoder().encode(request)),
270
270
  stderr: "ignore",
271
271
  extendEnv: false,
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-72ht3484.js";
13
- import"./chunk-8r9k7pqk.js";
14
- import"./chunk-hyaq30ne.js";
15
- import"./chunk-n381rqax.js";
12
+ } from "./chunk-pppryg54.js";
13
+ import"./chunk-2nq80r46.js";
14
+ import"./chunk-bj0zchck.js";
15
+ import"./chunk-zb4t1yrt.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-8r9k7pqk.js";
2
+ import"./chunk-2nq80r46.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,9 +12,9 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-s8ws5fqj.js";
16
- import"./chunk-hyaq30ne.js";
17
- import"./chunk-n381rqax.js";
15
+ } from "./chunk-qsbq9gvr.js";
16
+ import"./chunk-bj0zchck.js";
17
+ import"./chunk-zb4t1yrt.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,