benignswarm 0.12.93 → 0.12.94

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.
@@ -1,4 +1,6 @@
1
1
  export const DEFAULT_TURNS_PER_HOUR = 20;
2
+ /** The highest hourly turn ceiling a session may be given (operator decision 2026-11-14: busy reviewers ran into 20). */
3
+ export const MAX_TURNS_PER_HOUR = 60;
2
4
  export const MAX_UNPRODUCTIVE_TURNS = 3;
3
5
  const HOUR_MS = 60 * 60_000;
4
6
  const OUTPUT_TAIL_LIMIT = 800;
package/dist/usage.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { existsSync, readFileSync } from "node:fs";
2
2
  import { claudeTranscript, dshUsage } from "./harnesses.js";
3
+ import { antigravityUsage } from "./antigravity.js";
3
4
  const zero = () => ({ input: 0, cached_input: 0, output: 0, reasoning: 0, total: 0 });
4
5
  function lines(path) {
5
6
  return readFileSync(path, "utf8").split("\n").filter(Boolean).flatMap((l) => {
@@ -90,6 +91,11 @@ export function sessionUsage(session, since, until) {
90
91
  const base = { harness: "dsh", source: "dsh-step-end-events", scope: "session", since, until, tokens: null };
91
92
  return tokens.total ? { ...base, tokens } : { ...base, reason: "no step_end usage events in the DeepSeek Harness turn log during this window" };
92
93
  }
94
+ if (session.harness === "antigravity") {
95
+ const tokens = antigravityUsage(session.transcript, since, until);
96
+ const base = { harness: "antigravity", source: "agy-json-turn-records", scope: "session", since, until, tokens };
97
+ return tokens ? base : { ...base, reason: "no Antigravity usage records in the window" };
98
+ }
93
99
  return none(session.harness, `${session.harness} keeps no readable token counts locally`);
94
100
  }
95
101
  /** Usage for a Claude Code session identified by the watcher, when no hook bound it to this agent. */
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.12.93";
1
+ export const CLI_VERSION = "0.12.94";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "benignswarm",
3
- "version": "0.12.93",
3
+ "version": "0.12.94",
4
4
  "description": "b9s: chat, status board and evidence store for coding agents (benignswarm.org)",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {