@kitman-sh/cli 0.12.0-rc.8 → 0.12.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 (27) hide show
  1. package/dist/{chunk-y7vjk8vv.js → chunk-0h49y8gf.js} +165 -31
  2. package/dist/{chunk-vrms6e1m.js → chunk-0wdm7br1.js} +4 -4
  3. package/dist/{chunk-scb6qgy2.js → chunk-4k5jfyqd.js} +23 -23
  4. package/dist/{chunk-d8qcmqh5.js → chunk-4x06mdcd.js} +4 -4
  5. package/dist/{chunk-8sz25ptv.js → chunk-5zhh41gb.js} +4 -4
  6. package/dist/{chunk-e711ebdj.js → chunk-5zth85pj.js} +2 -2
  7. package/dist/{chunk-3kxwb7qn.js → chunk-cb78rzqd.js} +7 -7
  8. package/dist/{chunk-vkchn89k.js → chunk-cbpb2rww.js} +7 -7
  9. package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
  10. package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
  11. package/dist/{chunk-dh09wyed.js → chunk-h3em3y8r.js} +23 -23
  12. package/dist/{chunk-6pqxsnk1.js → chunk-mjdt8wbv.js} +13 -13
  13. package/dist/{chunk-892qrkb3.js → chunk-mtkstrh3.js} +60 -14
  14. package/dist/{chunk-jg8n8z0z.js → chunk-pf13sv65.js} +4 -4
  15. package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
  16. package/dist/{chunk-3cgshf16.js → chunk-qj6gjtdd.js} +24 -24
  17. package/dist/{chunk-ey4mf341.js → chunk-s6z4aqag.js} +6 -6
  18. package/dist/{chunk-9c9vrbh4.js → chunk-shv2xs9y.js} +126 -117
  19. package/dist/{chunk-mmpcdj8f.js → chunk-vw462m91.js} +7 -7
  20. package/dist/{chunk-9q7qc1dg.js → chunk-wh2ep6fc.js} +1 -1
  21. package/dist/{chunk-jwc8bdga.js → chunk-wyhg9cyk.js} +5 -5
  22. package/dist/{chunk-det0tmx7.js → chunk-xaspqegt.js} +1 -1
  23. package/dist/{chunk-7959aeck.js → chunk-xsdceanv.js} +3 -3
  24. package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
  25. package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -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: {},
@@ -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,
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-x3cc7dfc.js";
121
+ } from "./chunk-zw3gf6r5.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,13 +170,13 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-9c9vrbh4.js";
173
+ } from "./chunk-shv2xs9y.js";
174
174
  import {
175
175
  guard,
176
176
  Id,
177
177
  Timestamp,
178
178
  ActorType
179
- } from "./chunk-s8m2tzdr.js";
179
+ } from "./chunk-q5w3v4k1.js";
180
180
  import {
181
181
  join,
182
182
  interrupt,
@@ -190,21 +190,21 @@ import {
190
190
  withDefault,
191
191
  option,
192
192
  String2
193
- } from "./chunk-y7vjk8vv.js";
193
+ } from "./chunk-0h49y8gf.js";
194
194
  import {
195
195
  searchDocs2,
196
196
  readDoc2
197
- } from "./chunk-det0tmx7.js";
197
+ } from "./chunk-xaspqegt.js";
198
198
  import {
199
199
  nextInt
200
- } from "./chunk-mm2m3bys.js";
200
+ } from "./chunk-gq7y5v3e.js";
201
201
  import {
202
202
  layerJson,
203
- make3,
203
+ make4,
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-jwc8bdga.js";
207
+ } from "./chunk-wyhg9cyk.js";
208
208
 
209
209
  // apps/cli/src/mcp.ts
210
210
  import { tmpdir as tmpdir2 } from "os";
@@ -1956,56 +1956,56 @@ var LivePresenceSubscriptionMessage = Union([
1956
1956
  LivePresenceSubscriptionUpdate
1957
1957
  ]);
1958
1958
 
1959
- class LiveRpcs extends make6(make5("Session", {
1959
+ class LiveRpcs extends make7(make6("Session", {
1960
1960
  success: Struct({ workspaceId: String4, clientKind: String4 }),
1961
1961
  error: LiveRpcError
1962
- }), make5("Subscribe", {
1962
+ }), make6("Subscribe", {
1963
1963
  payload: LiveSubscribeInput,
1964
1964
  success: LiveSubscriptionMessage,
1965
1965
  error: LiveRpcError,
1966
1966
  stream: true
1967
- }), make5("Replay", {
1967
+ }), make6("Replay", {
1968
1968
  payload: LiveReplayInput,
1969
1969
  success: ArraySchema(LiveEvent),
1970
1970
  error: LiveRpcError
1971
- }), make5("Ack", {
1971
+ }), make6("Ack", {
1972
1972
  payload: LiveAckInput,
1973
1973
  success: LiveAckResult,
1974
1974
  error: LiveRpcError
1975
- }), make5("SubscribeWeb", {
1975
+ }), make6("SubscribeWeb", {
1976
1976
  payload: LiveWebSubscribeInput,
1977
1977
  success: LiveWebSubscriptionMessage,
1978
1978
  error: LiveRpcError,
1979
1979
  stream: true
1980
- }), make5("SubscriptionStatus", {
1980
+ }), make6("SubscriptionStatus", {
1981
1981
  payload: { subscriptionId: String4 },
1982
1982
  success: LiveSubscriptionStatus,
1983
1983
  error: LiveRpcError
1984
- }), make5("ReplayWeb", {
1984
+ }), make6("ReplayWeb", {
1985
1985
  payload: LiveWebReplayInput,
1986
1986
  success: LiveWebReplayResult,
1987
1987
  error: LiveRpcError
1988
- }), make5("AckWeb", {
1988
+ }), make6("AckWeb", {
1989
1989
  payload: LiveWebAckInput,
1990
1990
  success: LiveWebAckResult,
1991
1991
  error: LiveRpcError
1992
- }), make5("PublishPresence", {
1992
+ }), make6("PublishPresence", {
1993
1993
  payload: LivePresencePublishInput,
1994
1994
  success: LivePresenceEntry,
1995
1995
  error: LiveRpcError
1996
- }), make5("SubscribePresence", {
1996
+ }), make6("SubscribePresence", {
1997
1997
  payload: LivePresenceSubscribeInput,
1998
1998
  success: LivePresenceSubscriptionMessage,
1999
1999
  error: LiveRpcError,
2000
2000
  stream: true
2001
- }), make5("ClearPresence", {
2001
+ }), make6("ClearPresence", {
2002
2002
  payload: { scope: optional(LiveScope) },
2003
2003
  error: LiveRpcError
2004
- }), make5("RecordSessionUpdate", {
2004
+ }), make6("RecordSessionUpdate", {
2005
2005
  payload: { sessionId: String4, input: SessionUpdateCreate },
2006
2006
  success: SessionUpdate,
2007
2007
  error: LiveRpcError
2008
- }), make5("EndSession", {
2008
+ }), make6("EndSession", {
2009
2009
  payload: { sessionId: String4, input: SessionEnd },
2010
2010
  success: Session,
2011
2011
  error: LiveRpcError
@@ -2057,7 +2057,7 @@ function connectKitmanLiveRoot(protocol) {
2057
2057
  })
2058
2058
  });
2059
2059
  const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
2060
- const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2060
+ const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2061
2061
  let abandon = () => {};
2062
2062
  const abandoned = new Promise((_resolve, reject) => {
2063
2063
  abandon = reject;
@@ -32,8 +32,8 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-x3cc7dfc.js";
36
- import"./chunk-s8m2tzdr.js";
35
+ } from "./chunk-zw3gf6r5.js";
36
+ import"./chunk-q5w3v4k1.js";
37
37
  import {
38
38
  SecureRandom,
39
39
  layerWebCrypto,
@@ -45,7 +45,7 @@ import {
45
45
  layer4,
46
46
  kitmanMcpServer,
47
47
  RunnerRpcProtocolVersion
48
- } from "./chunk-9c9vrbh4.js";
48
+ } from "./chunk-shv2xs9y.js";
49
49
  import {
50
50
  decodeText,
51
51
  mkString,
@@ -53,23 +53,23 @@ import {
53
53
  Path,
54
54
  withDefault,
55
55
  String2
56
- } from "./chunk-y7vjk8vv.js";
56
+ } from "./chunk-0h49y8gf.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-7959aeck.js";
61
- import {
62
- ChildProcessSpawner,
63
- make2
64
- } from "./chunk-892qrkb3.js";
65
- import"./chunk-3kxwb7qn.js";
60
+ } from "./chunk-xsdceanv.js";
61
+ import"./chunk-cb78rzqd.js";
66
62
  import {
67
63
  AgentDeclaration,
68
64
  KitDeclarations,
69
65
  describeFlag,
70
66
  Described
71
- } from "./chunk-jg8n8z0z.js";
72
- import"./chunk-jwc8bdga.js";
67
+ } from "./chunk-pf13sv65.js";
68
+ import {
69
+ ChildProcessSpawner,
70
+ make3
71
+ } from "./chunk-mtkstrh3.js";
72
+ import"./chunk-wyhg9cyk.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
108
108
  }));
109
109
  var run = (command, args, cwd) => gen(function* () {
110
110
  const spawner = yield* ChildProcessSpawner;
111
- const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
111
+ const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
112
112
  const [stdout, stderr, exitCode] = yield* all3([
113
113
  mkString(decodeText(handle.stdout)),
114
114
  mkString(decodeText(handle.stderr)),
@@ -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 };
@@ -75,10 +75,10 @@ import {
75
75
  toEquivalence,
76
76
  toCodecJson,
77
77
  Json
78
- } from "./chunk-x3cc7dfc.js";
78
+ } from "./chunk-zw3gf6r5.js";
79
79
  import {
80
80
  guard
81
- } from "./chunk-s8m2tzdr.js";
81
+ } from "./chunk-q5w3v4k1.js";
82
82
  import {
83
83
  currentTimeMillis,
84
84
  WebCrypto,
@@ -105,11 +105,11 @@ import {
105
105
  KitDigest,
106
106
  KitSetup,
107
107
  RunnerRpcError
108
- } from "./chunk-9c9vrbh4.js";
108
+ } from "./chunk-shv2xs9y.js";
109
109
  import {
110
110
  runForEach,
111
111
  FileSystem
112
- } from "./chunk-y7vjk8vv.js";
112
+ } from "./chunk-0h49y8gf.js";
113
113
 
114
114
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
115
115
  var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
@@ -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"];
@@ -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-shv2xs9y.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-0wdm7br1.js";
308
+ import"./chunk-xsdceanv.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-pf13sv65.js";
334
+ import"./chunk-cb78rzqd.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-wyhg9cyk.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-cb78rzqd.js";
8
+ import"./chunk-wyhg9cyk.js";
9
+ import"./chunk-shv2xs9y.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,