@kitman-sh/software-engineering 0.11.6 → 0.12.0-rc.1

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 CHANGED
@@ -13391,6 +13391,11 @@ var WaitingOn = Struct({ keys: ArraySchema(String5), hidden: Int });
13391
13391
  // ../../packages/core/src/run-queue.ts
13392
13392
  var ClaimRanks = ["in_progress", "finishing", "new"];
13393
13393
 
13394
+ // ../../packages/core/src/tokens.ts
13395
+ var TokenCount = Int.check(isGreaterThanOrEqualTo2(0));
13396
+ var TokenUsage = Struct({ input: TokenCount, output: TokenCount, cached: TokenCount });
13397
+ var AttemptTokens = Union2([TokenUsage, Literal2("none")]);
13398
+
13394
13399
  // ../../packages/core/src/loop.ts
13395
13400
  var LoopStatuses = ["draft", "active", "disabled", "archived"];
13396
13401
  var LoopStepImplementationKinds = [
@@ -14283,8 +14288,10 @@ var RunStepSummary = Struct({
14283
14288
  status: StepAttemptStatus,
14284
14289
  failureSummary: optionalKey2(String5),
14285
14290
  output: optionalKey2(Unknown2),
14286
- revision: optionalKey2(String5)
14287
- }))
14291
+ revision: optionalKey2(String5),
14292
+ tokens: optionalKey2(AttemptTokens)
14293
+ })),
14294
+ tokens: optionalKey2(TokenUsage)
14288
14295
  });
14289
14296
  var RunSteerDeliveries = ["queued", "delivered", "failed"];
14290
14297
  var RunSteer = Struct({
@@ -14395,7 +14402,8 @@ var RunShow = Struct({
14395
14402
  evidence: ArraySchema(RunEvidence),
14396
14403
  steers: ArraySchema(RunSteer),
14397
14404
  waiting: ArraySchema(RunWaiting),
14398
- closures: ArraySchema(RunClosure)
14405
+ closures: ArraySchema(RunClosure),
14406
+ tokens: optionalKey2(TokenUsage)
14399
14407
  });
14400
14408
  var RunStartPreview = Struct({
14401
14409
  loop: Struct({ id: String5, title: String5, outcome: optionalKey2(String5) }),
@@ -20270,7 +20278,8 @@ var WorkUnitHeartbeatResult = Struct({
20270
20278
  var WorkUnitReleaseInput = Struct({
20271
20279
  workUnitId: Id,
20272
20280
  lease: WorkUnitLeaseInput,
20273
- crashed: optionalKey2(Struct({ reason: String5.check(isMinLength(1), isMaxLength(500)) }))
20281
+ crashed: optionalKey2(Struct({ reason: String5.check(isMinLength(1), isMaxLength(500)) })),
20282
+ tokens: optionalKey2(AttemptTokens)
20274
20283
  });
20275
20284
  var CheckEvidence = Struct({
20276
20285
  name: String5.check(isMinLength(1), isMaxLength(120)),
@@ -20340,6 +20349,7 @@ var WorkUnitOutcome = Struct({
20340
20349
  cleanSync: optionalKey2(Literals(["up_to_date", "merged"])),
20341
20350
  harnessHold: optionalKey2(HarnessHold),
20342
20351
  restart: optionalKey2(StepRestart),
20352
+ tokens: optionalKey2(AttemptTokens),
20343
20353
  failureSummary: optionalKey2(String5.check(isMinLength(1), isMaxLength(4000)))
20344
20354
  });
20345
20355
  var WorkUnitCompletion = Struct({
@@ -20908,7 +20918,7 @@ var BaseSync = Union2([
20908
20918
  Struct({ ...merged, catchUp: optionalKey2(CatchUp), ...reported }),
20909
20919
  Struct({ ...Conflict.fields, ...reported })
20910
20920
  ]);
20911
- var afterMerge = "One thing comes before any answer of merged, a clean merge included, and stopping above means stopping after it: before you answer merged, do what the repository's agent instructions say to do once the target branch is merged in, such as regenerating this branch's database migrations on top of the target's. Leave what that changes in the workspace: Kitman commits it.";
20921
+ var afterMerge = "One thing comes before any answer of merged, a clean merge included, and stopping above means stopping after it: before you answer merged, run what the repository's agent instructions (`AGENTS.md` or `CLAUDE.md`, already in your context) name for after merging the target branch, and read the section that line links when it names no command. Regenerate this branch's database migrations on top of the target's when it adds one, and regenerate each generated file whose source the merge changed, such as API contracts, with the command those instructions name. Do not search the repository for these steps: when the instructions name none, there are none. Leave what that changes in the workspace: Kitman commits it.";
20912
20922
  var prompt = (target) => [
20913
20923
  `Kitman merged \`origin/${target}\` into this branch before you started, outside your sandbox, and says what came of it in a note after this brief. Do not fetch, as this workspace has no credential for the forge, and do not run git commands that write, such as \`git add\`, \`git commit\` or \`git merge --abort\`: Kitman finishes the merge itself from your answer.`,
20914
20924
  "If it was already up to date, change nothing and answer up_to_date. If it merged cleanly, answer merged with no settled files and stop: do not review or test anything else.",
@@ -31138,4 +31148,4 @@ var runKit = (config, identity, packages) => {
31138
31148
  runMain2(program.pipe(flatMap3((code) => sync2(() => process.exit(code)))));
31139
31149
  };
31140
31150
  // .kitman-build-entry.ts
31141
- runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.11.6" }, []);
31151
+ runKit(kitman_config_default, { name: "@kitman-sh/software-engineering", version: "0.12.0-rc.1" }, []);
@@ -5108,7 +5108,7 @@
5108
5108
  "carried": [
5109
5109
  {
5110
5110
  "name": "@kitman-sh/software-engineering",
5111
- "version": "0.11.6",
5111
+ "version": "0.12.0-rc.1",
5112
5112
  "setup": "2a237548a69b0cd53ec3be7f687cfa8c2128335b3a655d34e185f2abce6a3c37",
5113
5113
  "loops": [
5114
5114
  "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/software-engineering",
3
- "version": "0.11.6",
3
+ "version": "0.12.0-rc.1",
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.11.6",
20
+ "@kitman-sh/sdk": "0.12.0-rc.1",
21
21
  "effect": "^4.1.2"
22
22
  },
23
23
  "kitman": {
24
24
  "bundle": "dist/bundle.js",
25
- "digest": "1e2d3af88ac17411984995e6069c5fe39d44e0bf969ef9ad4d97ba41f0437c8e",
25
+ "digest": "87b8392501ff99d1f4374ee094123c04f5793bb8c8ebc78fbe2b53d324908543",
26
26
  "protocolVersion": 5,
27
27
  "declarations": "dist/declarations.json",
28
28
  "setup": {