@remnic/core 10.0.190 → 10.0.191
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.js +45 -44
- package/dist/access-cli.js +45 -44
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush-preempt.js +45 -44
- package/dist/access-extraction-force-flush.js +45 -44
- package/dist/access-http-briefing.js +45 -44
- package/dist/access-http-query.js +45 -44
- package/dist/access-http.js +45 -44
- package/dist/access-identity-continuity-surface.js +45 -44
- package/dist/access-lcm-surface.js +45 -44
- package/dist/access-mcp.js +45 -44
- package/dist/access-observe-write-surface.js +45 -44
- package/dist/access-operations-batch.js +45 -44
- package/dist/access-operations.js +45 -44
- package/dist/access-recall-concurrency.js +45 -44
- package/dist/access-recall-response.js +45 -44
- package/dist/access-recall-surface.js +45 -44
- package/dist/access-service.js +45 -44
- package/dist/active-recall.js +8 -8
- package/dist/admin/admin-surfaces.d.ts +11 -0
- package/dist/admin/admin-surfaces.d.ts.map +1 -1
- package/dist/admin/admin-surfaces.js +43 -0
- package/dist/admin/admin-surfaces.js.map +1 -0
- package/dist/briefing.js +9 -9
- package/dist/causal-consolidation.js +10 -10
- package/dist/{chunk-OA7YDB6A.js → chunk-2CWCJYT3.js} +2 -2
- package/dist/{chunk-C6Y2YHJL.js → chunk-2DFXIJPZ.js} +2 -2
- package/dist/{chunk-YVXR7CPS.js → chunk-2S6PPGIR.js} +2 -2
- package/dist/{chunk-RVODERA5.js → chunk-3XJITLZQ.js} +2 -2
- package/dist/{chunk-56BNHKZM.js → chunk-4SUNBSPD.js} +7 -7
- package/dist/{chunk-VQQZJ6KJ.js → chunk-6YAQ3AJ5.js} +3 -3
- package/dist/{chunk-K3JGILZC.js → chunk-7BIGO6ZL.js} +3 -3
- package/dist/{chunk-RPOG6HLI.js → chunk-7GMOB4FF.js} +2 -2
- package/dist/{chunk-CIAQK2OU.js → chunk-7MAMRCZ7.js} +2 -2
- package/dist/{chunk-ABPOW3SX.js → chunk-AIS7RLTG.js} +61 -464
- package/dist/chunk-AIS7RLTG.js.map +1 -0
- package/dist/{chunk-B7GZL7PR.js → chunk-ARD2TEY2.js} +4 -4
- package/dist/{chunk-X3ERYOLO.js → chunk-BZ5VO7KO.js} +2 -2
- package/dist/{chunk-ATPY63F5.js → chunk-C2UN2CY7.js} +2 -2
- package/dist/{chunk-QXHWOUS6.js → chunk-C6YKKH73.js} +3 -3
- package/dist/{chunk-2VNMSEZR.js → chunk-CJYVVVOG.js} +3 -3
- package/dist/{chunk-K6BS5RB4.js → chunk-CP6MUXNI.js} +2 -2
- package/dist/{chunk-2I3ETW3G.js → chunk-FFTGLWHI.js} +2 -2
- package/dist/{chunk-D3FP4JQI.js → chunk-FZPZML67.js} +2 -2
- package/dist/{chunk-XWPYK5T4.js → chunk-ICA5SCIT.js} +2 -2
- package/dist/{chunk-7X6EZ2QB.js → chunk-JGVW6F3Q.js} +3 -3
- package/dist/{chunk-6OHCNTKU.js → chunk-JIB3UUYV.js} +2 -2
- package/dist/{chunk-QGT5KNQT.js → chunk-JOR4Y326.js} +2 -2
- package/dist/{chunk-65DWWJKI.js → chunk-JQCEG54G.js} +2 -2
- package/dist/{chunk-TAPF7T26.js → chunk-NL5KFA5N.js} +2 -2
- package/dist/{chunk-PCGBESAN.js → chunk-NSFHMGOF.js} +2 -2
- package/dist/{chunk-ZG4GNPRE.js → chunk-PBE7NFB5.js} +5 -5
- package/dist/{chunk-H442UKDV.js → chunk-QTHFGP5F.js} +7 -7
- package/dist/{chunk-KVTUUU7H.js → chunk-RC2TVYY2.js} +2 -2
- package/dist/{chunk-AXSQGJSG.js → chunk-RQOUKIFS.js} +10 -10
- package/dist/{chunk-DLPS5YP3.js → chunk-TJV5HGSC.js} +4 -4
- package/dist/{chunk-6MDHK6NO.js → chunk-U6JZGQXC.js} +2 -2
- package/dist/{chunk-TQODBIMW.js → chunk-U6OQ7GWU.js} +2 -2
- package/dist/{chunk-A32EBVCZ.js → chunk-W7FZ7ZZE.js} +2 -2
- package/dist/{chunk-XQF2KLV5.js → chunk-X5XK6WWV.js} +2 -2
- package/dist/chunk-XC4PRJWM.js +593 -0
- package/dist/chunk-XC4PRJWM.js.map +1 -0
- package/dist/{chunk-GGQ3CJVH.js → chunk-YTT6XJNX.js} +4 -4
- package/dist/cli.js +45 -44
- package/dist/coding/export-okf-codegraph.js +8 -8
- package/dist/compounding/engine.js +10 -10
- package/dist/config.js +8 -8
- package/dist/connectors/codex-materialize-runner.js +9 -9
- package/dist/connectors/index.js +9 -9
- package/dist/convergence-refresh.js +11 -11
- package/dist/corpus-watermark.js +11 -11
- package/dist/entity-retrieval.js +9 -9
- package/dist/explicit-capture.js +45 -44
- package/dist/extraction.js +9 -9
- package/dist/harmonic-retrieval.js +9 -9
- package/dist/index.js +66 -65
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.js +5 -5
- package/dist/location/index.js +10 -10
- package/dist/maintenance/memory-governance.js +9 -9
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +9 -9
- package/dist/maintenance/rebuild-memory-projection-runner.js +11 -11
- package/dist/maintenance/rebuild-memory-projection.js +10 -10
- package/dist/namespaces/migrate.js +10 -10
- package/dist/namespaces/search.js +7 -7
- package/dist/namespaces/storage.js +9 -9
- package/dist/operator-doctor-corpus.js +12 -12
- package/dist/operator-toolkit.js +15 -15
- package/dist/orchestration/backlog-scheduler.js +46 -45
- package/dist/orchestration/backlog-scheduler.js.map +1 -1
- package/dist/orchestration/buffer-drain-runner.js +46 -45
- package/dist/orchestration/maintenance.js +17 -17
- package/dist/orchestrator.js +45 -44
- package/dist/recall-navigation.js +45 -44
- package/dist/resume-bundles.js +8 -8
- package/dist/search/factory.js +6 -6
- package/dist/search/index.js +11 -11
- package/dist/search/lancedb-backend.js +2 -2
- package/dist/search/meilisearch-backend.js +2 -2
- package/dist/search/orama-backend.js +2 -2
- package/dist/semantic-consolidation.js +10 -10
- package/dist/semantic-rule-promotion.js +9 -9
- package/dist/semantic-rule-verifier.js +9 -9
- package/dist/source-agent-qualifier.js +9 -9
- package/dist/standup/build.js +9 -9
- package/dist/storage.js +8 -8
- package/dist/transfer/export-okf.js +9 -9
- package/dist/verified-recall.js +9 -9
- package/dist/who-knows-cli.js +10 -10
- package/dist/who-knows.js +9 -9
- package/package.json +12 -2
- package/src/admin/admin-surfaces.test.ts +171 -0
- package/src/admin/admin-surfaces.ts +215 -2
- package/dist/chunk-ABPOW3SX.js.map +0 -1
- /package/dist/{chunk-OA7YDB6A.js.map → chunk-2CWCJYT3.js.map} +0 -0
- /package/dist/{chunk-C6Y2YHJL.js.map → chunk-2DFXIJPZ.js.map} +0 -0
- /package/dist/{chunk-YVXR7CPS.js.map → chunk-2S6PPGIR.js.map} +0 -0
- /package/dist/{chunk-RVODERA5.js.map → chunk-3XJITLZQ.js.map} +0 -0
- /package/dist/{chunk-56BNHKZM.js.map → chunk-4SUNBSPD.js.map} +0 -0
- /package/dist/{chunk-VQQZJ6KJ.js.map → chunk-6YAQ3AJ5.js.map} +0 -0
- /package/dist/{chunk-K3JGILZC.js.map → chunk-7BIGO6ZL.js.map} +0 -0
- /package/dist/{chunk-RPOG6HLI.js.map → chunk-7GMOB4FF.js.map} +0 -0
- /package/dist/{chunk-CIAQK2OU.js.map → chunk-7MAMRCZ7.js.map} +0 -0
- /package/dist/{chunk-B7GZL7PR.js.map → chunk-ARD2TEY2.js.map} +0 -0
- /package/dist/{chunk-X3ERYOLO.js.map → chunk-BZ5VO7KO.js.map} +0 -0
- /package/dist/{chunk-ATPY63F5.js.map → chunk-C2UN2CY7.js.map} +0 -0
- /package/dist/{chunk-QXHWOUS6.js.map → chunk-C6YKKH73.js.map} +0 -0
- /package/dist/{chunk-2VNMSEZR.js.map → chunk-CJYVVVOG.js.map} +0 -0
- /package/dist/{chunk-K6BS5RB4.js.map → chunk-CP6MUXNI.js.map} +0 -0
- /package/dist/{chunk-2I3ETW3G.js.map → chunk-FFTGLWHI.js.map} +0 -0
- /package/dist/{chunk-D3FP4JQI.js.map → chunk-FZPZML67.js.map} +0 -0
- /package/dist/{chunk-XWPYK5T4.js.map → chunk-ICA5SCIT.js.map} +0 -0
- /package/dist/{chunk-7X6EZ2QB.js.map → chunk-JGVW6F3Q.js.map} +0 -0
- /package/dist/{chunk-6OHCNTKU.js.map → chunk-JIB3UUYV.js.map} +0 -0
- /package/dist/{chunk-QGT5KNQT.js.map → chunk-JOR4Y326.js.map} +0 -0
- /package/dist/{chunk-65DWWJKI.js.map → chunk-JQCEG54G.js.map} +0 -0
- /package/dist/{chunk-TAPF7T26.js.map → chunk-NL5KFA5N.js.map} +0 -0
- /package/dist/{chunk-PCGBESAN.js.map → chunk-NSFHMGOF.js.map} +0 -0
- /package/dist/{chunk-ZG4GNPRE.js.map → chunk-PBE7NFB5.js.map} +0 -0
- /package/dist/{chunk-H442UKDV.js.map → chunk-QTHFGP5F.js.map} +0 -0
- /package/dist/{chunk-KVTUUU7H.js.map → chunk-RC2TVYY2.js.map} +0 -0
- /package/dist/{chunk-AXSQGJSG.js.map → chunk-RQOUKIFS.js.map} +0 -0
- /package/dist/{chunk-DLPS5YP3.js.map → chunk-TJV5HGSC.js.map} +0 -0
- /package/dist/{chunk-6MDHK6NO.js.map → chunk-U6JZGQXC.js.map} +0 -0
- /package/dist/{chunk-TQODBIMW.js.map → chunk-U6OQ7GWU.js.map} +0 -0
- /package/dist/{chunk-A32EBVCZ.js.map → chunk-W7FZ7ZZE.js.map} +0 -0
- /package/dist/{chunk-XQF2KLV5.js.map → chunk-X5XK6WWV.js.map} +0 -0
- /package/dist/{chunk-GGQ3CJVH.js.map → chunk-YTT6XJNX.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/admin/admin-surfaces.ts"],"sourcesContent":["/**\n * Admin console surfaces (issue #1502).\n *\n * Pure delegation functions that read from the SAME core APIs the runtime\n * uses — `resolveScopePlan` (issue #1521), `NamespaceCatalog` (#1499),\n * `NamespaceSearchRouter` health, the session-transcript migration planner\n * (#1496), and `StorageManager` writes. The admin HTTP layer and the static\n * console shell call these; they NEVER re-resolve scope, re-derive promotion\n * targets, or re-implement namespace listing. That is the #1492/#1494\n * invariant: the dashboard is not a second source of truth for namespace\n * authorization or scope resolution.\n *\n * Security contract (issue #1502 \"Security and Privacy Requirements\"):\n * - every list/inspection surface redacts fields that may carry credentials\n * (`redactSensitive` strips bearer-token-shaped strings);\n * - promotion requires a non-empty reason and authorizes the target through\n * `canWriteNamespace` (or the scope-profile promotion resolution) before\n * any write;\n * - transcript audit is dry-run only — the destructive apply path lives in\n * the CLI migration command, not here.\n *\n * Chokepoints used: ScopePlan resolver (#1521), NamespaceCatalog (#1499),\n * NamespaceSearchRouter health. No new scope-resolution or namespace-listing\n * logic is introduced.\n */\nimport { resolveNamespaceCapabilities } from \"../capabilities.js\";\nimport path from \"node:path\";\nimport type { NamespaceCatalog, NamespaceRecord } from \"../namespaces/catalog.js\";\nimport { canReadNamespace, canWriteNamespace } from \"../namespaces/principal.js\";\nimport type { ResolvedScopeProfilePlan } from \"../namespaces/scope-profiles.js\";\nimport { type ScopePlan, resolveScopePlan } from \"../scopes/scope-plan.js\";\nimport { type SessionMigrationPlan, planSessionTranscriptMigration } from \"../session-transcript-migration.js\";\nimport type { CodingContext, MemoryCategory, MemoryFrontmatter, PluginConfig } from \"../types.js\";\n\n// ---------------------------------------------------------------------------\n// Shared redaction\n// ---------------------------------------------------------------------------\n\n/**\n * Marker substituted for any string value that looks like a credential.\n * The dashboard must never echo back a bearer token, API key, or password\n * that an operator may have pasted into a namespace alias / note field.\n */\nexport const REDACTED = \"<redacted>\";\n\nconst SENSITIVE_KEY_SOURCE = \"(?:token|secret|password|api[_-]?key|bearer|authorization|credential|private[_-]?key)\";\nconst SENSITIVE_KEY_RE = new RegExp(SENSITIVE_KEY_SOURCE, \"i\");\nconst BEARER_VALUE_RE = /^(bearer|sk-|pk-|xox[bp]-|AKIA)/i;\nconst LONG_OPAQUE_RE = /^[A-Za-z0-9_\\-]{32,}$/;\n\n/**\n * Diagnostic keys whose name collides with the sensitive-key regex (e.g.\n * `identityToken` contains \"token\") but are NOT credentials. `identityToken`\n * is the deterministic namespace storage-path hash (`ns-<hex>`); operators\n * need it for routing diagnostics and it is derived from the namespace name,\n * never from a secret. Listed keys skip the sensitive-key redaction branch;\n * the bearer-value and long-opaque checks below still apply.\n */\nconst SAFE_DIAGNOSTIC_KEYS = new Set([\"identityToken\"]);\n\n/**\n * Walk a parsed JSON value and replace credential-shaped values in place.\n * The check is conservative on purpose — values that LOOK like a long opaque\n * secret OR sit under a sensitive key are redacted. Namespace identity tokens\n * (16-hex `storagePathHash` outputs) are explicitly NOT redacted: operators\n * need them for storage diagnostics and they are derived from the namespace\n * name, not credentials.\n */\nexport function redactSensitive<T>(value: T): T {\n return walkRedact(value, undefined) as T;\n}\n\nfunction walkRedact(value: unknown, key: string | undefined): unknown {\n if (typeof value === \"string\") {\n if (\n key &&\n SENSITIVE_KEY_RE.test(key) &&\n !SAFE_DIAGNOSTIC_KEYS.has(key)\n ) {\n return REDACTED;\n }\n if (BEARER_VALUE_RE.test(value)) return REDACTED;\n if (!(key && SAFE_DIAGNOSTIC_KEYS.has(key)) && LONG_OPAQUE_RE.test(value) && value.length >= 40 && !/^[0-9a-f]{16}$/.test(value)) {\n return REDACTED;\n }\n return value;\n }\n if (Array.isArray(value)) {\n return value.map((entry) => walkRedact(entry, undefined));\n }\n // value is `object` here (Array branch handled above). Object.entries accepts\n // a plain object; the explicit record type documents the iteration contract.\n if (value && typeof value === \"object\") {\n const record = value as Record<string, unknown>;\n const out: Record<string, unknown> = {};\n for (const [k, v] of Object.entries(record)) {\n // A sensitive name redacts the COMPLETE value regardless of type: arrays\n // and objects under e.g. `apiKeys` / `credentials` carry credentials just\n // as strings do (recursing dropped the key and leaked short members).\n out[k] = SENSITIVE_KEY_RE.test(k) && !SAFE_DIAGNOSTIC_KEYS.has(k) ? REDACTED : walkRedact(v, k);\n }\n return out;\n }\n return value;\n}\n\n/**\n * Remove `/* *\\/` and `//` comments outside JSON strings and drop trailing\n * commas, so JSONC-style configs can take the structured redaction path\n * (JSON.parse rejects both). A trailing comma is a comma whose next\n * non-whitespace character is a closing `}` or `]`. Unterminated constructs\n * truncate the remainder, keeping the conservative regex fallback in charge.\n * Linear scan: tracks string state with escape handling, so comments and\n * commas inside string values (e.g. URLs) are never touched.\n */\nfunction stripJsonComments(text: string): string {\n let out = \"\";\n let inString = false;\n for (let i = 0; i < text.length; i += 1) {\n const ch = text[i];\n if (inString) {\n out += ch;\n if (ch === \"\\\\\" && i + 1 < text.length) {\n out += text[i + 1];\n i += 1;\n } else if (ch === '\"') {\n inString = false;\n }\n continue;\n }\n if (ch === '\"') {\n inString = true;\n out += ch;\n continue;\n }\n if (ch === \"/\" && text[i + 1] === \"*\") {\n const end = text.indexOf(\"*/\", i + 2);\n if (end === -1) break;\n i = end + 1;\n continue;\n }\n if (ch === \"/\" && text[i + 1] === \"/\") {\n const end = text.indexOf(\"\\n\", i + 2);\n if (end === -1) break;\n i = end;\n continue;\n }\n if (ch === \",\") {\n let j = i + 1;\n while (j < text.length && (text[j] === \" \" || text[j] === \"\\t\" || text[j] === \"\\n\" || text[j] === \"\\r\")) j += 1;\n if (text[j] === \"}\" || text[j] === \"]\") continue;\n out += ch;\n continue;\n }\n out += ch;\n }\n return out;\n}\n\n/**\n * Redact a raw config-file text dump for display (COS-825). Parses JSON and\n * walks it with `redactSensitive`, so nested credentials (e.g. replica peer\n * tokens) get the same key/value rules the admin surfaces use. JSONC-style\n * comments are stripped first (outside strings), so files humans edit by hand\n * still take the structured path. Files that still do not parse keep their\n * comment-stripped text under a conservative regex: every\n * `\"<sensitive-key>\": \"<value>\"` pair at any depth has its value replaced\n * with the redaction marker.\n */\nexport function redactConfigText(raw: string): string {\n const withoutComments = stripJsonComments(raw);\n try {\n const parsed: unknown = JSON.parse(withoutComments);\n return JSON.stringify(redactSensitive(parsed), null, 2);\n } catch {\n return redactFallbackPairs(withoutComments);\n }\n}\n\n/**\n * Last-resort redaction for text JSON.parse still refuses (real syntax\n * errors): walk the text linearly, decode each property name\n * (`\"auth\\u0054oken\"` names `authToken`), and replace the whole string value\n * of a sensitive property with the redaction marker. Unterminated string\n * values under a sensitive property are cut at end of line. Non-string\n * values stay visible: anything JSONC-tolerant already took the structured\n * path above, so this only sees genuinely broken files. Scanner, not regex —\n * the pair shape is unbounded and check:regex-safety rejects such patterns.\n */\nfunction redactFallbackPairs(text: string): string {\n const out: string[] = [];\n const n = text.length;\n let i = 0;\n while (i < n) {\n if (text[i] !== '\"') {\n out.push(text[i]);\n i += 1;\n continue;\n }\n const keyStart = i;\n const keyEnd = scanJsonString(text, i);\n if (keyEnd === -1) {\n out.push(text.slice(i));\n break;\n }\n if (text[keyEnd] !== '\"') {\n // A raw CR/LF cut the key: the fragment cannot pair safely, and the\n // following line's leading quote would open a phantom string that\n // detaches later credentials from their pairs. Drop through the end of\n // that line instead of exposing them.\n const nl = text.indexOf(\"\\n\", keyEnd);\n out.push(text.slice(i, keyEnd));\n i = nl === -1 ? n : nl + 1;\n continue;\n }\n let k = skipJsonWhitespace(text, keyEnd + 1);\n if (text[k] !== \":\") {\n // Orphan string (no colon follows): pairing in this broken text is not\n // trustworthy, so suppress through the rest of the line instead of\n // risking a later credential pairing past its key.\n out.push(text.slice(i, keyEnd + 1));\n const nl = text.indexOf(\"\\n\", keyEnd + 1);\n i = nl === -1 ? n : nl + 1;\n continue;\n }\n k = skipJsonWhitespace(text, k + 1);\n out.push(text.slice(i, k));\n i = k;\n const decodedKey = decodeJsonKeyName(text.slice(keyStart + 1, keyEnd));\n if (text[i] !== '\"') {\n // Non-string value: `{` / `[` are transparent — pairs nested inside are\n // processed by the main loop, so sensitive keys never hide under a\n // non-sensitive parent. Scalars stop at the next quote so a missing\n // comma never swallows a following property (old regex redacted those).\n // Anything JSONC-tolerant already took the structured path above.\n if (text[i] === \"{\" || text[i] === \"[\") {\n out.push(text[i]);\n i += 1;\n continue;\n }\n const valueEnd = scanToValueEnd(text, i);\n out.push(text.slice(i, valueEnd));\n i = valueEnd;\n continue;\n }\n const valueEnd = scanJsonString(text, i);\n if (valueEnd === -1) {\n // Unterminated at EOF under a sensitive key: nothing after is\n // trustworthy, redact to end of input.\n if (SENSITIVE_KEY_RE.test(decodedKey)) {\n out.push(REDACTED);\n i = n;\n } else {\n const stop = text.indexOf(\"\\n\", i);\n const stopAt = stop === -1 ? n : stop + 1;\n out.push(text.slice(i, stopAt));\n i = stopAt;\n }\n continue;\n }\n if (SENSITIVE_KEY_RE.test(decodedKey)) {\n out.push(REDACTED);\n // A raw CR/LF ended the string: the credential spans a broken line and\n // its real end is unknowable, so redact everything after it too.\n if (text[valueEnd] !== '\"') {\n i = n;\n } else {\n i = valueEnd + 1;\n }\n } else {\n out.push(text.slice(i, valueEnd + 1));\n i = valueEnd + 1;\n }\n }\n return out.join(\"\");\n}\n\n/** Index just past the JSON string opening at `start`, or -1 if unterminated. Raw CR/LF terminate the scan (invalid JSON recovery). */\nfunction scanJsonString(text: string, start: number): number {\n let i = start + 1;\n const n = text.length;\n while (i < n) {\n const ch = text[i];\n if (ch === \"\\\\\") {\n i += 2;\n continue;\n }\n if (ch === '\"' || ch === \"\\n\" || ch === \"\\r\") return i;\n i += 1;\n }\n return -1;\n}\n\nfunction skipJsonWhitespace(text: string, start: number): number {\n let i = start;\n while (i < text.length && (text[i] === \" \" || text[i] === \"\\t\" || text[i] === \"\\n\" || text[i] === \"\\r\")) i += 1;\n return i;\n}\n\nfunction scanToValueEnd(text: string, start: number): number {\n let i = start;\n while (i < text.length && text[i] !== \",\" && text[i] !== \"}\" && text[i] !== \"]\" && text[i] !== \"\\n\" && text[i] !== '\"') i += 1;\n return i;\n}\n\nfunction decodeJsonKeyName(rawKey: string): string {\n try {\n // SAFETY: JSON.parse of a double-quoted string literal always yields a\n // string; malformed escapes throw and the raw key is used instead.\n return JSON.parse(`\"${rawKey}\"`) as string;\n } catch {\n return rawKey;\n }\n}\n\n// ---------------------------------------------------------------------------\n// Effective scope inspector\n// ---------------------------------------------------------------------------\n\n/**\n * One layer's contribution to the effective scope, with a human-readable\n * reason it was included or skipped. Mirrors the layer set surfaced by the\n * scope-profile plan plus the coding overlay and explicit override.\n */\nexport interface ScopeInspectionLayer {\n /** Layer id — `userProject` / `teamProject` / `userGlobal` / `serverShared` / `coding` / `explicit` / `self`. */\n id: string;\n /** Resolved namespace for the layer, when applicable. */\n namespace?: string;\n /** Whether the layer is in the active read set. */\n readable: boolean;\n /** Whether the layer is the effective write target. */\n writable: boolean;\n /** Whether the layer is an authorized promotion target. */\n promotable: boolean;\n /** Human-readable explanation — used verbatim by the console \"why\" column. */\n reason: string;\n}\n\n/** Promotion target resolved against policy + scope profile. */\nexport interface ScopeInspectionPromotionTarget {\n target: string;\n namespace?: string;\n authorized: boolean;\n reason: string;\n}\n\n/** Output of {@link inspectScope}. */\nexport interface ScopeInspection {\n /** Resolved principal (or `undefined` in single-user mode). */\n principal: string | undefined;\n /** Explicit namespace override, when readable. */\n namespaceOverride: string | undefined;\n /** Effective write namespace. */\n writeNamespace: string;\n /** Read namespaces in the order recall searches them. */\n readNamespaces: string[];\n /** Coding overlay details (branch → project → root fallbacks). */\n codingOverlay: { namespace: string; readFallbacks: readonly string[] } | null;\n /** Active scope profile id, if any. */\n scopeProfileId: string | null;\n /** Per-layer explanations. */\n layers: ScopeInspectionLayer[];\n /** Promotion targets available for this session/principal. */\n promotionTargets: ScopeInspectionPromotionTarget[];\n /** Operator warnings (missing project, disabled scope, auth failures, …). */\n warnings: string[];\n /**\n * Frozen copy of the {@link ScopePlan} the runtime resolver produced. The\n * dashboard MUST display this verbatim — never a re-derived copy — so the\n * \"scope inspector returns the same plan as runtime resolver\" acceptance\n * test (issue #1502) holds by construction.\n */\n plan: ScopePlan;\n}\n\n/** Operation type the caller intends to inspect (informational only). */\nexport type ScopeInspectionOperation = \"recall\" | \"observe\" | \"memory_store\" | \"maintenance\" | \"dashboard\";\n\n/** Inputs for {@link inspectScope}. */\nexport interface InspectScopeOptions {\n readonly config: PluginConfig;\n readonly sessionKey?: string;\n readonly namespace?: string;\n readonly principalOverride?: string;\n readonly codingContext?: CodingContext | null;\n readonly operation?: ScopeInspectionOperation;\n /**\n * Whether namespace routing is enabled. Callers that already resolved the\n * flag (e.g. the access-service layer, threading it through the shared\n * scope-plan chokepoint) pass it here so this pure helper does not need to\n * re-read the namespace gate. Defaults to reading the config flag when\n * omitted so direct callers (tests, CLI) keep working.\n */\n readonly namespacesEnabled?: boolean;\n}\n\n/**\n * Resolve an effective scope inspection by delegating to the runtime\n * {@link resolveScopePlan} resolver and decorating its result with the\n * per-layer explanations the console renders. Pure — no side effects.\n */\nexport function inspectScope(options: InspectScopeOptions): ScopeInspection {\n const { config } = options;\n // Honour the pre-read flag when the caller supplied one (avoids a scattered\n // read here); fall back to the config flag for direct callers (tests/CLI).\n const namespacesEnabled = options.namespacesEnabled ?? resolveNamespaceCapabilities(config).namespaces === true;\n\n const plan = resolveScopePlan({\n config,\n sessionKey: options.sessionKey,\n namespace: options.namespace,\n principalOverride: options.principalOverride,\n codingContext: options.codingContext ?? null,\n namespacesEnabled,\n });\n\n const warnings: string[] = [];\n if (namespacesEnabled && !plan.principal) {\n warnings.push(\"namespace routing is enabled but no principal resolved for this session key\");\n }\n if (config.codingMode?.projectScope && namespacesEnabled && options.codingContext && !plan.codingOverlay) {\n warnings.push(\"coding project scope is enabled but the overlay was suppressed by an explicit namespace override\");\n }\n if (options.namespace && options.namespace.trim().length > 0 && !plan.namespaceOverride) {\n warnings.push(\n `requested namespace override '${options.namespace}' is not readable by this principal and was ignored`\n );\n }\n // Issue #1658 thread 6: when an explicit namespace override is readable but\n // NOT writable, it still becomes the effective write namespace (baseNamespace\n // in the scope plan). Surface the mismatch honestly so the operator knows\n // writes will be rejected rather than reading writeNamespace as a usable\n // target. (The per-layer writable flag already records this, but the\n // top-level writeNamespace field does not.)\n if (plan.namespaceOverride && !canWriteNamespace(plan.principal, plan.namespaceOverride, config)) {\n warnings.push(\n `explicit namespace override '${plan.namespaceOverride}' is readable but not writable by this principal; it is the effective write namespace but writes will be rejected`\n );\n }\n\n const layers: ScopeInspectionLayer[] = [];\n const scopeProfilePlan = plan.scopeProfilePlan;\n if (scopeProfilePlan) {\n for (const layer of scopeProfilePlan.layers) {\n layers.push({\n id: layer.id,\n namespace: layer.namespace,\n readable: layer.readable,\n writable: layer.writable,\n promotable: layer.promotable,\n reason: layer.reason,\n });\n }\n for (const target of scopeProfilePlan.promotionTargets) {\n if (!layers.some((layer) => layer.id === target.target)) {\n layers.push({\n id: target.target,\n namespace: target.namespace,\n readable: false,\n writable: false,\n promotable: target.authorized,\n reason: target.reason,\n });\n }\n }\n } else {\n // Non-profile scope: synthesize a self layer + optional coding + override.\n layers.push({\n id: \"self\",\n namespace: plan.baseNamespace,\n readable: canReadNamespace(plan.principal, plan.baseNamespace, config),\n writable: canWriteNamespace(plan.principal, plan.baseNamespace, config),\n promotable: false,\n reason: \"principal self namespace (no scope profile active)\",\n });\n }\n if (plan.codingOverlay) {\n layers.push({\n id: \"coding\",\n namespace: plan.codingOverlay.namespace,\n readable: true,\n writable: true,\n promotable: false,\n reason: \"coding overlay namespace combined with the principal base (rule 42)\",\n });\n }\n if (plan.namespaceOverride) {\n layers.push({\n id: \"explicit\",\n namespace: plan.namespaceOverride,\n readable: true,\n writable: canWriteNamespace(plan.principal, plan.namespaceOverride, config),\n promotable: false,\n reason: \"explicit namespace override authorized for this principal\",\n });\n }\n\n const promotionTargets: ScopeInspectionPromotionTarget[] = scopeProfilePlan\n ? scopeProfilePlan.promotionTargets.map((target) => ({\n target: target.target,\n namespace: target.namespace,\n authorized: target.authorized,\n reason: target.reason,\n }))\n : [];\n\n for (const warning of scopeProfilePlan?.warnings ?? []) {\n warnings.push(warning);\n }\n\n return {\n principal: plan.principal,\n namespaceOverride: plan.namespaceOverride,\n writeNamespace: plan.baseNamespace,\n readNamespaces: [...plan.readNamespaces],\n codingOverlay: plan.codingOverlay\n ? {\n namespace: plan.codingOverlay.namespace,\n readFallbacks: plan.codingOverlay.readFallbacks,\n }\n : null,\n scopeProfileId: scopeProfilePlan?.profileId ?? null,\n layers,\n promotionTargets,\n warnings,\n plan,\n };\n}\n\n// ---------------------------------------------------------------------------\n// Namespace browser\n// ---------------------------------------------------------------------------\n\n/** Filters the namespace browser accepts (superset of {@link NamespaceCatalogFilter}). */\nexport interface AdminNamespaceFilter {\n kind?: NamespaceRecord[\"kind\"];\n discoveredBy?: NamespaceRecord[\"discoveredBy\"];\n /** Only namespaces with a write at/after this instant. */\n writtenSince?: Date;\n /** Only namespaces whose last write is older than this instant (stale). */\n staleBefore?: Date;\n}\n\n/** One namespace row augmented with the operator-facing diagnostics the issue lists. */\nexport interface AdminNamespaceEntry {\n namespace: string;\n identityToken: string;\n kind: NamespaceRecord[\"kind\"];\n createdAt: string;\n lastReadAt?: string;\n lastWriteAt?: string;\n lastMaintenanceAt?: Record<string, string>;\n storageDir: string;\n discoveredBy: NamespaceRecord[\"discoveredBy\"];\n /** True when last write is older than `staleThresholdDays` (or never written). */\n stale: boolean;\n}\n\n/** Output of {@link listAdminNamespaces}. */\nexport interface AdminNamespaceList {\n /** Whether the namespace catalog is enabled. `false` collapses the list. */\n enabled: boolean;\n entries: AdminNamespaceEntry[];\n}\n\n/** Inputs for {@link listAdminNamespaces}. */\nexport interface ListAdminNamespacesOptions {\n readonly catalog: NamespaceCatalog;\n readonly filter?: AdminNamespaceFilter;\n /** A namespace whose last write is older than this many days is \"stale\". */\n readonly staleThresholdDays?: number;\n}\n\n/**\n * List configured + discovered namespaces from the catalog, applying the\n * admin filters the console exposes. Delegates to {@link NamespaceCatalog}\n * — never re-scans disk.\n */\nexport async function listAdminNamespaces(options: ListAdminNamespacesOptions): Promise<AdminNamespaceList> {\n const { catalog, filter } = options;\n if (!catalog.enabled) {\n return { enabled: false, entries: [] };\n }\n const staleMs = (options.staleThresholdDays ?? 30) * 24 * 60 * 60 * 1000;\n const staleBefore = new Date(Date.now() - staleMs);\n\n const records = await catalog.listNamespaces({\n kind: filter?.kind,\n discoveredBy: filter?.discoveredBy,\n writtenSince: filter?.writtenSince,\n });\n\n let entries: AdminNamespaceEntry[] = records.map((record) => toAdminEntry(record, staleBefore));\n\n if (filter?.staleBefore) {\n const cutoff = filter.staleBefore.getTime();\n entries = entries.filter((entry) => {\n if (!entry.lastWriteAt) return true;\n const ms = Date.parse(entry.lastWriteAt);\n return Number.isFinite(ms) && ms <= cutoff;\n });\n }\n\n return { enabled: true, entries };\n}\n\nfunction toAdminEntry(record: NamespaceRecord, staleBefore: Date): AdminNamespaceEntry {\n const lastWriteMs = record.lastWriteAt ? Date.parse(record.lastWriteAt) : Number.NaN;\n const stale = !Number.isFinite(lastWriteMs) || lastWriteMs < staleBefore.getTime();\n return {\n namespace: record.namespace,\n identityToken: record.identityToken,\n kind: record.kind,\n createdAt: record.createdAt,\n lastReadAt: record.lastReadAt,\n lastWriteAt: record.lastWriteAt,\n lastMaintenanceAt: record.lastMaintenanceAt,\n storageDir: record.storageDir,\n discoveredBy: record.discoveredBy,\n stale,\n };\n}\n\n// ---------------------------------------------------------------------------\n// Maintenance and QMD health\n// ---------------------------------------------------------------------------\n\n/**\n * Honest, distinguishable classification of a namespace's QMD/search health\n * (issue #1658 thread 1). A single `qmdDegraded` bit collapses the legitimate\n * transient \"unknown\" (QMD reachable but collection status not yet populated,\n * normal during startup/reindex) together with the actionable \"missing\"\n * (collection not built — operator must act) and \"unavailable\" (backend down).\n * Surfacing a classified state lets the dashboard render each case honestly\n * instead of a flat degraded flag or a silent blank.\n */\nexport type AdminNamespaceQmdState =\n /** Backend reachable and collection present (or intentionally skipped). */\n | \"healthy\"\n /** Backend reachable but collection status not yet determined (transient). */\n | \"unknown\"\n /** Backend reachable but the collection is not built for this namespace. */\n | \"missing\"\n /** Backend unreachable / probe threw. */\n | \"unavailable\"\n /** No QMD probe was run for this report (provider omitted or returned null). */\n | \"not_probed\";\n\n/** QMD/search health snapshot for one namespace (delegated to NamespaceSearchRouter). */\nexport interface AdminNamespaceQmdHealth {\n namespace: string;\n collection: string;\n available: boolean;\n collectionState: string;\n debugStatus: string;\n installedVersion: string | null;\n supportedVersion: string | null;\n supported: boolean | null;\n upgradeAvailable: boolean | null;\n daemonMode: boolean | null;\n}\n\n/** Maintenance + QMD health for one namespace. */\nexport interface AdminNamespaceHealth {\n namespace: string;\n kind?: NamespaceRecord[\"kind\"];\n lastMaintenanceAt?: Record<string, string>;\n /** True when no maintenance has ever been recorded. */\n maintenanceMissing: boolean;\n /**\n * True when QMD is unavailable OR its collection is missing/unknown for this\n * namespace. Matches the NamespaceSearchRouter health path so the aggregate\n * `degradedMode` flag stays consistent with runtime alerting.\n */\n qmdDegraded: boolean;\n /**\n * Honest, distinguishable QMD state (issue #1658 thread 1). Complements\n * `qmdDegraded` so the dashboard can render \"unknown\" (transient) separately\n * from \"missing\"/\"unavailable\" (action needed) instead of a flat bit.\n */\n qmdState: AdminNamespaceQmdState;\n /** Human-readable explanation of {@link qmdState}, safe to show operators. */\n qmdStateReason: string;\n qmd?: AdminNamespaceQmdHealth;\n /** Reason the QMD probe failed, when it did. */\n qmdError?: string;\n}\n\n/** Output of {@link gatherMaintenanceHealth}. */\nexport interface MaintenanceHealthReport {\n /** Whether the catalog is enabled. */\n enabled: boolean;\n /** Aggregate degraded-mode flag — true when ANY namespace is QMD-degraded. */\n degradedMode: boolean;\n perNamespace: AdminNamespaceHealth[];\n}\n\n/**\n * Injected per-namespace QMD health probe. Implementations call\n * `orchestrator.searchHealthForNamespace(namespace)` — the admin module\n * stays free of orchestrator/state coupling.\n */\nexport type NamespaceQmdHealthProvider = (namespace: string) => Promise<AdminNamespaceQmdHealth | null>;\n\n/** Inputs for {@link gatherMaintenanceHealth}. */\nexport interface MaintenanceHealthOptions {\n readonly catalog: NamespaceCatalog;\n /** When omitted, QMD columns stay empty (catalog-only report). */\n readonly qmdHealthProvider?: NamespaceQmdHealthProvider;\n}\n\n/**\n * Build a per-namespace maintenance + QMD health report. Reads maintenance\n * timestamps from the catalog and (optionally) QMD diagnostics from the\n * injected provider.\n */\n/**\n * Classify a QMD health snapshot into an honest, distinguishable state bucket\n * (issue #1658 thread 1). The `degraded` bit mirrors the NamespaceSearchRouter\n * health path (unavailable / missing / unknown) so the aggregate `degradedMode`\n * flag and any downstream alerting stay consistent; the classified `state` +\n * `reason` let the dashboard render each case distinctly instead of a flat bit.\n */\nfunction classifyQmdState(qmd: AdminNamespaceQmdHealth): {\n state: AdminNamespaceQmdState;\n reason: string;\n degraded: boolean;\n} {\n if (!qmd.available) {\n return {\n state: \"unavailable\",\n reason: \"QMD backend is unavailable for this namespace\",\n degraded: true,\n };\n }\n // collectionState is the router's string (\"present\" | \"missing\" | \"unknown\"\n // | \"skipped\"); classify defensively — an unrecognized value is reported as\n // \"unknown\" rather than silently treated as healthy.\n switch (qmd.collectionState) {\n case \"present\":\n return { state: \"healthy\", reason: \"QMD collection is ready\", degraded: false };\n case \"skipped\":\n // \"skipped\" means QMD is intentionally disabled for this namespace; it is\n // neither degraded nor a blank — surface it honestly as healthy/idle.\n return {\n state: \"healthy\",\n reason: \"QMD is skipped for this namespace (intentionally disabled)\",\n degraded: false,\n };\n case \"missing\":\n return {\n state: \"missing\",\n reason: \"QMD collection is not built for this namespace — add the collection to the QMD index\",\n degraded: true,\n };\n case \"unknown\":\n return {\n state: \"unknown\",\n reason: \"QMD collection status could not be determined (transient during startup/reindex)\",\n degraded: true,\n };\n default:\n // Preserve the ORIGINAL qmdDegraded invariant exactly: an available\n // backend with an unrecognized collectionState was NOT degraded before\n // this PR (the pre-image only flagged missing/unknown/unavailable). We\n // still surface the unrecognized value HONESTLY via state/reason so the\n // dashboard can render it, but we do not flip the degraded bit — that\n // would change alerting and contradict the \"unchanged semantics\" claim.\n return {\n state: \"unknown\",\n reason: `QMD reported an unrecognized collection state '${qmd.collectionState}'`,\n degraded: false,\n };\n }\n}\n\nexport async function gatherMaintenanceHealth(options: MaintenanceHealthOptions): Promise<MaintenanceHealthReport> {\n const { catalog, qmdHealthProvider } = options;\n if (!catalog.enabled) {\n return { enabled: false, degradedMode: false, perNamespace: [] };\n }\n const records = await catalog.listNamespaces();\n let degradedMode = false;\n const perNamespace: AdminNamespaceHealth[] = await Promise.all(\n records.map(async (record): Promise<AdminNamespaceHealth> => {\n const entry: AdminNamespaceHealth = {\n namespace: record.namespace,\n kind: record.kind,\n lastMaintenanceAt: record.lastMaintenanceAt,\n maintenanceMissing: !record.lastMaintenanceAt || Object.keys(record.lastMaintenanceAt).length === 0,\n qmdDegraded: false,\n qmdState: \"not_probed\",\n qmdStateReason: \"QMD health probe not run for this report\",\n };\n if (qmdHealthProvider) {\n try {\n const qmd = await qmdHealthProvider(record.namespace);\n if (qmd) {\n entry.qmd = qmd;\n // Classify the collection state into an honest, distinguishable\n // bucket (issue #1658 thread 1) and derive the degraded bit from\n // the same inputs the NamespaceSearchRouter health path uses.\n const classified = classifyQmdState(qmd);\n entry.qmdState = classified.state;\n entry.qmdStateReason = classified.reason;\n entry.qmdDegraded = classified.degraded;\n } else {\n entry.qmdState = \"not_probed\";\n entry.qmdStateReason = \"QMD health not available for this namespace\";\n }\n } catch (err) {\n // Sanitize: never echo raw error messages to the dashboard. The\n // generic diagnostic is sufficient for operators; the full error\n // is logged by the qmdHealthProvider's caller (access-service).\n entry.qmdDegraded = true;\n entry.qmdState = \"unavailable\";\n entry.qmdStateReason = \"QMD health probe failed\";\n entry.qmdError = \"QMD health probe failed\";\n }\n }\n if (entry.qmdDegraded) degradedMode = true;\n return entry;\n })\n );\n return { enabled: true, degradedMode, perNamespace };\n}\n\n// ---------------------------------------------------------------------------\n// Transcript / session audit\n// ---------------------------------------------------------------------------\n\n/** One file the dry-run migration planner would re-home. */\nexport interface TranscriptAuditFile {\n sourceRelPath: string;\n fileName: string;\n distinctSessions: number;\n movedEntries: number;\n unmovableLines: number;\n}\n\n/** Output of {@link auditTranscripts}. */\nexport interface TranscriptAuditReport {\n /** Generated timestamp (ISO). */\n generatedAt: string;\n /** Always true — the admin surface is dry-run only. */\n dryRun: true;\n /** Absolute transcripts directory scanned. */\n transcriptsDir: string;\n /** True when any legacy fallback file (e.g. `other/default`) holds mixed sessions. */\n mixedOtherDefault: boolean;\n /** Distinct sessions the planner would re-home. */\n distinctSessions: number;\n /** Total JSONL entries that would move. */\n movedEntries: number;\n /** Per-file plans with at least one entry to move. */\n files: TranscriptAuditFile[];\n /** Operator-facing summary of the risk. */\n summary: string;\n}\n\n/**\n * Run a dry-run transcript/session audit. Delegates to\n * {@link planSessionTranscriptMigration} with `apply: false` — the admin\n * surface never applies a destructive migration. The CLI owns the apply\n * path with its confirmation flow.\n */\nexport async function auditTranscripts(memoryDir: string): Promise<TranscriptAuditReport> {\n const plan: SessionMigrationPlan = await planSessionTranscriptMigration({\n memoryDir,\n apply: false,\n });\n const files: TranscriptAuditFile[] = plan.files.map((file) => ({\n sourceRelPath: file.sourceRelPath,\n fileName: file.fileName,\n distinctSessions: file.groups.length,\n movedEntries: file.groups.reduce((sum, group) => sum + group.entryCount, 0),\n unmovableLines: file.unmovableLines,\n }));\n const mixedOtherDefault = files.some((file) => file.sourceRelPath.split(path.sep).includes(\"other\"));\n const summary =\n plan.movedEntries === 0\n ? \"No mixed-session transcript data detected; nothing to migrate.\"\n : `Found ${plan.movedEntries} entries across ${plan.distinctSessions} distinct sessions stranded in shared/legacy directories. Run the CLI migration command to re-home them.`;\n return {\n generatedAt: plan.generatedAt,\n dryRun: true,\n transcriptsDir: plan.transcriptsDir,\n mixedOtherDefault,\n distinctSessions: plan.distinctSessions,\n movedEntries: plan.movedEntries,\n files,\n summary,\n };\n}\n\n// ---------------------------------------------------------------------------\n// Memory promotion (manual, reason-required, policy-enforced)\n// ---------------------------------------------------------------------------\n\n/** Promotion target kind the console can request. */\nexport type MemoryPromotionTargetKind = \"teamProject\" | \"serverShared\" | \"userProject\" | \"userGlobal\" | \"explicit\";\n\n/** Result of one promotion attempt. */\nexport interface MemoryPromotionTargetResult {\n target: MemoryPromotionTargetKind;\n namespace: string;\n authorized: boolean;\n promoted: boolean;\n promotedMemoryId?: string;\n reason: string;\n}\n\n/** Output of {@link promoteMemory}. */\nexport interface MemoryPromotionResult {\n /** Whether the caller-supplied reason was accepted. */\n ok: boolean;\n /** Source memory id. */\n sourceMemoryId: string;\n /** Source namespace the memory was read from. */\n sourceNamespace: string;\n /** Per-target outcomes. Empty when authorization fails up front. */\n targets: MemoryPromotionTargetResult[];\n /** Audit record — caller appends to the access audit log. */\n audit: MemoryPromotionAudit;\n}\n\n/** Audit trail for a promotion operation. */\nexport interface MemoryPromotionAudit {\n at: string;\n actor: string;\n sourceMemoryId: string;\n sourceNamespace: string;\n reason: string;\n targets: Array<{ target: MemoryPromotionTargetKind; namespace: string; promoted: boolean }>;\n}\n\n/** Error thrown when a required promotion field is missing or unauthorized. */\nexport class AdminPromotionError extends Error {\n readonly code: string;\n constructor(code: string, message: string) {\n super(message);\n this.name = \"AdminPromotionError\";\n this.code = code;\n }\n}\n\n/**\n * Storage accessor injected by the service layer. Keeps the admin module\n * decoupled from `StorageManager` and the orchestrator's storage router.\n */\nexport interface PromotionStorageProvider {\n /** Read a memory from the source namespace. Returns null when missing. */\n readMemory(\n namespace: string,\n memoryId: string\n ): Promise<{\n category: MemoryCategory;\n content: string;\n frontmatter: MemoryFrontmatter;\n } | null>;\n /** Write a promoted memory into the target namespace. Returns the new id. */\n writePromotedMemory(\n namespace: string,\n memory: {\n category: MemoryCategory;\n content: string;\n confidence: number;\n tags: string[];\n entityRef?: string;\n sourceMemoryId: string;\n sourceNamespace: string;\n reason: string;\n actor: string;\n validAt?: string;\n /**\n * Lineage persisted onto the promoted memory's frontmatter. Always\n * `[sourceMemoryId]` so a downstream reader can trace a promotion\n * back to its origin (matches the runtime extraction pipeline).\n */\n lineage: string[];\n sourceConnector?: string;\n toolScoped?: true;\n }\n ): Promise<string>;\n}\n\n/** Inputs for {@link promoteMemory}. */\nexport interface PromoteMemoryOptions {\n readonly config: PluginConfig;\n readonly sourceMemoryId: string;\n /** Source namespace (resolved through the readable resolver BEFORE this call). */\n readonly sourceNamespace: string;\n /** Authenticated principal driving the promotion. */\n readonly principal?: string;\n /** Requested targets. */\n readonly targets: ReadonlyArray<{\n kind: MemoryPromotionTargetKind;\n /** Required when kind === \"explicit\". Must be writable by the principal. */\n namespace?: string;\n }>;\n /** Non-empty operator reason (audit-logged). */\n readonly reason: string;\n /** Operator identity for the audit trail. */\n readonly actor: string;\n readonly storage: PromotionStorageProvider;\n /** Optional scope-profile plan, used to resolve teamProject/userProject/serverShared targets. */\n readonly scopeProfilePlan?: ResolvedScopeProfilePlan | null;\n}\n\n/**\n * Manually promote a memory into one or more authorized targets. Reuses the\n * same `canWriteNamespace` gate and scope-profile promotion resolution that\n * the runtime extraction pipeline uses — there is no dashboard-only write\n * path. Requires a non-empty reason; throws {@link AdminPromotionError}\n * (`reason_required`) otherwise.\n */\nexport async function promoteMemory(options: PromoteMemoryOptions): Promise<MemoryPromotionResult> {\n const reason = options.reason.trim();\n if (reason.length === 0) {\n throw new AdminPromotionError(\"reason_required\", \"promotion requires a non-empty reason\");\n }\n if (options.targets.length === 0) {\n throw new AdminPromotionError(\"targets_required\", \"promotion requires at least one target\");\n }\n const { config, principal, scopeProfilePlan } = options;\n\n // Resolve each requested target to a concrete namespace + authorization flag.\n const resolvedTargets: MemoryPromotionTargetResult[] = options.targets.map((requested) => {\n if (requested.kind === \"explicit\") {\n const namespace = requested.namespace?.trim();\n if (!namespace) {\n return {\n target: requested.kind,\n namespace: \"\",\n authorized: false,\n promoted: false,\n reason: \"explicit promotion requires a namespace\",\n };\n }\n const authorized = canWriteNamespace(principal, namespace, config);\n return {\n target: requested.kind,\n namespace,\n authorized,\n promoted: false,\n reason: authorized\n ? \"explicit namespace writable by this principal\"\n : \"explicit namespace is not writable by this principal\",\n };\n }\n if (!scopeProfilePlan) {\n // Issue #1658 thread 2: distinguish \"no active scope profile\" from\n // \"profile does not configure this target\". A project-scoped target\n // (userProject/teamProject) cannot resolve without an active profile +\n // coding context; report that honestly instead of a generic \"not\n // configured\" message that implies a profile is active.\n return {\n target: requested.kind,\n namespace: \"\",\n authorized: false,\n promoted: false,\n reason:\n requested.kind === \"userProject\" || requested.kind === \"teamProject\"\n ? `no active scope profile; '${requested.kind}' promotion requires an active scope profile with a coding context (pass a sessionKey)`\n : `no active scope profile; '${requested.kind}' promotion requires an active scope profile`,\n };\n }\n const layer = scopeProfilePlan.promotionTargets.find((t) => t.target === requested.kind);\n if (!layer) {\n return {\n target: requested.kind,\n namespace: \"\",\n authorized: false,\n promoted: false,\n reason: `promotion target '${requested.kind}' is not configured on the active scope profile`,\n };\n }\n return {\n target: requested.kind,\n namespace: layer.namespace ?? \"\",\n authorized: layer.authorized && Boolean(layer.namespace),\n promoted: false,\n reason: layer.reason,\n };\n });\n\n const sourceMemory = await options.storage.readMemory(options.sourceNamespace, options.sourceMemoryId);\n if (!sourceMemory) {\n throw new AdminPromotionError(\n \"source_not_found\",\n `source memory ${options.sourceMemoryId} not found in namespace ${options.sourceNamespace}`\n );\n }\n\n const auditTargets: MemoryPromotionAudit[\"targets\"] = [];\n for (const target of resolvedTargets) {\n if (!target.authorized || !target.namespace) {\n auditTargets.push({ target: target.target, namespace: target.namespace, promoted: false });\n continue;\n }\n if (target.namespace === options.sourceNamespace) {\n target.reason = \"target namespace equals source namespace; nothing to promote\";\n auditTargets.push({ target: target.target, namespace: target.namespace, promoted: false });\n continue;\n }\n try {\n const promotedId = await options.storage.writePromotedMemory(target.namespace, {\n category: sourceMemory.category,\n content: sourceMemory.content,\n confidence: sourceMemory.frontmatter.confidence ?? 0.5,\n tags: [...(sourceMemory.frontmatter.tags ?? []), `admin-promotion-${target.target}`],\n entityRef: sourceMemory.frontmatter.entityRef,\n sourceMemoryId: options.sourceMemoryId,\n sourceNamespace: options.sourceNamespace,\n reason,\n actor: options.actor,\n validAt: sourceMemory.frontmatter.valid_at,\n lineage: [options.sourceMemoryId],\n ...(sourceMemory.frontmatter.sourceConnector ? { sourceConnector: sourceMemory.frontmatter.sourceConnector } : {}),\n ...(sourceMemory.frontmatter.toolScoped ? { toolScoped: true as const } : {}),\n });\n target.promoted = true;\n target.promotedMemoryId = promotedId;\n auditTargets.push({ target: target.target, namespace: target.namespace, promoted: true });\n } catch (err) {\n // Sanitize: never echo raw error messages in the promotion result.\n // The operator sees a generic failure indicator; the full error is\n // logged server-side by the storage provider.\n target.reason = \"promotion write failed\";\n auditTargets.push({ target: target.target, namespace: target.namespace, promoted: false });\n }\n }\n\n const at = new Date().toISOString();\n const audit: MemoryPromotionAudit = {\n at,\n actor: options.actor,\n sourceMemoryId: options.sourceMemoryId,\n sourceNamespace: options.sourceNamespace,\n reason,\n targets: auditTargets,\n };\n\n return {\n ok: resolvedTargets.some((t) => t.promoted),\n sourceMemoryId: options.sourceMemoryId,\n sourceNamespace: options.sourceNamespace,\n targets: resolvedTargets,\n audit,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;AA0BA,OAAO,UAAU;AAiBV,IAAM,WAAW;AAExB,IAAM,uBAAuB;AAC7B,IAAM,mBAAmB,IAAI,OAAO,sBAAsB,GAAG;AAC7D,IAAM,kBAAkB;AACxB,IAAM,iBAAiB;AAUvB,IAAM,uBAAuB,oBAAI,IAAI,CAAC,eAAe,CAAC;AAU/C,SAAS,gBAAmB,OAAa;AAC9C,SAAO,WAAW,OAAO,MAAS;AACpC;AAEA,SAAS,WAAW,OAAgB,KAAkC;AACpE,MAAI,OAAO,UAAU,UAAU;AAC7B,QACE,OACA,iBAAiB,KAAK,GAAG,KACzB,CAAC,qBAAqB,IAAI,GAAG,GAC7B;AACA,aAAO;AAAA,IACT;AACA,QAAI,gBAAgB,KAAK,KAAK,EAAG,QAAO;AACxC,QAAI,EAAE,OAAO,qBAAqB,IAAI,GAAG,MAAM,eAAe,KAAK,KAAK,KAAK,MAAM,UAAU,MAAM,CAAC,iBAAiB,KAAK,KAAK,GAAG;AA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C1F,SAAS,KAAK;AAIZ,aAAO,SAAS;AAChB,mBAAa,KAAK,EAAE,QAAQ,OAAO,QAAQ,WAAW,OAAO,WAAW,UAAU,MAAM,CAAC;AAAA,IAC3F;AAAA,EACF;AAEA,QAAM,MAAK,oBAAI,KAAK,GAAE,YAAY;AAClC,QAAM,QAA8B;AAAA,IAClC;AAAA,IACA,OAAO,QAAQ;AAAA,IACf,gBAAgB,QAAQ;AAAA,IACxB,iBAAiB,QAAQ;AAAA,IACzB;AAAA,IACA,SAAS;AAAA,EACX;AAEA,SAAO;AAAA,IACL,IAAI,gBAAgB,KAAK,CAAC,MAAM,EAAE,QAAQ;AAAA,IAC1C,gBAAgB,QAAQ;AAAA,IACxB,iBAAiB,QAAQ;AAAA,IACzB,SAAS;AAAA,IACT;AAAA,EACF;AACF;","names":["valueEnd"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
scanMemoryDir
|
|
3
|
-
} from "./chunk-WNEVEMJ3.js";
|
|
4
1
|
import {
|
|
5
2
|
isSearchAborted,
|
|
6
3
|
throwIfSearchAborted
|
|
7
4
|
} from "./chunk-Y5NLBXPV.js";
|
|
5
|
+
import {
|
|
6
|
+
scanMemoryDir
|
|
7
|
+
} from "./chunk-WNEVEMJ3.js";
|
|
8
8
|
import {
|
|
9
9
|
reportSearchDegradation,
|
|
10
10
|
resolveEnsureCollectionArgs
|
|
@@ -274,4 +274,4 @@ function isMeilisearchIndexNotFoundError(err) {
|
|
|
274
274
|
export {
|
|
275
275
|
MeilisearchBackend
|
|
276
276
|
};
|
|
277
|
-
//# sourceMappingURL=chunk-
|
|
277
|
+
//# sourceMappingURL=chunk-YTT6XJNX.js.map
|
package/dist/cli.js
CHANGED
|
@@ -91,17 +91,18 @@ import {
|
|
|
91
91
|
runWorkProductStatusCliCommand,
|
|
92
92
|
runWorkProjectCliCommand,
|
|
93
93
|
runWorkTaskCliCommand
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-AIS7RLTG.js";
|
|
95
95
|
import "./chunk-GOZXQNIM.js";
|
|
96
96
|
import "./chunk-PQM3B54K.js";
|
|
97
97
|
import "./chunk-7KTORRIK.js";
|
|
98
|
+
import "./chunk-MMACM5G2.js";
|
|
98
99
|
import "./chunk-54BGIBCR.js";
|
|
99
100
|
import "./chunk-H4CKS5B2.js";
|
|
101
|
+
import "./chunk-FXZTL7F7.js";
|
|
100
102
|
import "./chunk-W4F3C7N7.js";
|
|
101
103
|
import "./chunk-MPC7TYTZ.js";
|
|
102
|
-
import "./chunk-
|
|
103
|
-
import "./chunk-
|
|
104
|
-
import "./chunk-TAPF7T26.js";
|
|
104
|
+
import "./chunk-UP6MOYCB.js";
|
|
105
|
+
import "./chunk-NL5KFA5N.js";
|
|
105
106
|
import "./chunk-BV2TIZ4F.js";
|
|
106
107
|
import "./chunk-W5LJ3SJ7.js";
|
|
107
108
|
import "./chunk-PYHOAXTI.js";
|
|
@@ -113,46 +114,46 @@ import "./chunk-2NLLXCJG.js";
|
|
|
113
114
|
import "./chunk-765K3SAT.js";
|
|
114
115
|
import "./chunk-V5W67PQV.js";
|
|
115
116
|
import "./chunk-QV2VZKD5.js";
|
|
116
|
-
import "./chunk-UP6MOYCB.js";
|
|
117
117
|
import "./chunk-IFBSZGW3.js";
|
|
118
|
-
import "./chunk-
|
|
118
|
+
import "./chunk-U6OQ7GWU.js";
|
|
119
119
|
import "./chunk-NKHRIDYP.js";
|
|
120
120
|
import "./chunk-TBUEE7XF.js";
|
|
121
121
|
import "./chunk-5OBYISRA.js";
|
|
122
|
-
import "./chunk-
|
|
122
|
+
import "./chunk-QTHFGP5F.js";
|
|
123
123
|
import "./chunk-WTXUUZYI.js";
|
|
124
124
|
import "./chunk-IMA4DJ7K.js";
|
|
125
125
|
import "./chunk-FGDKJJZS.js";
|
|
126
126
|
import "./chunk-AJVLDJU6.js";
|
|
127
|
+
import "./chunk-VZAKYDMJ.js";
|
|
127
128
|
import "./chunk-SZDLX763.js";
|
|
128
129
|
import "./chunk-PYIFUBRK.js";
|
|
129
130
|
import "./chunk-6PEEZSGL.js";
|
|
130
|
-
import "./chunk-
|
|
131
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-NSFHMGOF.js";
|
|
132
|
+
import "./chunk-3XJITLZQ.js";
|
|
132
133
|
import "./chunk-2X4WP4GD.js";
|
|
133
134
|
import "./chunk-QO5WYRK2.js";
|
|
134
|
-
import "./chunk-
|
|
135
|
-
import "./chunk-QXHWOUS6.js";
|
|
135
|
+
import "./chunk-C6YKKH73.js";
|
|
136
136
|
import "./chunk-SBQOBY3S.js";
|
|
137
137
|
import "./chunk-666A3MOW.js";
|
|
138
|
+
import "./chunk-RZN4LQ5Y.js";
|
|
138
139
|
import "./chunk-VDC6RZI4.js";
|
|
139
140
|
import "./chunk-UWK5OXUJ.js";
|
|
140
|
-
import "./chunk-
|
|
141
|
+
import "./chunk-PBE7NFB5.js";
|
|
142
|
+
import "./chunk-DDA47TES.js";
|
|
141
143
|
import "./chunk-AQNHEDXP.js";
|
|
142
144
|
import "./chunk-SDL22RRW.js";
|
|
143
145
|
import "./chunk-7N4KAIGN.js";
|
|
144
146
|
import "./chunk-QNN4FYBD.js";
|
|
145
147
|
import "./chunk-UXPUUL3G.js";
|
|
146
|
-
import "./chunk-
|
|
148
|
+
import "./chunk-V5OCT34X.js";
|
|
149
|
+
import "./chunk-KNYUEYB6.js";
|
|
147
150
|
import "./chunk-TECVW3JP.js";
|
|
148
151
|
import "./chunk-C5JF6EZ7.js";
|
|
149
152
|
import "./chunk-KBL3JJR6.js";
|
|
150
|
-
import "./chunk-
|
|
151
|
-
import "./chunk-K3JGILZC.js";
|
|
153
|
+
import "./chunk-7BIGO6ZL.js";
|
|
152
154
|
import "./chunk-DPPIBEGC.js";
|
|
153
155
|
import "./chunk-VOVSZYCP.js";
|
|
154
|
-
import "./chunk-
|
|
155
|
-
import "./chunk-KNYUEYB6.js";
|
|
156
|
+
import "./chunk-XC4PRJWM.js";
|
|
156
157
|
import "./chunk-4P4GF76E.js";
|
|
157
158
|
import "./chunk-NOUJNHWG.js";
|
|
158
159
|
import "./chunk-JJ42IDJU.js";
|
|
@@ -167,15 +168,15 @@ import "./chunk-ZTJPFACY.js";
|
|
|
167
168
|
import "./chunk-HCAGBFE7.js";
|
|
168
169
|
import "./chunk-SI36RWC3.js";
|
|
169
170
|
import "./chunk-NJAIR57U.js";
|
|
170
|
-
import "./chunk-
|
|
171
|
-
import "./chunk-
|
|
171
|
+
import "./chunk-X5XK6WWV.js";
|
|
172
|
+
import "./chunk-2S6PPGIR.js";
|
|
172
173
|
import "./chunk-BANSBRNX.js";
|
|
173
174
|
import "./chunk-TB6CBZ5V.js";
|
|
174
175
|
import "./chunk-47DU4SGJ.js";
|
|
175
176
|
import "./chunk-W2E2WFXL.js";
|
|
176
177
|
import "./chunk-PRRWKTK6.js";
|
|
177
178
|
import "./chunk-EOU6V4IN.js";
|
|
178
|
-
import "./chunk-
|
|
179
|
+
import "./chunk-JIB3UUYV.js";
|
|
179
180
|
import "./chunk-HL4DB7TO.js";
|
|
180
181
|
import "./chunk-GNVZQ5JN.js";
|
|
181
182
|
import "./chunk-YN2UN7N3.js";
|
|
@@ -193,8 +194,8 @@ import "./chunk-77NTFICT.js";
|
|
|
193
194
|
import "./chunk-LJLGH2DE.js";
|
|
194
195
|
import "./chunk-ODZKV2F7.js";
|
|
195
196
|
import "./chunk-WWDO7ZWM.js";
|
|
196
|
-
import "./chunk-
|
|
197
|
-
import "./chunk-
|
|
197
|
+
import "./chunk-2DFXIJPZ.js";
|
|
198
|
+
import "./chunk-ICA5SCIT.js";
|
|
198
199
|
import "./chunk-ZKE4CO6B.js";
|
|
199
200
|
import "./chunk-ZDLVHGIC.js";
|
|
200
201
|
import "./chunk-B2NXOVZN.js";
|
|
@@ -242,13 +243,13 @@ import "./chunk-HAB7LLE7.js";
|
|
|
242
243
|
import "./chunk-MNDIM6JB.js";
|
|
243
244
|
import "./chunk-E5IZTY4W.js";
|
|
244
245
|
import "./chunk-ROI7BK7H.js";
|
|
245
|
-
import "./chunk-
|
|
246
|
-
import "./chunk-
|
|
246
|
+
import "./chunk-4SUNBSPD.js";
|
|
247
|
+
import "./chunk-BZ5VO7KO.js";
|
|
247
248
|
import "./chunk-KFY3SGN7.js";
|
|
248
249
|
import "./chunk-3T74IZB3.js";
|
|
249
250
|
import "./chunk-CMTINOFS.js";
|
|
250
251
|
import "./chunk-ZNYDDZVW.js";
|
|
251
|
-
import "./chunk-
|
|
252
|
+
import "./chunk-U6JZGQXC.js";
|
|
252
253
|
import "./chunk-AQZL7JBZ.js";
|
|
253
254
|
import "./chunk-2TJSGIKT.js";
|
|
254
255
|
import "./chunk-UD7UNYRD.js";
|
|
@@ -275,7 +276,7 @@ import "./chunk-UOBPK2OS.js";
|
|
|
275
276
|
import "./chunk-2YA5N2BY.js";
|
|
276
277
|
import "./chunk-YLTU2DC4.js";
|
|
277
278
|
import "./chunk-H7USCTPQ.js";
|
|
278
|
-
import "./chunk-
|
|
279
|
+
import "./chunk-JQCEG54G.js";
|
|
279
280
|
import "./chunk-GXL52YZA.js";
|
|
280
281
|
import "./chunk-AZEZSQ5R.js";
|
|
281
282
|
import "./chunk-JA2GJCOS.js";
|
|
@@ -329,7 +330,7 @@ import "./chunk-C37ZRXX7.js";
|
|
|
329
330
|
import "./chunk-BUYVPUEM.js";
|
|
330
331
|
import "./chunk-IAIPNEHD.js";
|
|
331
332
|
import "./chunk-DGFU5MSX.js";
|
|
332
|
-
import "./chunk-
|
|
333
|
+
import "./chunk-CP6MUXNI.js";
|
|
333
334
|
import "./chunk-NVKO5YKP.js";
|
|
334
335
|
import "./chunk-GKUA4MGB.js";
|
|
335
336
|
import "./chunk-CWOMCAUE.js";
|
|
@@ -356,9 +357,9 @@ import "./chunk-4RASUAN3.js";
|
|
|
356
357
|
import "./chunk-VZIAVM72.js";
|
|
357
358
|
import "./chunk-HRATODNO.js";
|
|
358
359
|
import "./chunk-WTWQA7BB.js";
|
|
359
|
-
import "./chunk-
|
|
360
|
-
import "./chunk-
|
|
361
|
-
import "./chunk-
|
|
360
|
+
import "./chunk-7GMOB4FF.js";
|
|
361
|
+
import "./chunk-CJYVVVOG.js";
|
|
362
|
+
import "./chunk-C2UN2CY7.js";
|
|
362
363
|
import "./chunk-UFGFMWAD.js";
|
|
363
364
|
import "./chunk-3DADRUGW.js";
|
|
364
365
|
import "./chunk-EZ25VE3G.js";
|
|
@@ -366,18 +367,18 @@ import "./chunk-44442YCH.js";
|
|
|
366
367
|
import "./chunk-AUDJPF4N.js";
|
|
367
368
|
import "./chunk-Y4Z4I6WK.js";
|
|
368
369
|
import "./chunk-TLRIRISJ.js";
|
|
369
|
-
import "./chunk-
|
|
370
|
-
import "./chunk-
|
|
370
|
+
import "./chunk-RC2TVYY2.js";
|
|
371
|
+
import "./chunk-6YAQ3AJ5.js";
|
|
371
372
|
import "./chunk-KJTKLXTH.js";
|
|
372
|
-
import "./chunk-
|
|
373
|
+
import "./chunk-FZPZML67.js";
|
|
373
374
|
import "./chunk-2DQ2XREU.js";
|
|
374
375
|
import "./chunk-4NZQ7IID.js";
|
|
375
376
|
import "./chunk-3I4FUAVJ.js";
|
|
376
377
|
import "./chunk-OKTXM5H4.js";
|
|
377
378
|
import "./chunk-D24OXEPB.js";
|
|
378
379
|
import "./chunk-ZAJLJ35W.js";
|
|
379
|
-
import "./chunk-
|
|
380
|
-
import "./chunk-
|
|
380
|
+
import "./chunk-FFTGLWHI.js";
|
|
381
|
+
import "./chunk-W7FZ7ZZE.js";
|
|
381
382
|
import "./chunk-3UXOZBHV.js";
|
|
382
383
|
import "./chunk-H3MLOQ7F.js";
|
|
383
384
|
import "./chunk-5JMAGU26.js";
|
|
@@ -411,7 +412,7 @@ import "./chunk-HK6KYIF6.js";
|
|
|
411
412
|
import "./chunk-2GBFKHBZ.js";
|
|
412
413
|
import "./chunk-6TBIWIAG.js";
|
|
413
414
|
import "./chunk-B7RWBZXW.js";
|
|
414
|
-
import "./chunk-
|
|
415
|
+
import "./chunk-JOR4Y326.js";
|
|
415
416
|
import "./chunk-FNFURZBZ.js";
|
|
416
417
|
import "./chunk-GZFKCLRC.js";
|
|
417
418
|
import "./chunk-EKUI7I2X.js";
|
|
@@ -477,22 +478,22 @@ import "./chunk-QDW3E4RD.js";
|
|
|
477
478
|
import "./chunk-ZOJUWVAU.js";
|
|
478
479
|
import "./chunk-ZJP66Q4I.js";
|
|
479
480
|
import "./chunk-KFZY2OFH.js";
|
|
480
|
-
import "./chunk-
|
|
481
|
+
import "./chunk-7MAMRCZ7.js";
|
|
481
482
|
import "./chunk-QGVCFVX6.js";
|
|
482
483
|
import "./chunk-UHVXE24Y.js";
|
|
483
484
|
import "./chunk-BL7WULM5.js";
|
|
484
485
|
import "./chunk-G6OFEGUR.js";
|
|
485
486
|
import "./chunk-QFZYIUMQ.js";
|
|
486
|
-
import "./chunk-
|
|
487
|
-
import "./chunk-
|
|
488
|
-
import "./chunk-DLPS5YP3.js";
|
|
489
|
-
import "./chunk-GGQ3CJVH.js";
|
|
490
|
-
import "./chunk-CYEPCZN5.js";
|
|
491
|
-
import "./chunk-B7GZL7PR.js";
|
|
487
|
+
import "./chunk-2CWCJYT3.js";
|
|
488
|
+
import "./chunk-RQOUKIFS.js";
|
|
492
489
|
import "./chunk-ZMEEOLQG.js";
|
|
493
|
-
import "./chunk-WNEVEMJ3.js";
|
|
494
490
|
import "./chunk-IOBQMVVL.js";
|
|
491
|
+
import "./chunk-TJV5HGSC.js";
|
|
492
|
+
import "./chunk-YTT6XJNX.js";
|
|
493
|
+
import "./chunk-CYEPCZN5.js";
|
|
494
|
+
import "./chunk-ARD2TEY2.js";
|
|
495
495
|
import "./chunk-Y5NLBXPV.js";
|
|
496
|
+
import "./chunk-WNEVEMJ3.js";
|
|
496
497
|
import "./chunk-TFA6HPOA.js";
|
|
497
498
|
import "./chunk-F4TWWUMP.js";
|
|
498
499
|
import "./chunk-72A4L5JJ.js";
|
|
@@ -24,22 +24,22 @@ import "../chunk-FEHIOYML.js";
|
|
|
24
24
|
import "../chunk-P32IDSHD.js";
|
|
25
25
|
import {
|
|
26
26
|
StorageManager
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-7MAMRCZ7.js";
|
|
28
28
|
import "../chunk-QGVCFVX6.js";
|
|
29
29
|
import "../chunk-UHVXE24Y.js";
|
|
30
30
|
import "../chunk-BL7WULM5.js";
|
|
31
31
|
import "../chunk-G6OFEGUR.js";
|
|
32
32
|
import "../chunk-QFZYIUMQ.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-DLPS5YP3.js";
|
|
36
|
-
import "../chunk-GGQ3CJVH.js";
|
|
37
|
-
import "../chunk-CYEPCZN5.js";
|
|
38
|
-
import "../chunk-B7GZL7PR.js";
|
|
33
|
+
import "../chunk-2CWCJYT3.js";
|
|
34
|
+
import "../chunk-RQOUKIFS.js";
|
|
39
35
|
import "../chunk-ZMEEOLQG.js";
|
|
40
|
-
import "../chunk-WNEVEMJ3.js";
|
|
41
36
|
import "../chunk-IOBQMVVL.js";
|
|
37
|
+
import "../chunk-TJV5HGSC.js";
|
|
38
|
+
import "../chunk-YTT6XJNX.js";
|
|
39
|
+
import "../chunk-CYEPCZN5.js";
|
|
40
|
+
import "../chunk-ARD2TEY2.js";
|
|
42
41
|
import "../chunk-Y5NLBXPV.js";
|
|
42
|
+
import "../chunk-WNEVEMJ3.js";
|
|
43
43
|
import "../chunk-TFA6HPOA.js";
|
|
44
44
|
import "../chunk-F4TWWUMP.js";
|
|
45
45
|
import "../chunk-72A4L5JJ.js";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CompoundingEngine,
|
|
3
3
|
defaultTierMigrationCycleBudget
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-7BIGO6ZL.js";
|
|
5
5
|
import "../chunk-DPPIBEGC.js";
|
|
6
6
|
import "../chunk-5CO5G4MN.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-C2UN2CY7.js";
|
|
8
|
+
import "../chunk-7MAMRCZ7.js";
|
|
9
9
|
import "../chunk-QGVCFVX6.js";
|
|
10
10
|
import "../chunk-UHVXE24Y.js";
|
|
11
11
|
import "../chunk-BL7WULM5.js";
|
|
12
12
|
import "../chunk-G6OFEGUR.js";
|
|
13
13
|
import "../chunk-QFZYIUMQ.js";
|
|
14
|
-
import "../chunk-
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-DLPS5YP3.js";
|
|
17
|
-
import "../chunk-GGQ3CJVH.js";
|
|
18
|
-
import "../chunk-CYEPCZN5.js";
|
|
19
|
-
import "../chunk-B7GZL7PR.js";
|
|
14
|
+
import "../chunk-2CWCJYT3.js";
|
|
15
|
+
import "../chunk-RQOUKIFS.js";
|
|
20
16
|
import "../chunk-ZMEEOLQG.js";
|
|
21
|
-
import "../chunk-WNEVEMJ3.js";
|
|
22
17
|
import "../chunk-IOBQMVVL.js";
|
|
18
|
+
import "../chunk-TJV5HGSC.js";
|
|
19
|
+
import "../chunk-YTT6XJNX.js";
|
|
20
|
+
import "../chunk-CYEPCZN5.js";
|
|
21
|
+
import "../chunk-ARD2TEY2.js";
|
|
23
22
|
import "../chunk-Y5NLBXPV.js";
|
|
23
|
+
import "../chunk-WNEVEMJ3.js";
|
|
24
24
|
import "../chunk-TFA6HPOA.js";
|
|
25
25
|
import "../chunk-F4TWWUMP.js";
|
|
26
26
|
import "../chunk-72A4L5JJ.js";
|
package/dist/config.js
CHANGED
|
@@ -47,22 +47,22 @@ import "./chunk-QDW3E4RD.js";
|
|
|
47
47
|
import "./chunk-ZOJUWVAU.js";
|
|
48
48
|
import "./chunk-ZJP66Q4I.js";
|
|
49
49
|
import "./chunk-KFZY2OFH.js";
|
|
50
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-7MAMRCZ7.js";
|
|
51
51
|
import "./chunk-QGVCFVX6.js";
|
|
52
52
|
import "./chunk-UHVXE24Y.js";
|
|
53
53
|
import "./chunk-BL7WULM5.js";
|
|
54
54
|
import "./chunk-G6OFEGUR.js";
|
|
55
55
|
import "./chunk-QFZYIUMQ.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-DLPS5YP3.js";
|
|
59
|
-
import "./chunk-GGQ3CJVH.js";
|
|
60
|
-
import "./chunk-CYEPCZN5.js";
|
|
61
|
-
import "./chunk-B7GZL7PR.js";
|
|
56
|
+
import "./chunk-2CWCJYT3.js";
|
|
57
|
+
import "./chunk-RQOUKIFS.js";
|
|
62
58
|
import "./chunk-ZMEEOLQG.js";
|
|
63
|
-
import "./chunk-WNEVEMJ3.js";
|
|
64
59
|
import "./chunk-IOBQMVVL.js";
|
|
60
|
+
import "./chunk-TJV5HGSC.js";
|
|
61
|
+
import "./chunk-YTT6XJNX.js";
|
|
62
|
+
import "./chunk-CYEPCZN5.js";
|
|
63
|
+
import "./chunk-ARD2TEY2.js";
|
|
65
64
|
import "./chunk-Y5NLBXPV.js";
|
|
65
|
+
import "./chunk-WNEVEMJ3.js";
|
|
66
66
|
import "./chunk-TFA6HPOA.js";
|
|
67
67
|
import "./chunk-F4TWWUMP.js";
|
|
68
68
|
import "./chunk-72A4L5JJ.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runCodexMaterialize,
|
|
3
3
|
runPostConsolidationMaterialize
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-W7FZ7ZZE.js";
|
|
5
5
|
import "../chunk-3UXOZBHV.js";
|
|
6
6
|
import "../chunk-H3MLOQ7F.js";
|
|
7
7
|
import "../chunk-TOTT6S2V.js";
|
|
8
8
|
import "../chunk-236PXYG7.js";
|
|
9
9
|
import "../chunk-ZCUTSMR2.js";
|
|
10
10
|
import "../chunk-QDW3E4RD.js";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-7MAMRCZ7.js";
|
|
12
12
|
import "../chunk-QGVCFVX6.js";
|
|
13
13
|
import "../chunk-UHVXE24Y.js";
|
|
14
14
|
import "../chunk-BL7WULM5.js";
|
|
15
15
|
import "../chunk-G6OFEGUR.js";
|
|
16
16
|
import "../chunk-QFZYIUMQ.js";
|
|
17
|
-
import "../chunk-
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-DLPS5YP3.js";
|
|
20
|
-
import "../chunk-GGQ3CJVH.js";
|
|
21
|
-
import "../chunk-CYEPCZN5.js";
|
|
22
|
-
import "../chunk-B7GZL7PR.js";
|
|
17
|
+
import "../chunk-2CWCJYT3.js";
|
|
18
|
+
import "../chunk-RQOUKIFS.js";
|
|
23
19
|
import "../chunk-ZMEEOLQG.js";
|
|
24
|
-
import "../chunk-WNEVEMJ3.js";
|
|
25
20
|
import "../chunk-IOBQMVVL.js";
|
|
21
|
+
import "../chunk-TJV5HGSC.js";
|
|
22
|
+
import "../chunk-YTT6XJNX.js";
|
|
23
|
+
import "../chunk-CYEPCZN5.js";
|
|
24
|
+
import "../chunk-ARD2TEY2.js";
|
|
26
25
|
import "../chunk-Y5NLBXPV.js";
|
|
26
|
+
import "../chunk-WNEVEMJ3.js";
|
|
27
27
|
import "../chunk-TFA6HPOA.js";
|
|
28
28
|
import "../chunk-F4TWWUMP.js";
|
|
29
29
|
import "../chunk-72A4L5JJ.js";
|
package/dist/connectors/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import "../chunk-ZWOYG256.js";
|
|
34
34
|
import {
|
|
35
35
|
runCodexMaterialize
|
|
36
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-W7FZ7ZZE.js";
|
|
37
37
|
import "../chunk-3UXOZBHV.js";
|
|
38
38
|
import {
|
|
39
39
|
MATERIALIZE_VERSION,
|
|
@@ -58,22 +58,22 @@ import {
|
|
|
58
58
|
import "../chunk-236PXYG7.js";
|
|
59
59
|
import "../chunk-ZCUTSMR2.js";
|
|
60
60
|
import "../chunk-QDW3E4RD.js";
|
|
61
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-7MAMRCZ7.js";
|
|
62
62
|
import "../chunk-QGVCFVX6.js";
|
|
63
63
|
import "../chunk-UHVXE24Y.js";
|
|
64
64
|
import "../chunk-BL7WULM5.js";
|
|
65
65
|
import "../chunk-G6OFEGUR.js";
|
|
66
66
|
import "../chunk-QFZYIUMQ.js";
|
|
67
|
-
import "../chunk-
|
|
68
|
-
import "../chunk-
|
|
69
|
-
import "../chunk-DLPS5YP3.js";
|
|
70
|
-
import "../chunk-GGQ3CJVH.js";
|
|
71
|
-
import "../chunk-CYEPCZN5.js";
|
|
72
|
-
import "../chunk-B7GZL7PR.js";
|
|
67
|
+
import "../chunk-2CWCJYT3.js";
|
|
68
|
+
import "../chunk-RQOUKIFS.js";
|
|
73
69
|
import "../chunk-ZMEEOLQG.js";
|
|
74
|
-
import "../chunk-WNEVEMJ3.js";
|
|
75
70
|
import "../chunk-IOBQMVVL.js";
|
|
71
|
+
import "../chunk-TJV5HGSC.js";
|
|
72
|
+
import "../chunk-YTT6XJNX.js";
|
|
73
|
+
import "../chunk-CYEPCZN5.js";
|
|
74
|
+
import "../chunk-ARD2TEY2.js";
|
|
76
75
|
import "../chunk-Y5NLBXPV.js";
|
|
76
|
+
import "../chunk-WNEVEMJ3.js";
|
|
77
77
|
import "../chunk-TFA6HPOA.js";
|
|
78
78
|
import "../chunk-F4TWWUMP.js";
|
|
79
79
|
import "../chunk-72A4L5JJ.js";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
refreshConvergedNamespaces
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RC2TVYY2.js";
|
|
4
|
+
import "./chunk-6YAQ3AJ5.js";
|
|
5
5
|
import "./chunk-KJTKLXTH.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-FZPZML67.js";
|
|
7
7
|
import "./chunk-2DQ2XREU.js";
|
|
8
8
|
import "./chunk-YVUNHNB6.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-7MAMRCZ7.js";
|
|
10
10
|
import "./chunk-QGVCFVX6.js";
|
|
11
11
|
import "./chunk-UHVXE24Y.js";
|
|
12
12
|
import "./chunk-BL7WULM5.js";
|
|
13
13
|
import "./chunk-G6OFEGUR.js";
|
|
14
14
|
import "./chunk-QFZYIUMQ.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-DLPS5YP3.js";
|
|
18
|
-
import "./chunk-GGQ3CJVH.js";
|
|
19
|
-
import "./chunk-CYEPCZN5.js";
|
|
20
|
-
import "./chunk-B7GZL7PR.js";
|
|
15
|
+
import "./chunk-2CWCJYT3.js";
|
|
16
|
+
import "./chunk-RQOUKIFS.js";
|
|
21
17
|
import "./chunk-ZMEEOLQG.js";
|
|
22
|
-
import "./chunk-WNEVEMJ3.js";
|
|
23
18
|
import "./chunk-IOBQMVVL.js";
|
|
19
|
+
import "./chunk-TJV5HGSC.js";
|
|
20
|
+
import "./chunk-YTT6XJNX.js";
|
|
21
|
+
import "./chunk-CYEPCZN5.js";
|
|
22
|
+
import "./chunk-ARD2TEY2.js";
|
|
24
23
|
import "./chunk-Y5NLBXPV.js";
|
|
24
|
+
import "./chunk-WNEVEMJ3.js";
|
|
25
25
|
import "./chunk-TFA6HPOA.js";
|
|
26
26
|
import "./chunk-F4TWWUMP.js";
|
|
27
27
|
import "./chunk-72A4L5JJ.js";
|
package/dist/corpus-watermark.js
CHANGED
|
@@ -9,25 +9,25 @@ import {
|
|
|
9
9
|
computeServiceCorpusWatermarks,
|
|
10
10
|
digestPartitionCensus,
|
|
11
11
|
resolveCorpusNamespaceRoots
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-7GMOB4FF.js";
|
|
13
|
+
import "./chunk-CJYVVVOG.js";
|
|
14
|
+
import "./chunk-C2UN2CY7.js";
|
|
15
|
+
import "./chunk-7MAMRCZ7.js";
|
|
16
16
|
import "./chunk-QGVCFVX6.js";
|
|
17
17
|
import "./chunk-UHVXE24Y.js";
|
|
18
18
|
import "./chunk-BL7WULM5.js";
|
|
19
19
|
import "./chunk-G6OFEGUR.js";
|
|
20
20
|
import "./chunk-QFZYIUMQ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-DLPS5YP3.js";
|
|
24
|
-
import "./chunk-GGQ3CJVH.js";
|
|
25
|
-
import "./chunk-CYEPCZN5.js";
|
|
26
|
-
import "./chunk-B7GZL7PR.js";
|
|
21
|
+
import "./chunk-2CWCJYT3.js";
|
|
22
|
+
import "./chunk-RQOUKIFS.js";
|
|
27
23
|
import "./chunk-ZMEEOLQG.js";
|
|
28
|
-
import "./chunk-WNEVEMJ3.js";
|
|
29
24
|
import "./chunk-IOBQMVVL.js";
|
|
25
|
+
import "./chunk-TJV5HGSC.js";
|
|
26
|
+
import "./chunk-YTT6XJNX.js";
|
|
27
|
+
import "./chunk-CYEPCZN5.js";
|
|
28
|
+
import "./chunk-ARD2TEY2.js";
|
|
30
29
|
import "./chunk-Y5NLBXPV.js";
|
|
30
|
+
import "./chunk-WNEVEMJ3.js";
|
|
31
31
|
import "./chunk-TFA6HPOA.js";
|
|
32
32
|
import "./chunk-F4TWWUMP.js";
|
|
33
33
|
import "./chunk-72A4L5JJ.js";
|