@remnic/core 9.3.734 → 9.3.736
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-boundary.d.ts +8 -6
- package/dist/access-boundary.js +9 -9
- package/dist/access-cli.js +24 -24
- package/dist/access-http.d.ts +8 -6
- package/dist/access-http.js +14 -14
- package/dist/access-mcp.d.ts +8 -6
- package/dist/access-mcp.js +13 -13
- package/dist/access-operations-batch.js +11 -11
- package/dist/access-operations.d.ts +8 -6
- package/dist/access-operations.js +12 -12
- package/dist/{access-service-rjFfmfKB.d.ts → access-service-CdC0q4pr.d.ts} +3 -3
- package/dist/access-service.d.ts +8 -6
- package/dist/access-service.js +8 -8
- package/dist/access-surface-catalog.d.ts +8 -6
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-memory-bridge.js +3 -3
- package/dist/active-recall.d.ts +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +7 -5
- package/dist/briefing.d.ts +1 -1
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer.d.ts +1 -1
- package/dist/calibration.d.ts +1 -1
- package/dist/capabilities.d.ts +101 -2
- package/dist/capabilities.js +13 -3
- package/dist/{catalog-DHYXzM4-.d.ts → catalog-D2NLDg4S.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-IWMGBNXY.js → chunk-2T2N7ISV.js} +3 -3
- package/dist/{chunk-K7PAILHO.js → chunk-5BOQNB2K.js} +3 -3
- package/dist/{chunk-Q5LGXWNG.js → chunk-AAIHDIMD.js} +6 -6
- package/dist/{chunk-WHQ2JB35.js → chunk-AB2E5DCN.js} +2 -2
- package/dist/{chunk-Z7J3OAPR.js → chunk-AE2HPUP7.js} +726 -645
- package/dist/chunk-AE2HPUP7.js.map +1 -0
- package/dist/{chunk-FAGERSH2.js → chunk-AE7NTZ75.js} +3 -3
- package/dist/{chunk-V5OVSGB6.js → chunk-AESC5OQJ.js} +2 -2
- package/dist/{chunk-7FPJFCXL.js → chunk-BXPG5AVX.js} +4 -4
- package/dist/{chunk-UH3NYOHN.js → chunk-CHJIWG2H.js} +2 -2
- package/dist/{chunk-IDIXGGDN.js → chunk-E4LYJ7PY.js} +6 -6
- package/dist/{chunk-WTTVFSCO.js → chunk-FF36YNKY.js} +3 -3
- package/dist/{chunk-TJSQHO4Q.js → chunk-FLPKEMSO.js} +2 -2
- package/dist/{chunk-UF3N7IRP.js → chunk-G54IDCD3.js} +45 -41
- package/dist/chunk-G54IDCD3.js.map +1 -0
- package/dist/{chunk-UK6U5C3N.js → chunk-GB2FZOWB.js} +3 -3
- package/dist/{chunk-5OYHJIJN.js → chunk-GYICIICQ.js} +3 -3
- package/dist/{chunk-PEF2XOIV.js → chunk-HFXZIF3V.js} +3 -3
- package/dist/{chunk-PKO5NJ65.js → chunk-HLPYL6LC.js} +27 -24
- package/dist/chunk-HLPYL6LC.js.map +1 -0
- package/dist/{chunk-ET5HXSQL.js → chunk-IPI45Q4S.js} +2 -2
- package/dist/{chunk-2L5RTVMO.js → chunk-IX4L7E5G.js} +2 -2
- package/dist/{chunk-SYX73XD7.js → chunk-IXGXALRV.js} +10 -7
- package/dist/chunk-IXGXALRV.js.map +1 -0
- package/dist/{chunk-SHJGBAIW.js → chunk-JWDE7OVJ.js} +44 -2
- package/dist/{chunk-SHJGBAIW.js.map → chunk-JWDE7OVJ.js.map} +1 -1
- package/dist/{chunk-IZLTOS5L.js → chunk-K3Y2SJTN.js} +4 -4
- package/dist/{chunk-CILX2XW7.js → chunk-NDKW67ER.js} +2 -2
- package/dist/{chunk-54RCE5Z3.js → chunk-NNJKEAP2.js} +2 -2
- package/dist/{chunk-LV32K4OP.js → chunk-OYHYBHHI.js} +2 -2
- package/dist/{chunk-5DIKZKOD.js → chunk-P6VLG7KE.js} +2 -2
- package/dist/{chunk-T7CGPTFU.js → chunk-QNTLWH3T.js} +3 -3
- package/dist/{chunk-6U7TES2M.js → chunk-UO6MPN77.js} +13 -12
- package/dist/chunk-UO6MPN77.js.map +1 -0
- package/dist/{chunk-NDYQIN6C.js → chunk-VOEVVIP3.js} +3 -3
- package/dist/{chunk-3QETM5NG.js → chunk-ZBZ4XULO.js} +3 -3
- package/dist/{cli-XVpmSoQs.d.ts → cli-BHy6Bo6u.d.ts} +3 -3
- package/dist/cli.d.ts +9 -7
- package/dist/cli.js +20 -20
- package/dist/compounding/engine.d.ts +1 -1
- package/dist/compounding/engine.js +2 -2
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/consolidation-provenance-check.d.ts +1 -1
- package/dist/consolidation-undo.d.ts +1 -1
- package/dist/contradiction/index.d.ts +1 -1
- package/dist/contradiction/index.js +2 -2
- package/dist/{contradiction-scan-OUHMCUBT.js → contradiction-scan-2B4AE4TI.js} +3 -3
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/embedding-fallback.js +2 -2
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +1 -1
- package/dist/entity-retrieval.js +2 -2
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +7 -5
- package/dist/explicit-capture.js +2 -2
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction.d.ts +1 -1
- package/dist/extraction.js +3 -3
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/{first-start-migration-W4U6XDKI.js → first-start-migration-2RQYDIZ7.js} +6 -5
- package/dist/first-start-migration-2RQYDIZ7.js.map +1 -0
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/identity-continuity.d.ts +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +30 -30
- package/dist/intent.d.ts +1 -1
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-llm.js +2 -2
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/mcp-memory-inspector-app.d.ts +8 -6
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-worth-outcomes.d.ts +1 -1
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +2 -2
- package/dist/namespaces/migrate.js +6 -6
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/principal.js +2 -2
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +4 -4
- package/dist/namespaces/storage.d.ts +2 -2
- package/dist/namespaces/storage.js +2 -2
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +1 -1
- package/dist/operator-toolkit.js +11 -11
- package/dist/orchestration/compression-guideline-coordinator.d.ts +1 -1
- package/dist/orchestration/compression-guideline-coordinator.js +2 -1
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +6 -6
- package/dist/{orchestrator-BXi-gadS.d.ts → orchestrator-C-xp_rtZ.d.ts} +141 -18
- package/dist/orchestrator.d.ts +7 -5
- package/dist/orchestrator.js +19 -21
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +1 -1
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/retrieval-agents.d.ts +1 -1
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/embed-helper.js +2 -2
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +3 -3
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +3 -3
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-DeL5grLx.d.ts → semantic-consolidation-COdwU-me.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/storage.d.ts +1 -1
- package/dist/summarizer.d.ts +1 -1
- package/dist/summarizer.js +3 -3
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +1 -1
- package/dist/tier-routing.d.ts +1 -1
- package/dist/{tier-stats-LSM35HZY.js → tier-stats-KPDIISG7.js} +6 -5
- package/dist/tier-stats-KPDIISG7.js.map +1 -0
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-CpFz51Pv.d.ts → types-w3Y232yi.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/package.json +2 -2
- package/src/access-service.ts +20 -20
- package/src/capabilities.test.ts +197 -0
- package/src/capabilities.ts +206 -0
- package/src/cli/creation-ledger-commands.ts +2 -2
- package/src/cli/research-status-commands.ts +13 -13
- package/src/cli.ts +17 -17
- package/src/maintenance/first-start-migration.ts +3 -3
- package/src/maintenance/tier-stats.ts +3 -3
- package/src/operator-toolkit.ts +8 -8
- package/src/orchestration/compression-guideline-coordinator.ts +7 -6
- package/src/orchestration/entity-synthesis-coordinator.ts +319 -0
- package/src/orchestration/lifecycle-policy-coordinator.ts +504 -0
- package/src/orchestrator.ts +40 -618
- package/dist/chunk-6U7TES2M.js.map +0 -1
- package/dist/chunk-PKO5NJ65.js.map +0 -1
- package/dist/chunk-SYX73XD7.js.map +0 -1
- package/dist/chunk-UF3N7IRP.js.map +0 -1
- package/dist/chunk-Z7J3OAPR.js.map +0 -1
- package/dist/first-start-migration-W4U6XDKI.js.map +0 -1
- package/dist/tier-stats-LSM35HZY.js.map +0 -1
- /package/dist/{chunk-IWMGBNXY.js.map → chunk-2T2N7ISV.js.map} +0 -0
- /package/dist/{chunk-K7PAILHO.js.map → chunk-5BOQNB2K.js.map} +0 -0
- /package/dist/{chunk-Q5LGXWNG.js.map → chunk-AAIHDIMD.js.map} +0 -0
- /package/dist/{chunk-WHQ2JB35.js.map → chunk-AB2E5DCN.js.map} +0 -0
- /package/dist/{chunk-FAGERSH2.js.map → chunk-AE7NTZ75.js.map} +0 -0
- /package/dist/{chunk-V5OVSGB6.js.map → chunk-AESC5OQJ.js.map} +0 -0
- /package/dist/{chunk-7FPJFCXL.js.map → chunk-BXPG5AVX.js.map} +0 -0
- /package/dist/{chunk-UH3NYOHN.js.map → chunk-CHJIWG2H.js.map} +0 -0
- /package/dist/{chunk-IDIXGGDN.js.map → chunk-E4LYJ7PY.js.map} +0 -0
- /package/dist/{chunk-WTTVFSCO.js.map → chunk-FF36YNKY.js.map} +0 -0
- /package/dist/{chunk-TJSQHO4Q.js.map → chunk-FLPKEMSO.js.map} +0 -0
- /package/dist/{chunk-UK6U5C3N.js.map → chunk-GB2FZOWB.js.map} +0 -0
- /package/dist/{chunk-5OYHJIJN.js.map → chunk-GYICIICQ.js.map} +0 -0
- /package/dist/{chunk-PEF2XOIV.js.map → chunk-HFXZIF3V.js.map} +0 -0
- /package/dist/{chunk-ET5HXSQL.js.map → chunk-IPI45Q4S.js.map} +0 -0
- /package/dist/{chunk-2L5RTVMO.js.map → chunk-IX4L7E5G.js.map} +0 -0
- /package/dist/{chunk-IZLTOS5L.js.map → chunk-K3Y2SJTN.js.map} +0 -0
- /package/dist/{chunk-CILX2XW7.js.map → chunk-NDKW67ER.js.map} +0 -0
- /package/dist/{chunk-54RCE5Z3.js.map → chunk-NNJKEAP2.js.map} +0 -0
- /package/dist/{chunk-LV32K4OP.js.map → chunk-OYHYBHHI.js.map} +0 -0
- /package/dist/{chunk-5DIKZKOD.js.map → chunk-P6VLG7KE.js.map} +0 -0
- /package/dist/{chunk-T7CGPTFU.js.map → chunk-QNTLWH3T.js.map} +0 -0
- /package/dist/{chunk-NDYQIN6C.js.map → chunk-VOEVVIP3.js.map} +0 -0
- /package/dist/{chunk-3QETM5NG.js.map → chunk-ZBZ4XULO.js.map} +0 -0
- /package/dist/{contradiction-scan-OUHMCUBT.js.map → contradiction-scan-2B4AE4TI.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SearchBackend, SearchQueryOptions, SearchExecutionOptions, SearchResult } from './port.js';
|
|
2
2
|
import { EmbedHelper } from './embed-helper.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-w3Y232yi.js';
|
|
4
4
|
import '../types-gb_SNtjR.js';
|
|
5
5
|
import '../message-parts/index.js';
|
|
6
6
|
import '../host-embedding-provider.js';
|
package/dist/search/port.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginConfig, g as MemoryFile } from './types-
|
|
1
|
+
import { P as PluginConfig, g as MemoryFile } from './types-w3Y232yi.js';
|
|
2
2
|
import { RolloutSummaryInput, MaterializeResult } from './connectors/codex-materialize.js';
|
|
3
3
|
import { LoggerBackend } from './logger.js';
|
|
4
4
|
import { SemanticConsolidationLlmOperator } from './consolidation-operator.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './types-
|
|
1
|
+
import './types-w3Y232yi.js';
|
|
2
2
|
import './connectors/codex-materialize.js';
|
|
3
|
-
export { C as ConsolidationCluster, O as OperatorAwareConsolidationResult, S as SemanticConsolidationResult, a as buildConsolidationPrompt, b as buildExtensionsBlockForConsolidation, c as buildOperatorAwareConsolidationPrompt, e as chooseConsolidationOperator, f as findSimilarClusters, m as materializeAfterSemanticConsolidation, p as parseConsolidationResponse, g as parseOperatorAwareConsolidationResponse, r as resolveExtensionsRoot } from './semantic-consolidation-
|
|
3
|
+
export { C as ConsolidationCluster, O as OperatorAwareConsolidationResult, S as SemanticConsolidationResult, a as buildConsolidationPrompt, b as buildExtensionsBlockForConsolidation, c as buildOperatorAwareConsolidationPrompt, e as chooseConsolidationOperator, f as findSimilarClusters, m as materializeAfterSemanticConsolidation, p as parseConsolidationResponse, g as parseOperatorAwareConsolidationResponse, r as resolveExtensionsRoot } from './semantic-consolidation-COdwU-me.js';
|
|
4
4
|
export { CONSOLIDATION_OPERATORS, ConsolidationOperator, SemanticConsolidationLlmOperator, isConsolidationOperator, isSemanticConsolidationLlmOperator, isValidDerivedFromEntry } from './consolidation-operator.js';
|
|
5
5
|
import './types-gb_SNtjR.js';
|
|
6
6
|
import './message-parts/index.js';
|
package/dist/signal.d.ts
CHANGED
package/dist/storage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginConfig, f as MemoryStatus, M as MemoryCategory, a9 as ImportanceScore, ap as MemoryLink, k as MemoryFrontmatter, F as FaithfulnessFrontmatter, ai as ProvenanceSource, g as MemoryFile,
|
|
1
|
+
import { P as PluginConfig, f as MemoryStatus, M as MemoryCategory, a9 as ImportanceScore, ap as MemoryLink, k as MemoryFrontmatter, F as FaithfulnessFrontmatter, ai as ProvenanceSource, g as MemoryFile, a2 as EntityStructuredSection, aq as BufferState, ar as MetaState, Z as MemoryActionEvent, m as MemoryLifecycleEvent, K as BufferSurpriseEvent, B as BehaviorSignalEvent, _ as CompressionGuidelineOptimizerState, a5 as ContinuityIncidentOpenInput, a3 as ContinuityIncidentRecord, a4 as ContinuityIncidentCloseInput, a6 as ContinuityImprovementLoop, a8 as ContinuityLoopUpsertInput, a7 as ContinuityLoopReviewInput, as as FileHygieneConfig, at as EntityRelationship, au as EntityActivityEntry, E as EntityFile, av as AccessTrackingEntry, l as MemoryProjectionCurrentState, aw as MemorySummary, an as TopicScore } from './types-w3Y232yi.js';
|
|
2
2
|
import { VersioningConfig } from './page-versioning.js';
|
|
3
3
|
import { ConsolidationOperator } from './consolidation-operator.js';
|
|
4
4
|
import { ProjectedMemoryBrowseOptions, ProjectedMemoryBrowsePage, readProjectedGovernanceRecord } from './memory-projection-store.js';
|
package/dist/summarizer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelRegistry } from './model-registry.js';
|
|
2
|
-
import { P as PluginConfig, G as GatewayConfig, T as TranscriptEntry, H as HourlySummary } from './types-
|
|
2
|
+
import { P as PluginConfig, G as GatewayConfig, T as TranscriptEntry, H as HourlySummary } from './types-w3Y232yi.js';
|
|
3
3
|
import { TranscriptManager } from './transcript.js';
|
|
4
4
|
import './types-gb_SNtjR.js';
|
|
5
5
|
import './message-parts/index.js';
|
package/dist/summarizer.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HourlySummarizer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HFXZIF3V.js";
|
|
4
4
|
import "./chunk-3FAMU5TX.js";
|
|
5
5
|
import "./chunk-PWFWCGOO.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-IX4L7E5G.js";
|
|
7
7
|
import "./chunk-S4DDLTPX.js";
|
|
8
8
|
import "./chunk-FF4KLI5W.js";
|
|
9
9
|
import "./chunk-O75CRYGF.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-L2EXJQJP.js";
|
|
|
14
14
|
import "./chunk-VL7DP3OW.js";
|
|
15
15
|
import "./chunk-RGMVMVMF.js";
|
|
16
16
|
import "./chunk-N7RWREIQ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-JWDE7OVJ.js";
|
|
18
18
|
import "./chunk-EYIEWJNI.js";
|
|
19
19
|
import "./chunk-JUC24CTX.js";
|
|
20
20
|
import "./chunk-NU3CSQ4H.js";
|
package/dist/threading.d.ts
CHANGED
package/dist/tier-migration.d.ts
CHANGED
package/dist/tier-routing.d.ts
CHANGED
|
@@ -12,8 +12,9 @@ import {
|
|
|
12
12
|
computeLifecycleValueInputs
|
|
13
13
|
} from "./chunk-TBBDFYXW.js";
|
|
14
14
|
import {
|
|
15
|
-
resolveQmdCapabilities
|
|
16
|
-
|
|
15
|
+
resolveQmdCapabilities,
|
|
16
|
+
resolveUtilityLearningCapabilities
|
|
17
|
+
} from "./chunk-JWDE7OVJ.js";
|
|
17
18
|
import "./chunk-A2IYSXDQ.js";
|
|
18
19
|
import "./chunk-LPSF4OQH.js";
|
|
19
20
|
import "./chunk-PZ5AY32C.js";
|
|
@@ -38,8 +39,8 @@ async function tierRoutingPolicyFromConfig(config) {
|
|
|
38
39
|
};
|
|
39
40
|
const runtime = await loadUtilityRuntimeValues({
|
|
40
41
|
memoryDir: config.memoryDir,
|
|
41
|
-
memoryUtilityLearningEnabled: config.
|
|
42
|
-
promotionByOutcomeEnabled: config.
|
|
42
|
+
memoryUtilityLearningEnabled: resolveUtilityLearningCapabilities(config).memoryUtilityLearning,
|
|
43
|
+
promotionByOutcomeEnabled: resolveUtilityLearningCapabilities(config).promotionByOutcome
|
|
43
44
|
});
|
|
44
45
|
return applyUtilityPromotionRuntimePolicy(basePolicy, runtime);
|
|
45
46
|
}
|
|
@@ -152,4 +153,4 @@ export {
|
|
|
152
153
|
formatTierSummaryText,
|
|
153
154
|
summarizeTiers
|
|
154
155
|
};
|
|
155
|
-
//# sourceMappingURL=tier-stats-
|
|
156
|
+
//# sourceMappingURL=tier-stats-KPDIISG7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/maintenance/tier-stats.ts"],"sourcesContent":["/**\n * Operator-facing tier visibility (issue #686 PR 5/6).\n *\n * Two read-only surfaces:\n *\n * - `summarizeTiers(storage)` — count memories by tier (hot vs cold)\n * plus per-status breakdown so operators can see at a glance\n * whether the lifecycle policy has actually demoted anything.\n * - `explainTierForMemory(storage, id)` — show the value-score\n * components and tier-transition decision for a single memory\n * so an operator can reason about why a memory ended up where\n * it did.\n *\n * Pure inspection — neither surface mutates anything. The CLI wires\n * them as `remnic tier list` and `remnic tier explain <id>`.\n */\n\nimport type { StorageManager } from \"../storage.js\";\nimport type { MemoryFile, PluginConfig } from \"../types.js\";\nimport { computeLifecycleValueInputs } from \"../lifecycle.js\";\nimport {\n computeTierValueScore,\n decideTierTransition,\n type MemoryTier,\n type TierRoutingPolicy,\n type TierTransitionDecision,\n} from \"../tier-routing.js\";\nimport { resolveQmdCapabilities, resolveUtilityLearningCapabilities} from \"../capabilities.js\";\nimport {\n applyUtilityPromotionRuntimePolicy,\n loadUtilityRuntimeValues,\n} from \"../utility-runtime.js\";\n\nexport interface TierSummary {\n /** Total memories scanned (all tiers, all statuses). */\n total: number;\n byTier: Record<MemoryTier, number>;\n byStatus: Record<string, number>;\n /** Memories with `status === \"forgotten\"` (issue #686 PR 4/6). */\n forgottenCount: number;\n /** Top contributors to the forgotten / archived buckets, by category. */\n byCategory: Record<string, number>;\n}\n\nexport interface TierExplainResult {\n id: string;\n path: string;\n currentTier: MemoryTier;\n status: string;\n category: string;\n valueScore: number;\n decision: TierTransitionDecision;\n signals: {\n confidence: number;\n accessCount: number;\n lastAccessed: string | null;\n created: string;\n updated: string;\n importance: number;\n feedback: number;\n };\n}\n\ninterface TierVisibleMemory {\n memory: MemoryFile;\n tier: MemoryTier;\n}\n\nasync function readTierVisibleMemories(\n storage: StorageManager,\n): Promise<TierVisibleMemory[]> {\n const [hotMemories, coldMemories] = await Promise.all([\n storage.readAllMemories(),\n storage.readAllColdMemories(),\n ]);\n return [\n ...hotMemories.map((memory) => ({ memory, tier: \"hot\" as const })),\n ...coldMemories.map((memory) => ({ memory, tier: \"cold\" as const })),\n ];\n}\n\nasync function tierRoutingPolicyFromConfig(\n config: PluginConfig,\n): Promise<TierRoutingPolicy> {\n const basePolicy: TierRoutingPolicy = {\n enabled: resolveQmdCapabilities(config).qmdTierMigration,\n demotionMinAgeDays: config.qmdTierDemotionMinAgeDays,\n demotionValueThreshold: config.qmdTierDemotionValueThreshold,\n promotionValueThreshold: config.qmdTierPromotionValueThreshold,\n };\n const runtime = await loadUtilityRuntimeValues({\n memoryDir: config.memoryDir,\n memoryUtilityLearningEnabled: resolveUtilityLearningCapabilities(config).memoryUtilityLearning,\n promotionByOutcomeEnabled: resolveUtilityLearningCapabilities(config).promotionByOutcome,\n });\n return applyUtilityPromotionRuntimePolicy(basePolicy, runtime);\n}\n\nexport async function summarizeTiers(\n storage: StorageManager,\n): Promise<TierSummary> {\n const all = await readTierVisibleMemories(storage);\n const summary: TierSummary = {\n total: all.length,\n byTier: { hot: 0, cold: 0 },\n byStatus: {},\n forgottenCount: 0,\n byCategory: {},\n };\n for (const { memory: m, tier } of all) {\n summary.byTier[tier] += 1;\n const status: string = m.frontmatter.status ?? \"active\";\n summary.byStatus[status] = (summary.byStatus[status] ?? 0) + 1;\n // Compare via the widened `string` type so this module compiles\n // both before and after PR 4/6 lands `\"forgotten\"` in MemoryStatus.\n if (status === \"forgotten\") summary.forgottenCount += 1;\n const cat = m.frontmatter.category ?? \"(uncategorized)\";\n summary.byCategory[cat] = (summary.byCategory[cat] ?? 0) + 1;\n }\n return summary;\n}\n\nexport async function explainTierForMemory(\n storage: StorageManager,\n id: string,\n config: PluginConfig,\n): Promise<TierExplainResult> {\n const trimmed = typeof id === \"string\" ? id.trim() : \"\";\n if (trimmed.length === 0) {\n throw new Error(\"tier explain: memory id is required and must be non-empty\");\n }\n const all = await readTierVisibleMemories(storage);\n const entry = all.find(({ memory: m }) => m.frontmatter.id === trimmed);\n if (!entry) {\n throw new Error(`tier explain: memory not found: ${trimmed}`);\n }\n const { memory, tier: currentTier } = entry;\n const now = new Date();\n const valueInputs = computeLifecycleValueInputs(memory, now);\n const valueScore = computeTierValueScore(memory, now);\n const policy = await tierRoutingPolicyFromConfig(config);\n const decision = decideTierTransition(memory, currentTier, policy, now);\n const fm = memory.frontmatter as unknown as Record<string, unknown>;\n return {\n id: trimmed,\n path: memory.path,\n currentTier,\n status: typeof fm.status === \"string\" ? (fm.status as string) : \"active\",\n category: typeof fm.category === \"string\" ? (fm.category as string) : \"\",\n valueScore,\n decision,\n signals: {\n confidence: valueInputs.confidence,\n accessCount:\n typeof fm.accessCount === \"number\" ? (fm.accessCount as number) : 0,\n lastAccessed:\n typeof fm.lastAccessed === \"string\" ? (fm.lastAccessed as string) : null,\n created: typeof fm.created === \"string\" ? (fm.created as string) : \"\",\n updated: typeof fm.updated === \"string\" ? (fm.updated as string) : \"\",\n importance: valueInputs.importance,\n feedback: valueInputs.feedback,\n },\n };\n}\n\n/**\n * Render a TierSummary as plain text for `remnic tier list` text mode.\n * Pure formatter — exposed so future surfaces (HTTP, MCP) can reuse.\n */\nexport function formatTierSummaryText(summary: TierSummary): string {\n const lines: string[] = [];\n lines.push(\"=== Memory Tier Distribution ===\");\n lines.push(`Total memories: ${summary.total}`);\n lines.push(\"\");\n lines.push(\"Tier:\");\n lines.push(` hot: ${summary.byTier.hot}`);\n lines.push(` cold: ${summary.byTier.cold}`);\n lines.push(\"\");\n lines.push(\"Status:\");\n const statusEntries = Object.entries(summary.byStatus).sort(\n (a, b) => b[1] - a[1] || a[0].localeCompare(b[0]),\n );\n for (const [status, count] of statusEntries) {\n lines.push(` ${status}: ${count}`);\n }\n lines.push(\"\");\n lines.push(\"Top categories:\");\n const categoryEntries = Object.entries(summary.byCategory)\n .sort((a, b) => b[1] - a[1] || a[0].localeCompare(b[0]))\n .slice(0, 8);\n for (const [cat, count] of categoryEntries) {\n lines.push(` ${cat}: ${count}`);\n }\n return lines.join(\"\\n\");\n}\n\n/**\n * Render a TierExplainResult as plain text for `remnic tier explain`.\n */\nexport function formatTierExplainText(explain: TierExplainResult): string {\n const lines: string[] = [];\n lines.push(`=== Tier Explain: ${explain.id} ===`);\n lines.push(`path: ${explain.path}`);\n lines.push(`current tier: ${explain.currentTier}`);\n lines.push(`status: ${explain.status}`);\n lines.push(`category: ${explain.category}`);\n lines.push(`value score: ${explain.valueScore.toFixed(3)}`);\n lines.push(\"\");\n lines.push(\"Tier-transition decision:\");\n lines.push(` next tier: ${explain.decision.nextTier}`);\n lines.push(` changed: ${explain.decision.changed}`);\n lines.push(` reason: ${explain.decision.reason}`);\n lines.push(\"\");\n lines.push(\"Signals:\");\n lines.push(` confidence: ${explain.signals.confidence}`);\n lines.push(` accessCount: ${explain.signals.accessCount}`);\n lines.push(` lastAccessed: ${explain.signals.lastAccessed ?? \"(never)\"}`);\n lines.push(` created: ${explain.signals.created}`);\n lines.push(` updated: ${explain.signals.updated}`);\n lines.push(` importance: ${explain.signals.importance}`);\n lines.push(` feedback: ${explain.signals.feedback}`);\n return lines.join(\"\\n\");\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAoEA,eAAe,wBACb,SAC8B;AAC9B,QAAM,CAAC,aAAa,YAAY,IAAI,MAAM,QAAQ,IAAI;AAAA,IACpD,QAAQ,gBAAgB;AAAA,IACxB,QAAQ,oBAAoB;AAAA,EAC9B,CAAC;AACD,SAAO;AAAA,IACL,GAAG,YAAY,IAAI,CAAC,YAAY,EAAE,QAAQ,MAAM,MAAe,EAAE;AAAA,IACjE,GAAG,aAAa,IAAI,CAAC,YAAY,EAAE,QAAQ,MAAM,OAAgB,EAAE;AAAA,EACrE;AACF;AAEA,eAAe,4BACb,QAC4B;AAC5B,QAAM,aAAgC;AAAA,IACpC,SAAS,uBAAuB,MAAM,EAAE;AAAA,IACxC,oBAAoB,OAAO;AAAA,IAC3B,wBAAwB,OAAO;AAAA,IAC/B,yBAAyB,OAAO;AAAA,EAClC;AACA,QAAM,UAAU,MAAM,yBAAyB;AAAA,IAC7C,WAAW,OAAO;AAAA,IAClB,8BAA8B,mCAAmC,MAAM,EAAE;AAAA,IACzE,2BAA2B,mCAAmC,MAAM,EAAE;AAAA,EACxE,CAAC;AACD,SAAO,mCAAmC,YAAY,OAAO;AAC/D;AAEA,eAAsB,eACpB,SACsB;AACtB,QAAM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D,SAAO,MAAM,KAAK,IAAI;AACxB;","names":[]}
|
package/dist/topics.d.ts
CHANGED
package/dist/transcript.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PluginConfig, T as TranscriptEntry, v as Checkpoint } from './types-
|
|
1
|
+
import { P as PluginConfig, T as TranscriptEntry, v as Checkpoint } from './types-w3Y232yi.js';
|
|
2
2
|
import { SessionIntegrityReport } from './session-integrity.js';
|
|
3
3
|
import './types-gb_SNtjR.js';
|
|
4
4
|
import './message-parts/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TrustSignals, TrustScoreResult, TrustBand, TrustScoreComponent } from './trust-score.js';
|
|
2
|
-
import { F as FaithfulnessFrontmatter, ai as ProvenanceSource, ao as TrustWeights } from './types-
|
|
2
|
+
import { F as FaithfulnessFrontmatter, ai as ProvenanceSource, ao as TrustWeights } from './types-w3Y232yi.js';
|
|
3
3
|
import './types-gb_SNtjR.js';
|
|
4
4
|
import './message-parts/index.js';
|
|
5
5
|
|
package/dist/trust-score.d.ts
CHANGED
|
@@ -3659,4 +3659,4 @@ interface HourlySummary {
|
|
|
3659
3659
|
generatedAt: string;
|
|
3660
3660
|
}
|
|
3661
3661
|
|
|
3662
|
-
export { type
|
|
3662
|
+
export { type EntityMention as $, type ActiveRecallChatType as A, type BehaviorSignalEvent as B, type CalendarSource as C, type DaySummaryResult as D, type EntityFile as E, type FaithfulnessFrontmatter as F, type GatewayConfig as G, type HourlySummary as H, type IdentityInjectionMode as I, type ImportanceLevel as J, type BufferSurpriseEvent as K, type LiveConnectorsConfig as L, type MemoryCategory as M, type SecretRef as N, type AgentAccessAuthToken as O, type PluginConfig as P, type QmdSearchResult as Q, type RecallTierExplain as R, type SessionObserverBandConfig as S, type TranscriptEntry as T, type CompressionGuidelineOptimizerEventCounts as U, type VerificationState as V, type CompressionGuidelineOptimizerActionSummary as W, type CompressionGuidelineOptimizerRuleUpdate as X, type MemoryActionType as Y, type MemoryActionEvent as Z, type CompressionGuidelineOptimizerState as _, type ActiveRecallQueryMode as a, type MemoryActionEligibilitySource as a$, type EntitySchemaDefinition as a0, type EntitySchemaSectionDefinition as a1, type EntityStructuredSection as a2, type ContinuityIncidentRecord as a3, type ContinuityIncidentCloseInput as a4, type ContinuityIncidentOpenInput as a5, type ContinuityImprovementLoop as a6, type ContinuityLoopReviewInput as a7, type ContinuityLoopUpsertInput as a8, type ImportanceScore as a9, type CodingContext as aA, type DreamsStatusResult as aB, type DreamsPhase as aC, type DreamsRunResult as aD, type WearableConversation as aE, type WearableSourceSettings as aF, type WearableNativeMemory as aG, type WearableMemoryMode as aH, type WearableSourceConnector as aI, type WearablesConfig as aJ, type WearableSyncSummary as aK, type WearableSourceStatus as aL, type WearableDayTranscript as aM, type WearableCorrectionRule as aN, type BootstrapOptions as aO, type BootstrapResult as aP, type ConsolidationObservation as aQ, type CodingModeConfig as aR, type CodingKnowledgeConfig as aS, type WearableCleanupSettings as aT, type WearableDayTranscriptMeta as aU, type BriefingConfig as aV, type BriefingOpenCommitment as aW, type BriefingWindow as aX, type CodexCompatConfig as aY, DEFAULT_RECALL_DISCLOSURE as aZ, type ExtractedFact as a_, type MemoryIntent as aa, type QmdSearchExplain as ab, type MemoryActionEligibilityContext as ac, type MemoryActionPolicyResult as ad, type MemoryLifecycleEventType as ae, type MemoryLifecycleStateSummary as af, type ModelProviderConfig as ag, type NativeKnowledgeConfig as ah, type ProvenanceSource as ai, type ProvenanceConfig as aj, type RetrievalTier as ak, type SignalScanResult as al, type ConversationThread as am, type TopicScore as an, type TrustWeights as ao, type MemoryLink as ap, type BufferState as aq, type MetaState as ar, type FileHygieneConfig as as, type EntityRelationship as at, type EntityActivityEntry as au, type AccessTrackingEntry as av, type MemorySummary as aw, type ScopeProfileLayerId as ax, type ScopeProfilePromotionTarget as ay, type ScopeProfileConfig as az, type ActiveRecallPromptStyle as b, type NamespacePolicy as b$, type MemoryObservation as b0, type MemoryScope as b1, RECALL_DISCLOSURE_LEVELS as b2, type WearableAuthCheck as b3, type WearableFetchOptions as b4, type WearableFetchPage as b5, type WearableNativeMemoryPage as b6, type WearableTranscriptSegment as b7, isRecallDisclosure as b8, type AgentAccessHttpConfig as b9, type DreamsLightSleepConfig as bA, type DreamsPhaseStatus as bB, type DreamsPhasesConfig as bC, type DreamsRemConfig as bD, type EngramTraceEvent as bE, type EntityTimelineEntry as bF, type ExtractedProcedureStep as bG, type ExtractedQuestion as bH, type ExtractedReasoningTrace as bI, type ExtractedReasoningTraceStep as bJ, type ExtractedRelationship as bK, type ExtractionPassSource as bL, type GitHubLiveConnectorConfig as bM, type GmailLiveConnectorConfig as bN, type GoogleDriveLiveConnectorConfig as bO, type HeartbeatConfig as bP, type HeartbeatDetectionMode as bQ, type LlmTraceCallback as bR, type LlmTraceEvent as bS, type MemoryActionOutcome as bT, type MemoryActionPolicyDecision as bU, type MemoryActionStatus as bV, type MemoryLinkType as bW, type MemoryOsPresetName as bX, type ModelApi as bY, type ModelDefinitionConfig as bZ, type ModelProviderAuthMode as b_, type AgentDefaultsConfig as ba, type AgentPersona as bb, type BehaviorLoopAdjustment as bc, type BehaviorSignalDirection as bd, type BehaviorSignalType as be, type BriefingCalendarSourceError as bf, type BufferEntryState as bg, type CaptureMode as bh, type ChatConfig as bi, type CodexCliReasoningEffort as bj, type CodexCompactionFlushMode as bk, type CodexConnectorConfig as bl, type CompressionGuidelineActivationState as bm, type CompressionGuidelineOptimizerSourceWindow as bn, type ConfidenceTier as bo, type ConsolidationAction as bp, type ConsolidationItem as bq, type ContinuityIncidentState as br, type ContinuityLoopCadence as bs, type ContinuityLoopStatus as bt, type ContradictionScanConfig as bu, type CronConversationRecallMode as bv, type CronRecallMode as bw, type DreamingConfig as bx, type DreamingNarrativePromptStyle as by, type DreamsDeepSleepConfig as bz, type ActiveRecallThinking as c, type NativeKnowledgeFolderRuleConfig as c0, type NativeKnowledgeObsidianVaultConfig as c1, type NativeKnowledgeOpenClawWorkspaceConfig as c2, type NotionLiveConnectorConfig as c3, type PrincipalFromSessionKeyMode as c4, type PrincipalRule as c5, type ProceduralConfig as c6, type QuestionEntry as c7, type ReasoningEffort as c8, type RecallPipelineConfig as c9, type RecallSectionConfig as ca, type RecallTraceEvent as cb, type RelevanceFeedback as cc, SPECULATIVE_TTL_DAYS as cd, type ScopeProfileAutoPromoteConfig as ce, type ScopeProfileTeamProjectConfig as cf, type ScopeTeamConfig as cg, type ScoredEntity as ch, type SemanticChunkingConfigShape as ci, type SignalLevel as cj, type SlotBehaviorConfig as ck, type SlotMismatchMode as cl, type TriggerMode as cm, confidenceTier as cn, type ActiveRecallModelFallbackPolicy as d, type BehaviorLoopPolicyState as e, type MemoryStatus as f, type MemoryFile as g, type RecallPlanMode as h, type RecallDisclosure as i, type AgentPersonaModelConfig as j, type MemoryFrontmatter as k, type MemoryProjectionCurrentState as l, type MemoryLifecycleEvent as m, type BriefingSections as n, type BriefingFollowup as o, type BriefingFocus as p, type CalendarEvent as q, type BriefingActiveThread as r, type BriefingResult as s, type BriefingRecentEntity as t, type BufferTurn as u, type Checkpoint as v, type LifecycleState as w, type PolicyClass as x, type ExtractionResult as y, type ConsolidationResult as z };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './types-gb_SNtjR.js';
|
|
2
2
|
import './message-parts/index.js';
|
|
3
|
-
export { av as AccessTrackingEntry, A as ActiveRecallChatType, d as ActiveRecallModelFallbackPolicy, b as ActiveRecallPromptStyle, a as ActiveRecallQueryMode, c as ActiveRecallThinking,
|
|
3
|
+
export { av as AccessTrackingEntry, A as ActiveRecallChatType, d as ActiveRecallModelFallbackPolicy, b as ActiveRecallPromptStyle, a as ActiveRecallQueryMode, c as ActiveRecallThinking, O as AgentAccessAuthToken, b9 as AgentAccessHttpConfig, ba as AgentDefaultsConfig, bb as AgentPersona, j as AgentPersonaModelConfig, bc as BehaviorLoopAdjustment, e as BehaviorLoopPolicyState, bd as BehaviorSignalDirection, B as BehaviorSignalEvent, be as BehaviorSignalType, aO as BootstrapOptions, aP as BootstrapResult, r as BriefingActiveThread, bf as BriefingCalendarSourceError, aV as BriefingConfig, p as BriefingFocus, o as BriefingFollowup, aW as BriefingOpenCommitment, t as BriefingRecentEntity, s as BriefingResult, n as BriefingSections, aX as BriefingWindow, bg as BufferEntryState, aq as BufferState, K as BufferSurpriseEvent, u as BufferTurn, q as CalendarEvent, C as CalendarSource, bh as CaptureMode, bi as ChatConfig, v as Checkpoint, bj as CodexCliReasoningEffort, bk as CodexCompactionFlushMode, aY as CodexCompatConfig, bl as CodexConnectorConfig, aA as CodingContext, aS as CodingKnowledgeConfig, aR as CodingModeConfig, bm as CompressionGuidelineActivationState, W as CompressionGuidelineOptimizerActionSummary, U as CompressionGuidelineOptimizerEventCounts, X as CompressionGuidelineOptimizerRuleUpdate, bn as CompressionGuidelineOptimizerSourceWindow, _ as CompressionGuidelineOptimizerState, bo as ConfidenceTier, bp as ConsolidationAction, bq as ConsolidationItem, aQ as ConsolidationObservation, z as ConsolidationResult, a6 as ContinuityImprovementLoop, a4 as ContinuityIncidentCloseInput, a5 as ContinuityIncidentOpenInput, a3 as ContinuityIncidentRecord, br as ContinuityIncidentState, bs as ContinuityLoopCadence, a7 as ContinuityLoopReviewInput, bt as ContinuityLoopStatus, a8 as ContinuityLoopUpsertInput, bu as ContradictionScanConfig, am as ConversationThread, bv as CronConversationRecallMode, bw as CronRecallMode, aZ as DEFAULT_RECALL_DISCLOSURE, D as DaySummaryResult, bx as DreamingConfig, by as DreamingNarrativePromptStyle, bz as DreamsDeepSleepConfig, bA as DreamsLightSleepConfig, aC as DreamsPhase, bB as DreamsPhaseStatus, bC as DreamsPhasesConfig, bD as DreamsRemConfig, aD as DreamsRunResult, aB as DreamsStatusResult, bE as EngramTraceEvent, au as EntityActivityEntry, E as EntityFile, $ as EntityMention, at as EntityRelationship, a0 as EntitySchemaDefinition, a1 as EntitySchemaSectionDefinition, a2 as EntityStructuredSection, bF as EntityTimelineEntry, a_ as ExtractedFact, bG as ExtractedProcedureStep, bH as ExtractedQuestion, bI as ExtractedReasoningTrace, bJ as ExtractedReasoningTraceStep, bK as ExtractedRelationship, bL as ExtractionPassSource, y as ExtractionResult, F as FaithfulnessFrontmatter, as as FileHygieneConfig, G as GatewayConfig, bM as GitHubLiveConnectorConfig, bN as GmailLiveConnectorConfig, bO as GoogleDriveLiveConnectorConfig, bP as HeartbeatConfig, bQ as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, J as ImportanceLevel, a9 as ImportanceScore, w as LifecycleState, L as LiveConnectorsConfig, bR as LlmTraceCallback, bS as LlmTraceEvent, ac as MemoryActionEligibilityContext, a$ as MemoryActionEligibilitySource, Z as MemoryActionEvent, bT as MemoryActionOutcome, bU as MemoryActionPolicyDecision, ad as MemoryActionPolicyResult, bV as MemoryActionStatus, Y as MemoryActionType, M as MemoryCategory, g as MemoryFile, k as MemoryFrontmatter, aa as MemoryIntent, m as MemoryLifecycleEvent, ae as MemoryLifecycleEventType, af as MemoryLifecycleStateSummary, ap as MemoryLink, bW as MemoryLinkType, b0 as MemoryObservation, bX as MemoryOsPresetName, l as MemoryProjectionCurrentState, b1 as MemoryScope, f as MemoryStatus, aw as MemorySummary, ar as MetaState, bY as ModelApi, bZ as ModelDefinitionConfig, b_ as ModelProviderAuthMode, ag as ModelProviderConfig, b$ as NamespacePolicy, ah as NativeKnowledgeConfig, c0 as NativeKnowledgeFolderRuleConfig, c1 as NativeKnowledgeObsidianVaultConfig, c2 as NativeKnowledgeOpenClawWorkspaceConfig, c3 as NotionLiveConnectorConfig, P as PluginConfig, x as PolicyClass, c4 as PrincipalFromSessionKeyMode, c5 as PrincipalRule, c6 as ProceduralConfig, aj as ProvenanceConfig, ai as ProvenanceSource, ab as QmdSearchExplain, Q as QmdSearchResult, c7 as QuestionEntry, b2 as RECALL_DISCLOSURE_LEVELS, c8 as ReasoningEffort, i as RecallDisclosure, c9 as RecallPipelineConfig, h as RecallPlanMode, ca as RecallSectionConfig, R as RecallTierExplain, cb as RecallTraceEvent, cc as RelevanceFeedback, ak as RetrievalTier, cd as SPECULATIVE_TTL_DAYS, ce as ScopeProfileAutoPromoteConfig, az as ScopeProfileConfig, ax as ScopeProfileLayerId, ay as ScopeProfilePromotionTarget, cf as ScopeProfileTeamProjectConfig, cg as ScopeTeamConfig, ch as ScoredEntity, N as SecretRef, ci as SemanticChunkingConfigShape, S as SessionObserverBandConfig, cj as SignalLevel, al as SignalScanResult, ck as SlotBehaviorConfig, cl as SlotMismatchMode, an as TopicScore, T as TranscriptEntry, cm as TriggerMode, ao as TrustWeights, V as VerificationState, cn as confidenceTier, b8 as isRecallDisclosure } from './types-w3Y232yi.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.736",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3000,7 +3000,7 @@
|
|
|
3000
3000
|
"core"
|
|
3001
3001
|
],
|
|
3002
3002
|
"peerDependencies": {
|
|
3003
|
-
"@remnic/coding-graph": "^9.3.
|
|
3003
|
+
"@remnic/coding-graph": "^9.3.736"
|
|
3004
3004
|
},
|
|
3005
3005
|
"peerDependenciesMeta": {
|
|
3006
3006
|
"@remnic/coding-graph": {
|
package/src/access-service.ts
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
resolveMemoryLifecycleCapabilities,
|
|
11
11
|
resolveQmdCapabilities,
|
|
12
12
|
resolveIdentityContinuityCapabilities,
|
|
13
|
-
} from "./capabilities.js";
|
|
13
|
+
resolveSecurityCapabilities, resolveObjectiveStateCapabilities, resolveCompressionCapabilities} from "./capabilities.js";
|
|
14
14
|
import { AccessAuditAdapter, type AccessAuditConfig, type AccessAuditResult } from "./access-audit.js";
|
|
15
15
|
import type { AnomalyDetectorResult } from "./recall-audit-anomaly.js";
|
|
16
16
|
import { resolveGitContext } from "./coding/git-context.js";
|
|
@@ -1823,8 +1823,8 @@ export class EngramAccessService {
|
|
|
1823
1823
|
// are off the self base collapses to config.defaultNamespace, so this is a
|
|
1824
1824
|
// no-op for single-store deployments either way.
|
|
1825
1825
|
const willWriteObjectiveState =
|
|
1826
|
-
this.orchestrator.config.
|
|
1827
|
-
this.orchestrator.config.
|
|
1826
|
+
resolveObjectiveStateCapabilities(this.orchestrator.config).objectiveStateMemory === true &&
|
|
1827
|
+
resolveObjectiveStateCapabilities(this.orchestrator.config).objectiveStateSnapshotWrites === true;
|
|
1828
1828
|
if (
|
|
1829
1829
|
willWriteObjectiveState &&
|
|
1830
1830
|
resolveNamespaceCapabilities(this.orchestrator.config).namespaces === true &&
|
|
@@ -5578,9 +5578,9 @@ export class EngramAccessService {
|
|
|
5578
5578
|
status: await getTrustZoneStoreStatus({
|
|
5579
5579
|
memoryDir: storage.dir,
|
|
5580
5580
|
trustZoneStoreDir: this.orchestrator.config.trustZoneStoreDir,
|
|
5581
|
-
enabled: this.orchestrator.config.
|
|
5582
|
-
promotionEnabled: this.orchestrator.config.
|
|
5583
|
-
poisoningDefenseEnabled: this.orchestrator.config.
|
|
5581
|
+
enabled: resolveSecurityCapabilities(this.orchestrator.config).trustZones === true,
|
|
5582
|
+
promotionEnabled: resolveSecurityCapabilities(this.orchestrator.config).quarantinePromotion === true,
|
|
5583
|
+
poisoningDefenseEnabled: resolveSecurityCapabilities(this.orchestrator.config).memoryPoisoningDefense === true,
|
|
5584
5584
|
}),
|
|
5585
5585
|
};
|
|
5586
5586
|
}
|
|
@@ -5612,9 +5612,9 @@ export class EngramAccessService {
|
|
|
5612
5612
|
entry.record,
|
|
5613
5613
|
entry.filePath,
|
|
5614
5614
|
result.allRecords,
|
|
5615
|
-
this.orchestrator.config.
|
|
5616
|
-
this.orchestrator.config.
|
|
5617
|
-
this.orchestrator.config.
|
|
5615
|
+
resolveSecurityCapabilities(this.orchestrator.config).memoryPoisoningDefense === true,
|
|
5616
|
+
resolveSecurityCapabilities(this.orchestrator.config).trustZones === true,
|
|
5617
|
+
resolveSecurityCapabilities(this.orchestrator.config).quarantinePromotion === true,
|
|
5618
5618
|
)),
|
|
5619
5619
|
};
|
|
5620
5620
|
}
|
|
@@ -5636,9 +5636,9 @@ export class EngramAccessService {
|
|
|
5636
5636
|
result = await promoteTrustZoneRecord({
|
|
5637
5637
|
memoryDir: storage.dir,
|
|
5638
5638
|
trustZoneStoreDir: this.orchestrator.config.trustZoneStoreDir,
|
|
5639
|
-
enabled: this.orchestrator.config.
|
|
5640
|
-
promotionEnabled: this.orchestrator.config.
|
|
5641
|
-
poisoningDefenseEnabled: this.orchestrator.config.
|
|
5639
|
+
enabled: resolveSecurityCapabilities(this.orchestrator.config).trustZones === true,
|
|
5640
|
+
promotionEnabled: resolveSecurityCapabilities(this.orchestrator.config).quarantinePromotion === true,
|
|
5641
|
+
poisoningDefenseEnabled: resolveSecurityCapabilities(this.orchestrator.config).memoryPoisoningDefense === true,
|
|
5642
5642
|
sourceRecordId: request.recordId,
|
|
5643
5643
|
targetZone: request.targetZone,
|
|
5644
5644
|
recordedAt: request.recordedAt ?? new Date().toISOString(),
|
|
@@ -5670,7 +5670,7 @@ export class EngramAccessService {
|
|
|
5670
5670
|
result = await seedTrustZoneDemoDataset({
|
|
5671
5671
|
memoryDir: storage.dir,
|
|
5672
5672
|
trustZoneStoreDir: this.orchestrator.config.trustZoneStoreDir,
|
|
5673
|
-
enabled: this.orchestrator.config.
|
|
5673
|
+
enabled: resolveSecurityCapabilities(this.orchestrator.config).trustZones === true,
|
|
5674
5674
|
scenario: request.scenario,
|
|
5675
5675
|
recordedAt: request.recordedAt,
|
|
5676
5676
|
dryRun: request.dryRun === true,
|
|
@@ -5879,8 +5879,8 @@ export class EngramAccessService {
|
|
|
5879
5879
|
// overlay-compatible base namespace for those writes.
|
|
5880
5880
|
const namespace = this.legacyResponseNamespaceForScope(scope);
|
|
5881
5881
|
const shouldWriteObjectiveState =
|
|
5882
|
-
this.orchestrator.config.
|
|
5883
|
-
this.orchestrator.config.
|
|
5882
|
+
resolveObjectiveStateCapabilities(this.orchestrator.config).objectiveStateMemory === true &&
|
|
5883
|
+
resolveObjectiveStateCapabilities(this.orchestrator.config).objectiveStateSnapshotWrites === true;
|
|
5884
5884
|
|
|
5885
5885
|
// 2. Auto-resolve coding context from cwd/projectTag so a LATER bare recall
|
|
5886
5886
|
// on the same session is project-scoped (rule 42: same namespace layer as
|
|
@@ -5919,9 +5919,9 @@ export class EngramAccessService {
|
|
|
5919
5919
|
await recordObjectiveStateSnapshotsFromObservedMessages({
|
|
5920
5920
|
memoryDir: objectiveStateLocation.memoryDir,
|
|
5921
5921
|
objectiveStateStoreDir: objectiveStateLocation.objectiveStateStoreDir,
|
|
5922
|
-
objectiveStateMemoryEnabled: this.orchestrator.config.
|
|
5922
|
+
objectiveStateMemoryEnabled: resolveObjectiveStateCapabilities(this.orchestrator.config).objectiveStateMemory,
|
|
5923
5923
|
objectiveStateSnapshotWritesEnabled:
|
|
5924
|
-
this.orchestrator.config.
|
|
5924
|
+
resolveObjectiveStateCapabilities(this.orchestrator.config).objectiveStateSnapshotWrites,
|
|
5925
5925
|
sessionKey: request.sessionKey,
|
|
5926
5926
|
recordedAt: new Date().toISOString(),
|
|
5927
5927
|
messages: request.messages,
|
|
@@ -7342,7 +7342,7 @@ export class EngramAccessService {
|
|
|
7342
7342
|
dryRun?: boolean;
|
|
7343
7343
|
eventLimit?: number;
|
|
7344
7344
|
}): Promise<unknown> {
|
|
7345
|
-
if (!this.orchestrator.config.
|
|
7345
|
+
if (!resolveCompressionCapabilities(this.orchestrator.config).compressionGuidelineLearning) {
|
|
7346
7346
|
return { enabled: false, reason: "Compression guideline learning is disabled. Enable `compressionGuidelineLearningEnabled: true`." };
|
|
7347
7347
|
}
|
|
7348
7348
|
return await this.orchestrator.optimizeCompressionGuidelines({
|
|
@@ -7355,7 +7355,7 @@ export class EngramAccessService {
|
|
|
7355
7355
|
expectedContentHash?: string;
|
|
7356
7356
|
expectedGuidelineVersion?: number;
|
|
7357
7357
|
}): Promise<unknown> {
|
|
7358
|
-
if (!this.orchestrator.config.
|
|
7358
|
+
if (!resolveCompressionCapabilities(this.orchestrator.config).compressionGuidelineLearning) {
|
|
7359
7359
|
return { enabled: false, reason: "Compression guideline learning is disabled." };
|
|
7360
7360
|
}
|
|
7361
7361
|
return await this.orchestrator.activateCompressionGuidelineDraft({
|
|
@@ -7749,7 +7749,7 @@ export class EngramAccessService {
|
|
|
7749
7749
|
);
|
|
7750
7750
|
}
|
|
7751
7751
|
|
|
7752
|
-
if (this.orchestrator.config.
|
|
7752
|
+
if (resolveCompressionCapabilities(this.orchestrator.config).contextCompressionActions !== true) {
|
|
7753
7753
|
throw new EngramAccessInputError(
|
|
7754
7754
|
"memory_action_apply is disabled; enable contextCompressionActionsEnabled to use this tool",
|
|
7755
7755
|
);
|