@kitman-sh/cli 0.18.0 → 0.19.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-d3gs4jvd.js → chunk-0sbd6e4d.js} +64 -64
  2. package/dist/{chunk-my92qn4x.js → chunk-2dhhyy04.js} +8 -8
  3. package/dist/{chunk-mqsxwm53.js → chunk-2y646fhs.js} +18 -18
  4. package/dist/{chunk-wg6xkkcr.js → chunk-36dejya4.js} +1 -1
  5. package/dist/{chunk-hj8ex4x6.js → chunk-3gmqn9yp.js} +4 -4
  6. package/dist/{chunk-mg3mxhxe.js → chunk-4rq880g6.js} +6 -6
  7. package/dist/{chunk-vz38kngm.js → chunk-6387vj9z.js} +2 -2
  8. package/dist/{chunk-samxkpbz.js → chunk-6hxtg6eb.js} +3 -3
  9. package/dist/{chunk-js64y97w.js → chunk-9cj8g584.js} +4 -4
  10. package/dist/{chunk-9jffw2mk.js → chunk-am57a75e.js} +3 -3
  11. package/dist/{chunk-x8zzax0f.js → chunk-bevxc9rx.js} +10 -10
  12. package/dist/{chunk-zmqm4mrm.js → chunk-e863b7v1.js} +277 -117
  13. package/dist/{chunk-h2f26xbd.js → chunk-ew07nt2d.js} +61 -61
  14. package/dist/{chunk-mca2zp8p.js → chunk-gqcz0d3j.js} +1 -1
  15. package/dist/{chunk-tsx0347c.js → chunk-haq904fk.js} +1 -1
  16. package/dist/{chunk-nfnw3dh1.js → chunk-hrdh72c7.js} +9 -9
  17. package/dist/{chunk-1j38xtvp.js → chunk-khn17hdn.js} +2 -2
  18. package/dist/{chunk-bqhfbng3.js → chunk-kx00yd3c.js} +13 -13
  19. package/dist/{chunk-2bagaygt.js → chunk-qp3kqaw1.js} +6 -6
  20. package/dist/{chunk-4qjfn1sa.js → chunk-qvpkwnky.js} +1 -1
  21. package/dist/{chunk-n05bj55h.js → chunk-t5gb7bqv.js} +30 -30
  22. package/dist/{chunk-gap0vmj7.js → chunk-t6y0c0ds.js} +2 -2
  23. package/dist/{chunk-63cyj9dh.js → chunk-w9mxqrsp.js} +33 -185
  24. package/dist/{chunk-jaa8qjky.js → chunk-y4nrvwgy.js} +9 -9
  25. package/dist/{chunk-5kqt4bqp.js → chunk-y7bth30s.js} +1 -1
  26. package/dist/{chunk-4p1k3yyc.js → chunk-zb8mwx3s.js} +17 -17
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -43,7 +43,7 @@ import {
43
43
  isFailure2,
44
44
  hasInterrupts,
45
45
  makeUnsafe5,
46
- make16,
46
+ make15,
47
47
  _await,
48
48
  fail5,
49
49
  isDoneUnsafe,
@@ -172,55 +172,8 @@ import {
172
172
  decodeJsonStringSync,
173
173
  encodeUnknownJsonStringSync,
174
174
  storable
175
- } from "./chunk-h2f26xbd.js";
175
+ } from "./chunk-ew07nt2d.js";
176
176
  import {
177
- join,
178
- interrupt,
179
- unbounded,
180
- publishUnsafe,
181
- unbounded2,
182
- offer,
183
- makeUnsafe3,
184
- make11,
185
- fromQueue,
186
- fromPubSub,
187
- map2,
188
- filter,
189
- take2,
190
- mapAccum,
191
- decodeText,
192
- encodeText,
193
- splitLines,
194
- run,
195
- runCollect,
196
- runFold,
197
- runHead,
198
- runForEach,
199
- FileSystem,
200
- Path,
201
- embeddedFile,
202
- extractEmbeddedFile,
203
- optionalEnv,
204
- operatorConfigHome,
205
- tempDirectoryScoped,
206
- harnessesUnsupportedInSrt2,
207
- harnessesUnsupportedInDocker2,
208
- compiled2,
209
- pinnedSrtCommand2,
210
- pinnedSrtStepCommand2,
211
- runSrtCli2,
212
- kitmanCacheDirectory2,
213
- srtSettings2,
214
- srtCacheEnvironment2,
215
- srtInheritedEnv2,
216
- inheritedEnvironment2,
217
- withOnlyEnvironment2,
218
- writeSrtSettings2,
219
- srtStepArgv2,
220
- srtArgv2
221
- } from "./chunk-63cyj9dh.js";
222
- import {
223
- currentTimeMillis,
224
177
  SecureRandom,
225
178
  layerWebCrypto,
226
179
  layer,
@@ -307,7 +260,54 @@ import {
307
260
  checkServicesFile,
308
261
  checkServices,
309
262
  serviceChecks
310
- } from "./chunk-zmqm4mrm.js";
263
+ } from "./chunk-e863b7v1.js";
264
+ import {
265
+ currentTimeMillis,
266
+ join,
267
+ interrupt,
268
+ unbounded,
269
+ publishUnsafe,
270
+ unbounded2,
271
+ offer,
272
+ makeUnsafe3,
273
+ make10,
274
+ fromQueue,
275
+ fromPubSub,
276
+ map2,
277
+ filter,
278
+ take2,
279
+ mapAccum,
280
+ decodeText,
281
+ encodeText,
282
+ splitLines,
283
+ run,
284
+ runCollect,
285
+ runFold,
286
+ runHead,
287
+ runForEach,
288
+ FileSystem,
289
+ Path,
290
+ embeddedFile,
291
+ extractEmbeddedFile,
292
+ optionalEnv,
293
+ operatorConfigHome,
294
+ tempDirectoryScoped,
295
+ harnessesUnsupportedInSrt2,
296
+ harnessesUnsupportedInDocker2,
297
+ compiled2,
298
+ pinnedSrtCommand2,
299
+ pinnedSrtStepCommand2,
300
+ runSrtCli2,
301
+ kitmanCacheDirectory2,
302
+ srtSettings2,
303
+ srtCacheEnvironment2,
304
+ srtInheritedEnv2,
305
+ inheritedEnvironment2,
306
+ withOnlyEnvironment2,
307
+ writeSrtSettings2,
308
+ srtStepArgv2,
309
+ srtArgv2
310
+ } from "./chunk-w9mxqrsp.js";
311
311
  import {
312
312
  writeAgentEnvironmentConfigFile2,
313
313
  readManifestSkillPaths2,
@@ -323,8 +323,8 @@ import {
323
323
  applyAgentEnvironmentMaterialization2,
324
324
  isPathWithin2,
325
325
  skillIdentity2
326
- } from "./chunk-jaa8qjky.js";
327
- import"./chunk-9jffw2mk.js";
326
+ } from "./chunk-y4nrvwgy.js";
327
+ import"./chunk-am57a75e.js";
328
328
  import {
329
329
  egressAllowed,
330
330
  writeSecretRegistry,
@@ -334,7 +334,7 @@ import {
334
334
  secretFilter2,
335
335
  opaqueTunnelRefusal2,
336
336
  isOpaqueConnectReason2
337
- } from "./chunk-vz38kngm.js";
337
+ } from "./chunk-6387vj9z.js";
338
338
  import {
339
339
  sliceBytes2,
340
340
  maxLineBytes2,
@@ -342,29 +342,29 @@ import {
342
342
  decodedOption2,
343
343
  decoded2,
344
344
  readOpencode2
345
- } from "./chunk-my92qn4x.js";
345
+ } from "./chunk-2dhhyy04.js";
346
346
  import {
347
347
  uploadRunFile,
348
348
  programLease,
349
349
  rpcRunFiles,
350
350
  programHostsEnv,
351
351
  undeclaredHostsEnv
352
- } from "./chunk-bqhfbng3.js";
353
- import"./chunk-mg3mxhxe.js";
352
+ } from "./chunk-kx00yd3c.js";
353
+ import"./chunk-4rq880g6.js";
354
354
  import {
355
355
  nextInt
356
- } from "./chunk-5kqt4bqp.js";
357
- import"./chunk-tsx0347c.js";
356
+ } from "./chunk-y7bth30s.js";
357
+ import"./chunk-haq904fk.js";
358
358
  import {
359
359
  ChildProcessSpawner,
360
360
  make3
361
- } from "./chunk-gap0vmj7.js";
362
- import"./chunk-mqsxwm53.js";
361
+ } from "./chunk-t6y0c0ds.js";
362
+ import"./chunk-2y646fhs.js";
363
363
  import {
364
364
  Id,
365
365
  secretReference,
366
366
  secretPlaceholder
367
- } from "./chunk-4qjfn1sa.js";
367
+ } from "./chunk-qvpkwnky.js";
368
368
 
369
369
  // packages/core/src/sync-kit.ts
370
370
  import { createHash } from "crypto";
@@ -8027,7 +8027,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
8027
8027
  return {
8028
8028
  request: (method, params) => gen(function* () {
8029
8029
  const id = ++lastId;
8030
- const deferred = yield* make16();
8030
+ const deferred = yield* make15();
8031
8031
  pending.set(id, deferred);
8032
8032
  yield* send({ id, method, params });
8033
8033
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -8170,7 +8170,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
8170
8170
  const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
8171
8171
  extendEnv: true,
8172
8172
  env: mcp.env,
8173
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
8173
+ stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
8174
8174
  stderr: "ignore"
8175
8175
  }));
8176
8176
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -8244,7 +8244,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
8244
8244
  const exitCode = sandbox === undefined ? yield* gen(function* () {
8245
8245
  const spawner = yield* ChildProcessSpawner;
8246
8246
  const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
8247
- stdin: make11(new TextEncoder().encode(stdin)),
8247
+ stdin: make10(new TextEncoder().encode(stdin)),
8248
8248
  stdout: "inherit",
8249
8249
  stderr: "inherit",
8250
8250
  extendEnv: false,
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- make11,
4
- runForEach,
5
- compiled2
6
- } from "./chunk-63cyj9dh.js";
7
2
  import {
8
3
  getOrUndefined,
9
4
  liftThrowable,
@@ -30,11 +25,16 @@ import {
30
25
  isJsonObject,
31
26
  isString2,
32
27
  encodeUnknownJsonStringSync
33
- } from "./chunk-h2f26xbd.js";
28
+ } from "./chunk-ew07nt2d.js";
29
+ import {
30
+ make10,
31
+ runForEach,
32
+ compiled2
33
+ } from "./chunk-w9mxqrsp.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-gap0vmj7.js";
37
+ } from "./chunk-t6y0c0ds.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -173,7 +173,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
173
173
  const spawner = yield* ChildProcessSpawner;
174
174
  const [command, ...args] = opencodeReaderCommand();
175
175
  const handle = yield* spawner.spawn(make3(command, args, {
176
- stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
176
+ stdin: make10(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
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get4,
15
+ get3,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,21 +96,8 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-h2f26xbd.js";
99
+ } from "./chunk-ew07nt2d.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-63cyj9dh.js";
112
- import {
113
- Clock,
114
101
  empty,
115
102
  fromInput,
116
103
  merge,
@@ -123,7 +110,20 @@ import {
123
110
  ParseOptions,
124
111
  RpcClientDefect,
125
112
  RpcClientError
126
- } from "./chunk-zmqm4mrm.js";
113
+ } from "./chunk-e863b7v1.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-w9mxqrsp.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 = get4(services, Scope);
240
+ const scope = get3(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get4(rpc.annotations, ParseOptions);
646
+ const parseOptions = get3(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-mca2zp8p.js";
7
+ } from "./chunk-gqcz0d3j.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-gap0vmj7.js";
2
+ import"./chunk-t6y0c0ds.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-zmqm4mrm.js";
16
- import"./chunk-63cyj9dh.js";
17
- import"./chunk-h2f26xbd.js";
15
+ } from "./chunk-e863b7v1.js";
16
+ import"./chunk-w9mxqrsp.js";
17
+ import"./chunk-ew07nt2d.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -6,10 +6,7 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-h2f26xbd.js";
10
- import {
11
- runForEach
12
- } from "./chunk-63cyj9dh.js";
9
+ } from "./chunk-ew07nt2d.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-zmqm4mrm.js";
19
+ } from "./chunk-e863b7v1.js";
20
+ import {
21
+ runForEach
22
+ } from "./chunk-w9mxqrsp.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-mqsxwm53.js";
28
+ } from "./chunk-2y646fhs.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-h2f26xbd.js";
16
+ } from "./chunk-ew07nt2d.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-4qjfn1sa.js";
20
+ } from "./chunk-qvpkwnky.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-vz38kngm.js";
8
- import"./chunk-4qjfn1sa.js";
9
- import"./chunk-h2f26xbd.js";
7
+ } from "./chunk-6387vj9z.js";
8
+ import"./chunk-qvpkwnky.js";
9
+ import"./chunk-ew07nt2d.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-my92qn4x.js";
11
- import"./chunk-gap0vmj7.js";
12
- import"./chunk-63cyj9dh.js";
13
- import"./chunk-h2f26xbd.js";
10
+ } from "./chunk-2dhhyy04.js";
11
+ import"./chunk-t6y0c0ds.js";
12
+ import"./chunk-w9mxqrsp.js";
13
+ import"./chunk-ew07nt2d.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-h2f26xbd.js";
27
+ } from "./chunk-ew07nt2d.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-63cyj9dh.js";
31
+ } from "./chunk-w9mxqrsp.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-zmqm4mrm.js";
42
+ } from "./chunk-e863b7v1.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -1,8 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path
5
- } from "./chunk-63cyj9dh.js";
6
2
  import {
7
3
  isObject,
8
4
  isUint8Array,
@@ -17,13 +13,17 @@ import {
17
13
  isJsonObject,
18
14
  decodeJsonString,
19
15
  encodePrettyJsonString
20
- } from "./chunk-h2f26xbd.js";
16
+ } from "./chunk-ew07nt2d.js";
17
+ import {
18
+ FileSystem,
19
+ Path
20
+ } from "./chunk-w9mxqrsp.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-jaa8qjky.js";
26
+ } from "./chunk-y4nrvwgy.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-zmqm4mrm.js";
35
- import"./chunk-9jffw2mk.js";
36
- import"./chunk-gap0vmj7.js";
37
- import"./chunk-4qjfn1sa.js";
34
+ } from "./chunk-e863b7v1.js";
35
+ import"./chunk-am57a75e.js";
36
+ import"./chunk-t6y0c0ds.js";
37
+ import"./chunk-qvpkwnky.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {