@kitman-sh/cli 0.13.13 → 0.13.14
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-3z0wep73.js → chunk-06dwvzv0.js} +63 -63
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-pvza175a.js → chunk-3vbs995s.js} +115 -118
- package/dist/{chunk-nve4pjqm.js → chunk-4142qeg3.js} +3 -3
- package/dist/{chunk-7hf2d50x.js → chunk-5ba08a9e.js} +18 -18
- package/dist/{chunk-ga76znz9.js → chunk-5mxvqg32.js} +10 -10
- package/dist/{chunk-vbygjtdw.js → chunk-6agcvxbj.js} +10 -10
- package/dist/{chunk-b5abe9c7.js → chunk-89rpg6j9.js} +73 -73
- package/dist/{chunk-82w8rmkc.js → chunk-8xpdkxr7.js} +14 -60
- package/dist/{chunk-fc2bhh5v.js → chunk-aa30tt6t.js} +2 -2
- package/dist/{chunk-6kz6qa2h.js → chunk-d4kmyv5h.js} +4 -4
- package/dist/{chunk-s364dren.js → chunk-dwxqp8ez.js} +7 -7
- package/dist/{chunk-jwr0rr2p.js → chunk-ef3nzqng.js} +3 -3
- package/dist/{chunk-j2aw5bss.js → chunk-fk5238tn.js} +4 -4
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-nf9gdnsf.js → chunk-hgfphycc.js} +26 -17
- package/dist/{chunk-cxc8d0r3.js → chunk-hmt2egsx.js} +6 -6
- package/dist/{chunk-wh6eeetn.js → chunk-hw9fcfs0.js} +9 -9
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-ptn9g4wd.js → chunk-st8ggqv1.js} +21 -21
- package/dist/{chunk-4yzdyte6.js → chunk-vjsqg4a5.js} +9 -8
- package/dist/{chunk-7jege23c.js → chunk-vmww6hnk.js} +5 -5
- package/dist/{chunk-9rez0yze.js → chunk-zencwg2t.js} +1 -1
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make15,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-zgraq2y3.js";
|
|
108
108
|
import {
|
|
109
109
|
tap,
|
|
110
110
|
mapError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
withDefault,
|
|
117
117
|
option,
|
|
118
118
|
String2
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-hgfphycc.js";
|
|
120
120
|
import {
|
|
121
121
|
currentTimeMillis,
|
|
122
122
|
SecureRandom,
|
|
@@ -167,7 +167,7 @@ import {
|
|
|
167
167
|
digestSha256,
|
|
168
168
|
sha256Hasher,
|
|
169
169
|
raw,
|
|
170
|
-
|
|
170
|
+
make4,
|
|
171
171
|
get,
|
|
172
172
|
put,
|
|
173
173
|
HttpClient,
|
|
@@ -230,14 +230,14 @@ import {
|
|
|
230
230
|
harnessNames,
|
|
231
231
|
herdrRunnerCapabilities2,
|
|
232
232
|
declaredChecks
|
|
233
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-3vbs995s.js";
|
|
234
234
|
import {
|
|
235
235
|
Id
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-pxvd8w2v.js";
|
|
237
237
|
import {
|
|
238
238
|
ChildProcessSpawner,
|
|
239
|
-
|
|
240
|
-
} from "./chunk-
|
|
239
|
+
make2
|
|
240
|
+
} from "./chunk-8xpdkxr7.js";
|
|
241
241
|
|
|
242
242
|
// apps/cli/src/cli-error.ts
|
|
243
243
|
function cliErrorCode(error, status) {
|
|
@@ -1018,10 +1018,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1018
1018
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1019
1019
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1020
1020
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1021
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1021
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-fk5238tn.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1022
1022
|
});
|
|
1023
1023
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1024
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1024
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-fk5238tn.js")), (module) => module.updateHerdrCore(options))
|
|
1025
1025
|
});
|
|
1026
1026
|
var herdrCoreMissing = (error) => {
|
|
1027
1027
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1447,7 +1447,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1447
1447
|
});
|
|
1448
1448
|
var syncKits = (input) => gen(function* () {
|
|
1449
1449
|
const fs = yield* FileSystem;
|
|
1450
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1450
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-6agcvxbj.js"));
|
|
1451
1451
|
const harnesses = yield* syncTargets(input.harness);
|
|
1452
1452
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1453
1453
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1964,7 +1964,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1964
1964
|
run: (command, args) => runCommand2(command, args),
|
|
1965
1965
|
attach: (command, args) => gen(function* () {
|
|
1966
1966
|
const spawner = yield* ChildProcessSpawner;
|
|
1967
|
-
const handle = yield* spawner.spawn(
|
|
1967
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1968
1968
|
const exitCode = yield* handle.exitCode;
|
|
1969
1969
|
if (exitCode !== 0)
|
|
1970
1970
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2366,7 +2366,7 @@ var package_default = {
|
|
|
2366
2366
|
};
|
|
2367
2367
|
|
|
2368
2368
|
// apps/cli/src/scaffold.ts
|
|
2369
|
-
var cliVersion = "0.13.
|
|
2369
|
+
var cliVersion = "0.13.14";
|
|
2370
2370
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2371
2371
|
name,
|
|
2372
2372
|
private: true,
|
|
@@ -2518,7 +2518,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2518
2518
|
|
|
2519
2519
|
// apps/cli/src/commands.ts
|
|
2520
2520
|
var ClientId = "kitman-cli";
|
|
2521
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2521
|
+
var agentRuntime = promise(() => import("./chunk-06dwvzv0.js"));
|
|
2522
2522
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2523
2523
|
defaultValue: () => gen(function* () {
|
|
2524
2524
|
const tui = yield* tryPromise({
|
|
@@ -3554,7 +3554,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3554
3554
|
});
|
|
3555
3555
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3556
3556
|
defaultValue: () => (options) => gen(function* () {
|
|
3557
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3557
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-hmt2egsx.js"));
|
|
3558
3558
|
return yield* makeRunnerRpcClient({
|
|
3559
3559
|
runnerId: options.runnerId,
|
|
3560
3560
|
bearer: options.bearer,
|
|
@@ -3866,7 +3866,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3866
3866
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
|
|
3867
3867
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
3868
3868
|
const platform = yield* context();
|
|
3869
|
-
const updated = yield*
|
|
3869
|
+
const updated = yield* make15();
|
|
3870
3870
|
const scope = yield* scope2;
|
|
3871
3871
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3872
3872
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4118,7 +4118,7 @@ function mcpCommand(args) {
|
|
|
4118
4118
|
if (command.action === "run") {
|
|
4119
4119
|
if (command.args.length > 0)
|
|
4120
4120
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4121
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4121
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-89rpg6j9.js"));
|
|
4122
4122
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4123
4123
|
}
|
|
4124
4124
|
if (command.action !== "setup")
|
|
@@ -4606,7 +4606,7 @@ function programLoopCommand(command) {
|
|
|
4606
4606
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4607
4607
|
});
|
|
4608
4608
|
}
|
|
4609
|
-
var docsModule = promise(() => import("./chunk-
|
|
4609
|
+
var docsModule = promise(() => import("./chunk-zencwg2t.js"));
|
|
4610
4610
|
function docsCommand(args) {
|
|
4611
4611
|
return gen(function* () {
|
|
4612
4612
|
const command = parseCommand(args);
|
|
@@ -5441,9 +5441,9 @@ function changeRequestCommand(args) {
|
|
|
5441
5441
|
yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
|
|
5442
5442
|
});
|
|
5443
5443
|
}
|
|
5444
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5444
|
+
var KitWriter = map8(promise(() => import("./chunk-5ba08a9e.js")), (build) => build.writeKit);
|
|
5445
5445
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5446
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5446
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-5ba08a9e.js")), (build) => build.buildKit(directory))
|
|
5447
5447
|
});
|
|
5448
5448
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5449
5449
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6220,7 +6220,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6220
6220
|
return gen(function* () {
|
|
6221
6221
|
const fs = yield* FileSystem;
|
|
6222
6222
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6223
|
-
const response = yield* send(
|
|
6223
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
6224
6224
|
if (response.status < 200 || response.status >= 300)
|
|
6225
6225
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6226
6226
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -75,10 +75,14 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-zgraq2y3.js";
|
|
79
|
+
import {
|
|
80
|
+
runForEach,
|
|
81
|
+
FileSystem
|
|
82
|
+
} from "./chunk-hgfphycc.js";
|
|
79
83
|
import {
|
|
80
84
|
guard
|
|
81
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-pxvd8w2v.js";
|
|
82
86
|
import {
|
|
83
87
|
currentTimeMillis,
|
|
84
88
|
WebCrypto,
|
|
@@ -105,11 +109,7 @@ import {
|
|
|
105
109
|
KitDigest,
|
|
106
110
|
KitSetup,
|
|
107
111
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
109
|
-
import {
|
|
110
|
-
runForEach,
|
|
111
|
-
FileSystem
|
|
112
|
-
} from "./chunk-nf9gdnsf.js";
|
|
112
|
+
} from "./chunk-3vbs995s.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");
|
|
@@ -670,7 +670,8 @@ var CreateTasksRequest = Struct({
|
|
|
670
670
|
tickets: ArraySchema(PlanTicket),
|
|
671
671
|
projectId: optionalKey(String4),
|
|
672
672
|
builds: optionalKey(Boolean2),
|
|
673
|
-
releases: optionalKey(Boolean2)
|
|
673
|
+
releases: optionalKey(Boolean2),
|
|
674
|
+
planReviewed: optionalKey(Boolean2)
|
|
674
675
|
});
|
|
675
676
|
var CreateTasksResult = Struct({
|
|
676
677
|
tasks: ArraySchema(Struct({ key: String4, taskId: String4 }))
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-zgraq2y3.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-hgfphycc.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-3vbs995s.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 make3 = /* @__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, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -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++) {
|
|
@@ -1579,7 +1579,7 @@ var ServiceProto = {
|
|
|
1579
1579
|
return self;
|
|
1580
1580
|
},
|
|
1581
1581
|
context(self) {
|
|
1582
|
-
return
|
|
1582
|
+
return make14(this, self);
|
|
1583
1583
|
},
|
|
1584
1584
|
use(f) {
|
|
1585
1585
|
return withFiber((fiber) => f(get4(fiber.context, this)));
|
|
@@ -1683,7 +1683,7 @@ var isContext = (u) => hasProperty(u, TypeId3);
|
|
|
1683
1683
|
var isReference = (u) => !!u[ReferenceTypeId];
|
|
1684
1684
|
var empty3 = () => emptyContext2;
|
|
1685
1685
|
var emptyContext2 = /* @__PURE__ */ makeUnsafe4(/* @__PURE__ */ new Map);
|
|
1686
|
-
var
|
|
1686
|
+
var make14 = (key, service) => makeUnsafe4(new Map([[key.key, service]]));
|
|
1687
1687
|
var add = /* @__PURE__ */ dual(3, (self, key, service) => addUnsafe(self, key.key, service));
|
|
1688
1688
|
var addUnsafe = (self, key, service) => {
|
|
1689
1689
|
const impl = self;
|
|
@@ -3029,7 +3029,7 @@ class FiberImpl {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
let cause = causeInterrupt(fiberId);
|
|
3031
3031
|
if (this.cache.stackFrame) {
|
|
3032
|
-
cause = causeAnnotate(cause,
|
|
3032
|
+
cause = causeAnnotate(cause, make14(StackTraceKey, this.cache.stackFrame));
|
|
3033
3033
|
}
|
|
3034
3034
|
if (annotations) {
|
|
3035
3035
|
cause = causeAnnotate(cause, annotations);
|
|
@@ -5126,7 +5126,7 @@ var DeferredImpl = function() {
|
|
|
5126
5126
|
};
|
|
5127
5127
|
DeferredImpl.prototype = DeferredProto;
|
|
5128
5128
|
var makeUnsafe5 = () => new DeferredImpl;
|
|
5129
|
-
var
|
|
5129
|
+
var make15 = () => sync(() => makeUnsafe5());
|
|
5130
5130
|
var _await = (self) => callback2((resume) => {
|
|
5131
5131
|
if (self.effect)
|
|
5132
5132
|
return resume(self.effect);
|
|
@@ -5274,9 +5274,9 @@ var build = (self) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap
|
|
|
5274
5274
|
var buildWithScope = /* @__PURE__ */ dual(2, (self, scope) => withFiber((fiber) => buildWithMemoMap(self, CurrentMemoMap.forkOrCreate(fiber.context), scope)));
|
|
5275
5275
|
var succeed5 = function() {
|
|
5276
5276
|
if (arguments.length === 1) {
|
|
5277
|
-
return (resource) => succeedContext(
|
|
5277
|
+
return (resource) => succeedContext(make14(arguments[0], resource));
|
|
5278
5278
|
}
|
|
5279
|
-
return succeedContext(
|
|
5279
|
+
return succeedContext(make14(arguments[0], arguments[1]));
|
|
5280
5280
|
};
|
|
5281
5281
|
var succeedContext = (context) => fromBuildUnsafe(constant(succeed2(context)));
|
|
5282
5282
|
var effect = function() {
|
|
@@ -5285,7 +5285,7 @@ var effect = function() {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
return effectImpl(arguments[0], arguments[1]);
|
|
5287
5287
|
};
|
|
5288
|
-
var effectImpl = (service, effect) => effectContext(map7(effect, (value) =>
|
|
5288
|
+
var effectImpl = (service, effect) => effectContext(map7(effect, (value) => make14(service, value)));
|
|
5289
5289
|
var effectContext = (effect) => fromBuildMemo((_, scope) => provide(effect, scope));
|
|
5290
5290
|
var effectDiscard = (effect) => effectContext(as2(effect, empty3()));
|
|
5291
5291
|
var mergeAllEffect = (layers, memoMap, scope) => {
|
|
@@ -5865,6 +5865,48 @@ var getCode = (charCode) => {
|
|
|
5865
5865
|
return codes[charCode];
|
|
5866
5866
|
};
|
|
5867
5867
|
|
|
5868
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
5869
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
5870
|
+
var value2 = (self) => {
|
|
5871
|
+
if (redactedRegistry.has(self)) {
|
|
5872
|
+
return redactedRegistry.get(self);
|
|
5873
|
+
} else {
|
|
5874
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
5875
|
+
}
|
|
5876
|
+
};
|
|
5877
|
+
|
|
5878
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
5879
|
+
var TypeId8 = "~effect/Redacted";
|
|
5880
|
+
var isRedacted = (u) => hasProperty(u, TypeId8);
|
|
5881
|
+
var make16 = (value, options) => {
|
|
5882
|
+
const self = Object.create(Proto2);
|
|
5883
|
+
if (options?.label) {
|
|
5884
|
+
self.label = options.label;
|
|
5885
|
+
}
|
|
5886
|
+
redactedRegistry.set(self, value);
|
|
5887
|
+
return self;
|
|
5888
|
+
};
|
|
5889
|
+
var Proto2 = {
|
|
5890
|
+
[TypeId8]: {
|
|
5891
|
+
_A: (_) => _
|
|
5892
|
+
},
|
|
5893
|
+
label: undefined,
|
|
5894
|
+
...PipeInspectableProto,
|
|
5895
|
+
toJSON() {
|
|
5896
|
+
return this.toString();
|
|
5897
|
+
},
|
|
5898
|
+
toString() {
|
|
5899
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
5900
|
+
},
|
|
5901
|
+
[symbol]() {
|
|
5902
|
+
return hash(redactedRegistry.get(this));
|
|
5903
|
+
},
|
|
5904
|
+
[symbol2](that) {
|
|
5905
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
5906
|
+
}
|
|
5907
|
+
};
|
|
5908
|
+
var value = value2;
|
|
5909
|
+
|
|
5868
5910
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/annotations.js
|
|
5869
5911
|
function resolve(ast) {
|
|
5870
5912
|
return ast.checks ? ast.checks[ast.checks.length - 1].annotations : ast.annotations;
|
|
@@ -5888,16 +5930,16 @@ var toOption2 = (value) => value === missing ? none() : some(value);
|
|
|
5888
5930
|
var fromOptionExit = (option) => option._tag === "None" ? missingExit : succeed8(option.value);
|
|
5889
5931
|
|
|
5890
5932
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaIssue.js
|
|
5891
|
-
var
|
|
5933
|
+
var TypeId9 = "~effect/SchemaIssue/Issue";
|
|
5892
5934
|
function isIssue(u) {
|
|
5893
|
-
return hasProperty(u,
|
|
5935
|
+
return hasProperty(u, TypeId9) && u[TypeId9] === TypeId9;
|
|
5894
5936
|
}
|
|
5895
5937
|
function hasInput(issue) {
|
|
5896
5938
|
return Object.hasOwn(issue, "input");
|
|
5897
5939
|
}
|
|
5898
5940
|
|
|
5899
5941
|
class IssueNodeImpl {
|
|
5900
|
-
[
|
|
5942
|
+
[TypeId9] = TypeId9;
|
|
5901
5943
|
constructor(input, options) {
|
|
5902
5944
|
if (options?.reportInput === true && input !== missing) {
|
|
5903
5945
|
this.input = input;
|
|
@@ -6271,9 +6313,9 @@ function setContent(operation, content) {
|
|
|
6271
6313
|
}
|
|
6272
6314
|
|
|
6273
6315
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/SchemaTransformation.js
|
|
6274
|
-
var
|
|
6316
|
+
var TypeId10 = "~effect/SchemaTransformation/Transformation";
|
|
6275
6317
|
var Transformation = class extends Class3 {
|
|
6276
|
-
[
|
|
6318
|
+
[TypeId10] = TypeId10;
|
|
6277
6319
|
_tag = "Transformation";
|
|
6278
6320
|
decode;
|
|
6279
6321
|
encode;
|
|
@@ -6287,7 +6329,7 @@ var Transformation = class extends Class3 {
|
|
|
6287
6329
|
}
|
|
6288
6330
|
};
|
|
6289
6331
|
function isTransformation(u) {
|
|
6290
|
-
return hasProperty(u,
|
|
6332
|
+
return hasProperty(u, TypeId10) && u[TypeId10] === TypeId10;
|
|
6291
6333
|
}
|
|
6292
6334
|
var makeTransformation = (options) => {
|
|
6293
6335
|
if (isTransformation(options)) {
|
|
@@ -6407,10 +6449,10 @@ var Context = class {
|
|
|
6407
6449
|
this.annotations = annotations;
|
|
6408
6450
|
}
|
|
6409
6451
|
};
|
|
6410
|
-
var
|
|
6452
|
+
var TypeId11 = "~effect/Schema";
|
|
6411
6453
|
|
|
6412
6454
|
class ASTNodeImpl {
|
|
6413
|
-
[
|
|
6455
|
+
[TypeId11] = TypeId11;
|
|
6414
6456
|
annotations;
|
|
6415
6457
|
checks;
|
|
6416
6458
|
encoding;
|
|
@@ -8625,10 +8667,10 @@ var normalCompiler = (ast) => resolve2(ast).parser;
|
|
|
8625
8667
|
var constructorCompiler = (ast) => resolve2(ast).makeEffect;
|
|
8626
8668
|
|
|
8627
8669
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/schema/make.js
|
|
8628
|
-
var
|
|
8670
|
+
var TypeId12 = "~effect/Schema/Schema";
|
|
8629
8671
|
var RebuildOptions = /* @__PURE__ */ Symbol();
|
|
8630
8672
|
var SchemaProto = {
|
|
8631
|
-
[
|
|
8673
|
+
[TypeId12]: TypeId12,
|
|
8632
8674
|
get make() {
|
|
8633
8675
|
const value = make4(this);
|
|
8634
8676
|
Object.defineProperty(this, "make", {
|
|
@@ -8889,7 +8931,7 @@ function recur(ast) {
|
|
|
8889
8931
|
const rest = ast.rest.map(recur);
|
|
8890
8932
|
const [head, ...tail] = rest;
|
|
8891
8933
|
const tailLength = tail.length;
|
|
8892
|
-
return
|
|
8934
|
+
return make13((a, b) => {
|
|
8893
8935
|
if (!Array.isArray(a) || !Array.isArray(b)) {
|
|
8894
8936
|
return false;
|
|
8895
8937
|
}
|
|
@@ -8924,7 +8966,7 @@ function recur(ast) {
|
|
|
8924
8966
|
}
|
|
8925
8967
|
const propertySignatures = ast.propertySignatures.map((ps) => recur(ps.type));
|
|
8926
8968
|
const indexSignatures = ast.indexSignatures.map((is) => recur(is.type));
|
|
8927
|
-
return
|
|
8969
|
+
return make13((a, b) => {
|
|
8928
8970
|
if (!isObject(a) || !isObject(b)) {
|
|
8929
8971
|
return false;
|
|
8930
8972
|
}
|
|
@@ -8962,7 +9004,7 @@ function recur(ast) {
|
|
|
8962
9004
|
const types = toType2(ast).types;
|
|
8963
9005
|
const index = getCandidateIndex(types);
|
|
8964
9006
|
const compiled = types.map((candidate, i) => [_is(candidate), recur(ast.types[i])]);
|
|
8965
|
-
return
|
|
9007
|
+
return make13((a, b) => {
|
|
8966
9008
|
const candidates = index(a, false);
|
|
8967
9009
|
for (let i = 0;i < candidates.length; i++) {
|
|
8968
9010
|
const [is, equivalence] = compiled[candidates[i]];
|
|
@@ -8975,7 +9017,7 @@ function recur(ast) {
|
|
|
8975
9017
|
}
|
|
8976
9018
|
case "Suspend": {
|
|
8977
9019
|
let equivalence;
|
|
8978
|
-
return
|
|
9020
|
+
return make13((a, b) => (equivalence ??= toEquivalence2(ast.thunk()))(a, b));
|
|
8979
9021
|
}
|
|
8980
9022
|
}
|
|
8981
9023
|
}
|
|
@@ -9073,7 +9115,7 @@ function isSchemaError(u) {
|
|
|
9073
9115
|
}
|
|
9074
9116
|
|
|
9075
9117
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Schema.js
|
|
9076
|
-
var
|
|
9118
|
+
var TypeId13 = TypeId12;
|
|
9077
9119
|
function declareConstructor() {
|
|
9078
9120
|
return (typeParameters, run, annotations) => {
|
|
9079
9121
|
return make17(new Declaration(typeParameters.map(getAST), (typeParameters) => run(typeParameters.map((ast) => make17(ast))), annotations));
|
|
@@ -9186,7 +9228,7 @@ function encodeUnknownSync(schema, options) {
|
|
|
9186
9228
|
var encodeSync = encodeUnknownSync;
|
|
9187
9229
|
var make17 = make5;
|
|
9188
9230
|
function isSchema(u) {
|
|
9189
|
-
return hasProperty(u,
|
|
9231
|
+
return hasProperty(u, TypeId13) && u[TypeId13] === TypeId13;
|
|
9190
9232
|
}
|
|
9191
9233
|
var optionalKey = /* @__PURE__ */ lambda((schema) => make17(optionalKey2(schema.ast), {
|
|
9192
9234
|
schema
|
|
@@ -10017,7 +10059,7 @@ function makeClass(Inherited, identifier, struct2, annotations, proto) {
|
|
|
10017
10059
|
}
|
|
10018
10060
|
});
|
|
10019
10061
|
}
|
|
10020
|
-
static [
|
|
10062
|
+
static [TypeId13] = TypeId13;
|
|
10021
10063
|
get [ClassTypeId]() {
|
|
10022
10064
|
return ClassTypeId;
|
|
10023
10065
|
}
|
|
@@ -10296,4 +10338,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
10296
10338
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
10297
10339
|
var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
|
|
10298
10340
|
|
|
10299
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, 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,
|
|
10341
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, 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, exists, Service2, makeUnsafe4, empty3, make14, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, 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, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, isRedacted, make16, value, 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, make17, 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, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|
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-aa30tt6t.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-mmd7mjv0.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-d4kmyv5h.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-st8ggqv1.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|