@kitman-sh/cli 0.12.6 → 0.12.8
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-s8m2tzdr.js → chunk-0tjg9eya.js} +1 -1
- package/dist/{chunk-vkchn89k.js → chunk-31gpnkq3.js} +5 -5
- package/dist/{chunk-n17dr5c1.js → chunk-3x6cbhzd.js} +4 -4
- package/dist/{chunk-892qrkb3.js → chunk-6d53ezj1.js} +62 -16
- package/dist/{chunk-dcnn882c.js → chunk-6w7ajkm8.js} +29 -29
- package/dist/{chunk-fen5480a.js → chunk-93ypzdpa.js} +7 -7
- package/dist/{chunk-jk5fp5cy.js → chunk-9qp59fht.js} +48 -48
- package/dist/{chunk-8djn7v2p.js → chunk-bh9k3kty.js} +59 -59
- package/dist/{chunk-x5t0c4g4.js → chunk-c8hwfktd.js} +7 -7
- package/dist/{chunk-y7vjk8vv.js → chunk-c8wpw9nh.js} +207 -222
- package/dist/{chunk-gezjwdpw.js → chunk-cr3qw0xf.js} +373 -448
- package/dist/{chunk-mm2m3bys.js → chunk-cw61zyh5.js} +1 -1
- package/dist/{chunk-bz4bp0q7.js → chunk-fh58za51.js} +3 -3
- package/dist/{chunk-7ncc3m3n.js → chunk-gyek54h3.js} +8 -8
- package/dist/{chunk-8sz25ptv.js → chunk-j1cnq2j0.js} +4 -4
- package/dist/{chunk-wberffvr.js → chunk-jwrs9pfa.js} +108 -108
- package/dist/{chunk-e711ebdj.js → chunk-kzwdhdej.js} +2 -2
- package/dist/{chunk-7tnm4jef.js → chunk-n9351czb.js} +7 -7
- package/dist/{chunk-k3ak93p1.js → chunk-pjpfc3sd.js} +1 -1
- package/dist/{chunk-x3cc7dfc.js → chunk-qjqa338f.js} +302 -249
- package/dist/{chunk-v4wn0tz8.js → chunk-s5pzy86v.js} +6 -6
- package/dist/{chunk-gtsq369x.js → chunk-tgwa9vqw.js} +9 -9
- package/dist/{chunk-23245qh7.js → chunk-wcvfkdwd.js} +26 -26
- package/dist/{chunk-rvpfyjtv.js → chunk-xng6j3a8.js} +1 -1
- package/dist/{chunk-skqn4h13.js → chunk-z5f7g1w1.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-tgwa9vqw.js";
|
|
8
|
+
import"./chunk-wcvfkdwd.js";
|
|
9
|
+
import"./chunk-cr3qw0xf.js";
|
|
10
|
+
import"./chunk-0tjg9eya.js";
|
|
11
|
+
import"./chunk-c8wpw9nh.js";
|
|
12
|
+
import"./chunk-qjqa338f.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -6,10 +6,7 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
runForEach
|
|
12
|
-
} from "./chunk-y7vjk8vv.js";
|
|
9
|
+
} from "./chunk-qjqa338f.js";
|
|
13
10
|
import {
|
|
14
11
|
WebSocketConstructor,
|
|
15
12
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +16,16 @@ import {
|
|
|
19
16
|
RunnerReplicaRpcs,
|
|
20
17
|
RunnerRunFileRpcs,
|
|
21
18
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-cr3qw0xf.js";
|
|
20
|
+
import {
|
|
21
|
+
runForEach
|
|
22
|
+
} from "./chunk-c8wpw9nh.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-wcvfkdwd.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get3,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
interrupt2,
|
|
23
23
|
void_2,
|
|
24
24
|
isFailure2,
|
|
25
|
-
|
|
25
|
+
makeUnsafe4,
|
|
26
26
|
_await,
|
|
27
27
|
isDoneUnsafe,
|
|
28
28
|
succeed4,
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
findError,
|
|
37
37
|
hasInterrupts2,
|
|
38
38
|
interruptors,
|
|
39
|
+
Clock,
|
|
39
40
|
min2,
|
|
40
41
|
exponential,
|
|
41
42
|
spaced,
|
|
@@ -51,7 +52,7 @@ import {
|
|
|
51
52
|
withFiber2,
|
|
52
53
|
flatMap3,
|
|
53
54
|
andThen2,
|
|
54
|
-
|
|
55
|
+
map7,
|
|
55
56
|
catchCause2,
|
|
56
57
|
catchCauseIf,
|
|
57
58
|
orDie,
|
|
@@ -96,21 +97,8 @@ import {
|
|
|
96
97
|
Defect,
|
|
97
98
|
Exit,
|
|
98
99
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
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-y7vjk8vv.js";
|
|
100
|
+
} from "./chunk-qjqa338f.js";
|
|
112
101
|
import {
|
|
113
|
-
Clock,
|
|
114
102
|
empty,
|
|
115
103
|
fromInput,
|
|
116
104
|
merge,
|
|
@@ -123,7 +111,19 @@ import {
|
|
|
123
111
|
ParseOptions,
|
|
124
112
|
RpcClientDefect,
|
|
125
113
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-cr3qw0xf.js";
|
|
115
|
+
import {
|
|
116
|
+
interrupt,
|
|
117
|
+
getCurrent,
|
|
118
|
+
makeUnsafe,
|
|
119
|
+
bounded,
|
|
120
|
+
offerAll,
|
|
121
|
+
failCause,
|
|
122
|
+
end,
|
|
123
|
+
shutdownUnsafe,
|
|
124
|
+
fromQueue,
|
|
125
|
+
unwrap
|
|
126
|
+
} from "./chunk-c8wpw9nh.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")) {
|
|
@@ -200,7 +200,7 @@ var withRunClient = (f) => suspend3(() => {
|
|
|
200
200
|
buffer.push([data, context]);
|
|
201
201
|
return void_3;
|
|
202
202
|
});
|
|
203
|
-
return
|
|
203
|
+
return map7(f((clientId, data) => {
|
|
204
204
|
const clientWrite = clientWrites.get(clientId);
|
|
205
205
|
if (clientWrite) {
|
|
206
206
|
return clientWrite(data);
|
|
@@ -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 = get3(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -271,7 +271,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
271
271
|
const queue = onStreamRequest(rpc, middleware, rpc.payloadSchema.make(payload), headers, opts?.streamBufferSize ?? 16, context);
|
|
272
272
|
if (opts?.asQueue)
|
|
273
273
|
return queue;
|
|
274
|
-
return unwrap(
|
|
274
|
+
return unwrap(map7(queue, fromQueue));
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
const onEffectRequest = (rpc, middleware, span, payload, headers, context, discard) => withFiber2((parentFiber) => {
|
|
@@ -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,
|
|
@@ -495,7 +495,7 @@ var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
|
495
495
|
const rpcSchemas = makeRpcSchemas(codecFor);
|
|
496
496
|
const decodeDefect = decodeSync(codecFor(Defect()));
|
|
497
497
|
const entries = new Map;
|
|
498
|
-
const closing =
|
|
498
|
+
const closing = makeUnsafe4();
|
|
499
499
|
const interruptRequest = (requestId) => {
|
|
500
500
|
if (!entries.has(requestId))
|
|
501
501
|
return void_3;
|
|
@@ -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 = get3(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|
|
@@ -804,7 +804,7 @@ var makePinger = /* @__PURE__ */ fnUntraced(function* (writePing, options) {
|
|
|
804
804
|
const timeoutMillis = toMillis(options?.pingTimeout ?? interval);
|
|
805
805
|
let lastSeen = clock.currentTimeMillisUnsafe();
|
|
806
806
|
let awaitingResponse = false;
|
|
807
|
-
const latch =
|
|
807
|
+
const latch = makeUnsafe();
|
|
808
808
|
const onFrame = () => {
|
|
809
809
|
lastSeen = clock.currentTimeMillisUnsafe();
|
|
810
810
|
awaitingResponse = false;
|
|
@@ -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 };
|
|
@@ -1481,7 +1481,7 @@ var pathOfLink = (link) => {
|
|
|
1481
1481
|
return page === null ? link : page[1] || "index";
|
|
1482
1482
|
};
|
|
1483
1483
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1484
|
-
var pinnedLink2 = (link, version = "0.12.
|
|
1484
|
+
var pinnedLink2 = (link, version = "0.12.8") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1485
1485
|
var pageOf = (path) => path.split("#")[0];
|
|
1486
1486
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1487
1487
|
function excerpt(text, queryTerms) {
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-qjqa338f.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-0tjg9eya.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-kzwdhdej.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-fh58za51.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-j1cnq2j0.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-bh9k3kty.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|