@kitman-sh/cli 0.40.0 → 0.41.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-2rbng4nf.js → chunk-0jphb7hd.js} +4 -4
- package/dist/{chunk-7qjzbsh4.js → chunk-32fc44tx.js} +10 -10
- package/dist/{chunk-ykskj5gq.js → chunk-5rvn8bah.js} +151 -146
- package/dist/{chunk-mj6q3n5b.js → chunk-amnctk9f.js} +6 -6
- package/dist/{chunk-bqbfyqx6.js → chunk-b4td2pgc.js} +61 -61
- package/dist/{chunk-2y0r9xr3.js → chunk-c8rck2r5.js} +4 -4
- package/dist/{chunk-6x08g7m6.js → chunk-cs66re9p.js} +10 -10
- package/dist/{chunk-wy6gmtd9.js → chunk-dhe1fwhw.js} +2 -2
- package/dist/{chunk-ns26fbmk.js → chunk-drw8m50d.js} +2 -2
- package/dist/{chunk-cdy7x0em.js → chunk-f7qdzedh.js} +278 -121
- package/dist/{chunk-d4vhrja4.js → chunk-hfy8nmat.js} +3 -3
- package/dist/{chunk-pzq0b1k9.js → chunk-j4s7r8hg.js} +18 -18
- package/dist/{chunk-bcw869qr.js → chunk-p9ykk8h7.js} +3 -3
- package/dist/{chunk-hgvft7vy.js → chunk-pz7s0apf.js} +4 -4
- package/dist/{chunk-ea29sbaq.js → chunk-qndcafax.js} +1 -1
- package/dist/{chunk-br31kbfe.js → chunk-rt2sh0jh.js} +65 -65
- package/dist/{chunk-etrfc5cn.js → chunk-sasjamqz.js} +29 -178
- package/dist/{chunk-cnryphhh.js → chunk-svq8b6fq.js} +5 -5
- package/dist/{chunk-98azvx6g.js → chunk-tpmyf5mk.js} +1 -1
- package/dist/{chunk-ks3atmhw.js → chunk-v2pk0b62.js} +2 -2
- package/dist/{chunk-jbhd2t25.js → chunk-vd9wjvwt.js} +7 -7
- package/dist/{chunk-8b02x7vv.js → chunk-wre79w3z.js} +1 -1
- package/dist/{chunk-4dpm4thy.js → chunk-xat27r93.js} +101 -27
- package/dist/{chunk-8r3h8mzj.js → chunk-yv80rgfx.js} +1 -1
- package/dist/{chunk-25wwvwrt.js → chunk-yxj4dmef.js} +13 -13
- package/dist/{chunk-6fk86dg7.js → chunk-zvp4wm6b.js} +6 -6
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-cs66re9p.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-f7qdzedh.js";
|
|
16
|
+
import"./chunk-sasjamqz.js";
|
|
17
|
+
import"./chunk-b4td2pgc.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
toCodecJson,
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-b4td2pgc.js";
|
|
39
39
|
import {
|
|
40
40
|
decodeText,
|
|
41
41
|
mkString,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
Path,
|
|
44
44
|
withDefault,
|
|
45
45
|
String2
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-sasjamqz.js";
|
|
47
47
|
import {
|
|
48
48
|
SecureRandom,
|
|
49
49
|
layerWebCrypto,
|
|
@@ -60,26 +60,26 @@ import {
|
|
|
60
60
|
KitDeclarations,
|
|
61
61
|
kitmanMcpServer,
|
|
62
62
|
RunnerRpcProtocolVersion
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-f7qdzedh.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-p9ykk8h7.js";
|
|
68
|
+
import"./chunk-qndcafax.js";
|
|
68
69
|
import {
|
|
69
70
|
stepDefinedTwice,
|
|
70
71
|
hostSteps,
|
|
71
72
|
exports_activities,
|
|
72
73
|
describeFlag,
|
|
73
74
|
Described
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import"./chunk-
|
|
76
|
-
import"./chunk-
|
|
75
|
+
} from "./chunk-yxj4dmef.js";
|
|
76
|
+
import"./chunk-amnctk9f.js";
|
|
77
|
+
import"./chunk-tpmyf5mk.js";
|
|
77
78
|
import {
|
|
78
79
|
ChildProcessSpawner,
|
|
79
80
|
make3
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import"./chunk-
|
|
82
|
-
import"./chunk-ea29sbaq.js";
|
|
81
|
+
} from "./chunk-cs66re9p.js";
|
|
82
|
+
import"./chunk-j4s7r8hg.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -1,128 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
isTagged,
|
|
4
|
-
none,
|
|
5
|
-
isSome,
|
|
6
|
-
getOrElse,
|
|
7
|
-
getOrUndefined,
|
|
8
|
-
Reference,
|
|
9
|
-
minutes,
|
|
10
|
-
toMillis,
|
|
11
|
-
toMinutes,
|
|
12
|
-
succeed,
|
|
13
|
-
isSuccess,
|
|
14
|
-
TaggedError,
|
|
15
|
-
make16,
|
|
16
|
-
_await,
|
|
17
|
-
fail5,
|
|
18
|
-
succeed4,
|
|
19
|
-
succeed5,
|
|
20
|
-
provide2,
|
|
21
|
-
squash,
|
|
22
|
-
pretty,
|
|
23
|
-
max2,
|
|
24
|
-
during,
|
|
25
|
-
min2,
|
|
26
|
-
exponential,
|
|
27
|
-
spaced,
|
|
28
|
-
all3,
|
|
29
|
-
forEach,
|
|
30
|
-
promise,
|
|
31
|
-
tryPromise,
|
|
32
|
-
succeed6,
|
|
33
|
-
suspend3,
|
|
34
|
-
sync2,
|
|
35
|
-
void_3,
|
|
36
|
-
undefined_,
|
|
37
|
-
gen,
|
|
38
|
-
fail7,
|
|
39
|
-
try_2,
|
|
40
|
-
fromNullishOr2,
|
|
41
|
-
flatMap3,
|
|
42
|
-
andThen2,
|
|
43
|
-
tap2,
|
|
44
|
-
result,
|
|
45
|
-
map9,
|
|
46
|
-
as,
|
|
47
|
-
asSome2,
|
|
48
|
-
asVoid,
|
|
49
|
-
zipWith,
|
|
50
|
-
catch_,
|
|
51
|
-
catchTag,
|
|
52
|
-
catchTags,
|
|
53
|
-
catchCause2,
|
|
54
|
-
catchIf,
|
|
55
|
-
mapError2,
|
|
56
|
-
tapError2,
|
|
57
|
-
tapCause,
|
|
58
|
-
retry,
|
|
59
|
-
ignore,
|
|
60
|
-
orElseSucceed,
|
|
61
|
-
timeout,
|
|
62
|
-
timeoutOrElse,
|
|
63
|
-
delay,
|
|
64
|
-
sleep,
|
|
65
|
-
raceFirst,
|
|
66
|
-
filterOrFail,
|
|
67
|
-
context,
|
|
68
|
-
provide3,
|
|
69
|
-
provideContext2,
|
|
70
|
-
service,
|
|
71
|
-
provideService,
|
|
72
|
-
scope2,
|
|
73
|
-
scoped,
|
|
74
|
-
addFinalizer2,
|
|
75
|
-
ensuring2,
|
|
76
|
-
onError,
|
|
77
|
-
forever,
|
|
78
|
-
forkIn,
|
|
79
|
-
forkScoped,
|
|
80
|
-
logWarning,
|
|
81
|
-
encode2,
|
|
82
|
-
is,
|
|
83
|
-
decodeUnknownEffect2,
|
|
84
|
-
decodeEffect,
|
|
85
|
-
optionalKey,
|
|
86
|
-
Literal,
|
|
87
|
-
String4,
|
|
88
|
-
Boolean2,
|
|
89
|
-
Struct,
|
|
90
|
-
Record,
|
|
91
|
-
ArraySchema,
|
|
92
|
-
Union,
|
|
93
|
-
Literals,
|
|
94
|
-
NullOr,
|
|
95
|
-
isPattern,
|
|
96
|
-
isMinLength,
|
|
97
|
-
isMaxLength,
|
|
98
|
-
fromJsonString,
|
|
99
|
-
Json,
|
|
100
|
-
toJsonValue,
|
|
101
|
-
isOneOf,
|
|
102
|
-
toJsonObject,
|
|
103
|
-
isBoolean2,
|
|
104
|
-
isNumber2,
|
|
105
|
-
isObject2,
|
|
106
|
-
isJsonObject,
|
|
107
|
-
isString2,
|
|
108
|
-
decodeJsonString,
|
|
109
|
-
decodeJsonStringOption,
|
|
110
|
-
encodeJsonStringSync,
|
|
111
|
-
encodePrettyJsonString
|
|
112
|
-
} from "./chunk-bqbfyqx6.js";
|
|
113
|
-
import {
|
|
114
|
-
currentTimeMillis,
|
|
115
|
-
tap,
|
|
116
|
-
mapError,
|
|
117
|
-
decodeText,
|
|
118
|
-
run,
|
|
119
|
-
mkString,
|
|
120
|
-
FileSystem,
|
|
121
|
-
Path,
|
|
122
|
-
withDefault,
|
|
123
|
-
option,
|
|
124
|
-
String2
|
|
125
|
-
} from "./chunk-etrfc5cn.js";
|
|
126
2
|
import {
|
|
127
3
|
SecureRandom,
|
|
128
4
|
layerWebCrypto,
|
|
@@ -253,15 +129,139 @@ import {
|
|
|
253
129
|
harnessNames,
|
|
254
130
|
herdrRunnerCapabilities2,
|
|
255
131
|
declaredChecks
|
|
256
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-f7qdzedh.js";
|
|
257
133
|
import {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
134
|
+
isTagged,
|
|
135
|
+
none,
|
|
136
|
+
isSome,
|
|
137
|
+
getOrElse,
|
|
138
|
+
getOrUndefined,
|
|
139
|
+
Reference,
|
|
140
|
+
minutes,
|
|
141
|
+
toMillis,
|
|
142
|
+
toMinutes,
|
|
143
|
+
succeed,
|
|
144
|
+
isSuccess,
|
|
145
|
+
TaggedError,
|
|
146
|
+
make15,
|
|
147
|
+
_await,
|
|
148
|
+
fail5,
|
|
149
|
+
succeed4,
|
|
150
|
+
succeed5,
|
|
151
|
+
provide2,
|
|
152
|
+
squash,
|
|
153
|
+
pretty,
|
|
154
|
+
max2,
|
|
155
|
+
during,
|
|
156
|
+
min2,
|
|
157
|
+
exponential,
|
|
158
|
+
spaced,
|
|
159
|
+
all3,
|
|
160
|
+
forEach,
|
|
161
|
+
promise,
|
|
162
|
+
tryPromise,
|
|
163
|
+
succeed6,
|
|
164
|
+
suspend3,
|
|
165
|
+
sync2,
|
|
166
|
+
void_3,
|
|
167
|
+
undefined_,
|
|
168
|
+
gen,
|
|
169
|
+
fail7,
|
|
170
|
+
try_2,
|
|
171
|
+
fromNullishOr2,
|
|
172
|
+
flatMap3,
|
|
173
|
+
andThen2,
|
|
174
|
+
tap2,
|
|
175
|
+
result,
|
|
176
|
+
map9,
|
|
177
|
+
as,
|
|
178
|
+
asSome2,
|
|
179
|
+
asVoid,
|
|
180
|
+
zipWith,
|
|
181
|
+
catch_,
|
|
182
|
+
catchTag,
|
|
183
|
+
catchTags,
|
|
184
|
+
catchCause2,
|
|
185
|
+
catchIf,
|
|
186
|
+
mapError2,
|
|
187
|
+
tapError2,
|
|
188
|
+
tapCause,
|
|
189
|
+
retry,
|
|
190
|
+
ignore,
|
|
191
|
+
orElseSucceed,
|
|
192
|
+
timeout,
|
|
193
|
+
timeoutOrElse,
|
|
194
|
+
delay,
|
|
195
|
+
sleep,
|
|
196
|
+
raceFirst,
|
|
197
|
+
filterOrFail,
|
|
198
|
+
context,
|
|
199
|
+
provide3,
|
|
200
|
+
provideContext2,
|
|
201
|
+
service,
|
|
202
|
+
provideService,
|
|
203
|
+
scope2,
|
|
204
|
+
scoped,
|
|
205
|
+
addFinalizer2,
|
|
206
|
+
ensuring2,
|
|
207
|
+
onError,
|
|
208
|
+
forever,
|
|
209
|
+
forkIn,
|
|
210
|
+
forkScoped,
|
|
211
|
+
logWarning,
|
|
212
|
+
encode2,
|
|
213
|
+
is,
|
|
214
|
+
decodeUnknownEffect2,
|
|
215
|
+
decodeEffect,
|
|
216
|
+
optionalKey,
|
|
217
|
+
Literal,
|
|
218
|
+
String4,
|
|
219
|
+
Boolean2,
|
|
220
|
+
Struct,
|
|
221
|
+
Record,
|
|
222
|
+
ArraySchema,
|
|
223
|
+
Union,
|
|
224
|
+
Literals,
|
|
225
|
+
NullOr,
|
|
226
|
+
isPattern,
|
|
227
|
+
isMinLength,
|
|
228
|
+
isMaxLength,
|
|
229
|
+
fromJsonString,
|
|
230
|
+
Json,
|
|
231
|
+
toJsonValue,
|
|
232
|
+
isOneOf,
|
|
233
|
+
toJsonObject,
|
|
234
|
+
isBoolean2,
|
|
235
|
+
isNumber2,
|
|
236
|
+
isObject2,
|
|
237
|
+
isJsonObject,
|
|
238
|
+
isString2,
|
|
239
|
+
decodeJsonString,
|
|
240
|
+
decodeJsonStringOption,
|
|
241
|
+
encodeJsonStringSync,
|
|
242
|
+
encodePrettyJsonString
|
|
243
|
+
} from "./chunk-b4td2pgc.js";
|
|
261
244
|
import {
|
|
262
245
|
Id,
|
|
263
246
|
Timestamp
|
|
264
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-qndcafax.js";
|
|
248
|
+
import {
|
|
249
|
+
currentTimeMillis,
|
|
250
|
+
tap,
|
|
251
|
+
mapError,
|
|
252
|
+
decodeText,
|
|
253
|
+
run,
|
|
254
|
+
mkString,
|
|
255
|
+
FileSystem,
|
|
256
|
+
Path,
|
|
257
|
+
withDefault,
|
|
258
|
+
option,
|
|
259
|
+
String2
|
|
260
|
+
} from "./chunk-sasjamqz.js";
|
|
261
|
+
import {
|
|
262
|
+
ChildProcessSpawner,
|
|
263
|
+
make3
|
|
264
|
+
} from "./chunk-cs66re9p.js";
|
|
265
265
|
|
|
266
266
|
// apps/cli/src/cli-error.ts
|
|
267
267
|
function cliErrorCode(error, status) {
|
|
@@ -1329,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1329
1329
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1330
1330
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1331
1331
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-0jphb7hd.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1333
1333
|
});
|
|
1334
1334
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1335
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1335
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-0jphb7hd.js")), (module) => module.updateHerdrCore(options))
|
|
1336
1336
|
});
|
|
1337
1337
|
var herdrCoreMissing = (error) => {
|
|
1338
1338
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1643,7 +1643,7 @@ var runnerUpdater = (input) => {
|
|
|
1643
1643
|
const drain = (version) => gen(function* () {
|
|
1644
1644
|
claiming = false;
|
|
1645
1645
|
const since = yield* currentTimeMillis;
|
|
1646
|
-
const switchNow = yield*
|
|
1646
|
+
const switchNow = yield* make15();
|
|
1647
1647
|
if (version !== undefined)
|
|
1648
1648
|
draining = {
|
|
1649
1649
|
report: {
|
|
@@ -1796,7 +1796,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1796
1796
|
});
|
|
1797
1797
|
var syncKits = (input) => gen(function* () {
|
|
1798
1798
|
const fs = yield* FileSystem;
|
|
1799
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1799
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-vd9wjvwt.js"));
|
|
1800
1800
|
const harnesses = yield* syncTargets(input.harness);
|
|
1801
1801
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1802
1802
|
for (const { name, problem } of chain.skipped)
|
|
@@ -3291,7 +3291,7 @@ var shipped_steps_generated_default = {
|
|
|
3291
3291
|
};
|
|
3292
3292
|
|
|
3293
3293
|
// apps/cli/src/scaffold-files.ts
|
|
3294
|
-
var cliVersion = "0.
|
|
3294
|
+
var cliVersion = "0.41.0";
|
|
3295
3295
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3296
3296
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3297
3297
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3556,7 +3556,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3556
3556
|
|
|
3557
3557
|
// apps/cli/src/commands.ts
|
|
3558
3558
|
var ClientId = "kitman-cli";
|
|
3559
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3559
|
+
var agentRuntime = promise(() => import("./chunk-xat27r93.js"));
|
|
3560
3560
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3561
3561
|
defaultValue: () => gen(function* () {
|
|
3562
3562
|
const tui = yield* tryPromise({
|
|
@@ -5095,7 +5095,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5095
5095
|
});
|
|
5096
5096
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5097
5097
|
defaultValue: () => (options) => gen(function* () {
|
|
5098
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5098
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-zvp4wm6b.js"));
|
|
5099
5099
|
return yield* makeRunnerRpcClient({
|
|
5100
5100
|
runnerId: options.runnerId,
|
|
5101
5101
|
bearer: options.bearer,
|
|
@@ -5121,12 +5121,15 @@ var runnerHostSettings = gen(function* () {
|
|
|
5121
5121
|
var herdrRunnerRootDir = gen(function* () {
|
|
5122
5122
|
const path = yield* Path;
|
|
5123
5123
|
const configured = getOrUndefined(yield* String2("KITMAN_HERDR_ROOT_DIR").pipe(option))?.trim();
|
|
5124
|
-
if (configured)
|
|
5125
|
-
return path.resolve(configured);
|
|
5126
5124
|
const home = getOrUndefined(yield* String2("HOME").pipe(option))?.trim();
|
|
5127
|
-
if (!home)
|
|
5125
|
+
if (!configured && !home)
|
|
5128
5126
|
return yield* new CliError({ message: "herdr_runner_root_unavailable" });
|
|
5129
|
-
|
|
5127
|
+
const root = configured ? path.resolve(configured) : path.join(home ?? "", ".kitman-herdr-runner");
|
|
5128
|
+
if (root.includes(":"))
|
|
5129
|
+
return yield* new CliError({
|
|
5130
|
+
message: `The Runner's root ${root} has a colon in it, so mise could not trust a Step's checkout under it. Set KITMAN_HERDR_ROOT_DIR to a directory without one.`
|
|
5131
|
+
});
|
|
5132
|
+
return root;
|
|
5130
5133
|
});
|
|
5131
5134
|
var ContainerMarkers = Reference("kitman/cli/ContainerMarkers", {
|
|
5132
5135
|
defaultValue: () => ["/.dockerenv", "/run/.containerenv"]
|
|
@@ -5428,7 +5431,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5428
5431
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map9(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);
|
|
5429
5432
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5430
5433
|
const platform = yield* context();
|
|
5431
|
-
const updated = yield*
|
|
5434
|
+
const updated = yield* make15();
|
|
5432
5435
|
const scope = yield* scope2;
|
|
5433
5436
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5434
5437
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5692,7 +5695,7 @@ function mcpCommand(args) {
|
|
|
5692
5695
|
if (command.action === "run") {
|
|
5693
5696
|
if (command.args.length > 0)
|
|
5694
5697
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5695
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5698
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-rt2sh0jh.js"));
|
|
5696
5699
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5697
5700
|
}
|
|
5698
5701
|
if (command.action !== "setup")
|
|
@@ -6192,7 +6195,7 @@ function programLoopCommand(command) {
|
|
|
6192
6195
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6193
6196
|
});
|
|
6194
6197
|
}
|
|
6195
|
-
var docsModule = promise(() => import("./chunk-
|
|
6198
|
+
var docsModule = promise(() => import("./chunk-yv80rgfx.js"));
|
|
6196
6199
|
function docsCommand(args) {
|
|
6197
6200
|
return gen(function* () {
|
|
6198
6201
|
const command = parseCommand(args);
|
|
@@ -7196,7 +7199,7 @@ function changeRequestCommand(args) {
|
|
|
7196
7199
|
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}`);
|
|
7197
7200
|
});
|
|
7198
7201
|
}
|
|
7199
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7202
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-32fc44tx.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7200
7203
|
var loopOutline = (command) => gen(function* () {
|
|
7201
7204
|
const path = yield* Path;
|
|
7202
7205
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7216,9 +7219,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7216
7219
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7217
7220
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7218
7221
|
});
|
|
7219
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7222
|
+
var KitWriter = map9(promise(() => import("./chunk-32fc44tx.js")), (build) => build.writeKit);
|
|
7220
7223
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7221
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7224
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-32fc44tx.js")), (build) => build.buildKit(directory))
|
|
7222
7225
|
});
|
|
7223
7226
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7224
7227
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -8271,6 +8274,8 @@ function agentStepRunOutcome(outcome, step) {
|
|
|
8271
8274
|
return { status: "failed", summary: outcome.summary, restart: { reason: "harness_error" } };
|
|
8272
8275
|
if (outcome.reason === "harness_setup_prompt")
|
|
8273
8276
|
return { status: "failed", summary: outcome.summary, restart: { reason: "setup_prompt" } };
|
|
8277
|
+
if (outcome.reason === "harness_interactive_prompt")
|
|
8278
|
+
return { status: "failed", summary: outcome.summary, harnessStarted: false };
|
|
8274
8279
|
if (!failedToStart(outcome.reason))
|
|
8275
8280
|
return { status: "failed", summary: outcome.summary };
|
|
8276
8281
|
return {
|
|
@@ -6,10 +6,7 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
runForEach
|
|
12
|
-
} from "./chunk-etrfc5cn.js";
|
|
9
|
+
} from "./chunk-b4td2pgc.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-f7qdzedh.js";
|
|
20
|
+
import {
|
|
21
|
+
runForEach
|
|
22
|
+
} from "./chunk-sasjamqz.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-j4s7r8hg.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|