@kitman-sh/cli 0.14.2 → 0.14.4
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.
- package/LICENSE.md +10 -0
- package/dist/{chunk-scdr623z.js → chunk-0kreahhj.js} +1 -1
- package/dist/{chunk-v86jpzpr.js → chunk-4yvafzhp.js} +7 -7
- package/dist/{chunk-vfw3xn1e.js → chunk-5c4tn29r.js} +3 -3
- package/dist/{chunk-gwz39037.js → chunk-6zwwrpve.js} +1 -1
- package/dist/{chunk-hza25m2e.js → chunk-af3m4nhz.js} +36 -22
- package/dist/{chunk-q4ch3t9q.js → chunk-c6fanp7r.js} +6 -6
- package/dist/{chunk-ge9qjp6s.js → chunk-dz7qcbpp.js} +4 -4
- package/dist/{chunk-1jabs81x.js → chunk-ec01eq70.js} +184 -82
- package/dist/{chunk-3csj1ve1.js → chunk-kg32dz1w.js} +4 -4
- package/dist/{chunk-qqmxhk9w.js → chunk-me1zn085.js} +60 -14
- package/dist/{chunk-jzfy127y.js → chunk-nmw831xh.js} +4 -4
- package/dist/{chunk-e024f8af.js → chunk-p9wzycsm.js} +2 -2
- package/dist/{chunk-4xez238w.js → chunk-pcyscxe1.js} +2 -2
- package/dist/{chunk-ffq8vvvx.js → chunk-pvv8y59t.js} +7 -7
- package/dist/{chunk-t9chwen8.js → chunk-q1y9qjjp.js} +6 -4
- package/dist/{chunk-ryxff0xk.js → chunk-qd9bkybz.js} +109 -118
- package/dist/{chunk-0r9tp5pz.js → chunk-qnb3a82t.js} +4 -4
- package/dist/{chunk-m9x7feh0.js → chunk-ra22g5nv.js} +7 -7
- package/dist/{chunk-yfag1eey.js → chunk-rx2cg7rn.js} +5 -5
- package/dist/{chunk-avhqm9p0.js → chunk-tnrmd4hz.js} +31 -165
- package/dist/{chunk-z7c2ndfg.js → chunk-v26jmjr0.js} +11 -11
- package/dist/{chunk-80vwvv5x.js → chunk-wvhm5fgh.js} +25 -25
- package/dist/{chunk-39pdxhcv.js → chunk-x2jjnfff.js} +3 -3
- package/dist/{chunk-h6kd80nr.js → chunk-yv2mq2e9.js} +1 -1
- package/dist/{chunk-24j1cmsm.js → chunk-zv1sshtj.js} +22 -22
- package/dist/index.js +4 -4
- package/package.json +4 -3
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ec01eq70.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-tnrmd4hz.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-qd9bkybz.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-x2jjnfff.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-ec01eq70.js";
|
|
17
|
+
import"./chunk-yv2mq2e9.js";
|
|
18
18
|
import {
|
|
19
19
|
FileSystem,
|
|
20
20
|
Path
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-tnrmd4hz.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-qnb3a82t.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-qd9bkybz.js";
|
|
35
|
+
import"./chunk-x2jjnfff.js";
|
|
36
|
+
import"./chunk-me1zn085.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-ec01eq70.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-tnrmd4hz.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-qd9bkybz.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
|
|
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,
|
|
832
|
+
export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -186,6 +186,7 @@ import {
|
|
|
186
186
|
mapEager,
|
|
187
187
|
flatMapEager,
|
|
188
188
|
catchEager,
|
|
189
|
+
fromInputUnsafe2,
|
|
189
190
|
Pointer,
|
|
190
191
|
passthrough,
|
|
191
192
|
transformEffect,
|
|
@@ -201,7 +202,7 @@ import {
|
|
|
201
202
|
String4,
|
|
202
203
|
toCodecStringTree,
|
|
203
204
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-ec01eq70.js";
|
|
205
206
|
|
|
206
207
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
208
|
var headUnsafe = (self) => {
|
|
@@ -250,141 +251,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
251
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
252
|
};
|
|
252
253
|
|
|
253
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
254
|
-
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
255
|
-
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
256
|
-
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
257
|
-
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
258
|
-
var decimalUnits = [{
|
|
259
|
-
symbol: "B",
|
|
260
|
-
factor: bigint1,
|
|
261
|
-
names: ["B", "byte", "bytes"]
|
|
262
|
-
}, {
|
|
263
|
-
symbol: "kB",
|
|
264
|
-
factor: decimalBase,
|
|
265
|
-
names: ["kB", "kilobyte", "kilobytes"]
|
|
266
|
-
}, {
|
|
267
|
-
symbol: "MB",
|
|
268
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
269
|
-
names: ["MB", "megabyte", "megabytes"]
|
|
270
|
-
}, {
|
|
271
|
-
symbol: "GB",
|
|
272
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
273
|
-
names: ["GB", "gigabyte", "gigabytes"]
|
|
274
|
-
}, {
|
|
275
|
-
symbol: "TB",
|
|
276
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
277
|
-
names: ["TB", "terabyte", "terabytes"]
|
|
278
|
-
}, {
|
|
279
|
-
symbol: "PB",
|
|
280
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
281
|
-
names: ["PB", "petabyte", "petabytes"]
|
|
282
|
-
}, {
|
|
283
|
-
symbol: "EB",
|
|
284
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
285
|
-
names: ["EB", "exabyte", "exabytes"]
|
|
286
|
-
}, {
|
|
287
|
-
symbol: "ZB",
|
|
288
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
289
|
-
names: ["ZB", "zettabyte", "zettabytes"]
|
|
290
|
-
}, {
|
|
291
|
-
symbol: "YB",
|
|
292
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
293
|
-
names: ["YB", "yottabyte", "yottabytes"]
|
|
294
|
-
}, {
|
|
295
|
-
symbol: "RB",
|
|
296
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
297
|
-
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
298
|
-
}, {
|
|
299
|
-
symbol: "QB",
|
|
300
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
301
|
-
names: ["QB", "quettabyte", "quettabytes"]
|
|
302
|
-
}];
|
|
303
|
-
var binaryUnits = [decimalUnits[0], {
|
|
304
|
-
symbol: "KiB",
|
|
305
|
-
factor: binaryBase,
|
|
306
|
-
names: ["KiB", "kibibyte", "kibibytes"]
|
|
307
|
-
}, {
|
|
308
|
-
symbol: "MiB",
|
|
309
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
310
|
-
names: ["MiB", "mebibyte", "mebibytes"]
|
|
311
|
-
}, {
|
|
312
|
-
symbol: "GiB",
|
|
313
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
314
|
-
names: ["GiB", "gibibyte", "gibibytes"]
|
|
315
|
-
}, {
|
|
316
|
-
symbol: "TiB",
|
|
317
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
318
|
-
names: ["TiB", "tebibyte", "tebibytes"]
|
|
319
|
-
}, {
|
|
320
|
-
symbol: "PiB",
|
|
321
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
322
|
-
names: ["PiB", "pebibyte", "pebibytes"]
|
|
323
|
-
}, {
|
|
324
|
-
symbol: "EiB",
|
|
325
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
326
|
-
names: ["EiB", "exbibyte", "exbibytes"]
|
|
327
|
-
}, {
|
|
328
|
-
symbol: "ZiB",
|
|
329
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
330
|
-
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
331
|
-
}, {
|
|
332
|
-
symbol: "YiB",
|
|
333
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
334
|
-
names: ["YiB", "yobibyte", "yobibytes"]
|
|
335
|
-
}];
|
|
336
|
-
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
337
|
-
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
338
|
-
var make = (value) => value;
|
|
339
|
-
var invalid = (message) => {
|
|
340
|
-
throw new Error(`Invalid ByteSize: ${message}`);
|
|
341
|
-
};
|
|
342
|
-
var fromNumber = (input) => {
|
|
343
|
-
if (!Number.isSafeInteger(input) || input < 0) {
|
|
344
|
-
return invalid(`expected a non-negative safe integer, received ${input}`);
|
|
345
|
-
}
|
|
346
|
-
return make(BigInt(input));
|
|
347
|
-
};
|
|
348
|
-
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
349
|
-
var scaleDecimal = (quantity, factor) => {
|
|
350
|
-
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
351
|
-
if (match === null)
|
|
352
|
-
return;
|
|
353
|
-
const fraction = match[2] ?? "";
|
|
354
|
-
const numerator = BigInt(match[1] + fraction) * factor;
|
|
355
|
-
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
356
|
-
if (shift >= 0)
|
|
357
|
-
return numerator * BigInt(10) ** BigInt(shift);
|
|
358
|
-
const scale = BigInt(10) ** BigInt(-shift);
|
|
359
|
-
return numerator % scale === bigint0 ? numerator / scale : undefined;
|
|
360
|
-
};
|
|
361
|
-
var fromStringUnsafe = (input) => {
|
|
362
|
-
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
363
|
-
if (match === null)
|
|
364
|
-
return invalid(`unsupported syntax ${JSON.stringify(input)}`);
|
|
365
|
-
const unit = unitsByName.get(match[2]);
|
|
366
|
-
if (unit === undefined)
|
|
367
|
-
return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
368
|
-
const value = scaleDecimal(match[1], unit.factor);
|
|
369
|
-
if (value === undefined)
|
|
370
|
-
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
371
|
-
return make(value);
|
|
372
|
-
};
|
|
373
|
-
var fromInputUnsafe2 = (input) => {
|
|
374
|
-
switch (typeof input) {
|
|
375
|
-
case "bigint":
|
|
376
|
-
if (input < bigint0)
|
|
377
|
-
return invalid(`expected a non-negative bigint, received ${input}`);
|
|
378
|
-
return make(input);
|
|
379
|
-
case "number":
|
|
380
|
-
return fromNumber(input);
|
|
381
|
-
case "string":
|
|
382
|
-
return fromStringUnsafe(input);
|
|
383
|
-
}
|
|
384
|
-
return invalid(`unsupported input ${input}`);
|
|
385
|
-
};
|
|
386
|
-
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
387
|
-
|
|
388
254
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
389
255
|
var join = fiberJoin;
|
|
390
256
|
var interrupt = fiberInterrupt;
|
|
@@ -937,7 +803,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
937
803
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
938
804
|
var DIRECTORY_CONCURRENCY = 16;
|
|
939
805
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
940
|
-
var
|
|
806
|
+
var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
941
807
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
942
808
|
if (compiled.initial.size === 0) {
|
|
943
809
|
return [];
|
|
@@ -1115,7 +981,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
1115
981
|
|
|
1116
982
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
1117
983
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
1118
|
-
var
|
|
984
|
+
var make2 = makeLatch;
|
|
1119
985
|
|
|
1120
986
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
1121
987
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -1129,7 +995,7 @@ var MutableRefProto = {
|
|
|
1129
995
|
};
|
|
1130
996
|
}
|
|
1131
997
|
};
|
|
1132
|
-
var
|
|
998
|
+
var make8 = (value) => {
|
|
1133
999
|
const ref = Object.create(MutableRefProto);
|
|
1134
1000
|
ref.current = value;
|
|
1135
1001
|
return ref;
|
|
@@ -1141,7 +1007,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1141
1007
|
|
|
1142
1008
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1143
1009
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1144
|
-
var
|
|
1010
|
+
var make3 = () => ({
|
|
1145
1011
|
head: undefined,
|
|
1146
1012
|
tail: undefined,
|
|
1147
1013
|
length: 0
|
|
@@ -1290,8 +1156,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1156
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1157
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1158
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var
|
|
1294
|
-
var unbounded = (options) =>
|
|
1159
|
+
var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1160
|
+
var unbounded = (options) => make4({
|
|
1295
1161
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1162
|
strategy: () => new DroppingStrategy
|
|
1297
1163
|
});
|
|
@@ -1385,7 +1251,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1251
|
subscribers.delete(subscription);
|
|
1386
1252
|
}
|
|
1387
1253
|
};
|
|
1388
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
1254
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1255
|
class UnboundedPubSub {
|
|
1390
1256
|
publisherHead = {
|
|
1391
1257
|
value: AbsentValue,
|
|
@@ -1802,12 +1668,12 @@ var QueueProto = {
|
|
|
1802
1668
|
};
|
|
1803
1669
|
}
|
|
1804
1670
|
};
|
|
1805
|
-
var
|
|
1671
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1806
1672
|
const self = Object.create(QueueProto);
|
|
1807
1673
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1674
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1809
1675
|
self.strategy = options?.strategy ?? "suspend";
|
|
1810
|
-
self.messages =
|
|
1676
|
+
self.messages = make3();
|
|
1811
1677
|
self.scheduleRunning = false;
|
|
1812
1678
|
self.state = {
|
|
1813
1679
|
_tag: "Open",
|
|
@@ -1817,14 +1683,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1817
1683
|
};
|
|
1818
1684
|
return succeed2(self);
|
|
1819
1685
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1686
|
+
var bounded = (capacity) => make9({
|
|
1821
1687
|
capacity
|
|
1822
1688
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1689
|
+
var sliding = (capacity) => make9({
|
|
1824
1690
|
capacity,
|
|
1825
1691
|
strategy: "sliding"
|
|
1826
1692
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1693
|
+
var unbounded2 = () => make9();
|
|
1828
1694
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1695
|
var offerUnsafe = (self, message) => {
|
|
1830
1696
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2116,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2116
|
return onError(pull, onCause);
|
|
2251
2117
|
}));
|
|
2252
2118
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2119
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2254
2120
|
capacity: options?.bufferSize,
|
|
2255
2121
|
strategy: options?.strategy
|
|
2256
2122
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2157,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2157
|
}));
|
|
2292
2158
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2159
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2160
|
+
const exit = options.exit ?? make8(undefined);
|
|
2295
2161
|
const pull = suspend3(() => {
|
|
2296
2162
|
if (exit.current)
|
|
2297
2163
|
return exit.current;
|
|
@@ -2459,7 +2325,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2459
2325
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2460
2326
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2461
2327
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2462
|
-
const doneLatch = yield*
|
|
2328
|
+
const doneLatch = yield* make2(true);
|
|
2463
2329
|
const fibers = new Map;
|
|
2464
2330
|
const queue = yield* bounded(bufferSize);
|
|
2465
2331
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2796,7 +2662,7 @@ class RcRefImpl {
|
|
|
2796
2662
|
this.idleTimeToLive = idleTimeToLive;
|
|
2797
2663
|
}
|
|
2798
2664
|
}
|
|
2799
|
-
var
|
|
2665
|
+
var make5 = (options) => withFiber2((fiber) => {
|
|
2800
2666
|
const context = fiber.context;
|
|
2801
2667
|
const scope = get4(context, Scope);
|
|
2802
2668
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -2905,7 +2771,7 @@ var release = (self, state) => {
|
|
|
2905
2771
|
};
|
|
2906
2772
|
|
|
2907
2773
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
-
var
|
|
2774
|
+
var make10 = make5;
|
|
2909
2775
|
var get3 = get2;
|
|
2910
2776
|
|
|
2911
2777
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2917,7 +2783,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2917
2783
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2784
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2785
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2786
|
+
var make11 = (...values) => fromArray2(values);
|
|
2921
2787
|
var suspend = (stream) => {
|
|
2922
2788
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2789
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3100,10 +2966,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3100
2966
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3101
2967
|
var TypeId10 = "~effect/FileSystem";
|
|
3102
2968
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3103
|
-
var
|
|
2969
|
+
var make12 = (impl) => FileSystem.of({
|
|
3104
2970
|
...impl,
|
|
3105
2971
|
[TypeId10]: TypeId10,
|
|
3106
|
-
glob:
|
|
2972
|
+
glob: make(impl),
|
|
3107
2973
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3108
2974
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
3109
2975
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3160,7 +3026,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3160
3026
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3161
3027
|
var TypeId11 = "~effect/Path";
|
|
3162
3028
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3163
|
-
var
|
|
3029
|
+
var make13 = (impl) => Path.of({
|
|
3164
3030
|
...impl,
|
|
3165
3031
|
[TypeId11]: TypeId11,
|
|
3166
3032
|
resolveWithin(root, input) {
|
|
@@ -3235,7 +3101,7 @@ function makeProvider(load, mapInput) {
|
|
|
3235
3101
|
function makeSource(get, transform) {
|
|
3236
3102
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3237
3103
|
}
|
|
3238
|
-
function
|
|
3104
|
+
function make6(get) {
|
|
3239
3105
|
return makeSource(get, identityPath);
|
|
3240
3106
|
}
|
|
3241
3107
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3244,7 +3110,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3244
3110
|
function fromEnvRecord(env, options) {
|
|
3245
3111
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3246
3112
|
const trie = buildEnvTrie(env);
|
|
3247
|
-
return
|
|
3113
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3248
3114
|
}
|
|
3249
3115
|
function fromEnv(options) {
|
|
3250
3116
|
const env = options?.env ?? {
|
|
@@ -3326,7 +3192,7 @@ var Proto2 = {
|
|
|
3326
3192
|
};
|
|
3327
3193
|
}
|
|
3328
3194
|
};
|
|
3329
|
-
function
|
|
3195
|
+
function make7(evaluator) {
|
|
3330
3196
|
const self = Object.create(Proto2);
|
|
3331
3197
|
self.evaluator = evaluator;
|
|
3332
3198
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3334,14 +3200,14 @@ function make14(evaluator) {
|
|
|
3334
3200
|
}
|
|
3335
3201
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3336
3202
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3337
|
-
return
|
|
3203
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3338
3204
|
});
|
|
3339
3205
|
function all(arg) {
|
|
3340
3206
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3341
|
-
return
|
|
3207
|
+
return make7((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
|
|
3342
3208
|
}
|
|
3343
3209
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3344
|
-
return
|
|
3210
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3345
3211
|
});
|
|
3346
3212
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3347
3213
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3460,7 +3326,7 @@ function schema(codec, path) {
|
|
|
3460
3326
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3461
3327
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3462
3328
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3463
|
-
return
|
|
3329
|
+
return make7((provider, pathPrefix) => {
|
|
3464
3330
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3465
3331
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3466
3332
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3575,4 +3441,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3575
3441
|
...argv
|
|
3576
3442
|
];
|
|
3577
3443
|
|
|
3578
|
-
export { map, makeEquivalence,
|
|
3444
|
+
export { map, makeEquivalence, 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 };
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-ec01eq70.js";
|
|
36
|
+
import"./chunk-yv2mq2e9.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-
|
|
48
|
+
} from "./chunk-qd9bkybz.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-
|
|
56
|
+
} from "./chunk-tnrmd4hz.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
60
|
+
} from "./chunk-x2jjnfff.js";
|
|
61
|
+
import"./chunk-4yvafzhp.js";
|
|
62
62
|
import {
|
|
63
63
|
AgentDeclaration,
|
|
64
64
|
KitDeclarations,
|
|
65
65
|
describeFlag,
|
|
66
66
|
Described
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-dz7qcbpp.js";
|
|
68
68
|
import {
|
|
69
69
|
ChildProcessSpawner,
|
|
70
|
-
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
70
|
+
make3
|
|
71
|
+
} from "./chunk-me1zn085.js";
|
|
72
|
+
import"./chunk-rx2cg7rn.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(
|
|
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)),
|