@hearsay-tools/squawk 0.18.0-pr4120.7919 → 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.
- package/dist/ci-wait/tools.d.ts +4 -4
- package/dist/delegation/routes.d.ts +65 -65
- package/dist/project-migration/auto.js +13 -30
- package/dist/project-migration/auto.js.map +1 -1
- package/dist/project-migration/live.d.ts +0 -9
- package/dist/project-migration/live.js +1 -58
- package/dist/project-migration/live.js.map +1 -1
- package/dist/project-migration/plan.d.ts +0 -3
- package/dist/project-migration/plan.js +1 -1
- package/dist/project-migration/plan.js.map +1 -1
- package/dist/project-paths.d.ts +0 -2
- package/dist/project-paths.js +4 -7
- package/dist/project-paths.js.map +1 -1
- package/dist/server/models-routes.d.ts +13 -13
- package/dist/server/reports-api.d.ts +2 -2
- package/dist/server/server.d.ts +1450 -1450
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/package.json +4 -4
- package/dist/project-migration/pending.d.ts +0 -10
- package/dist/project-migration/pending.js +0 -57
- package/dist/project-migration/pending.js.map +0 -1
|
@@ -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-
|
|
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-
|
|
67
|
-
"@open-mercato/cezar-contract": "0.18.0-
|
|
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": "
|
|
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, or Git warns while it lists, the answer is true and the plan decides.
|
|
9
|
-
*/
|
|
10
|
-
export declare function legacyMoveWorkLeft(root: string): Promise<boolean>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { join } from 'node:path';
|
|
2
|
-
import { runGit } from '../git-command.js';
|
|
3
|
-
import { legacyItemOwner } from '../legacy-runs.js';
|
|
4
|
-
import { keptAmong } from './live.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
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Whether a moved project's `.ai/cezar/` holds anything a move would act on now: the cockpit's
|
|
22
|
-
* check before it plans a moved project at a start. The plan reads every run row, receipt and
|
|
23
|
-
* evidence file, so it runs only when this answers true. Three kinds of item never move and do not
|
|
24
|
-
* count: the `cockpit.lock*` ownership claims, tracked files (the move prints their `git mv`), and
|
|
25
|
-
* the items of the tasks the kept-task list names while each can still resume. An item of any
|
|
26
|
-
* other kind, or of a task that has since been archived or deleted, counts. When Git, the kept-task
|
|
27
|
-
* list or a run store cannot be read, or Git warns while it lists, the answer is true and the plan decides.
|
|
28
|
-
*/
|
|
29
|
-
export async function legacyMoveWorkLeft(root) {
|
|
30
|
-
const source = join(root, ...LEGACY_PROJECT_DIR.split('/'));
|
|
31
|
-
const destination = join(root, ...MIGRATED_PROJECT_DIR.split('/'));
|
|
32
|
-
if (!legacyStateLeft(source, destination))
|
|
33
|
-
return false;
|
|
34
|
-
// An unreadable kept-task list is work: the move rewrites it from the run store.
|
|
35
|
-
const leftovers = currentLeftovers(destination);
|
|
36
|
-
if (leftovers === undefined)
|
|
37
|
-
return true;
|
|
38
|
-
const recorded = new Set(leftovers);
|
|
39
|
-
const listed = await untrackedListing(root);
|
|
40
|
-
if (listed === undefined)
|
|
41
|
-
return true;
|
|
42
|
-
const owners = new Set();
|
|
43
|
-
for (const path of listed.split('\0').filter(Boolean)) {
|
|
44
|
-
const parts = path.replace(/\/$/, '').split('/').slice(LEGACY_PROJECT_DIR.split('/').length);
|
|
45
|
-
if (parts[0]?.startsWith('cockpit.lock'))
|
|
46
|
-
continue;
|
|
47
|
-
const owner = legacyItemOwner(parts, recorded);
|
|
48
|
-
if (owner === undefined)
|
|
49
|
-
return true;
|
|
50
|
-
owners.add(owner);
|
|
51
|
-
}
|
|
52
|
-
if (owners.size === 0)
|
|
53
|
-
return false;
|
|
54
|
-
const kept = keptAmong(root, owners);
|
|
55
|
-
return kept === undefined || [...owners].some(id => !kept.has(id));
|
|
56
|
-
}
|
|
57
|
-
//# 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,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,kBAAk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