@kitman-sh/cli 0.10.100 → 0.10.102
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-r3rap6hz.js → chunk-1824vyqt.js} +19 -19
- package/dist/{chunk-9xj0djtp.js → chunk-28kmza26.js} +8 -8
- package/dist/{chunk-1kww1jdz.js → chunk-30mfra3r.js} +1 -1
- package/dist/{chunk-hcpjfshb.js → chunk-4e3070mq.js} +6 -6
- package/dist/{chunk-p3kwtm82.js → chunk-5esfnamp.js} +2 -2
- package/dist/{chunk-wyh06par.js → chunk-7hdxkt3m.js} +144 -294
- package/dist/{chunk-cpx45jzk.js → chunk-7hyjcw2c.js} +5 -5
- package/dist/{chunk-tqw2rkc9.js → chunk-9927sg3a.js} +3 -3
- package/dist/{chunk-mjrr0wzp.js → chunk-9nrr1dwr.js} +177 -28
- package/dist/{chunk-gs6qdy2k.js → chunk-c7ym0ce7.js} +2 -2
- package/dist/{chunk-ayfdkptb.js → chunk-che5w0y4.js} +60 -60
- package/dist/{chunk-cy7cy84h.js → chunk-dpwfg8pd.js} +17 -17
- package/dist/{chunk-mtz8f1hn.js → chunk-drycn4dz.js} +7 -7
- package/dist/{chunk-tk85pw4z.js → chunk-gfzd3shg.js} +9 -9
- package/dist/{chunk-1nw7sbtr.js → chunk-hrj6w0wd.js} +10 -6
- package/dist/{chunk-6sanfepb.js → chunk-hv44tcjs.js} +6 -6
- package/dist/{chunk-wzkdjdb7.js → chunk-hxqxdy21.js} +1 -1
- package/dist/{chunk-1k3cvdbt.js → chunk-pjpq1d7r.js} +4 -4
- package/dist/{chunk-4c78jfqk.js → chunk-s27r6x3a.js} +5 -5
- package/dist/{chunk-qv9te9gr.js → chunk-tbrpndp2.js} +2 -2
- package/dist/{chunk-5z0cwmet.js → chunk-v8201s35.js} +75 -28
- package/dist/{chunk-mk8vsaj7.js → chunk-xckn5gax.js} +1 -1
- package/dist/{chunk-vatjyw59.js → chunk-xzbn3377.js} +17 -17
- package/dist/{chunk-0rf10v29.js → chunk-yjnrw9yb.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-che5w0y4.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-30mfra3r.js";
|
|
82
82
|
import {
|
|
83
83
|
currentTimeMillis,
|
|
84
84
|
WebCrypto,
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-7hdxkt3m.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-9nrr1dwr.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");
|
|
@@ -687,11 +687,15 @@ var IntegrationBranch = Struct({
|
|
|
687
687
|
});
|
|
688
688
|
var MergeChangeRequestRequest = Struct({
|
|
689
689
|
changeRequestId: String4,
|
|
690
|
-
head: optionalKey(String4)
|
|
690
|
+
head: optionalKey(String4),
|
|
691
|
+
rebase: optionalKey(Boolean2)
|
|
691
692
|
});
|
|
692
693
|
var MergeResult = Union([
|
|
693
694
|
Struct({ status: Literal("merged"), revision: String4 }),
|
|
694
|
-
Struct({
|
|
695
|
+
Struct({
|
|
696
|
+
status: Literal("conflict"),
|
|
697
|
+
reason: optionalKey(Literals(["conflicts", "behind", "not_ready"]))
|
|
698
|
+
}),
|
|
695
699
|
Struct({ status: Literal("moved"), head: String4 })
|
|
696
700
|
]);
|
|
697
701
|
var ApproveChangeRequestRequest = Struct({
|
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
NullOr,
|
|
23
23
|
Finite,
|
|
24
24
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-che5w0y4.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-hxqxdy21.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
make11,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-9nrr1dwr.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
38
|
make3
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-5esfnamp.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -170,7 +170,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
|
|
|
170
170
|
const spawner = yield* ChildProcessSpawner;
|
|
171
171
|
const [command, ...args] = opencodeReaderCommand();
|
|
172
172
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
173
|
-
stdin:
|
|
173
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|
|
176
176
|
env: {},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-5esfnamp.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-7hdxkt3m.js";
|
|
16
|
+
import"./chunk-9nrr1dwr.js";
|
|
17
|
+
import"./chunk-che5w0y4.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-hv44tcjs.js";
|
|
11
|
+
import"./chunk-5esfnamp.js";
|
|
12
|
+
import"./chunk-hxqxdy21.js";
|
|
13
|
+
import"./chunk-9nrr1dwr.js";
|
|
14
|
+
import"./chunk-che5w0y4.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-che5w0y4.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-30mfra3r.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOrUndefined,
|
|
7
7
|
Reference,
|
|
8
8
|
TaggedError,
|
|
9
|
-
|
|
9
|
+
make16,
|
|
10
10
|
_await,
|
|
11
11
|
fail5,
|
|
12
12
|
succeed5,
|
|
@@ -87,7 +87,19 @@ import {
|
|
|
87
87
|
decodeJsonString,
|
|
88
88
|
encodeJsonStringSync,
|
|
89
89
|
encodePrettyJsonString
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-che5w0y4.js";
|
|
91
|
+
import {
|
|
92
|
+
tap,
|
|
93
|
+
mapError,
|
|
94
|
+
decodeText,
|
|
95
|
+
run,
|
|
96
|
+
mkString,
|
|
97
|
+
FileSystem,
|
|
98
|
+
Path,
|
|
99
|
+
withDefault,
|
|
100
|
+
option,
|
|
101
|
+
String2
|
|
102
|
+
} from "./chunk-9nrr1dwr.js";
|
|
91
103
|
import {
|
|
92
104
|
currentTimeMillis,
|
|
93
105
|
SecureRandom,
|
|
@@ -195,10 +207,10 @@ import {
|
|
|
195
207
|
harnessNames,
|
|
196
208
|
herdrRunnerCapabilities2,
|
|
197
209
|
declaredChecks
|
|
198
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-7hdxkt3m.js";
|
|
199
211
|
import {
|
|
200
212
|
Id
|
|
201
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-30mfra3r.js";
|
|
202
214
|
import {
|
|
203
215
|
toJsonValue,
|
|
204
216
|
isOneOf,
|
|
@@ -208,23 +220,11 @@ import {
|
|
|
208
220
|
isObject,
|
|
209
221
|
isJsonObject,
|
|
210
222
|
isString
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import {
|
|
213
|
-
tap,
|
|
214
|
-
mapError,
|
|
215
|
-
decodeText,
|
|
216
|
-
run,
|
|
217
|
-
mkString,
|
|
218
|
-
FileSystem,
|
|
219
|
-
Path,
|
|
220
|
-
withDefault,
|
|
221
|
-
option,
|
|
222
|
-
String2
|
|
223
|
-
} from "./chunk-mjrr0wzp.js";
|
|
223
|
+
} from "./chunk-hxqxdy21.js";
|
|
224
224
|
import {
|
|
225
225
|
ChildProcessSpawner,
|
|
226
226
|
make3
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-5esfnamp.js";
|
|
228
228
|
|
|
229
229
|
// apps/cli/src/cli-error.ts
|
|
230
230
|
function cliErrorCode(error, status) {
|
|
@@ -507,10 +507,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
507
507
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
508
508
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
509
509
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
510
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
510
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pjpq1d7r.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
511
511
|
});
|
|
512
512
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
513
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
513
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-pjpq1d7r.js")), (module) => module.updateHerdrCore(options))
|
|
514
514
|
});
|
|
515
515
|
var herdrCoreMissing = (error) => {
|
|
516
516
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -861,7 +861,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
861
861
|
});
|
|
862
862
|
var syncKits = (input) => gen(function* () {
|
|
863
863
|
const fs = yield* FileSystem;
|
|
864
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
864
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-28kmza26.js"));
|
|
865
865
|
const harnesses = yield* syncTargets(input.harness);
|
|
866
866
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
867
867
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1779,7 +1779,7 @@ var package_default = {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
|
|
1781
1781
|
// apps/cli/src/scaffold.ts
|
|
1782
|
-
var cliVersion = "0.10.
|
|
1782
|
+
var cliVersion = "0.10.102";
|
|
1783
1783
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1784
1784
|
name,
|
|
1785
1785
|
private: true,
|
|
@@ -1968,6 +1968,8 @@ var Usage = [
|
|
|
1968
1968
|
" kitman inbox read|unread|done|undone|unsnooze <task:id|run:id|proposal:id|project_update:id>...",
|
|
1969
1969
|
" kitman inbox snooze <task:id|run:id|proposal:id|project_update:id>... --until <time>",
|
|
1970
1970
|
" kitman inbox unsubscribe <task>...",
|
|
1971
|
+
" kitman cr approve <id|url> [--summary <text>] (approves the head Kitman last saw; only a person, not an agent or a tool acting for one)",
|
|
1972
|
+
" kitman cr request-changes <id|url> --summary <text>",
|
|
1971
1973
|
"",
|
|
1972
1974
|
"",
|
|
1973
1975
|
"Loops and Agents the Kits deployed here declare (kitman deploy changes them):",
|
|
@@ -2032,7 +2034,7 @@ var Usage = [
|
|
|
2032
2034
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
2033
2035
|
].join(`
|
|
2034
2036
|
`);
|
|
2035
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2037
|
+
var agentRuntime = promise(() => import("./chunk-1824vyqt.js"));
|
|
2036
2038
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2037
2039
|
defaultValue: () => gen(function* () {
|
|
2038
2040
|
const tui = yield* tryPromise({
|
|
@@ -2111,6 +2113,8 @@ function runEffect(args) {
|
|
|
2111
2113
|
return yield* networkHostCommand(args);
|
|
2112
2114
|
if (command === "claim")
|
|
2113
2115
|
return yield* claimCommand(args);
|
|
2116
|
+
if (command === "cr")
|
|
2117
|
+
return yield* changeRequestCommand(args);
|
|
2114
2118
|
if (command === "deploy")
|
|
2115
2119
|
return yield* rest[0] === "bind" || rest[0] === "bindings" || rest[0] === "unbind" ? deployBindingCommand(args) : deployCommand(["deploy", "deploy", ...rest]);
|
|
2116
2120
|
if (command === "dev")
|
|
@@ -2926,7 +2930,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2926
2930
|
});
|
|
2927
2931
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2928
2932
|
defaultValue: () => (options) => gen(function* () {
|
|
2929
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2933
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-drycn4dz.js"));
|
|
2930
2934
|
return yield* makeRunnerRpcClient({
|
|
2931
2935
|
runnerId: options.runnerId,
|
|
2932
2936
|
bearer: options.bearer,
|
|
@@ -3165,7 +3169,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3165
3169
|
});
|
|
3166
3170
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3167
3171
|
const platform = yield* context();
|
|
3168
|
-
const updated = yield*
|
|
3172
|
+
const updated = yield* make16();
|
|
3169
3173
|
const scope = yield* scope2;
|
|
3170
3174
|
yield* listenForSignals({
|
|
3171
3175
|
rpc,
|
|
@@ -3403,7 +3407,7 @@ function mcpCommand(args) {
|
|
|
3403
3407
|
if (command.action === "run") {
|
|
3404
3408
|
if (command.args.length > 0)
|
|
3405
3409
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3406
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3410
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-gfzd3shg.js"));
|
|
3407
3411
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3408
3412
|
}
|
|
3409
3413
|
if (command.action !== "setup")
|
|
@@ -4614,9 +4618,52 @@ function claimCommand(args) {
|
|
|
4614
4618
|
}
|
|
4615
4619
|
});
|
|
4616
4620
|
}
|
|
4617
|
-
var
|
|
4621
|
+
var urlLookupLimit = 100;
|
|
4622
|
+
var changeRequestNamed = (client, workspaceId, ref) => gen(function* () {
|
|
4623
|
+
if (!/^https?:\/\//i.test(ref))
|
|
4624
|
+
return yield* client.getChangeRequest(ref);
|
|
4625
|
+
const wanted = ref.replace(/\/+$/, "");
|
|
4626
|
+
for (const team of (yield* client.listTeams(workspaceId)).items)
|
|
4627
|
+
for (const status of ["open", "draft"]) {
|
|
4628
|
+
const found = (yield* client.listChangeRequests(team.id, { status, limit: urlLookupLimit })).items.find((candidate) => candidate.url.replace(/\/+$/, "") === wanted);
|
|
4629
|
+
if (found !== undefined)
|
|
4630
|
+
return found;
|
|
4631
|
+
}
|
|
4632
|
+
return yield* new CliError({
|
|
4633
|
+
message: `No open or draft ChangeRequest among each Team's ${urlLookupLimit} most recently updated has the URL ${ref}; name it by its id instead`
|
|
4634
|
+
});
|
|
4635
|
+
});
|
|
4636
|
+
function changeRequestCommand(args) {
|
|
4637
|
+
return gen(function* () {
|
|
4638
|
+
const command = parseCommand(args);
|
|
4639
|
+
const client = yield* loopClientFor(yield* resolveApiUrl(command.flags.apiUrl));
|
|
4640
|
+
const workspaceId = yield* activeWorkspaceId(command.flags);
|
|
4641
|
+
if (command.action !== "approve" && command.action !== "request-changes")
|
|
4642
|
+
return yield* new CliError({ message: `Unknown cr command: ${command.action}` });
|
|
4643
|
+
const { summary } = command.flags;
|
|
4644
|
+
if (command.action === "request-changes" && summary === undefined)
|
|
4645
|
+
return yield* new CliError({ message: "Say what should change with --summary <text>" });
|
|
4646
|
+
const named = yield* changeRequestNamed(client, workspaceId, requiredArg(command, "a ChangeRequest id or URL"));
|
|
4647
|
+
const changeRequest = yield* client.refreshChangeRequest(named.id).pipe(catch_((error2) => as(error(`warning: could not read ${named.title} from the forge (${error2.message}), so this names the head Kitman last saw`), named)));
|
|
4648
|
+
const head = changeRequest.providerMetadata?.headCommitSha;
|
|
4649
|
+
if (command.action === "approve" && head === undefined)
|
|
4650
|
+
return yield* new CliError({
|
|
4651
|
+
message: `Kitman has not seen the head of ${changeRequest.title}; refresh it on ${changeRequest.url} and try again`
|
|
4652
|
+
});
|
|
4653
|
+
const short = head?.slice(0, 12) ?? "the head";
|
|
4654
|
+
const review = yield* client.recordChangeRequestReview(changeRequest.id, {
|
|
4655
|
+
outcome: command.action === "approve" ? "approved" : "changes_requested",
|
|
4656
|
+
summary: summary ?? `Approved ${short} with the Kitman CLI.`,
|
|
4657
|
+
...head === undefined ? undefined : { headCommitSha: head }
|
|
4658
|
+
});
|
|
4659
|
+
if (command.flags.json)
|
|
4660
|
+
return yield* printJson(review);
|
|
4661
|
+
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}`);
|
|
4662
|
+
});
|
|
4663
|
+
}
|
|
4664
|
+
var KitWriter = map8(promise(() => import("./chunk-dpwfg8pd.js")), (build) => build.writeKit);
|
|
4618
4665
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4619
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4666
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-dpwfg8pd.js")), (build) => build.buildKit(directory))
|
|
4620
4667
|
});
|
|
4621
4668
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4622
4669
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get4,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -96,7 +96,19 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-che5w0y4.js";
|
|
100
|
+
import {
|
|
101
|
+
interrupt,
|
|
102
|
+
getCurrent,
|
|
103
|
+
makeUnsafe2,
|
|
104
|
+
bounded,
|
|
105
|
+
offerAll,
|
|
106
|
+
failCause,
|
|
107
|
+
end,
|
|
108
|
+
shutdownUnsafe,
|
|
109
|
+
fromQueue,
|
|
110
|
+
unwrap
|
|
111
|
+
} from "./chunk-9nrr1dwr.js";
|
|
100
112
|
import {
|
|
101
113
|
Clock,
|
|
102
114
|
empty,
|
|
@@ -111,19 +123,7 @@ import {
|
|
|
111
123
|
ParseOptions,
|
|
112
124
|
RpcClientDefect,
|
|
113
125
|
RpcClientError
|
|
114
|
-
} from "./chunk-
|
|
115
|
-
import {
|
|
116
|
-
interrupt,
|
|
117
|
-
getCurrent,
|
|
118
|
-
makeUnsafe2,
|
|
119
|
-
bounded,
|
|
120
|
-
offerAll,
|
|
121
|
-
failCause,
|
|
122
|
-
end,
|
|
123
|
-
shutdownUnsafe,
|
|
124
|
-
fromQueue,
|
|
125
|
-
unwrap
|
|
126
|
-
} from "./chunk-mjrr0wzp.js";
|
|
126
|
+
} from "./chunk-7hdxkt3m.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")) {
|
|
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
237
237
|
const disableTracing = options?.disableTracing ?? false;
|
|
238
238
|
const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
|
|
239
239
|
const services = yield* context();
|
|
240
|
-
const scope =
|
|
240
|
+
const scope = get4(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
|
|
|
643
643
|
return entry;
|
|
644
644
|
}
|
|
645
645
|
const streamSchemas = getStreamSchemas(rpc.successSchema);
|
|
646
|
-
const parseOptions =
|
|
646
|
+
const parseOptions = get4(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|
|
@@ -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-tbrpndp2.js";
|
|
8
|
+
import"./chunk-30mfra3r.js";
|
|
9
|
+
import"./chunk-hxqxdy21.js";
|
|
10
|
+
import"./chunk-che5w0y4.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
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-c7ym0ce7.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-yjnrw9yb.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-s27r6x3a.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-v8201s35.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|