@kitman-sh/cli 0.12.4 → 0.12.6

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-v1pa2dpe.js → chunk-23245qh7.js} +5 -5
  2. package/dist/{chunk-j373bdw1.js → chunk-7ncc3m3n.js} +7 -7
  3. package/dist/{chunk-rs0qassb.js → chunk-7tnm4jef.js} +3 -3
  4. package/dist/{chunk-nfc1scfz.js → chunk-892qrkb3.js} +14 -60
  5. package/dist/{chunk-7tf77mw4.js → chunk-8djn7v2p.js} +23 -23
  6. package/dist/{chunk-zbcxbph8.js → chunk-8sz25ptv.js} +4 -4
  7. package/dist/{chunk-gy9rf14f.js → chunk-bz4bp0q7.js} +3 -3
  8. package/dist/{chunk-j8j7ryjm.js → chunk-dcnn882c.js} +20 -20
  9. package/dist/{chunk-ywgv15tb.js → chunk-e711ebdj.js} +2 -2
  10. package/dist/{chunk-r3yamwdd.js → chunk-fen5480a.js} +10 -10
  11. package/dist/{chunk-vbv9x6d7.js → chunk-gezjwdpw.js} +117 -118
  12. package/dist/{chunk-6b91ftp6.js → chunk-gtsq369x.js} +7 -7
  13. package/dist/{chunk-9rvj15vf.js → chunk-jk5fp5cy.js} +28 -28
  14. package/dist/{chunk-gbakhy7m.js → chunk-k3ak93p1.js} +1 -1
  15. package/dist/{chunk-gq7y5v3e.js → chunk-mm2m3bys.js} +1 -1
  16. package/dist/{chunk-9ydwnxh9.js → chunk-n17dr5c1.js} +4 -4
  17. package/dist/{chunk-9hqbmnkh.js → chunk-rvpfyjtv.js} +1 -1
  18. package/dist/{chunk-q5w3v4k1.js → chunk-s8m2tzdr.js} +1 -1
  19. package/dist/{chunk-y1krmnbv.js → chunk-skqn4h13.js} +2 -2
  20. package/dist/{chunk-r4a6f4pa.js → chunk-v4wn0tz8.js} +6 -6
  21. package/dist/{chunk-bvpczkzf.js → chunk-vkchn89k.js} +10 -10
  22. package/dist/{chunk-74zwne6t.js → chunk-wberffvr.js} +63 -63
  23. package/dist/{chunk-zw3gf6r5.js → chunk-x3cc7dfc.js} +226 -40
  24. package/dist/{chunk-y1mhc7qd.js → chunk-x5t0c4g4.js} +9 -9
  25. package/dist/{chunk-trqvcc06.js → chunk-y7vjk8vv.js} +31 -174
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -6,10 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-zw3gf6r5.js";
9
+ } from "./chunk-x3cc7dfc.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-trqvcc06.js";
12
+ } from "./chunk-y7vjk8vv.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-vbv9x6d7.js";
22
+ } from "./chunk-gezjwdpw.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-v1pa2dpe.js";
28
+ } from "./chunk-23245qh7.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* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make3(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* make4(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-zw3gf6r5.js";
121
+ } from "./chunk-x3cc7dfc.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,
161
162
  make6,
162
- make7,
163
163
  Service,
164
164
  shouldRefresh,
165
165
  refreshSession,
@@ -170,7 +170,13 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-vbv9x6d7.js";
173
+ } from "./chunk-gezjwdpw.js";
174
+ import {
175
+ guard,
176
+ Id,
177
+ Timestamp,
178
+ ActorType
179
+ } from "./chunk-s8m2tzdr.js";
174
180
  import {
175
181
  join,
176
182
  interrupt,
@@ -184,27 +190,21 @@ import {
184
190
  withDefault,
185
191
  option,
186
192
  String2
187
- } from "./chunk-trqvcc06.js";
188
- import {
189
- guard,
190
- Id,
191
- Timestamp,
192
- ActorType
193
- } from "./chunk-q5w3v4k1.js";
193
+ } from "./chunk-y7vjk8vv.js";
194
194
  import {
195
195
  searchDocs2,
196
196
  readDoc2
197
- } from "./chunk-9hqbmnkh.js";
197
+ } from "./chunk-rvpfyjtv.js";
198
198
  import {
199
199
  nextInt
200
- } from "./chunk-gq7y5v3e.js";
200
+ } from "./chunk-mm2m3bys.js";
201
201
  import {
202
202
  layerJson,
203
- make4,
203
+ make3,
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-v1pa2dpe.js";
207
+ } from "./chunk-23245qh7.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 make7(make6("Session", {
1959
+ class LiveRpcs extends make6(make5("Session", {
1960
1960
  success: Struct({ workspaceId: String4, clientKind: String4 }),
1961
1961
  error: LiveRpcError
1962
- }), make6("Subscribe", {
1962
+ }), make5("Subscribe", {
1963
1963
  payload: LiveSubscribeInput,
1964
1964
  success: LiveSubscriptionMessage,
1965
1965
  error: LiveRpcError,
1966
1966
  stream: true
1967
- }), make6("Replay", {
1967
+ }), make5("Replay", {
1968
1968
  payload: LiveReplayInput,
1969
1969
  success: ArraySchema(LiveEvent),
1970
1970
  error: LiveRpcError
1971
- }), make6("Ack", {
1971
+ }), make5("Ack", {
1972
1972
  payload: LiveAckInput,
1973
1973
  success: LiveAckResult,
1974
1974
  error: LiveRpcError
1975
- }), make6("SubscribeWeb", {
1975
+ }), make5("SubscribeWeb", {
1976
1976
  payload: LiveWebSubscribeInput,
1977
1977
  success: LiveWebSubscriptionMessage,
1978
1978
  error: LiveRpcError,
1979
1979
  stream: true
1980
- }), make6("SubscriptionStatus", {
1980
+ }), make5("SubscriptionStatus", {
1981
1981
  payload: { subscriptionId: String4 },
1982
1982
  success: LiveSubscriptionStatus,
1983
1983
  error: LiveRpcError
1984
- }), make6("ReplayWeb", {
1984
+ }), make5("ReplayWeb", {
1985
1985
  payload: LiveWebReplayInput,
1986
1986
  success: LiveWebReplayResult,
1987
1987
  error: LiveRpcError
1988
- }), make6("AckWeb", {
1988
+ }), make5("AckWeb", {
1989
1989
  payload: LiveWebAckInput,
1990
1990
  success: LiveWebAckResult,
1991
1991
  error: LiveRpcError
1992
- }), make6("PublishPresence", {
1992
+ }), make5("PublishPresence", {
1993
1993
  payload: LivePresencePublishInput,
1994
1994
  success: LivePresenceEntry,
1995
1995
  error: LiveRpcError
1996
- }), make6("SubscribePresence", {
1996
+ }), make5("SubscribePresence", {
1997
1997
  payload: LivePresenceSubscribeInput,
1998
1998
  success: LivePresenceSubscriptionMessage,
1999
1999
  error: LiveRpcError,
2000
2000
  stream: true
2001
- }), make6("ClearPresence", {
2001
+ }), make5("ClearPresence", {
2002
2002
  payload: { scope: optional(LiveScope) },
2003
2003
  error: LiveRpcError
2004
- }), make6("RecordSessionUpdate", {
2004
+ }), make5("RecordSessionUpdate", {
2005
2005
  payload: { sessionId: String4, input: SessionUpdateCreate },
2006
2006
  success: SessionUpdate,
2007
2007
  error: LiveRpcError
2008
- }), make6("EndSession", {
2008
+ }), make5("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) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2060
+ const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2061
2061
  let abandon = () => {};
2062
2062
  const abandoned = new Promise((_resolve, reject) => {
2063
2063
  abandon = reject;
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-9hqbmnkh.js";
7
+ } from "./chunk-rvpfyjtv.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zw3gf6r5.js";
6
+ } from "./chunk-x3cc7dfc.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-nfc1scfz.js";
2
+ import"./chunk-892qrkb3.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-vbv9x6d7.js";
16
- import"./chunk-trqvcc06.js";
17
- import"./chunk-zw3gf6r5.js";
15
+ } from "./chunk-gezjwdpw.js";
16
+ import"./chunk-y7vjk8vv.js";
17
+ import"./chunk-x3cc7dfc.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -1481,7 +1481,7 @@ var pathOfLink = (link) => {
1481
1481
  return page === null ? link : page[1] || "index";
1482
1482
  };
1483
1483
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
1484
- var pinnedLink2 = (link, version = "0.12.4") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1484
+ var pinnedLink2 = (link, version = "0.12.6") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
1485
1485
  var pageOf = (path) => path.split("#")[0];
1486
1486
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
1487
1487
  function excerpt(text, queryTerms) {
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-zw3gf6r5.js";
21
+ } from "./chunk-x3cc7dfc.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"];
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-zw3gf6r5.js";
16
+ } from "./chunk-x3cc7dfc.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-q5w3v4k1.js";
20
+ } from "./chunk-s8m2tzdr.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-6b91ftp6.js";
8
- import"./chunk-v1pa2dpe.js";
9
- import"./chunk-vbv9x6d7.js";
10
- import"./chunk-q5w3v4k1.js";
11
- import"./chunk-trqvcc06.js";
12
- import"./chunk-zw3gf6r5.js";
7
+ } from "./chunk-gtsq369x.js";
8
+ import"./chunk-23245qh7.js";
9
+ import"./chunk-gezjwdpw.js";
10
+ import"./chunk-s8m2tzdr.js";
11
+ import"./chunk-y7vjk8vv.js";
12
+ import"./chunk-x3cc7dfc.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- make11,
4
- runForEach,
5
- compiled2
6
- } from "./chunk-trqvcc06.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-zw3gf6r5.js";
28
+ } from "./chunk-x3cc7dfc.js";
29
+ import {
30
+ make10,
31
+ runForEach,
32
+ compiled2
33
+ } from "./chunk-y7vjk8vv.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
- make3
37
- } from "./chunk-nfc1scfz.js";
36
+ make2
37
+ } from "./chunk-892qrkb3.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(make3(command, args, {
171
- stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
170
+ const handle = yield* spawner.spawn(make2(command, args, {
171
+ stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
172
172
  stderr: "ignore",
173
173
  extendEnv: false,
174
174
  env: {},
@@ -41,7 +41,7 @@ import {
41
41
  isFailure2,
42
42
  hasInterrupts,
43
43
  makeUnsafe5,
44
- make16,
44
+ make15,
45
45
  _await,
46
46
  fail5,
47
47
  isDoneUnsafe,
@@ -168,53 +168,12 @@ import {
168
168
  decodeJsonStringSync,
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
- } from "./chunk-zw3gf6r5.js";
172
- import {
173
- join,
174
- interrupt,
175
- unbounded,
176
- publishUnsafe,
177
- unbounded2,
178
- offer,
179
- makeUnsafe3,
180
- make11,
181
- fromQueue,
182
- fromPubSub,
183
- map2,
184
- filter,
185
- decodeText,
186
- encodeText,
187
- splitLines,
188
- run,
189
- runHead,
190
- runForEach,
191
- FileSystem,
192
- Path,
193
- embeddedFile,
194
- extractEmbeddedFile,
195
- optionalEnv,
196
- operatorConfigHome,
197
- tempDirectoryScoped,
198
- harnessesUnsupportedInSrt2,
199
- compiled2,
200
- pinnedSrtCommand2,
201
- pinnedSrtStepCommand2,
202
- runSrtCli2,
203
- kitmanCacheDirectory2,
204
- srtSettings2,
205
- srtCacheEnvironment2,
206
- srtInheritedEnv2,
207
- inheritedEnvironment2,
208
- withOnlyEnvironment2,
209
- writeSrtSettings2,
210
- srtStepArgv2,
211
- srtArgv2
212
- } from "./chunk-trqvcc06.js";
171
+ } from "./chunk-x3cc7dfc.js";
213
172
  import {
214
173
  Id,
215
174
  secretReference,
216
175
  secretPlaceholder
217
- } from "./chunk-q5w3v4k1.js";
176
+ } from "./chunk-s8m2tzdr.js";
218
177
  import {
219
178
  currentTimeMillis,
220
179
  SecureRandom,
@@ -288,7 +247,48 @@ import {
288
247
  installCommand,
289
248
  checkServicesFile,
290
249
  checkServices
291
- } from "./chunk-vbv9x6d7.js";
250
+ } from "./chunk-gezjwdpw.js";
251
+ import {
252
+ join,
253
+ interrupt,
254
+ unbounded,
255
+ publishUnsafe,
256
+ unbounded2,
257
+ offer,
258
+ makeUnsafe3,
259
+ make10,
260
+ fromQueue,
261
+ fromPubSub,
262
+ map2,
263
+ filter,
264
+ decodeText,
265
+ encodeText,
266
+ splitLines,
267
+ run,
268
+ runHead,
269
+ runForEach,
270
+ FileSystem,
271
+ Path,
272
+ embeddedFile,
273
+ extractEmbeddedFile,
274
+ optionalEnv,
275
+ operatorConfigHome,
276
+ tempDirectoryScoped,
277
+ harnessesUnsupportedInSrt2,
278
+ compiled2,
279
+ pinnedSrtCommand2,
280
+ pinnedSrtStepCommand2,
281
+ runSrtCli2,
282
+ kitmanCacheDirectory2,
283
+ srtSettings2,
284
+ srtCacheEnvironment2,
285
+ srtInheritedEnv2,
286
+ inheritedEnvironment2,
287
+ withOnlyEnvironment2,
288
+ writeSrtSettings2,
289
+ srtStepArgv2,
290
+ srtArgv2
291
+ } from "./chunk-y7vjk8vv.js";
292
292
  import {
293
293
  writeAgentEnvironmentConfigFile2,
294
294
  readManifestSkillPaths2,
@@ -304,8 +304,12 @@ import {
304
304
  applyAgentEnvironmentMaterialization2,
305
305
  isPathWithin2,
306
306
  skillIdentity2
307
- } from "./chunk-y1mhc7qd.js";
308
- import"./chunk-rs0qassb.js";
307
+ } from "./chunk-x5t0c4g4.js";
308
+ import"./chunk-7tnm4jef.js";
309
+ import {
310
+ ChildProcessSpawner,
311
+ make2
312
+ } from "./chunk-892qrkb3.js";
309
313
  import {
310
314
  egressAllowed,
311
315
  writeSecretRegistry,
@@ -315,7 +319,7 @@ import {
315
319
  secretFilter2,
316
320
  opaqueTunnelRefusal2,
317
321
  isOpaqueConnectReason2
318
- } from "./chunk-y1krmnbv.js";
322
+ } from "./chunk-skqn4h13.js";
319
323
  import {
320
324
  sliceBytes2,
321
325
  maxLineBytes2,
@@ -323,23 +327,19 @@ import {
323
327
  decodedOption2,
324
328
  decoded2,
325
329
  readOpencode2
326
- } from "./chunk-bvpczkzf.js";
330
+ } from "./chunk-vkchn89k.js";
327
331
  import {
328
332
  uploadRunFile,
329
333
  programLease,
330
334
  rpcRunFiles,
331
335
  programHostsEnv,
332
336
  undeclaredHostsEnv
333
- } from "./chunk-j373bdw1.js";
334
- import"./chunk-6b91ftp6.js";
337
+ } from "./chunk-7ncc3m3n.js";
338
+ import"./chunk-gtsq369x.js";
335
339
  import {
336
340
  nextInt
337
- } from "./chunk-gq7y5v3e.js";
338
- import {
339
- ChildProcessSpawner,
340
- make3
341
- } from "./chunk-nfc1scfz.js";
342
- import"./chunk-v1pa2dpe.js";
341
+ } from "./chunk-mm2m3bys.js";
342
+ import"./chunk-23245qh7.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(make3(binary, ["app-server"], {
7041
+ const handle = yield* spawner.spawn(make2(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* make16();
7064
+ const deferred = yield* make15();
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(make3(mcp.command, [...mcp.args], {
7204
+ const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
7205
7205
  extendEnv: true,
7206
7206
  env: mcp.env,
7207
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
7207
+ stdin: { stream: make10(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(make3(input.bun ?? process.execPath, [file], {
7281
- stdin: make11(new TextEncoder().encode(stdin)),
7280
+ const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
7281
+ stdin: make10(new TextEncoder().encode(stdin)),
7282
7282
  stdout: "inherit",
7283
7283
  stderr: "inherit",
7284
7284
  extendEnv: false,