@kitman-sh/cli 0.12.14 → 0.12.16
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-q44g4vf7.js → chunk-1625ftev.js} +1 -1
- package/dist/{chunk-mxq6zpkw.js → chunk-55sk24xq.js} +1 -1
- package/dist/{chunk-gnxa022f.js → chunk-6ymzrhwd.js} +20 -5
- package/dist/{chunk-hh7rg13h.js → chunk-7vkmemp0.js} +11 -11
- package/dist/{chunk-xgdyj09a.js → chunk-9sbkchpk.js} +1 -1
- package/dist/{chunk-wx3cx43j.js → chunk-cjzcg317.js} +12 -0
- package/dist/{chunk-br7t2pre.js → chunk-fn9w3x0q.js} +92 -43
- package/dist/{chunk-x7574rns.js → chunk-hrdbtqex.js} +5 -5
- package/dist/{chunk-hhnx6314.js → chunk-kedmv3za.js} +3 -3
- package/dist/{chunk-5wnjn5r0.js → chunk-nh27qwj1.js} +1 -1
- package/dist/{chunk-51ye0af0.js → chunk-nve7atre.js} +2 -2
- package/dist/{chunk-0300vp5q.js → chunk-pg4tyn18.js} +3 -3
- package/dist/{chunk-tfd4pnnt.js → chunk-rcdk29fp.js} +1 -1
- package/dist/{chunk-bzq3bz0d.js → chunk-rpr8qhm1.js} +10 -11
- package/dist/{chunk-f0h8f3kw.js → chunk-rt5czket.js} +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -227,7 +227,7 @@ People create Tasks and hand them to agents. An agent works on a Task through a
|
|
|
227
227
|
link: "https://kitman.sh/knowledge/docs/handing-work-to-agents#ready-for-agents",
|
|
228
228
|
text: `## Ready for agents
|
|
229
229
|
|
|
230
|
-
Moving a Task to a state agents pick up from, such as **Ready for agents**, or creating it in one, starts its Task Type's default Loop for it. Creating a Task with a Loop chosen, or by starting a Run from words, starts only that Run, and the tickets Plan builds itself and a Firewatch alert's Task start only the Runs their Loops give them. Tickets filed as Tasks are picked up once their blockers are related; Plan's File as Tasks waits until the Plan Run ends without building them. You become the Run's Delivery Owner: its Questions and its handoff come to you. When
|
|
230
|
+
Moving a Task to a state agents pick up from, such as **Ready for agents**, or creating it in one, starts its Task Type's default Loop for it. Creating a Task with a Loop chosen, or by starting a Run from words, starts only that Run, and the tickets Plan builds itself and a Firewatch alert's Task start only the Runs their Loops give them. Tickets filed as Tasks are picked up once their blockers are related; Plan's File as Tasks waits until the Plan Run ends without building them. You become the Run's Delivery Owner: its Questions and its handoff come to you. When a tool you set up, such as Kitman's MCP in your coding agent, moved it, you are still the Delivery Owner; when a Run's agent moved it, that Run's owner is. When another agent or a Triage Rule moved the Task, the Task's assignee is the Delivery Owner, or else its human creator, or else the owner of the Run that created it; with none of these, its Team gets a **Start** item in the Inbox. The Run queues for a Runner like any other, by the Task's priority.
|
|
231
231
|
|
|
232
232
|
Nothing new starts while the Task already has a Run that has not finished. To give a new Task blockers before it starts, create it in another state, add its relations, then move it.
|
|
233
233
|
|
|
@@ -281,7 +281,7 @@ Research answers an Investigation Task's question. A researcher Agent investigat
|
|
|
281
281
|
link: "https://kitman.sh/knowledge/docs/handing-work-to-agents#waiting-on-other-tasks",
|
|
282
282
|
text: `## Waiting on other Tasks
|
|
283
283
|
|
|
284
|
-
A Task with an open blocker stays in **Ready for agents** and shows what it is waiting on, such as "Waiting on KIT-158". It starts by itself once its last blocker is done, owned by its assignee, else its creator. If it has
|
|
284
|
+
A Task with an open blocker stays in **Ready for agents** and shows what it is waiting on, such as "Waiting on KIT-158". It starts by itself once its last blocker is done, owned by whoever would have owned it when it was moved there: you, if you or a tool or Run acting for you moved it, else its assignee, else its creator. If it has none of these, it stays there and its Team gets a **Start** item in the Inbox.
|
|
285
285
|
|
|
286
286
|
Only a Task in a completed state counts as done. A finished Run or an open ChangeRequest on a blocker starts nothing, and neither does a canceled blocker: remove its relation to release the Task.
|
|
287
287
|
|
|
@@ -294,7 +294,7 @@ To start it now, use **Start run** and choose **Start anyway**, or pass \`--over
|
|
|
294
294
|
link: "https://kitman.sh/knowledge/docs/handing-work-to-agents#when-a-run-cannot-start",
|
|
295
295
|
text: `## When a Run cannot start
|
|
296
296
|
|
|
297
|
-
When Kitman cannot start a Run for the Task, the move still happens, and the person who moved it gets a **Start** item in their Inbox. It says what is missing: the Task Type has no default Loop, the Loop no longer exists, or the Loop needs something Kitman could not choose, such as a repository.
|
|
297
|
+
When Kitman cannot start a Run for the Task, the move still happens, and the person who moved it gets a **Start** item in their Inbox. It says what is missing: the Task Type has no default Loop, the Loop no longer exists, or the Loop needs something Kitman could not choose, such as a repository. The Task page, its board card and its list row say the same, as **Agents cannot start it**, until a Run starts or the Task leaves the pickup state.
|
|
298
298
|
|
|
299
299
|
Open the item and use **Start run** in it: pick the Loop, and give what is missing, such as the repository to work in. The item clears itself once a Run starts for the Task, or when the Task leaves the state.`
|
|
300
300
|
},
|
|
@@ -312,7 +312,7 @@ Open the item and use **Start run** in it: pick the Loop, and give what is missi
|
|
|
312
312
|
path: "inbox",
|
|
313
313
|
level: 1,
|
|
314
314
|
link: "https://kitman.sh/knowledge/docs/inbox",
|
|
315
|
-
text: `What arrives in your Inbox, acting on it in place, the review queue and the My Teams view.
|
|
315
|
+
text: `What arrives in your Inbox, acting on it in place, the review queue, commenting on a diff and the My Teams view.
|
|
316
316
|
|
|
317
317
|
Kitman opens on your Inbox: the work that needs you, and news about the work you care about. Each item is one Task, Run or Proposal, with every Notification about it, newest first, and what is new since you last looked.`
|
|
318
318
|
},
|
|
@@ -370,6 +370,21 @@ From the keyboard: **J** and **K** move between items, **A** approves, **R** req
|
|
|
370
370
|
| Memory | Accept it | Reject it |
|
|
371
371
|
|
|
372
372
|
An item leaves the queue as soon as it is resolved, here or anywhere else: on the forge, on the Run page, in the CLI or by its Run taking a default. A ChangeRequest leaves once it closes or merges, or once a person approves or requests changes on the head under review; it comes back when a new head is pushed. A review on GitHub or GitLab counts once the forge's webhook reports it, and only a person's: not a bot's, not the account Kitman reviews as, and not approval rules that pass with no approver.`
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
title: "Inbox \u203A Commenting on a diff",
|
|
376
|
+
path: "inbox#commenting-on-a-diff",
|
|
377
|
+
level: 2,
|
|
378
|
+
link: "https://kitman.sh/knowledge/docs/inbox#commenting-on-a-diff",
|
|
379
|
+
text: `## Commenting on a diff
|
|
380
|
+
|
|
381
|
+
Wherever Kitman shows a ChangeRequest's diff, select one or more lines to comment on them. The comment box names the file, the side (old or new), the lines and the head commit you read. Each comment waits in your pending review, in this browser, until you submit the review:
|
|
382
|
+
|
|
383
|
+
- **Comment** records the comments on the ChangeRequest.
|
|
384
|
+
- **Request changes** records the review as changes requested and sends every comment, with its file, lines and head commit, as one note to the Run working on the ChangeRequest. An agent writing that branch reads it at once in its live Session; otherwise the next Step that writes the branch reads it, in that Run or a Run it called on the branch, such as Shepherd. Review and Release Steps never get it. When no Run is working on it, the Loop that wrote it starts a new Run on that ChangeRequest's branch from your review, which reads the note first. Kitman shows whether the note is queued, delivered or not delivered, and why; **Send again** sends a note that reached no agent to where the work is now.
|
|
385
|
+
- **Approve** approves the head you read, with your comments.
|
|
386
|
+
|
|
387
|
+
Each comment then shows where it stands: **Sent** once the agent got the note, **Addressed in** the commit the agent's Run pushed after reading it once that commit changed the comment's lines, or **Resolved** once a person resolves it. A comment is marked **Outdated** when a later head changed its lines or dropped them from the diff; a comment on a file the diff no longer shows is listed under the diff, with its status. Your pending review is kept for you alone: another person signed in to the same browser does not see it.`
|
|
373
388
|
},
|
|
374
389
|
{
|
|
375
390
|
title: "Inbox \u203A My Teams",
|
|
@@ -1488,7 +1503,7 @@ var pathOfLink = (link) => {
|
|
|
1488
1503
|
return page === null ? link : page[1] || "index";
|
|
1489
1504
|
};
|
|
1490
1505
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1491
|
-
var pinnedLink2 = (link, version = "0.12.
|
|
1506
|
+
var pinnedLink2 = (link, version = "0.12.16") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1492
1507
|
var pageOf = (path) => path.split("#")[0];
|
|
1493
1508
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1494
1509
|
function excerpt(text, queryTerms) {
|
|
@@ -228,7 +228,7 @@ import {
|
|
|
228
228
|
harnessNames,
|
|
229
229
|
herdrRunnerCapabilities2,
|
|
230
230
|
declaredChecks
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-cjzcg317.js";
|
|
232
232
|
import {
|
|
233
233
|
Id
|
|
234
234
|
} from "./chunk-q5w3v4k1.js";
|
|
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
989
989
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
990
990
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
991
991
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
992
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
992
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-55sk24xq.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
993
993
|
});
|
|
994
994
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
995
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
995
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-55sk24xq.js")), (module) => module.updateHerdrCore(options))
|
|
996
996
|
});
|
|
997
997
|
var herdrCoreMissing = (error) => {
|
|
998
998
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1412
1412
|
});
|
|
1413
1413
|
var syncKits = (input) => gen(function* () {
|
|
1414
1414
|
const fs = yield* FileSystem;
|
|
1415
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1415
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-kedmv3za.js"));
|
|
1416
1416
|
const harnesses = yield* syncTargets(input.harness);
|
|
1417
1417
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1418
1418
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2331,7 +2331,7 @@ var package_default = {
|
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
2333
|
// apps/cli/src/scaffold.ts
|
|
2334
|
-
var cliVersion = "0.12.
|
|
2334
|
+
var cliVersion = "0.12.16";
|
|
2335
2335
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2336
2336
|
name,
|
|
2337
2337
|
private: true,
|
|
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2483
2483
|
|
|
2484
2484
|
// apps/cli/src/commands.ts
|
|
2485
2485
|
var ClientId = "kitman-cli";
|
|
2486
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2486
|
+
var agentRuntime = promise(() => import("./chunk-rpr8qhm1.js"));
|
|
2487
2487
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2488
2488
|
defaultValue: () => gen(function* () {
|
|
2489
2489
|
const tui = yield* tryPromise({
|
|
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3507
3507
|
});
|
|
3508
3508
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3509
3509
|
defaultValue: () => (options) => gen(function* () {
|
|
3510
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3510
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-pg4tyn18.js"));
|
|
3511
3511
|
return yield* makeRunnerRpcClient({
|
|
3512
3512
|
runnerId: options.runnerId,
|
|
3513
3513
|
bearer: options.bearer,
|
|
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
|
|
|
4039
4039
|
if (command.action === "run") {
|
|
4040
4040
|
if (command.args.length > 0)
|
|
4041
4041
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4042
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4042
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-fn9w3x0q.js"));
|
|
4043
4043
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4044
4044
|
}
|
|
4045
4045
|
if (command.action !== "setup")
|
|
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
|
|
|
4527
4527
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4528
4528
|
});
|
|
4529
4529
|
}
|
|
4530
|
-
var docsModule = promise(() => import("./chunk-
|
|
4530
|
+
var docsModule = promise(() => import("./chunk-rcdk29fp.js"));
|
|
4531
4531
|
function docsCommand(args) {
|
|
4532
4532
|
return gen(function* () {
|
|
4533
4533
|
const command = parseCommand(args);
|
|
@@ -5361,9 +5361,9 @@ function changeRequestCommand(args) {
|
|
|
5361
5361
|
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}`);
|
|
5362
5362
|
});
|
|
5363
5363
|
}
|
|
5364
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5364
|
+
var KitWriter = map8(promise(() => import("./chunk-hrdbtqex.js")), (build) => build.writeKit);
|
|
5365
5365
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5366
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5366
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-hrdbtqex.js")), (build) => build.buildKit(directory))
|
|
5367
5367
|
});
|
|
5368
5368
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5369
5369
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -12407,6 +12407,18 @@ class KitmanEffectClient {
|
|
|
12407
12407
|
body: JSON.stringify(input)
|
|
12408
12408
|
});
|
|
12409
12409
|
}
|
|
12410
|
+
submitChangeRequestReview(changeRequestId, input) {
|
|
12411
|
+
return this.request("submitChangeRequestReview", `/change-requests/${segment(changeRequestId)}/review-submissions`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
|
|
12412
|
+
}
|
|
12413
|
+
listChangeRequestReviewComments(changeRequestId) {
|
|
12414
|
+
return this.request("listChangeRequestReviewComments", `/change-requests/${segment(changeRequestId)}/review-comments`, { headers: this.headers() });
|
|
12415
|
+
}
|
|
12416
|
+
resolveChangeRequestReviewComment(changeRequestId, commentId, input) {
|
|
12417
|
+
return this.request("resolveChangeRequestReviewComment", `/change-requests/${segment(changeRequestId)}/review-comments/${segment(commentId)}/resolve`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
|
|
12418
|
+
}
|
|
12419
|
+
redeliverChangeRequestReview(changeRequestId, reviewId, input = {}) {
|
|
12420
|
+
return this.request("redeliverChangeRequestReview", `/change-requests/${segment(changeRequestId)}/reviews/${segment(reviewId)}/deliveries`, { method: "POST", headers: this.headers(true), body: JSON.stringify(input) });
|
|
12421
|
+
}
|
|
12410
12422
|
reportPipelineResult(changeRequestId, input) {
|
|
12411
12423
|
return this.request("reportPipelineResult", `/change-requests/${segment(changeRequestId)}/pipeline-results`, {
|
|
12412
12424
|
method: "POST",
|