@kitman-sh/cli 0.13.14 → 0.13.16

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-hmt2egsx.js → chunk-49gbakce.js} +6 -6
  2. package/dist/{chunk-d4kmyv5h.js → chunk-4zh7qxck.js} +4 -4
  3. package/dist/{chunk-dwxqp8ez.js → chunk-5cevjkrb.js} +16 -16
  4. package/dist/{chunk-vmww6hnk.js → chunk-5w6r4mw6.js} +30 -30
  5. package/dist/{chunk-5ba08a9e.js → chunk-at5dh2te.js} +18 -18
  6. package/dist/{chunk-5mxvqg32.js → chunk-bt22cd13.js} +15 -10
  7. package/dist/{chunk-fk5238tn.js → chunk-c9rvst3x.js} +4 -4
  8. package/dist/{chunk-hw9fcfs0.js → chunk-cbzqfz1k.js} +9 -9
  9. package/dist/{chunk-vjsqg4a5.js → chunk-d9z9cyzt.js} +32 -32
  10. package/dist/{chunk-aa30tt6t.js → chunk-fc2bhh5v.js} +2 -2
  11. package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
  12. package/dist/{chunk-4142qeg3.js → chunk-mbqb40ev.js} +16 -16
  13. package/dist/{chunk-hgfphycc.js → chunk-nf9gdnsf.js} +17 -26
  14. package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
  15. package/dist/{chunk-mmd7mjv0.js → chunk-s88vcvtd.js} +3 -3
  16. package/dist/{chunk-6agcvxbj.js → chunk-sjdze64n.js} +10 -10
  17. package/dist/{chunk-06dwvzv0.js → chunk-t4xwk14b.js} +152 -107
  18. package/dist/{chunk-89rpg6j9.js → chunk-tntbdpmy.js} +86 -86
  19. package/dist/{chunk-st8ggqv1.js → chunk-ttk3d0z2.js} +154 -142
  20. package/dist/{chunk-zencwg2t.js → chunk-v1e4g2re.js} +1 -1
  21. package/dist/{chunk-8xpdkxr7.js → chunk-vsrjg9nm.js} +68 -22
  22. package/dist/{chunk-ggmwpwhf.js → chunk-x7acexnm.js} +5 -5
  23. package/dist/{chunk-ef3nzqng.js → chunk-y7p4d14b.js} +3 -3
  24. package/dist/{chunk-3vbs995s.js → chunk-zd6y6ka8.js} +167 -123
  25. package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-dwxqp8ez.js";
8
- import"./chunk-vmww6hnk.js";
9
- import"./chunk-3vbs995s.js";
10
- import"./chunk-pxvd8w2v.js";
11
- import"./chunk-hgfphycc.js";
12
- import"./chunk-zgraq2y3.js";
7
+ } from "./chunk-5cevjkrb.js";
8
+ import"./chunk-5w6r4mw6.js";
9
+ import"./chunk-zd6y6ka8.js";
10
+ import"./chunk-q5w3v4k1.js";
11
+ import"./chunk-nf9gdnsf.js";
12
+ import"./chunk-zw3gf6r5.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-5mxvqg32.js";
11
- import"./chunk-8xpdkxr7.js";
12
- import"./chunk-hgfphycc.js";
13
- import"./chunk-zgraq2y3.js";
10
+ } from "./chunk-bt22cd13.js";
11
+ import"./chunk-vsrjg9nm.js";
12
+ import"./chunk-nf9gdnsf.js";
13
+ import"./chunk-zw3gf6r5.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -1,15 +1,4 @@
1
1
  // @bun
2
- import {
3
- build,
4
- succeed5,
5
- provide2,
6
- gen,
7
- flatMap3,
8
- provideContext2
9
- } from "./chunk-zgraq2y3.js";
10
- import {
11
- runForEach
12
- } from "./chunk-hgfphycc.js";
13
2
  import {
14
3
  WebSocketConstructor,
15
4
  layerWebSocketConstructorGlobal,
@@ -19,13 +8,24 @@ import {
19
8
  RunnerReplicaRpcs,
20
9
  RunnerRunFileRpcs,
21
10
  ProgramRpcs
22
- } from "./chunk-3vbs995s.js";
11
+ } from "./chunk-zd6y6ka8.js";
12
+ import {
13
+ build,
14
+ succeed5,
15
+ provide2,
16
+ gen,
17
+ flatMap3,
18
+ provideContext2
19
+ } from "./chunk-zw3gf6r5.js";
20
+ import {
21
+ runForEach
22
+ } from "./chunk-nf9gdnsf.js";
23
23
  import {
24
24
  layerJson,
25
- make3,
25
+ make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-vmww6hnk.js";
28
+ } from "./chunk-5w6r4mw6.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* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make4(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* make3(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),
@@ -1,4 +1,31 @@
1
1
  // @bun
2
+ import {
3
+ Clock,
4
+ empty,
5
+ fromInput,
6
+ merge,
7
+ Socket,
8
+ SocketReadError,
9
+ SocketError,
10
+ isStreamSchema,
11
+ getStreamSchemas,
12
+ exitSchema,
13
+ ParseOptions,
14
+ RpcClientDefect,
15
+ RpcClientError
16
+ } from "./chunk-zd6y6ka8.js";
17
+ import {
18
+ interrupt,
19
+ getCurrent,
20
+ makeUnsafe2,
21
+ bounded,
22
+ offerAll,
23
+ failCause,
24
+ end,
25
+ shutdownUnsafe,
26
+ fromQueue,
27
+ unwrap
28
+ } from "./chunk-nf9gdnsf.js";
2
29
  import {
3
30
  dual,
4
31
  identity,
@@ -96,34 +123,7 @@ import {
96
123
  Defect,
97
124
  Exit,
98
125
  toCodecJson
99
- } from "./chunk-zgraq2y3.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-hgfphycc.js";
112
- import {
113
- Clock,
114
- empty,
115
- fromInput,
116
- merge,
117
- Socket,
118
- SocketReadError,
119
- SocketError,
120
- isStreamSchema,
121
- getStreamSchemas,
122
- exitSchema,
123
- ParseOptions,
124
- RpcClientDefect,
125
- RpcClientError
126
- } from "./chunk-3vbs995s.js";
126
+ } from "./chunk-zw3gf6r5.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 };
@@ -1,12 +1,5 @@
1
1
  // @bun
2
- import {
3
- decodeText,
4
- mkString,
5
- FileSystem,
6
- Path,
7
- withDefault,
8
- String2
9
- } from "./chunk-hgfphycc.js";
2
+ import"./chunk-q5w3v4k1.js";
10
3
  import {
11
4
  isString,
12
5
  hasProperty,
@@ -40,8 +33,7 @@ import {
40
33
  toCodecJson,
41
34
  Json,
42
35
  encodePrettyJsonString
43
- } from "./chunk-zgraq2y3.js";
44
- import"./chunk-pxvd8w2v.js";
36
+ } from "./chunk-zw3gf6r5.js";
45
37
  import {
46
38
  SecureRandom,
47
39
  layerWebCrypto,
@@ -53,23 +45,31 @@ import {
53
45
  layer4,
54
46
  kitmanMcpServer,
55
47
  RunnerRpcProtocolVersion
56
- } from "./chunk-3vbs995s.js";
48
+ } from "./chunk-zd6y6ka8.js";
49
+ import {
50
+ decodeText,
51
+ mkString,
52
+ FileSystem,
53
+ Path,
54
+ withDefault,
55
+ String2
56
+ } from "./chunk-nf9gdnsf.js";
57
57
  import {
58
58
  Packument,
59
59
  tarballMatches
60
- } from "./chunk-4142qeg3.js";
61
- import"./chunk-dwxqp8ez.js";
60
+ } from "./chunk-mbqb40ev.js";
61
+ import"./chunk-5cevjkrb.js";
62
62
  import {
63
63
  AgentDeclaration,
64
64
  KitDeclarations,
65
65
  describeFlag,
66
66
  Described
67
- } from "./chunk-vjsqg4a5.js";
67
+ } from "./chunk-d9z9cyzt.js";
68
68
  import {
69
69
  ChildProcessSpawner,
70
- make2
71
- } from "./chunk-8xpdkxr7.js";
72
- import"./chunk-vmww6hnk.js";
70
+ make3
71
+ } from "./chunk-vsrjg9nm.js";
72
+ import"./chunk-5w6r4mw6.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,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- make10,
4
- runForEach,
5
- compiled2
6
- } from "./chunk-hgfphycc.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-zgraq2y3.js";
28
+ } from "./chunk-zw3gf6r5.js";
29
+ import {
30
+ make11,
31
+ runForEach,
32
+ compiled2
33
+ } from "./chunk-nf9gdnsf.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
- make2
37
- } from "./chunk-8xpdkxr7.js";
36
+ make3
37
+ } from "./chunk-vsrjg9nm.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -147,6 +147,11 @@ var readings = {
147
147
  const row = v2 ? db.prepare(`select ${error} as error from session_message where session_id = ? and type = 'assistant' order by seq desc limit 1`).get(sessionId) : db.prepare(`select ${error} as error from message where session_id = ? and json_extract(data, '$.role') = 'assistant' order by time_created desc, rowid desc limit 1`).get(sessionId);
148
148
  return isString2(row?.error) ? decoded2(row.error) ?? null : null;
149
149
  }),
150
+ lastModel: reading(NullOr(String4), (db, { v2 }, sessionId) => {
151
+ const named = (provider, model) => `case when length(cast(${model} as blob)) <= 200 and length(cast(coalesce(${provider}, '') as blob)) <= 200 then case when ${provider} is null then ${model} else ${provider} || '/' || ${model} end end`;
152
+ const row = v2 ? db.prepare(`select ${named("json_extract(data, '$.model.providerID')", "json_extract(data, '$.model.id')")} as model from session_message where session_id = ? and type = 'assistant' and json_type(data, '$.model.id') = 'text' order by seq desc limit 1`).get(sessionId) : db.prepare(`select ${named("json_extract(data, '$.providerID')", "json_extract(data, '$.modelID')")} as model from message where session_id = ? and json_extract(data, '$.role') = 'assistant' and json_type(data, '$.modelID') = 'text' order by time_created desc, rowid desc limit 1`).get(sessionId);
153
+ return isString2(row?.model) ? row.model : null;
154
+ }),
150
155
  extent: reading(Finite, (db, _input, sessionId) => Number(db.prepare(`with recursive sessions(id) as (select ? union select session_v2.id from session_v2 join sessions on session_v2.parent_id = sessions.id)
151
156
  select coalesce(max(time_updated), 0) as extent from session_message where session_id in sessions`).get(sessionId)?.extent))
152
157
  };
@@ -167,8 +172,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
167
172
  var isolatedRead = (store, name, input) => gen(function* () {
168
173
  const spawner = yield* ChildProcessSpawner;
169
174
  const [command, ...args] = opencodeReaderCommand();
170
- const handle = yield* spawner.spawn(make2(command, args, {
171
- stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
175
+ const handle = yield* spawner.spawn(make3(command, args, {
176
+ stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
172
177
  stderr: "ignore",
173
178
  extendEnv: false,
174
179
  env: {},
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-8xpdkxr7.js";
2
+ import"./chunk-vsrjg9nm.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-3vbs995s.js";
16
- import"./chunk-hgfphycc.js";
17
- import"./chunk-zgraq2y3.js";
15
+ } from "./chunk-zd6y6ka8.js";
16
+ import"./chunk-nf9gdnsf.js";
17
+ import"./chunk-zw3gf6r5.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -1,10 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path,
5
- optionalEnv,
6
- tempDirectoryScoped
7
- } from "./chunk-hgfphycc.js";
8
2
  import {
9
3
  Reference,
10
4
  TaggedError,
@@ -31,15 +25,21 @@ import {
31
25
  isString2,
32
26
  encodePrettyJsonString,
33
27
  decodeJsonStringSync
34
- } from "./chunk-zgraq2y3.js";
28
+ } from "./chunk-zw3gf6r5.js";
29
+ import {
30
+ FileSystem,
31
+ Path,
32
+ optionalEnv,
33
+ tempDirectoryScoped
34
+ } from "./chunk-nf9gdnsf.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-3vbs995s.js";
39
+ } from "./chunk-zd6y6ka8.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-4142qeg3.js";
42
+ } from "./chunk-mbqb40ev.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -1,4 +1,34 @@
1
1
  // @bun
2
+ import {
3
+ guard
4
+ } from "./chunk-q5w3v4k1.js";
5
+ import {
6
+ currentTimeMillis,
7
+ WebCrypto,
8
+ SafeJson,
9
+ AgentSandboxNetwork,
10
+ AgentEfforts,
11
+ AgentCapabilities,
12
+ LoopDataSchemaRef,
13
+ LoopVersion,
14
+ ProgramLoop,
15
+ AgentFallback,
16
+ ProgramWorkUnit,
17
+ MeasureEvidence,
18
+ CatchUp,
19
+ RunFileRefused,
20
+ runFileContentType,
21
+ sha256Hasher,
22
+ put,
23
+ setHeaders,
24
+ bodyUint8Array,
25
+ filterStatusOk,
26
+ HttpClient,
27
+ KitName,
28
+ KitDigest,
29
+ KitSetup,
30
+ RunnerRpcError
31
+ } from "./chunk-zd6y6ka8.js";
2
32
  import {
3
33
  dual,
4
34
  getOrElse,
@@ -75,41 +105,11 @@ import {
75
105
  toEquivalence,
76
106
  toCodecJson,
77
107
  Json
78
- } from "./chunk-zgraq2y3.js";
108
+ } from "./chunk-zw3gf6r5.js";
79
109
  import {
80
110
  runForEach,
81
111
  FileSystem
82
- } from "./chunk-hgfphycc.js";
83
- import {
84
- guard
85
- } from "./chunk-pxvd8w2v.js";
86
- import {
87
- currentTimeMillis,
88
- WebCrypto,
89
- SafeJson,
90
- AgentSandboxNetwork,
91
- AgentEfforts,
92
- AgentCapabilities,
93
- LoopDataSchemaRef,
94
- LoopVersion,
95
- ProgramLoop,
96
- AgentFallback,
97
- ProgramWorkUnit,
98
- MeasureEvidence,
99
- CatchUp,
100
- RunFileRefused,
101
- runFileContentType,
102
- sha256Hasher,
103
- put,
104
- setHeaders,
105
- bodyUint8Array,
106
- filterStatusOk,
107
- HttpClient,
108
- KitName,
109
- KitDigest,
110
- KitSetup,
111
- RunnerRpcError
112
- } from "./chunk-3vbs995s.js";
112
+ } from "./chunk-nf9gdnsf.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");
@@ -14,8 +14,8 @@ import {
14
14
  writeSrtSettings2,
15
15
  srtStepArgv2,
16
16
  srtArgv2
17
- } from "./chunk-hgfphycc.js";
18
- import"./chunk-zgraq2y3.js";
17
+ } from "./chunk-nf9gdnsf.js";
18
+ import"./chunk-zw3gf6r5.js";
19
19
  export {
20
20
  compiled2 as compiled,
21
21
  harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-zgraq2y3.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;
@@ -1,4 +1,19 @@
1
1
  // @bun
2
+ import {
3
+ withDefault,
4
+ String2
5
+ } from "./chunk-nf9gdnsf.js";
6
+ import {
7
+ newerKitmanVersion,
8
+ digestSha256,
9
+ digestSha512,
10
+ digestWith,
11
+ schemaBodyJson,
12
+ filterStatusOk,
13
+ get2,
14
+ layer4,
15
+ KitDigest
16
+ } from "./chunk-zd6y6ka8.js";
2
17
  import {
3
18
  isString,
4
19
  isNone,
@@ -24,22 +39,7 @@ import {
24
39
  Record,
25
40
  Int,
26
41
  fromJsonString
27
- } from "./chunk-zgraq2y3.js";
28
- import {
29
- withDefault,
30
- String2
31
- } from "./chunk-hgfphycc.js";
32
- import {
33
- newerKitmanVersion,
34
- digestSha256,
35
- digestSha512,
36
- digestWith,
37
- schemaBodyJson,
38
- filterStatusOk,
39
- get2,
40
- layer4,
41
- KitDigest
42
- } from "./chunk-3vbs995s.js";
42
+ } from "./chunk-zw3gf6r5.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -201,7 +201,7 @@ import {
201
201
  String4,
202
202
  toCodecStringTree,
203
203
  encodeUnknownJsonStringSync
204
- } from "./chunk-zgraq2y3.js";
204
+ } from "./chunk-zw3gf6r5.js";
205
205
 
206
206
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
207
207
  var headUnsafe = (self) => {
@@ -250,15 +250,6 @@ var makeEquivalence = (equivalence) => {
250
250
  return (self, that) => is(self, that) && is(that, self);
251
251
  };
252
252
 
253
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
254
- var BigInt2 = globalThis.BigInt;
255
- var toNumber = (b) => {
256
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
257
- return none();
258
- }
259
- return some(Number(b));
260
- };
261
-
262
253
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
263
254
  var bigint0 = /* @__PURE__ */ BigInt(0);
264
255
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -1138,7 +1129,7 @@ var MutableRefProto = {
1138
1129
  };
1139
1130
  }
1140
1131
  };
1141
- var make7 = (value) => {
1132
+ var make8 = (value) => {
1142
1133
  const ref = Object.create(MutableRefProto);
1143
1134
  ref.current = value;
1144
1135
  return ref;
@@ -1299,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1299
1290
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1300
1291
  var TypeId3 = "~effect/PubSub";
1301
1292
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1302
- var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1293
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1303
1294
  var unbounded = (options) => make5({
1304
1295
  atomicPubSub: () => makeAtomicUnbounded(options),
1305
1296
  strategy: () => new DroppingStrategy
@@ -1394,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1394
1385
  subscribers.delete(subscription);
1395
1386
  }
1396
1387
  };
1397
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1388
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1398
1389
  class UnboundedPubSub {
1399
1390
  publisherHead = {
1400
1391
  value: AbsentValue,
@@ -1811,7 +1802,7 @@ var QueueProto = {
1811
1802
  };
1812
1803
  }
1813
1804
  };
1814
- var make8 = (options) => withFiber((fiber) => {
1805
+ var make9 = (options) => withFiber((fiber) => {
1815
1806
  const self = Object.create(QueueProto);
1816
1807
  self.dispatcher = fiber.currentDispatcher;
1817
1808
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
@@ -1826,14 +1817,14 @@ var make8 = (options) => withFiber((fiber) => {
1826
1817
  };
1827
1818
  return succeed2(self);
1828
1819
  });
1829
- var bounded = (capacity) => make8({
1820
+ var bounded = (capacity) => make9({
1830
1821
  capacity
1831
1822
  });
1832
- var sliding = (capacity) => make8({
1823
+ var sliding = (capacity) => make9({
1833
1824
  capacity,
1834
1825
  strategy: "sliding"
1835
1826
  });
1836
- var unbounded2 = () => make8();
1827
+ var unbounded2 = () => make9();
1837
1828
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1838
1829
  var offerUnsafe = (self, message) => {
1839
1830
  if (self.state._tag !== "Open") {
@@ -2259,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2259
2250
  return onError(pull, onCause);
2260
2251
  }));
2261
2252
  var toTransform = (channel) => channel.transform;
2262
- var asyncQueue = (scope, f, options) => make8({
2253
+ var asyncQueue = (scope, f, options) => make9({
2263
2254
  capacity: options?.bufferSize,
2264
2255
  strategy: options?.strategy
2265
2256
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
@@ -2300,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2300
2291
  }));
2301
2292
  var readableStreamToPullUnsafe = (options) => {
2302
2293
  const reader = options.readable.getReader();
2303
- const exit = options.exit ?? make7(undefined);
2294
+ const exit = options.exit ?? make8(undefined);
2304
2295
  const pull = suspend3(() => {
2305
2296
  if (exit.current)
2306
2297
  return exit.current;
@@ -2914,7 +2905,7 @@ var release = (self, state) => {
2914
2905
  };
2915
2906
 
2916
2907
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2917
- var make9 = make6;
2908
+ var make10 = make6;
2918
2909
  var get3 = get2;
2919
2910
 
2920
2911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
@@ -2926,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
2926
2917
  var toChannel2 = (stream) => stream.channel;
2927
2918
  var callback = (f, options) => fromChannel2(callbackArray(f, options));
2928
2919
  var empty2 = /* @__PURE__ */ fromChannel2(empty);
2929
- var make10 = (...values) => fromArray2(values);
2920
+ var make11 = (...values) => fromArray2(values);
2930
2921
  var suspend = (stream) => {
2931
2922
  const suspended = fromChannel2(suspend4(() => stream().channel));
2932
2923
  suspendedStreams.set(suspended, stream);
@@ -3109,7 +3100,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
3109
3100
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3110
3101
  var TypeId10 = "~effect/FileSystem";
3111
3102
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3112
- var make11 = (impl) => FileSystem.of({
3103
+ var make12 = (impl) => FileSystem.of({
3113
3104
  ...impl,
3114
3105
  [TypeId10]: TypeId10,
3115
3106
  glob: make2(impl),
@@ -3169,7 +3160,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3169
3160
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3170
3161
  var TypeId11 = "~effect/Path";
3171
3162
  var Path = /* @__PURE__ */ Service2("effect/Path");
3172
- var make12 = (impl) => Path.of({
3163
+ var make13 = (impl) => Path.of({
3173
3164
  ...impl,
3174
3165
  [TypeId11]: TypeId11,
3175
3166
  resolveWithin(root, input) {
@@ -3244,7 +3235,7 @@ function makeProvider(load, mapInput) {
3244
3235
  function makeSource(get, transform) {
3245
3236
  return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
3246
3237
  }
3247
- function make13(get) {
3238
+ function make7(get) {
3248
3239
  return makeSource(get, identityPath);
3249
3240
  }
3250
3241
  function emptyStringAsMissing(value, preserveEmptyStrings) {
@@ -3253,7 +3244,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
3253
3244
  function fromEnvRecord(env, options) {
3254
3245
  const preserveEmptyStrings = options?.preserveEmptyStrings === true;
3255
3246
  const trie = buildEnvTrie(env);
3256
- return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3247
+ return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
3257
3248
  }
3258
3249
  function fromEnv(options) {
3259
3250
  const env = options?.env ?? {
@@ -3584,4 +3575,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3584
3575
  ...argv
3585
3576
  ];
3586
3577
 
3587
- export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3578
+ export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-zgraq2y3.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"];