@kitman-sh/cli 0.41.0 → 0.42.1
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-amnctk9f.js → chunk-1ay659hm.js} +6 -6
- package/dist/{chunk-xat27r93.js → chunk-4pcknv14.js} +29 -23
- package/dist/{chunk-v2pk0b62.js → chunk-4v0dkm5t.js} +2 -2
- package/dist/{chunk-vd9wjvwt.js → chunk-6e1fq0ct.js} +7 -7
- package/dist/{chunk-cs66re9p.js → chunk-6x08g7m6.js} +10 -10
- package/dist/{chunk-5rvn8bah.js → chunk-6xnkbrs7.js} +144 -144
- package/dist/{chunk-c8rck2r5.js → chunk-7091bpsv.js} +4 -4
- package/dist/{chunk-yxj4dmef.js → chunk-7n64vjb2.js} +8 -8
- package/dist/{chunk-wre79w3z.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-zvp4wm6b.js → chunk-8q04gtg1.js} +6 -6
- package/dist/{chunk-tpmyf5mk.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-b4td2pgc.js → chunk-bqbfyqx6.js} +61 -61
- package/dist/{chunk-svq8b6fq.js → chunk-cnryphhh.js} +5 -5
- package/dist/{chunk-hfy8nmat.js → chunk-d4vhrja4.js} +3 -3
- package/dist/{chunk-j4s7r8hg.js → chunk-dgqjmd95.js} +18 -18
- package/dist/{chunk-qndcafax.js → chunk-ea29sbaq.js} +1 -1
- package/dist/{chunk-sasjamqz.js → chunk-etrfc5cn.js} +178 -29
- package/dist/{chunk-32fc44tx.js → chunk-evpyks4h.js} +10 -10
- package/dist/{chunk-rt2sh0jh.js → chunk-gf2np1ak.js} +59 -59
- package/dist/{chunk-pz7s0apf.js → chunk-hgvft7vy.js} +4 -4
- package/dist/{chunk-f7qdzedh.js → chunk-kqr3ts9q.js} +122 -278
- package/dist/{chunk-p9ykk8h7.js → chunk-nk35kh6w.js} +3 -3
- package/dist/{chunk-drw8m50d.js → chunk-ns26fbmk.js} +2 -2
- package/dist/{chunk-yv80rgfx.js → chunk-p4asjq9r.js} +1 -1
- package/dist/{chunk-0jphb7hd.js → chunk-rv8t9jzj.js} +4 -4
- package/dist/{chunk-dhe1fwhw.js → chunk-wy6gmtd9.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,128 @@
|
|
|
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";
|
|
2
126
|
import {
|
|
3
127
|
SecureRandom,
|
|
4
128
|
layerWebCrypto,
|
|
@@ -129,139 +253,15 @@ import {
|
|
|
129
253
|
harnessNames,
|
|
130
254
|
herdrRunnerCapabilities2,
|
|
131
255
|
declaredChecks
|
|
132
|
-
} from "./chunk-
|
|
133
|
-
import {
|
|
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";
|
|
256
|
+
} from "./chunk-kqr3ts9q.js";
|
|
244
257
|
import {
|
|
245
258
|
Id,
|
|
246
259
|
Timestamp
|
|
247
|
-
} from "./chunk-
|
|
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";
|
|
260
|
+
} from "./chunk-ea29sbaq.js";
|
|
261
261
|
import {
|
|
262
262
|
ChildProcessSpawner,
|
|
263
263
|
make3
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-6x08g7m6.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-rv8t9jzj.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-rv8t9jzj.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* make16();
|
|
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-6e1fq0ct.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.42.1";
|
|
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-4pcknv14.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-8q04gtg1.js"));
|
|
5099
5099
|
return yield* makeRunnerRpcClient({
|
|
5100
5100
|
runnerId: options.runnerId,
|
|
5101
5101
|
bearer: options.bearer,
|
|
@@ -5205,7 +5205,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5205
5205
|
herdrRunnerCapabilitiesForRepoBinding,
|
|
5206
5206
|
harnessesInSrt,
|
|
5207
5207
|
homeDirectories,
|
|
5208
|
-
|
|
5208
|
+
checkThreadBudget,
|
|
5209
5209
|
kitmanBundles,
|
|
5210
5210
|
kitmanMcpPreflight,
|
|
5211
5211
|
lacksLoginSecret,
|
|
@@ -5379,7 +5379,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5379
5379
|
const root = herdrCoreAgentBackendLayer({
|
|
5380
5380
|
sandboxBackends: host.backends,
|
|
5381
5381
|
srtBinaries,
|
|
5382
|
-
threadBudget: sync2(() =>
|
|
5382
|
+
threadBudget: sync2(() => checkThreadBudget(live.settings)),
|
|
5383
5383
|
...docker === undefined ? undefined : { docker: { ...docker, runnerId: input.runnerId } }
|
|
5384
5384
|
}).pipe(provide2(succeed5(HerdrCore, core)), provide2(succeed5(StepProcesses, stepProcesses)), provide2(layer3));
|
|
5385
5385
|
const activeSlots = new Set;
|
|
@@ -5431,7 +5431,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5431
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);
|
|
5432
5432
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5433
5433
|
const platform = yield* context();
|
|
5434
|
-
const updated = yield*
|
|
5434
|
+
const updated = yield* make16();
|
|
5435
5435
|
const scope = yield* scope2;
|
|
5436
5436
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5437
5437
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5530,7 +5530,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5530
5530
|
runnerScope: scope,
|
|
5531
5531
|
runAfterMerge: (work, worktree, command, args) => {
|
|
5532
5532
|
const sandbox = checkSandbox();
|
|
5533
|
-
return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts },
|
|
5533
|
+
return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts }, checkThreadBudget(live.settings))(work, worktree, command, args);
|
|
5534
5534
|
},
|
|
5535
5535
|
runAgent: (work, worktree, session, steered, refused, launched) => flatMap3(currentTimeMillis, (now) => agentBackend.execute({
|
|
5536
5536
|
runnerId: input.runnerId,
|
|
@@ -5586,7 +5586,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5586
5586
|
postgres: dockerCheckPostgres(input.runnerId, replica.id),
|
|
5587
5587
|
...checkDocker === undefined ? undefined : { docker: checkDocker },
|
|
5588
5588
|
runsDeployScripts: personal,
|
|
5589
|
-
threadBudget:
|
|
5589
|
+
threadBudget: checkThreadBudget(live.settings),
|
|
5590
5590
|
revokedSecrets: (unit, secrets) => rpc.heartbeat({ workUnitId: unit.id, lease: leaseOf(unit), secrets: [...secrets] }).pipe(map9((state) => state.revokedSecrets ?? [])),
|
|
5591
5591
|
...sandbox === undefined ? undefined : { sandbox: { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts } }
|
|
5592
5592
|
})(work);
|
|
@@ -5695,7 +5695,7 @@ function mcpCommand(args) {
|
|
|
5695
5695
|
if (command.action === "run") {
|
|
5696
5696
|
if (command.args.length > 0)
|
|
5697
5697
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5698
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5698
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-gf2np1ak.js"));
|
|
5699
5699
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5700
5700
|
}
|
|
5701
5701
|
if (command.action !== "setup")
|
|
@@ -6195,7 +6195,7 @@ function programLoopCommand(command) {
|
|
|
6195
6195
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6196
6196
|
});
|
|
6197
6197
|
}
|
|
6198
|
-
var docsModule = promise(() => import("./chunk-
|
|
6198
|
+
var docsModule = promise(() => import("./chunk-p4asjq9r.js"));
|
|
6199
6199
|
function docsCommand(args) {
|
|
6200
6200
|
return gen(function* () {
|
|
6201
6201
|
const command = parseCommand(args);
|
|
@@ -7199,7 +7199,7 @@ function changeRequestCommand(args) {
|
|
|
7199
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}`);
|
|
7200
7200
|
});
|
|
7201
7201
|
}
|
|
7202
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7202
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-evpyks4h.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7203
7203
|
var loopOutline = (command) => gen(function* () {
|
|
7204
7204
|
const path = yield* Path;
|
|
7205
7205
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7219,9 +7219,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7219
7219
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7220
7220
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7221
7221
|
});
|
|
7222
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7222
|
+
var KitWriter = map9(promise(() => import("./chunk-evpyks4h.js")), (build) => build.writeKit);
|
|
7223
7223
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7224
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7224
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-evpyks4h.js")), (build) => build.buildKit(directory))
|
|
7225
7225
|
});
|
|
7226
7226
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7227
7227
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-bqbfyqx6.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-etrfc5cn.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-kqr3ts9q.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-nk35kh6w.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
empty3,
|
|
13
13
|
add,
|
|
14
14
|
getOrUndefined2,
|
|
15
|
-
|
|
15
|
+
get4,
|
|
16
16
|
merge3,
|
|
17
17
|
Reference,
|
|
18
18
|
fromInputUnsafe,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
toJsonSchemaDocument,
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-bqbfyqx6.js";
|
|
142
142
|
import {
|
|
143
143
|
WebCrypto,
|
|
144
144
|
makeUnsafe,
|
|
@@ -175,24 +175,24 @@ import {
|
|
|
175
175
|
StepManifest,
|
|
176
176
|
KitSetup,
|
|
177
177
|
RunnerRpcError
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-kqr3ts9q.js";
|
|
179
179
|
import {
|
|
180
180
|
guard,
|
|
181
181
|
Id,
|
|
182
182
|
Timestamp,
|
|
183
183
|
ActorType
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-ea29sbaq.js";
|
|
185
185
|
import {
|
|
186
186
|
currentTimeMillis,
|
|
187
187
|
getCurrent,
|
|
188
188
|
runForEach,
|
|
189
189
|
FileSystem
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-etrfc5cn.js";
|
|
191
191
|
import {
|
|
192
192
|
splitQuestionOptions,
|
|
193
193
|
recommendationProblem,
|
|
194
194
|
questionAdvice
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-98azvx6g.js";
|
|
196
196
|
var __defProp = Object.defineProperty;
|
|
197
197
|
var __returnValue = (v) => v;
|
|
198
198
|
function __exportSetter(name, newValue) {
|
|
@@ -769,7 +769,7 @@ class Suspended extends (/* @__PURE__ */ Class2("effect/workflow/Workflow/Suspen
|
|
|
769
769
|
[ResultTypeId] = ResultTypeId;
|
|
770
770
|
}
|
|
771
771
|
var wrapActivityResult = (effect, isSuspend) => contextWith((context) => {
|
|
772
|
-
const instance =
|
|
772
|
+
const instance = get4(context, InstanceTag);
|
|
773
773
|
return acquireUseRelease(sync2(() => adoptActivityUnsafe(context, instance) ?? registerActivityUnsafe(instance)), () => effect, (registration, exit) => {
|
|
774
774
|
releaseActivityUnsafe(registration);
|
|
775
775
|
const isSuspended = isSuccess2(exit) && isSuspend(exit.value);
|
|
@@ -1420,7 +1420,7 @@ var scopingActivities = (engine) => ({
|
|
|
1420
1420
|
}),
|
|
1421
1421
|
activityExecute: (activity, attempt) => gen(function* () {
|
|
1422
1422
|
const scope = yield* StepScope;
|
|
1423
|
-
if (scope === "" ||
|
|
1423
|
+
if (scope === "" || get4(activity.annotations, ActivityNamed))
|
|
1424
1424
|
return yield* engine.activityExecute(activity, attempt);
|
|
1425
1425
|
return yield* engine.activityExecute(renamed(activity, scopedName(scope, activity.name)), attempt);
|
|
1426
1426
|
})
|
|
@@ -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-1ay659hm.js";
|
|
8
|
+
import"./chunk-dgqjmd95.js";
|
|
9
|
+
import"./chunk-kqr3ts9q.js";
|
|
10
|
+
import"./chunk-ea29sbaq.js";
|
|
11
|
+
import"./chunk-etrfc5cn.js";
|
|
12
|
+
import"./chunk-bqbfyqx6.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|