@remnic/core 9.69.29 → 9.69.30
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/access-admin-ops-surface.d.ts +1 -1
- package/dist/access-admin-ops-surface.js +4 -4
- package/dist/access-authorization-probe.d.ts +1 -1
- package/dist/access-authorization-probe.js +5 -5
- package/dist/access-boundary.d.ts +1 -1
- package/dist/access-boundary.js +4 -4
- package/dist/access-cli.js +29 -29
- package/dist/access-extraction-force-flush.d.ts +1 -1
- package/dist/access-extraction-force-flush.js +4 -4
- package/dist/access-http-briefing.d.ts +1 -1
- package/dist/access-http-briefing.js +5 -5
- package/dist/access-http-lcm-compaction.d.ts +1 -1
- package/dist/access-http-lifecycle-flush.d.ts +1 -1
- package/dist/access-http-offline-stream.d.ts +1 -1
- package/dist/access-http-query.js +4 -4
- package/dist/access-http.d.ts +2 -2
- package/dist/access-http.js +16 -16
- package/dist/access-identity-continuity-surface.js +4 -4
- package/dist/access-lcm-surface.d.ts +1 -1
- package/dist/access-lcm-surface.js +4 -4
- package/dist/access-mcp.d.ts +1 -1
- package/dist/access-mcp.js +11 -11
- package/dist/access-namespace-preflight.js +4 -4
- package/dist/access-observe-write-surface.d.ts +1 -1
- package/dist/access-observe-write-surface.js +4 -4
- package/dist/access-operations-batch.js +5 -5
- package/dist/access-operations.d.ts +6 -6
- package/dist/access-operations.js +10 -10
- package/dist/access-recall-concurrency.d.ts +1 -1
- package/dist/access-recall-concurrency.js +4 -4
- package/dist/access-recall-response.d.ts +1 -1
- package/dist/access-recall-response.js +4 -4
- package/dist/access-recall-surface.d.ts +1 -1
- package/dist/access-recall-surface.js +4 -4
- package/dist/access-schema.d.ts +91 -91
- package/dist/access-service-helpers.d.ts +1 -1
- package/dist/access-service.d.ts +1 -1
- package/dist/access-service.js +4 -4
- package/dist/access-surface-catalog.d.ts +1 -1
- package/dist/access-surface-catalog.js +6 -6
- package/dist/active-recall.js +4 -4
- package/dist/buffer.js +4 -4
- package/dist/{chunk-2OO6TPQG.js → chunk-4UDQUPT5.js} +2 -2
- package/dist/{chunk-XWSMJXIG.js → chunk-5ABN4WVL.js} +9 -9
- package/dist/{chunk-UFDMVGUQ.js → chunk-666OOKB7.js} +2 -2
- package/dist/{chunk-K5DSKAVF.js → chunk-7DUFJAOE.js} +3 -3
- package/dist/{chunk-L5JP37BO.js → chunk-ENMTJRXA.js} +2 -2
- package/dist/{chunk-CLALC6ZB.js → chunk-EYMOJ3J6.js} +2 -2
- package/dist/{chunk-MT47LH5L.js → chunk-FBMYGNOC.js} +2 -2
- package/dist/{chunk-Y3BGA7L5.js → chunk-IA2YSHTX.js} +8 -8
- package/dist/{chunk-VT4MK674.js → chunk-JDDXXZWW.js} +2 -2
- package/dist/{chunk-TXMAF7FZ.js → chunk-KLMESRPV.js} +2 -2
- package/dist/{chunk-HRICDLBE.js → chunk-LWA7MDVO.js} +2 -2
- package/dist/{chunk-GBYCFJGV.js → chunk-OGELWNYC.js} +5 -5
- package/dist/{chunk-5OOSADXP.js → chunk-OXNU333D.js} +2 -2
- package/dist/{chunk-FJ5B36V2.js → chunk-PEOTOFH5.js} +2 -2
- package/dist/{chunk-A5JPK3MZ.js → chunk-PLBW64UM.js} +12 -12
- package/dist/{chunk-2E3CG66I.js → chunk-QDY6KYTN.js} +2 -2
- package/dist/{chunk-VLLEWQIU.js → chunk-RAVRDTP7.js} +2 -2
- package/dist/{chunk-JJPRWTOW.js → chunk-RBGREYVJ.js} +2 -2
- package/dist/{chunk-GGRD3JEH.js → chunk-ROGRI25A.js} +2 -2
- package/dist/{chunk-XPFC6D45.js → chunk-S7DPKM5W.js} +41 -31
- package/dist/chunk-S7DPKM5W.js.map +1 -0
- package/dist/{chunk-AYAIV5V5.js → chunk-SH2ZWEWB.js} +2 -2
- package/dist/{chunk-J5Q2YTOB.js → chunk-SMOFBBPU.js} +2 -2
- package/dist/{chunk-22JQEBN3.js → chunk-SQJ3SDIW.js} +3 -3
- package/dist/{chunk-GAYZTUIF.js → chunk-T7CJQVRZ.js} +2 -2
- package/dist/{chunk-N2CAORTC.js → chunk-TEYN7ZYF.js} +2 -2
- package/dist/{chunk-W7SECYCQ.js → chunk-U34EHBPL.js} +2 -2
- package/dist/{chunk-NEFKNR4V.js → chunk-WHBVXTUI.js} +2 -2
- package/dist/{chunk-GL4EC4RG.js → chunk-WJBZMNNS.js} +4 -4
- package/dist/{chunk-GCRGBE72.js → chunk-X74UAWSI.js} +2 -2
- package/dist/{cli-B_YwqoIr.d.ts → cli-DD0P-lu8.d.ts} +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/cli.js +22 -22
- package/dist/config.js +4 -4
- package/dist/deep-recall-http-glue.d.ts +1 -1
- package/dist/deep-recall-mcp-tools.d.ts +1 -1
- package/dist/external-wiki-access.d.ts +1 -1
- package/dist/external-wiki-access.js +5 -5
- package/dist/external-wiki-mcp-tools.d.ts +1 -1
- package/dist/extraction.js +5 -5
- package/dist/index.d.ts +680 -680
- package/dist/index.js +29 -29
- package/dist/location/index.js +5 -5
- package/dist/mcp-memory-inspector-app.d.ts +1 -1
- package/dist/memory-subject-cli.d.ts +1 -1
- package/dist/memory-subject.d.ts +1 -1
- package/dist/operator-toolkit.js +5 -5
- package/dist/orchestration/maintenance.js +6 -6
- package/dist/orchestrator.js +29 -29
- package/dist/{public-http-D6d4W8x-.d.ts → public-http-C4i8Opxc.d.ts} +1 -1
- package/dist/resume-bundles.js +5 -5
- package/dist/schemas.d.ts +176 -176
- package/dist/shared-context/manager.d.ts +6 -6
- package/dist/source-agent-qualifier.js +4 -4
- package/dist/standup/build.js +2 -2
- package/dist/support-passport/index.d.ts +4 -4
- package/dist/support-passport/index.js +7 -7
- package/dist/transfer/types.d.ts +78 -78
- package/dist/who-knows-cli.d.ts +1 -1
- package/dist/who-knows.d.ts +1 -1
- package/package.json +2 -2
- package/src/activity/digest.test.ts +107 -1
- package/src/activity/digest.ts +76 -51
- package/dist/chunk-XPFC6D45.js.map +0 -1
- package/dist/{access-service-Cv8Rizo0.d.ts → access-service-DWdY9Mlk.d.ts} +64 -64
- /package/dist/{chunk-2OO6TPQG.js.map → chunk-4UDQUPT5.js.map} +0 -0
- /package/dist/{chunk-XWSMJXIG.js.map → chunk-5ABN4WVL.js.map} +0 -0
- /package/dist/{chunk-UFDMVGUQ.js.map → chunk-666OOKB7.js.map} +0 -0
- /package/dist/{chunk-K5DSKAVF.js.map → chunk-7DUFJAOE.js.map} +0 -0
- /package/dist/{chunk-L5JP37BO.js.map → chunk-ENMTJRXA.js.map} +0 -0
- /package/dist/{chunk-CLALC6ZB.js.map → chunk-EYMOJ3J6.js.map} +0 -0
- /package/dist/{chunk-MT47LH5L.js.map → chunk-FBMYGNOC.js.map} +0 -0
- /package/dist/{chunk-Y3BGA7L5.js.map → chunk-IA2YSHTX.js.map} +0 -0
- /package/dist/{chunk-VT4MK674.js.map → chunk-JDDXXZWW.js.map} +0 -0
- /package/dist/{chunk-TXMAF7FZ.js.map → chunk-KLMESRPV.js.map} +0 -0
- /package/dist/{chunk-HRICDLBE.js.map → chunk-LWA7MDVO.js.map} +0 -0
- /package/dist/{chunk-GBYCFJGV.js.map → chunk-OGELWNYC.js.map} +0 -0
- /package/dist/{chunk-5OOSADXP.js.map → chunk-OXNU333D.js.map} +0 -0
- /package/dist/{chunk-FJ5B36V2.js.map → chunk-PEOTOFH5.js.map} +0 -0
- /package/dist/{chunk-A5JPK3MZ.js.map → chunk-PLBW64UM.js.map} +0 -0
- /package/dist/{chunk-2E3CG66I.js.map → chunk-QDY6KYTN.js.map} +0 -0
- /package/dist/{chunk-VLLEWQIU.js.map → chunk-RAVRDTP7.js.map} +0 -0
- /package/dist/{chunk-JJPRWTOW.js.map → chunk-RBGREYVJ.js.map} +0 -0
- /package/dist/{chunk-GGRD3JEH.js.map → chunk-ROGRI25A.js.map} +0 -0
- /package/dist/{chunk-AYAIV5V5.js.map → chunk-SH2ZWEWB.js.map} +0 -0
- /package/dist/{chunk-J5Q2YTOB.js.map → chunk-SMOFBBPU.js.map} +0 -0
- /package/dist/{chunk-22JQEBN3.js.map → chunk-SQJ3SDIW.js.map} +0 -0
- /package/dist/{chunk-GAYZTUIF.js.map → chunk-T7CJQVRZ.js.map} +0 -0
- /package/dist/{chunk-N2CAORTC.js.map → chunk-TEYN7ZYF.js.map} +0 -0
- /package/dist/{chunk-W7SECYCQ.js.map → chunk-U34EHBPL.js.map} +0 -0
- /package/dist/{chunk-NEFKNR4V.js.map → chunk-WHBVXTUI.js.map} +0 -0
- /package/dist/{chunk-GL4EC4RG.js.map → chunk-WJBZMNNS.js.map} +0 -0
- /package/dist/{chunk-GCRGBE72.js.map → chunk-X74UAWSI.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/activity/digest.ts"],"sourcesContent":["/**\n * Deterministic screen-activity day-digest renderer (issue #1899).\n *\n * Renders a day's snapshots into markdown with YAML frontmatter, placed at\n * `<memoryDir>/activity/<date>.md` — outside the memory scan roots but inside\n * the QMD collection root (searchable, never auto-recalled). No LLM: the body\n * is a pure, byte-identical function of its inputs so an unchanged day skips\n * rewrite by contentHash. Day bucketing is DST-aware and half-open\n * [start, end) (AGENTS.md §23); sort keys are total with stable tiebreakers\n * (§12).\n */\n\nimport { createHash } from \"node:crypto\";\nimport path from \"node:path\";\n\nimport type { ActivityDayDigest, ActivityDayMeta, ActivitySnapshot } from \"./types.js\";\n\nexport const ACTIVITY_DIGEST_FORMAT_VERSION = 1;\nexport const ACTIVITY_DIR_NAME = \"activity\";\n\n/** Attribute at most this much dwell to a single snapshot (idle gaps capped). */\nconst MAX_DWELL_MS = 15 * 60_000;\n/** Notable-excerpt caps. */\nconst NOTABLE_MAX_WINDOWS = 10;\nconst NOTABLE_EXCERPT_CHARS = 280;\n\nconst DATE_PATTERN = /^\\d{4}-\\d{2}-\\d{2}$/;\n\nexport function isValidActivityDate(date: string): boolean {\n if (typeof date !== \"string\" || !DATE_PATTERN.test(date)) return false;\n // Year 0000 passes the round-trip below but Intl formats it as astronomical\n // year 1 BC, so zonedDayStartIso's padded year yields 0001 and day windows\n // land on the wrong boundary. Reject it here, at validation.\n if (date.startsWith(\"0000-\")) return false;\n // Reject impossible calendar days (e.g. 2026-02-30, 2026-13-01): the UTC\n // round-trip must reproduce the same Y-M-D, else Date normalized an overflow.\n const parsed = new Date(`${date}T00:00:00Z`);\n return Number.isFinite(parsed.getTime()) && parsed.toISOString().slice(0, 10) === date;\n}\n\nexport function activityDigestPath(memoryDir: string, date: string): string {\n if (!isValidActivityDate(date)) {\n // Never interpolate an unvalidated date into a filesystem path (a `../`\n // would escape <memoryDir>/activity/). Reject loudly.\n throw new RangeError(`Invalid activity date \"${date}\"; expected YYYY-MM-DD.`);\n }\n return path.join(memoryDir, ACTIVITY_DIR_NAME, `${date}.md`);\n}\n\n// ── DST-aware local-day window ──────────────────────────────────────────────\n\nexport function timezoneOffsetIso(instant: Date, timezone: string): string {\n const parts = new Intl.DateTimeFormat(\"en-US\", {\n timeZone: timezone,\n timeZoneName: \"longOffset\",\n }).formatToParts(instant);\n const name = parts.find((part) => part.type === \"timeZoneName\")?.value ?? \"GMT\";\n const match = name.match(/GMT([+-]\\d{2}:\\d{2})?/);\n return match?.[1] ?? \"+00:00\";\n}\n\nexport function assertValidTimezone(timezone: string): void {\n try {\n new Intl.DateTimeFormat(\"en-US\", { timeZone: timezone });\n } catch {\n throw new RangeError(`Invalid IANA timezone \"${timezone}\".`);\n }\n}\n\nfunction zonedDayStartIso(date: string, timezone: string): string {\n // The first UTC instant whose local wall-clock is this date at 00:00. Probe\n // several instants across the day to collect every offset in play, keep an\n // offset only if constructing local midnight with it lands on an exact\n // local midnight, then take the EARLIEST such instant — the FIRST 00:00\n // across a rollback that repeats local midnight (America/Cancun dropped\n // LMT −05:47:04 for −06:00 exactly at local midnight 1922-01-01, so 00:00\n // occurred twice; the day must start at the first one).\n // Probe the previous UTC day too: for zones east of UTC the requested date's\n // UTC instants all fall after local midnight, so the pre-transition offset\n // valid at the real local 00:00 is only observable on the prior UTC day.\n const wall = new Intl.DateTimeFormat(\"en-CA\", {\n timeZone: timezone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n hour: \"2-digit\",\n minute: \"2-digit\",\n second: \"2-digit\",\n hourCycle: \"h23\",\n });\n const localStamp = (ms: number): string => {\n const parts = wall.formatToParts(new Date(ms));\n const get = (type: string): string => parts.find((part) => part.type === type)?.value ?? \"\";\n // Intl formats pre-1000 years unpadded (\"999\" for 0999). Pad back to the\n // four-digit form the equality and ordering comparisons below assume,\n // or \"998-12-31\" compares greater than \"0999-01-01\".\n const year = get(\"year\").padStart(4, \"0\");\n return `${year}-${get(\"month\")}-${get(\"day\")}T${get(\"hour\")}:${get(\"minute\")}:${get(\"second\")}`;\n };\n const localDate = (ms: number): string => localStamp(ms).slice(0, 10);\n // Derive each probe's offset at FULL precision (seconds included) from the\n // rendered wall clock, never from a longOffset string: those strings\n // truncate to whole minutes while historical LMT offsets carry seconds\n // (America/Cancun was −05:47:04; Asia/Manila −15:56:08). A candidate built\n // from a truncated offset lands off the true midnight instant, the\n // exact-stamp check below rejects it, and a midnight repeated by a\n // rollback silently resolves to the later occurrence under the new\n // whole-minute offset — misattributing the gap between the two.\n const offsetMs = (ms: number): number | null => {\n const wallAsUtc = Date.parse(`${localStamp(ms)}Z`);\n return Number.isFinite(wallAsUtc) ? wallAsUtc - ms : null;\n };\n const midnightUtc = Date.parse(`${date}T00:00:00Z`);\n const prevDate = shiftIsoDate(date, -1);\n let best: number | null = null;\n for (const iso of [\n `${prevDate}T12:00:00Z`,\n `${prevDate}T23:00:00Z`,\n `${date}T00:00:00Z`,\n `${date}T12:00:00Z`,\n `${date}T23:00:00Z`,\n ]) {\n const offset = offsetMs(Date.parse(iso));\n if (offset === null) continue;\n const candidate = midnightUtc - offset;\n if (!Number.isFinite(candidate)) continue;\n // Accept only an EXACT local midnight. This rejects a wall-clock midnight\n // that never occurred (spring-forward at 00:00, Egypt 2026) and one whose\n // instant the transition already carried past (Asia/Manila's LMT midnight\n // of 1844-12-31 lands on the post-transition clock as 1845-01-01).\n if (localStamp(candidate) !== `${date}T00:00:00`) continue;\n if (best === null || candidate < best) best = candidate;\n }\n if (best === null) {\n // No exact local midnight: either local midnight was skipped by a\n // spring-forward (00:00 → 01:00) or the ENTIRE civil date never existed\n // (Pacific/Apia 2011-12-30; Asia/Manila 1844-12-31). Extending the\n // never-backdate convention, resolve the day start to the first instant\n // whose local calendar date reaches `date`. Local date is monotone\n // non-decreasing in the UTC instant (a fall-back never crosses local\n // midnight backwards), so binary-search a 48h bracket down to the\n // millisecond — transitions can carry seconds (Manila's landed at\n // :56:08, not on a minute boundary), so minute granularity mis-resolves\n // by up to 59s and hands the skipped date a window of its own. The\n // bracket is safe: `<date>T00:00Z − 24h` is always locally before\n // `date`, and `<date>T00:00Z + 24h` is always locally on/after it.\n let lo = midnightUtc - 24 * 3_600_000;\n let hi = lo + 48 * 3_600_000;\n while (lo < hi) {\n const mid = lo + Math.floor((hi - lo) / 2);\n if (localDate(mid) >= date) hi = mid;\n else lo = mid + 1;\n }\n best = lo;\n }\n if (best === null || !Number.isFinite(best)) {\n throw new RangeError(`activity: could not resolve a local day start for \"${date}\" in \"${timezone}\".`);\n }\n return new Date(best).toISOString();\n}\n\nfunction shiftIsoDate(date: string, days: number): string {\n const parsed = new Date(`${date}T00:00:00Z`);\n parsed.setUTCDate(parsed.getUTCDate() + days);\n return parsed.toISOString().slice(0, 10);\n}\n\nfunction nextIsoDate(date: string): string {\n return shiftIsoDate(date, 1);\n}\n\n/**\n * Half-open [start, end) UTC ISO bounds of a local day. A civil date the\n * zone skipped entirely owns no interval: the window is zero-width\n * `[transition, transition)`.\n */\nexport function activityDayWindow(date: string, timezone: string): { startUtc: string; endUtc: string } {\n if (!isValidActivityDate(date)) {\n throw new RangeError(`Invalid activity date \"${date}\"; expected a real YYYY-MM-DD day.`);\n }\n assertValidTimezone(timezone);\n const startUtc = zonedDayStartIso(date, timezone);\n const endUtc = zonedDayStartIso(nextIsoDate(date), timezone);\n // Skipped-date semantics (Pacific/Apia 2011-12-30 class): the skipped\n // date's start and the following date's start both resolve to the\n // transition instant, so the window is naturally zero-width. Keep it\n // that way: a date that never occurred contributes to no daily total\n // (daysOverlappingWeek drops zero-width days) and a connector sync for\n // it fetches nothing. Pushing the end forward to stay non-degenerate\n // would alias the next real day's interval and double-attribute every\n // card in it to two daily totals.\n return { startUtc, endUtc };\n}\n\n/**\n * The local calendar day (YYYY-MM-DD) an instant falls in for an IANA\n * timezone — the day key `activityDayWindow` buckets on. Callers that need\n * \"today\" for activity artifacts MUST use this rather than the host-local\n * date, which drifts a day near either timezone's midnight.\n */\nexport function activityDateInTimezone(instant: Date, timezone: string): string {\n try {\n const parts = new Intl.DateTimeFormat(\"en-CA\", {\n timeZone: timezone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n }).formatToParts(instant);\n const get = (type: string): string => parts.find((part) => part.type === type)?.value ?? \"\";\n return `${get(\"year\")}-${get(\"month\")}-${get(\"day\")}`;\n } catch {\n return instant.toISOString().slice(0, 10);\n }\n}\n\n// ── Rendering ───────────────────────────────────────────────────────────────\n\nfunction sortedByTime(snapshots: ActivitySnapshot[]): ActivitySnapshot[] {\n return [...snapshots].sort((a, b) => {\n // Compare by parsed instant, not raw string, so mixed valid ISO forms\n // (Z vs offset, varying precision) still order chronologically.\n const at = Date.parse(a.capturedAtUtc);\n const bt = Date.parse(b.capturedAtUtc);\n if (at !== bt && Number.isFinite(at) && Number.isFinite(bt)) return at < bt ? -1 : 1;\n const aid = a.id ?? 0;\n const bid = b.id ?? 0;\n if (aid < bid) return -1;\n if (aid > bid) return 1;\n // Unsaved snapshots (pre-store) both default to id 0; fall back to the\n // content hash (their dedup identity), then app/window, for a total order.\n if (a.contentHash !== b.contentHash) return a.contentHash < b.contentHash ? -1 : 1;\n if (a.app !== b.app) return a.app < b.app ? -1 : 1;\n if (a.windowTitle !== b.windowTitle) return a.windowTitle < b.windowTitle ? -1 : 1;\n return 0;\n });\n}\n\n/**\n * Per-snapshot dwell (gap to that machine's next snapshot, capped), scoped per\n * capture machine so an interleaved snapshot from another machine can't steal\n * or truncate a snapshot's dwell (multi-machine days).\n */\nfunction computeDwell(snapshots: ActivitySnapshot[]): Map<ActivitySnapshot, number> {\n const byMachine = new Map<string, ActivitySnapshot[]>();\n for (const snapshot of snapshots) {\n const list = byMachine.get(snapshot.machine);\n if (list === undefined) byMachine.set(snapshot.machine, [snapshot]);\n else list.push(snapshot);\n }\n const dwell = new Map<ActivitySnapshot, number>();\n for (const list of byMachine.values()) {\n const ordered = sortedByTime(list);\n for (let index = 0; index < ordered.length; index++) {\n const current = ordered[index];\n if (current === undefined) continue;\n const next = ordered[index + 1];\n let value = 0;\n if (next !== undefined) {\n const delta = Date.parse(next.capturedAtUtc) - Date.parse(current.capturedAtUtc);\n if (Number.isFinite(delta) && delta > 0) value = Math.min(delta, MAX_DWELL_MS);\n }\n dwell.set(current, value);\n }\n }\n return dwell;\n}\n\nfunction formatDurationMinutes(ms: number): string {\n return `${Math.round(ms / 60_000)}m`;\n}\n\nfunction clockHhMm(iso: string, timezone: string): string {\n const ms = Date.parse(iso);\n if (!Number.isFinite(ms)) return \"??:??\";\n const parts = new Intl.DateTimeFormat(\"en-GB\", {\n timeZone: timezone,\n hour: \"2-digit\",\n minute: \"2-digit\",\n hour12: false,\n }).formatToParts(new Date(ms));\n const hour = parts.find((p) => p.type === \"hour\")?.value ?? \"00\";\n const minute = parts.find((p) => p.type === \"minute\")?.value ?? \"00\";\n return `${hour}:${minute}`;\n}\n\nfunction collapseWhitespace(text: string): string {\n return text.replace(/\\s+/g, \" \").trim();\n}\n\nfunction perAppSection(ordered: ActivitySnapshot[], dwell: Map<ActivitySnapshot, number>): string {\n const totals = new Map<string, number>();\n for (const snapshot of ordered) {\n totals.set(snapshot.app, (totals.get(snapshot.app) ?? 0) + (dwell.get(snapshot) ?? 0));\n }\n const rows = [...totals.entries()].sort((a, b) => {\n if (b[1] !== a[1]) return b[1] - a[1];\n if (a[0] < b[0]) return -1;\n if (a[0] > b[0]) return 1;\n return 0;\n });\n const lines = [\"## Per-app time\", \"\"];\n if (rows.length === 0) {\n lines.push(\"_No activity recorded._\");\n } else {\n for (const [app, ms] of rows) {\n lines.push(`- ${app}: ${formatDurationMinutes(ms)}`);\n }\n }\n return lines.join(\"\\n\");\n}\n\ninterface TimelineSpan {\n startIso: string;\n machine: string;\n app: string;\n windowTitle: string;\n browserUrl?: string;\n}\n\nfunction timelineSpans(ordered: ActivitySnapshot[]): TimelineSpan[] {\n const spans: TimelineSpan[] = [];\n for (const snapshot of ordered) {\n const last = spans[spans.length - 1];\n if (\n last !== undefined &&\n last.machine === snapshot.machine &&\n last.app === snapshot.app &&\n last.windowTitle === snapshot.windowTitle &&\n last.browserUrl === snapshot.browserUrl\n ) {\n continue;\n }\n spans.push({\n startIso: snapshot.capturedAtUtc,\n machine: snapshot.machine,\n app: snapshot.app,\n windowTitle: snapshot.windowTitle,\n ...(snapshot.browserUrl !== undefined ? { browserUrl: snapshot.browserUrl } : {}),\n });\n }\n return spans;\n}\n\nfunction timelineSection(ordered: ActivitySnapshot[], timezone: string): string {\n const lines = [\"## Timeline\", \"\"];\n const spans = timelineSpans(ordered);\n if (spans.length === 0) {\n lines.push(\"_No activity recorded._\");\n return lines.join(\"\\n\");\n }\n for (const span of spans) {\n const clock = clockHhMm(span.startIso, timezone);\n const window = collapseWhitespace(span.windowTitle);\n const url = span.browserUrl !== undefined ? ` (${collapseWhitespace(span.browserUrl)})` : \"\";\n lines.push(`- [${clock}] ${span.app}${window.length > 0 ? ` — ${window}` : \"\"}${url}`);\n }\n return lines.join(\"\\n\");\n}\n\nfunction notableSection(ordered: ActivitySnapshot[], dwell: Map<ActivitySnapshot, number>): string {\n const withDwell = ordered.map((snapshot) => ({ snapshot, dwell: dwell.get(snapshot) ?? 0 }));\n const ranked = withDwell\n .filter((entry) => collapseWhitespace(entry.snapshot.text).length > 0)\n .sort((a, b) => {\n if (b.dwell !== a.dwell) return b.dwell - a.dwell;\n const at = Date.parse(a.snapshot.capturedAtUtc);\n const bt = Date.parse(b.snapshot.capturedAtUtc);\n if (at !== bt && Number.isFinite(at) && Number.isFinite(bt)) return at < bt ? -1 : 1;\n const idDelta = (a.snapshot.id ?? 0) - (b.snapshot.id ?? 0);\n if (idDelta !== 0) return idDelta;\n if (a.snapshot.contentHash !== b.snapshot.contentHash) {\n return a.snapshot.contentHash < b.snapshot.contentHash ? -1 : 1;\n }\n return 0;\n })\n .slice(0, NOTABLE_MAX_WINDOWS);\n const lines = [\"## Notable\", \"\"];\n if (ranked.length === 0) {\n lines.push(\"_No notable text captured._\");\n return lines.join(\"\\n\");\n }\n for (const { snapshot } of ranked) {\n const excerpt = collapseWhitespace(snapshot.text).slice(0, NOTABLE_EXCERPT_CHARS);\n lines.push(`- **${snapshot.app}** — ${excerpt}`);\n }\n return lines.join(\"\\n\");\n}\n\nexport function composeActivityDigestBody(\n date: string,\n timezone: string,\n snapshots: ActivitySnapshot[],\n): string {\n assertValidTimezone(timezone);\n const ordered = sortedByTime(snapshots);\n const dwell = computeDwell(ordered);\n return [\n `# Activity — ${date}`,\n \"\",\n perAppSection(ordered, dwell),\n \"\",\n timelineSection(ordered, timezone),\n \"\",\n notableSection(ordered, dwell),\n \"\",\n ].join(\"\\n\");\n}\n\nexport function hashActivityBody(body: string): string {\n return createHash(\"sha256\").update(body, \"utf8\").digest(\"hex\");\n}\n\nexport function composeActivityDigestMeta(\n date: string,\n machines: string[],\n snapshots: ActivitySnapshot[],\n body: string,\n): ActivityDayMeta {\n const uniqueMachines = [...new Set(machines)].sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));\n return {\n kind: \"activity-digest\",\n date,\n machines: uniqueMachines,\n snapshotCount: snapshots.length,\n contentHash: hashActivityBody(body),\n formatVersion: ACTIVITY_DIGEST_FORMAT_VERSION,\n };\n}\n\nexport function serializeActivityDigest(meta: ActivityDayMeta, body: string): string {\n const frontmatter = [\n \"---\",\n `kind: ${meta.kind}`,\n `date: ${meta.date}`,\n `machines: ${JSON.stringify(meta.machines)}`,\n `snapshotCount: ${meta.snapshotCount}`,\n `contentHash: ${meta.contentHash}`,\n `formatVersion: ${meta.formatVersion}`,\n \"---\",\n \"\",\n ].join(\"\\n\");\n return `${frontmatter}${body}`;\n}\n\nexport function parseActivityDigest(raw: string): ActivityDayDigest | null {\n if (typeof raw !== \"string\" || !raw.startsWith(\"---\\n\")) return null;\n const end = raw.indexOf(\"\\n---\\n\", 4);\n if (end === -1) return null;\n const frontmatter = raw.slice(4, end);\n const body = raw.slice(end + 5).replace(/^\\n/, \"\");\n const fields = new Map<string, string>();\n for (const line of frontmatter.split(\"\\n\")) {\n const idx = line.indexOf(\":\");\n if (idx === -1) continue;\n fields.set(line.slice(0, idx).trim(), line.slice(idx + 1).trim());\n }\n const date = fields.get(\"date\");\n const contentHash = fields.get(\"contentHash\");\n if (date === undefined || !isValidActivityDate(date) || contentHash === undefined) return null;\n if (fields.get(\"kind\") !== \"activity-digest\") return null;\n const machines = parseMachinesList(fields.get(\"machines\") ?? \"[]\");\n const snapshotCount = parseNonNegativeInt(fields.get(\"snapshotCount\"));\n const formatVersion = parseNonNegativeInt(fields.get(\"formatVersion\"));\n if (snapshotCount === null || formatVersion === null) return null;\n return {\n meta: {\n kind: \"activity-digest\",\n date,\n machines,\n snapshotCount,\n contentHash,\n formatVersion,\n },\n body,\n };\n}\n\nfunction parseNonNegativeInt(value: string | undefined): number | null {\n if (value === undefined) return null;\n const trimmed = value.trim();\n if (!/^\\d+$/.test(trimmed)) return null;\n const parsed = Number(trimmed);\n return Number.isSafeInteger(parsed) ? parsed : null;\n}\n\nfunction parseMachinesList(raw: string): string[] {\n try {\n const parsed: unknown = JSON.parse(raw);\n if (Array.isArray(parsed)) {\n return parsed.filter((entry): entry is string => typeof entry === \"string\");\n }\n } catch {\n // Legacy unquoted inline form (`[a, b]`) — fall through to the split parse.\n }\n return raw\n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AAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,EACF;AACF;AAEA,SAAS,oBAAoB,OAA0C;AACrE,MAAI,UAAU,OAAW,QAAO;AAChC,QAAM,UAAU,MAAM,KAAK;AAC3B,MAAI,CAAC,QAAQ,KAAK,OAAO,EAAG,QAAO;AACnC,QAAM,SAAS,OAAO,OAAO;AAC7B,SAAO,OAAO,cAAc,MAAM,IAAI,SAAS;AACjD;AAEA,SAAS,kBAAkB,KAAuB;AAChD,MAAI;AACF,UAAM,SAAkB,KAAK,MAAM,GAAG;AACtC,QAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,aAAO,OAAO,OAAO,CAAC,UAA2B,OAAO,UAAU,QAAQ;AAAA,IAC5E;AAAA,EACF,QAAQ;AAAA,EAER;AACA,SAAO,IACJ,QAAQ,OAAO,EAAE,EACjB,QAAQ,OAAO,EAAE,EACjB,MAAM,GAAG,EACT,IAAI,CAAC,UAAU,MAAM,KAAK,CAAC,EAC3B,OAAO,CAAC,UAAU,MAAM,SAAS,CAAC;AACvC;","names":[]}
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
defineOperation,
|
|
34
34
|
parseNamespacePreflightWriteOp,
|
|
35
35
|
resolveAuthorizedNamespaceWritablePreflight
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7DUFJAOE.js";
|
|
37
37
|
import {
|
|
38
38
|
validateBriefingFormat
|
|
39
39
|
} from "./chunk-W64HKJJM.js";
|
|
@@ -543,4 +543,4 @@ defineOperation({ name: "graph_events", description: "SSE graph events.", schema
|
|
|
543
543
|
defineOperation({ name: "chat_message", description: "Chat message.", schema: strictSchema({ message: S.str, chatSessionId: S.str }), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
|
|
544
544
|
defineOperation({ name: "chat_events", description: "SSE chat events.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { stream: "sse" } }) });
|
|
545
545
|
defineOperation({ name: "adapters_status", description: "Adapter registry metadata (issue #1850 round 5). Marker op: the HTTP transport builds the response from its own adapterRegistry, but the op still must be registered so it appears in listRegisteredOperations and enforceTokenOp can gate it for scoped tokens.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
|
|
546
|
-
//# sourceMappingURL=chunk-
|
|
546
|
+
//# sourceMappingURL=chunk-SH2ZWEWB.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7DUFJAOE.js";
|
|
4
4
|
import {
|
|
5
5
|
EngramAccessInputError
|
|
6
6
|
} from "./chunk-2Z24E5W2.js";
|
|
@@ -21,4 +21,4 @@ async function respondBriefingHttp(options) {
|
|
|
21
21
|
export {
|
|
22
22
|
respondBriefingHttp
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-SMOFBBPU.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-62OKGIJA.js";
|
|
8
8
|
import {
|
|
9
9
|
parseActivityConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4UDQUPT5.js";
|
|
11
11
|
import {
|
|
12
12
|
parseLocationConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ROGRI25A.js";
|
|
14
14
|
import {
|
|
15
15
|
PRE_ACTION_GATE_DEFAULT_TIMEOUT_MS,
|
|
16
16
|
normalizeActionIntent,
|
|
@@ -4792,4 +4792,4 @@ export {
|
|
|
4792
4792
|
VALID_MEMORY_CATEGORIES,
|
|
4793
4793
|
parseConfig
|
|
4794
4794
|
};
|
|
4795
|
-
//# sourceMappingURL=chunk-
|
|
4795
|
+
//# sourceMappingURL=chunk-SQJ3SDIW.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SupportPassportError,
|
|
3
3
|
getOperation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7DUFJAOE.js";
|
|
5
5
|
import {
|
|
6
6
|
abortError,
|
|
7
7
|
isAbortError
|
|
@@ -499,4 +499,4 @@ export {
|
|
|
499
499
|
buildSupportPassportPublicRequestHandler,
|
|
500
500
|
composeSupportPassportExternalRequestHandlers
|
|
501
501
|
};
|
|
502
|
-
//# sourceMappingURL=chunk-
|
|
502
|
+
//# sourceMappingURL=chunk-T7CJQVRZ.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
serializeLocationDay,
|
|
24
24
|
updateLocationSourceDay,
|
|
25
25
|
writeLocationDay
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-FBMYGNOC.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveNamespaceCapabilities
|
|
29
29
|
} from "./chunk-JUOZ62Y7.js";
|
|
@@ -728,4 +728,4 @@ export {
|
|
|
728
728
|
runLocationBackfill,
|
|
729
729
|
runLocationCliCommand
|
|
730
730
|
};
|
|
731
|
-
//# sourceMappingURL=chunk-
|
|
731
|
+
//# sourceMappingURL=chunk-TEYN7ZYF.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-H3FZVNRN.js";
|
|
14
14
|
import {
|
|
15
15
|
ExtractionDeadlineError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RAVRDTP7.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvePrincipal
|
|
19
19
|
} from "./chunk-MRV7VSQK.js";
|
|
@@ -798,4 +798,4 @@ var SmartBuffer = class {
|
|
|
798
798
|
export {
|
|
799
799
|
SmartBuffer
|
|
800
800
|
};
|
|
801
|
-
//# sourceMappingURL=chunk-
|
|
801
|
+
//# sourceMappingURL=chunk-U34EHBPL.js.map
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
} from "./chunk-YBPYIAA5.js";
|
|
39
39
|
import {
|
|
40
40
|
parseConfig
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-SQJ3SDIW.js";
|
|
42
42
|
import {
|
|
43
43
|
readAggregateExtractionWatermark
|
|
44
44
|
} from "./chunk-PHNAB54Q.js";
|
|
@@ -1683,4 +1683,4 @@ export {
|
|
|
1683
1683
|
runBenchmarkRecall,
|
|
1684
1684
|
runOperatorRepair
|
|
1685
1685
|
};
|
|
1686
|
-
//# sourceMappingURL=chunk-
|
|
1686
|
+
//# sourceMappingURL=chunk-WHBVXTUI.js.map
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-666A3MOW.js";
|
|
10
10
|
import {
|
|
11
11
|
startLocationAutoSync
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RBGREYVJ.js";
|
|
13
13
|
import {
|
|
14
14
|
rebuildMemoryLifecycleLedger
|
|
15
15
|
} from "./chunk-I27RSQRR.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-YUMDFDUA.js";
|
|
23
23
|
import {
|
|
24
24
|
validateActivityBaseUrl
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4UDQUPT5.js";
|
|
26
26
|
import {
|
|
27
27
|
activityDateInTimezone,
|
|
28
28
|
activityDayWindow,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
composeActivityDigestMeta,
|
|
32
32
|
isValidActivityDate,
|
|
33
33
|
serializeActivityDigest
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-S7DPKM5W.js";
|
|
35
35
|
import {
|
|
36
36
|
STATE_FILE_MAX_DECRYPT_BYTES,
|
|
37
37
|
drainPendingLifecycleLedgerIfAny,
|
|
@@ -1729,4 +1729,4 @@ export {
|
|
|
1729
1729
|
ActivitySyncScheduler,
|
|
1730
1730
|
MaintenanceScheduler
|
|
1731
1731
|
};
|
|
1732
|
-
//# sourceMappingURL=chunk-
|
|
1732
|
+
//# sourceMappingURL=chunk-WJBZMNNS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SupportPassportCreateGrantRequestSchema,
|
|
3
3
|
defineOperation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7DUFJAOE.js";
|
|
5
5
|
import {
|
|
6
6
|
SupportPassportCardCategorySchema,
|
|
7
7
|
SupportPassportMemoryIdSchema,
|
|
@@ -220,4 +220,4 @@ var supportPassportGrantAskOperation = defineOperation({
|
|
|
220
220
|
result: await ctx.service.supportPassportAskGrant(grantId, secret, question, ctx.abortSignal)
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
|
-
//# sourceMappingURL=chunk-
|
|
223
|
+
//# sourceMappingURL=chunk-X74UAWSI.js.map
|
|
@@ -5,7 +5,7 @@ import { M as MemoryFile, m as MemoryFrontmatter, w as MemoryStatus, a9 as Behav
|
|
|
5
5
|
import { C as ConversationIndexCoordinator, T as TierMigrationCoordinator, O as Orchestrator } from './orchestrator-DgyvFfPR.js';
|
|
6
6
|
import { S as StorageManager } from './storage-BLJRnFi6.js';
|
|
7
7
|
import { TrustZoneDemoSeedResult, TrustZoneName, TrustZonePromotionResult, TrustZoneStoreStatus } from './trust-zones.js';
|
|
8
|
-
import { f as EngramAccessService } from './access-service-
|
|
8
|
+
import { f as EngramAccessService } from './access-service-DWdY9Mlk.js';
|
|
9
9
|
import { Writable, Readable } from 'node:stream';
|
|
10
10
|
import { ResolveSecretRefFn } from './resolve-auth-token.js';
|
|
11
11
|
import { CausalTrajectoryStoreStatus } from './causal-trajectory.js';
|
package/dist/cli.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import './types-YY-eKKU7.js';
|
|
|
5
5
|
import './orchestrator-DgyvFfPR.js';
|
|
6
6
|
import './storage-BLJRnFi6.js';
|
|
7
7
|
import './trust-zones.js';
|
|
8
|
-
export { c as AccessHttpServeCliCommandOptions, d as ArchiveObservationsCliCommandOptions, e as AuditMemoryCliCommandOptions, B as BulkImportCliCommandOptions, C as CliApi, g as CliCommand, h as CliProgram, i as CompatCliCommandOptions, j as ConnectorsRunCliOutputOptions, k as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, l as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, m as MemoryActionAuditCliNamespaceSummary, n as MemoryActionAuditCliReport, o as MemoryGovernanceCliCommandOptions, q as MemoryGovernanceReportCliCommandOptions, s as MemoryGovernanceRestoreCliCommandOptions, t as MemoryReviewDispositionCliCommandOptions, u as MemoryTimelineCliCommandOptions, v as MigrateCliOrchestrator, w as MigrateCliReport, x as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, y as PolicyDiffEntry, z as PolicyRollbackCliReport, F as PolicyStatusCliReport, H as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, I as RebuildMemoryProjectionCliCommandOptions, J as RebuildObservationsCliCommandOptions, K as RepairMemoryProjectionCliCommandOptions, L as ReplayCliCommandOptions, N as ReplayCliOrchestrator, O as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, Q as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, U as TailscaleSyncCliCommandOptions, V as TierMigrateCliAdapter, W as TierMigrateCoordinatorCliAdapter, X as TierMigrateLegacyCliAdapter, Y as TierStatusCliAdapter, Z as TierStatusCoordinatorCliAdapter, _ as TierStatusLegacyCliAdapter, $ as TrainingExportCliCommandOptions, a0 as VerifyMemoryProjectionCliCommandOptions, a1 as WebDavServeCliCommandOptions, a2 as WorkProjectCliCommandOptions, a3 as WorkTaskCliCommandOptions, a4 as emitConnectorsRunCliResult, a5 as filterNormalMemorySearchResults, a6 as hasDestructivePurgeFailures, a7 as isNormalRetrievalVisibleMemory, a8 as listMemoryMarkdownFilePaths, a9 as parseDurationToMs, aa as parseStrictCliDate, ab as planAggressiveDuplicateDeletions, ac as planExactDuplicateDeletions, ad as registerCli, ae as resolveAccessPrincipalOverride, af as resolveMemoryDirForNamespace, ag as runAbstractionNodeStatusCliCommand, ah as runAccessHttpServeCliCommand, ai as runAccessHttpStatusCliCommand, aj as runAccessHttpStopCliCommand, ak as runAccessMcpServeCliCommand, al as runArchiveObservationsCliCommand, r as runAuditMemoryCliCommand, am as runBenchmarkBaselineReportCliCommand, an as runBenchmarkBaselineSnapshotCliCommand, ao as runBenchmarkCiGateCliCommand, ap as runBenchmarkImportCliCommand, aq as runBenchmarkStatusCliCommand, ar as runBenchmarkStoredBaselineCiGateCliCommand, as as runBenchmarkValidateCliCommand, b as runBulkImportCliCommand, at as runCausalTrajectoryStatusCliCommand, au as runCommitmentLifecycleCliCommand, av as runCommitmentRecordCliCommand, aw as runCommitmentSetStateCliCommand, ax as runCommitmentStatusCliCommand, ay as runCompatCliCommand, az as runCompoundingPromoteCliCommand, aA as runConversationIndexHealthCliCommand, aB as runConversationIndexInspectCliCommand, aC as runConversationIndexRebuildCliCommand, aD as runCueAnchorStatusCliCommand, aE as runDashboardStartCliCommand, aF as runDashboardStatusCliCommand, aG as runDashboardStopCliCommand, aH as runGraphHealthCliCommand, aI as runHarmonicSearchCliCommand, aJ as runMemoryActionAuditCliCommand, aK as runMemoryGovernanceCliCommand, aL as runMemoryGovernanceReportCliCommand, aM as runMemoryGovernanceRestoreCliCommand, aN as runMemoryReviewDispositionCliCommand, aO as runMemoryTimelineCliCommand, aP as runMigrateNormalizeFrontmatterCliCommand, aQ as runMigrateObservationsCliCommand, aR as runMigrateRechunkCliCommand, aS as runMigrateReextractCliCommand, aT as runMigrateRescoreImportanceCliCommand, aU as runObjectiveStateStatusCliCommand, aV as runPolicyDiffCliCommand, aW as runPolicyRollbackCliCommand, aX as runPolicyStatusCliCommand, aY as runRebuildMemoryLifecycleLedgerCliCommand, aZ as runRebuildMemoryProjectionCliCommand, a_ as runRebuildObservationsCliCommand, a$ as runRepairMemoryProjectionCliCommand, b0 as runReplayCliCommand, b1 as runResumeBundleBuildCliCommand, b2 as runResumeBundleRecordCliCommand, b3 as runResumeBundleStatusCliCommand, b4 as runRouteCliCommand, b5 as runSemanticRulePromoteCliCommand, b6 as runSemanticRuleVerifyCliCommand, b7 as runSessionCheckCliCommand, b8 as runSessionRepairCliCommand, b9 as runTailscaleStatusCliCommand, ba as runTailscaleSyncCliCommand, bb as runTierMigrateCliCommand, bc as runTierStatusCliCommand, bd as runTrainingExportCliCommand, be as runTrustZoneDemoSeedCliCommand, bf as runTrustZonePromoteCliCommand, bg as runTrustZoneStatusCliCommand, bh as runUtilityLearningCliCommand, bi as runUtilityLearningStatusCliCommand, bj as runUtilityTelemetryRecordCliCommand, bk as runUtilityTelemetryStatusCliCommand, bl as runVerifiedRecallSearchCliCommand, bm as runVerifyMemoryProjectionCliCommand, bn as runWebDavServeCliCommand, bo as runWebDavStopCliCommand, bp as runWorkProductRecallSearchCliCommand, bq as runWorkProductRecordCliCommand, br as runWorkProductStatusCliCommand, bs as runWorkProjectCliCommand, bt as runWorkTaskCliCommand } from './cli-
|
|
9
|
-
import './access-service-
|
|
8
|
+
export { c as AccessHttpServeCliCommandOptions, d as ArchiveObservationsCliCommandOptions, e as AuditMemoryCliCommandOptions, B as BulkImportCliCommandOptions, C as CliApi, g as CliCommand, h as CliProgram, i as CompatCliCommandOptions, j as ConnectorsRunCliOutputOptions, k as ConversationIndexHealthCliOrchestrator, D as DashboardStartCliCommandOptions, l as DedupeCandidate, E as ExactDedupePlan, G as GraphHealthCliCommandOptions, M as MemoryActionAuditCliCommandOptions, m as MemoryActionAuditCliNamespaceSummary, n as MemoryActionAuditCliReport, o as MemoryGovernanceCliCommandOptions, q as MemoryGovernanceReportCliCommandOptions, s as MemoryGovernanceRestoreCliCommandOptions, t as MemoryReviewDispositionCliCommandOptions, u as MemoryTimelineCliCommandOptions, v as MigrateCliOrchestrator, w as MigrateCliReport, x as MigrateObservationsCliCommandOptions, P as PolicyDiffCliReport, y as PolicyDiffEntry, z as PolicyRollbackCliReport, F as PolicyStatusCliReport, H as PolicyTuningCliOrchestrator, R as RebuildMemoryLifecycleLedgerCliCommandOptions, I as RebuildMemoryProjectionCliCommandOptions, J as RebuildObservationsCliCommandOptions, K as RepairMemoryProjectionCliCommandOptions, L as ReplayCliCommandOptions, N as ReplayCliOrchestrator, O as RouteCliCommandOptions, S as SessionIntegrityCliCommandOptions, Q as SessionRepairCliCommandOptions, T as TailscaleStatusCliCommandOptions, U as TailscaleSyncCliCommandOptions, V as TierMigrateCliAdapter, W as TierMigrateCoordinatorCliAdapter, X as TierMigrateLegacyCliAdapter, Y as TierStatusCliAdapter, Z as TierStatusCoordinatorCliAdapter, _ as TierStatusLegacyCliAdapter, $ as TrainingExportCliCommandOptions, a0 as VerifyMemoryProjectionCliCommandOptions, a1 as WebDavServeCliCommandOptions, a2 as WorkProjectCliCommandOptions, a3 as WorkTaskCliCommandOptions, a4 as emitConnectorsRunCliResult, a5 as filterNormalMemorySearchResults, a6 as hasDestructivePurgeFailures, a7 as isNormalRetrievalVisibleMemory, a8 as listMemoryMarkdownFilePaths, a9 as parseDurationToMs, aa as parseStrictCliDate, ab as planAggressiveDuplicateDeletions, ac as planExactDuplicateDeletions, ad as registerCli, ae as resolveAccessPrincipalOverride, af as resolveMemoryDirForNamespace, ag as runAbstractionNodeStatusCliCommand, ah as runAccessHttpServeCliCommand, ai as runAccessHttpStatusCliCommand, aj as runAccessHttpStopCliCommand, ak as runAccessMcpServeCliCommand, al as runArchiveObservationsCliCommand, r as runAuditMemoryCliCommand, am as runBenchmarkBaselineReportCliCommand, an as runBenchmarkBaselineSnapshotCliCommand, ao as runBenchmarkCiGateCliCommand, ap as runBenchmarkImportCliCommand, aq as runBenchmarkStatusCliCommand, ar as runBenchmarkStoredBaselineCiGateCliCommand, as as runBenchmarkValidateCliCommand, b as runBulkImportCliCommand, at as runCausalTrajectoryStatusCliCommand, au as runCommitmentLifecycleCliCommand, av as runCommitmentRecordCliCommand, aw as runCommitmentSetStateCliCommand, ax as runCommitmentStatusCliCommand, ay as runCompatCliCommand, az as runCompoundingPromoteCliCommand, aA as runConversationIndexHealthCliCommand, aB as runConversationIndexInspectCliCommand, aC as runConversationIndexRebuildCliCommand, aD as runCueAnchorStatusCliCommand, aE as runDashboardStartCliCommand, aF as runDashboardStatusCliCommand, aG as runDashboardStopCliCommand, aH as runGraphHealthCliCommand, aI as runHarmonicSearchCliCommand, aJ as runMemoryActionAuditCliCommand, aK as runMemoryGovernanceCliCommand, aL as runMemoryGovernanceReportCliCommand, aM as runMemoryGovernanceRestoreCliCommand, aN as runMemoryReviewDispositionCliCommand, aO as runMemoryTimelineCliCommand, aP as runMigrateNormalizeFrontmatterCliCommand, aQ as runMigrateObservationsCliCommand, aR as runMigrateRechunkCliCommand, aS as runMigrateReextractCliCommand, aT as runMigrateRescoreImportanceCliCommand, aU as runObjectiveStateStatusCliCommand, aV as runPolicyDiffCliCommand, aW as runPolicyRollbackCliCommand, aX as runPolicyStatusCliCommand, aY as runRebuildMemoryLifecycleLedgerCliCommand, aZ as runRebuildMemoryProjectionCliCommand, a_ as runRebuildObservationsCliCommand, a$ as runRepairMemoryProjectionCliCommand, b0 as runReplayCliCommand, b1 as runResumeBundleBuildCliCommand, b2 as runResumeBundleRecordCliCommand, b3 as runResumeBundleStatusCliCommand, b4 as runRouteCliCommand, b5 as runSemanticRulePromoteCliCommand, b6 as runSemanticRuleVerifyCliCommand, b7 as runSessionCheckCliCommand, b8 as runSessionRepairCliCommand, b9 as runTailscaleStatusCliCommand, ba as runTailscaleSyncCliCommand, bb as runTierMigrateCliCommand, bc as runTierStatusCliCommand, bd as runTrainingExportCliCommand, be as runTrustZoneDemoSeedCliCommand, bf as runTrustZonePromoteCliCommand, bg as runTrustZoneStatusCliCommand, bh as runUtilityLearningCliCommand, bi as runUtilityLearningStatusCliCommand, bj as runUtilityTelemetryRecordCliCommand, bk as runUtilityTelemetryStatusCliCommand, bl as runVerifiedRecallSearchCliCommand, bm as runVerifyMemoryProjectionCliCommand, bn as runWebDavServeCliCommand, bo as runWebDavStopCliCommand, bp as runWorkProductRecallSearchCliCommand, bq as runWorkProductRecordCliCommand, br as runWorkProductStatusCliCommand, bs as runWorkProjectCliCommand, bt as runWorkTaskCliCommand } from './cli-DD0P-lu8.js';
|
|
9
|
+
import './access-service-DWdY9Mlk.js';
|
|
10
10
|
import 'node:stream';
|
|
11
11
|
import './resolve-auth-token.js';
|
|
12
12
|
import './causal-trajectory.js';
|
package/dist/cli.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
runWorkProductStatusCliCommand,
|
|
92
92
|
runWorkProjectCliCommand,
|
|
93
93
|
runWorkTaskCliCommand
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-5ABN4WVL.js";
|
|
95
95
|
import "./chunk-MMACM5G2.js";
|
|
96
96
|
import "./chunk-54BGIBCR.js";
|
|
97
97
|
import "./chunk-H4CKS5B2.js";
|
|
@@ -128,13 +128,13 @@ import "./chunk-HL4DB7TO.js";
|
|
|
128
128
|
import "./chunk-OJP3N7UK.js";
|
|
129
129
|
import "./chunk-RSVEP77Y.js";
|
|
130
130
|
import "./chunk-FGGYSN4P.js";
|
|
131
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-LWA7MDVO.js";
|
|
132
132
|
import "./chunk-G7NYVKD6.js";
|
|
133
133
|
import "./chunk-AM4T6CHX.js";
|
|
134
134
|
import "./chunk-S7T2TY65.js";
|
|
135
135
|
import "./chunk-3T74IZB3.js";
|
|
136
136
|
import "./chunk-2LA3H54D.js";
|
|
137
|
-
import "./chunk-
|
|
137
|
+
import "./chunk-WHBVXTUI.js";
|
|
138
138
|
import "./chunk-AOCP6JA7.js";
|
|
139
139
|
import "./chunk-KFY3SGN7.js";
|
|
140
140
|
import "./chunk-CMTINOFS.js";
|
|
@@ -160,11 +160,11 @@ import "./chunk-NHLLKEKK.js";
|
|
|
160
160
|
import "./chunk-B7RWBZXW.js";
|
|
161
161
|
import "./chunk-YBPYIAA5.js";
|
|
162
162
|
import "./chunk-6TBIWIAG.js";
|
|
163
|
-
import "./chunk-
|
|
163
|
+
import "./chunk-SQJ3SDIW.js";
|
|
164
164
|
import "./chunk-ZKOPY4WW.js";
|
|
165
165
|
import "./chunk-62OKGIJA.js";
|
|
166
|
-
import "./chunk-
|
|
167
|
-
import "./chunk-
|
|
166
|
+
import "./chunk-4UDQUPT5.js";
|
|
167
|
+
import "./chunk-ROGRI25A.js";
|
|
168
168
|
import "./chunk-Z3O53WZR.js";
|
|
169
169
|
import "./chunk-H3TKENU4.js";
|
|
170
170
|
import "./chunk-Z5LAYHGJ.js";
|
|
@@ -181,7 +181,7 @@ import "./chunk-C6FQJ52H.js";
|
|
|
181
181
|
import "./chunk-C6WMSXCJ.js";
|
|
182
182
|
import "./chunk-KFZY2OFH.js";
|
|
183
183
|
import "./chunk-B32WYRXX.js";
|
|
184
|
-
import "./chunk-
|
|
184
|
+
import "./chunk-IA2YSHTX.js";
|
|
185
185
|
import "./chunk-V7IZKJI3.js";
|
|
186
186
|
import "./chunk-SEDEKFYQ.js";
|
|
187
187
|
import "./chunk-AU7Q3LSC.js";
|
|
@@ -193,22 +193,22 @@ import "./chunk-RSUYKGGZ.js";
|
|
|
193
193
|
import "./chunk-7RXCMVFQ.js";
|
|
194
194
|
import "./chunk-3HSRWJTC.js";
|
|
195
195
|
import "./chunk-VZWXFXLX.js";
|
|
196
|
-
import "./chunk-
|
|
197
|
-
import "./chunk-
|
|
196
|
+
import "./chunk-PEOTOFH5.js";
|
|
197
|
+
import "./chunk-T7CJQVRZ.js";
|
|
198
198
|
import "./chunk-SRT6SHVZ.js";
|
|
199
|
-
import "./chunk-
|
|
199
|
+
import "./chunk-OXNU333D.js";
|
|
200
200
|
import "./chunk-EAARGPWI.js";
|
|
201
201
|
import "./chunk-A5KNZSNA.js";
|
|
202
202
|
import "./chunk-HUSTM6PU.js";
|
|
203
203
|
import "./chunk-D24OXEPB.js";
|
|
204
|
-
import "./chunk-
|
|
205
|
-
import "./chunk-
|
|
206
|
-
import "./chunk-
|
|
207
|
-
import "./chunk-
|
|
208
|
-
import "./chunk-
|
|
204
|
+
import "./chunk-OGELWNYC.js";
|
|
205
|
+
import "./chunk-QDY6KYTN.js";
|
|
206
|
+
import "./chunk-X74UAWSI.js";
|
|
207
|
+
import "./chunk-TEYN7ZYF.js";
|
|
208
|
+
import "./chunk-JDDXXZWW.js";
|
|
209
209
|
import "./chunk-7T4TOGMS.js";
|
|
210
210
|
import "./chunk-7YQ6ESEA.js";
|
|
211
|
-
import "./chunk-
|
|
211
|
+
import "./chunk-SH2ZWEWB.js";
|
|
212
212
|
import "./chunk-SCXURCVT.js";
|
|
213
213
|
import "./chunk-EQWEIIKQ.js";
|
|
214
214
|
import "./chunk-XOVKXJEP.js";
|
|
@@ -224,11 +224,11 @@ import "./chunk-MFJBANPX.js";
|
|
|
224
224
|
import "./chunk-565C6ZFO.js";
|
|
225
225
|
import "./chunk-AB3A7EFH.js";
|
|
226
226
|
import "./chunk-QVSRE355.js";
|
|
227
|
-
import "./chunk-
|
|
227
|
+
import "./chunk-SMOFBBPU.js";
|
|
228
228
|
import "./chunk-TIDEL77O.js";
|
|
229
229
|
import "./chunk-GZ3R6XOE.js";
|
|
230
|
-
import "./chunk-
|
|
231
|
-
import "./chunk-
|
|
230
|
+
import "./chunk-666OOKB7.js";
|
|
231
|
+
import "./chunk-7DUFJAOE.js";
|
|
232
232
|
import "./chunk-W4F3C7N7.js";
|
|
233
233
|
import "./chunk-MPC7TYTZ.js";
|
|
234
234
|
import "./chunk-ZHXSOMYH.js";
|
|
@@ -337,8 +337,8 @@ import "./chunk-R7QY5ZVB.js";
|
|
|
337
337
|
import "./chunk-5WITETWU.js";
|
|
338
338
|
import "./chunk-6CIAGZ6X.js";
|
|
339
339
|
import "./chunk-UBCBDJOB.js";
|
|
340
|
-
import "./chunk-
|
|
341
|
-
import "./chunk-
|
|
340
|
+
import "./chunk-RAVRDTP7.js";
|
|
341
|
+
import "./chunk-FBMYGNOC.js";
|
|
342
342
|
import "./chunk-CSAKJVXW.js";
|
|
343
343
|
import "./chunk-K2XUWZBM.js";
|
|
344
344
|
import "./chunk-OD4FM2U7.js";
|
|
@@ -370,7 +370,7 @@ import "./chunk-QDW3E4RD.js";
|
|
|
370
370
|
import "./chunk-B3O3IRZN.js";
|
|
371
371
|
import "./chunk-353KGBKY.js";
|
|
372
372
|
import "./chunk-ZIKENA2C.js";
|
|
373
|
-
import "./chunk-
|
|
373
|
+
import "./chunk-S7DPKM5W.js";
|
|
374
374
|
import "./chunk-VYCOJKSX.js";
|
|
375
375
|
import "./chunk-6Q3ZTEF6.js";
|
|
376
376
|
import "./chunk-W5BIQOAJ.js";
|
package/dist/config.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
isOpenaiApiKeyDisabled,
|
|
5
5
|
parseConfig,
|
|
6
6
|
resolveEnvVars
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SQJ3SDIW.js";
|
|
8
8
|
import "./chunk-ZKOPY4WW.js";
|
|
9
9
|
import "./chunk-62OKGIJA.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-4UDQUPT5.js";
|
|
11
|
+
import "./chunk-ROGRI25A.js";
|
|
12
12
|
import "./chunk-Z3O53WZR.js";
|
|
13
13
|
import "./chunk-H3TKENU4.js";
|
|
14
14
|
import "./chunk-Z5LAYHGJ.js";
|
|
@@ -38,7 +38,7 @@ import "./chunk-QDW3E4RD.js";
|
|
|
38
38
|
import "./chunk-B3O3IRZN.js";
|
|
39
39
|
import "./chunk-353KGBKY.js";
|
|
40
40
|
import "./chunk-ZIKENA2C.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-S7DPKM5W.js";
|
|
42
42
|
import "./chunk-VYCOJKSX.js";
|
|
43
43
|
import "./chunk-6Q3ZTEF6.js";
|
|
44
44
|
import "./chunk-YCVB7X56.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
-
import { f as EngramAccessService } from './access-service-
|
|
2
|
+
import { f as EngramAccessService } from './access-service-DWdY9Mlk.js';
|
|
3
3
|
import './types-YY-eKKU7.js';
|
|
4
4
|
import './message-parts/index.js';
|
|
5
5
|
import './bounded-jsonl-state.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BoundOperation } from './access-service-
|
|
1
|
+
import { B as BoundOperation } from './access-service-DWdY9Mlk.js';
|
|
2
2
|
import { ExternalWikiSearchResult, ExternalWikiSearchInput } from './external-wiki-search.js';
|
|
3
3
|
import './types-YY-eKKU7.js';
|
|
4
4
|
import './message-parts/index.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
externalWikiSearchOperation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JDDXXZWW.js";
|
|
4
4
|
import "./chunk-7T4TOGMS.js";
|
|
5
5
|
import "./chunk-7YQ6ESEA.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7DUFJAOE.js";
|
|
7
7
|
import "./chunk-W4F3C7N7.js";
|
|
8
8
|
import "./chunk-MPC7TYTZ.js";
|
|
9
9
|
import "./chunk-ZHXSOMYH.js";
|
|
@@ -112,8 +112,8 @@ import "./chunk-R7QY5ZVB.js";
|
|
|
112
112
|
import "./chunk-5WITETWU.js";
|
|
113
113
|
import "./chunk-6CIAGZ6X.js";
|
|
114
114
|
import "./chunk-UBCBDJOB.js";
|
|
115
|
-
import "./chunk-
|
|
116
|
-
import "./chunk-
|
|
115
|
+
import "./chunk-RAVRDTP7.js";
|
|
116
|
+
import "./chunk-FBMYGNOC.js";
|
|
117
117
|
import "./chunk-CSAKJVXW.js";
|
|
118
118
|
import "./chunk-K2XUWZBM.js";
|
|
119
119
|
import "./chunk-OD4FM2U7.js";
|
|
@@ -145,7 +145,7 @@ import "./chunk-QDW3E4RD.js";
|
|
|
145
145
|
import "./chunk-B3O3IRZN.js";
|
|
146
146
|
import "./chunk-353KGBKY.js";
|
|
147
147
|
import "./chunk-ZIKENA2C.js";
|
|
148
|
-
import "./chunk-
|
|
148
|
+
import "./chunk-S7DPKM5W.js";
|
|
149
149
|
import "./chunk-VYCOJKSX.js";
|
|
150
150
|
import "./chunk-6Q3ZTEF6.js";
|
|
151
151
|
import "./chunk-W5BIQOAJ.js";
|
package/dist/extraction.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ExtractionEngine,
|
|
3
3
|
shouldEnableLocalExtractionThinking
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ENMTJRXA.js";
|
|
5
|
+
import "./chunk-KLMESRPV.js";
|
|
6
6
|
import "./chunk-AJTG3CP7.js";
|
|
7
7
|
import "./chunk-54V4BZWP.js";
|
|
8
8
|
import "./chunk-2CGLBUW3.js";
|
|
@@ -73,8 +73,8 @@ import "./chunk-RBOJCG4T.js";
|
|
|
73
73
|
import "./chunk-R7QY5ZVB.js";
|
|
74
74
|
import "./chunk-5WITETWU.js";
|
|
75
75
|
import "./chunk-6CIAGZ6X.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
76
|
+
import "./chunk-RAVRDTP7.js";
|
|
77
|
+
import "./chunk-FBMYGNOC.js";
|
|
78
78
|
import "./chunk-CSAKJVXW.js";
|
|
79
79
|
import "./chunk-K2XUWZBM.js";
|
|
80
80
|
import "./chunk-OD4FM2U7.js";
|
|
@@ -98,7 +98,7 @@ import "./chunk-ZCUTSMR2.js";
|
|
|
98
98
|
import "./chunk-QDW3E4RD.js";
|
|
99
99
|
import "./chunk-353KGBKY.js";
|
|
100
100
|
import "./chunk-ZIKENA2C.js";
|
|
101
|
-
import "./chunk-
|
|
101
|
+
import "./chunk-S7DPKM5W.js";
|
|
102
102
|
import "./chunk-VYCOJKSX.js";
|
|
103
103
|
import "./chunk-6Q3ZTEF6.js";
|
|
104
104
|
import "./chunk-W5BIQOAJ.js";
|