@kitman-sh/cli 0.52.0 → 0.53.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-qsbq9gvr.js → chunk-1zvfqdby.js} +193 -350
  2. package/dist/{chunk-eqh0h088.js → chunk-38prvh9d.js} +28 -25
  3. package/dist/{chunk-a40yta1r.js → chunk-5bpp6k0h.js} +3 -3
  4. package/dist/{chunk-wxg9k10v.js → chunk-5tgpa02q.js} +1 -1
  5. package/dist/{chunk-pppryg54.js → chunk-72ht3484.js} +6 -6
  6. package/dist/{chunk-wb04fv2s.js → chunk-7enqpa5x.js} +34 -34
  7. package/dist/{chunk-9hde8p6b.js → chunk-7y50jhm7.js} +6 -6
  8. package/dist/{chunk-2nq80r46.js → chunk-8r9k7pqk.js} +19 -59
  9. package/dist/{chunk-2t1hcdeq.js → chunk-ab7r6p1s.js} +21 -19
  10. package/dist/{chunk-q2z8rct0.js → chunk-ag79vvjy.js} +4 -4
  11. package/dist/{chunk-5yygjn0k.js → chunk-apv9h5tz.js} +1 -1
  12. package/dist/{chunk-mmt6xq48.js → chunk-brbym443.js} +2 -2
  13. package/dist/{chunk-trtgab3h.js → chunk-c6yxzkz2.js} +11 -19
  14. package/dist/{chunk-h5ydhdhx.js → chunk-c9vcvseh.js} +23 -23
  15. package/dist/{chunk-my9db578.js → chunk-cy13pst5.js} +4 -4
  16. package/dist/{chunk-chbdcf34.js → chunk-e627b064.js} +15 -9
  17. package/dist/{chunk-bj0zchck.js → chunk-hyaq30ne.js} +188 -179
  18. package/dist/{chunk-84qb67e2.js → chunk-jh5vjc8h.js} +1 -1
  19. package/dist/{chunk-xbqd3kqc.js → chunk-jwr750jd.js} +21 -21
  20. package/dist/{chunk-tqspx38s.js → chunk-k1fdsn2c.js} +1 -1
  21. package/dist/{chunk-tfznw549.js → chunk-n00cpb86.js} +2 -2
  22. package/dist/{chunk-zb4t1yrt.js → chunk-n381rqax.js} +257 -71
  23. package/dist/{chunk-bhz25x76.js → chunk-qfwhsqej.js} +3 -3
  24. package/dist/{chunk-kt26vpwf.js → chunk-stx87en6.js} +9 -9
  25. package/dist/{chunk-axfp5tzk.js → chunk-vdaq7292.js} +7 -7
  26. package/dist/{chunk-qjfzcrv5.js → chunk-y52g539d.js} +4 -4
  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-zb4t1yrt.js";
121
+ } from "./chunk-n381rqax.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,
161
162
  make6,
162
- make7,
163
163
  Service,
164
164
  shouldRefresh,
165
165
  refreshSession,
@@ -170,9 +170,8 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-qsbq9gvr.js";
173
+ } from "./chunk-1zvfqdby.js";
174
174
  import {
175
- currentTimeMillis,
176
175
  join,
177
176
  interrupt,
178
177
  empty3,
@@ -188,30 +187,33 @@ import {
188
187
  withDefault,
189
188
  option,
190
189
  String2
191
- } from "./chunk-bj0zchck.js";
190
+ } from "./chunk-hyaq30ne.js";
192
191
  import {
193
192
  searchDocs2,
194
193
  readDoc2
195
- } from "./chunk-trtgab3h.js";
194
+ } from "./chunk-c6yxzkz2.js";
196
195
  import {
197
196
  nextInt
198
- } from "./chunk-5yygjn0k.js";
197
+ } from "./chunk-apv9h5tz.js";
199
198
  import {
200
199
  recommendationProblem
201
- } from "./chunk-tqspx38s.js";
200
+ } from "./chunk-k1fdsn2c.js";
201
+ import {
202
+ currentTimeMillis
203
+ } from "./chunk-8r9k7pqk.js";
202
204
  import {
203
205
  layerJson,
204
- make4,
206
+ make3,
205
207
  withHeaders,
206
208
  layerProtocolSocket,
207
209
  ConnectionHooks
208
- } from "./chunk-2t1hcdeq.js";
210
+ } from "./chunk-ab7r6p1s.js";
209
211
  import {
210
212
  guard,
211
213
  Id,
212
214
  Timestamp,
213
215
  ActorType
214
- } from "./chunk-wxg9k10v.js";
216
+ } from "./chunk-5tgpa02q.js";
215
217
 
216
218
  // apps/cli/src/mcp.ts
217
219
  import { tmpdir as tmpdir2 } from "os";
@@ -1948,56 +1950,56 @@ var LivePresenceSubscriptionMessage = Union([
1948
1950
  LivePresenceSubscriptionUpdate
1949
1951
  ]);
1950
1952
 
1951
- class LiveRpcs extends make7(make6("Session", {
1953
+ class LiveRpcs extends make6(make5("Session", {
1952
1954
  success: Struct({ workspaceId: String4, clientKind: String4 }),
1953
1955
  error: LiveRpcError
1954
- }), make6("Subscribe", {
1956
+ }), make5("Subscribe", {
1955
1957
  payload: LiveSubscribeInput,
1956
1958
  success: LiveSubscriptionMessage,
1957
1959
  error: LiveRpcError,
1958
1960
  stream: true
1959
- }), make6("Replay", {
1961
+ }), make5("Replay", {
1960
1962
  payload: LiveReplayInput,
1961
1963
  success: ArraySchema(LiveEvent),
1962
1964
  error: LiveRpcError
1963
- }), make6("Ack", {
1965
+ }), make5("Ack", {
1964
1966
  payload: LiveAckInput,
1965
1967
  success: LiveAckResult,
1966
1968
  error: LiveRpcError
1967
- }), make6("SubscribeWeb", {
1969
+ }), make5("SubscribeWeb", {
1968
1970
  payload: LiveWebSubscribeInput,
1969
1971
  success: LiveWebSubscriptionMessage,
1970
1972
  error: LiveRpcError,
1971
1973
  stream: true
1972
- }), make6("SubscriptionStatus", {
1974
+ }), make5("SubscriptionStatus", {
1973
1975
  payload: { subscriptionId: String4 },
1974
1976
  success: LiveSubscriptionStatus,
1975
1977
  error: LiveRpcError
1976
- }), make6("ReplayWeb", {
1978
+ }), make5("ReplayWeb", {
1977
1979
  payload: LiveWebReplayInput,
1978
1980
  success: LiveWebReplayResult,
1979
1981
  error: LiveRpcError
1980
- }), make6("AckWeb", {
1982
+ }), make5("AckWeb", {
1981
1983
  payload: LiveWebAckInput,
1982
1984
  success: LiveWebAckResult,
1983
1985
  error: LiveRpcError
1984
- }), make6("PublishPresence", {
1986
+ }), make5("PublishPresence", {
1985
1987
  payload: LivePresencePublishInput,
1986
1988
  success: LivePresenceEntry,
1987
1989
  error: LiveRpcError
1988
- }), make6("SubscribePresence", {
1990
+ }), make5("SubscribePresence", {
1989
1991
  payload: LivePresenceSubscribeInput,
1990
1992
  success: LivePresenceSubscriptionMessage,
1991
1993
  error: LiveRpcError,
1992
1994
  stream: true
1993
- }), make6("ClearPresence", {
1995
+ }), make5("ClearPresence", {
1994
1996
  payload: { scope: optional(LiveScope) },
1995
1997
  error: LiveRpcError
1996
- }), make6("RecordSessionUpdate", {
1998
+ }), make5("RecordSessionUpdate", {
1997
1999
  payload: { sessionId: String4, input: SessionUpdateCreate },
1998
2000
  success: SessionUpdate,
1999
2001
  error: LiveRpcError
2000
- }), make6("EndSession", {
2002
+ }), make5("EndSession", {
2001
2003
  payload: { sessionId: String4, input: SessionEnd },
2002
2004
  success: Session,
2003
2005
  error: LiveRpcError
@@ -2049,7 +2051,7 @@ function connectKitmanLiveRoot(protocol) {
2049
2051
  })
2050
2052
  });
2051
2053
  const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
2052
- const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2054
+ const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
2053
2055
  let abandon = () => {};
2054
2056
  const abandoned = new Promise((_resolve, reject) => {
2055
2057
  abandon = reject;
@@ -5958,6 +5960,7 @@ Read this before you create a Task or write a plan's ticket.
5958
5960
  ## One Promise per Task
5959
5961
 
5960
5962
  - Give a Task one Promise: one sentence that says what is true once it is done. Write it in the Task's \`promise\`. Two Promises are two Tasks.
5963
+ - Every Acceptance Criterion serves the Task's Promise. One that serves another Promise belongs to another Task.
5961
5964
  - A Promise is open-ended when it covers cases nobody can list, such as every path, any input or all source code. Reviews of it keep finding one more case. Split it into a first Task with a bounded case, whose cases you list, and later Tasks that each widen it.
5962
5965
  - Size a Task to fit one agent session under 200k tokens of context, from reading the code to a verified change. Split one that does not fit.
5963
5966
 
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-zb4t1yrt.js";
27
+ } from "./chunk-n381rqax.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-bj0zchck.js";
31
+ } from "./chunk-hyaq30ne.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-qsbq9gvr.js";
42
+ } from "./chunk-1zvfqdby.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-zb4t1yrt.js";
21
+ } from "./chunk-n381rqax.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -35,19 +35,19 @@ import {
35
35
  isJsonObject,
36
36
  isString2,
37
37
  encodeUnknownJsonStringSync
38
- } from "./chunk-zb4t1yrt.js";
38
+ } from "./chunk-n381rqax.js";
39
39
  import {
40
- currentTimeMillis,
41
40
  make10,
42
41
  runForEach,
43
42
  toPull,
44
43
  FileSystem,
45
44
  compiled2
46
- } from "./chunk-bj0zchck.js";
45
+ } from "./chunk-hyaq30ne.js";
47
46
  import {
47
+ currentTimeMillis,
48
48
  ChildProcessSpawner,
49
- make3
50
- } from "./chunk-2nq80r46.js";
49
+ make2
50
+ } from "./chunk-8r9k7pqk.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(make3(command, args, {
268
+ return yield* spawner.spawn(make2(command, args, {
269
269
  stdin: make10(new TextEncoder().encode(request)),
270
270
  stderr: "ignore",
271
271
  extendEnv: false,
@@ -109,7 +109,24 @@ import {
109
109
  decodeJsonStringOption,
110
110
  encodeJsonStringSync,
111
111
  encodePrettyJsonString
112
- } from "./chunk-zb4t1yrt.js";
112
+ } from "./chunk-n381rqax.js";
113
+ import {
114
+ tap,
115
+ mapError,
116
+ decodeText,
117
+ run,
118
+ mkString,
119
+ FileSystem,
120
+ Path,
121
+ withDefault,
122
+ option,
123
+ String2
124
+ } from "./chunk-hyaq30ne.js";
125
+ import {
126
+ currentTimeMillis,
127
+ ChildProcessSpawner,
128
+ make2
129
+ } from "./chunk-8r9k7pqk.js";
113
130
  import {
114
131
  SecureRandom,
115
132
  layerWebCrypto,
@@ -174,7 +191,7 @@ import {
174
191
  digestSha256,
175
192
  sha256Hasher,
176
193
  raw,
177
- make5,
194
+ make4,
178
195
  get,
179
196
  put,
180
197
  HttpClient,
@@ -240,28 +257,11 @@ import {
240
257
  harnessNames,
241
258
  herdrRunnerCapabilities2,
242
259
  declaredChecks
243
- } from "./chunk-qsbq9gvr.js";
244
- import {
245
- currentTimeMillis,
246
- tap,
247
- mapError,
248
- decodeText,
249
- run,
250
- mkString,
251
- FileSystem,
252
- Path,
253
- withDefault,
254
- option,
255
- String2
256
- } from "./chunk-bj0zchck.js";
257
- import {
258
- ChildProcessSpawner,
259
- make3
260
- } from "./chunk-2nq80r46.js";
260
+ } from "./chunk-1zvfqdby.js";
261
261
  import {
262
262
  Id,
263
263
  Timestamp
264
- } from "./chunk-wxg9k10v.js";
264
+ } from "./chunk-5tgpa02q.js";
265
265
 
266
266
  // apps/cli/src/cli-error.ts
267
267
  function cliErrorCode(error, status) {
@@ -1329,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
1329
1329
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1330
1330
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1331
1331
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-qjfzcrv5.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-y52g539d.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1333
1333
  });
1334
1334
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1335
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-qjfzcrv5.js")), (module) => module.updateHerdrCore(options))
1335
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-y52g539d.js")), (module) => module.updateHerdrCore(options))
1336
1336
  });
1337
1337
  var herdrCoreMissing = (error) => {
1338
1338
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1799,7 +1799,7 @@ var syncTargets = (harness) => gen(function* () {
1799
1799
  });
1800
1800
  var syncKits = (input) => gen(function* () {
1801
1801
  const fs = yield* FileSystem;
1802
- const { syncKitSetup } = yield* promise(() => import("./chunk-axfp5tzk.js"));
1802
+ const { syncKitSetup } = yield* promise(() => import("./chunk-vdaq7292.js"));
1803
1803
  const harnesses = yield* syncTargets(input.harness);
1804
1804
  const chain = yield* input.client.getKitChain(input.workspaceId);
1805
1805
  for (const { name, problem } of chain.skipped)
@@ -2317,7 +2317,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
2317
2317
  run: (command, args) => runCommand2(command, args),
2318
2318
  attach: (command, args) => gen(function* () {
2319
2319
  const spawner = yield* ChildProcessSpawner;
2320
- const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
2320
+ const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
2321
2321
  const exitCode = yield* handle.exitCode;
2322
2322
  if (exitCode !== 0)
2323
2323
  return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
@@ -3295,7 +3295,7 @@ var shipped_steps_generated_default = {
3295
3295
  };
3296
3296
 
3297
3297
  // apps/cli/src/scaffold-files.ts
3298
- var cliVersion = "0.52.0";
3298
+ var cliVersion = "0.53.0";
3299
3299
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3300
3300
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3301
3301
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3560,7 +3560,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3560
3560
 
3561
3561
  // apps/cli/src/commands.ts
3562
3562
  var ClientId = "kitman-cli";
3563
- var agentRuntime = promise(() => import("./chunk-h5ydhdhx.js"));
3563
+ var agentRuntime = promise(() => import("./chunk-c9vcvseh.js"));
3564
3564
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3565
3565
  defaultValue: () => gen(function* () {
3566
3566
  const tui = yield* tryPromise({
@@ -5099,7 +5099,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5099
5099
  });
5100
5100
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5101
5101
  defaultValue: () => (options) => gen(function* () {
5102
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-9hde8p6b.js"));
5102
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-7y50jhm7.js"));
5103
5103
  return yield* makeRunnerRpcClient({
5104
5104
  runnerId: options.runnerId,
5105
5105
  bearer: options.bearer,
@@ -5711,7 +5711,7 @@ function mcpCommand(args) {
5711
5711
  if (command.action === "run") {
5712
5712
  if (command.args.length > 0)
5713
5713
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5714
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-eqh0h088.js"));
5714
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-38prvh9d.js"));
5715
5715
  return yield* runMcpServerCommand({ flags: command.flags });
5716
5716
  }
5717
5717
  if (command.action !== "setup")
@@ -6211,7 +6211,7 @@ function programLoopCommand(command) {
6211
6211
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6212
6212
  });
6213
6213
  }
6214
- var docsModule = promise(() => import("./chunk-84qb67e2.js"));
6214
+ var docsModule = promise(() => import("./chunk-jh5vjc8h.js"));
6215
6215
  function docsCommand(args) {
6216
6216
  return gen(function* () {
6217
6217
  const command = parseCommand(args);
@@ -7222,7 +7222,7 @@ function changeRequestCommand(args) {
7222
7222
  yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
7223
7223
  });
7224
7224
  }
7225
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-xbqd3kqc.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7225
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-jwr750jd.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7226
7226
  var loopOutline = (command) => gen(function* () {
7227
7227
  const path = yield* Path;
7228
7228
  const loop = requiredArg(command, "a Loop id");
@@ -7242,9 +7242,9 @@ var loopOutline = (command) => gen(function* () {
7242
7242
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7243
7243
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7244
7244
  });
7245
- var KitWriter = map9(promise(() => import("./chunk-xbqd3kqc.js")), (build) => build.writeKit);
7245
+ var KitWriter = map9(promise(() => import("./chunk-jwr750jd.js")), (build) => build.writeKit);
7246
7246
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7247
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-xbqd3kqc.js")), (build) => build.buildKit(directory))
7247
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-jwr750jd.js")), (build) => build.buildKit(directory))
7248
7248
  });
7249
7249
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7250
7250
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -8023,7 +8023,7 @@ function downloadPresignedAsset(download, outputPath) {
8023
8023
  return gen(function* () {
8024
8024
  const fs = yield* FileSystem;
8025
8025
  const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
8026
- const response = yield* send(make5(download.method)(download.url), failed);
8026
+ const response = yield* send(make4(download.method)(download.url), failed);
8027
8027
  if (response.status < 200 || response.status >= 300)
8028
8028
  return yield* new CliError({ message: `Asset download failed with ${response.status}` });
8029
8029
  const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-kt26vpwf.js";
8
- import"./chunk-2t1hcdeq.js";
9
- import"./chunk-qsbq9gvr.js";
10
- import"./chunk-wxg9k10v.js";
11
- import"./chunk-bj0zchck.js";
12
- import"./chunk-zb4t1yrt.js";
7
+ } from "./chunk-stx87en6.js";
8
+ import"./chunk-ab7r6p1s.js";
9
+ import"./chunk-1zvfqdby.js";
10
+ import"./chunk-5tgpa02q.js";
11
+ import"./chunk-hyaq30ne.js";
12
+ import"./chunk-n381rqax.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -1,13 +1,6 @@
1
1
  // @bun
2
2
  import {
3
- isString,
4
- hasProperty,
5
- symbol,
6
- hash,
7
- symbol2,
8
- equals,
9
3
  BaseProto,
10
- PipeInspectableProto,
11
4
  Prototype,
12
5
  some,
13
6
  Service2,
@@ -16,13 +9,18 @@ import {
16
9
  fail3,
17
10
  getOrThrow,
18
11
  TaggedError,
12
+ ClockRef,
13
+ currentTimeMillis2,
19
14
  never,
20
15
  flatMap3,
21
16
  andThen2,
22
17
  map9,
23
18
  raceFirst,
24
- scoped
25
- } from "./chunk-zb4t1yrt.js";
19
+ scoped,
20
+ isRedacted,
21
+ make16,
22
+ value
23
+ } from "./chunk-n381rqax.js";
26
24
  import {
27
25
  unwrap,
28
26
  drainFork,
@@ -31,49 +29,11 @@ import {
31
29
  runCollect,
32
30
  runDrain,
33
31
  mkString
34
- } from "./chunk-bj0zchck.js";
32
+ } from "./chunk-hyaq30ne.js";
35
33
 
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;
34
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
35
+ var Clock = ClockRef;
36
+ var currentTimeMillis = currentTimeMillis2;
77
37
 
78
38
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
79
39
  function nominal() {
@@ -101,7 +61,7 @@ var HandleProto = {
101
61
  var makeHandle = (params) => Object.setPrototypeOf({
102
62
  ...params
103
63
  }, HandleProto);
104
- var make2 = (spawn) => {
64
+ var make = (spawn) => {
105
65
  const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
106
66
  const streamLines = (command, options) => splitLines(streamString(command, options));
107
67
  return ChildProcessSpawner.of({
@@ -222,7 +182,7 @@ var parseTemplate = (texts, values) => {
222
182
  if (word.length === 0)
223
183
  return;
224
184
  const value = word.map(unwrap2).join("");
225
- words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
185
+ words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
226
186
  word = [];
227
187
  plain = true;
228
188
  braceDepth = 0;
@@ -312,23 +272,23 @@ var parseTemplate = (texts, values) => {
312
272
  };
313
273
 
314
274
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
315
- var TypeId2 = "~effect/process/ChildProcess";
316
- var Proto2 = {
275
+ var TypeId = "~effect/process/ChildProcess";
276
+ var Proto = {
317
277
  .../* @__PURE__ */ Prototype({
318
278
  label: "Command",
319
279
  evaluate(fiber) {
320
280
  return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
321
281
  }
322
282
  }),
323
- [TypeId2]: TypeId2
283
+ [TypeId]: TypeId
324
284
  };
325
- var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
285
+ var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
326
286
  _tag: "StandardCommand",
327
287
  command,
328
288
  args,
329
289
  options
330
290
  });
331
- var make3 = function make(...args) {
291
+ var make2 = function make(...args) {
332
292
  if (isTemplateString(args[0])) {
333
293
  const [templates, ...expressions] = args;
334
294
  const [command, cmdArgs] = parseTemplate2(templates, expressions);
@@ -386,4 +346,4 @@ var shellScript = (templates, expressions) => {
386
346
  }
387
347
  return script;
388
348
  };
389
- export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
349
+ export { Clock, currentTimeMillis, ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get3,
15
+ get4,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,7 +96,19 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-zb4t1yrt.js";
99
+ } from "./chunk-n381rqax.js";
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-hyaq30ne.js";
100
112
  import {
101
113
  empty,
102
114
  fromInput,
@@ -110,20 +122,10 @@ import {
110
122
  ParseOptions,
111
123
  RpcClientDefect,
112
124
  RpcClientError
113
- } from "./chunk-qsbq9gvr.js";
125
+ } from "./chunk-1zvfqdby.js";
114
126
  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-bj0zchck.js";
127
+ Clock
128
+ } from "./chunk-8r9k7pqk.js";
127
129
 
128
130
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
129
131
  class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
@@ -237,7 +239,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
239
  const disableTracing = options?.disableTracing ?? false;
238
240
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
241
  const services = yield* context();
240
- const scope = get3(services, Scope);
242
+ const scope = get4(services, Scope);
241
243
  const entries = new Map;
242
244
  let isShutdown = false;
243
245
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -483,7 +485,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
483
485
  };
484
486
  });
485
487
  var clientIdCounter = 0;
486
- var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
488
+ var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
487
489
  const clientId = clientIdCounter++;
488
490
  const {
489
491
  codecFor,
@@ -643,7 +645,7 @@ var makeRpcSchemas = (codecFor) => {
643
645
  return entry;
644
646
  }
645
647
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get3(rpc.annotations, ParseOptions);
648
+ const parseOptions = get4(rpc.annotations, ParseOptions);
647
649
  const exitSchema2 = exitSchema(rpc);
648
650
  let decodeDiscardExit;
649
651
  entry = {
@@ -829,4 +831,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
829
831
  class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
830
832
  }
831
833
 
832
- export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
834
+ export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-pppryg54.js";
13
- import"./chunk-2nq80r46.js";
14
- import"./chunk-bj0zchck.js";
15
- import"./chunk-zb4t1yrt.js";
12
+ } from "./chunk-72ht3484.js";
13
+ import"./chunk-8r9k7pqk.js";
14
+ import"./chunk-hyaq30ne.js";
15
+ import"./chunk-n381rqax.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zb4t1yrt.js";
6
+ } from "./chunk-n381rqax.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-bj0zchck.js";
19
- import"./chunk-zb4t1yrt.js";
18
+ } from "./chunk-hyaq30ne.js";
19
+ import"./chunk-n381rqax.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,