@kitman-sh/cli 0.41.0 → 0.42.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-vd9wjvwt.js → chunk-01ntfatw.js} +7 -7
- package/dist/{chunk-j4s7r8hg.js → chunk-5r3j4h21.js} +18 -18
- package/dist/{chunk-f7qdzedh.js → chunk-67ybyzmq.js} +121 -277
- package/dist/{chunk-cs66re9p.js → chunk-6x08g7m6.js} +10 -10
- package/dist/{chunk-wre79w3z.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-tpmyf5mk.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-xat27r93.js → chunk-ae26brmm.js} +23 -23
- 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-p9ykk8h7.js → chunk-dtbkp9eq.js} +3 -3
- 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-ez61p8ef.js} +17 -17
- package/dist/{chunk-pz7s0apf.js → chunk-hgvft7vy.js} +4 -4
- package/dist/{chunk-amnctk9f.js → chunk-jwtgfc34.js} +6 -6
- package/dist/{chunk-rt2sh0jh.js → chunk-mdqc88kx.js} +63 -63
- package/dist/{chunk-v2pk0b62.js → chunk-mrgeje8k.js} +1 -1
- package/dist/{chunk-0jphb7hd.js → chunk-netm7d3w.js} +4 -4
- package/dist/{chunk-drw8m50d.js → chunk-ns26fbmk.js} +2 -2
- package/dist/{chunk-c8rck2r5.js → chunk-px1fhc26.js} +4 -4
- package/dist/{chunk-zvp4wm6b.js → chunk-r4fs82ar.js} +6 -6
- package/dist/{chunk-yv80rgfx.js → chunk-v8mfd1bm.js} +1 -1
- package/dist/{chunk-5rvn8bah.js → chunk-v9y1ene9.js} +142 -142
- package/dist/{chunk-dhe1fwhw.js → chunk-wy6gmtd9.js} +2 -2
- package/dist/{chunk-yxj4dmef.js → chunk-zzg4b212.js} +13 -13
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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-67ybyzmq.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-dtbkp9eq.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -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-jwtgfc34.js";
|
|
8
|
+
import"./chunk-5r3j4h21.js";
|
|
9
|
+
import"./chunk-67ybyzmq.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,
|
|
@@ -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-
|
|
256
|
+
} from "./chunk-67ybyzmq.js";
|
|
133
257
|
import {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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";
|
|
258
|
+
ChildProcessSpawner,
|
|
259
|
+
make3
|
|
260
|
+
} from "./chunk-6x08g7m6.js";
|
|
244
261
|
import {
|
|
245
262
|
Id,
|
|
246
263
|
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";
|
|
261
|
-
import {
|
|
262
|
-
ChildProcessSpawner,
|
|
263
|
-
make3
|
|
264
|
-
} from "./chunk-cs66re9p.js";
|
|
264
|
+
} from "./chunk-ea29sbaq.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-netm7d3w.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-netm7d3w.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-01ntfatw.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.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-ae26brmm.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-r4fs82ar.js"));
|
|
5099
5099
|
return yield* makeRunnerRpcClient({
|
|
5100
5100
|
runnerId: options.runnerId,
|
|
5101
5101
|
bearer: options.bearer,
|
|
@@ -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);
|
|
@@ -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-mdqc88kx.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-v8mfd1bm.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-ez61p8ef.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-ez61p8ef.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-ez61p8ef.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) });
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-bqbfyqx6.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ea29sbaq.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -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-
|
|
179
|
-
import {
|
|
180
|
-
guard,
|
|
181
|
-
Id,
|
|
182
|
-
Timestamp,
|
|
183
|
-
ActorType
|
|
184
|
-
} from "./chunk-qndcafax.js";
|
|
178
|
+
} from "./chunk-67ybyzmq.js";
|
|
185
179
|
import {
|
|
186
180
|
currentTimeMillis,
|
|
187
181
|
getCurrent,
|
|
188
182
|
runForEach,
|
|
189
183
|
FileSystem
|
|
190
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-etrfc5cn.js";
|
|
191
185
|
import {
|
|
192
186
|
splitQuestionOptions,
|
|
193
187
|
recommendationProblem,
|
|
194
188
|
questionAdvice
|
|
195
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-98azvx6g.js";
|
|
190
|
+
import {
|
|
191
|
+
guard,
|
|
192
|
+
Id,
|
|
193
|
+
Timestamp,
|
|
194
|
+
ActorType
|
|
195
|
+
} from "./chunk-ea29sbaq.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
|
})
|
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-ns26fbmk.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-d4vhrja4.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-hgvft7vy.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-v9y1ene9.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|