@wrongstack/core 0.296.3 → 0.296.4
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/chronicle/index.js +2 -2
- package/dist/chronicle/index.js.map +2 -2
- package/dist/chronicle/project-server-endpoint.d.ts +19 -0
- package/dist/chronicle/project-server-endpoint.d.ts.map +1 -1
- package/dist/chronicle/project-server.js +9 -1
- package/dist/chronicle/project-server.js.map +3 -3
- package/dist/coordination/index.js +1 -1
- package/dist/coordination/index.js.map +2 -2
- package/dist/coordination/mailbox-project-server-endpoint.d.ts +19 -0
- package/dist/coordination/mailbox-project-server-endpoint.d.ts.map +1 -1
- package/dist/coordination/mailbox-project-server.js +9 -1
- package/dist/coordination/mailbox-project-server.js.map +3 -3
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +2 -2
- package/dist/index.js +13 -3
- package/dist/index.js.map +3 -3
- package/dist/plugin/index.js +1 -1
- package/dist/plugin/index.js.map +2 -2
- package/dist/plugins/chimera-plugin.d.ts.map +1 -1
- package/dist/plugins/review-finding-commands.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +10 -0
- package/dist/utils/index.js.map +3 -3
- package/dist/utils/socket-path.d.ts +8 -0
- package/dist/utils/socket-path.d.ts.map +1 -0
- package/instructions/coordination/subagent-baseline.md +16 -5
- package/instructions/system-lite.md +3 -0
- package/instructions/system-pro.md +19 -0
- package/instructions/system.md +14 -0
- package/package.json +3 -3
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
export declare const MAILBOX_PROJECT_SERVER_METADATA_FILE = ".mailbox-server.json";
|
|
2
2
|
export declare function mailboxProjectServerKey(projectDir: string): string;
|
|
3
|
+
/**
|
|
4
|
+
* Deterministic per-project mailbox IPC endpoint.
|
|
5
|
+
*
|
|
6
|
+
* The Unix subdirectory is the short `wsmb-v<V>/` (was
|
|
7
|
+
* `wrongstack-mailbox-v<V>/`, which left only 3 bytes of macOS `sun_path`
|
|
8
|
+
* headroom under the ~48-byte per-user TMPDIR — see the codebase-index macOS
|
|
9
|
+
* incident and `@wrongstack/persistence` socket-path helpers). ~86 bytes
|
|
10
|
+
* worst-case macOS now.
|
|
11
|
+
*
|
|
12
|
+
* Migration: the protocol version stays embedded in the path, so this rename
|
|
13
|
+
* behaves exactly like a protocol bump — old daemons keep listening on the old
|
|
14
|
+
* `wrongstack-mailbox-v<V>/` path, are never contacted again, and exit on
|
|
15
|
+
* their idle timeout. No coexistence window: a client build always talks only
|
|
16
|
+
* to the endpoint scheme it derives. Bump
|
|
17
|
+
* `MAILBOX_PROJECT_SERVER_PROTOCOL_VERSION` for wire changes as before; the
|
|
18
|
+
* prefix itself must not grow without re-checking the byte budget.
|
|
19
|
+
* The Windows pipe name keeps the long prefix — named pipes have no
|
|
20
|
+
* `sun_path` limit.
|
|
21
|
+
*/
|
|
3
22
|
export declare function mailboxProjectServerEndpoint(projectDir: string): string;
|
|
4
23
|
export declare function mailboxProjectServerMetadataPath(projectDir: string): string;
|
|
5
24
|
export declare function ensureMailboxProjectServerSocketDirectory(endpoint: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mailbox-project-server-endpoint.d.ts","sourceRoot":"","sources":["../../src/coordination/mailbox-project-server-endpoint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mailbox-project-server-endpoint.d.ts","sourceRoot":"","sources":["../../src/coordination/mailbox-project-server-endpoint.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oCAAoC,yBAAyB,CAAC;AAO3E,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,4BAA4B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAUvE;AAED,wBAAgB,gCAAgC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED,wBAAgB,yCAAyC,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAQhF"}
|
|
@@ -289,6 +289,13 @@ import * as fs from "node:fs";
|
|
|
289
289
|
import * as os from "node:os";
|
|
290
290
|
import * as path from "node:path";
|
|
291
291
|
|
|
292
|
+
// src/utils/socket-path.ts
|
|
293
|
+
import {
|
|
294
|
+
assertUnixSocketPathWithinLimit,
|
|
295
|
+
checkUnixSocketPath,
|
|
296
|
+
unixSocketPathLimit
|
|
297
|
+
} from "@wrongstack/persistence";
|
|
298
|
+
|
|
292
299
|
// src/coordination/mailbox-project-server-protocol.ts
|
|
293
300
|
var MAILBOX_PROJECT_SERVER_PROTOCOL_VERSION = 3;
|
|
294
301
|
var MAILBOX_PROJECT_SERVER_MAX_FRAME_CHARS = 16 * 1024 * 1024;
|
|
@@ -415,7 +422,7 @@ function mailboxProjectServerEndpoint(projectDir2) {
|
|
|
415
422
|
}
|
|
416
423
|
return path.join(
|
|
417
424
|
os.tmpdir(),
|
|
418
|
-
`
|
|
425
|
+
`wsmb-v${MAILBOX_PROJECT_SERVER_PROTOCOL_VERSION}`,
|
|
419
426
|
`${key}.sock`
|
|
420
427
|
);
|
|
421
428
|
}
|
|
@@ -424,6 +431,7 @@ function mailboxProjectServerMetadataPath(projectDir2) {
|
|
|
424
431
|
}
|
|
425
432
|
function ensureMailboxProjectServerSocketDirectory(endpoint2) {
|
|
426
433
|
if (process.platform !== "win32") {
|
|
434
|
+
assertUnixSocketPathWithinLimit(endpoint2, "mailbox");
|
|
427
435
|
fs.mkdirSync(path.dirname(endpoint2), { recursive: true, mode: 448 });
|
|
428
436
|
}
|
|
429
437
|
}
|