@kitman-sh/cli 0.12.0-rc.8 → 0.12.1

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 (27) hide show
  1. package/dist/{chunk-dh09wyed.js → chunk-0367j54r.js} +42 -42
  2. package/dist/{chunk-y7vjk8vv.js → chunk-0h49y8gf.js} +165 -31
  3. package/dist/{chunk-3kxwb7qn.js → chunk-13yrey2v.js} +7 -7
  4. package/dist/{chunk-7959aeck.js → chunk-1wbdexzg.js} +14 -6
  5. package/dist/{chunk-jg8n8z0z.js → chunk-4d4n8qjs.js} +4 -4
  6. package/dist/{chunk-8sz25ptv.js → chunk-5zhh41gb.js} +4 -4
  7. package/dist/{chunk-e711ebdj.js → chunk-5zth85pj.js} +2 -2
  8. package/dist/{chunk-6pqxsnk1.js → chunk-711r4pfw.js} +20 -20
  9. package/dist/{chunk-9q7qc1dg.js → chunk-adbzjs9g.js} +1 -1
  10. package/dist/{chunk-det0tmx7.js → chunk-beagq0pp.js} +27 -17
  11. package/dist/{chunk-9c9vrbh4.js → chunk-c7253rcg.js} +171 -132
  12. package/dist/{chunk-mmpcdj8f.js → chunk-c76ngzr6.js} +7 -7
  13. package/dist/{chunk-vkchn89k.js → chunk-cbpb2rww.js} +7 -7
  14. package/dist/{chunk-jwc8bdga.js → chunk-fs72937p.js} +5 -5
  15. package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
  16. package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
  17. package/dist/{chunk-3cgshf16.js → chunk-hvwkpnv5.js} +24 -24
  18. package/dist/{chunk-ey4mf341.js → chunk-kvt8cr8m.js} +6 -6
  19. package/dist/{chunk-892qrkb3.js → chunk-mtkstrh3.js} +60 -14
  20. package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
  21. package/dist/{chunk-vrms6e1m.js → chunk-rgby07sa.js} +4 -4
  22. package/dist/{chunk-scb6qgy2.js → chunk-xmdjysn2.js} +52 -24
  23. package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
  24. package/dist/{chunk-d8qcmqh5.js → chunk-y39h1gzp.js} +4 -4
  25. package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -13,27 +13,27 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-x3cc7dfc.js";
17
- import"./chunk-s8m2tzdr.js";
16
+ } from "./chunk-zw3gf6r5.js";
17
+ import"./chunk-q5w3v4k1.js";
18
18
  import {
19
19
  FileSystem,
20
20
  Path
21
- } from "./chunk-y7vjk8vv.js";
21
+ } from "./chunk-0h49y8gf.js";
22
22
  import {
23
23
  tomlTableHeader2,
24
24
  tomlKeyPath2,
25
25
  kitmanSkillEntry,
26
26
  isPathWithin2
27
- } from "./chunk-vrms6e1m.js";
27
+ } from "./chunk-rgby07sa.js";
28
28
  import {
29
29
  instructionsStart,
30
30
  instructionsEnd,
31
31
  renderMcpServer,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-9c9vrbh4.js";
35
- import"./chunk-892qrkb3.js";
36
- import"./chunk-7959aeck.js";
34
+ } from "./chunk-c7253rcg.js";
35
+ import"./chunk-1wbdexzg.js";
36
+ import"./chunk-mtkstrh3.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
39
39
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -25,16 +25,16 @@ import {
25
25
  isJsonObject,
26
26
  isString2,
27
27
  encodeUnknownJsonStringSync
28
- } from "./chunk-x3cc7dfc.js";
28
+ } from "./chunk-zw3gf6r5.js";
29
29
  import {
30
- make10,
30
+ make11,
31
31
  runForEach,
32
32
  compiled2
33
- } from "./chunk-y7vjk8vv.js";
33
+ } from "./chunk-0h49y8gf.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
- make2
37
- } from "./chunk-892qrkb3.js";
36
+ make3
37
+ } from "./chunk-mtkstrh3.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -167,8 +167,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
167
167
  var isolatedRead = (store, name, input) => gen(function* () {
168
168
  const spawner = yield* ChildProcessSpawner;
169
169
  const [command, ...args] = opencodeReaderCommand();
170
- const handle = yield* spawner.spawn(make2(command, args, {
171
- stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
170
+ const handle = yield* spawner.spawn(make3(command, args, {
171
+ stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
172
172
  stderr: "ignore",
173
173
  extendEnv: false,
174
174
  env: {},
@@ -96,7 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-x3cc7dfc.js";
99
+ } from "./chunk-zw3gf6r5.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-y7vjk8vv.js";
111
+ } from "./chunk-0h49y8gf.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-9c9vrbh4.js";
126
+ } from "./chunk-c7253rcg.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 make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
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, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
832
+ export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-x3cc7dfc.js";
6
+ } from "./chunk-zw3gf6r5.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-skqn4h13.js";
8
- import"./chunk-s8m2tzdr.js";
9
- import"./chunk-x3cc7dfc.js";
7
+ } from "./chunk-y1krmnbv.js";
8
+ import"./chunk-q5w3v4k1.js";
9
+ import"./chunk-zw3gf6r5.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -41,7 +41,7 @@ import {
41
41
  isFailure2,
42
42
  hasInterrupts,
43
43
  makeUnsafe5,
44
- make15,
44
+ make16,
45
45
  _await,
46
46
  fail5,
47
47
  isDoneUnsafe,
@@ -168,12 +168,12 @@ import {
168
168
  decodeJsonStringSync,
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
- } from "./chunk-x3cc7dfc.js";
171
+ } from "./chunk-zw3gf6r5.js";
172
172
  import {
173
173
  Id,
174
174
  secretReference,
175
175
  secretPlaceholder
176
- } from "./chunk-s8m2tzdr.js";
176
+ } from "./chunk-q5w3v4k1.js";
177
177
  import {
178
178
  currentTimeMillis,
179
179
  SecureRandom,
@@ -247,7 +247,7 @@ import {
247
247
  installCommand,
248
248
  checkServicesFile,
249
249
  checkServices
250
- } from "./chunk-9c9vrbh4.js";
250
+ } from "./chunk-c7253rcg.js";
251
251
  import {
252
252
  join,
253
253
  interrupt,
@@ -256,7 +256,7 @@ import {
256
256
  unbounded2,
257
257
  offer,
258
258
  makeUnsafe3,
259
- make10,
259
+ make11,
260
260
  fromQueue,
261
261
  fromPubSub,
262
262
  map2,
@@ -288,7 +288,7 @@ import {
288
288
  writeSrtSettings2,
289
289
  srtStepArgv2,
290
290
  srtArgv2
291
- } from "./chunk-y7vjk8vv.js";
291
+ } from "./chunk-0h49y8gf.js";
292
292
  import {
293
293
  writeAgentEnvironmentConfigFile2,
294
294
  readManifestSkillPaths2,
@@ -304,12 +304,8 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-vrms6e1m.js";
308
- import"./chunk-7959aeck.js";
309
- import {
310
- ChildProcessSpawner,
311
- make2
312
- } from "./chunk-892qrkb3.js";
307
+ } from "./chunk-rgby07sa.js";
308
+ import"./chunk-1wbdexzg.js";
313
309
  import {
314
310
  egressAllowed,
315
311
  writeSecretRegistry,
@@ -319,7 +315,7 @@ import {
319
315
  secretFilter2,
320
316
  opaqueTunnelRefusal2,
321
317
  isOpaqueConnectReason2
322
- } from "./chunk-skqn4h13.js";
318
+ } from "./chunk-y1krmnbv.js";
323
319
  import {
324
320
  sliceBytes2,
325
321
  maxLineBytes2,
@@ -327,19 +323,23 @@ import {
327
323
  decodedOption2,
328
324
  decoded2,
329
325
  readOpencode2
330
- } from "./chunk-vkchn89k.js";
326
+ } from "./chunk-cbpb2rww.js";
331
327
  import {
332
328
  uploadRunFile,
333
329
  programLease,
334
330
  rpcRunFiles,
335
331
  programHostsEnv,
336
332
  undeclaredHostsEnv
337
- } from "./chunk-jg8n8z0z.js";
338
- import"./chunk-3kxwb7qn.js";
333
+ } from "./chunk-4d4n8qjs.js";
334
+ import"./chunk-13yrey2v.js";
339
335
  import {
340
336
  nextInt
341
- } from "./chunk-mm2m3bys.js";
342
- import"./chunk-jwc8bdga.js";
337
+ } from "./chunk-gq7y5v3e.js";
338
+ import {
339
+ ChildProcessSpawner,
340
+ make3
341
+ } from "./chunk-mtkstrh3.js";
342
+ import"./chunk-fs72937p.js";
343
343
 
344
344
  // packages/core/src/sync-kit.ts
345
345
  import { createHash } from "crypto";
@@ -7038,7 +7038,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7038
7038
  const input = yield* unbounded2();
7039
7039
  const pending = new Map;
7040
7040
  let lastId = 0;
7041
- const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
7041
+ const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
7042
7042
  cwd: env.home,
7043
7043
  extendEnv: true,
7044
7044
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -7061,7 +7061,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7061
7061
  return {
7062
7062
  request: (method, params) => gen(function* () {
7063
7063
  const id = ++lastId;
7064
- const deferred = yield* make15();
7064
+ const deferred = yield* make16();
7065
7065
  pending.set(id, deferred);
7066
7066
  yield* send({ id, method, params });
7067
7067
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -7201,10 +7201,10 @@ var handshake = [
7201
7201
  `).join("");
7202
7202
  var kitmanMcpPreflight = (mcp) => gen(function* () {
7203
7203
  const spawner = yield* ChildProcessSpawner;
7204
- const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
7204
+ const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
7205
7205
  extendEnv: true,
7206
7206
  env: mcp.env,
7207
- stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
7207
+ stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
7208
7208
  stderr: "ignore"
7209
7209
  }));
7210
7210
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -7277,8 +7277,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7277
7277
  };
7278
7278
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7279
7279
  const spawner = yield* ChildProcessSpawner;
7280
- const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
7281
- stdin: make10(new TextEncoder().encode(stdin)),
7280
+ const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7281
+ stdin: make11(new TextEncoder().encode(stdin)),
7282
7282
  stdout: "inherit",
7283
7283
  stderr: "inherit",
7284
7284
  extendEnv: false,
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-3kxwb7qn.js";
8
- import"./chunk-jwc8bdga.js";
9
- import"./chunk-9c9vrbh4.js";
10
- import"./chunk-s8m2tzdr.js";
11
- import"./chunk-y7vjk8vv.js";
12
- import"./chunk-x3cc7dfc.js";
7
+ } from "./chunk-13yrey2v.js";
8
+ import"./chunk-fs72937p.js";
9
+ import"./chunk-c7253rcg.js";
10
+ import"./chunk-q5w3v4k1.js";
11
+ import"./chunk-0h49y8gf.js";
12
+ import"./chunk-zw3gf6r5.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -1,6 +1,13 @@
1
1
  // @bun
2
2
  import {
3
+ isString,
4
+ hasProperty,
5
+ symbol,
6
+ hash,
7
+ symbol2,
8
+ equals,
3
9
  BaseProto,
10
+ PipeInspectableProto,
4
11
  Prototype,
5
12
  some,
6
13
  Service2,
@@ -14,11 +21,8 @@ import {
14
21
  andThen2,
15
22
  map8,
16
23
  raceFirst,
17
- scoped,
18
- isRedacted,
19
- make16,
20
- value
21
- } from "./chunk-x3cc7dfc.js";
24
+ scoped
25
+ } from "./chunk-zw3gf6r5.js";
22
26
  import {
23
27
  unwrap,
24
28
  drainFork,
@@ -27,7 +31,49 @@ import {
27
31
  runCollect,
28
32
  runDrain,
29
33
  mkString
30
- } from "./chunk-y7vjk8vv.js";
34
+ } from "./chunk-0h49y8gf.js";
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;
31
77
 
32
78
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
33
79
  function nominal() {
@@ -55,7 +101,7 @@ var HandleProto = {
55
101
  var makeHandle = (params) => Object.setPrototypeOf({
56
102
  ...params
57
103
  }, HandleProto);
58
- var make = (spawn) => {
104
+ var make2 = (spawn) => {
59
105
  const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
60
106
  const streamLines = (command, options) => splitLines(streamString(command, options));
61
107
  return ChildProcessSpawner.of({
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
176
222
  if (word.length === 0)
177
223
  return;
178
224
  const value = word.map(unwrap2).join("");
179
- words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
225
+ words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
180
226
  word = [];
181
227
  plain = true;
182
228
  braceDepth = 0;
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
266
312
  };
267
313
 
268
314
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
269
- var TypeId = "~effect/process/ChildProcess";
270
- var Proto = {
315
+ var TypeId2 = "~effect/process/ChildProcess";
316
+ var Proto2 = {
271
317
  .../* @__PURE__ */ Prototype({
272
318
  label: "Command",
273
319
  evaluate(fiber) {
274
320
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
275
321
  }
276
322
  }),
277
- [TypeId]: TypeId
323
+ [TypeId2]: TypeId2
278
324
  };
279
- var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
325
+ var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
280
326
  _tag: "StandardCommand",
281
327
  command,
282
328
  args,
283
329
  options
284
330
  });
285
- var make2 = function make(...args) {
331
+ var make3 = function make(...args) {
286
332
  if (isTemplateString(args[0])) {
287
333
  const [templates, ...expressions] = args;
288
334
  const [command, cmdArgs] = parseTemplate2(templates, expressions);
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
340
386
  }
341
387
  return script;
342
388
  };
343
- export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
389
+ export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-x3cc7dfc.js";
21
+ } from "./chunk-zw3gf6r5.js";
22
22
 
23
23
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
24
  var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-x3cc7dfc.js";
28
+ } from "./chunk-zw3gf6r5.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-y7vjk8vv.js";
34
+ } from "./chunk-0h49y8gf.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-9c9vrbh4.js";
39
+ } from "./chunk-c7253rcg.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-7959aeck.js";
42
+ } from "./chunk-1wbdexzg.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {