@wjarka/cezarion 0.14.2-pr406.627 → 0.14.2-pr406.632

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.
@@ -300,18 +300,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
300
300
  } & {
301
301
  "/:workerId": {
302
302
  $get: {
303
- output: {
304
- error: string;
305
- code?: "invalid_input" | undefined;
306
- };
307
- outputFormat: "json";
308
- status: 400;
309
- input: {
310
- param: {
311
- workerId: string;
312
- };
313
- };
314
- } | {
315
303
  output: {
316
304
  workerId: string;
317
305
  parentRunId: string;
@@ -388,11 +376,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
388
376
  workerId: string;
389
377
  };
390
378
  };
391
- };
392
- };
393
- } & {
394
- "/:workerId/collect": {
395
- $post: {
379
+ } | {
396
380
  output: {
397
381
  error: string;
398
382
  code?: "invalid_input" | undefined;
@@ -403,10 +387,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
403
387
  param: {
404
388
  workerId: string;
405
389
  };
406
- } & {
407
- json: Record<string, never>;
408
390
  };
409
- } | {
391
+ };
392
+ };
393
+ } & {
394
+ "/:workerId/collect": {
395
+ $post: {
410
396
  output: {
411
397
  workerId: string;
412
398
  parentRunId: string;
@@ -508,11 +494,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
508
494
  } & {
509
495
  json: Record<string, never>;
510
496
  };
511
- };
512
- };
513
- } & {
514
- "/:workerId/steer": {
515
- $post: {
497
+ } | {
516
498
  output: {
517
499
  error: string;
518
500
  code?: "invalid_input" | undefined;
@@ -524,11 +506,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
524
506
  workerId: string;
525
507
  };
526
508
  } & {
527
- json: {
528
- text: string;
529
- };
509
+ json: Record<string, never>;
530
510
  };
531
- } | {
511
+ };
512
+ };
513
+ } & {
514
+ "/:workerId/steer": {
515
+ $post: {
532
516
  output: {
533
517
  workerId: string;
534
518
  state: "delivered" | "queued";
@@ -544,11 +528,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
544
528
  text: string;
545
529
  };
546
530
  };
547
- };
548
- };
549
- } & {
550
- "/:workerId/stop": {
551
- $post: {
531
+ } | {
552
532
  output: {
553
533
  error: string;
554
534
  code?: "invalid_input" | undefined;
@@ -560,9 +540,15 @@ export declare function createDelegationRoutes(service: DelegationService, crede
560
540
  workerId: string;
561
541
  };
562
542
  } & {
563
- json: Record<string, never>;
543
+ json: {
544
+ text: string;
545
+ };
564
546
  };
565
- } | {
547
+ };
548
+ };
549
+ } & {
550
+ "/:workerId/stop": {
551
+ $post: {
566
552
  output: {
567
553
  workerId: string;
568
554
  state: "stopping" | "terminated";
@@ -576,11 +562,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
576
562
  } & {
577
563
  json: Record<string, never>;
578
564
  };
579
- };
580
- };
581
- } & {
582
- "/:workerId/destroy": {
583
- $post: {
565
+ } | {
584
566
  output: {
585
567
  error: string;
586
568
  code?: "invalid_input" | undefined;
@@ -594,7 +576,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
594
576
  } & {
595
577
  json: Record<string, never>;
596
578
  };
597
- } | {
579
+ };
580
+ };
581
+ } & {
582
+ "/:workerId/destroy": {
583
+ $post: {
598
584
  output: {
599
585
  workerId: string;
600
586
  state: "complete" | "incomplete";
@@ -617,6 +603,20 @@ export declare function createDelegationRoutes(service: DelegationService, crede
617
603
  } & {
618
604
  json: Record<string, never>;
619
605
  };
606
+ } | {
607
+ output: {
608
+ error: string;
609
+ code?: "invalid_input" | undefined;
610
+ };
611
+ outputFormat: "json";
612
+ status: 400;
613
+ input: {
614
+ param: {
615
+ workerId: string;
616
+ };
617
+ } & {
618
+ json: Record<string, never>;
619
+ };
620
620
  } | {
621
621
  output: {
622
622
  workerId: string;
@@ -646,11 +646,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
646
646
  "/:workerId/diff": {
647
647
  $get: {
648
648
  output: {
649
- error: string;
650
- code?: "invalid_input" | undefined;
649
+ workerId: string;
650
+ baselineSha: string;
651
+ diff: string;
652
+ truncated: boolean;
651
653
  };
652
654
  outputFormat: "json";
653
- status: 400;
655
+ status: 200;
654
656
  input: {
655
657
  param: {
656
658
  workerId: string;
@@ -658,13 +660,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
658
660
  };
659
661
  } | {
660
662
  output: {
661
- workerId: string;
662
- baselineSha: string;
663
- diff: string;
664
- truncated: boolean;
663
+ error: string;
664
+ code?: "invalid_input" | undefined;
665
665
  };
666
666
  outputFormat: "json";
667
- status: 200;
667
+ status: 400;
668
668
  input: {
669
669
  param: {
670
670
  workerId: string;
@@ -2,14 +2,15 @@
2
2
  export declare function agentTmpDir(dataDir: string, runId: string): string;
3
3
  /**
4
4
  * The longest a per-run temp directory may be so that tools binding named
5
- * unix sockets under it still work (#387). `sockaddr_un.sun_path` holds 108
6
- * bytes on Linux and 104 on macOS, NUL included; the longest name a known
7
- * tool lays down under TMPDIR is tsx's IPC socket, `<tmpdir>/tsx-<uid>/
8
- * <pid>.pipe`, ~22 bytes (Chrome's `SingletonSocket` is 16). A 78-byte
9
- * ceiling leaves ≥25 bytes of headroom on the tighter platform — past
10
- * anything these tools generate — while keeping ordinary checkouts on their
11
- * repo-local scratch: only a genuinely deep path, like the 100-character
12
- * directories #387 reports, moves to the fallback.
5
+ * unix sockets under it still work (#387), measured in UTF-8 bytes — the
6
+ * kernel bounds the encoded path, not the JavaScript character count.
7
+ * `sockaddr_un.sun_path` holds 108 bytes on Linux and 104 on macOS, NUL
8
+ * included; the longest name a known tool lays down under TMPDIR is tsx's IPC
9
+ * socket, `<tmpdir>/tsx-<uid>/<pid>.pipe`, ~22 bytes (Chrome's
10
+ * `SingletonSocket` is 16). A 78-byte ceiling leaves ≥25 bytes of headroom on
11
+ * the tighter platform — past anything these tools generate — while keeping
12
+ * ordinary checkouts on their repo-local scratch: only a genuinely deep path,
13
+ * like the 100-character directories #387 reports, moves to the fallback.
13
14
  */
14
15
  export declare const MAX_SOCKET_SAFE_DIR_LENGTH = 78;
15
16
  /**
@@ -73,7 +74,8 @@ export declare function removeAgentTmpDir(dataDir: string, runId: string): void;
73
74
  * name digests the dataDir and is not reversible to a run id (reports the
74
75
  * directory names reaped). The pattern is exact — prefix, lowercase hex,
75
76
  * fixed length, directories only — and a directory is removed only when
76
- * THIS dataDir cannot claim it, so another repo's scratch in the shared
77
- * root is never touched.
77
+ * its `.cez-owner` marker names THIS dataDir and none of this dataDir's
78
+ * kept runs claims it, so another project's scratch in the shared root is
79
+ * never touched.
78
80
  */
79
81
  export declare function sweepAgentTmpDirs(dataDir: string, keepRunIds: Iterable<string>): string[];
@@ -40,7 +40,7 @@
40
40
  * run.
41
41
  */
42
42
  import { createHash } from 'node:crypto';
43
- import { existsSync, mkdirSync, readdirSync, realpathSync, rmSync, writeFileSync } from 'node:fs';
43
+ import { existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs';
44
44
  import { tmpdir } from 'node:os';
45
45
  import { basename, join } from 'node:path';
46
46
  /** Run ids are uuids; anything else must never reach a recursive `rmSync`.
@@ -63,14 +63,15 @@ function agentTmpRoot(dataDir) {
63
63
  }
64
64
  /**
65
65
  * The longest a per-run temp directory may be so that tools binding named
66
- * unix sockets under it still work (#387). `sockaddr_un.sun_path` holds 108
67
- * bytes on Linux and 104 on macOS, NUL included; the longest name a known
68
- * tool lays down under TMPDIR is tsx's IPC socket, `<tmpdir>/tsx-<uid>/
69
- * <pid>.pipe`, ~22 bytes (Chrome's `SingletonSocket` is 16). A 78-byte
70
- * ceiling leaves ≥25 bytes of headroom on the tighter platform — past
71
- * anything these tools generate — while keeping ordinary checkouts on their
72
- * repo-local scratch: only a genuinely deep path, like the 100-character
73
- * directories #387 reports, moves to the fallback.
66
+ * unix sockets under it still work (#387), measured in UTF-8 bytes — the
67
+ * kernel bounds the encoded path, not the JavaScript character count.
68
+ * `sockaddr_un.sun_path` holds 108 bytes on Linux and 104 on macOS, NUL
69
+ * included; the longest name a known tool lays down under TMPDIR is tsx's IPC
70
+ * socket, `<tmpdir>/tsx-<uid>/<pid>.pipe`, ~22 bytes (Chrome's
71
+ * `SingletonSocket` is 16). A 78-byte ceiling leaves ≥25 bytes of headroom on
72
+ * the tighter platform — past anything these tools generate — while keeping
73
+ * ordinary checkouts on their repo-local scratch: only a genuinely deep path,
74
+ * like the 100-character directories #387 reports, moves to the fallback.
74
75
  */
75
76
  export const MAX_SOCKET_SAFE_DIR_LENGTH = 78;
76
77
  /** The OS temp root, symlink-resolved: `bind(2)` bounds the path the kernel
@@ -86,11 +87,22 @@ function osTempRoot() {
86
87
  }
87
88
  const FALLBACK_PREFIX = 'cez-agent-';
88
89
  const FALLBACK_NAME_LENGTH = 12;
90
+ /** The marker file inside a fallback directory naming the dataDir that minted
91
+ * it. The directory name digests `dataDir:runId` and is not reversible, so
92
+ * without this marker a sweep could not tell its own stale directories from
93
+ * another project's live ones in the shared root — and would delete them. */
94
+ const OWNER_FILE = '.cez-owner';
95
+ function dataDirOwner(dataDir) {
96
+ return createHash('sha256').update(`cez-agent-owner:${dataDir}`).digest('hex').slice(0, 16);
97
+ }
89
98
  /**
90
99
  * Where the fallback lives for this dataDir+run pair. The name digests the
91
100
  * dataDir in, because the OS temp root is SHARED: a name derived from the run
92
- * id alone would let one repo's reap or sweep delete another repo's live
93
- * scratch when two run ids happen to share their leading characters.
101
+ * id alone would let one repo's reap delete another repo's live scratch when
102
+ * two run ids happen to share their leading characters. The name alone cannot
103
+ * make the sweep safe — a digest is not reversible, so a sweep could not tell
104
+ * its own stale directories from another project's live ones — which is why
105
+ * every fallback directory also carries the `.cez-owner` marker.
94
106
  */
95
107
  function fallbackTmpDir(dataDir, runId) {
96
108
  const digest = createHash('sha256').update(`${dataDir}:${runId}`).digest('hex');
@@ -104,14 +116,14 @@ function fallbackTmpDir(dataDir, runId) {
104
116
  */
105
117
  export function resolveAgentTmpDir(dataDir, runId) {
106
118
  const local = agentTmpDir(dataDir, runId);
107
- if (local.length <= MAX_SOCKET_SAFE_DIR_LENGTH)
119
+ if (Buffer.byteLength(local, 'utf8') <= MAX_SOCKET_SAFE_DIR_LENGTH)
108
120
  return local;
109
121
  const fallback = fallbackTmpDir(dataDir, runId);
110
- if (fallback.length <= MAX_SOCKET_SAFE_DIR_LENGTH)
122
+ if (Buffer.byteLength(fallback, 'utf8') <= MAX_SOCKET_SAFE_DIR_LENGTH)
111
123
  return fallback;
112
124
  // No candidate fits (a pathological host TMPDIR over a pathological repo
113
125
  // path together): keep whichever leaves socket names the most room.
114
- return fallback.length < local.length ? fallback : local;
126
+ return Buffer.byteLength(fallback) < Buffer.byteLength(local) ? fallback : local;
115
127
  }
116
128
  /** `errno` → the phrasing a human recognises from their shell. */
117
129
  const REASONS = {
@@ -197,6 +209,11 @@ export function agentTmpEnv(dataDir, runId, env = process.env) {
197
209
  const dir = resolveAgentTmpDir(dataDir, runId);
198
210
  try {
199
211
  mkdirSync(dir, dir === local ? { recursive: true } : { recursive: true, mode: 0o700 });
212
+ // In the shared OS root the directory carries its ownership marker, so a
213
+ // startup sweep from another project can tell it apart from stale
214
+ // scratch (the sweep skips anything whose marker is missing or foreign).
215
+ if (dir !== local)
216
+ writeFileSync(join(dir, OWNER_FILE), dataDirOwner(dataDir), 'utf8');
200
217
  }
201
218
  catch (err) {
202
219
  throw new AgentTempDirError(dir, err);
@@ -236,8 +253,9 @@ export function removeAgentTmpDir(dataDir, runId) {
236
253
  * name digests the dataDir and is not reversible to a run id (reports the
237
254
  * directory names reaped). The pattern is exact — prefix, lowercase hex,
238
255
  * fixed length, directories only — and a directory is removed only when
239
- * THIS dataDir cannot claim it, so another repo's scratch in the shared
240
- * root is never touched.
256
+ * its `.cez-owner` marker names THIS dataDir and none of this dataDir's
257
+ * kept runs claims it, so another project's scratch in the shared root is
258
+ * never touched.
241
259
  */
242
260
  export function sweepAgentTmpDirs(dataDir, keepRunIds) {
243
261
  const keep = new Set(keepRunIds);
@@ -266,8 +284,12 @@ export function sweepAgentTmpDirs(dataDir, keepRunIds) {
266
284
  }
267
285
  }
268
286
  // The #387 fallback location, in the shared OS temp root. Kept narrow on
269
- // purpose: exact prefix, 12 lowercase-hex name, directories only, and only
270
- // names this dataDir cannot claim.
287
+ // purpose: exact prefix, 12 lowercase-hex name, directories only, and
288
+ // ownership — a directory is removed only when its `.cez-owner` marker
289
+ // names THIS dataDir (a marker that is missing or foreign is another
290
+ // project's, or unknown, and is never ours to remove) and none of this
291
+ // dataDir's kept runs claims it.
292
+ const owner = dataDirOwner(dataDir);
271
293
  const claimed = new Set([...keep].filter(safeRunId).map((id) => basename(fallbackTmpDir(dataDir, id))));
272
294
  const osRoot = osTempRoot();
273
295
  let fallbackEntries;
@@ -282,6 +304,15 @@ export function sweepAgentTmpDirs(dataDir, keepRunIds) {
282
304
  continue;
283
305
  if (!/^[0-9a-f]{12}$/.test(entry.name.slice(FALLBACK_PREFIX.length)))
284
306
  continue;
307
+ let entryOwner;
308
+ try {
309
+ entryOwner = readFileSync(join(osRoot, entry.name, OWNER_FILE), 'utf8').trim();
310
+ }
311
+ catch {
312
+ continue; // no readable marker: unknown ownership is never ours to remove.
313
+ }
314
+ if (entryOwner !== owner)
315
+ continue;
285
316
  if (claimed.has(entry.name))
286
317
  continue;
287
318
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"agent-tmpdir.js","sourceRoot":"","sources":["../../src/runs/agent-tmpdir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;8EAK8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AAM,CAAC,CAAC;YAAE,SAAS;QAC/E,IAAI,UAAkB,CAAC;QACvB,IAAI,CAAC;YACH,UAAU,GAAG,YAAY,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACjF,CAAC;QAAC,MAAM,CAAC;YACP,SAAS,CAAC,iEAAiE;QAC7E,CAAC;QACD,IAAI,UAAU,KAAK,KAAK;YAAE,SAAS;QACnC,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;YAAE,SAAS;QACtC,IAAI,CAAC;YACH,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACnE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,+DAA+D;QACjE,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wjarka/cezarion",
3
- "version": "0.14.2-pr406.627",
3
+ "version": "0.14.2-pr406.632",
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",
@@ -50,8 +50,8 @@
50
50
  "zod": "^4.4.3"
51
51
  },
52
52
  "devDependencies": {
53
- "@open-mercato/cezar-api-client": "0.14.2-pr406.627",
54
- "@open-mercato/cezar-contract": "0.14.2-pr406.627",
53
+ "@open-mercato/cezar-api-client": "0.14.2-pr406.632",
54
+ "@open-mercato/cezar-contract": "0.14.2-pr406.632",
55
55
  "@types/node": "^20.14.0",
56
56
  "@types/ws": "^8.18.1",
57
57
  "esbuild": "^0.28.1",