@kitman-sh/cli 0.48.1 → 0.50.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-dh7ewhqd.js → chunk-01tf5h5v.js} +2 -2
- package/dist/{chunk-7cqhmc6t.js → chunk-0nqjdqnc.js} +15 -15
- package/dist/{chunk-wr2yqtwt.js → chunk-1gxrhdb3.js} +14 -14
- package/dist/{chunk-8mndybf5.js → chunk-32jx4pb9.js} +1 -1
- package/dist/{chunk-xajmb07d.js → chunk-5smh4dp2.js} +1 -10
- package/dist/{chunk-c3m48dge.js → chunk-6n976mhk.js} +3 -3
- package/dist/{chunk-6ne389p2.js → chunk-8gkrs473.js} +9 -9
- package/dist/{chunk-vtzn8zqj.js → chunk-a71b15k3.js} +1 -1
- package/dist/{chunk-xnzk9v00.js → chunk-aekx465g.js} +6 -6
- package/dist/{chunk-zr1kvjzj.js → chunk-fqh4pj6b.js} +1 -1
- package/dist/{chunk-0n9f624b.js → chunk-kc1nw3ks.js} +3 -3
- package/dist/{chunk-qvvph24z.js → chunk-pp76dgv5.js} +22 -6
- package/dist/{chunk-8qvgey5g.js → chunk-qs1f7rh9.js} +4 -4
- package/dist/{chunk-kaqwjb64.js → chunk-tfwgeqx5.js} +3 -3
- package/dist/{chunk-e2dszepq.js → chunk-tpeynf2f.js} +2 -2
- package/dist/{chunk-cv7xg2ps.js → chunk-w4hkd8ab.js} +89 -68
- package/dist/{chunk-0hb5d4rz.js → chunk-wkfht1sx.js} +8 -8
- package/dist/{chunk-nsw1wykj.js → chunk-wkt559vb.js} +8 -8
- package/dist/{chunk-759fz776.js → chunk-y34fqzax.js} +2 -2
- package/dist/{chunk-cps0774f.js → chunk-z155a0wp.js} +7 -7
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
shutdownUnsafe,
|
|
110
110
|
fromQueue,
|
|
111
111
|
unwrap
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-5smh4dp2.js";
|
|
113
113
|
import {
|
|
114
114
|
empty,
|
|
115
115
|
fromInput,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-pp76dgv5.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")) {
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
withDefault,
|
|
123
123
|
option,
|
|
124
124
|
String2
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-5smh4dp2.js";
|
|
126
126
|
import {
|
|
127
127
|
SecureRandom,
|
|
128
128
|
layerWebCrypto,
|
|
@@ -253,11 +253,11 @@ import {
|
|
|
253
253
|
harnessNames,
|
|
254
254
|
herdrRunnerCapabilities2,
|
|
255
255
|
declaredChecks
|
|
256
|
-
} from "./chunk-
|
|
256
|
+
} from "./chunk-pp76dgv5.js";
|
|
257
257
|
import {
|
|
258
258
|
ChildProcessSpawner,
|
|
259
259
|
make2
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-fqh4pj6b.js";
|
|
261
261
|
import {
|
|
262
262
|
Id,
|
|
263
263
|
Timestamp
|
|
@@ -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-6n976mhk.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-6n976mhk.js")), (module) => module.updateHerdrCore(options))
|
|
1336
1336
|
});
|
|
1337
1337
|
var herdrCoreMissing = (error) => {
|
|
1338
1338
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1799,7 +1799,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1799
1799
|
});
|
|
1800
1800
|
var syncKits = (input) => gen(function* () {
|
|
1801
1801
|
const fs = yield* FileSystem;
|
|
1802
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1802
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-wkt559vb.js"));
|
|
1803
1803
|
const harnesses = yield* syncTargets(input.harness);
|
|
1804
1804
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1805
1805
|
for (const { name, problem } of chain.skipped)
|
|
@@ -3295,7 +3295,7 @@ var shipped_steps_generated_default = {
|
|
|
3295
3295
|
};
|
|
3296
3296
|
|
|
3297
3297
|
// apps/cli/src/scaffold-files.ts
|
|
3298
|
-
var cliVersion = "0.
|
|
3298
|
+
var cliVersion = "0.50.0";
|
|
3299
3299
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3300
3300
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3301
3301
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3560,7 +3560,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3560
3560
|
|
|
3561
3561
|
// apps/cli/src/commands.ts
|
|
3562
3562
|
var ClientId = "kitman-cli";
|
|
3563
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3563
|
+
var agentRuntime = promise(() => import("./chunk-w4hkd8ab.js"));
|
|
3564
3564
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3565
3565
|
defaultValue: () => gen(function* () {
|
|
3566
3566
|
const tui = yield* tryPromise({
|
|
@@ -5099,7 +5099,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5099
5099
|
});
|
|
5100
5100
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5101
5101
|
defaultValue: () => (options) => gen(function* () {
|
|
5102
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5102
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-qs1f7rh9.js"));
|
|
5103
5103
|
return yield* makeRunnerRpcClient({
|
|
5104
5104
|
runnerId: options.runnerId,
|
|
5105
5105
|
bearer: options.bearer,
|
|
@@ -5644,7 +5644,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5644
5644
|
release: (workUnitId, lease, crashed, tokens, ranModel) => rpc.release({
|
|
5645
5645
|
workUnitId,
|
|
5646
5646
|
lease,
|
|
5647
|
-
...crashed === undefined ? undefined : { crashed
|
|
5647
|
+
...crashed === undefined ? undefined : { crashed },
|
|
5648
5648
|
...tokens === undefined ? undefined : { tokens },
|
|
5649
5649
|
...ranModel === undefined ? undefined : { ranModel }
|
|
5650
5650
|
})
|
|
@@ -5711,7 +5711,7 @@ function mcpCommand(args) {
|
|
|
5711
5711
|
if (command.action === "run") {
|
|
5712
5712
|
if (command.args.length > 0)
|
|
5713
5713
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5714
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5714
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-aekx465g.js"));
|
|
5715
5715
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5716
5716
|
}
|
|
5717
5717
|
if (command.action !== "setup")
|
|
@@ -6211,7 +6211,7 @@ function programLoopCommand(command) {
|
|
|
6211
6211
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6212
6212
|
});
|
|
6213
6213
|
}
|
|
6214
|
-
var docsModule = promise(() => import("./chunk-
|
|
6214
|
+
var docsModule = promise(() => import("./chunk-32jx4pb9.js"));
|
|
6215
6215
|
function docsCommand(args) {
|
|
6216
6216
|
return gen(function* () {
|
|
6217
6217
|
const command = parseCommand(args);
|
|
@@ -7222,7 +7222,7 @@ function changeRequestCommand(args) {
|
|
|
7222
7222
|
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}`);
|
|
7223
7223
|
});
|
|
7224
7224
|
}
|
|
7225
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7225
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-1gxrhdb3.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7226
7226
|
var loopOutline = (command) => gen(function* () {
|
|
7227
7227
|
const path = yield* Path;
|
|
7228
7228
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7242,9 +7242,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7242
7242
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7243
7243
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7244
7244
|
});
|
|
7245
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7245
|
+
var KitWriter = map9(promise(() => import("./chunk-1gxrhdb3.js")), (build) => build.writeKit);
|
|
7246
7246
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7247
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7247
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-1gxrhdb3.js")), (build) => build.buildKit(directory))
|
|
7248
7248
|
});
|
|
7249
7249
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7250
7250
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
decodeText,
|
|
4
|
-
mkString,
|
|
5
|
-
FileSystem,
|
|
6
|
-
Path,
|
|
7
|
-
withDefault,
|
|
8
|
-
String2
|
|
9
|
-
} from "./chunk-xajmb07d.js";
|
|
10
2
|
import {
|
|
11
3
|
isString,
|
|
12
4
|
isObject,
|
|
@@ -44,6 +36,14 @@ import {
|
|
|
44
36
|
Json,
|
|
45
37
|
encodePrettyJsonString
|
|
46
38
|
} from "./chunk-k462v2v7.js";
|
|
39
|
+
import {
|
|
40
|
+
decodeText,
|
|
41
|
+
mkString,
|
|
42
|
+
FileSystem,
|
|
43
|
+
Path,
|
|
44
|
+
withDefault,
|
|
45
|
+
String2
|
|
46
|
+
} from "./chunk-5smh4dp2.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-pp76dgv5.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-tpeynf2f.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-z155a0wp.js";
|
|
75
|
+
import"./chunk-kc1nw3ks.js";
|
|
76
76
|
import"./chunk-9ykh05hz.js";
|
|
77
77
|
import {
|
|
78
78
|
ChildProcessSpawner,
|
|
79
79
|
make2
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import"./chunk-
|
|
80
|
+
} from "./chunk-fqh4pj6b.js";
|
|
81
|
+
import"./chunk-01tf5h5v.js";
|
|
82
82
|
import"./chunk-4vxbxjf8.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
@@ -260,15 +260,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
260
260
|
var Clock = ClockRef;
|
|
261
261
|
var currentTimeMillis = currentTimeMillis2;
|
|
262
262
|
|
|
263
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
264
|
-
var BigInt2 = globalThis.BigInt;
|
|
265
|
-
var toNumber = (b) => {
|
|
266
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
267
|
-
return none();
|
|
268
|
-
}
|
|
269
|
-
return some(Number(b));
|
|
270
|
-
};
|
|
271
|
-
|
|
272
263
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
273
264
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
274
265
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -3675,4 +3666,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3675
3666
|
...argv
|
|
3676
3667
|
];
|
|
3677
3668
|
|
|
3678
|
-
export { empty2, map, makeEquivalence, Clock, currentTimeMillis,
|
|
3669
|
+
export { empty2, map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, interruptAll, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty3, make10, 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, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, 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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-fqh4pj6b.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-pp76dgv5.js";
|
|
16
|
+
import"./chunk-5smh4dp2.js";
|
|
17
17
|
import"./chunk-k462v2v7.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
currentTimeMillis,
|
|
4
|
-
make10,
|
|
5
|
-
runForEach,
|
|
6
|
-
toPull,
|
|
7
|
-
FileSystem,
|
|
8
|
-
compiled2
|
|
9
|
-
} from "./chunk-xajmb07d.js";
|
|
10
2
|
import {
|
|
11
3
|
isSome,
|
|
12
4
|
getOrElse,
|
|
@@ -44,10 +36,18 @@ import {
|
|
|
44
36
|
isString2,
|
|
45
37
|
encodeUnknownJsonStringSync
|
|
46
38
|
} from "./chunk-k462v2v7.js";
|
|
39
|
+
import {
|
|
40
|
+
currentTimeMillis,
|
|
41
|
+
make10,
|
|
42
|
+
runForEach,
|
|
43
|
+
toPull,
|
|
44
|
+
FileSystem,
|
|
45
|
+
compiled2
|
|
46
|
+
} from "./chunk-5smh4dp2.js";
|
|
47
47
|
import {
|
|
48
48
|
ChildProcessSpawner,
|
|
49
49
|
make2
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-fqh4pj6b.js";
|
|
51
51
|
|
|
52
52
|
// packages/agent-runtime/src/opencode-store.ts
|
|
53
53
|
import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-pp76dgv5.js";
|
|
174
174
|
import {
|
|
175
175
|
currentTimeMillis,
|
|
176
176
|
join,
|
|
@@ -188,11 +188,11 @@ import {
|
|
|
188
188
|
withDefault,
|
|
189
189
|
option,
|
|
190
190
|
String2
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-5smh4dp2.js";
|
|
192
192
|
import {
|
|
193
193
|
searchDocs2,
|
|
194
194
|
readDoc2
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-y34fqzax.js";
|
|
196
196
|
import {
|
|
197
197
|
nextInt
|
|
198
198
|
} from "./chunk-04wqa07j.js";
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
withHeaders,
|
|
206
206
|
layerProtocolSocket,
|
|
207
207
|
ConnectionHooks
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-01tf5h5v.js";
|
|
209
209
|
import {
|
|
210
210
|
guard,
|
|
211
211
|
Id,
|
|
@@ -2420,7 +2420,6 @@ var generatedOpenApiSchemas = {
|
|
|
2420
2420
|
"87d00551956db90e": JSON.parse('{"type":"object","properties":{"id":{"type":"string","minLength":1},"workspaceId":{"type":"string","minLength":1},"teamId":{"type":"string","minLength":1},"taskId":{"type":"string","minLength":1},"runId":{"type":"string","minLength":1},"stepKey":{"type":"string","minLength":1,"maxLength":240},"waitId":{"type":"string","minLength":1},"taskThreadEntryId":{"type":"string","minLength":1},"prompt":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"freeText":{"type":"boolean"},"answerSchema":{"type":"object"},"optionDescriptions":{"type":"object","additionalProperties":{"type":"string"}},"recommended":{"type":"string"},"recommendationReason":{"type":"string"},"informationOnly":{"type":"boolean"},"default":{"type":"string","maxLength":4000,"pattern":"^(?![\\\\s\\\\S]*(?:(?:^|[^A-Za-z0-9])sk-[A-Za-z0-9_-]{16,}|ghp_[A-Za-z0-9_]+|github_pat_[A-Za-z0-9_]+|glpat-[A-Za-z0-9_-]+|\\\\b[Bb][Ee][Aa][Rr][Ee][Rr]\\\\s+[A-Za-z0-9._~+/=-]+|eyJ[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+|[A-Za-z][A-Za-z0-9+.-]*:\\\\/\\\\/(?:[^\\\\s/?#]*@|[^\\\\s?#]*\\\\?)))[\\\\s\\\\S]*$"},"defaultAt":{"type":"string","format":"date-time"},"responderPolicy":{"type":"object","properties":{"eligibleMemberIds":{"type":"array","items":{"type":"string","minLength":1},"maxItems":100,"uniqueItems":true},"allowWorkspaceAdmins":{"type":"boolean"}},"required":["eligibleMemberIds","allowWorkspaceAdmins"],"additionalProperties":false},"status":{"type":"string","enum":["open","answered","resume_requested","resumed","resume_failed","expired","cancelled"]},"answer":{"type":"object","properties":{"value":{"type":"string","maxLength":4000,"pattern":"^(?![\\\\s\\\\S]*(?:(?:^|[^A-Za-z0-9])sk-[A-Za-z0-9_-]{16,}|ghp_[A-Za-z0-9_]+|github_pat_[A-Za-z0-9_]+|glpat-[A-Za-z0-9_-]+|\\\\b[Bb][Ee][Aa][Rr][Ee][Rr]\\\\s+[A-Za-z0-9._~+/=-]+|eyJ[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+|[A-Za-z][A-Za-z0-9+.-]*:\\\\/\\\\/(?:[^\\\\s/?#]*@|[^\\\\s?#]*\\\\?)))[\\\\s\\\\S]*$"},"answeredByUserId":{"type":"string","minLength":1},"byDefault":{"type":"boolean"},"byAuto":{"type":"boolean"},"evidence":{"type":"object","properties":{"review":{"type":"string","minLength":1,"maxLength":240},"head":{"type":"string","minLength":1,"maxLength":240}},"additionalProperties":false},"answeredAt":{"type":"string","format":"date-time"},"idempotencyKey":{"type":"string","minLength":1,"maxLength":240}},"required":["value","answeredAt","idempotencyKey"],"additionalProperties":false},"resolutionOutcome":{"type":"string","maxLength":4000,"pattern":"^(?![\\\\s\\\\S]*(?:(?:^|[^A-Za-z0-9])sk-[A-Za-z0-9_-]{16,}|ghp_[A-Za-z0-9_]+|github_pat_[A-Za-z0-9_]+|glpat-[A-Za-z0-9_-]+|\\\\b[Bb][Ee][Aa][Rr][Ee][Rr]\\\\s+[A-Za-z0-9._~+/=-]+|eyJ[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+\\\\.[A-Za-z0-9_-]+|[A-Za-z][A-Za-z0-9+.-]*:\\\\/\\\\/(?:[^\\\\s/?#]*@|[^\\\\s?#]*\\\\?)))[\\\\s\\\\S]*$"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"resolvedAt":{"type":"string","format":"date-time"}},"required":["id","workspaceId","runId","stepKey","waitId","prompt","responderPolicy","status","createdAt","updatedAt"],"additionalProperties":false}'),
|
|
2421
2421
|
"883256a3dec42d3c": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":1,"pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"},"logo":{"type":["string","null"],"maxLength":2048},"notificationPreferences":{"type":"object","properties":{"decisionsRequiringAttention":{"type":"boolean"},"workReadyForReview":{"type":"boolean"}},"required":["decisionsRequiringAttention","workReadyForReview"],"additionalProperties":false},"releaseChannel":{"type":"string","enum":["stable","next"]}},"additionalProperties":false}}}'),
|
|
2422
2422
|
"895ed3078f5b3bb9": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId"],"properties":{"workspaceId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string","minLength":1},"me":{"type":"boolean"}}}}}'),
|
|
2423
|
-
"89d13d5a543363c0": JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"type":"object","properties":{"workUnitId":{"type":"string","minLength":1},"lease":{"type":"object","properties":{"leaseOwnerId":{"type":"string","minLength":1},"runnerReplicaId":{"type":"string","minLength":1},"leaseId":{"type":"string","minLength":1},"attempt":{"type":"integer","minimum":1,"maximum":9007199254740991},"fencingToken":{"type":"string","minLength":1,"maxLength":240,"pattern":"^[A-Za-z0-9._:-]+$"},"capacitySlot":{"type":"string","minLength":1,"maxLength":240}},"required":["leaseOwnerId","runnerReplicaId","leaseId","attempt","fencingToken","capacitySlot"],"additionalProperties":false},"crashed":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"],"additionalProperties":false},"tokens":{"anyOf":[{"type":"object","properties":{"input":{"type":"integer","minimum":0,"maximum":9007199254740991},"output":{"type":"integer","minimum":0,"maximum":9007199254740991},"cached":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input","output","cached"],"additionalProperties":false},{"type":"string","enum":["none"]}]},"ranModel":{"type":"string","minLength":1,"maxLength":200}},"required":["workUnitId","lease"],"additionalProperties":false}}}'),
|
|
2424
2423
|
"89f8e1710beaa6fd": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskId","input"],"properties":{"workspaceId":{"type":"string"},"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"typeId":{"type":"string"}},"required":["typeId"],"additionalProperties":true}}}'),
|
|
2425
2424
|
"8ac901573072021d": JSON.parse('{"type":"object","additionalProperties":false,"required":["taskId"],"properties":{"taskId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"limit":{"anyOf":[{"type":"number"},{"type":"string"}],"multipleOf":1,"minimum":1,"maximum":100},"cursor":{"type":"string","minLength":1,"maxLength":512}}}}}'),
|
|
2426
2425
|
"8b7f0d125d2e791e": JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","loop","input"],"properties":{"workspaceId":{"type":"string"},"loop":{"type":"string"},"input":{"type":"object","properties":{"teamId":{"type":"string"},"projectId":{"type":"string"},"when":{"type":"string"},"values":{"type":"object"},"unset":{"type":"array","items":{"type":"string"}},"off":{"type":"boolean"}},"additionalProperties":false}}}'),
|
|
@@ -2566,6 +2565,7 @@ var generatedOpenApiSchemas = {
|
|
|
2566
2565
|
d0fc6e2ff3936a66: JSON.parse('{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"],"additionalProperties":false}'),
|
|
2567
2566
|
d2bd2b1645c3d7c9: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","taskId","input"],"properties":{"workspaceId":{"type":"string"},"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":240},"description":{"type":"string"},"expectedRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptanceCriteria":{"type":"array","items":{"type":"string"}},"promise":{"type":"string"},"outOfScope":{"type":"array","items":{"type":"string"}}},"additionalProperties":true,"allOf":[{"dependentRequired":{"description":["expectedRevision"]}}]}}}'),
|
|
2568
2567
|
d414f4bf42cac3bf: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","releaseId","sinceId"],"properties":{"workspaceId":{"type":"string"},"releaseId":{"type":"string"},"sinceId":{"type":"string"}}}'),
|
|
2568
|
+
d42b4f0add6bacab: JSON.parse('{"type":"object","additionalProperties":false,"required":["runnerId","input"],"properties":{"runnerId":{"type":"string"},"input":{"type":"object","properties":{"workUnitId":{"type":"string","minLength":1},"lease":{"type":"object","properties":{"leaseOwnerId":{"type":"string","minLength":1},"runnerReplicaId":{"type":"string","minLength":1},"leaseId":{"type":"string","minLength":1},"attempt":{"type":"integer","minimum":1,"maximum":9007199254740991},"fencingToken":{"type":"string","minLength":1,"maxLength":240,"pattern":"^[A-Za-z0-9._:-]+$"},"capacitySlot":{"type":"string","minLength":1,"maxLength":240}},"required":["leaseOwnerId","runnerReplicaId","leaseId","attempt","fencingToken","capacitySlot"],"additionalProperties":false},"crashed":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500},"output":{"type":"string","minLength":1,"maxLength":4000},"outputCut":{"type":"boolean"}},"required":["reason"],"additionalProperties":false},"tokens":{"anyOf":[{"type":"object","properties":{"input":{"type":"integer","minimum":0,"maximum":9007199254740991},"output":{"type":"integer","minimum":0,"maximum":9007199254740991},"cached":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["input","output","cached"],"additionalProperties":false},{"type":"string","enum":["none"]}]},"ranModel":{"type":"string","minLength":1,"maxLength":200}},"required":["workUnitId","lease"],"additionalProperties":false}}}'),
|
|
2569
2569
|
d43dbe22c50735a6: JSON.parse('{"type":"object","additionalProperties":false,"required":["taskId","input"],"properties":{"taskId":{"type":"string","description":"The Task: its id or any key it has had, such as `KIT-12`."},"input":{"type":"object","properties":{"kind":{"type":"string","enum":["note","question","answer","decision","blocker","finding","handoff","test_result","file_reference","status_change","assignment_change","link","change_request_review"]},"content":{"type":"string","minLength":1},"replyToEntryId":{"type":"string","minLength":1},"sessionId":{"type":"string","minLength":1},"metadata":{"type":"object"}},"required":["kind","content"],"additionalProperties":false}}}'),
|
|
2570
2570
|
d452082a06ab5d01: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","projectId"],"properties":{"workspaceId":{"type":"string"},"projectId":{"type":"string"},"options":{"type":"object","additionalProperties":false,"properties":{"teamId":{"type":"string"}}}}}'),
|
|
2571
2571
|
d47c5c5993120979: JSON.parse('{"type":"object","additionalProperties":false,"required":["workspaceId","input"],"properties":{"workspaceId":{"type":"string"},"input":{"type":"object","properties":{"days":{"type":["integer","null"],"minimum":1,"maximum":9007199254740991}},"required":["days"],"additionalProperties":false}}}'),
|
|
@@ -2886,7 +2886,7 @@ var generatedOpenApiOperationContracts = {
|
|
|
2886
2886
|
rejectProposal: { inputSchemaId: "20968fa48262e049", outputSchemaId: "7fab9a5599bcd5e7" },
|
|
2887
2887
|
releaseClaim: { inputSchemaId: "7bed8e79738b4b18", outputSchemaId: "f9063d1392f12dae" },
|
|
2888
2888
|
releaseProject: { inputSchemaId: "7e5d9ded46e58a68", outputSchemaId: "9933f9e0c14c959b" },
|
|
2889
|
-
releaseRunnerWorkUnit: { inputSchemaId: "
|
|
2889
|
+
releaseRunnerWorkUnit: { inputSchemaId: "d42b4f0add6bacab", outputSchemaId: "44136fa355b3678a" },
|
|
2890
2890
|
removeInitiativeMember: { inputSchemaId: "329effe3e10d3405", outputSchemaId: "a338183ae192be44" },
|
|
2891
2891
|
removeKit: { inputSchemaId: "8fc1ea5dc8321b2e", outputSchemaId: "fd8b1ae3fafaa38a" },
|
|
2892
2892
|
removeKitInstall: { inputSchemaId: "78448073ec29793b", outputSchemaId: "fd8b1ae3fafaa38a" },
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-k462v2v7.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5smh4dp2.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-pp76dgv5.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make3,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-01tf5h5v.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -272,7 +272,6 @@ import {
|
|
|
272
272
|
makeEquivalence,
|
|
273
273
|
Clock,
|
|
274
274
|
currentTimeMillis,
|
|
275
|
-
toNumber,
|
|
276
275
|
bytes,
|
|
277
276
|
BadArgument,
|
|
278
277
|
systemError,
|
|
@@ -337,7 +336,7 @@ import {
|
|
|
337
336
|
optionalEnv,
|
|
338
337
|
harnessesUnsupportedInSrt2,
|
|
339
338
|
harnessesUnsupportedInDocker2
|
|
340
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-5smh4dp2.js";
|
|
341
340
|
import {
|
|
342
341
|
ExitCode,
|
|
343
342
|
ProcessId,
|
|
@@ -348,7 +347,7 @@ import {
|
|
|
348
347
|
make2,
|
|
349
348
|
parseFdName,
|
|
350
349
|
fdName
|
|
351
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-fqh4pj6b.js";
|
|
352
351
|
import {
|
|
353
352
|
isDateTime,
|
|
354
353
|
Numeric,
|
|
@@ -362,6 +361,7 @@ import {
|
|
|
362
361
|
SecretHosts,
|
|
363
362
|
isSecretReference
|
|
364
363
|
} from "./chunk-4vxbxjf8.js";
|
|
364
|
+
|
|
365
365
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
366
366
|
var makeEquivalence3 = Tuple;
|
|
367
367
|
|
|
@@ -898,6 +898,15 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
|
|
|
898
898
|
// node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
|
|
899
899
|
var runMain = runMain2;
|
|
900
900
|
|
|
901
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
902
|
+
var BigInt2 = globalThis.BigInt;
|
|
903
|
+
var toNumber = (b) => {
|
|
904
|
+
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
905
|
+
return none();
|
|
906
|
+
}
|
|
907
|
+
return some(Number(b));
|
|
908
|
+
};
|
|
909
|
+
|
|
901
910
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
|
|
902
911
|
var makeUnsafe = makeUnsafe6;
|
|
903
912
|
var make18 = make3;
|
|
@@ -8185,10 +8194,16 @@ var WorkUnitHeartbeatResult = Struct({
|
|
|
8185
8194
|
questionOpen: optionalKey(Boolean2),
|
|
8186
8195
|
revokedSecrets: optionalKey(ArraySchema(SecretName))
|
|
8187
8196
|
});
|
|
8197
|
+
var programCrashOutputChars = 4000;
|
|
8198
|
+
var ProgramCrash = Struct({
|
|
8199
|
+
reason: String4.check(isMinLength(1), isMaxLength(500)),
|
|
8200
|
+
output: optionalKey(String4.check(isMinLength(1), isMaxLength(programCrashOutputChars))),
|
|
8201
|
+
outputCut: optionalKey(Boolean2)
|
|
8202
|
+
});
|
|
8188
8203
|
var WorkUnitReleaseInput = Struct({
|
|
8189
8204
|
workUnitId: Id,
|
|
8190
8205
|
lease: WorkUnitLeaseInput,
|
|
8191
|
-
crashed: optionalKey(
|
|
8206
|
+
crashed: optionalKey(ProgramCrash),
|
|
8192
8207
|
tokens: optionalKey(AttemptTokens),
|
|
8193
8208
|
ranModel: optionalKey(String4.check(isMinLength(1), isMaxLength(200)))
|
|
8194
8209
|
});
|
|
@@ -17544,7 +17559,8 @@ var runProcess2 = (argv, options) => gen(function* () {
|
|
|
17544
17559
|
...options.cwd === undefined ? undefined : { cwd: options.cwd },
|
|
17545
17560
|
env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
|
|
17546
17561
|
}));
|
|
17547
|
-
const
|
|
17562
|
+
const decoded = (stream) => decodeText(options.onOutput === undefined ? stream : tap(stream, options.onOutput));
|
|
17563
|
+
const tail = runFold(merge2(decoded(handle.stdout), decoded(handle.stderr)), () => "", (kept, text) => kept.length + text.length <= shellOutputTailChars2 ? kept + text : (kept + text).slice(-shellOutputTailChars2));
|
|
17548
17564
|
const [output, exitCode] = yield* all3([tail, handle.exitCode], { concurrency: 2 });
|
|
17549
17565
|
return { exitCode: Number(exitCode), output };
|
|
17550
17566
|
}).pipe(scoped, timeoutOrElse({
|
|
@@ -18061,4 +18077,4 @@ function serviceChecks(declaration) {
|
|
|
18061
18077
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
18062
18078
|
}
|
|
18063
18079
|
|
|
18064
|
-
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, WorkAvailable, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|
|
18080
|
+
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, programCrashOutputChars, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, WorkAvailable, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|
|
@@ -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-kc1nw3ks.js";
|
|
8
|
+
import"./chunk-01tf5h5v.js";
|
|
9
|
+
import"./chunk-pp76dgv5.js";
|
|
10
10
|
import"./chunk-4vxbxjf8.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-5smh4dp2.js";
|
|
12
12
|
import"./chunk-k462v2v7.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
readOpencode2,
|
|
10
10
|
databaseStamp2,
|
|
11
11
|
runOpencodeReader2
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
12
|
+
} from "./chunk-8gkrs473.js";
|
|
13
|
+
import"./chunk-fqh4pj6b.js";
|
|
14
|
+
import"./chunk-5smh4dp2.js";
|
|
15
15
|
import"./chunk-k462v2v7.js";
|
|
16
16
|
export {
|
|
17
17
|
databaseStamp2 as databaseStamp,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5smh4dp2.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-pp76dgv5.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -187,57 +187,6 @@ import {
|
|
|
187
187
|
encodeUnknownJsonStringSync,
|
|
188
188
|
storable
|
|
189
189
|
} from "./chunk-k462v2v7.js";
|
|
190
|
-
import {
|
|
191
|
-
empty2,
|
|
192
|
-
currentTimeMillis,
|
|
193
|
-
join,
|
|
194
|
-
interrupt,
|
|
195
|
-
interruptAll,
|
|
196
|
-
unbounded,
|
|
197
|
-
publishUnsafe,
|
|
198
|
-
unbounded2,
|
|
199
|
-
offer,
|
|
200
|
-
makeUnsafe3,
|
|
201
|
-
make10,
|
|
202
|
-
fromQueue,
|
|
203
|
-
fromPubSub,
|
|
204
|
-
map2,
|
|
205
|
-
filter,
|
|
206
|
-
take2,
|
|
207
|
-
mapAccum,
|
|
208
|
-
decodeText,
|
|
209
|
-
encodeText,
|
|
210
|
-
splitLines,
|
|
211
|
-
run,
|
|
212
|
-
runCollect,
|
|
213
|
-
runFold,
|
|
214
|
-
runHead,
|
|
215
|
-
runForEach,
|
|
216
|
-
FileSystem,
|
|
217
|
-
Path,
|
|
218
|
-
embeddedFile,
|
|
219
|
-
extractEmbeddedFile,
|
|
220
|
-
withDefault,
|
|
221
|
-
String2,
|
|
222
|
-
optionalEnv,
|
|
223
|
-
operatorConfigHome,
|
|
224
|
-
tempDirectoryScoped,
|
|
225
|
-
harnessesUnsupportedInSrt2,
|
|
226
|
-
harnessesUnsupportedInDocker2,
|
|
227
|
-
compiled2,
|
|
228
|
-
pinnedSrtCommand2,
|
|
229
|
-
pinnedSrtStepCommand2,
|
|
230
|
-
runSrtCli2,
|
|
231
|
-
kitmanCacheDirectory2,
|
|
232
|
-
srtSettings2,
|
|
233
|
-
srtCacheEnvironment2,
|
|
234
|
-
srtInheritedEnv2,
|
|
235
|
-
inheritedEnvironment2,
|
|
236
|
-
withOnlyEnvironment2,
|
|
237
|
-
writeSrtSettings2,
|
|
238
|
-
srtStepArgv2,
|
|
239
|
-
srtArgv2
|
|
240
|
-
} from "./chunk-xajmb07d.js";
|
|
241
190
|
import {
|
|
242
191
|
SecureRandom,
|
|
243
192
|
layerWebCrypto,
|
|
@@ -276,6 +225,7 @@ import {
|
|
|
276
225
|
commitMessageMax,
|
|
277
226
|
commandTimeoutMillisDefault,
|
|
278
227
|
commandTextLimit,
|
|
228
|
+
programCrashOutputChars,
|
|
279
229
|
catchUpPathLimit,
|
|
280
230
|
verificationCap,
|
|
281
231
|
createId,
|
|
@@ -327,7 +277,60 @@ import {
|
|
|
327
277
|
checkServicesFile,
|
|
328
278
|
checkServices,
|
|
329
279
|
serviceChecks
|
|
330
|
-
} from "./chunk-
|
|
280
|
+
} from "./chunk-pp76dgv5.js";
|
|
281
|
+
import {
|
|
282
|
+
empty2,
|
|
283
|
+
currentTimeMillis,
|
|
284
|
+
join,
|
|
285
|
+
interrupt,
|
|
286
|
+
interruptAll,
|
|
287
|
+
unbounded,
|
|
288
|
+
publishUnsafe,
|
|
289
|
+
unbounded2,
|
|
290
|
+
offer,
|
|
291
|
+
makeUnsafe3,
|
|
292
|
+
make10,
|
|
293
|
+
fromQueue,
|
|
294
|
+
fromPubSub,
|
|
295
|
+
map2,
|
|
296
|
+
tap,
|
|
297
|
+
merge2,
|
|
298
|
+
filter,
|
|
299
|
+
take2,
|
|
300
|
+
mapAccum,
|
|
301
|
+
decodeText,
|
|
302
|
+
encodeText,
|
|
303
|
+
splitLines,
|
|
304
|
+
run,
|
|
305
|
+
runCollect,
|
|
306
|
+
runFold,
|
|
307
|
+
runHead,
|
|
308
|
+
runForEach,
|
|
309
|
+
FileSystem,
|
|
310
|
+
Path,
|
|
311
|
+
embeddedFile,
|
|
312
|
+
extractEmbeddedFile,
|
|
313
|
+
withDefault,
|
|
314
|
+
String2,
|
|
315
|
+
optionalEnv,
|
|
316
|
+
operatorConfigHome,
|
|
317
|
+
tempDirectoryScoped,
|
|
318
|
+
harnessesUnsupportedInSrt2,
|
|
319
|
+
harnessesUnsupportedInDocker2,
|
|
320
|
+
compiled2,
|
|
321
|
+
pinnedSrtCommand2,
|
|
322
|
+
pinnedSrtStepCommand2,
|
|
323
|
+
runSrtCli2,
|
|
324
|
+
kitmanCacheDirectory2,
|
|
325
|
+
srtSettings2,
|
|
326
|
+
srtCacheEnvironment2,
|
|
327
|
+
srtInheritedEnv2,
|
|
328
|
+
inheritedEnvironment2,
|
|
329
|
+
withOnlyEnvironment2,
|
|
330
|
+
writeSrtSettings2,
|
|
331
|
+
srtStepArgv2,
|
|
332
|
+
srtArgv2
|
|
333
|
+
} from "./chunk-5smh4dp2.js";
|
|
331
334
|
import {
|
|
332
335
|
writeAgentEnvironmentConfigFile2,
|
|
333
336
|
readManifestSkillPaths2,
|
|
@@ -343,8 +346,8 @@ import {
|
|
|
343
346
|
applyAgentEnvironmentMaterialization2,
|
|
344
347
|
isPathWithin2,
|
|
345
348
|
skillIdentity2
|
|
346
|
-
} from "./chunk-
|
|
347
|
-
import"./chunk-
|
|
349
|
+
} from "./chunk-wkfht1sx.js";
|
|
350
|
+
import"./chunk-tpeynf2f.js";
|
|
348
351
|
import {
|
|
349
352
|
egressAllowed,
|
|
350
353
|
writeSecretRegistry,
|
|
@@ -364,15 +367,15 @@ import {
|
|
|
364
367
|
lookAtOpencode2,
|
|
365
368
|
readOpencode2,
|
|
366
369
|
databaseStamp2
|
|
367
|
-
} from "./chunk-
|
|
370
|
+
} from "./chunk-8gkrs473.js";
|
|
368
371
|
import {
|
|
369
372
|
uploadRunFile,
|
|
370
373
|
programLease,
|
|
371
374
|
rpcRunFiles,
|
|
372
375
|
programHostsEnv,
|
|
373
376
|
undeclaredHostsEnv
|
|
374
|
-
} from "./chunk-
|
|
375
|
-
import"./chunk-
|
|
377
|
+
} from "./chunk-z155a0wp.js";
|
|
378
|
+
import"./chunk-kc1nw3ks.js";
|
|
376
379
|
import {
|
|
377
380
|
nextInt
|
|
378
381
|
} from "./chunk-04wqa07j.js";
|
|
@@ -380,8 +383,8 @@ import"./chunk-9ykh05hz.js";
|
|
|
380
383
|
import {
|
|
381
384
|
ChildProcessSpawner,
|
|
382
385
|
make2
|
|
383
|
-
} from "./chunk-
|
|
384
|
-
import"./chunk-
|
|
386
|
+
} from "./chunk-fqh4pj6b.js";
|
|
387
|
+
import"./chunk-01tf5h5v.js";
|
|
385
388
|
import {
|
|
386
389
|
Id,
|
|
387
390
|
secretReference,
|
|
@@ -9117,9 +9120,16 @@ var kitmanBundles = (input) => gen(function* () {
|
|
|
9117
9120
|
};
|
|
9118
9121
|
});
|
|
9119
9122
|
// packages/agent-runtime/src/program-process.ts
|
|
9123
|
+
import { stripVTControlCharacters } from "util";
|
|
9120
9124
|
var inheritedEnv = ["PATH", "HOME", "TMPDIR", "LANG", "LC_ALL", "TZ"];
|
|
9121
9125
|
var containerEnv = new Set(["LANG", "LC_ALL", "TZ"]);
|
|
9122
9126
|
var failed2 = (failureSummary) => ({ status: "failed", failureSummary });
|
|
9127
|
+
var keepEnd = (kept, text) => kept.text.length + text.length <= programCrashOutputChars ? { text: kept.text + text, cut: kept.cut } : { text: (kept.text + text).slice(-programCrashOutputChars), cut: true };
|
|
9128
|
+
var crash = (reason, output) => {
|
|
9129
|
+
const written = stripVTControlCharacters(output.text).trim();
|
|
9130
|
+
return written.length === 0 ? { reason } : { reason, output: written, outputCut: output.cut };
|
|
9131
|
+
};
|
|
9132
|
+
var forwardTo = (sink) => (chunk) => callback3((resume) => void sink.write(chunk, () => resume(void_3)));
|
|
9123
9133
|
var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
9124
9134
|
const { sandbox } = input;
|
|
9125
9135
|
if (sandbox !== undefined && sandbox.backend === undefined)
|
|
@@ -9143,17 +9153,20 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
9143
9153
|
...hosts === undefined ? undefined : { [programHostsEnv]: hosts.join(",") },
|
|
9144
9154
|
[undeclaredHostsEnv]: sandbox === undefined ? "warn" : "fail"
|
|
9145
9155
|
};
|
|
9146
|
-
const
|
|
9156
|
+
const { ended, output } = sandbox === undefined ? yield* gen(function* () {
|
|
9147
9157
|
const spawner = yield* ChildProcessSpawner;
|
|
9148
9158
|
const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
|
|
9149
9159
|
stdin: make10(new TextEncoder().encode(stdin)),
|
|
9150
|
-
stdout: "
|
|
9151
|
-
stderr: "
|
|
9160
|
+
stdout: "pipe",
|
|
9161
|
+
stderr: "pipe",
|
|
9152
9162
|
extendEnv: false,
|
|
9153
9163
|
env: { ...Object.fromEntries(inherited), ...programEnv },
|
|
9154
9164
|
forceKillAfter: "5 seconds"
|
|
9155
9165
|
}));
|
|
9156
|
-
|
|
9166
|
+
const output = runFold(merge2(decodeText(tap(handle.stdout, forwardTo(process.stdout))), decodeText(tap(handle.stderr, forwardTo(process.stderr)))), () => ({ text: "", cut: false }), keepEnd);
|
|
9167
|
+
const exited = handle.exitCode.pipe(map9((code) => ({ code: Number(code) })), catch_((error) => succeed6({ stopped: error.cause instanceof Error ? error.cause.message : error.message })));
|
|
9168
|
+
const [written, ended] = yield* all3([output, exited], { concurrency: 2 });
|
|
9169
|
+
return { ended, output: written };
|
|
9157
9170
|
}) : yield* gen(function* () {
|
|
9158
9171
|
const tmp = yield* tempDirectoryScoped(yield* FileSystem, { prefix: "kitman-program-" });
|
|
9159
9172
|
const policy = {
|
|
@@ -9198,15 +9211,23 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
9198
9211
|
});
|
|
9199
9212
|
if (ran.exitCode !== 0)
|
|
9200
9213
|
yield* logWarning("runner_program_output", ran.output);
|
|
9201
|
-
|
|
9214
|
+
const kept = ran.output.slice(-programCrashOutputChars);
|
|
9215
|
+
return {
|
|
9216
|
+
ended: { code: ran.exitCode },
|
|
9217
|
+
output: {
|
|
9218
|
+
text: kept,
|
|
9219
|
+
cut: kept.length < ran.output.length || ran.output.length >= shellOutputTailChars2
|
|
9220
|
+
}
|
|
9221
|
+
};
|
|
9202
9222
|
});
|
|
9203
|
-
if (
|
|
9223
|
+
if ("code" in ended && ended.code === 0)
|
|
9204
9224
|
return { status: "settled" };
|
|
9205
|
-
yield* logWarning("runner_program_exited_unsettled", { workUnitId: work.id,
|
|
9206
|
-
|
|
9225
|
+
yield* logWarning("runner_program_exited_unsettled", { workUnitId: work.id, ...ended });
|
|
9226
|
+
const reason = "code" in ended ? `it exited with code ${ended.code}` : `it stopped before it exited: ${ended.stopped}`.slice(0, 500);
|
|
9227
|
+
return { status: "deferred", crashed: crash(reason, output) };
|
|
9207
9228
|
}).pipe(scoped, catch_((error) => as(logWarning("runner_program_not_started", error.message), {
|
|
9208
9229
|
status: "deferred",
|
|
9209
|
-
crashed: `it did not start: ${error.message}`.slice(0, 500)
|
|
9230
|
+
crashed: { reason: `it did not start: ${error.message}`.slice(0, 500) }
|
|
9210
9231
|
})));
|
|
9211
9232
|
// packages/agent-runtime/src/deploy-script.ts
|
|
9212
9233
|
var deployScript = ".kitman/deploy";
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path,
|
|
5
|
-
optionalEnv,
|
|
6
|
-
tempDirectoryScoped
|
|
7
|
-
} from "./chunk-xajmb07d.js";
|
|
8
2
|
import {
|
|
9
3
|
Reference,
|
|
10
4
|
TaggedError,
|
|
@@ -32,14 +26,20 @@ import {
|
|
|
32
26
|
encodePrettyJsonString,
|
|
33
27
|
decodeJsonStringSync
|
|
34
28
|
} from "./chunk-k462v2v7.js";
|
|
29
|
+
import {
|
|
30
|
+
FileSystem,
|
|
31
|
+
Path,
|
|
32
|
+
optionalEnv,
|
|
33
|
+
tempDirectoryScoped
|
|
34
|
+
} from "./chunk-5smh4dp2.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-pp76dgv5.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-tpeynf2f.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
FileSystem,
|
|
4
|
-
Path
|
|
5
|
-
} from "./chunk-xajmb07d.js";
|
|
6
2
|
import {
|
|
7
3
|
isObject,
|
|
8
4
|
isUint8Array,
|
|
@@ -18,12 +14,16 @@ import {
|
|
|
18
14
|
decodeJsonString,
|
|
19
15
|
encodePrettyJsonString
|
|
20
16
|
} from "./chunk-k462v2v7.js";
|
|
17
|
+
import {
|
|
18
|
+
FileSystem,
|
|
19
|
+
Path
|
|
20
|
+
} from "./chunk-5smh4dp2.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-wkfht1sx.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-pp76dgv5.js";
|
|
35
|
+
import"./chunk-tpeynf2f.js";
|
|
36
|
+
import"./chunk-fqh4pj6b.js";
|
|
37
37
|
import"./chunk-4vxbxjf8.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
@@ -491,7 +491,7 @@ A Team's Tasks and Runs get the Kits of its Owner chain, nearest first: the Team
|
|
|
491
491
|
path: "kits#release-channel",
|
|
492
492
|
level: 3,
|
|
493
493
|
link: "https://kitman.sh/knowledge/docs/kits#release-channel",
|
|
494
|
-
text: "### Release channel\n\nAn unpinned npm install follows its Workspace's release channel, the one its Runners follow:\n\n- `stable`, the default: npm's `latest` dist-tag.\n- `next`: the newer of npm's `next` and `latest` dist-tags, so a release candidate published under `next` reaches the install, and a stable release newer than it reaches it too.\n\nA pinned version always wins on either channel. Moving back from `next` to `stable` never downgrades an install: one on a version `next` brought stays on it until npm's `latest` names a newer release. Otherwise a `stable` install follows `latest` wherever it points, back to an older release too when the publisher retags it. A Workspace admin sets the channel in Settings \u2192 General \u2192 Release channel, or with `kitman workspace channel stable|next`.\n\nIn the web, Settings \u2192 Kits lists a Team's Kits and shows each deployed Kit's versions, the records it owns and edits made since."
|
|
494
|
+
text: "### Release channel\n\nAn unpinned npm install follows its Workspace's release channel, the one its Runners follow:\n\n- `stable`, the default: npm's `latest` dist-tag.\n- `next`: the newer of npm's `next` and `latest` dist-tags, so a release candidate published under `next` reaches the install, and a stable release newer than it reaches it too.\n\nKitman asks npm for each channel's dist-tag about once a minute, once per Kit and channel, and moves every unpinned install behind it, whether or not its Workspace runs anything. Starting a Run asks npm nothing: it uses the install's version as it stands, so a Run started in the minute after a release may still run the one before. When npm does not answer, or a version is refused, `kitman kit show` gives the reason as the install's problem and the install stays where it is until a later check succeeds.\n\nA pinned version always wins on either channel. Moving back from `next` to `stable` never downgrades an install: one on a version `next` brought stays on it until npm's `latest` names a newer release. Otherwise a `stable` install follows `latest` wherever it points, back to an older release too when the publisher retags it. A Workspace admin sets the channel in Settings \u2192 General \u2192 Release channel, or with `kitman workspace channel stable|next`.\n\nIn the web, Settings \u2192 Kits lists a Team's Kits and shows each deployed Kit's versions, the records it owns and edits made since."
|
|
495
495
|
},
|
|
496
496
|
{
|
|
497
497
|
title: "Kits Guide \u203A The Marketplace",
|
|
@@ -2230,7 +2230,7 @@ var pathOfLink = (link) => {
|
|
|
2230
2230
|
return page === null ? link : page[1] || "index";
|
|
2231
2231
|
};
|
|
2232
2232
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
2233
|
-
var pinnedLink2 = (link, version = "0.
|
|
2233
|
+
var pinnedLink2 = (link, version = "0.50.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
2234
2234
|
var pageOf = (path) => path.split("#")[0];
|
|
2235
2235
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
2236
2236
|
function excerpt(text, queryTerms) {
|
|
@@ -140,12 +140,6 @@ import {
|
|
|
140
140
|
Json,
|
|
141
141
|
encodeUnknownJsonStringSync
|
|
142
142
|
} from "./chunk-k462v2v7.js";
|
|
143
|
-
import {
|
|
144
|
-
currentTimeMillis,
|
|
145
|
-
getCurrent,
|
|
146
|
-
runForEach,
|
|
147
|
-
FileSystem
|
|
148
|
-
} from "./chunk-xajmb07d.js";
|
|
149
143
|
import {
|
|
150
144
|
WebCrypto,
|
|
151
145
|
makeUnsafe,
|
|
@@ -186,7 +180,13 @@ import {
|
|
|
186
180
|
StepManifest,
|
|
187
181
|
KitSetup,
|
|
188
182
|
RunnerRpcError
|
|
189
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-pp76dgv5.js";
|
|
184
|
+
import {
|
|
185
|
+
currentTimeMillis,
|
|
186
|
+
getCurrent,
|
|
187
|
+
runForEach,
|
|
188
|
+
FileSystem
|
|
189
|
+
} from "./chunk-5smh4dp2.js";
|
|
190
190
|
import {
|
|
191
191
|
splitQuestionOptions,
|
|
192
192
|
recommendationProblem,
|
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-a71b15k3.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
11
|
const { runSrtStep } = await import("./chunk-5pjbxhxy.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-tfwgeqx5.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-0nqjdqnc.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|