@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/index.js CHANGED
@@ -12600,6 +12600,13 @@ function invalid(sessionId) {
12600
12600
  });
12601
12601
  }
12602
12602
 
12603
+ // src/utils/socket-path.ts
12604
+ import {
12605
+ assertUnixSocketPathWithinLimit,
12606
+ checkUnixSocketPath,
12607
+ unixSocketPathLimit
12608
+ } from "@wrongstack/persistence";
12609
+
12603
12610
  // src/utils/sleep.ts
12604
12611
  function sleep(ms) {
12605
12612
  return new Promise((resolve46) => setTimeout(resolve46, ms));
@@ -14485,7 +14492,7 @@ function chronicleProjectServerEndpoint(projectDir) {
14485
14492
  }
14486
14493
  return path30.join(
14487
14494
  os6.tmpdir(),
14488
- `wrongstack-chronicle-v${CHRONICLE_PROJECT_SERVER_PROTOCOL_VERSION}`,
14495
+ `wsch-v${CHRONICLE_PROJECT_SERVER_PROTOCOL_VERSION}`,
14489
14496
  `${key}.sock`
14490
14497
  );
14491
14498
  }
@@ -15973,7 +15980,7 @@ function wireReviewFindingsToChronicle(options) {
15973
15980
  "chimera.review_complete",
15974
15981
  (_event, raw) => {
15975
15982
  const payload = raw;
15976
- if (!payload || !payload.reviewText) return;
15983
+ if (!payload?.reviewText) return;
15977
15984
  if (payload.status !== "success") return;
15978
15985
  const context = typeof options.context === "function" ? options.context() : options.context;
15979
15986
  const sessionId = payload.sessionId ?? payload.bundle?.cwd;
@@ -35574,7 +35581,7 @@ function mailboxProjectServerEndpoint(projectDir) {
35574
35581
  }
35575
35582
  return path54.join(
35576
35583
  os8.tmpdir(),
35577
- `wrongstack-mailbox-v${MAILBOX_PROJECT_SERVER_PROTOCOL_VERSION}`,
35584
+ `wsmb-v${MAILBOX_PROJECT_SERVER_PROTOCOL_VERSION}`,
35578
35585
  `${key}.sock`
35579
35586
  );
35580
35587
  }
@@ -84885,6 +84892,7 @@ export {
84885
84892
  assertProjectAgentRole,
84886
84893
  assertProjectRootOutsideStateDir,
84887
84894
  assertSafePath,
84895
+ assertUnixSocketPathWithinLimit,
84888
84896
  assessCommitSafety,
84889
84897
  assessHqExposure,
84890
84898
  assignNickname,
@@ -84939,6 +84947,7 @@ export {
84939
84947
  captureLearnedFromAgentOutput,
84940
84948
  captureLearnedFromAgentOutputDetailed,
84941
84949
  checkConnectivity,
84950
+ checkUnixSocketPath,
84942
84951
  childChronicleContext,
84943
84952
  chronicleProjectServerEndpoint,
84944
84953
  chronicleProjectServerKey,
@@ -85531,6 +85540,7 @@ export {
85531
85540
  tuiStreamFlushMs,
85532
85541
  ulid,
85533
85542
  unifiedDiff,
85543
+ unixSocketPathLimit,
85534
85544
  unloadPlugins,
85535
85545
  updateJsonObjectFile,
85536
85546
  updatePackageOutdatedStatus,