@kitman-sh/cli 0.12.5 → 0.12.6
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-4ksq2d3k.js → chunk-23245qh7.js} +5 -5
- package/dist/{chunk-34qnpbzd.js → chunk-7ncc3m3n.js} +4 -4
- package/dist/{chunk-ycb69yfq.js → chunk-7tnm4jef.js} +3 -3
- package/dist/{chunk-mtkstrh3.js → chunk-892qrkb3.js} +14 -60
- package/dist/{chunk-gzfcxjzb.js → chunk-8djn7v2p.js} +23 -23
- package/dist/{chunk-5zhh41gb.js → chunk-8sz25ptv.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-bz4bp0q7.js} +3 -3
- package/dist/{chunk-3bz9qx6q.js → chunk-dcnn882c.js} +13 -13
- package/dist/{chunk-5zth85pj.js → chunk-e711ebdj.js} +2 -2
- package/dist/{chunk-yj971evw.js → chunk-fen5480a.js} +7 -7
- package/dist/{chunk-csgqrjmm.js → chunk-gezjwdpw.js} +117 -125
- package/dist/{chunk-sk0j9vm2.js → chunk-gtsq369x.js} +7 -7
- package/dist/{chunk-5746z147.js → chunk-jk5fp5cy.js} +23 -23
- package/dist/{chunk-mgn7vmf0.js → chunk-k3ak93p1.js} +1 -1
- package/dist/{chunk-gq7y5v3e.js → chunk-mm2m3bys.js} +1 -1
- package/dist/{chunk-rvgc6sb6.js → chunk-n17dr5c1.js} +4 -4
- package/dist/{chunk-p5ct5y4z.js → chunk-rvpfyjtv.js} +1 -1
- package/dist/{chunk-q5w3v4k1.js → chunk-s8m2tzdr.js} +1 -1
- package/dist/{chunk-y1krmnbv.js → chunk-skqn4h13.js} +2 -2
- package/dist/{chunk-tfkgd2gr.js → chunk-v4wn0tz8.js} +6 -6
- package/dist/{chunk-cbpb2rww.js → chunk-vkchn89k.js} +7 -7
- package/dist/{chunk-q25thbsb.js → chunk-wberffvr.js} +24 -24
- package/dist/{chunk-zw3gf6r5.js → chunk-x3cc7dfc.js} +226 -40
- package/dist/{chunk-4ab93yg1.js → chunk-x5t0c4g4.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-y7vjk8vv.js} +31 -165
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-x3cc7dfc.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-y7vjk8vv.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-gezjwdpw.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 };
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-x3cc7dfc.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-s8m2tzdr.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-gezjwdpw.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-y7vjk8vv.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");
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-x3cc7dfc.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-y7vjk8vv.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-gezjwdpw.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
-
isString,
|
|
4
|
-
hasProperty,
|
|
5
|
-
symbol,
|
|
6
|
-
hash,
|
|
7
|
-
symbol2,
|
|
8
|
-
equals,
|
|
9
3
|
BaseProto,
|
|
10
|
-
PipeInspectableProto,
|
|
11
4
|
Prototype,
|
|
12
5
|
some,
|
|
13
6
|
Service2,
|
|
@@ -21,8 +14,11 @@ import {
|
|
|
21
14
|
andThen2,
|
|
22
15
|
map8,
|
|
23
16
|
raceFirst,
|
|
24
|
-
scoped
|
|
25
|
-
|
|
17
|
+
scoped,
|
|
18
|
+
isRedacted,
|
|
19
|
+
make16,
|
|
20
|
+
value
|
|
21
|
+
} from "./chunk-x3cc7dfc.js";
|
|
26
22
|
import {
|
|
27
23
|
unwrap,
|
|
28
24
|
drainFork,
|
|
@@ -31,49 +27,7 @@ import {
|
|
|
31
27
|
runCollect,
|
|
32
28
|
runDrain,
|
|
33
29
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
|
|
36
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
-
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
-
var value2 = (self) => {
|
|
39
|
-
if (redactedRegistry.has(self)) {
|
|
40
|
-
return redactedRegistry.get(self);
|
|
41
|
-
} else {
|
|
42
|
-
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
-
var TypeId = "~effect/Redacted";
|
|
48
|
-
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
-
var make = (value, options) => {
|
|
50
|
-
const self = Object.create(Proto);
|
|
51
|
-
if (options?.label) {
|
|
52
|
-
self.label = options.label;
|
|
53
|
-
}
|
|
54
|
-
redactedRegistry.set(self, value);
|
|
55
|
-
return self;
|
|
56
|
-
};
|
|
57
|
-
var Proto = {
|
|
58
|
-
[TypeId]: {
|
|
59
|
-
_A: (_) => _
|
|
60
|
-
},
|
|
61
|
-
label: undefined,
|
|
62
|
-
...PipeInspectableProto,
|
|
63
|
-
toJSON() {
|
|
64
|
-
return this.toString();
|
|
65
|
-
},
|
|
66
|
-
toString() {
|
|
67
|
-
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
-
},
|
|
69
|
-
[symbol]() {
|
|
70
|
-
return hash(redactedRegistry.get(this));
|
|
71
|
-
},
|
|
72
|
-
[symbol2](that) {
|
|
73
|
-
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var value = value2;
|
|
30
|
+
} from "./chunk-y7vjk8vv.js";
|
|
77
31
|
|
|
78
32
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
79
33
|
function nominal() {
|
|
@@ -101,7 +55,7 @@ var HandleProto = {
|
|
|
101
55
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
102
56
|
...params
|
|
103
57
|
}, HandleProto);
|
|
104
|
-
var
|
|
58
|
+
var make = (spawn) => {
|
|
105
59
|
const streamString = (command, options) => spawn(command).pipe(map8((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
106
60
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
107
61
|
return ChildProcessSpawner.of({
|
|
@@ -222,7 +176,7 @@ var parseTemplate = (texts, values) => {
|
|
|
222
176
|
if (word.length === 0)
|
|
223
177
|
return;
|
|
224
178
|
const value = word.map(unwrap2).join("");
|
|
225
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
179
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make16(value) : value);
|
|
226
180
|
word = [];
|
|
227
181
|
plain = true;
|
|
228
182
|
braceDepth = 0;
|
|
@@ -312,23 +266,23 @@ var parseTemplate = (texts, values) => {
|
|
|
312
266
|
};
|
|
313
267
|
|
|
314
268
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
315
|
-
var
|
|
316
|
-
var
|
|
269
|
+
var TypeId = "~effect/process/ChildProcess";
|
|
270
|
+
var Proto = {
|
|
317
271
|
.../* @__PURE__ */ Prototype({
|
|
318
272
|
label: "Command",
|
|
319
273
|
evaluate(fiber) {
|
|
320
274
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
321
275
|
}
|
|
322
276
|
}),
|
|
323
|
-
[
|
|
277
|
+
[TypeId]: TypeId
|
|
324
278
|
};
|
|
325
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
279
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto), {
|
|
326
280
|
_tag: "StandardCommand",
|
|
327
281
|
command,
|
|
328
282
|
args,
|
|
329
283
|
options
|
|
330
284
|
});
|
|
331
|
-
var
|
|
285
|
+
var make2 = function make(...args) {
|
|
332
286
|
if (isTemplateString(args[0])) {
|
|
333
287
|
const [templates, ...expressions] = args;
|
|
334
288
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -386,4 +340,4 @@ var shellScript = (templates, expressions) => {
|
|
|
386
340
|
}
|
|
387
341
|
return script;
|
|
388
342
|
};
|
|
389
|
-
export {
|
|
343
|
+
export { ExitCode, ProcessId, makeHandle, make, ChildProcessSpawner, display, make2, parseFdName, fdName };
|
|
@@ -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-x3cc7dfc.js";
|
|
108
108
|
import {
|
|
109
109
|
tap,
|
|
110
110
|
mapError,
|
|
@@ -116,7 +116,11 @@ import {
|
|
|
116
116
|
withDefault,
|
|
117
117
|
option,
|
|
118
118
|
String2
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-y7vjk8vv.js";
|
|
120
|
+
import {
|
|
121
|
+
ChildProcessSpawner,
|
|
122
|
+
make2
|
|
123
|
+
} from "./chunk-892qrkb3.js";
|
|
120
124
|
import {
|
|
121
125
|
currentTimeMillis,
|
|
122
126
|
SecureRandom,
|
|
@@ -166,7 +170,7 @@ import {
|
|
|
166
170
|
digestSha256,
|
|
167
171
|
sha256Hasher,
|
|
168
172
|
raw,
|
|
169
|
-
|
|
173
|
+
make4,
|
|
170
174
|
get,
|
|
171
175
|
put,
|
|
172
176
|
HttpClient,
|
|
@@ -228,14 +232,10 @@ import {
|
|
|
228
232
|
harnessNames,
|
|
229
233
|
herdrRunnerCapabilities2,
|
|
230
234
|
declaredChecks
|
|
231
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-gezjwdpw.js";
|
|
232
236
|
import {
|
|
233
237
|
Id
|
|
234
|
-
} from "./chunk-
|
|
235
|
-
import {
|
|
236
|
-
ChildProcessSpawner,
|
|
237
|
-
make3
|
|
238
|
-
} from "./chunk-mtkstrh3.js";
|
|
238
|
+
} from "./chunk-s8m2tzdr.js";
|
|
239
239
|
|
|
240
240
|
// apps/cli/src/cli-error.ts
|
|
241
241
|
function cliErrorCode(error, status) {
|
|
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
989
989
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
990
990
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
991
991
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
992
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
992
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-n17dr5c1.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
993
993
|
});
|
|
994
994
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
995
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
995
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-n17dr5c1.js")), (module) => module.updateHerdrCore(options))
|
|
996
996
|
});
|
|
997
997
|
var herdrCoreMissing = (error) => {
|
|
998
998
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1412
1412
|
});
|
|
1413
1413
|
var syncKits = (input) => gen(function* () {
|
|
1414
1414
|
const fs = yield* FileSystem;
|
|
1415
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1415
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-fen5480a.js"));
|
|
1416
1416
|
const harnesses = yield* syncTargets(input.harness);
|
|
1417
1417
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1418
1418
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1929,7 +1929,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1929
1929
|
run: (command, args) => runCommand2(command, args),
|
|
1930
1930
|
attach: (command, args) => gen(function* () {
|
|
1931
1931
|
const spawner = yield* ChildProcessSpawner;
|
|
1932
|
-
const handle = yield* spawner.spawn(
|
|
1932
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1933
1933
|
const exitCode = yield* handle.exitCode;
|
|
1934
1934
|
if (exitCode !== 0)
|
|
1935
1935
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2331,7 +2331,7 @@ var package_default = {
|
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
2333
|
// apps/cli/src/scaffold.ts
|
|
2334
|
-
var cliVersion = "0.12.
|
|
2334
|
+
var cliVersion = "0.12.6";
|
|
2335
2335
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2336
2336
|
name,
|
|
2337
2337
|
private: true,
|
|
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2483
2483
|
|
|
2484
2484
|
// apps/cli/src/commands.ts
|
|
2485
2485
|
var ClientId = "kitman-cli";
|
|
2486
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2486
|
+
var agentRuntime = promise(() => import("./chunk-wberffvr.js"));
|
|
2487
2487
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2488
2488
|
defaultValue: () => gen(function* () {
|
|
2489
2489
|
const tui = yield* tryPromise({
|
|
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3507
3507
|
});
|
|
3508
3508
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3509
3509
|
defaultValue: () => (options) => gen(function* () {
|
|
3510
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3510
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-v4wn0tz8.js"));
|
|
3511
3511
|
return yield* makeRunnerRpcClient({
|
|
3512
3512
|
runnerId: options.runnerId,
|
|
3513
3513
|
bearer: options.bearer,
|
|
@@ -3787,7 +3787,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3787
3787
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3788
3788
|
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);
|
|
3789
3789
|
const platform = yield* context();
|
|
3790
|
-
const updated = yield*
|
|
3790
|
+
const updated = yield* make15();
|
|
3791
3791
|
const scope = yield* scope2;
|
|
3792
3792
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3793
3793
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
|
|
|
4039
4039
|
if (command.action === "run") {
|
|
4040
4040
|
if (command.args.length > 0)
|
|
4041
4041
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4042
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4042
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-jk5fp5cy.js"));
|
|
4043
4043
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4044
4044
|
}
|
|
4045
4045
|
if (command.action !== "setup")
|
|
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
|
|
|
4527
4527
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4528
4528
|
});
|
|
4529
4529
|
}
|
|
4530
|
-
var docsModule = promise(() => import("./chunk-
|
|
4530
|
+
var docsModule = promise(() => import("./chunk-k3ak93p1.js"));
|
|
4531
4531
|
function docsCommand(args) {
|
|
4532
4532
|
return gen(function* () {
|
|
4533
4533
|
const command = parseCommand(args);
|
|
@@ -5361,9 +5361,9 @@ function changeRequestCommand(args) {
|
|
|
5361
5361
|
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}`);
|
|
5362
5362
|
});
|
|
5363
5363
|
}
|
|
5364
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5364
|
+
var KitWriter = map8(promise(() => import("./chunk-dcnn882c.js")), (build) => build.writeKit);
|
|
5365
5365
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5366
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5366
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-dcnn882c.js")), (build) => build.buildKit(directory))
|
|
5367
5367
|
});
|
|
5368
5368
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5369
5369
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6140,7 +6140,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6140
6140
|
return gen(function* () {
|
|
6141
6141
|
const fs = yield* FileSystem;
|
|
6142
6142
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6143
|
-
const response = yield* send(
|
|
6143
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
6144
6144
|
if (response.status < 200 || response.status >= 300)
|
|
6145
6145
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6146
6146
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-vkchn89k.js";
|
|
11
|
+
import"./chunk-892qrkb3.js";
|
|
12
|
+
import"./chunk-y7vjk8vv.js";
|
|
13
|
+
import"./chunk-x3cc7dfc.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-skqn4h13.js";
|
|
8
|
+
import"./chunk-s8m2tzdr.js";
|
|
9
|
+
import"./chunk-x3cc7dfc.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-x3cc7dfc.js";
|
|
36
|
+
import"./chunk-s8m2tzdr.js";
|
|
37
37
|
import {
|
|
38
38
|
SecureRandom,
|
|
39
39
|
layerWebCrypto,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
layer4,
|
|
46
46
|
kitmanMcpServer,
|
|
47
47
|
RunnerRpcProtocolVersion
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-gezjwdpw.js";
|
|
49
49
|
import {
|
|
50
50
|
decodeText,
|
|
51
51
|
mkString,
|
|
@@ -53,23 +53,23 @@ import {
|
|
|
53
53
|
Path,
|
|
54
54
|
withDefault,
|
|
55
55
|
String2
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-y7vjk8vv.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import
|
|
60
|
+
} from "./chunk-7tnm4jef.js";
|
|
61
|
+
import {
|
|
62
|
+
ChildProcessSpawner,
|
|
63
|
+
make2
|
|
64
|
+
} from "./chunk-892qrkb3.js";
|
|
65
|
+
import"./chunk-gtsq369x.js";
|
|
62
66
|
import {
|
|
63
67
|
AgentDeclaration,
|
|
64
68
|
KitDeclarations,
|
|
65
69
|
describeFlag,
|
|
66
70
|
Described
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import
|
|
69
|
-
ChildProcessSpawner,
|
|
70
|
-
make3
|
|
71
|
-
} from "./chunk-mtkstrh3.js";
|
|
72
|
-
import"./chunk-4ksq2d3k.js";
|
|
71
|
+
} from "./chunk-7ncc3m3n.js";
|
|
72
|
+
import"./chunk-23245qh7.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
108
108
|
}));
|
|
109
109
|
var run = (command, args, cwd) => gen(function* () {
|
|
110
110
|
const spawner = yield* ChildProcessSpawner;
|
|
111
|
-
const handle = yield* spawner.spawn(
|
|
111
|
+
const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
|
|
112
112
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
113
113
|
mkString(decodeText(handle.stdout)),
|
|
114
114
|
mkString(decodeText(handle.stderr)),
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-y7vjk8vv.js";
|
|
18
|
+
import"./chunk-x3cc7dfc.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-x3cc7dfc.js";
|
|
17
|
+
import"./chunk-s8m2tzdr.js";
|
|
18
18
|
import {
|
|
19
19
|
FileSystem,
|
|
20
20
|
Path
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-y7vjk8vv.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-x5t0c4g4.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-gezjwdpw.js";
|
|
35
|
+
import"./chunk-892qrkb3.js";
|
|
36
|
+
import"./chunk-7tnm4jef.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|