@dev-anywhere/proxy 0.4.14 → 0.4.16

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/serve.js CHANGED
@@ -851,7 +851,7 @@ var INTERNAL_TITLE_PATTERNS = [
851
851
  /^codex agent history\b/i,
852
852
  /^conversation summary\b/i
853
853
  ];
854
- var TEMP_HISTORY_ROOTS = [tmpdir(), "/tmp", "/private/tmp", "/var/tmp"].map(normalizeAbsolutePath).filter((path) => path !== null);
854
+ var TEMP_HISTORY_ROOTS = expandPathAliases([tmpdir(), "/tmp", "/private/tmp", "/var/tmp"]).map(normalizeAbsolutePath).filter((path) => path !== null);
855
855
  async function scanSessionHistory(options = {}) {
856
856
  const entries = applySessionHistoryMetadata(
857
857
  [...await scanClaudeSessionHistory(), ...await scanCodexSessionHistory()],
@@ -876,6 +876,15 @@ function normalizeAbsolutePath(path) {
876
876
  }
877
877
  return resolved === sep ? null : resolved;
878
878
  }
879
+ function expandPathAliases(paths) {
880
+ const aliases = /* @__PURE__ */ new Set();
881
+ for (const path of paths) {
882
+ aliases.add(path);
883
+ if (path.startsWith("/var/")) aliases.add(`/private${path}`);
884
+ if (path.startsWith("/private/var/")) aliases.add(path.slice("/private".length));
885
+ }
886
+ return [...aliases];
887
+ }
879
888
  function isPathInsideOrEqual(path, root) {
880
889
  return path === root || path.startsWith(`${root}${sep}`);
881
890
  }