@remnic/core 9.3.744 → 9.3.746
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 +17 -15
- package/dist/access-boundary.js +14 -15
- package/dist/access-cli.js +92 -33
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +17 -15
- package/dist/access-http.js +20 -21
- package/dist/access-mcp.d.ts +17 -15
- package/dist/access-mcp.js +18 -19
- package/dist/access-operations-batch.js +16 -17
- package/dist/access-operations.d.ts +17 -15
- package/dist/access-operations.js +17 -18
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-OT3Gk79W.d.ts → access-service-Cx16nmCv.d.ts} +3 -30
- package/dist/access-service.d.ts +7 -5
- package/dist/access-service.js +13 -14
- package/dist/access-surface-catalog.d.ts +17 -15
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/{auto-sync-XHSKKQAH.js → auto-sync-IEBKPGAM.js} +2 -2
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +6 -4
- package/dist/briefing.d.ts +1 -1
- package/dist/briefing.js +3 -3
- 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 +1 -1
- package/dist/{catalog-CX0CjOaf.d.ts → catalog-D_ZDxu8Y.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +4 -4
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/{chunk-WPLRJ4XM.js → chunk-24YDB5QP.js} +2098 -230
- package/dist/chunk-24YDB5QP.js.map +1 -0
- package/dist/{chunk-6XG3NQRC.js → chunk-3IJGF6K2.js} +2 -2
- package/dist/{chunk-U5WVRMCA.js → chunk-5IN26V6W.js} +2 -2
- package/dist/{chunk-XEADGIAA.js → chunk-DIHCFJVV.js} +7 -7
- package/dist/{chunk-C7LDPZJJ.js → chunk-EHYB325U.js} +227 -227
- package/dist/chunk-EHYB325U.js.map +1 -0
- package/dist/{chunk-E7RGJQWP.js → chunk-HIHCB2S6.js} +2 -2
- package/dist/{chunk-JFCS6PQU.js → chunk-JHQUIH3W.js} +5 -5
- package/dist/{chunk-MXDG6SRH.js → chunk-JRDPT6DA.js} +2 -2
- package/dist/{chunk-BYLC4DKI.js → chunk-KMNYXLPL.js} +2 -2
- package/dist/{chunk-TQPSOTC7.js → chunk-L4N7SVNN.js} +8 -10
- package/dist/{chunk-TQPSOTC7.js.map → chunk-L4N7SVNN.js.map} +1 -1
- package/dist/{chunk-DYK27X7V.js → chunk-LMFS64GY.js} +3 -3
- package/dist/{chunk-FWXLKH2H.js → chunk-NVYF5OB6.js} +3 -3
- package/dist/{chunk-G5FP7VSQ.js → chunk-P4FW3ZU5.js} +58 -60
- package/dist/{chunk-G5FP7VSQ.js.map → chunk-P4FW3ZU5.js.map} +1 -1
- package/dist/{chunk-SODQQCAZ.js → chunk-PJE6D3NH.js} +10362 -4909
- package/dist/chunk-PJE6D3NH.js.map +1 -0
- package/dist/{chunk-56F6EAQ6.js → chunk-Q3X7GUAQ.js} +2 -2
- package/dist/{chunk-7N7S2RKF.js → chunk-R2OAN6IP.js} +2 -2
- package/dist/{chunk-CHELXDTO.js → chunk-RB6A7OUN.js} +2 -2
- package/dist/{chunk-3EA5LIFJ.js → chunk-SIV3JZPP.js} +2 -2
- package/dist/{chunk-IP5SANO2.js → chunk-UIKZZ242.js} +2 -2
- package/dist/{chunk-UGFPGWJB.js → chunk-URQLO7BX.js} +2 -2
- package/dist/{chunk-5UNSGRCR.js → chunk-WK3NK6SP.js} +162 -16
- package/dist/chunk-WK3NK6SP.js.map +1 -0
- package/dist/{chunk-VE54E6RP.js → chunk-WWVXXSLF.js} +4 -6
- package/dist/{chunk-VE54E6RP.js.map → chunk-WWVXXSLF.js.map} +1 -1
- package/dist/{chunk-WO22UEM3.js → chunk-XTEWVF3C.js} +2 -2
- package/dist/{chunk-FCQ7ZYCQ.js → chunk-ZGAJB74V.js} +2 -2
- package/dist/{chunk-NBP3YHHS.js → chunk-ZGZNLRKF.js} +2 -2
- package/dist/{chunk-C7C5WIIF.js → chunk-ZPZ4VVLT.js} +2 -2
- package/dist/{cli-BQiTZ7Zs.d.ts → cli-D1y3vooB.d.ts} +3 -3
- package/dist/cli.d.ts +9 -7
- package/dist/cli.js +44 -46
- package/dist/compounding/engine.d.ts +1 -1
- package/dist/compounding/engine.js +3 -3
- 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-runner.js +3 -3
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +3 -3
- 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 +4 -4
- 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/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +1 -1
- package/dist/entity-retrieval.js +3 -3
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +6 -4
- 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/fallback-llm.d.ts +1 -1
- 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 +12 -10
- package/dist/index.js +271 -5362
- package/dist/index.js.map +1 -1
- 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-model-endpoint.d.ts +1 -1
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +3 -3
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
- package/dist/maintenance/rebuild-memory-projection.js +4 -4
- package/dist/mcp-memory-inspector-app.d.ts +16 -14
- 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 +4 -4
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/storage.d.ts +2 -2
- package/dist/namespaces/storage.js +3 -3
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +1 -1
- package/dist/operator-toolkit.js +10 -11
- package/dist/orchestration/compression-guideline-coordinator.d.ts +1 -1
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +5 -5
- package/dist/{orchestrator-BPQGHpJz.d.ts → orchestrator-CnCE3Hvq.d.ts} +180 -12
- package/dist/orchestrator.d.ts +6 -4
- package/dist/orchestrator.js +119 -16
- 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/factory.d.ts +1 -1
- package/dist/search/index.d.ts +1 -1
- 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-ByzGwC9c.d.ts → semantic-consolidation-D3aSiu9t.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +3 -3
- 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/storage.js +2 -2
- package/dist/summarizer.d.ts +1 -1
- 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/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +1 -1
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/{types-5Jik3r4G.d.ts → types-CZm6rx9-.d.ts} +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +3 -3
- package/package.json +2 -2
- package/src/index.ts +2 -0
- package/src/orchestration/consolidation-run.ts +633 -0
- package/src/orchestration/extraction-persist.ts +2785 -0
- package/src/orchestration/extraction-run.ts +874 -0
- package/src/orchestrator.ts +206 -3815
- package/dist/chunk-5UNSGRCR.js.map +0 -1
- package/dist/chunk-A2KKLCOS.js +0 -1889
- package/dist/chunk-A2KKLCOS.js.map +0 -1
- package/dist/chunk-AVBT5WEW.js +0 -153
- package/dist/chunk-AVBT5WEW.js.map +0 -1
- package/dist/chunk-C7LDPZJJ.js.map +0 -1
- package/dist/chunk-SODQQCAZ.js.map +0 -1
- package/dist/chunk-WPLRJ4XM.js.map +0 -1
- /package/dist/{auto-sync-XHSKKQAH.js.map → auto-sync-IEBKPGAM.js.map} +0 -0
- /package/dist/{chunk-6XG3NQRC.js.map → chunk-3IJGF6K2.js.map} +0 -0
- /package/dist/{chunk-U5WVRMCA.js.map → chunk-5IN26V6W.js.map} +0 -0
- /package/dist/{chunk-XEADGIAA.js.map → chunk-DIHCFJVV.js.map} +0 -0
- /package/dist/{chunk-E7RGJQWP.js.map → chunk-HIHCB2S6.js.map} +0 -0
- /package/dist/{chunk-JFCS6PQU.js.map → chunk-JHQUIH3W.js.map} +0 -0
- /package/dist/{chunk-MXDG6SRH.js.map → chunk-JRDPT6DA.js.map} +0 -0
- /package/dist/{chunk-BYLC4DKI.js.map → chunk-KMNYXLPL.js.map} +0 -0
- /package/dist/{chunk-DYK27X7V.js.map → chunk-LMFS64GY.js.map} +0 -0
- /package/dist/{chunk-FWXLKH2H.js.map → chunk-NVYF5OB6.js.map} +0 -0
- /package/dist/{chunk-56F6EAQ6.js.map → chunk-Q3X7GUAQ.js.map} +0 -0
- /package/dist/{chunk-7N7S2RKF.js.map → chunk-R2OAN6IP.js.map} +0 -0
- /package/dist/{chunk-CHELXDTO.js.map → chunk-RB6A7OUN.js.map} +0 -0
- /package/dist/{chunk-3EA5LIFJ.js.map → chunk-SIV3JZPP.js.map} +0 -0
- /package/dist/{chunk-IP5SANO2.js.map → chunk-UIKZZ242.js.map} +0 -0
- /package/dist/{chunk-UGFPGWJB.js.map → chunk-URQLO7BX.js.map} +0 -0
- /package/dist/{chunk-WO22UEM3.js.map → chunk-XTEWVF3C.js.map} +0 -0
- /package/dist/{chunk-FCQ7ZYCQ.js.map → chunk-ZGAJB74V.js.map} +0 -0
- /package/dist/{chunk-NBP3YHHS.js.map → chunk-ZGZNLRKF.js.map} +0 -0
- /package/dist/{chunk-C7C5WIIF.js.map → chunk-ZPZ4VVLT.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-SFQ6QNL7.js";
|
|
7
7
|
import {
|
|
8
8
|
StorageManager
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-JHQUIH3W.js";
|
|
10
10
|
import {
|
|
11
11
|
buildLifecycleEventsForMemory,
|
|
12
12
|
sortMemoryLifecycleEvents
|
|
@@ -74,4 +74,4 @@ export {
|
|
|
74
74
|
backupExistingLedger,
|
|
75
75
|
rebuildMemoryLifecycleLedger
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=chunk-
|
|
77
|
+
//# sourceMappingURL=chunk-Q3X7GUAQ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-TBBDFYXW.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JHQUIH3W.js";
|
|
7
7
|
import {
|
|
8
8
|
assertPathInsideRoot
|
|
9
9
|
} from "./chunk-5GPPACXK.js";
|
|
@@ -751,4 +751,4 @@ export {
|
|
|
751
751
|
listMemoryGovernanceRuns,
|
|
752
752
|
readMemoryGovernanceRunArtifact
|
|
753
753
|
};
|
|
754
|
-
//# sourceMappingURL=chunk-
|
|
754
|
+
//# sourceMappingURL=chunk-R2OAN6IP.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-JRZV3767.js";
|
|
5
5
|
import {
|
|
6
6
|
StorageManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JHQUIH3W.js";
|
|
8
8
|
import {
|
|
9
9
|
parseContinuityImprovementLoops
|
|
10
10
|
} from "./chunk-LDXUBPMO.js";
|
|
@@ -1276,4 +1276,4 @@ export {
|
|
|
1276
1276
|
defaultTierMigrationCycleBudget,
|
|
1277
1277
|
CompoundingEngine
|
|
1278
1278
|
};
|
|
1279
|
-
//# sourceMappingURL=chunk-
|
|
1279
|
+
//# sourceMappingURL=chunk-RB6A7OUN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDefaultNamespaceRoot,
|
|
3
3
|
resolveNamespaceStorageRoot
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5IN26V6W.js";
|
|
5
5
|
import {
|
|
6
6
|
getConfiguredNamespaces
|
|
7
7
|
} from "./chunk-W3M34XT4.js";
|
|
@@ -1950,4 +1950,4 @@ export {
|
|
|
1950
1950
|
runNamespaceMaintenancePlan,
|
|
1951
1951
|
runNamespaceMaintenanceBatchPlan
|
|
1952
1952
|
};
|
|
1953
|
-
//# sourceMappingURL=chunk-
|
|
1953
|
+
//# sourceMappingURL=chunk-SIV3JZPP.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPostConsolidationMaterialize
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZPZ4VVLT.js";
|
|
4
4
|
import {
|
|
5
5
|
discoverMemoryExtensions,
|
|
6
6
|
renderExtensionsBlock,
|
|
@@ -220,4 +220,4 @@ export {
|
|
|
220
220
|
buildExtensionsBlockForConsolidation,
|
|
221
221
|
materializeAfterSemanticConsolidation
|
|
222
222
|
};
|
|
223
|
-
//# sourceMappingURL=chunk-
|
|
223
|
+
//# sourceMappingURL=chunk-UIKZZ242.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-ZBJMUXZH.js";
|
|
8
8
|
import {
|
|
9
9
|
StorageManager
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JHQUIH3W.js";
|
|
11
11
|
import {
|
|
12
12
|
getCachedEpisodeMap,
|
|
13
13
|
setCachedEpisodeMap
|
|
@@ -107,4 +107,4 @@ export {
|
|
|
107
107
|
compareVerifiedEpisodeResults,
|
|
108
108
|
searchVerifiedEpisodes
|
|
109
109
|
};
|
|
110
|
-
//# sourceMappingURL=chunk-
|
|
110
|
+
//# sourceMappingURL=chunk-URQLO7BX.js.map
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
reportBufferSurpriseDistribution
|
|
9
|
-
} from "./chunk-YBPYIAA5.js";
|
|
2
|
+
planNamespaceMaintenance,
|
|
3
|
+
readNamespaceMaintenanceLastRanStatuses,
|
|
4
|
+
readNamespaceMaintenanceStatuses,
|
|
5
|
+
runNamespaceMaintenancePlan
|
|
6
|
+
} from "./chunk-SIV3JZPP.js";
|
|
10
7
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
summarizeNamespaceMaintenanceHealth
|
|
15
|
-
} from "./chunk-AVBT5WEW.js";
|
|
8
|
+
listNamespaces
|
|
9
|
+
} from "./chunk-ZGZNLRKF.js";
|
|
16
10
|
import {
|
|
17
11
|
analyzeSessionIntegrity,
|
|
18
12
|
applySessionRepair,
|
|
19
13
|
planSessionRepair
|
|
20
14
|
} from "./chunk-KFY3SGN7.js";
|
|
15
|
+
import {
|
|
16
|
+
resolvePluginEntry
|
|
17
|
+
} from "./chunk-CMTINOFS.js";
|
|
21
18
|
import {
|
|
22
19
|
createEvalBaselineSnapshot,
|
|
23
20
|
getEvalHarnessStatus,
|
|
@@ -33,28 +30,36 @@ import {
|
|
|
33
30
|
resolveNativeKnowledgeStatePath,
|
|
34
31
|
resolveOpenClawWorkspaceStatePath
|
|
35
32
|
} from "./chunk-ZCWIH4LH.js";
|
|
33
|
+
import {
|
|
34
|
+
runConsolidationProvenanceCheck
|
|
35
|
+
} from "./chunk-7XH7VJN4.js";
|
|
36
|
+
import {
|
|
37
|
+
reportBufferSurpriseDistribution
|
|
38
|
+
} from "./chunk-YBPYIAA5.js";
|
|
36
39
|
import {
|
|
37
40
|
parseConfig
|
|
38
41
|
} from "./chunk-C5WN74HH.js";
|
|
39
42
|
import {
|
|
40
43
|
listMemoryGovernanceRuns,
|
|
41
44
|
readMemoryGovernanceRunArtifact
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-R2OAN6IP.js";
|
|
43
46
|
import {
|
|
44
47
|
analyzeGraphHealth
|
|
45
48
|
} from "./chunk-EHQ5HO5T.js";
|
|
46
49
|
import {
|
|
47
50
|
StorageManager
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JHQUIH3W.js";
|
|
49
52
|
import {
|
|
50
53
|
lintWorkspaceFiles
|
|
51
54
|
} from "./chunk-DM2T26WE.js";
|
|
52
55
|
import {
|
|
53
56
|
resolveAccessSetupCapabilities,
|
|
54
57
|
resolveCapabilities,
|
|
58
|
+
resolveConversationContextCapabilities,
|
|
55
59
|
resolveEvalCapabilities,
|
|
56
60
|
resolveGraphConstructionCapabilities,
|
|
57
61
|
resolveIndexingCapabilities,
|
|
62
|
+
resolveNamespaceCapabilities,
|
|
58
63
|
resolvePresentationCapabilities,
|
|
59
64
|
resolveQmdCapabilities
|
|
60
65
|
} from "./chunk-VSF7AAGE.js";
|
|
@@ -67,6 +72,144 @@ import {
|
|
|
67
72
|
import path from "path";
|
|
68
73
|
import { constants as fsConstants } from "fs";
|
|
69
74
|
import { access, mkdir, readFile, readdir, stat, unlink, writeFile } from "fs/promises";
|
|
75
|
+
|
|
76
|
+
// src/maintenance/namespace-maintenance-fanout.ts
|
|
77
|
+
var NAMESPACE_MAINTENANCE_JOBS = [
|
|
78
|
+
"qmd",
|
|
79
|
+
"pattern-reinforcement",
|
|
80
|
+
"contradiction-scan",
|
|
81
|
+
"semantic-consolidation",
|
|
82
|
+
"governance",
|
|
83
|
+
"lifecycle",
|
|
84
|
+
"graph-decay",
|
|
85
|
+
"fact-archival",
|
|
86
|
+
"tier-migration"
|
|
87
|
+
];
|
|
88
|
+
async function runNamespaceMaintenanceFanout(options) {
|
|
89
|
+
if (options.enabled === false) {
|
|
90
|
+
return {
|
|
91
|
+
jobName: options.jobName,
|
|
92
|
+
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
93
|
+
ran: 0,
|
|
94
|
+
skipped: 0,
|
|
95
|
+
failed: 0,
|
|
96
|
+
statuses: []
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
const plan = await planNamespaceMaintenance(options.config, {
|
|
100
|
+
jobName: options.jobName,
|
|
101
|
+
catalog: options.catalog
|
|
102
|
+
});
|
|
103
|
+
return runNamespaceMaintenancePlan(
|
|
104
|
+
options.config,
|
|
105
|
+
plan,
|
|
106
|
+
async (candidate) => {
|
|
107
|
+
return options.runner({
|
|
108
|
+
config: options.config,
|
|
109
|
+
candidate,
|
|
110
|
+
resolveStorage: options.resolveStorage
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
options.catalog
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
async function summarizeNamespaceMaintenanceHealth(config) {
|
|
117
|
+
const generatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
118
|
+
const statuses = await readNamespaceMaintenanceStatuses(config);
|
|
119
|
+
const lastRanStatuses = await readNamespaceMaintenanceLastRanStatuses(config);
|
|
120
|
+
const lastRanByJobNs = /* @__PURE__ */ new Map();
|
|
121
|
+
for (const lr of lastRanStatuses) {
|
|
122
|
+
lastRanByJobNs.set(`${lr.jobName}\0${lr.namespace}`, lr);
|
|
123
|
+
}
|
|
124
|
+
const byJob = /* @__PURE__ */ new Map();
|
|
125
|
+
for (const status of statuses) {
|
|
126
|
+
const bucket = byJob.get(status.jobName);
|
|
127
|
+
if (bucket) {
|
|
128
|
+
bucket.push(status);
|
|
129
|
+
} else {
|
|
130
|
+
byJob.set(status.jobName, [status]);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const knownJobs = new Set(NAMESPACE_MAINTENANCE_JOBS);
|
|
134
|
+
for (const jobName of byJob.keys()) {
|
|
135
|
+
knownJobs.add(jobName);
|
|
136
|
+
}
|
|
137
|
+
const jobs = [];
|
|
138
|
+
let totalRan = 0;
|
|
139
|
+
let totalSkipped = 0;
|
|
140
|
+
let totalFailed = 0;
|
|
141
|
+
for (const jobName of [...knownJobs].sort()) {
|
|
142
|
+
const jobStatuses = byJob.get(jobName) ?? [];
|
|
143
|
+
const ran = jobStatuses.filter((s) => s.state === "ran").length;
|
|
144
|
+
const skipped = jobStatuses.filter((s) => s.state === "skipped").length;
|
|
145
|
+
const failed = jobStatuses.filter((s) => s.state === "failed").length;
|
|
146
|
+
const candidates = [];
|
|
147
|
+
for (const st of jobStatuses) {
|
|
148
|
+
if (typeof st.completedAt === "string") candidates.push(st.completedAt);
|
|
149
|
+
const lr = lastRanByJobNs.get(`${jobName}\0${st.namespace}`);
|
|
150
|
+
if (lr && typeof lr.completedAt === "string") candidates.push(lr.completedAt);
|
|
151
|
+
}
|
|
152
|
+
const lastRunAt = candidates.sort().at(-1) ?? null;
|
|
153
|
+
totalRan += ran;
|
|
154
|
+
totalSkipped += skipped;
|
|
155
|
+
totalFailed += failed;
|
|
156
|
+
jobs.push({
|
|
157
|
+
jobName,
|
|
158
|
+
ran,
|
|
159
|
+
skipped,
|
|
160
|
+
failed,
|
|
161
|
+
lastRunAt,
|
|
162
|
+
namespaces: jobStatuses
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
generatedAt,
|
|
167
|
+
fanoutEnabled: resolveConversationContextCapabilities(config).maintenanceNamespaceFanout !== false,
|
|
168
|
+
namespacesEnabled: resolveNamespaceCapabilities(config).namespaces,
|
|
169
|
+
maxNamespacesPerCycle: config.maintenanceMaxNamespacesPerCycle,
|
|
170
|
+
jobs,
|
|
171
|
+
totalRan,
|
|
172
|
+
totalSkipped,
|
|
173
|
+
totalFailed
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
function formatNamespaceMaintenanceHealthText(summary) {
|
|
177
|
+
const lines = [
|
|
178
|
+
"=== Namespace Maintenance ===",
|
|
179
|
+
"",
|
|
180
|
+
` fanout: ${summary.fanoutEnabled ? "enabled" : "disabled"}`,
|
|
181
|
+
` namespaces: ${summary.namespacesEnabled ? "enabled" : "disabled"}`,
|
|
182
|
+
` max/cycle: ${summary.maxNamespacesPerCycle}`,
|
|
183
|
+
` total ran: ${summary.totalRan}`,
|
|
184
|
+
` total skipped: ${summary.totalSkipped}`,
|
|
185
|
+
` total failed: ${summary.totalFailed}`,
|
|
186
|
+
""
|
|
187
|
+
];
|
|
188
|
+
if (summary.totalRan === 0 && summary.totalSkipped === 0 && summary.totalFailed === 0) {
|
|
189
|
+
lines.push(" (no maintenance status recorded yet)");
|
|
190
|
+
return lines.join("\n");
|
|
191
|
+
}
|
|
192
|
+
lines.push(" Per-job breakdown:");
|
|
193
|
+
for (const job of summary.jobs) {
|
|
194
|
+
const parts = [
|
|
195
|
+
`ran=${job.ran}`,
|
|
196
|
+
`skipped=${job.skipped}`,
|
|
197
|
+
`failed=${job.failed}`
|
|
198
|
+
];
|
|
199
|
+
if (job.lastRunAt) {
|
|
200
|
+
parts.push(`last=${job.lastRunAt}`);
|
|
201
|
+
}
|
|
202
|
+
lines.push(` ${job.jobName}: ${parts.join(", ")}`);
|
|
203
|
+
const failedNs = job.namespaces.filter((n) => n.state === "failed");
|
|
204
|
+
for (const ns of failedNs) {
|
|
205
|
+
const detail = ns.error ? `: ${ns.error}` : "";
|
|
206
|
+
lines.push(` ! ${ns.namespace} failed (reason=${ns.reason ?? "unknown"})${detail}`);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
return lines.join("\n");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// src/operator-toolkit.ts
|
|
70
213
|
var OPENCLAW_REMNIC_PLUGIN_IDS = ["openclaw-remnic", "openclaw-engram"];
|
|
71
214
|
function getOpenClawPluginEntries(raw) {
|
|
72
215
|
const plugins = raw["plugins"] && typeof raw["plugins"] === "object" && !Array.isArray(raw["plugins"]) ? raw["plugins"] : void 0;
|
|
@@ -1438,6 +1581,9 @@ async function runOperatorRepair(options) {
|
|
|
1438
1581
|
}
|
|
1439
1582
|
|
|
1440
1583
|
export {
|
|
1584
|
+
runNamespaceMaintenanceFanout,
|
|
1585
|
+
summarizeNamespaceMaintenanceHealth,
|
|
1586
|
+
formatNamespaceMaintenanceHealthText,
|
|
1441
1587
|
runOperatorSetup,
|
|
1442
1588
|
runOperatorConfigReview,
|
|
1443
1589
|
summarizeProvenanceCoverage,
|
|
@@ -1453,4 +1599,4 @@ export {
|
|
|
1453
1599
|
runBenchmarkRecall,
|
|
1454
1600
|
runOperatorRepair
|
|
1455
1601
|
};
|
|
1456
|
-
//# sourceMappingURL=chunk-
|
|
1602
|
+
//# sourceMappingURL=chunk-WK3NK6SP.js.map
|