@kitman-sh/cli 0.28.0 → 0.30.0
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-xppw33hz.js → chunk-0mg7k9b4.js} +3 -11
- package/dist/{chunk-8t2wcrvv.js → chunk-1j38xtvp.js} +1 -1
- package/dist/{chunk-fpmmafh8.js → chunk-39kjyh2y.js} +14 -14
- package/dist/{chunk-ja48xvcs.js → chunk-3xg9zbmy.js} +6 -6
- package/dist/{chunk-j4b1yvcd.js → chunk-63cyj9dh.js} +10 -1
- package/dist/{chunk-ks4q040v.js → chunk-7j1kf6sa.js} +4 -4
- package/dist/{chunk-t6ynnbcb.js → chunk-bv4gcq1h.js} +3 -3
- package/dist/{chunk-vv7zg8rb.js → chunk-cehbrs1y.js} +2 -2
- package/dist/{chunk-jhby2e0v.js → chunk-chxtmsns.js} +61 -61
- package/dist/{chunk-zty7be4e.js → chunk-d4h1p51s.js} +14 -14
- package/dist/{chunk-bsgvmq34.js → chunk-gap0vmj7.js} +1 -1
- package/dist/{chunk-npfdbssf.js → chunk-js64y97w.js} +3 -3
- package/dist/{chunk-220vzyz9.js → chunk-msn6rrx9.js} +3 -3
- package/dist/{chunk-7re3n1ze.js → chunk-my92qn4x.js} +6 -6
- package/dist/{chunk-sgtt81qc.js → chunk-r7m32p2j.js} +1 -1
- package/dist/{chunk-w4mr1bhh.js → chunk-sw0dadq5.js} +1 -1
- package/dist/{chunk-z05pkzhf.js → chunk-tbmht2qb.js} +8 -8
- package/dist/{chunk-egzbfz18.js → chunk-wtea9nbk.js} +4 -4
- package/dist/{chunk-zysde2fp.js → chunk-yaa3gkpx.js} +8 -8
- package/dist/{chunk-1vnvmeqr.js → chunk-yr7np5eb.js} +2 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -268,6 +268,7 @@ import {
|
|
|
268
268
|
import {
|
|
269
269
|
map,
|
|
270
270
|
makeEquivalence,
|
|
271
|
+
toNumber,
|
|
271
272
|
bytes,
|
|
272
273
|
BadArgument,
|
|
273
274
|
systemError,
|
|
@@ -332,7 +333,7 @@ import {
|
|
|
332
333
|
optionalEnv,
|
|
333
334
|
harnessesUnsupportedInSrt2,
|
|
334
335
|
harnessesUnsupportedInDocker2
|
|
335
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-63cyj9dh.js";
|
|
336
337
|
import {
|
|
337
338
|
isRedacted,
|
|
338
339
|
make,
|
|
@@ -346,7 +347,7 @@ import {
|
|
|
346
347
|
make3,
|
|
347
348
|
parseFdName,
|
|
348
349
|
fdName
|
|
349
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-gap0vmj7.js";
|
|
350
351
|
import {
|
|
351
352
|
isDateTime,
|
|
352
353
|
Numeric,
|
|
@@ -901,15 +902,6 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
901
902
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
902
903
|
var runMain = runMain2;
|
|
903
904
|
|
|
904
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
905
|
-
var BigInt2 = globalThis.BigInt;
|
|
906
|
-
var toNumber = (b) => {
|
|
907
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
908
|
-
return none();
|
|
909
|
-
}
|
|
910
|
-
return some(Number(b));
|
|
911
|
-
};
|
|
912
|
-
|
|
913
905
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
914
906
|
var makeUnsafe = makeUnsafe6;
|
|
915
907
|
var make18 = make4;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
decodeText,
|
|
4
|
+
mkString,
|
|
5
|
+
FileSystem,
|
|
6
|
+
Path,
|
|
7
|
+
withDefault,
|
|
8
|
+
String2
|
|
9
|
+
} from "./chunk-63cyj9dh.js";
|
|
2
10
|
import {
|
|
3
11
|
isString,
|
|
4
12
|
isObject,
|
|
@@ -36,14 +44,6 @@ import {
|
|
|
36
44
|
Json,
|
|
37
45
|
encodePrettyJsonString
|
|
38
46
|
} from "./chunk-h2f26xbd.js";
|
|
39
|
-
import {
|
|
40
|
-
decodeText,
|
|
41
|
-
mkString,
|
|
42
|
-
FileSystem,
|
|
43
|
-
Path,
|
|
44
|
-
withDefault,
|
|
45
|
-
String2
|
|
46
|
-
} from "./chunk-j4b1yvcd.js";
|
|
47
47
|
import {
|
|
48
48
|
SecureRandom,
|
|
49
49
|
layerWebCrypto,
|
|
@@ -60,25 +60,25 @@ import {
|
|
|
60
60
|
KitDeclarations,
|
|
61
61
|
kitmanMcpServer,
|
|
62
62
|
RunnerRpcProtocolVersion
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-0mg7k9b4.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-yr7np5eb.js";
|
|
68
68
|
import {
|
|
69
69
|
stepDefinedTwice,
|
|
70
70
|
hostSteps,
|
|
71
71
|
exports_activities,
|
|
72
72
|
describeFlag,
|
|
73
73
|
Described
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import"./chunk-
|
|
74
|
+
} from "./chunk-3xg9zbmy.js";
|
|
75
|
+
import"./chunk-bv4gcq1h.js";
|
|
76
76
|
import"./chunk-tsx0347c.js";
|
|
77
77
|
import {
|
|
78
78
|
ChildProcessSpawner,
|
|
79
79
|
make3
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import"./chunk-
|
|
80
|
+
} from "./chunk-gap0vmj7.js";
|
|
81
|
+
import"./chunk-cehbrs1y.js";
|
|
82
82
|
import"./chunk-4qjfn1sa.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
@@ -139,6 +139,11 @@ import {
|
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json
|
|
141
141
|
} from "./chunk-h2f26xbd.js";
|
|
142
|
+
import {
|
|
143
|
+
getCurrent,
|
|
144
|
+
runForEach,
|
|
145
|
+
FileSystem
|
|
146
|
+
} from "./chunk-63cyj9dh.js";
|
|
142
147
|
import {
|
|
143
148
|
currentTimeMillis,
|
|
144
149
|
WebCrypto,
|
|
@@ -176,12 +181,7 @@ import {
|
|
|
176
181
|
StepManifest,
|
|
177
182
|
KitSetup,
|
|
178
183
|
RunnerRpcError
|
|
179
|
-
} from "./chunk-
|
|
180
|
-
import {
|
|
181
|
-
getCurrent,
|
|
182
|
-
runForEach,
|
|
183
|
-
FileSystem
|
|
184
|
-
} from "./chunk-j4b1yvcd.js";
|
|
184
|
+
} from "./chunk-0mg7k9b4.js";
|
|
185
185
|
import {
|
|
186
186
|
splitQuestionOptions,
|
|
187
187
|
recommendationProblem,
|
|
@@ -252,6 +252,15 @@ var makeEquivalence = (equivalence) => {
|
|
|
252
252
|
return (self, that) => is(self, that) && is(that, self);
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
256
|
+
var BigInt2 = globalThis.BigInt;
|
|
257
|
+
var toNumber = (b) => {
|
|
258
|
+
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
259
|
+
return none();
|
|
260
|
+
}
|
|
261
|
+
return some(Number(b));
|
|
262
|
+
};
|
|
263
|
+
|
|
255
264
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
256
265
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
257
266
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -3635,4 +3644,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3635
3644
|
...argv
|
|
3636
3645
|
];
|
|
3637
3646
|
|
|
3638
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
3647
|
+
export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-bv4gcq1h.js";
|
|
8
|
+
import"./chunk-cehbrs1y.js";
|
|
9
|
+
import"./chunk-0mg7k9b4.js";
|
|
10
10
|
import"./chunk-4qjfn1sa.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-63cyj9dh.js";
|
|
12
12
|
import"./chunk-h2f26xbd.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-h2f26xbd.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-63cyj9dh.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-0mg7k9b4.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-cehbrs1y.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-63cyj9dh.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-0mg7k9b4.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")) {
|
|
@@ -173,6 +173,52 @@ import {
|
|
|
173
173
|
encodeUnknownJsonStringSync,
|
|
174
174
|
storable
|
|
175
175
|
} from "./chunk-h2f26xbd.js";
|
|
176
|
+
import {
|
|
177
|
+
join,
|
|
178
|
+
interrupt,
|
|
179
|
+
unbounded,
|
|
180
|
+
publishUnsafe,
|
|
181
|
+
unbounded2,
|
|
182
|
+
offer,
|
|
183
|
+
makeUnsafe3,
|
|
184
|
+
make11,
|
|
185
|
+
fromQueue,
|
|
186
|
+
fromPubSub,
|
|
187
|
+
map2,
|
|
188
|
+
filter,
|
|
189
|
+
take2,
|
|
190
|
+
mapAccum,
|
|
191
|
+
decodeText,
|
|
192
|
+
encodeText,
|
|
193
|
+
splitLines,
|
|
194
|
+
run,
|
|
195
|
+
runCollect,
|
|
196
|
+
runFold,
|
|
197
|
+
runHead,
|
|
198
|
+
runForEach,
|
|
199
|
+
FileSystem,
|
|
200
|
+
Path,
|
|
201
|
+
embeddedFile,
|
|
202
|
+
extractEmbeddedFile,
|
|
203
|
+
optionalEnv,
|
|
204
|
+
operatorConfigHome,
|
|
205
|
+
tempDirectoryScoped,
|
|
206
|
+
harnessesUnsupportedInSrt2,
|
|
207
|
+
harnessesUnsupportedInDocker2,
|
|
208
|
+
compiled2,
|
|
209
|
+
pinnedSrtCommand2,
|
|
210
|
+
pinnedSrtStepCommand2,
|
|
211
|
+
runSrtCli2,
|
|
212
|
+
kitmanCacheDirectory2,
|
|
213
|
+
srtSettings2,
|
|
214
|
+
srtCacheEnvironment2,
|
|
215
|
+
srtInheritedEnv2,
|
|
216
|
+
inheritedEnvironment2,
|
|
217
|
+
withOnlyEnvironment2,
|
|
218
|
+
writeSrtSettings2,
|
|
219
|
+
srtStepArgv2,
|
|
220
|
+
srtArgv2
|
|
221
|
+
} from "./chunk-63cyj9dh.js";
|
|
176
222
|
import {
|
|
177
223
|
currentTimeMillis,
|
|
178
224
|
SecureRandom,
|
|
@@ -261,53 +307,7 @@ import {
|
|
|
261
307
|
checkServicesFile,
|
|
262
308
|
checkServices,
|
|
263
309
|
serviceChecks
|
|
264
|
-
} from "./chunk-
|
|
265
|
-
import {
|
|
266
|
-
join,
|
|
267
|
-
interrupt,
|
|
268
|
-
unbounded,
|
|
269
|
-
publishUnsafe,
|
|
270
|
-
unbounded2,
|
|
271
|
-
offer,
|
|
272
|
-
makeUnsafe3,
|
|
273
|
-
make11,
|
|
274
|
-
fromQueue,
|
|
275
|
-
fromPubSub,
|
|
276
|
-
map2,
|
|
277
|
-
filter,
|
|
278
|
-
take2,
|
|
279
|
-
mapAccum,
|
|
280
|
-
decodeText,
|
|
281
|
-
encodeText,
|
|
282
|
-
splitLines,
|
|
283
|
-
run,
|
|
284
|
-
runCollect,
|
|
285
|
-
runFold,
|
|
286
|
-
runHead,
|
|
287
|
-
runForEach,
|
|
288
|
-
FileSystem,
|
|
289
|
-
Path,
|
|
290
|
-
embeddedFile,
|
|
291
|
-
extractEmbeddedFile,
|
|
292
|
-
optionalEnv,
|
|
293
|
-
operatorConfigHome,
|
|
294
|
-
tempDirectoryScoped,
|
|
295
|
-
harnessesUnsupportedInSrt2,
|
|
296
|
-
harnessesUnsupportedInDocker2,
|
|
297
|
-
compiled2,
|
|
298
|
-
pinnedSrtCommand2,
|
|
299
|
-
pinnedSrtStepCommand2,
|
|
300
|
-
runSrtCli2,
|
|
301
|
-
kitmanCacheDirectory2,
|
|
302
|
-
srtSettings2,
|
|
303
|
-
srtCacheEnvironment2,
|
|
304
|
-
srtInheritedEnv2,
|
|
305
|
-
inheritedEnvironment2,
|
|
306
|
-
withOnlyEnvironment2,
|
|
307
|
-
writeSrtSettings2,
|
|
308
|
-
srtStepArgv2,
|
|
309
|
-
srtArgv2
|
|
310
|
-
} from "./chunk-j4b1yvcd.js";
|
|
310
|
+
} from "./chunk-0mg7k9b4.js";
|
|
311
311
|
import {
|
|
312
312
|
writeAgentEnvironmentConfigFile2,
|
|
313
313
|
readManifestSkillPaths2,
|
|
@@ -323,8 +323,8 @@ import {
|
|
|
323
323
|
applyAgentEnvironmentMaterialization2,
|
|
324
324
|
isPathWithin2,
|
|
325
325
|
skillIdentity2
|
|
326
|
-
} from "./chunk-
|
|
327
|
-
import"./chunk-
|
|
326
|
+
} from "./chunk-yaa3gkpx.js";
|
|
327
|
+
import"./chunk-yr7np5eb.js";
|
|
328
328
|
import {
|
|
329
329
|
egressAllowed,
|
|
330
330
|
writeSecretRegistry,
|
|
@@ -342,15 +342,15 @@ import {
|
|
|
342
342
|
decodedOption2,
|
|
343
343
|
decoded2,
|
|
344
344
|
readOpencode2
|
|
345
|
-
} from "./chunk-
|
|
345
|
+
} from "./chunk-my92qn4x.js";
|
|
346
346
|
import {
|
|
347
347
|
uploadRunFile,
|
|
348
348
|
programLease,
|
|
349
349
|
rpcRunFiles,
|
|
350
350
|
programHostsEnv,
|
|
351
351
|
undeclaredHostsEnv
|
|
352
|
-
} from "./chunk-
|
|
353
|
-
import"./chunk-
|
|
352
|
+
} from "./chunk-3xg9zbmy.js";
|
|
353
|
+
import"./chunk-bv4gcq1h.js";
|
|
354
354
|
import {
|
|
355
355
|
nextInt
|
|
356
356
|
} from "./chunk-5kqt4bqp.js";
|
|
@@ -358,8 +358,8 @@ import"./chunk-tsx0347c.js";
|
|
|
358
358
|
import {
|
|
359
359
|
ChildProcessSpawner,
|
|
360
360
|
make3
|
|
361
|
-
} from "./chunk-
|
|
362
|
-
import"./chunk-
|
|
361
|
+
} from "./chunk-gap0vmj7.js";
|
|
362
|
+
import"./chunk-cehbrs1y.js";
|
|
363
363
|
import {
|
|
364
364
|
Id,
|
|
365
365
|
secretReference,
|
|
@@ -8596,11 +8596,11 @@ if (false)
|
|
|
8596
8596
|
var checkTimeout = "30 minutes";
|
|
8597
8597
|
var checkFilesPerVerification = 50;
|
|
8598
8598
|
var halfCloseListener = (encoder, listenPort, relayPort) => `BUN_BE_BUN=1 ${encoder.map(quoted).join(" ")} ${listenPort} "$HTTP_PROXY" ${relayPort}`;
|
|
8599
|
-
var srtDockerTunnel = (relayPort, encoder) => srtLoopbackTunnel({
|
|
8599
|
+
var srtDockerTunnel = (relayPort, encoder, listenPort) => srtLoopbackTunnel({
|
|
8600
8600
|
service: "Docker daemon",
|
|
8601
8601
|
hostPort: relayPort,
|
|
8602
|
-
listenPort
|
|
8603
|
-
listener: halfCloseListener(encoder,
|
|
8602
|
+
listenPort,
|
|
8603
|
+
listener: halfCloseListener(encoder, listenPort, relayPort),
|
|
8604
8604
|
probe: String.raw`printf 'GET /_ping HTTP/1.0\r\n\r\n'`,
|
|
8605
8605
|
read: "tail -c 2",
|
|
8606
8606
|
answers: "OK"
|
|
@@ -8610,7 +8610,7 @@ var pipelineEnvironment = (docker, dockerHost) => ({
|
|
|
8610
8610
|
DOCKER_CONFIG: `${docker.clientDir}/docker`,
|
|
8611
8611
|
GCL_HOME: `${docker.clientDir}/gitlab-ci-local-home`
|
|
8612
8612
|
});
|
|
8613
|
-
var dockerRoute = (backend, docker) => {
|
|
8613
|
+
var dockerRoute = (backend, docker, srtDockerPort) => {
|
|
8614
8614
|
if (docker === undefined)
|
|
8615
8615
|
return { env: {}, hosts: [], unixSockets: [], services: [], tunnel: undefined };
|
|
8616
8616
|
if (backend === "docker")
|
|
@@ -8636,11 +8636,11 @@ var dockerRoute = (backend, docker) => {
|
|
|
8636
8636
|
};
|
|
8637
8637
|
case "relay":
|
|
8638
8638
|
return {
|
|
8639
|
-
env: pipelineEnvironment(docker, `tcp://127.0.0.1:${
|
|
8639
|
+
env: pipelineEnvironment(docker, `tcp://127.0.0.1:${srtDockerPort}`),
|
|
8640
8640
|
hosts: [`127.0.0.1:${docker.route.port}`],
|
|
8641
8641
|
unixSockets: [],
|
|
8642
8642
|
services: [],
|
|
8643
|
-
tunnel: srtDockerTunnel(docker.route.port, docker.route.encoder)
|
|
8643
|
+
tunnel: srtDockerTunnel(docker.route.port, docker.route.encoder, srtDockerPort)
|
|
8644
8644
|
};
|
|
8645
8645
|
case "direct":
|
|
8646
8646
|
throw new Error("A pipeline check in srt reaches its daemon through a socket or the relay, never directly.");
|
|
@@ -8733,7 +8733,7 @@ var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout)
|
|
|
8733
8733
|
});
|
|
8734
8734
|
}
|
|
8735
8735
|
const route = postgresRoute(sandbox.backend, postgres);
|
|
8736
|
-
const daemon = dockerRoute(sandbox.backend, docker);
|
|
8736
|
+
const daemon = dockerRoute(sandbox.backend, docker, (sandbox.backend === "srt" ? sandbox.dockerPort : undefined) ?? checkDockerPort);
|
|
8737
8737
|
const policy = checkSandboxPolicy(work, sandbox, checkout, cache, filesDir, [...route.hosts, ...daemon.hosts], docker);
|
|
8738
8738
|
const [tunnel, ...innerTunnels] = [route.tunnel, daemon.tunnel].filter((script) => script !== undefined);
|
|
8739
8739
|
const tunnelled = innerTunnels.reduceRight((inner, script) => `sh -c ${quoted(script)} sh ${quoted(inner)}`, command);
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
withDefault,
|
|
121
121
|
option,
|
|
122
122
|
String2
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-63cyj9dh.js";
|
|
124
124
|
import {
|
|
125
125
|
currentTimeMillis,
|
|
126
126
|
SecureRandom,
|
|
@@ -251,11 +251,11 @@ import {
|
|
|
251
251
|
harnessNames,
|
|
252
252
|
herdrRunnerCapabilities2,
|
|
253
253
|
declaredChecks
|
|
254
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-0mg7k9b4.js";
|
|
255
255
|
import {
|
|
256
256
|
ChildProcessSpawner,
|
|
257
257
|
make3
|
|
258
|
-
} from "./chunk-
|
|
258
|
+
} from "./chunk-gap0vmj7.js";
|
|
259
259
|
import {
|
|
260
260
|
Id,
|
|
261
261
|
Timestamp
|
|
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1326
1326
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1327
1327
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1328
1328
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1329
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1329
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-msn6rrx9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1330
1330
|
});
|
|
1331
1331
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-msn6rrx9.js")), (module) => module.updateHerdrCore(options))
|
|
1333
1333
|
});
|
|
1334
1334
|
var herdrCoreMissing = (error) => {
|
|
1335
1335
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
var syncKits = (input) => gen(function* () {
|
|
1775
1775
|
const fs = yield* FileSystem;
|
|
1776
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1776
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-tbmht2qb.js"));
|
|
1777
1777
|
const harnesses = yield* syncTargets(input.harness);
|
|
1778
1778
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1779
1779
|
for (const { name, problem } of chain.skipped)
|
|
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
3270
3270
|
// apps/cli/src/scaffold-files.ts
|
|
3271
|
-
var cliVersion = "0.
|
|
3271
|
+
var cliVersion = "0.30.0";
|
|
3272
3272
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3273
3273
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3274
3274
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3533
3533
|
|
|
3534
3534
|
// apps/cli/src/commands.ts
|
|
3535
3535
|
var ClientId = "kitman-cli";
|
|
3536
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3536
|
+
var agentRuntime = promise(() => import("./chunk-chxtmsns.js"));
|
|
3537
3537
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3538
3538
|
defaultValue: () => gen(function* () {
|
|
3539
3539
|
const tui = yield* tryPromise({
|
|
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5072
5072
|
});
|
|
5073
5073
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5074
5074
|
defaultValue: () => (options) => gen(function* () {
|
|
5075
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5075
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-7j1kf6sa.js"));
|
|
5076
5076
|
return yield* makeRunnerRpcClient({
|
|
5077
5077
|
runnerId: options.runnerId,
|
|
5078
5078
|
bearer: options.bearer,
|
|
@@ -5648,7 +5648,7 @@ function mcpCommand(args) {
|
|
|
5648
5648
|
if (command.action === "run") {
|
|
5649
5649
|
if (command.args.length > 0)
|
|
5650
5650
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5651
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5651
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-wtea9nbk.js"));
|
|
5652
5652
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5653
5653
|
}
|
|
5654
5654
|
if (command.action !== "setup")
|
|
@@ -6148,7 +6148,7 @@ function programLoopCommand(command) {
|
|
|
6148
6148
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6149
6149
|
});
|
|
6150
6150
|
}
|
|
6151
|
-
var docsModule = promise(() => import("./chunk-
|
|
6151
|
+
var docsModule = promise(() => import("./chunk-r7m32p2j.js"));
|
|
6152
6152
|
function docsCommand(args) {
|
|
6153
6153
|
return gen(function* () {
|
|
6154
6154
|
const command = parseCommand(args);
|
|
@@ -7152,7 +7152,7 @@ function changeRequestCommand(args) {
|
|
|
7152
7152
|
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}`);
|
|
7153
7153
|
});
|
|
7154
7154
|
}
|
|
7155
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7155
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7156
7156
|
var loopOutline = (command) => gen(function* () {
|
|
7157
7157
|
const path = yield* Path;
|
|
7158
7158
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7172,9 +7172,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7172
7172
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7173
7173
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7174
7174
|
});
|
|
7175
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7175
|
+
var KitWriter = map9(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.writeKit);
|
|
7176
7176
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7177
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7177
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.buildKit(directory))
|
|
7178
7178
|
});
|
|
7179
7179
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7180
7180
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-my92qn4x.js";
|
|
11
|
+
import"./chunk-gap0vmj7.js";
|
|
12
|
+
import"./chunk-63cyj9dh.js";
|
|
13
13
|
import"./chunk-h2f26xbd.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-gap0vmj7.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-0mg7k9b4.js";
|
|
16
|
+
import"./chunk-63cyj9dh.js";
|
|
17
17
|
import"./chunk-h2f26xbd.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make11,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-63cyj9dh.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -26,15 +31,10 @@ import {
|
|
|
26
31
|
isString2,
|
|
27
32
|
encodeUnknownJsonStringSync
|
|
28
33
|
} from "./chunk-h2f26xbd.js";
|
|
29
|
-
import {
|
|
30
|
-
make11,
|
|
31
|
-
runForEach,
|
|
32
|
-
compiled2
|
|
33
|
-
} from "./chunk-j4b1yvcd.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
36
|
make3
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-gap0vmj7.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -2211,7 +2211,7 @@ var pathOfLink = (link) => {
|
|
|
2211
2211
|
return page === null ? link : page[1] || "index";
|
|
2212
2212
|
};
|
|
2213
2213
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
2214
|
-
var pinnedLink2 = (link, version = "0.
|
|
2214
|
+
var pinnedLink2 = (link, version = "0.30.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
2215
2215
|
var pageOf = (path) => path.split("#")[0];
|
|
2216
2216
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
2217
2217
|
function excerpt(text, queryTerms) {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path
|
|
5
|
+
} from "./chunk-63cyj9dh.js";
|
|
2
6
|
import {
|
|
3
7
|
isObject,
|
|
4
8
|
isUint8Array,
|
|
@@ -14,16 +18,12 @@ import {
|
|
|
14
18
|
decodeJsonString,
|
|
15
19
|
encodePrettyJsonString
|
|
16
20
|
} from "./chunk-h2f26xbd.js";
|
|
17
|
-
import {
|
|
18
|
-
FileSystem,
|
|
19
|
-
Path
|
|
20
|
-
} from "./chunk-j4b1yvcd.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-yaa3gkpx.js";
|
|
27
27
|
import {
|
|
28
28
|
instructionsStart,
|
|
29
29
|
instructionsEnd,
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
antigravityPlugins,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-0mg7k9b4.js";
|
|
35
|
+
import"./chunk-yr7np5eb.js";
|
|
36
|
+
import"./chunk-gap0vmj7.js";
|
|
37
37
|
import"./chunk-4qjfn1sa.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-0mg7k9b4.js";
|
|
174
174
|
import {
|
|
175
175
|
join,
|
|
176
176
|
interrupt,
|
|
@@ -187,11 +187,11 @@ import {
|
|
|
187
187
|
withDefault,
|
|
188
188
|
option,
|
|
189
189
|
String2
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-63cyj9dh.js";
|
|
191
191
|
import {
|
|
192
192
|
searchDocs2,
|
|
193
193
|
readDoc2
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-sw0dadq5.js";
|
|
195
195
|
import {
|
|
196
196
|
nextInt
|
|
197
197
|
} from "./chunk-5kqt4bqp.js";
|
|
@@ -204,7 +204,7 @@ import {
|
|
|
204
204
|
withHeaders,
|
|
205
205
|
layerProtocolSocket,
|
|
206
206
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-cehbrs1y.js";
|
|
208
208
|
import {
|
|
209
209
|
guard,
|
|
210
210
|
Id,
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path,
|
|
5
|
+
optionalEnv,
|
|
6
|
+
tempDirectoryScoped
|
|
7
|
+
} from "./chunk-63cyj9dh.js";
|
|
2
8
|
import {
|
|
3
9
|
Reference,
|
|
4
10
|
TaggedError,
|
|
@@ -26,20 +32,14 @@ import {
|
|
|
26
32
|
encodePrettyJsonString,
|
|
27
33
|
decodeJsonStringSync
|
|
28
34
|
} from "./chunk-h2f26xbd.js";
|
|
29
|
-
import {
|
|
30
|
-
FileSystem,
|
|
31
|
-
Path,
|
|
32
|
-
optionalEnv,
|
|
33
|
-
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-j4b1yvcd.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-0mg7k9b4.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-yr7np5eb.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-63cyj9dh.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-0mg7k9b4.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
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-1j38xtvp.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
11
|
const { runSrtStep } = await import("./chunk-samxkpbz.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-js64y97w.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-d4h1p51s.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|