@kitman-sh/cli 0.50.1 → 0.52.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-8r9k7pqk.js → chunk-2nq80r46.js} +59 -19
- package/dist/{chunk-k5cqc0cs.js → chunk-2t1hcdeq.js} +19 -21
- package/dist/{chunk-apv9h5tz.js → chunk-5yygjn0k.js} +1 -1
- package/dist/{chunk-g3c1vesf.js → chunk-84qb67e2.js} +1 -1
- package/dist/{chunk-rr0rem5d.js → chunk-9hde8p6b.js} +6 -6
- package/dist/{chunk-mtrhqr16.js → chunk-a40yta1r.js} +3 -3
- package/dist/{chunk-h3wes7wf.js → chunk-axfp5tzk.js} +7 -7
- package/dist/{chunk-qfwhsqej.js → chunk-bhz25x76.js} +3 -3
- package/dist/{chunk-hyaq30ne.js → chunk-bj0zchck.js} +179 -188
- package/dist/{chunk-watq46xe.js → chunk-chbdcf34.js} +9 -11
- package/dist/{chunk-7y1w0dhd.js → chunk-eqh0h088.js} +25 -27
- package/dist/{chunk-ecweehc6.js → chunk-h5ydhdhx.js} +23 -23
- package/dist/{chunk-q8m2ygyt.js → chunk-kt26vpwf.js} +9 -9
- package/dist/{chunk-brbym443.js → chunk-mmt6xq48.js} +2 -2
- package/dist/{chunk-v96hm634.js → chunk-my9db578.js} +4 -4
- package/dist/{chunk-72ht3484.js → chunk-pppryg54.js} +6 -6
- package/dist/{chunk-ag79vvjy.js → chunk-q2z8rct0.js} +4 -4
- package/dist/{chunk-s6z4sdkw.js → chunk-qjfzcrv5.js} +4 -4
- package/dist/{chunk-s8ws5fqj.js → chunk-qsbq9gvr.js} +350 -185
- package/dist/{chunk-n00cpb86.js → chunk-tfznw549.js} +2 -2
- package/dist/{chunk-k1fdsn2c.js → chunk-tqspx38s.js} +1 -1
- package/dist/{chunk-9jz94mb7.js → chunk-trtgab3h.js} +3 -3
- package/dist/{chunk-9vdy85kg.js → chunk-wb04fv2s.js} +34 -34
- package/dist/{chunk-5tgpa02q.js → chunk-wxg9k10v.js} +1 -1
- package/dist/{chunk-bk28dr40.js → chunk-xbqd3kqc.js} +14 -14
- package/dist/{chunk-n381rqax.js → chunk-zb4t1yrt.js} +71 -257
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-zb4t1yrt.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-wxg9k10v.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -253,7 +253,7 @@ With the default workflow, the Task follows its Run:
|
|
|
253
253
|
- the Run starts: **In Progress**;
|
|
254
254
|
- its ChangeRequest opens: **In Review**;
|
|
255
255
|
- its ChangeRequest merges: **Done**;
|
|
256
|
-
- the Run finishes without a ChangeRequest, as Research does: **In Review**, for a person to look at;
|
|
256
|
+
- the Run finishes without a ChangeRequest, as Research does, or a Build whose implementer found nothing needed changing: **In Review**, for a person to look at;
|
|
257
257
|
- the Run is blocked, as a full-auto Build is when findings still stand after its last rebuild, or when its Review rounds are not converging: **Blocked**. Its blocker is on the Task's timeline. Move the Task on once you have dealt with it; a new Run moves it to **In Progress**.
|
|
258
258
|
|
|
259
259
|
A ChangeRequest someone opens by hand on a branch named with the Task's key moves the Task too. The Team's Workflow tab changes where each milestone goes. Each Run or ChangeRequest moves the Task once per milestone, and never out of Done, Canceled or Duplicate.
|
|
@@ -605,7 +605,7 @@ kitman run drift <run> --dismiss <constraint> --reason "fixtures, not released m
|
|
|
605
605
|
path: "loop-operations#alignment",
|
|
606
606
|
level: 2,
|
|
607
607
|
link: "https://kitman.sh/knowledge/docs/loop-operations#alignment",
|
|
608
|
-
text: "## Alignment\n\nWhen a Run completes, Kitman checks its rules on the last change and runs one final Judgement of the goal, each done-when item and each constraint. The judge sees the last agent Step's evidence and the Run's own Output, and for a Child Run the input its parent called it with. The Run's Alignment is one of three values:\n\n- `aligned`: every rule passes, every semantic constraint holds on untruncated evidence, everything is met, and no report is open.\n- `not_aligned`: a `block` report is open or something is not met.\n- `unverified`: anything else.\n\nA top-level Run that is not aligned goes to Needs you and tells its owner once. `kitman run show`, the Run page and its card in My Teams show the Alignment.\n\nThe final Judgement runs after the Run completes, so its Step
|
|
608
|
+
text: "## Alignment\n\nWhen a Run completes, Kitman checks its rules on the last change and runs one final Judgement of the goal, each done-when item and each constraint. The judge sees the last agent Step's evidence and the Run's own Output, and for a Child Run the input its parent called it with. The Run's Alignment is one of three values:\n\n- `aligned`: every rule passes, every semantic constraint holds on untruncated evidence, everything is met, and no report is open.\n- `not_aligned`: a `block` report is open or something is not met.\n- `unverified`: anything else.\n\nA top-level Run that is not aligned goes to Needs you and tells its owner once. `kitman run show`, the Run page and its card in My Teams show the Alignment beside the Run's display state; the verdict never changes that state, so a completed Run with nothing missing shows as succeeded whatever its Alignment.\n\nThe final Judgement runs after the Run completes, so neither its Step nor the Alignment it sets changes whether the Run shows as succeeded or partial. When the Runner running it is full and another Run's work waits for it, the Judgement gives up its slot, is skipped, and the Run's Alignment is `unverified`."
|
|
609
609
|
},
|
|
610
610
|
{
|
|
611
611
|
title: "Loop Operations Guide \u203A Tokens",
|
|
@@ -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.52.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) {
|
|
@@ -109,24 +109,7 @@ import {
|
|
|
109
109
|
decodeJsonStringOption,
|
|
110
110
|
encodeJsonStringSync,
|
|
111
111
|
encodePrettyJsonString
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import {
|
|
114
|
-
tap,
|
|
115
|
-
mapError,
|
|
116
|
-
decodeText,
|
|
117
|
-
run,
|
|
118
|
-
mkString,
|
|
119
|
-
FileSystem,
|
|
120
|
-
Path,
|
|
121
|
-
withDefault,
|
|
122
|
-
option,
|
|
123
|
-
String2
|
|
124
|
-
} from "./chunk-hyaq30ne.js";
|
|
125
|
-
import {
|
|
126
|
-
currentTimeMillis,
|
|
127
|
-
ChildProcessSpawner,
|
|
128
|
-
make2
|
|
129
|
-
} from "./chunk-8r9k7pqk.js";
|
|
112
|
+
} from "./chunk-zb4t1yrt.js";
|
|
130
113
|
import {
|
|
131
114
|
SecureRandom,
|
|
132
115
|
layerWebCrypto,
|
|
@@ -191,7 +174,7 @@ import {
|
|
|
191
174
|
digestSha256,
|
|
192
175
|
sha256Hasher,
|
|
193
176
|
raw,
|
|
194
|
-
|
|
177
|
+
make5,
|
|
195
178
|
get,
|
|
196
179
|
put,
|
|
197
180
|
HttpClient,
|
|
@@ -257,11 +240,28 @@ import {
|
|
|
257
240
|
harnessNames,
|
|
258
241
|
herdrRunnerCapabilities2,
|
|
259
242
|
declaredChecks
|
|
260
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-qsbq9gvr.js";
|
|
244
|
+
import {
|
|
245
|
+
currentTimeMillis,
|
|
246
|
+
tap,
|
|
247
|
+
mapError,
|
|
248
|
+
decodeText,
|
|
249
|
+
run,
|
|
250
|
+
mkString,
|
|
251
|
+
FileSystem,
|
|
252
|
+
Path,
|
|
253
|
+
withDefault,
|
|
254
|
+
option,
|
|
255
|
+
String2
|
|
256
|
+
} from "./chunk-bj0zchck.js";
|
|
257
|
+
import {
|
|
258
|
+
ChildProcessSpawner,
|
|
259
|
+
make3
|
|
260
|
+
} from "./chunk-2nq80r46.js";
|
|
261
261
|
import {
|
|
262
262
|
Id,
|
|
263
263
|
Timestamp
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-wxg9k10v.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-qjfzcrv5.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-qjfzcrv5.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-axfp5tzk.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)
|
|
@@ -2317,7 +2317,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
2317
2317
|
run: (command, args) => runCommand2(command, args),
|
|
2318
2318
|
attach: (command, args) => gen(function* () {
|
|
2319
2319
|
const spawner = yield* ChildProcessSpawner;
|
|
2320
|
-
const handle = yield* spawner.spawn(
|
|
2320
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
2321
2321
|
const exitCode = yield* handle.exitCode;
|
|
2322
2322
|
if (exitCode !== 0)
|
|
2323
2323
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -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.52.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-h5ydhdhx.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-9hde8p6b.js"));
|
|
5103
5103
|
return yield* makeRunnerRpcClient({
|
|
5104
5104
|
runnerId: options.runnerId,
|
|
5105
5105
|
bearer: options.bearer,
|
|
@@ -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-eqh0h088.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-84qb67e2.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-xbqd3kqc.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-xbqd3kqc.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-xbqd3kqc.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) });
|
|
@@ -8023,7 +8023,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
8023
8023
|
return gen(function* () {
|
|
8024
8024
|
const fs = yield* FileSystem;
|
|
8025
8025
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
8026
|
-
const response = yield* send(
|
|
8026
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
8027
8027
|
if (response.status < 200 || response.status >= 300)
|
|
8028
8028
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
8029
8029
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
toCodecJson,
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-zb4t1yrt.js";
|
|
39
39
|
import {
|
|
40
40
|
SecureRandom,
|
|
41
41
|
layerWebCrypto,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
KitDeclarations,
|
|
53
53
|
kitmanMcpServer,
|
|
54
54
|
RunnerRpcProtocolVersion
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-qsbq9gvr.js";
|
|
56
56
|
import {
|
|
57
57
|
decodeText,
|
|
58
58
|
mkString,
|
|
@@ -60,26 +60,26 @@ import {
|
|
|
60
60
|
Path,
|
|
61
61
|
withDefault,
|
|
62
62
|
String2
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-bj0zchck.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
ChildProcessSpawner,
|
|
70
|
-
make2
|
|
71
|
-
} from "./chunk-8r9k7pqk.js";
|
|
67
|
+
} from "./chunk-a40yta1r.js";
|
|
72
68
|
import {
|
|
73
69
|
stepDefinedTwice,
|
|
74
70
|
hostSteps,
|
|
75
71
|
exports_activities,
|
|
76
72
|
describeFlag,
|
|
77
73
|
Described
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import"./chunk-
|
|
80
|
-
import"./chunk-
|
|
81
|
-
import
|
|
82
|
-
|
|
74
|
+
} from "./chunk-chbdcf34.js";
|
|
75
|
+
import"./chunk-kt26vpwf.js";
|
|
76
|
+
import"./chunk-tqspx38s.js";
|
|
77
|
+
import {
|
|
78
|
+
ChildProcessSpawner,
|
|
79
|
+
make3
|
|
80
|
+
} from "./chunk-2nq80r46.js";
|
|
81
|
+
import"./chunk-2t1hcdeq.js";
|
|
82
|
+
import"./chunk-wxg9k10v.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -4262,7 +4262,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
4262
4262
|
}));
|
|
4263
4263
|
var run = (command, args, cwd) => gen(function* () {
|
|
4264
4264
|
const spawner = yield* ChildProcessSpawner;
|
|
4265
|
-
const handle = yield* spawner.spawn(
|
|
4265
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
4266
4266
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
4267
4267
|
mkString(decodeText(handle.stdout)),
|
|
4268
4268
|
mkString(decodeText(handle.stderr)),
|