@hearsay-tools/squawk 0.18.0-dev.7956 → 0.18.0-dev.7961

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.
@@ -7,6 +7,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
7
7
  output: {
8
8
  generation: string;
9
9
  results: ({
10
+ projectId: string;
11
+ runId: string;
12
+ type: "error" | "reset";
13
+ status: 400 | 404 | 409 | 413 | 503;
14
+ error: string;
15
+ } | {
10
16
  projectId: string;
11
17
  runId: string;
12
18
  type: "batch";
@@ -20,12 +26,6 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
20
26
  cursor: string;
21
27
  afterSeq: number;
22
28
  hasMore: boolean;
23
- } | {
24
- projectId: string;
25
- runId: string;
26
- type: "error" | "reset";
27
- status: 400 | 404 | 409 | 413 | 503;
28
- error: string;
29
29
  })[];
30
30
  };
31
31
  outputFormat: "json";
@@ -0,0 +1,3 @@
1
+ export declare const cachedWorktreeSizeBytes: (path: string) => Promise<number | null>;
2
+ export declare const forgetWorktreeSize: (path: string) => void;
3
+ export declare const clearWorktreeSizeCacheForTests: () => void;
@@ -0,0 +1,8 @@
1
+ import { worktreeSizeBytes } from '../git-worktree.js';
2
+ import { boundedReadCache, readQueue } from './bounded-read-cache.js';
3
+ const sizes = boundedReadCache(30_000, 512);
4
+ const queue = readQueue(6);
5
+ export const cachedWorktreeSizeBytes = (path) => sizes.read(path, () => queue(() => worktreeSizeBytes(path)));
6
+ export const forgetWorktreeSize = (path) => sizes.forget(path);
7
+ export const clearWorktreeSizeCacheForTests = () => sizes.clear();
8
+ //# sourceMappingURL=worktree-size-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worktree-size-cache.js","sourceRoot":"","sources":["../../src/server/worktree-size-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEtE,MAAM,KAAK,GAAG,gBAAgB,CAAgB,MAAM,EAAE,GAAG,CAAC,CAAC;AAC3D,MAAM,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC3B,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACvE,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-dev.7956",
3
+ "version": "0.18.0-dev.7961",
4
4
  "description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -63,8 +63,8 @@
63
63
  "devDependencies": {
64
64
  "@babel/parser": "^8.0.8",
65
65
  "@babel/types": "^8.0.8",
66
- "@open-mercato/cezar-api-client": "0.18.0-dev.7956",
67
- "@open-mercato/cezar-contract": "0.18.0-dev.7956",
66
+ "@open-mercato/cezar-api-client": "0.18.0-dev.7961",
67
+ "@open-mercato/cezar-contract": "0.18.0-dev.7961",
68
68
  "@types/node": "^24.19.1",
69
69
  "@types/ws": "^8.18.1",
70
70
  "esbuild": "^0.28.1",
@@ -81,5 +81,5 @@
81
81
  "publishConfig": {
82
82
  "access": "public"
83
83
  },
84
- "gitHead": "313ed09a61dcd023f7398149f23e65303b9057c2"
84
+ "gitHead": "f83a3eb924bef1558711bca48032b5a447699b56"
85
85
  }