@hearsay-tools/squawk 0.18.0-pr4120.7918.2 → 0.18.0-pr4121.7921

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,12 +7,6 @@ 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
- } | {
16
10
  projectId: string;
17
11
  runId: string;
18
12
  type: "batch";
@@ -26,6 +20,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
26
20
  cursor: string;
27
21
  afterSeq: number;
28
22
  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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-pr4120.7918.2",
3
+ "version": "0.18.0-pr4121.7921",
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-pr4120.7918.2",
67
- "@open-mercato/cezar-contract": "0.18.0-pr4120.7918.2",
66
+ "@open-mercato/cezar-api-client": "0.18.0-pr4121.7921",
67
+ "@open-mercato/cezar-contract": "0.18.0-pr4121.7921",
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": "ce8a6ac04f86d3c5a7a13d37f4b380ce215db1e1"
84
+ "gitHead": "8cd60659a180f34d94273d867af6fbb463b955f6"
85
85
  }
@@ -1,10 +0,0 @@
1
- /**
2
- * Whether a moved project's `.ai/cezar/` holds anything a move would act on now: the cockpit's
3
- * check before it plans a moved project at a start. The plan reads every run row, receipt and
4
- * evidence file, so it runs only when this answers true. Three kinds of item never move and do not
5
- * count: the `cockpit.lock*` ownership claims, tracked files (the move prints their `git mv`), and
6
- * the items of the tasks the kept-task list names while each can still resume. An item of any
7
- * other kind, or of a task that has since been archived or deleted, counts. When Git, the kept-task
8
- * list or a run store cannot be read, the answer is true and the plan decides.
9
- */
10
- export declare function legacyMoveWorkLeft(root: string): Promise<boolean>;
@@ -1,43 +0,0 @@
1
- import { join } from 'node:path';
2
- import { legacyItemOwner } from '../legacy-runs.js';
3
- import { keptAmong } from './live.js';
4
- import { currentLeftovers, gitOutput, LEGACY_PROJECT_DIR, legacyStateLeft, MIGRATED_PROJECT_DIR } from './plan.js';
5
- /**
6
- * Whether a moved project's `.ai/cezar/` holds anything a move would act on now: the cockpit's
7
- * check before it plans a moved project at a start. The plan reads every run row, receipt and
8
- * evidence file, so it runs only when this answers true. Three kinds of item never move and do not
9
- * count: the `cockpit.lock*` ownership claims, tracked files (the move prints their `git mv`), and
10
- * the items of the tasks the kept-task list names while each can still resume. An item of any
11
- * other kind, or of a task that has since been archived or deleted, counts. When Git, the kept-task
12
- * list or a run store cannot be read, the answer is true and the plan decides.
13
- */
14
- export async function legacyMoveWorkLeft(root) {
15
- const source = join(root, ...LEGACY_PROJECT_DIR.split('/'));
16
- const destination = join(root, ...MIGRATED_PROJECT_DIR.split('/'));
17
- if (!legacyStateLeft(source, destination))
18
- return false;
19
- // An unreadable kept-task list is work: the move rewrites it from the run store.
20
- const leftovers = currentLeftovers(destination);
21
- if (leftovers === undefined)
22
- return true;
23
- const recorded = new Set(leftovers);
24
- // Untracked and ignored files; a nested Git worktree is one entry that ends in `/`.
25
- const listed = await gitOutput(root, ['ls-files', '-z', '--others', '--', LEGACY_PROJECT_DIR]);
26
- if (listed === undefined)
27
- return true;
28
- const owners = new Set();
29
- for (const path of listed.split('\0').filter(Boolean)) {
30
- const parts = path.replace(/\/$/, '').split('/').slice(LEGACY_PROJECT_DIR.split('/').length);
31
- if (parts[0]?.startsWith('cockpit.lock'))
32
- continue;
33
- const owner = legacyItemOwner(parts, recorded);
34
- if (owner === undefined)
35
- return true;
36
- owners.add(owner);
37
- }
38
- if (owners.size === 0)
39
- return false;
40
- const kept = keptAmong(root, owners);
41
- return kept === undefined || [...owners].some(id => !kept.has(id));
42
- }
43
- //# sourceMappingURL=pending.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pending.js","sourceRoot":"","sources":["../../src/project-migration/pending.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,kBAAkB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAEnH;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,IAAY;IACnD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,EAAE,GAAG,oBAAoB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IACnE,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,WAAW,CAAC;QAAE,OAAO,KAAK,CAAC;IACxD,iFAAiF;IACjF,MAAM,SAAS,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAChD,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,I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