@kitman-sh/software-engineering 0.13.14 → 0.13.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/bundle.js +20 -5
- package/dist/declarations.json +2 -6
- package/kitman.config.ts +2 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -13431,6 +13431,8 @@ var ClaimRanks = ["in_progress", "finishing", "new"];
|
|
|
13431
13431
|
var TokenCount = Int.check(isGreaterThanOrEqualTo2(0));
|
|
13432
13432
|
var TokenUsage = Struct({ input: TokenCount, output: TokenCount, cached: TokenCount });
|
|
13433
13433
|
var AttemptTokens = Union2([TokenUsage, Literal2("none")]);
|
|
13434
|
+
var TokenTotalCount = String5.check(isPattern2(/^(?:0|[1-9][0-9]*)$/));
|
|
13435
|
+
var TokenTotal = Struct({ input: TokenTotalCount, output: TokenTotalCount, cached: TokenTotalCount });
|
|
13434
13436
|
|
|
13435
13437
|
// ../../packages/core/src/loop.ts
|
|
13436
13438
|
var LoopStatuses = ["draft", "active", "disabled", "archived"];
|
|
@@ -14196,6 +14198,12 @@ var SkippedChoice = Struct({
|
|
|
14196
14198
|
reason: Literals(SkippedChoiceReasons),
|
|
14197
14199
|
until: optionalKey2(Timestamp)
|
|
14198
14200
|
});
|
|
14201
|
+
var StepFallback = Struct({
|
|
14202
|
+
harness: String5,
|
|
14203
|
+
model: optionalKey2(String5),
|
|
14204
|
+
effort: optionalKey2(Literals(AgentEfforts)),
|
|
14205
|
+
firstChoice: SkippedChoice
|
|
14206
|
+
});
|
|
14199
14207
|
var StepAttempt = Struct({
|
|
14200
14208
|
id: Id,
|
|
14201
14209
|
workspaceId: Id,
|
|
@@ -14336,7 +14344,8 @@ var RunStepSummary = Struct({
|
|
|
14336
14344
|
model: optionalKey2(String5),
|
|
14337
14345
|
tokens: optionalKey2(AttemptTokens)
|
|
14338
14346
|
})),
|
|
14339
|
-
tokens: optionalKey2(TokenUsage)
|
|
14347
|
+
tokens: optionalKey2(TokenUsage),
|
|
14348
|
+
fallback: optionalKey2(StepFallback)
|
|
14340
14349
|
});
|
|
14341
14350
|
var RunSteerDeliveries = ["queued", "delivered", "failed"];
|
|
14342
14351
|
var RunSteer = Struct({
|
|
@@ -14399,6 +14408,7 @@ var RunGraphNode = Struct({
|
|
|
14399
14408
|
model: optionalKey2(String5),
|
|
14400
14409
|
runner: optionalKey2(Struct({ id: Id, name: String5 }))
|
|
14401
14410
|
})),
|
|
14411
|
+
fallback: optionalKey2(StepFallback),
|
|
14402
14412
|
child: optionalKey2(Struct({
|
|
14403
14413
|
runId: Id,
|
|
14404
14414
|
loopTitle: String5,
|
|
@@ -14431,6 +14441,7 @@ var RunShow = Struct({
|
|
|
14431
14441
|
steps: ArraySchema(RunStepSummary),
|
|
14432
14442
|
questions: ArraySchema(Question),
|
|
14433
14443
|
questionsBelow: optionalKey2(ArraySchema(QuestionBelow)),
|
|
14444
|
+
runsBelow: optionalKey2(ArraySchema(Struct({ runId: Id, parentRunId: Id }))),
|
|
14434
14445
|
children: ArraySchema(Struct({
|
|
14435
14446
|
runId: Id,
|
|
14436
14447
|
name: String5,
|
|
@@ -14451,7 +14462,8 @@ var RunShow = Struct({
|
|
|
14451
14462
|
steers: ArraySchema(RunSteer),
|
|
14452
14463
|
waiting: ArraySchema(RunWaiting),
|
|
14453
14464
|
closures: ArraySchema(RunClosure),
|
|
14454
|
-
tokens: optionalKey2(TokenUsage)
|
|
14465
|
+
tokens: optionalKey2(TokenUsage),
|
|
14466
|
+
tokensWithChildRuns: optionalKey2(TokenTotal)
|
|
14455
14467
|
});
|
|
14456
14468
|
var RunStartPreview = Struct({
|
|
14457
14469
|
loop: Struct({ id: String5, title: String5, outcome: optionalKey2(String5) }),
|
|
@@ -20345,6 +20357,7 @@ var WorkUnitHeartbeatInput = Struct({
|
|
|
20345
20357
|
workUnitId: Id,
|
|
20346
20358
|
lease: WorkUnitLeaseInput,
|
|
20347
20359
|
leaseDurationSeconds: optionalKey2(Int.check(isGreaterThanOrEqualTo2(1), isLessThanOrEqualTo3(3600))),
|
|
20360
|
+
harnessStarted: optionalKey2(Literal2(true)),
|
|
20348
20361
|
secrets: optionalKey2(ArraySchema(Struct({ name: SecretName, version: String5.check(isMinLength(1), isMaxLength(128)) })).check(isMaxLength(256)))
|
|
20349
20362
|
});
|
|
20350
20363
|
var WorkUnitHeartbeatResult = Struct({
|
|
@@ -20358,7 +20371,8 @@ var WorkUnitReleaseInput = Struct({
|
|
|
20358
20371
|
workUnitId: Id,
|
|
20359
20372
|
lease: WorkUnitLeaseInput,
|
|
20360
20373
|
crashed: optionalKey2(Struct({ reason: String5.check(isMinLength(1), isMaxLength(500)) })),
|
|
20361
|
-
tokens: optionalKey2(AttemptTokens)
|
|
20374
|
+
tokens: optionalKey2(AttemptTokens),
|
|
20375
|
+
ranModel: optionalKey2(String5.check(isMinLength(1), isMaxLength(200)))
|
|
20362
20376
|
});
|
|
20363
20377
|
var CheckEvidence = Struct({
|
|
20364
20378
|
name: String5.check(isMinLength(1), isMaxLength(120)),
|
|
@@ -20429,6 +20443,7 @@ var WorkUnitOutcome = Struct({
|
|
|
20429
20443
|
harnessHold: optionalKey2(HarnessHold),
|
|
20430
20444
|
restart: optionalKey2(StepRestart),
|
|
20431
20445
|
tokens: optionalKey2(AttemptTokens),
|
|
20446
|
+
ranModel: optionalKey2(String5.check(isMinLength(1), isMaxLength(200))),
|
|
20432
20447
|
failureSummary: optionalKey2(String5.check(isMinLength(1), isMaxLength(4000)))
|
|
20433
20448
|
});
|
|
20434
20449
|
var WorkUnitCompletion = Struct({
|
|
@@ -26005,8 +26020,8 @@ var kitman_config_default = defineKit({
|
|
|
26005
26020
|
],
|
|
26006
26021
|
agents: {
|
|
26007
26022
|
implementer: {
|
|
26023
|
+
harness: "claude",
|
|
26008
26024
|
effort: "medium",
|
|
26009
|
-
fallbacks,
|
|
26010
26025
|
skills: ["tdd", "diagnosing-bugs"],
|
|
26011
26026
|
instructions: { file: "agents/implementer.md" }
|
|
26012
26027
|
},
|
|
@@ -31825,4 +31840,4 @@ var runKit = (config, identity, packages) => {
|
|
|
31825
31840
|
runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
|
|
31826
31841
|
};
|
|
31827
31842
|
// .kitman-build-entry.ts
|
|
31828
|
-
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.
|
|
31843
|
+
runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.13.16" }, []);
|
package/dist/declarations.json
CHANGED
|
@@ -5768,12 +5768,8 @@
|
|
|
5768
5768
|
"agents": {
|
|
5769
5769
|
"implementer": {
|
|
5770
5770
|
"instructions": "You are an implementer. You build the Step you are given from its brief, its Task and the plan behind it.\n\n## Scope\n\n- Follow the plan, all of it. Everything the brief and its Acceptance Criteria ask for is yours to build before you submit; a required piece left out is neither a follow-up nor a dispute.\n- If the plan is wrong, say so with the Kitman MCP `ask` tool before you deviate from it.\n- Touch only what the Task needs. Do not reformat, rename or refactor around it.\n- When a decision comes up that the plan does not cover, ask with `ask` if the answer changes what you build. Otherwise decide, and record the decision and why in your Output.\n- Every Question recommends an answer: set `recommended` and say why in `recommendationReason`, in one or two sentences. Keep the prompt to the context and the decision, and put each option's trade-off in its `description`.\n\n## Skills\n\n- A skill your Step runs comes first in your brief. Follow it within the Run's rules: the Run owns the branch, and the Review run reviews the change.\n- `tdd`: build test-first at the seams the brief and its plan name.\n- `diagnosing-bugs`: when the Task is a bug, reproduce it before you change anything.\n\n## Evidence\n\n- Run the codebase's own tests, linters and typechecks, and report what they actually said, not what they should have said.\n- A test result written in your Output is a claim. Kitman's evidence gate runs the approved verifications itself and judges the change on what they say. List what you believe but Kitman has not checked as claims.\n\n## Branch\n\n- The Run owns the branch. Commit nothing yourself, never push and never merge: Kitman pushes what you leave in the workspace, and a human decides what merges.\n- Never `git stash`. The stash stack belongs to the whole repository and is shared with every other worktree of it. To look at a clean tree, make a throwaway checkout with `git worktree add` and remove it when you are done.\n\n## Review findings\n\n- Fix each finding you agree with. Rebut each one you do not, with your reason. Never drop one silently, and never both fix and rebut the same one.\n- Your reason settles a minor finding. A disputed blocker or major finding goes to the human.\n- A finding that answers one of your reasons has to be dealt with, not rebutted again on the same ground.\n\n## Code comments\n\n- Write self-explanatory code. Improve names and structure before adding a comment.\n- Comment only when an essential fact cannot be expressed in the code and leaving it out would risk an incorrect change.\n- Use the fewest words possible, normally one short sentence beside the code. Delete unnecessary comments you added before you submit.\n\n## Output\n\nSubmit your Output with the Kitman MCP `submit_output` tool, in the shape the brief's Output schema gives. Record milestones with `session_update`, so a retry on another Runner starts from them.",
|
|
5771
|
+
"harness": "claude",
|
|
5771
5772
|
"effort": "medium",
|
|
5772
|
-
"fallbacks": [
|
|
5773
|
-
{
|
|
5774
|
-
"harness": "pi"
|
|
5775
|
-
}
|
|
5776
|
-
],
|
|
5777
5773
|
"skills": [
|
|
5778
5774
|
"tdd",
|
|
5779
5775
|
"diagnosing-bugs"
|
|
@@ -5906,7 +5902,7 @@
|
|
|
5906
5902
|
"carried": [
|
|
5907
5903
|
{
|
|
5908
5904
|
"name": "@kitman-sh/software-engineering",
|
|
5909
|
-
"version": "0.13.
|
|
5905
|
+
"version": "0.13.16",
|
|
5910
5906
|
"setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
|
|
5911
5907
|
"loops": [
|
|
5912
5908
|
"build",
|
package/kitman.config.ts
CHANGED
|
@@ -56,9 +56,10 @@ export default defineKit({
|
|
|
56
56
|
// Each Agent lists the skills its role uses and opts into the tools it needs; the Run's other Kit skills it loads by
|
|
57
57
|
// name. A Step whose Kits lack a listed skill is told so, and the shipped prompts keep their fallbacks.
|
|
58
58
|
agents: {
|
|
59
|
+
// Implementers run on Claude Code alone: out of quota, the Step waits for its known reset rather than run on Pi.
|
|
59
60
|
implementer: {
|
|
61
|
+
harness: 'claude',
|
|
60
62
|
effort: 'medium',
|
|
61
|
-
fallbacks,
|
|
62
63
|
skills: ['tdd', 'diagnosing-bugs'],
|
|
63
64
|
instructions: { file: 'agents/implementer.md' }
|
|
64
65
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitman-sh/software-engineering",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.16",
|
|
4
4
|
"description": "Everything for building software: Loops, their Agents, the skills they use and the Ponytail plugin.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"tsconfig.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@kitman-sh/sdk": "0.13.
|
|
20
|
+
"@kitman-sh/sdk": "0.13.16",
|
|
21
21
|
"effect": "^4.1.2"
|
|
22
22
|
},
|
|
23
23
|
"kitman": {
|
|
24
24
|
"bundle": "dist/bundle.js",
|
|
25
|
-
"digest": "
|
|
25
|
+
"digest": "938988cd9da3ff71c2cd25a9b936ceca7b76b3c23826b0676f652384015df588",
|
|
26
26
|
"protocolVersion": 5,
|
|
27
27
|
"declarations": "dist/declarations.json",
|
|
28
28
|
"setup": {
|