@kitman-sh/cli 0.10.84 → 0.10.86
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/dist/{chunk-tzz4fv17.js → chunk-292vjjdz.js} +1 -1
- package/dist/{chunk-397fax43.js → chunk-2fqry6rd.js} +33 -185
- package/dist/{chunk-ynn6jk0w.js → chunk-38end526.js} +78 -64
- package/dist/{chunk-kgdppbdr.js → chunk-3wvp5n5a.js} +1 -1
- package/dist/{chunk-9gztfcvf.js → chunk-4sz3sg95.js} +7 -7
- package/dist/{chunk-2tpysgqk.js → chunk-6tq2m8xc.js} +3 -3
- package/dist/{chunk-76ctrqm6.js → chunk-93vddjpx.js} +1 -1
- package/dist/{chunk-0mgbryyd.js → chunk-999xbcaa.js} +9 -9
- package/dist/{chunk-hgx1dq68.js → chunk-b0qaan2c.js} +4 -4
- package/dist/{chunk-cakmwaed.js → chunk-bjexx93x.js} +2 -2
- package/dist/{chunk-ze0f51ds.js → chunk-ehwvgxq8.js} +11 -11
- package/dist/{chunk-92mjxge4.js → chunk-ekkjbmr9.js} +8 -8
- package/dist/{chunk-2k1qfyvx.js → chunk-gmt7awee.js} +6 -6
- package/dist/{chunk-d53rckf0.js → chunk-h8fq958v.js} +305 -144
- package/dist/{chunk-7qbchfkf.js → chunk-jfgmhb6k.js} +9 -9
- package/dist/{chunk-98r2t1s6.js → chunk-mak28dxp.js} +18 -18
- package/dist/{chunk-kxtmk59a.js → chunk-mr30hj39.js} +5 -5
- package/dist/{chunk-kp01bv8f.js → chunk-q1qrwcnw.js} +23 -23
- package/dist/{chunk-ebd5zjnx.js → chunk-qnnsy306.js} +2 -2
- package/dist/{chunk-93b1hdfa.js → chunk-wbdgjd1n.js} +29 -29
- package/dist/{chunk-ky974pcr.js → chunk-wtx1vq9t.js} +4 -4
- package/dist/{chunk-jbwk6k6m.js → chunk-xq4k0mgr.js} +60 -60
- package/dist/{chunk-krh0gek1.js → chunk-y1x0mb3b.js} +17 -17
- package/dist/{chunk-62565d52.js → chunk-zms40x1v.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-2fqry6rd.js";
|
|
18
|
+
import"./chunk-xq4k0mgr.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOrUndefined,
|
|
7
7
|
Reference,
|
|
8
8
|
TaggedError,
|
|
9
|
-
|
|
9
|
+
make15,
|
|
10
10
|
_await,
|
|
11
11
|
fail5,
|
|
12
12
|
succeed5,
|
|
@@ -85,21 +85,8 @@ import {
|
|
|
85
85
|
decodeJsonString,
|
|
86
86
|
encodeJsonStringSync,
|
|
87
87
|
encodePrettyJsonString
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-xq4k0mgr.js";
|
|
89
89
|
import {
|
|
90
|
-
tap,
|
|
91
|
-
mapError,
|
|
92
|
-
decodeText,
|
|
93
|
-
run,
|
|
94
|
-
mkString,
|
|
95
|
-
FileSystem,
|
|
96
|
-
Path,
|
|
97
|
-
withDefault,
|
|
98
|
-
option,
|
|
99
|
-
String2
|
|
100
|
-
} from "./chunk-397fax43.js";
|
|
101
|
-
import {
|
|
102
|
-
currentTimeMillis,
|
|
103
90
|
SecureRandom,
|
|
104
91
|
layerWebCrypto,
|
|
105
92
|
runMain,
|
|
@@ -197,10 +184,10 @@ import {
|
|
|
197
184
|
harnessNames,
|
|
198
185
|
herdrRunnerCapabilities2,
|
|
199
186
|
declaredChecks
|
|
200
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-h8fq958v.js";
|
|
201
188
|
import {
|
|
202
189
|
Id
|
|
203
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-3wvp5n5a.js";
|
|
204
191
|
import {
|
|
205
192
|
toJsonValue,
|
|
206
193
|
isOneOf,
|
|
@@ -210,11 +197,24 @@ import {
|
|
|
210
197
|
isObject,
|
|
211
198
|
isJsonObject,
|
|
212
199
|
isString
|
|
213
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-292vjjdz.js";
|
|
201
|
+
import {
|
|
202
|
+
currentTimeMillis,
|
|
203
|
+
tap,
|
|
204
|
+
mapError,
|
|
205
|
+
decodeText,
|
|
206
|
+
run,
|
|
207
|
+
mkString,
|
|
208
|
+
FileSystem,
|
|
209
|
+
Path,
|
|
210
|
+
withDefault,
|
|
211
|
+
option,
|
|
212
|
+
String2
|
|
213
|
+
} from "./chunk-2fqry6rd.js";
|
|
214
214
|
import {
|
|
215
215
|
ChildProcessSpawner,
|
|
216
216
|
make3
|
|
217
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-bjexx93x.js";
|
|
218
218
|
|
|
219
219
|
// apps/cli/src/cli-error.ts
|
|
220
220
|
function cliErrorCode(error, status) {
|
|
@@ -504,10 +504,10 @@ var checkDockerImageSetting = pinnedImage;
|
|
|
504
504
|
var checkRegistryImageSetting = pinnedImage;
|
|
505
505
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
506
506
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
507
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
507
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-b0qaan2c.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
508
508
|
});
|
|
509
509
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
510
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
510
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-b0qaan2c.js")), (module) => module.updateHerdrCore(options))
|
|
511
511
|
});
|
|
512
512
|
var herdrCoreMissing = (error) => {
|
|
513
513
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -733,7 +733,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
733
733
|
});
|
|
734
734
|
var syncKits = (input) => gen(function* () {
|
|
735
735
|
const fs = yield* FileSystem;
|
|
736
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
736
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-ehwvgxq8.js"));
|
|
737
737
|
const harnesses = yield* syncTargets(input.harness);
|
|
738
738
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
739
739
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1651,7 +1651,7 @@ var package_default = {
|
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
1653
|
// apps/cli/src/scaffold.ts
|
|
1654
|
-
var cliVersion = "0.10.
|
|
1654
|
+
var cliVersion = "0.10.86";
|
|
1655
1655
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1656
1656
|
name,
|
|
1657
1657
|
private: true,
|
|
@@ -1901,7 +1901,7 @@ var Usage = [
|
|
|
1901
1901
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
1902
1902
|
].join(`
|
|
1903
1903
|
`);
|
|
1904
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
1904
|
+
var agentRuntime = promise(() => import("./chunk-38end526.js"));
|
|
1905
1905
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
1906
1906
|
defaultValue: () => gen(function* () {
|
|
1907
1907
|
const tui = yield* tryPromise({
|
|
@@ -2777,7 +2777,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2779
2779
|
defaultValue: () => (options) => gen(function* () {
|
|
2780
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2780
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-4sz3sg95.js"));
|
|
2781
2781
|
return yield* makeRunnerRpcClient({
|
|
2782
2782
|
runnerId: options.runnerId,
|
|
2783
2783
|
bearer: options.bearer,
|
|
@@ -2972,7 +2972,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
2972
2972
|
});
|
|
2973
2973
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
2974
2974
|
const platform = yield* context();
|
|
2975
|
-
const updated = yield*
|
|
2975
|
+
const updated = yield* make15();
|
|
2976
2976
|
const scope = yield* scope2;
|
|
2977
2977
|
yield* listenForSignals({
|
|
2978
2978
|
rpc,
|
|
@@ -3161,7 +3161,7 @@ function mcpCommand(args) {
|
|
|
3161
3161
|
if (command.action === "run") {
|
|
3162
3162
|
if (command.args.length > 0)
|
|
3163
3163
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3164
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3164
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-q1qrwcnw.js"));
|
|
3165
3165
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3166
3166
|
}
|
|
3167
3167
|
if (command.action !== "setup")
|
|
@@ -4372,9 +4372,9 @@ function claimCommand(args) {
|
|
|
4372
4372
|
}
|
|
4373
4373
|
});
|
|
4374
4374
|
}
|
|
4375
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
4375
|
+
var KitWriter = map8(promise(() => import("./chunk-y1x0mb3b.js")), (build) => build.writeKit);
|
|
4376
4376
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4377
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4377
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-y1x0mb3b.js")), (build) => build.buildKit(directory))
|
|
4378
4378
|
});
|
|
4379
4379
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4380
4380
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-zms40x1v.js";
|
|
8
|
+
import"./chunk-3wvp5n5a.js";
|
|
9
|
+
import"./chunk-292vjjdz.js";
|
|
10
|
+
import"./chunk-xq4k0mgr.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -1331,11 +1331,11 @@ var Prototype = (options) => makePrimitiveProto({
|
|
|
1331
1331
|
});
|
|
1332
1332
|
|
|
1333
1333
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Equivalence.js
|
|
1334
|
-
var
|
|
1334
|
+
var make13 = (isEquivalent) => (self, that) => self === that || isEquivalent(self, that);
|
|
1335
1335
|
var isStrictEquivalent = (x, y) => x === y;
|
|
1336
1336
|
var strictEqual = () => isStrictEquivalent;
|
|
1337
1337
|
function Tuple(elements) {
|
|
1338
|
-
return
|
|
1338
|
+
return make13((self, that) => {
|
|
1339
1339
|
if (self.length !== that.length) {
|
|
1340
1340
|
return false;
|
|
1341
1341
|
}
|
|
@@ -1348,7 +1348,7 @@ function Tuple(elements) {
|
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
1350
1350
|
function Array_(item) {
|
|
1351
|
-
return
|
|
1351
|
+
return make13((self, that) => {
|
|
1352
1352
|
if (self.length !== that.length)
|
|
1353
1353
|
return false;
|
|
1354
1354
|
for (let i = 0;i < self.length; i++) {
|
|
@@ -1565,7 +1565,7 @@ var ServiceProto = {
|
|
|
1565
1565
|
.../* @__PURE__ */ Prototype({
|
|
1566
1566
|
label: "Service",
|
|
1567
1567
|
evaluate(fiber) {
|
|
1568
|
-
return exitSucceed(
|
|
1568
|
+
return exitSucceed(get3(fiber.context, this));
|
|
1569
1569
|
}
|
|
1570
1570
|
}),
|
|
1571
1571
|
toJSON() {
|
|
@@ -1578,13 +1578,13 @@ var ServiceProto = {
|
|
|
1578
1578
|
return self;
|
|
1579
1579
|
},
|
|
1580
1580
|
context(self) {
|
|
1581
|
-
return
|
|
1581
|
+
return make14(this, self);
|
|
1582
1582
|
},
|
|
1583
1583
|
use(f) {
|
|
1584
|
-
return withFiber((fiber) => f(
|
|
1584
|
+
return withFiber((fiber) => f(get3(fiber.context, this)));
|
|
1585
1585
|
},
|
|
1586
1586
|
useSync(f) {
|
|
1587
|
-
return withFiber((fiber) => exitSucceed(f(
|
|
1587
|
+
return withFiber((fiber) => exitSucceed(f(get3(fiber.context, this))));
|
|
1588
1588
|
}
|
|
1589
1589
|
};
|
|
1590
1590
|
var cacheKeys = /* @__PURE__ */ new Set;
|
|
@@ -1682,7 +1682,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1682
1682
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1683
1683
|
var empty3 = () => emptyContext2;
|
|
1684
1684
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1685
|
-
var
|
|
1685
|
+
var make14 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1686
1686
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1687
1687
|
var addUnsafe = (self, key, service) => {
|
|
1688
1688
|
const impl = self;
|
|
@@ -1714,7 +1714,7 @@ var getUnsafe = /* @__PURE__ */ dual(2, (self, service) => {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
return value;
|
|
1716
1716
|
});
|
|
1717
|
-
var
|
|
1717
|
+
var get3 = getUnsafe;
|
|
1718
1718
|
var defaultValueCacheKey = "~effect/Context/defaultValue";
|
|
1719
1719
|
var getDefaultValue = (ref) => {
|
|
1720
1720
|
if (defaultValueCacheKey in ref) {
|
|
@@ -2994,7 +2994,7 @@ class FiberImpl {
|
|
|
2994
2994
|
return this._dispatcher ??= this.cache.scheduler.makeDispatcher();
|
|
2995
2995
|
}
|
|
2996
2996
|
getRef(ref) {
|
|
2997
|
-
return
|
|
2997
|
+
return get3(this.context, ref);
|
|
2998
2998
|
}
|
|
2999
2999
|
addObserver(cb) {
|
|
3000
3000
|
if (this._exit) {
|
|
@@ -3022,7 +3022,7 @@ class FiberImpl {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
let cause = causeInterrupt(fiberId);
|
|
3024
3024
|
if (this.cache.stackFrame) {
|
|
3025
|
-
cause = causeAnnotate(cause,
|
|
3025
|
+
cause = causeAnnotate(cause, make14(StackTraceKey, this.cache.stackFrame));
|
|
3026
3026
|
}
|
|
3027
3027
|
if (annotations) {
|
|
3028
3028
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -3195,17 +3195,17 @@ class FiberImpl {
|
|
|
3195
3195
|
var makeFiberContextCache = (context) => {
|
|
3196
3196
|
const currentTracer = getOrUndefinedUnsafe(context, TracerKey);
|
|
3197
3197
|
return {
|
|
3198
|
-
scheduler:
|
|
3198
|
+
scheduler: get3(context, Scheduler),
|
|
3199
3199
|
tracer: currentTracer,
|
|
3200
3200
|
tracerContext: currentTracer ? currentTracer["context"] : undefined,
|
|
3201
|
-
tracerEnabled:
|
|
3201
|
+
tracerEnabled: get3(context, TracerEnabled),
|
|
3202
3202
|
span: getOrUndefinedUnsafe(context, ParentSpanKey),
|
|
3203
|
-
logLevel:
|
|
3204
|
-
minimumLogLevel:
|
|
3205
|
-
stackFrame:
|
|
3203
|
+
logLevel: get3(context, CurrentLogLevel),
|
|
3204
|
+
minimumLogLevel: get3(context, MinimumLogLevel),
|
|
3205
|
+
stackFrame: get3(context, CurrentStackFrame),
|
|
3206
3206
|
runtimeMetrics: getOrUndefinedUnsafe(context, FiberRuntimeMetricsKey),
|
|
3207
|
-
maxOpsBeforeYield:
|
|
3208
|
-
preventYield:
|
|
3207
|
+
maxOpsBeforeYield: get3(context, MaxOpsBeforeYield),
|
|
3208
|
+
preventYield: get3(context, PreventSchedulerYield)
|
|
3209
3209
|
};
|
|
3210
3210
|
};
|
|
3211
3211
|
var deferredInterruptCont = {
|
|
@@ -4702,10 +4702,10 @@ var noopSpan = (options) => Object.assign(Object.create(NoopSpanProto), options)
|
|
|
4702
4702
|
var filterDisablePropagation = (span) => {
|
|
4703
4703
|
if (!span)
|
|
4704
4704
|
return none();
|
|
4705
|
-
return
|
|
4705
|
+
return get3(span.annotations, DisablePropagation) ? span._tag === "Span" ? filterDisablePropagation(getOrUndefined(span.parent)) : none() : some(span);
|
|
4706
4706
|
};
|
|
4707
4707
|
var makeSpanUnsafe = (fiber, name, options) => {
|
|
4708
|
-
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations &&
|
|
4708
|
+
const disablePropagation = !fiber.cache.tracerEnabled || options?.annotations && get3(options.annotations, DisablePropagation);
|
|
4709
4709
|
const parent = options?.parent !== undefined ? some(options.parent) : options?.root ? none() : filterDisablePropagation(fiber.cache.span);
|
|
4710
4710
|
let span;
|
|
4711
4711
|
if (disablePropagation) {
|
|
@@ -5119,7 +5119,7 @@ var DeferredImpl = function() {
|
|
|
5119
5119
|
};
|
|
5120
5120
|
DeferredImpl.prototype = DeferredProto;
|
|
5121
5121
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5122
|
-
var
|
|
5122
|
+
var make15 = () => sync(() => makeUnsafe5());
|
|
5123
5123
|
var _await = (self) => callback2((resume) => {
|
|
5124
5124
|
if (self.effect)
|
|
5125
5125
|
return resume(self.effect);
|
|
@@ -5267,9 +5267,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5267
5267
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5268
5268
|
var succeed5 = function() {
|
|
5269
5269
|
if (arguments.length === 1) {
|
|
5270
|
-
return (resource) => succeedContext(
|
|
5270
|
+
return (resource) => succeedContext(make14(arguments[0], resource));
|
|
5271
5271
|
}
|
|
5272
|
-
return succeedContext(
|
|
5272
|
+
return succeedContext(make14(arguments[0], arguments[1]));
|
|
5273
5273
|
};
|
|
5274
5274
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5275
5275
|
var effect = function() {
|
|
@@ -5278,7 +5278,7 @@ var effect = function() {
|
|
|
5278
5278
|
}
|
|
5279
5279
|
return effectImpl(arguments[0], arguments[1]);
|
|
5280
5280
|
};
|
|
5281
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5281
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make14(service, value)));
|
|
5282
5282
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5283
5283
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5284
5284
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -8881,7 +8881,7 @@ function recur(ast) {
|
|
|
8881
8881
|
const rest = ast.rest.map(recur);
|
|
8882
8882
|
const [head, ...tail] = rest;
|
|
8883
8883
|
const tailLength = tail.length;
|
|
8884
|
-
return
|
|
8884
|
+
return make13((a, b) => {
|
|
8885
8885
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
8886
8886
|
return false;
|
|
8887
8887
|
}
|
|
@@ -8916,7 +8916,7 @@ function recur(ast) {
|
|
|
8916
8916
|
}
|
|
8917
8917
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
8918
8918
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
8919
|
-
return
|
|
8919
|
+
return make13((a, b) => {
|
|
8920
8920
|
if (!isObject2(a) || !isObject2(b)) {
|
|
8921
8921
|
return false;
|
|
8922
8922
|
}
|
|
@@ -8954,7 +8954,7 @@ function recur(ast) {
|
|
|
8954
8954
|
const types = toType2(ast).types;
|
|
8955
8955
|
const index = getCandidateIndex(types);
|
|
8956
8956
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
8957
|
-
return
|
|
8957
|
+
return make13((a, b) => {
|
|
8958
8958
|
const candidates = index(a, false);
|
|
8959
8959
|
for (let i = 0;i < candidates.length; i++) {
|
|
8960
8960
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -8967,7 +8967,7 @@ function recur(ast) {
|
|
|
8967
8967
|
}
|
|
8968
8968
|
case "Suspend": {
|
|
8969
8969
|
let equivalence;
|
|
8970
|
-
return
|
|
8970
|
+
return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
8971
8971
|
}
|
|
8972
8972
|
}
|
|
8973
8973
|
}
|
|
@@ -9068,7 +9068,7 @@ function isSchemaError(u) {
|
|
|
9068
9068
|
var TypeId12 = TypeId11;
|
|
9069
9069
|
function declareConstructor() {
|
|
9070
9070
|
return (typeParameters, run, annotations) => {
|
|
9071
|
-
return
|
|
9071
|
+
return make16(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make16(ast))), annotations));
|
|
9072
9072
|
};
|
|
9073
9073
|
}
|
|
9074
9074
|
function declare(is, annotations) {
|
|
@@ -9176,27 +9176,27 @@ function encodeUnknownSync(schema, options) {
|
|
|
9176
9176
|
};
|
|
9177
9177
|
}
|
|
9178
9178
|
var encodeSync = encodeUnknownSync;
|
|
9179
|
-
var
|
|
9179
|
+
var make16 = make5;
|
|
9180
9180
|
function isSchema(u) {
|
|
9181
9181
|
return hasProperty(u, TypeId12) && u[TypeId12] === TypeId12;
|
|
9182
9182
|
}
|
|
9183
|
-
var optionalKey = /* @__PURE__ */ lambda((schema) =>
|
|
9183
|
+
var optionalKey = /* @__PURE__ */ lambda((schema) => make16(optionalKey2(schema.ast), {
|
|
9184
9184
|
schema
|
|
9185
9185
|
}));
|
|
9186
9186
|
var optional = /* @__PURE__ */ lambda((self) => {
|
|
9187
9187
|
const schema = UndefinedOr(self);
|
|
9188
|
-
return
|
|
9188
|
+
return make16(optional2(self.ast), {
|
|
9189
9189
|
schema
|
|
9190
9190
|
});
|
|
9191
9191
|
});
|
|
9192
|
-
var toType = /* @__PURE__ */ lambda((schema) =>
|
|
9192
|
+
var toType = /* @__PURE__ */ lambda((schema) => make16(toType2(schema.ast), {
|
|
9193
9193
|
schema
|
|
9194
9194
|
}));
|
|
9195
|
-
var toEncoded2 = /* @__PURE__ */ lambda((schema) =>
|
|
9195
|
+
var toEncoded2 = /* @__PURE__ */ lambda((schema) => make16(toEncoded(schema.ast), {
|
|
9196
9196
|
schema
|
|
9197
9197
|
}));
|
|
9198
9198
|
function Literal(literal) {
|
|
9199
|
-
const out =
|
|
9199
|
+
const out = make16(new Literal2(literal), {
|
|
9200
9200
|
literal,
|
|
9201
9201
|
transform(to) {
|
|
9202
9202
|
return out.pipe(decodeTo2(Literal(to), {
|
|
@@ -9207,16 +9207,16 @@ function Literal(literal) {
|
|
|
9207
9207
|
});
|
|
9208
9208
|
return out;
|
|
9209
9209
|
}
|
|
9210
|
-
var Never = /* @__PURE__ */
|
|
9211
|
-
var Unknown = /* @__PURE__ */
|
|
9212
|
-
var Null = /* @__PURE__ */
|
|
9213
|
-
var Undefined2 = /* @__PURE__ */
|
|
9214
|
-
var String4 = /* @__PURE__ */
|
|
9215
|
-
var Number5 = /* @__PURE__ */
|
|
9216
|
-
var Boolean2 = /* @__PURE__ */
|
|
9217
|
-
var Void = /* @__PURE__ */
|
|
9210
|
+
var Never = /* @__PURE__ */ make16(never3);
|
|
9211
|
+
var Unknown = /* @__PURE__ */ make16(unknown);
|
|
9212
|
+
var Null = /* @__PURE__ */ make16(null_);
|
|
9213
|
+
var Undefined2 = /* @__PURE__ */ make16(undefined_3);
|
|
9214
|
+
var String4 = /* @__PURE__ */ make16(string2);
|
|
9215
|
+
var Number5 = /* @__PURE__ */ make16(number2);
|
|
9216
|
+
var Boolean2 = /* @__PURE__ */ make16(boolean);
|
|
9217
|
+
var Void = /* @__PURE__ */ make16(void_4);
|
|
9218
9218
|
function makeStruct(ast, fields) {
|
|
9219
|
-
return
|
|
9219
|
+
return make16(ast, {
|
|
9220
9220
|
fields,
|
|
9221
9221
|
mapFields(f, options) {
|
|
9222
9222
|
const fields = f(this.fields);
|
|
@@ -9228,25 +9228,25 @@ function Struct(fields) {
|
|
|
9228
9228
|
return makeStruct(struct(fields, undefined), fields);
|
|
9229
9229
|
}
|
|
9230
9230
|
function Record(key, value) {
|
|
9231
|
-
return
|
|
9231
|
+
return make16(record(key.ast, value.ast), {
|
|
9232
9232
|
key,
|
|
9233
9233
|
value
|
|
9234
9234
|
});
|
|
9235
9235
|
}
|
|
9236
9236
|
function StructWithRest(schema, records) {
|
|
9237
|
-
return
|
|
9237
|
+
return make16(structWithRest(schema.ast, records.map(getAST)), {
|
|
9238
9238
|
schema,
|
|
9239
9239
|
records
|
|
9240
9240
|
});
|
|
9241
9241
|
}
|
|
9242
|
-
var ArraySchema = /* @__PURE__ */ lambda((schema) =>
|
|
9242
|
+
var ArraySchema = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [], [schema.ast]), {
|
|
9243
9243
|
value: schema
|
|
9244
9244
|
}));
|
|
9245
|
-
var NonEmptyArray = /* @__PURE__ */ lambda((schema) =>
|
|
9245
|
+
var NonEmptyArray = /* @__PURE__ */ lambda((schema) => make16(new Arrays(false, [schema.ast], [schema.ast]), {
|
|
9246
9246
|
value: schema
|
|
9247
9247
|
}));
|
|
9248
9248
|
function makeUnion(ast, members) {
|
|
9249
|
-
return
|
|
9249
|
+
return make16(ast, {
|
|
9250
9250
|
members,
|
|
9251
9251
|
mapMembers(f, options) {
|
|
9252
9252
|
const members = f(this.members);
|
|
@@ -9259,7 +9259,7 @@ function Union(members, options) {
|
|
|
9259
9259
|
}
|
|
9260
9260
|
function Literals(literals) {
|
|
9261
9261
|
const members = literals.map(Literal);
|
|
9262
|
-
return
|
|
9262
|
+
return make16(union(members, undefined, undefined), {
|
|
9263
9263
|
literals,
|
|
9264
9264
|
members,
|
|
9265
9265
|
mapMembers(f) {
|
|
@@ -9276,18 +9276,18 @@ function Literals(literals) {
|
|
|
9276
9276
|
var NullOr = /* @__PURE__ */ lambda((self) => Union([self, Null]));
|
|
9277
9277
|
var UndefinedOr = /* @__PURE__ */ lambda((self) => Union([self, Undefined2]));
|
|
9278
9278
|
function suspend4(f) {
|
|
9279
|
-
return
|
|
9279
|
+
return make16(new Suspend(() => f().ast));
|
|
9280
9280
|
}
|
|
9281
9281
|
function decodeTo2(to, transformation) {
|
|
9282
9282
|
return (from) => {
|
|
9283
|
-
return
|
|
9283
|
+
return make16(decodeTo(from.ast, to.ast, transformation ? makeTransformation(transformation) : passthrough3()), {
|
|
9284
9284
|
from,
|
|
9285
9285
|
to
|
|
9286
9286
|
});
|
|
9287
9287
|
};
|
|
9288
9288
|
}
|
|
9289
9289
|
function withConstructorDefault2(defaultValue) {
|
|
9290
|
-
return (schema) =>
|
|
9290
|
+
return (schema) => make16(withConstructorDefault(schema.ast, defaultValue), {
|
|
9291
9291
|
schema
|
|
9292
9292
|
});
|
|
9293
9293
|
}
|
|
@@ -9363,7 +9363,7 @@ function isBase64(annotations) {
|
|
|
9363
9363
|
...annotations
|
|
9364
9364
|
});
|
|
9365
9365
|
}
|
|
9366
|
-
var Finite = /* @__PURE__ */
|
|
9366
|
+
var Finite = /* @__PURE__ */ make16(finite);
|
|
9367
9367
|
function makeIsGreaterThan(options) {
|
|
9368
9368
|
const gt = isGreaterThan2(options.order);
|
|
9369
9369
|
const formatter = options.formatter ?? format;
|
|
@@ -9886,7 +9886,7 @@ function CauseReason(error, defect) {
|
|
|
9886
9886
|
}
|
|
9887
9887
|
}))
|
|
9888
9888
|
});
|
|
9889
|
-
return
|
|
9889
|
+
return make16(schema.ast, {
|
|
9890
9890
|
error,
|
|
9891
9891
|
defect
|
|
9892
9892
|
});
|
|
@@ -9923,7 +9923,7 @@ function Cause(error, defect) {
|
|
|
9923
9923
|
}) => failures
|
|
9924
9924
|
}))
|
|
9925
9925
|
});
|
|
9926
|
-
return
|
|
9926
|
+
return make16(schema.ast, {
|
|
9927
9927
|
error,
|
|
9928
9928
|
defect
|
|
9929
9929
|
});
|
|
@@ -9984,7 +9984,7 @@ function Exit(value, error, defect) {
|
|
|
9984
9984
|
}
|
|
9985
9985
|
}))
|
|
9986
9986
|
});
|
|
9987
|
-
return
|
|
9987
|
+
return make16(schema.ast, {
|
|
9988
9988
|
value,
|
|
9989
9989
|
error,
|
|
9990
9990
|
defect
|
|
@@ -10088,7 +10088,7 @@ function getClassSchemaFactory(from, identifier, annotations) {
|
|
|
10088
10088
|
const ClassTypeId = getClassTypeId(identifier);
|
|
10089
10089
|
const isClassValue = (input) => input instanceof self || hasProperty(input, ClassTypeId);
|
|
10090
10090
|
const transformation = getClassTransformation(self);
|
|
10091
|
-
const to =
|
|
10091
|
+
const to = make16(new Declaration([from.ast], () => (input, ast, options) => {
|
|
10092
10092
|
return isClassValue(input) ? succeed6(input) : fail7(new InvalidType(ast, input, options));
|
|
10093
10093
|
}, {
|
|
10094
10094
|
identifier,
|
|
@@ -10141,7 +10141,7 @@ function toEquivalence(schema) {
|
|
|
10141
10141
|
}
|
|
10142
10142
|
var toCodecJson = toCodecJson2;
|
|
10143
10143
|
var toCodecStringTree = toCodecStringTree2;
|
|
10144
|
-
var Json = /* @__PURE__ */
|
|
10144
|
+
var Json = /* @__PURE__ */ make16(/* @__PURE__ */ annotate(Json2, {
|
|
10145
10145
|
toCode: () => ({
|
|
10146
10146
|
runtime: "Schema.Json",
|
|
10147
10147
|
Type: "Schema.Json"
|
|
@@ -10158,4 +10158,4 @@ var encodePrettyJsonString = encodeEffect(fromJsonString(Json, { space: 2 }));
|
|
|
10158
10158
|
var decodeJsonStringSync = decodeUnknownSync(JsonFromString);
|
|
10159
10159
|
var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
10160
10160
|
|
|
10161
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype,
|
|
10161
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make13, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get3, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make15, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make16, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
decodeText,
|
|
4
|
-
mkString,
|
|
5
|
-
FileSystem,
|
|
6
|
-
Path,
|
|
7
|
-
withDefault,
|
|
8
|
-
String2
|
|
9
|
-
} from "./chunk-397fax43.js";
|
|
10
2
|
import {
|
|
11
3
|
isString2,
|
|
12
4
|
hasProperty,
|
|
@@ -40,9 +32,9 @@ import {
|
|
|
40
32
|
toCodecJson,
|
|
41
33
|
Json,
|
|
42
34
|
encodePrettyJsonString
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import"./chunk-
|
|
45
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-xq4k0mgr.js";
|
|
36
|
+
import"./chunk-3wvp5n5a.js";
|
|
37
|
+
import"./chunk-292vjjdz.js";
|
|
46
38
|
import {
|
|
47
39
|
SecureRandom,
|
|
48
40
|
layerWebCrypto,
|
|
@@ -54,23 +46,31 @@ import {
|
|
|
54
46
|
layer4,
|
|
55
47
|
kitmanMcpServer,
|
|
56
48
|
RunnerRpcProtocolVersion
|
|
57
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-h8fq958v.js";
|
|
50
|
+
import {
|
|
51
|
+
decodeText,
|
|
52
|
+
mkString,
|
|
53
|
+
FileSystem,
|
|
54
|
+
Path,
|
|
55
|
+
withDefault,
|
|
56
|
+
String2
|
|
57
|
+
} from "./chunk-2fqry6rd.js";
|
|
58
58
|
import {
|
|
59
59
|
Packument,
|
|
60
60
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import"./chunk-
|
|
61
|
+
} from "./chunk-6tq2m8xc.js";
|
|
62
|
+
import"./chunk-gmt7awee.js";
|
|
63
63
|
import {
|
|
64
64
|
AgentDeclaration,
|
|
65
65
|
KitDeclarations,
|
|
66
66
|
describeFlag,
|
|
67
67
|
Described
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ekkjbmr9.js";
|
|
69
69
|
import {
|
|
70
70
|
ChildProcessSpawner,
|
|
71
71
|
make3
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import"./chunk-
|
|
72
|
+
} from "./chunk-bjexx93x.js";
|
|
73
|
+
import"./chunk-mak28dxp.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-xq4k0mgr.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3wvp5n5a.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-qnnsy306.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-wtx1vq9t.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-mr30hj39.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-wbdgjd1n.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|