@hearsay-tools/squawk 0.18.0-pr4120.7918.2 → 0.18.0-pr4120.7919

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.
@@ -5,6 +5,6 @@
5
5
  * count: the `cockpit.lock*` ownership claims, tracked files (the move prints their `git mv`), and
6
6
  * the items of the tasks the kept-task list names while each can still resume. An item of any
7
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.
8
+ * list or a run store cannot be read, or Git warns while it lists, the answer is true and the plan decides.
9
9
  */
10
10
  export declare function legacyMoveWorkLeft(root: string): Promise<boolean>;
@@ -1,7 +1,22 @@
1
1
  import { join } from 'node:path';
2
+ import { runGit } from '../git-command.js';
2
3
  import { legacyItemOwner } from '../legacy-runs.js';
3
4
  import { keptAmong } from './live.js';
4
- import { currentLeftovers, gitOutput, LEGACY_PROJECT_DIR, legacyStateLeft, MIGRATED_PROJECT_DIR } from './plan.js';
5
+ import { currentLeftovers, LEGACY_PROJECT_DIR, legacyStateLeft, MIGRATED_PROJECT_DIR } from './plan.js';
6
+ /**
7
+ * The untracked and ignored files under `.ai/cezar/`; a nested Git worktree is one entry that ends
8
+ * in `/`. Undefined when the listing may be incomplete: Git failed, or it warned (a directory it
9
+ * cannot open is skipped with a warning and exit 0).
10
+ */
11
+ async function untrackedListing(root) {
12
+ try {
13
+ const { stdout, stderr } = await runGit(['ls-files', '-z', '--others', '--', LEGACY_PROJECT_DIR], { cwd: root, maxBuffer: 256 * 1024 * 1024, timeout: 60_000 });
14
+ return stderr.trim() ? undefined : stdout;
15
+ }
16
+ catch {
17
+ return undefined;
18
+ }
19
+ }
5
20
  /**
6
21
  * Whether a moved project's `.ai/cezar/` holds anything a move would act on now: the cockpit's
7
22
  * check before it plans a moved project at a start. The plan reads every run row, receipt and
@@ -9,7 +24,7 @@ import { currentLeftovers, gitOutput, LEGACY_PROJECT_DIR, legacyStateLeft, MIGRA
9
24
  * count: the `cockpit.lock*` ownership claims, tracked files (the move prints their `git mv`), and
10
25
  * the items of the tasks the kept-task list names while each can still resume. An item of any
11
26
  * 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.
27
+ * list or a run store cannot be read, or Git warns while it lists, the answer is true and the plan decides.
13
28
  */
14
29
  export async function legacyMoveWorkLeft(root) {
15
30
  const source = join(root, ...LEGACY_PROJECT_DIR.split('/'));
@@ -21,8 +36,7 @@ export async function legacyMoveWorkLeft(root) {
21
36
  if (leftovers === undefined)
22
37
  return true;
23
38
  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]);
39
+ const listed = await untrackedListing(root);
26
40
  if (listed === undefined)
27
41
  return true;
28
42
  const owners = new Set();
@@ -1 +1 @@
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,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,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AACrE,CAAC"}
@@ -58,6 +58,29 @@ export declare function ciProgressPlugs(): {
58
58
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
59
59
  "/workspace/activity": {
60
60
  $get: {
61
+ output: {
62
+ error: string;
63
+ code?: "invalid_input" | undefined;
64
+ };
65
+ outputFormat: "json";
66
+ status: 400;
67
+ input: {
68
+ query: {
69
+ project?: string | undefined;
70
+ };
71
+ };
72
+ } | {
73
+ output: {
74
+ error: string;
75
+ };
76
+ outputFormat: "json";
77
+ status: 404 | 409 | 503;
78
+ input: {
79
+ query: {
80
+ project?: string | undefined;
81
+ };
82
+ };
83
+ } | {
61
84
  output: {
62
85
  generatedAt: string;
63
86
  projects: {
@@ -288,29 +311,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
288
311
  project?: string | undefined;
289
312
  };
290
313
  };
291
- } | {
292
- output: {
293
- error: string;
294
- code?: "invalid_input" | undefined;
295
- };
296
- outputFormat: "json";
297
- status: 400;
298
- input: {
299
- query: {
300
- project?: string | undefined;
301
- };
302
- };
303
- } | {
304
- output: {
305
- error: string;
306
- };
307
- outputFormat: "json";
308
- status: 404 | 409 | 503;
309
- input: {
310
- query: {
311
- project?: string | undefined;
312
- };
313
- };
314
314
  };
315
315
  };
316
316
  }, "/", "/workspace/activity">;
@@ -18,7 +18,7 @@ export declare function createProviderSignInRoutes(options: {
18
18
  error: string;
19
19
  };
20
20
  outputFormat: "json";
21
- status: 400;
21
+ status: 409;
22
22
  input: {
23
23
  json: {
24
24
  provider: string;
@@ -30,7 +30,7 @@ export declare function createProviderSignInRoutes(options: {
30
30
  error: string;
31
31
  };
32
32
  outputFormat: "json";
33
- status: 409;
33
+ status: 400;
34
34
  input: {
35
35
  json: {
36
36
  provider: string;
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 400;
43
+ status: 409;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 409;
56
+ status: 400;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;
@@ -58,15 +58,11 @@ export declare function createRunnersRoutes(options: {
58
58
  "/runner-install/:runner": {
59
59
  $post: {
60
60
  output: {
61
- supported: boolean;
62
- installedVersion: string | null;
63
- latestVersion: string | null;
64
- updateAvailable: boolean;
65
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
66
- error: string | null;
61
+ error: string;
62
+ code?: "invalid_input" | undefined;
67
63
  };
68
64
  outputFormat: "json";
69
- status: 202;
65
+ status: 400;
70
66
  input: {
71
67
  param: {
72
68
  runner: string;
@@ -78,11 +74,15 @@ export declare function createRunnersRoutes(options: {
78
74
  };
79
75
  } | {
80
76
  output: {
81
- error: string;
82
- code?: "invalid_input" | undefined;
77
+ supported: boolean;
78
+ installedVersion: string | null;
79
+ latestVersion: string | null;
80
+ updateAvailable: boolean;
81
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
82
+ error: string | null;
83
83
  };
84
84
  outputFormat: "json";
85
- status: 400;
85
+ status: 202;
86
86
  input: {
87
87
  param: {
88
88
  runner: string;
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-pr4120.7919",
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-pr4120.7919",
67
+ "@open-mercato/cezar-contract": "0.18.0-pr4120.7919",
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": "c50096e23e8d2ec53dde555825208a93e84ca4db"
85
85
  }