@kitman-sh/cli 0.13.5 → 0.13.7
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-txf9spw3.js → chunk-1nxcn08k.js} +5 -5
- package/dist/{chunk-dgeyx2fa.js → chunk-22z1yemd.js} +68 -48
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-cvzyx4wy.js → chunk-4bgj3b5r.js} +11 -8
- package/dist/{chunk-5zth85pj.js → chunk-4crf5vhd.js} +2 -2
- package/dist/{chunk-yfn0hs5r.js → chunk-4x3zm541.js} +112 -117
- package/dist/{chunk-tkhxmk5r.js → chunk-8v0t5kzg.js} +1 -1
- package/dist/{chunk-scj257qb.js → chunk-9g8tc40f.js} +12 -12
- package/dist/{chunk-kymmwg71.js → chunk-bbks1scp.js} +21 -21
- package/dist/{chunk-vg39q6ac.js → chunk-bs5bh8ys.js} +18 -18
- package/dist/{chunk-yqdmhwpd.js → chunk-byg71zra.js} +10 -10
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-jmhqrt90.js → chunk-jbjz7b6n.js} +61 -61
- package/dist/{chunk-5zhh41gb.js → chunk-kk32jckf.js} +4 -4
- package/dist/{chunk-dpfxvmh3.js → chunk-m079pjdy.js} +3 -3
- package/dist/{chunk-rvqsm1w7.js → chunk-m406nanz.js} +6 -6
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-cbpb2rww.js → chunk-mtdz4k32.js} +10 -10
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-pn9atvw8.js → chunk-t37qzgmb.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-t82w7459.js} +26 -17
- package/dist/{chunk-mtkstrh3.js → chunk-vxfajzpz.js} +14 -60
- package/dist/{chunk-z0a98xqg.js → chunk-x44re8th.js} +7 -7
- package/dist/{chunk-0yj73sqp.js → chunk-xt97vb58.js} +110 -87
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-zgraq2y3.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-t82w7459.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-4x3zm541.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")) {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make3 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -248,7 +248,7 @@ With the default workflow, the Task follows its Run:
|
|
|
248
248
|
- its ChangeRequest opens: **In Review**;
|
|
249
249
|
- its ChangeRequest merges: **Done**;
|
|
250
250
|
- the Run finishes without a ChangeRequest, as Research does: **In Review**, for a person to look at;
|
|
251
|
-
- the Run is blocked, as a full-auto Build is when findings still stand after its last rebuild: **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**.
|
|
251
|
+
- 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**.
|
|
252
252
|
|
|
253
253
|
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.
|
|
254
254
|
|
|
@@ -422,6 +422,7 @@ Kitman Web includes user, agent, and operator guides.
|
|
|
422
422
|
- [Getting Started](/docs/getting-started)
|
|
423
423
|
- [Kitman CLI](/docs/cli)
|
|
424
424
|
- [Tasks Guide](/docs/task-composition)
|
|
425
|
+
- [Scope a Task](/docs/scope-tasks)
|
|
425
426
|
- [Handing Work to Agents](/docs/handing-work-to-agents)
|
|
426
427
|
- [Triage](/docs/triage)
|
|
427
428
|
- [Inbox](/docs/inbox)
|
|
@@ -514,7 +515,7 @@ Agents should record implementation evidence, verification, and delivery artifac
|
|
|
514
515
|
|
|
515
516
|
Every Run is held to an Intent, seeded when Kitman admits it:
|
|
516
517
|
|
|
517
|
-
- **Goal:** the launch words, or the Task's title and
|
|
518
|
+
- **Goal:** the launch words, or the Task's title, Promise, description and Out of scope list. A Child Run, such as the Review or Shepherd a Build calls, is held instead to doing the work its parent's call input asks for and reporting the result in its Output, naming the parent's Task.
|
|
518
519
|
- **Done when:** the Task's Acceptance Criteria. A Child Run has none: its parent's evidence settles them.
|
|
519
520
|
- **Constraints:** see below.
|
|
520
521
|
|
|
@@ -619,50 +620,7 @@ Turning a start off stops new Runs from it. Runs it already started go on. \`kit
|
|
|
619
620
|
path: "loop-operations#agents-and-effort",
|
|
620
621
|
level: 2,
|
|
621
622
|
link: "https://kitman.sh/knowledge/docs/loop-operations#agents-and-effort",
|
|
622
|
-
text:
|
|
623
|
-
|
|
624
|
-
Kitman ships the Agents \`implementer\`, \`reviewer\`, \`planner\`, \`releaser\`, \`investigator\` and \`judge\`. They name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:
|
|
625
|
-
|
|
626
|
-
\`\`\`ts
|
|
627
|
-
export default defineKit({
|
|
628
|
-
agents: {
|
|
629
|
-
reviewer: {
|
|
630
|
-
extends: 'reviewer',
|
|
631
|
-
instructions: \`## House rules
|
|
632
|
-
Never approve a migration that edits a released one.\`,
|
|
633
|
-
effort: 'high'
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
})
|
|
637
|
-
\`\`\`
|
|
638
|
-
|
|
639
|
-
A declared Agent replaces only the fields it names. Its instructions merge by \`## \` heading:
|
|
640
|
-
|
|
641
|
-
- A section it names replaces the parent's section with that heading.
|
|
642
|
-
- A new heading is appended.
|
|
643
|
-
- Any text before its first heading replaces the parent's.
|
|
644
|
-
|
|
645
|
-
An Agent can list fallbacks for a Runner that does not offer its Harness:
|
|
646
|
-
|
|
647
|
-
\`\`\`ts
|
|
648
|
-
export default defineKit({
|
|
649
|
-
agents: {
|
|
650
|
-
reviewer: {
|
|
651
|
-
extends: 'reviewer',
|
|
652
|
-
harness: 'claude',
|
|
653
|
-
effort: 'high',
|
|
654
|
-
fallbacks: [
|
|
655
|
-
{ harness: 'codex', model: 'gpt-5.5' },
|
|
656
|
-
{ harness: 'pi', effort: 'medium' }
|
|
657
|
-
]
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
})
|
|
661
|
-
\`\`\`
|
|
662
|
-
|
|
663
|
-
A Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming \`fallbacks\` replaces them, and \`fallbacks: []\` clears them.
|
|
664
|
-
|
|
665
|
-
Effort (\`low\`, \`medium\`, \`high\` or \`xhigh\`) is recorded on each StepAttempt. \`kitman agent list --team <team>\` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads \`claude (team)\`. Without \`--team\` it uses the active Team, or only the workspace layer when there is none, and its first line says which.`
|
|
623
|
+
text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort, and the `planner` on Claude Fable 5.2 at `high` effort. The others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
|
|
666
624
|
},
|
|
667
625
|
{
|
|
668
626
|
title: "Projects and Saved Views",
|
|
@@ -840,6 +798,68 @@ The Flight Deck separates runner **readiness** from WorkUnit **claimability**. A
|
|
|
840
798
|
Environment diagnostics show the selected backend posture, materialization mode, cache hit/miss evidence, and safe blocker codes without exposing checkout paths or command output. Quota evidence is authoritative only when it is fresh and provider-backed; unknown or stale quota is never rendered as available. Cleanup remains unknown or blocked until the runner can account for owned resources.
|
|
841
799
|
|
|
842
800
|
Enrollment, key rotation, revocation, drain, update, and rollback controls show their safe lifecycle posture and disabled reason. Updates and rollbacks must use exact certified digests and new fenced replicas; existing run snapshots are never changed in place.`
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
title: "Scope a Task",
|
|
804
|
+
path: "scope-tasks",
|
|
805
|
+
level: 1,
|
|
806
|
+
link: "https://kitman.sh/knowledge/docs/scope-tasks",
|
|
807
|
+
text: `How to scope a Task, so an agent can build it in one session and a review of it ends.
|
|
808
|
+
|
|
809
|
+
Read this before you create a Task or write a plan's ticket.`
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
title: "Scope a Task \u203A One Promise per Task",
|
|
813
|
+
path: "scope-tasks#one-promise-per-task",
|
|
814
|
+
level: 2,
|
|
815
|
+
link: "https://kitman.sh/knowledge/docs/scope-tasks#one-promise-per-task",
|
|
816
|
+
text: `## One Promise per Task
|
|
817
|
+
|
|
818
|
+
- Give a Task one Promise: one sentence that says what is true once it is done. Put it first in the description. Two Promises are two Tasks.
|
|
819
|
+
- A Promise is open-ended when it covers cases nobody can list, such as every path, any input or all source code. Reviews of it keep finding one more case. Split it into a first Task with a bounded case, whose cases you list, and later Tasks that each widen it.
|
|
820
|
+
- Size a Task to fit one agent session under 200k tokens of context, from reading the code to a verified change. Split one that does not fit.`
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
title: "Scope a Task \u203A What to write",
|
|
824
|
+
path: "scope-tasks#what-to-write",
|
|
825
|
+
level: 2,
|
|
826
|
+
link: "https://kitman.sh/knowledge/docs/scope-tasks#what-to-write",
|
|
827
|
+
text: `## What to write
|
|
828
|
+
|
|
829
|
+
- **Decisions:** make every design decision yourself, or ask the person. Leave none to the implementer.
|
|
830
|
+
- **Interfaces:** name the operations, types, settings or pages the Task adds or changes, and how each behaves.
|
|
831
|
+
- **Cases:** list the cases it handles, with the failures, and what happens in each.
|
|
832
|
+
- **Tests:** name what a test must show, and where the tests go. Make each Acceptance Criterion something a reviewer can check against the change.
|
|
833
|
+
- **Where to start:** name the modules, documents and decisions to read first.
|
|
834
|
+
- **Out of scope:** list the cases the Task does not handle.
|
|
835
|
+
- **Blockers:** name the Tasks whose code it needs, and relate them as blockers.
|
|
836
|
+
|
|
837
|
+
Write no code and no line numbers: both are out of date before the Task is built. Name things by what they are called.`
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
title: "Scope a Task \u203A Two or more related Tasks",
|
|
841
|
+
path: "scope-tasks#two-or-more-related-tasks",
|
|
842
|
+
level: 2,
|
|
843
|
+
link: "https://kitman.sh/knowledge/docs/scope-tasks#two-or-more-related-tasks",
|
|
844
|
+
text: `## Two or more related Tasks
|
|
845
|
+
|
|
846
|
+
Start the **File Tasks** Loop instead of creating related Tasks one by one. It makes a Task of each ticket and relates their blockers, so none is picked up before the Tasks it needs. In Code Mode:
|
|
847
|
+
|
|
848
|
+
\`\`\`js
|
|
849
|
+
await kitman.runs.start({
|
|
850
|
+
workspaceId,
|
|
851
|
+
teamId,
|
|
852
|
+
loop: 'file-tasks',
|
|
853
|
+
input: {
|
|
854
|
+
tickets: [
|
|
855
|
+
{ key: 'first', title: '\u2026', body: '\u2026', acceptanceCriteria: ['\u2026'], blockedBy: [] },
|
|
856
|
+
{ key: 'wider', title: '\u2026', body: '\u2026', acceptanceCriteria: ['\u2026'], blockedBy: ['first'] }
|
|
857
|
+
]
|
|
858
|
+
}
|
|
859
|
+
})
|
|
860
|
+
\`\`\`
|
|
861
|
+
|
|
862
|
+
From a terminal, pass the same Input to \`kitman run start file-tasks --input '<json>'\`. Add \`projectId\` to the Input to file them in a Project. In a Plan Run, write the tickets in the plan: Plan files them.`
|
|
843
863
|
},
|
|
844
864
|
{
|
|
845
865
|
title: "Tasks Guide",
|
|
@@ -879,7 +899,7 @@ A Team view has three tabs: Active shows unstarted and started Tasks, Backlog th
|
|
|
879
899
|
|
|
880
900
|
Press **C** or use **New task** in a Team view. A title is enough; everything else is optional. Keep the form open to capture several Tasks in a row. Filing a Task in a Team you are not a member of sends it to that Team's [Triage](/docs/triage).
|
|
881
901
|
|
|
882
|
-
Open a Task beside its list, or on its own page. The description is markdown and saves as you type. If someone else changes it while you edit, Kitman tells you instead of overwriting their work. Acceptance Criteria are an ordered list that reviews and Runs hold the work to.
|
|
902
|
+
Open a Task beside its list, or on its own page. The description is markdown and saves as you type. If someone else changes it while you edit, Kitman tells you instead of overwriting their work. The Promise is one sentence that says what is true once the Task is done. Acceptance Criteria are an ordered list that reviews and Runs hold the work to. Out of scope lists the cases the Task does not handle. All three are optional.
|
|
883
903
|
|
|
884
904
|
Change a Task's state, priority, assignee, Labels, repository and Task Type from the list, the board or the Task page. From the keyboard: **S** state, **P** priority, **A** assignee, **L** Labels, **T** Task Type, **M** move to another Team, **R** start a Run, **X** select. **?** lists every shortcut with the control that does the same.
|
|
885
905
|
|
|
@@ -1509,7 +1529,7 @@ var pathOfLink = (link) => {
|
|
|
1509
1529
|
return page === null ? link : page[1] || "index";
|
|
1510
1530
|
};
|
|
1511
1531
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1512
|
-
var pinnedLink2 = (link, version = "0.13.
|
|
1532
|
+
var pinnedLink2 = (link, version = "0.13.7") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1513
1533
|
var pageOf = (path) => path.split("#")[0];
|
|
1514
1534
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1515
1535
|
function excerpt(text, queryTerms) {
|
|
@@ -75,10 +75,14 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-zgraq2y3.js";
|
|
79
|
+
import {
|
|
80
|
+
runForEach,
|
|
81
|
+
FileSystem
|
|
82
|
+
} from "./chunk-t82w7459.js";
|
|
79
83
|
import {
|
|
80
84
|
guard
|
|
81
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-pxvd8w2v.js";
|
|
82
86
|
import {
|
|
83
87
|
currentTimeMillis,
|
|
84
88
|
WebCrypto,
|
|
@@ -105,11 +109,7 @@ import {
|
|
|
105
109
|
KitDigest,
|
|
106
110
|
KitSetup,
|
|
107
111
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
109
|
-
import {
|
|
110
|
-
runForEach,
|
|
111
|
-
FileSystem
|
|
112
|
-
} from "./chunk-0h49y8gf.js";
|
|
112
|
+
} from "./chunk-4x3zm541.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -587,6 +587,8 @@ var PlanTicket = Struct({
|
|
|
587
587
|
title: String4,
|
|
588
588
|
body: String4,
|
|
589
589
|
acceptanceCriteria: ArraySchema(String4),
|
|
590
|
+
promise: optional(String4),
|
|
591
|
+
outOfScope: optional(ArraySchema(String4)),
|
|
590
592
|
repoBindingId: optional(String4),
|
|
591
593
|
blockedBy: ArraySchema(String4),
|
|
592
594
|
outcome: optional(LoopOutcome)
|
|
@@ -984,7 +986,8 @@ var Finding = Struct({
|
|
|
984
986
|
var MergedFinding = Struct({
|
|
985
987
|
id: String4,
|
|
986
988
|
...Finding.fields,
|
|
987
|
-
seats: ArraySchema(String4)
|
|
989
|
+
seats: ArraySchema(String4),
|
|
990
|
+
blockingSeats: optionalKey(ArraySchema(String4))
|
|
988
991
|
});
|
|
989
992
|
var Rebuttal = Struct({ findingId: String4, reason: String4 });
|
|
990
993
|
var RebuttalVerdict = Struct({ findingId: String4, accepted: Boolean2 });
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-t82w7459.js";
|
|
18
|
+
import"./chunk-zgraq2y3.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|