@remnic/core 9.3.717 → 9.3.718
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 +5 -5
- package/dist/access-boundary.js +9 -9
- package/dist/access-cli.js +23 -23
- package/dist/access-http.d.ts +5 -5
- package/dist/access-http.js +13 -13
- package/dist/access-mcp.d.ts +5 -5
- package/dist/access-mcp.js +12 -12
- package/dist/access-operations-batch.js +10 -10
- package/dist/access-operations.d.ts +5 -5
- package/dist/access-operations.js +11 -11
- package/dist/{access-service-d4Tk-Dlr.d.ts → access-service-CZbnt0t2.d.ts} +3 -3
- package/dist/access-service.d.ts +5 -5
- package/dist/access-service.js +8 -8
- package/dist/access-surface-catalog.d.ts +5 -5
- 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/active-recall.js +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +4 -4
- package/dist/briefing.d.ts +3 -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-CbR0CsUw.d.ts → catalog-CEYlMs9X.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/{chunk-JEIROMLX.js → chunk-2COL35PK.js} +95 -9
- package/dist/chunk-2COL35PK.js.map +1 -0
- package/dist/{chunk-XZTUMWKQ.js → chunk-2PTBLS2S.js} +2 -2
- package/dist/{chunk-2Y6LMOQQ.js → chunk-2VHMVWPU.js} +2 -2
- package/dist/{chunk-6UU43ZGD.js → chunk-4KZGLDJJ.js} +2 -2
- package/dist/{chunk-K44MIN6D.js → chunk-5RHM43BJ.js} +3 -3
- package/dist/{chunk-2B43BYYZ.js → chunk-72VDBALG.js} +18 -18
- package/dist/{chunk-UY4JMEAK.js → chunk-7EEVXW7X.js} +2 -2
- package/dist/{chunk-XCTDHF7U.js → chunk-A5TUPZ3N.js} +33 -1
- package/dist/chunk-A5TUPZ3N.js.map +1 -0
- package/dist/{chunk-WI4QX7GH.js → chunk-A66YRSOS.js} +2 -2
- package/dist/{chunk-EM22PCQR.js → chunk-ANI5DUAE.js} +8 -6
- package/dist/{chunk-EM22PCQR.js.map → chunk-ANI5DUAE.js.map} +1 -1
- package/dist/{chunk-VZQXJNBD.js → chunk-APUJIMDM.js} +2 -2
- package/dist/{chunk-MPHDVHIB.js → chunk-DIFU33GU.js} +2 -2
- package/dist/{chunk-DXGS5YOQ.js → chunk-EH27LHML.js} +2 -2
- package/dist/{chunk-YAINYEM3.js → chunk-F3PVXKHP.js} +25 -1398
- package/dist/chunk-F3PVXKHP.js.map +1 -0
- package/dist/{chunk-DZYARLJ7.js → chunk-HLIR3RJ7.js} +2 -2
- package/dist/{chunk-6FUJ2VYY.js → chunk-JAKYZGV4.js} +3 -3
- package/dist/{chunk-ZAVTEQFM.js → chunk-JIZGYQYH.js} +3 -3
- package/dist/{chunk-QOIONSOI.js → chunk-KRGC4EDX.js} +2 -2
- package/dist/{chunk-AJOIM6UR.js → chunk-L5ASZA2F.js} +2 -2
- package/dist/{chunk-I56LKMF7.js → chunk-LXSG4L55.js} +2 -2
- package/dist/{chunk-MSVSP5VO.js → chunk-N3DUH6OO.js} +1 -1
- package/dist/chunk-N3DUH6OO.js.map +1 -0
- package/dist/{chunk-CTUWGJRI.js → chunk-NFRBADNR.js} +166 -28
- package/dist/chunk-NFRBADNR.js.map +1 -0
- package/dist/chunk-OJU73BUX.js +1688 -0
- package/dist/chunk-OJU73BUX.js.map +1 -0
- package/dist/{chunk-JVEMUX6L.js → chunk-OZ2KQ7HF.js} +2 -2
- package/dist/{chunk-OUDAU3T5.js → chunk-P5IPFZVH.js} +4 -4
- package/dist/{chunk-KHQ433G5.js → chunk-REWQAFSA.js} +2 -2
- package/dist/{chunk-V7GDTQ6I.js → chunk-S35FX6MU.js} +2 -2
- package/dist/{chunk-MTHNJCOJ.js → chunk-S3OPGGZB.js} +2 -2
- package/dist/{chunk-ZXLSNG3T.js → chunk-U5H7WHTS.js} +6 -4
- package/dist/{chunk-ZXLSNG3T.js.map → chunk-U5H7WHTS.js.map} +1 -1
- package/dist/{chunk-BZAK3RBN.js → chunk-UCJ5CDTK.js} +6 -6
- package/dist/{chunk-BF2426TN.js → chunk-URM3HW2R.js} +2 -2
- package/dist/{chunk-VO4UICII.js → chunk-YTZLBBEB.js} +2 -2
- package/dist/{chunk-OC56UWV5.js → chunk-YYOK4GVF.js} +2 -2
- package/dist/{cli-insNLYs6.d.ts → cli-1orcdXOY.d.ts} +3 -3
- package/dist/cli.d.ts +6 -6
- package/dist/cli.js +27 -27
- 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/config.js +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/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 +4 -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/identity-continuity.d.ts +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +33 -33
- 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/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 +5 -5
- 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 +9 -9
- package/dist/orchestration/maintenance.d.ts +2 -2
- package/dist/orchestration/maintenance.js +5 -5
- package/dist/{orchestrator-XPKhY2OV.d.ts → orchestrator-kOxredSr.d.ts} +20 -3
- package/dist/orchestrator.d.ts +4 -4
- package/dist/orchestrator.js +16 -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-explain-renderer.js +3 -3
- 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-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +2 -2
- 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/schemas.d.ts +22 -22
- 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-DSjMDZ1u.d.ts → semantic-consolidation-B58v3S-a.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/types.d.ts +12 -12
- package/dist/{types-D9dwzU_x.d.ts → types-ACmDOScJ.d.ts} +36 -0
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +3 -3
- package/package.json +2 -2
- package/src/briefing.ts +32 -0
- package/src/config.ts +32 -0
- package/src/correction/index.ts +24 -0
- package/src/correction/passive-capture.test.ts +500 -0
- package/src/correction/passive-capture.ts +335 -0
- package/src/correction/passive-correction-detector.test.ts +263 -0
- package/src/correction/passive-correction-detector.ts +325 -0
- package/src/correction/passive-correction-notifications.ts +123 -0
- package/src/orchestrator.ts +196 -12
- package/src/types.ts +36 -0
- package/dist/chunk-2KF4HDG2.js +0 -24
- package/dist/chunk-2KF4HDG2.js.map +0 -1
- package/dist/chunk-CTUWGJRI.js.map +0 -1
- package/dist/chunk-JEIROMLX.js.map +0 -1
- package/dist/chunk-MSVSP5VO.js.map +0 -1
- package/dist/chunk-XCTDHF7U.js.map +0 -1
- package/dist/chunk-YAINYEM3.js.map +0 -1
- /package/dist/{chunk-XZTUMWKQ.js.map → chunk-2PTBLS2S.js.map} +0 -0
- /package/dist/{chunk-2Y6LMOQQ.js.map → chunk-2VHMVWPU.js.map} +0 -0
- /package/dist/{chunk-6UU43ZGD.js.map → chunk-4KZGLDJJ.js.map} +0 -0
- /package/dist/{chunk-K44MIN6D.js.map → chunk-5RHM43BJ.js.map} +0 -0
- /package/dist/{chunk-2B43BYYZ.js.map → chunk-72VDBALG.js.map} +0 -0
- /package/dist/{chunk-UY4JMEAK.js.map → chunk-7EEVXW7X.js.map} +0 -0
- /package/dist/{chunk-WI4QX7GH.js.map → chunk-A66YRSOS.js.map} +0 -0
- /package/dist/{chunk-VZQXJNBD.js.map → chunk-APUJIMDM.js.map} +0 -0
- /package/dist/{chunk-MPHDVHIB.js.map → chunk-DIFU33GU.js.map} +0 -0
- /package/dist/{chunk-DXGS5YOQ.js.map → chunk-EH27LHML.js.map} +0 -0
- /package/dist/{chunk-DZYARLJ7.js.map → chunk-HLIR3RJ7.js.map} +0 -0
- /package/dist/{chunk-6FUJ2VYY.js.map → chunk-JAKYZGV4.js.map} +0 -0
- /package/dist/{chunk-ZAVTEQFM.js.map → chunk-JIZGYQYH.js.map} +0 -0
- /package/dist/{chunk-QOIONSOI.js.map → chunk-KRGC4EDX.js.map} +0 -0
- /package/dist/{chunk-AJOIM6UR.js.map → chunk-L5ASZA2F.js.map} +0 -0
- /package/dist/{chunk-I56LKMF7.js.map → chunk-LXSG4L55.js.map} +0 -0
- /package/dist/{chunk-JVEMUX6L.js.map → chunk-OZ2KQ7HF.js.map} +0 -0
- /package/dist/{chunk-OUDAU3T5.js.map → chunk-P5IPFZVH.js.map} +0 -0
- /package/dist/{chunk-KHQ433G5.js.map → chunk-REWQAFSA.js.map} +0 -0
- /package/dist/{chunk-V7GDTQ6I.js.map → chunk-S35FX6MU.js.map} +0 -0
- /package/dist/{chunk-MTHNJCOJ.js.map → chunk-S3OPGGZB.js.map} +0 -0
- /package/dist/{chunk-BZAK3RBN.js.map → chunk-UCJ5CDTK.js.map} +0 -0
- /package/dist/{chunk-BF2426TN.js.map → chunk-URM3HW2R.js.map} +0 -0
- /package/dist/{chunk-VO4UICII.js.map → chunk-YTZLBBEB.js.map} +0 -0
- /package/dist/{chunk-OC56UWV5.js.map → chunk-YYOK4GVF.js.map} +0 -0
package/dist/transfer/types.d.ts
CHANGED
|
@@ -313,13 +313,13 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
313
313
|
peerProfiles: boolean;
|
|
314
314
|
}>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
+
schemaVersion: string;
|
|
316
317
|
includes: {
|
|
317
318
|
procedural: boolean;
|
|
318
319
|
taxonomy: boolean;
|
|
319
320
|
identityAnchors: boolean;
|
|
320
321
|
peerProfiles: boolean;
|
|
321
322
|
};
|
|
322
|
-
schemaVersion: string;
|
|
323
323
|
id: string;
|
|
324
324
|
version: string;
|
|
325
325
|
description: string;
|
|
@@ -334,13 +334,13 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
334
334
|
directAnswerEnabled: boolean;
|
|
335
335
|
};
|
|
336
336
|
}, {
|
|
337
|
+
schemaVersion: string;
|
|
337
338
|
includes: {
|
|
338
339
|
procedural: boolean;
|
|
339
340
|
taxonomy: boolean;
|
|
340
341
|
identityAnchors: boolean;
|
|
341
342
|
peerProfiles: boolean;
|
|
342
343
|
};
|
|
343
|
-
schemaVersion: string;
|
|
344
344
|
id: string;
|
|
345
345
|
version: string;
|
|
346
346
|
description: string;
|
|
@@ -464,13 +464,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
464
464
|
peerProfiles: boolean;
|
|
465
465
|
}>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
schemaVersion: string;
|
|
467
468
|
includes: {
|
|
468
469
|
procedural: boolean;
|
|
469
470
|
taxonomy: boolean;
|
|
470
471
|
identityAnchors: boolean;
|
|
471
472
|
peerProfiles: boolean;
|
|
472
473
|
};
|
|
473
|
-
schemaVersion: string;
|
|
474
474
|
id: string;
|
|
475
475
|
version: string;
|
|
476
476
|
description: string;
|
|
@@ -485,13 +485,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
485
485
|
directAnswerEnabled: boolean;
|
|
486
486
|
};
|
|
487
487
|
}, {
|
|
488
|
+
schemaVersion: string;
|
|
488
489
|
includes: {
|
|
489
490
|
procedural: boolean;
|
|
490
491
|
taxonomy: boolean;
|
|
491
492
|
identityAnchors: boolean;
|
|
492
493
|
peerProfiles: boolean;
|
|
493
494
|
};
|
|
494
|
-
schemaVersion: string;
|
|
495
495
|
id: string;
|
|
496
496
|
version: string;
|
|
497
497
|
description: string;
|
|
@@ -518,13 +518,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
518
518
|
pluginVersion: string;
|
|
519
519
|
includesTranscripts: boolean;
|
|
520
520
|
capsule: {
|
|
521
|
+
schemaVersion: string;
|
|
521
522
|
includes: {
|
|
522
523
|
procedural: boolean;
|
|
523
524
|
taxonomy: boolean;
|
|
524
525
|
identityAnchors: boolean;
|
|
525
526
|
peerProfiles: boolean;
|
|
526
527
|
};
|
|
527
|
-
schemaVersion: string;
|
|
528
528
|
id: string;
|
|
529
529
|
version: string;
|
|
530
530
|
description: string;
|
|
@@ -551,13 +551,13 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
551
551
|
pluginVersion: string;
|
|
552
552
|
includesTranscripts: boolean;
|
|
553
553
|
capsule: {
|
|
554
|
+
schemaVersion: string;
|
|
554
555
|
includes: {
|
|
555
556
|
procedural: boolean;
|
|
556
557
|
taxonomy: boolean;
|
|
557
558
|
identityAnchors: boolean;
|
|
558
559
|
peerProfiles: boolean;
|
|
559
560
|
};
|
|
560
|
-
schemaVersion: string;
|
|
561
561
|
id: string;
|
|
562
562
|
version: string;
|
|
563
563
|
description: string;
|
|
@@ -683,13 +683,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
683
683
|
peerProfiles: boolean;
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
|
+
schemaVersion: string;
|
|
686
687
|
includes: {
|
|
687
688
|
procedural: boolean;
|
|
688
689
|
taxonomy: boolean;
|
|
689
690
|
identityAnchors: boolean;
|
|
690
691
|
peerProfiles: boolean;
|
|
691
692
|
};
|
|
692
|
-
schemaVersion: string;
|
|
693
693
|
id: string;
|
|
694
694
|
version: string;
|
|
695
695
|
description: string;
|
|
@@ -704,13 +704,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
704
704
|
directAnswerEnabled: boolean;
|
|
705
705
|
};
|
|
706
706
|
}, {
|
|
707
|
+
schemaVersion: string;
|
|
707
708
|
includes: {
|
|
708
709
|
procedural: boolean;
|
|
709
710
|
taxonomy: boolean;
|
|
710
711
|
identityAnchors: boolean;
|
|
711
712
|
peerProfiles: boolean;
|
|
712
713
|
};
|
|
713
|
-
schemaVersion: string;
|
|
714
714
|
id: string;
|
|
715
715
|
version: string;
|
|
716
716
|
description: string;
|
|
@@ -737,13 +737,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
737
737
|
pluginVersion: string;
|
|
738
738
|
includesTranscripts: boolean;
|
|
739
739
|
capsule: {
|
|
740
|
+
schemaVersion: string;
|
|
740
741
|
includes: {
|
|
741
742
|
procedural: boolean;
|
|
742
743
|
taxonomy: boolean;
|
|
743
744
|
identityAnchors: boolean;
|
|
744
745
|
peerProfiles: boolean;
|
|
745
746
|
};
|
|
746
|
-
schemaVersion: string;
|
|
747
747
|
id: string;
|
|
748
748
|
version: string;
|
|
749
749
|
description: string;
|
|
@@ -770,13 +770,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
770
770
|
pluginVersion: string;
|
|
771
771
|
includesTranscripts: boolean;
|
|
772
772
|
capsule: {
|
|
773
|
+
schemaVersion: string;
|
|
773
774
|
includes: {
|
|
774
775
|
procedural: boolean;
|
|
775
776
|
taxonomy: boolean;
|
|
776
777
|
identityAnchors: boolean;
|
|
777
778
|
peerProfiles: boolean;
|
|
778
779
|
};
|
|
779
|
-
schemaVersion: string;
|
|
780
780
|
id: string;
|
|
781
781
|
version: string;
|
|
782
782
|
description: string;
|
|
@@ -819,13 +819,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
819
819
|
pluginVersion: string;
|
|
820
820
|
includesTranscripts: boolean;
|
|
821
821
|
capsule: {
|
|
822
|
+
schemaVersion: string;
|
|
822
823
|
includes: {
|
|
823
824
|
procedural: boolean;
|
|
824
825
|
taxonomy: boolean;
|
|
825
826
|
identityAnchors: boolean;
|
|
826
827
|
peerProfiles: boolean;
|
|
827
828
|
};
|
|
828
|
-
schemaVersion: string;
|
|
829
829
|
id: string;
|
|
830
830
|
version: string;
|
|
831
831
|
description: string;
|
|
@@ -858,13 +858,13 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
858
858
|
pluginVersion: string;
|
|
859
859
|
includesTranscripts: boolean;
|
|
860
860
|
capsule: {
|
|
861
|
+
schemaVersion: string;
|
|
861
862
|
includes: {
|
|
862
863
|
procedural: boolean;
|
|
863
864
|
taxonomy: boolean;
|
|
864
865
|
identityAnchors: boolean;
|
|
865
866
|
peerProfiles: boolean;
|
|
866
867
|
};
|
|
867
|
-
schemaVersion: string;
|
|
868
868
|
id: string;
|
|
869
869
|
version: string;
|
|
870
870
|
description: string;
|
|
@@ -1133,6 +1133,29 @@ interface PluginConfig {
|
|
|
1133
1133
|
* `24`. Parsed from `correction.planTtlHours` / `correctionPlanTtlHours`.
|
|
1134
1134
|
*/
|
|
1135
1135
|
correctionPlanTtlHours: number;
|
|
1136
|
+
/**
|
|
1137
|
+
* Passive correction capture (issue #1581) — detects corrections expressed
|
|
1138
|
+
* passively in conversation turns during extraction and routes them to the
|
|
1139
|
+
* Correction Contract (#1580). `"off"` disables detection entirely; `"queue"`
|
|
1140
|
+
* plans corrections for human review (conservative); `"auto"` applies
|
|
1141
|
+
* immediately when all safety guards pass, otherwise falls back to queue.
|
|
1142
|
+
* Default `"off"` — operators opt in (rule 48). Parsed from
|
|
1143
|
+
* `correctionCapture.mode` / `correctionCaptureMode`.
|
|
1144
|
+
*/
|
|
1145
|
+
correctionCaptureMode: "off" | "queue" | "auto";
|
|
1146
|
+
/**
|
|
1147
|
+
* Minimum planner confidence for auto-apply (issue #1581). Plans below this
|
|
1148
|
+
* floor are queued even in `"auto"` mode. Default `0.85`. Parsed from
|
|
1149
|
+
* `correctionCapture.confidenceFloor` / `correctionCaptureConfidenceFloor`.
|
|
1150
|
+
*/
|
|
1151
|
+
correctionCaptureConfidenceFloor: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* Maximum affected memories for auto-apply (issue #1581). Plans touching more
|
|
1154
|
+
* memories than this are queued even in `"auto"` mode — a blast-radius cap.
|
|
1155
|
+
* Default `2`. Parsed from `correctionCapture.autoApplyMaxAffected` /
|
|
1156
|
+
* `correctionCaptureAutoApplyMaxAffected`.
|
|
1157
|
+
*/
|
|
1158
|
+
correctionCaptureAutoApplyMaxAffected: number;
|
|
1136
1159
|
/**
|
|
1137
1160
|
* Master gate for the tombstone non-resurrection invariant. When `true`
|
|
1138
1161
|
* (default), a fact that matches an active tombstone at the storage
|
|
@@ -2346,6 +2369,19 @@ interface BriefingResult {
|
|
|
2346
2369
|
* Allows callers to distinguish "no events today" from "source unavailable".
|
|
2347
2370
|
*/
|
|
2348
2371
|
calendarSourceErrors?: BriefingCalendarSourceError[];
|
|
2372
|
+
/**
|
|
2373
|
+
* Auto-applied passive corrections drained from the notification queue at
|
|
2374
|
+
* briefing time (issue #1581). Each carries a one-line summary and the undo
|
|
2375
|
+
* command. Drained exactly once — the queue file is cleared on read, so a
|
|
2376
|
+
* notification appears in at most one briefing. Absent when the correction
|
|
2377
|
+
* capture feature is off or no corrections were auto-applied.
|
|
2378
|
+
*/
|
|
2379
|
+
correctionNotifications?: ReadonlyArray<{
|
|
2380
|
+
planId: string;
|
|
2381
|
+
summary: string;
|
|
2382
|
+
undoCommand: string;
|
|
2383
|
+
createdAt: string;
|
|
2384
|
+
}>;
|
|
2349
2385
|
}
|
|
2350
2386
|
/**
|
|
2351
2387
|
* Settings for the Codex CLI connector. These are consumed by
|
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 { au as AccessTrackingEntry, A as ActiveRecallChatType, d as ActiveRecallModelFallbackPolicy, b as ActiveRecallPromptStyle, a as ActiveRecallQueryMode, c as ActiveRecallThinking, J as AgentAccessAuthToken, b8 as AgentAccessHttpConfig, b9 as AgentDefaultsConfig, ba as AgentPersona, j as AgentPersonaModelConfig, bb as BehaviorLoopAdjustment, e as BehaviorLoopPolicyState, bc as BehaviorSignalDirection, B as BehaviorSignalEvent, bd as BehaviorSignalType, aH as BootstrapOptions, aI as BootstrapResult, r as BriefingActiveThread, be as BriefingCalendarSourceError, aU as BriefingConfig, p as BriefingFocus, o as BriefingFollowup, aV as BriefingOpenCommitment, t as BriefingRecentEntity, s as BriefingResult, n as BriefingSections, aW as BriefingWindow, bf as BufferEntryState, ap as BufferState, z as BufferSurpriseEvent, u as BufferTurn, q as CalendarEvent, C as CalendarSource, bg as CaptureMode, bh as ChatConfig, v as Checkpoint, bi as CodexCliReasoningEffort, bj as CodexCompactionFlushMode, aX as CodexCompatConfig, bk as CodexConnectorConfig, aG as CodingContext, bl as CodingKnowledgeConfig, aR as CodingModeConfig, bm as CompressionGuidelineActivationState, N as CompressionGuidelineOptimizerActionSummary, K as CompressionGuidelineOptimizerEventCounts, O as CompressionGuidelineOptimizerRuleUpdate, bn as CompressionGuidelineOptimizerSourceWindow, X as CompressionGuidelineOptimizerState, bo as ConfidenceTier, bp as ConsolidationAction, bq as ConsolidationItem, aJ as ConsolidationObservation, a1 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, aY as DEFAULT_RECALL_DISCLOSURE, a2 as DaySummaryResult, bx as DreamingConfig, by as DreamingNarrativePromptStyle, bz as DreamsDeepSleepConfig, bA as DreamsLightSleepConfig, aP as DreamsPhase, bB as DreamsPhaseStatus, bC as DreamsPhasesConfig, bD as DreamsRemConfig, aQ as DreamsRunResult, aO as DreamsStatusResult, bE as EngramTraceEvent, at as EntityActivityEntry, E as EntityFile, Y as EntityMention, as as EntityRelationship, Z as EntitySchemaDefinition, _ as EntitySchemaSectionDefinition, $ as EntityStructuredSection, aK as EntityTimelineEntry, aZ as ExtractedFact, bF as ExtractedProcedureStep, bG as ExtractedQuestion, bH as ExtractedReasoningTrace, bI as ExtractedReasoningTraceStep, bJ as ExtractedRelationship, bK as ExtractionPassSource, a0 as ExtractionResult, F as FaithfulnessFrontmatter, ar as FileHygieneConfig, G as GatewayConfig, bL as GitHubLiveConnectorConfig, bM as GmailLiveConnectorConfig, bN as GoogleDriveLiveConnectorConfig, bO as HeartbeatConfig, bP as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, y as ImportanceLevel, a9 as ImportanceScore, w as LifecycleState, L as LiveConnectorsConfig, bQ as LlmTraceCallback, bR as LlmTraceEvent, ac as MemoryActionEligibilityContext, a_ as MemoryActionEligibilitySource, W as MemoryActionEvent, bS as MemoryActionOutcome, bT as MemoryActionPolicyDecision, ad as MemoryActionPolicyResult, bU as MemoryActionStatus, U as MemoryActionType, M as MemoryCategory, g as MemoryFile, k as MemoryFrontmatter, aa as MemoryIntent, m as MemoryLifecycleEvent, ae as MemoryLifecycleEventType, af as MemoryLifecycleStateSummary, ao as MemoryLink, bV as MemoryLinkType, a$ as MemoryObservation, bW as MemoryOsPresetName, l as MemoryProjectionCurrentState, b0 as MemoryScope, f as MemoryStatus, av as MemorySummary, aq as MetaState, bX as ModelApi, bY as ModelDefinitionConfig, bZ as ModelProviderAuthMode, ag as ModelProviderConfig, b_ as NamespacePolicy, ah as NativeKnowledgeConfig, b$ as NativeKnowledgeFolderRuleConfig, c0 as NativeKnowledgeObsidianVaultConfig, c1 as NativeKnowledgeOpenClawWorkspaceConfig, c2 as NotionLiveConnectorConfig, P as PluginConfig, x as PolicyClass, c3 as PrincipalFromSessionKeyMode, c4 as PrincipalRule, c5 as ProceduralConfig, aj as ProvenanceConfig, ai as ProvenanceSource, ab as QmdSearchExplain, Q as QmdSearchResult, c6 as QuestionEntry, b1 as RECALL_DISCLOSURE_LEVELS, c7 as ReasoningEffort, i as RecallDisclosure, c8 as RecallPipelineConfig, h as RecallPlanMode, c9 as RecallSectionConfig, R as RecallTierExplain, ca as RecallTraceEvent, cb as RelevanceFeedback, ak as RetrievalTier, cc as SPECULATIVE_TTL_DAYS, cd as ScopeProfileAutoPromoteConfig, aN as ScopeProfileConfig, aL as ScopeProfileLayerId, aM as ScopeProfilePromotionTarget, ce as ScopeProfileTeamProjectConfig, cf as ScopeTeamConfig, cg as ScoredEntity, D as SecretRef, ch as SemanticChunkingConfigShape, S as SessionObserverBandConfig, ci as SignalLevel, al as SignalScanResult, cj as SlotBehaviorConfig, ck as SlotMismatchMode, an as TopicScore, T as TranscriptEntry, cl as TriggerMode, V as VerificationState, cm as confidenceTier, b7 as isRecallDisclosure } from './types-
|
|
3
|
+
export { au as AccessTrackingEntry, A as ActiveRecallChatType, d as ActiveRecallModelFallbackPolicy, b as ActiveRecallPromptStyle, a as ActiveRecallQueryMode, c as ActiveRecallThinking, J as AgentAccessAuthToken, b8 as AgentAccessHttpConfig, b9 as AgentDefaultsConfig, ba as AgentPersona, j as AgentPersonaModelConfig, bb as BehaviorLoopAdjustment, e as BehaviorLoopPolicyState, bc as BehaviorSignalDirection, B as BehaviorSignalEvent, bd as BehaviorSignalType, aH as BootstrapOptions, aI as BootstrapResult, r as BriefingActiveThread, be as BriefingCalendarSourceError, aU as BriefingConfig, p as BriefingFocus, o as BriefingFollowup, aV as BriefingOpenCommitment, t as BriefingRecentEntity, s as BriefingResult, n as BriefingSections, aW as BriefingWindow, bf as BufferEntryState, ap as BufferState, z as BufferSurpriseEvent, u as BufferTurn, q as CalendarEvent, C as CalendarSource, bg as CaptureMode, bh as ChatConfig, v as Checkpoint, bi as CodexCliReasoningEffort, bj as CodexCompactionFlushMode, aX as CodexCompatConfig, bk as CodexConnectorConfig, aG as CodingContext, bl as CodingKnowledgeConfig, aR as CodingModeConfig, bm as CompressionGuidelineActivationState, N as CompressionGuidelineOptimizerActionSummary, K as CompressionGuidelineOptimizerEventCounts, O as CompressionGuidelineOptimizerRuleUpdate, bn as CompressionGuidelineOptimizerSourceWindow, X as CompressionGuidelineOptimizerState, bo as ConfidenceTier, bp as ConsolidationAction, bq as ConsolidationItem, aJ as ConsolidationObservation, a1 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, aY as DEFAULT_RECALL_DISCLOSURE, a2 as DaySummaryResult, bx as DreamingConfig, by as DreamingNarrativePromptStyle, bz as DreamsDeepSleepConfig, bA as DreamsLightSleepConfig, aP as DreamsPhase, bB as DreamsPhaseStatus, bC as DreamsPhasesConfig, bD as DreamsRemConfig, aQ as DreamsRunResult, aO as DreamsStatusResult, bE as EngramTraceEvent, at as EntityActivityEntry, E as EntityFile, Y as EntityMention, as as EntityRelationship, Z as EntitySchemaDefinition, _ as EntitySchemaSectionDefinition, $ as EntityStructuredSection, aK as EntityTimelineEntry, aZ as ExtractedFact, bF as ExtractedProcedureStep, bG as ExtractedQuestion, bH as ExtractedReasoningTrace, bI as ExtractedReasoningTraceStep, bJ as ExtractedRelationship, bK as ExtractionPassSource, a0 as ExtractionResult, F as FaithfulnessFrontmatter, ar as FileHygieneConfig, G as GatewayConfig, bL as GitHubLiveConnectorConfig, bM as GmailLiveConnectorConfig, bN as GoogleDriveLiveConnectorConfig, bO as HeartbeatConfig, bP as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, y as ImportanceLevel, a9 as ImportanceScore, w as LifecycleState, L as LiveConnectorsConfig, bQ as LlmTraceCallback, bR as LlmTraceEvent, ac as MemoryActionEligibilityContext, a_ as MemoryActionEligibilitySource, W as MemoryActionEvent, bS as MemoryActionOutcome, bT as MemoryActionPolicyDecision, ad as MemoryActionPolicyResult, bU as MemoryActionStatus, U as MemoryActionType, M as MemoryCategory, g as MemoryFile, k as MemoryFrontmatter, aa as MemoryIntent, m as MemoryLifecycleEvent, ae as MemoryLifecycleEventType, af as MemoryLifecycleStateSummary, ao as MemoryLink, bV as MemoryLinkType, a$ as MemoryObservation, bW as MemoryOsPresetName, l as MemoryProjectionCurrentState, b0 as MemoryScope, f as MemoryStatus, av as MemorySummary, aq as MetaState, bX as ModelApi, bY as ModelDefinitionConfig, bZ as ModelProviderAuthMode, ag as ModelProviderConfig, b_ as NamespacePolicy, ah as NativeKnowledgeConfig, b$ as NativeKnowledgeFolderRuleConfig, c0 as NativeKnowledgeObsidianVaultConfig, c1 as NativeKnowledgeOpenClawWorkspaceConfig, c2 as NotionLiveConnectorConfig, P as PluginConfig, x as PolicyClass, c3 as PrincipalFromSessionKeyMode, c4 as PrincipalRule, c5 as ProceduralConfig, aj as ProvenanceConfig, ai as ProvenanceSource, ab as QmdSearchExplain, Q as QmdSearchResult, c6 as QuestionEntry, b1 as RECALL_DISCLOSURE_LEVELS, c7 as ReasoningEffort, i as RecallDisclosure, c8 as RecallPipelineConfig, h as RecallPlanMode, c9 as RecallSectionConfig, R as RecallTierExplain, ca as RecallTraceEvent, cb as RelevanceFeedback, ak as RetrievalTier, cc as SPECULATIVE_TTL_DAYS, cd as ScopeProfileAutoPromoteConfig, aN as ScopeProfileConfig, aL as ScopeProfileLayerId, aM as ScopeProfilePromotionTarget, ce as ScopeProfileTeamProjectConfig, cf as ScopeTeamConfig, cg as ScoredEntity, D as SecretRef, ch as SemanticChunkingConfigShape, S as SessionObserverBandConfig, ci as SignalLevel, al as SignalScanResult, cj as SlotBehaviorConfig, ck as SlotMismatchMode, an as TopicScore, T as TranscriptEntry, cl as TriggerMode, V as VerificationState, cm as confidenceTier, b7 as isRecallDisclosure } from './types-ACmDOScJ.js';
|
package/dist/types.js
CHANGED
package/dist/verified-recall.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compareVerifiedEpisodeResults,
|
|
3
3
|
searchVerifiedEpisodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S35FX6MU.js";
|
|
5
5
|
import "./chunk-7FL4CNPV.js";
|
|
6
6
|
import "./chunk-ZBJMUXZH.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-YYOK4GVF.js";
|
|
8
8
|
import "./chunk-3JJWNZTT.js";
|
|
9
9
|
import "./chunk-M7XQSUBB.js";
|
|
10
10
|
import "./chunk-5UZXUTVO.js";
|
|
@@ -14,7 +14,7 @@ import "./chunk-6CIAGZ6X.js";
|
|
|
14
14
|
import "./chunk-J6A3CX5N.js";
|
|
15
15
|
import "./chunk-SVOZFLIQ.js";
|
|
16
16
|
import "./chunk-LTJAMRGI.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-N3DUH6OO.js";
|
|
18
18
|
import "./chunk-RULE4VG5.js";
|
|
19
19
|
import "./chunk-SCU65EZI.js";
|
|
20
20
|
import "./chunk-MB5RSUW6.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.718",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -2966,7 +2966,7 @@
|
|
|
2966
2966
|
"core"
|
|
2967
2967
|
],
|
|
2968
2968
|
"peerDependencies": {
|
|
2969
|
-
"@remnic/coding-graph": "^9.3.
|
|
2969
|
+
"@remnic/coding-graph": "^9.3.718"
|
|
2970
2970
|
},
|
|
2971
2971
|
"peerDependenciesMeta": {
|
|
2972
2972
|
"@remnic/coding-graph": {
|
package/src/briefing.ts
CHANGED
|
@@ -20,6 +20,7 @@ import os from "node:os";
|
|
|
20
20
|
import path from "node:path";
|
|
21
21
|
import { log } from "./logger.js";
|
|
22
22
|
import { extractJsonCandidates } from "./json-extract.js";
|
|
23
|
+
import { drainPassiveCorrectionNotifications } from "./correction/passive-correction-notifications.js";
|
|
23
24
|
import { normalizeEntityName, StorageManager } from "./storage.js";
|
|
24
25
|
import { readEnvVar, resolveHomeDir } from "./runtime/env.js";
|
|
25
26
|
import type {
|
|
@@ -908,6 +909,24 @@ export async function buildBriefing(options: BuildBriefingOptions): Promise<Brie
|
|
|
908
909
|
suggestedFollowups: followups,
|
|
909
910
|
};
|
|
910
911
|
|
|
912
|
+
// Drain auto-applied passive-correction notifications (issue #1581). The
|
|
913
|
+
// queue is cleared on read, so each notification surfaces in exactly one
|
|
914
|
+
// briefing. Fail-open: a drain error never blocks the briefing.
|
|
915
|
+
let correctionNotifications: BriefingResult["correctionNotifications"];
|
|
916
|
+
try {
|
|
917
|
+
const drained = await drainPassiveCorrectionNotifications(options.storage.dir);
|
|
918
|
+
if (drained.length > 0) {
|
|
919
|
+
correctionNotifications = drained.map((n) => ({
|
|
920
|
+
planId: n.planId,
|
|
921
|
+
summary: n.summary,
|
|
922
|
+
undoCommand: n.undoCommand,
|
|
923
|
+
createdAt: n.createdAt,
|
|
924
|
+
}));
|
|
925
|
+
}
|
|
926
|
+
} catch (err) {
|
|
927
|
+
log.debug(`briefing: correction notification drain failed (non-fatal): ${err instanceof Error ? err.message : String(err)}`);
|
|
928
|
+
}
|
|
929
|
+
|
|
911
930
|
const windowIso = { from: window.from.toISOString(), to: window.to.toISOString() };
|
|
912
931
|
const markdown = renderBriefingMarkdown({
|
|
913
932
|
sections,
|
|
@@ -916,6 +935,7 @@ export async function buildBriefing(options: BuildBriefingOptions): Promise<Brie
|
|
|
916
935
|
followupsUnavailableReason,
|
|
917
936
|
generatedAt: now,
|
|
918
937
|
namespace: options.namespace,
|
|
938
|
+
correctionNotifications,
|
|
919
939
|
});
|
|
920
940
|
|
|
921
941
|
const json: Record<string, unknown> = {
|
|
@@ -923,6 +943,7 @@ export async function buildBriefing(options: BuildBriefingOptions): Promise<Brie
|
|
|
923
943
|
window: windowIso,
|
|
924
944
|
focus,
|
|
925
945
|
namespace: options.namespace ?? null,
|
|
946
|
+
correctionNotifications: correctionNotifications ?? null,
|
|
926
947
|
sections,
|
|
927
948
|
followupsUnavailableReason: followupsUnavailableReason ?? null,
|
|
928
949
|
calendarSourceErrors: calendarSourceErrors.length > 0 ? calendarSourceErrors : null,
|
|
@@ -934,6 +955,7 @@ export async function buildBriefing(options: BuildBriefingOptions): Promise<Brie
|
|
|
934
955
|
sections,
|
|
935
956
|
followupsUnavailableReason,
|
|
936
957
|
window: windowIso,
|
|
958
|
+
...(correctionNotifications ? { correctionNotifications } : {}),
|
|
937
959
|
};
|
|
938
960
|
|
|
939
961
|
if (calendarSourceErrors.length > 0) {
|
|
@@ -1351,6 +1373,8 @@ interface RenderContext {
|
|
|
1351
1373
|
followupsUnavailableReason?: string;
|
|
1352
1374
|
generatedAt: Date;
|
|
1353
1375
|
namespace?: string;
|
|
1376
|
+
/** Auto-applied passive corrections drained for this briefing (#1581). */
|
|
1377
|
+
correctionNotifications?: BriefingResult["correctionNotifications"];
|
|
1354
1378
|
}
|
|
1355
1379
|
|
|
1356
1380
|
export function renderBriefingMarkdown(ctx: RenderContext): string {
|
|
@@ -1366,6 +1390,14 @@ export function renderBriefingMarkdown(ctx: RenderContext): string {
|
|
|
1366
1390
|
}
|
|
1367
1391
|
lines.push("");
|
|
1368
1392
|
|
|
1393
|
+
if (ctx.correctionNotifications && ctx.correctionNotifications.length > 0) {
|
|
1394
|
+
lines.push(`## Memory updates`);
|
|
1395
|
+
for (const n of ctx.correctionNotifications) {
|
|
1396
|
+
lines.push(`- ✎ ${n.summary} (undo: ${n.undoCommand})`);
|
|
1397
|
+
}
|
|
1398
|
+
lines.push("");
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1369
1401
|
lines.push(`## Active threads`);
|
|
1370
1402
|
if (ctx.sections.activeThreads.length === 0) {
|
|
1371
1403
|
lines.push(`_No active threads in window._`);
|
package/src/config.ts
CHANGED
|
@@ -2141,6 +2141,38 @@ export function parseConfig(
|
|
|
2141
2141
|
if (fromFlat !== undefined && fromFlat > 0) return fromFlat;
|
|
2142
2142
|
return 24;
|
|
2143
2143
|
})(),
|
|
2144
|
+
// Passive correction capture (issue #1581). Parsed from
|
|
2145
|
+
// `correctionCapture.<key>` (nested) or flat legacy keys. Default "off" —
|
|
2146
|
+
// operators opt in (rule 48). Invalid mode → rejected listing options (rule 51).
|
|
2147
|
+
correctionCaptureMode: (() => {
|
|
2148
|
+
const nested = (cfg.correctionCapture as Record<string, unknown> | undefined)?.mode;
|
|
2149
|
+
const raw = nested !== undefined ? nested : cfg.correctionCaptureMode;
|
|
2150
|
+
if (raw === undefined || raw === null) return "off" as const;
|
|
2151
|
+
if (raw === "off" || raw === "queue" || raw === "auto") return raw;
|
|
2152
|
+
throw new Error(
|
|
2153
|
+
`Invalid correctionCapture.mode: expected one of "off", "queue", "auto", got ${JSON.stringify(raw)}`,
|
|
2154
|
+
);
|
|
2155
|
+
})(),
|
|
2156
|
+
correctionCaptureConfidenceFloor: (() => {
|
|
2157
|
+
const nested = (cfg.correctionCapture as Record<string, unknown> | undefined)?.confidenceFloor;
|
|
2158
|
+
const raw = nested !== undefined ? nested : cfg.correctionCaptureConfidenceFloor;
|
|
2159
|
+
if (raw === undefined || raw === null) return 0.85;
|
|
2160
|
+
const n = coerceNumber(raw);
|
|
2161
|
+
if (n === undefined || !Number.isFinite(n) || n < 0 || n > 1) {
|
|
2162
|
+
throw new Error(`Invalid correctionCapture.confidenceFloor: expected a number in [0, 1], got ${JSON.stringify(raw)}`);
|
|
2163
|
+
}
|
|
2164
|
+
return n;
|
|
2165
|
+
})(),
|
|
2166
|
+
correctionCaptureAutoApplyMaxAffected: (() => {
|
|
2167
|
+
const nested = (cfg.correctionCapture as Record<string, unknown> | undefined)?.autoApplyMaxAffected;
|
|
2168
|
+
const raw = nested !== undefined ? nested : cfg.correctionCaptureAutoApplyMaxAffected;
|
|
2169
|
+
if (raw === undefined || raw === null) return 2;
|
|
2170
|
+
const n = coerceNumber(raw);
|
|
2171
|
+
if (n === undefined || !Number.isFinite(n) || n < 1) {
|
|
2172
|
+
throw new Error(`Invalid correctionCapture.autoApplyMaxAffected: expected an integer >= 1, got ${JSON.stringify(raw)}`);
|
|
2173
|
+
}
|
|
2174
|
+
return Math.floor(n);
|
|
2175
|
+
})(),
|
|
2144
2176
|
// Tombstones — non-resurrection invariant (issue #1579). The invariant is
|
|
2145
2177
|
// the point, so it ships ON by default; `false` restores pre-feature
|
|
2146
2178
|
// behavior for rollback safety (rule 30). Uses coerceBool so CLI string
|
package/src/correction/index.ts
CHANGED
|
@@ -41,3 +41,27 @@ export type { CorrectionNamespacePolicy, CorrectionServiceDeps } from "./correct
|
|
|
41
41
|
|
|
42
42
|
export { createCorrectionService, isCorrectionFeatureEnabled } from "./correction-access-wiring.js";
|
|
43
43
|
export type { CorrectionAccessWiring } from "./correction-access-wiring.js";
|
|
44
|
+
|
|
45
|
+
export { detectPassiveCorrections, extractHandles } from "./passive-correction-detector.js";
|
|
46
|
+
export type { PassiveCorrection, PassiveCorrectionPolarity, DetectorTurn } from "./passive-correction-detector.js";
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
capturePassiveCorrections,
|
|
50
|
+
evaluateAutoApplyGuards,
|
|
51
|
+
emptyTelemetry,
|
|
52
|
+
} from "./passive-capture.js";
|
|
53
|
+
export type {
|
|
54
|
+
CorrectionCaptureMode,
|
|
55
|
+
PassiveCaptureConfig,
|
|
56
|
+
PassiveCaptureContext,
|
|
57
|
+
PassiveCaptureDeps,
|
|
58
|
+
PassiveCaptureResult,
|
|
59
|
+
PassiveCaptureTelemetry,
|
|
60
|
+
AutoApplySuppressionReason,
|
|
61
|
+
} from "./passive-capture.js";
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
enqueuePassiveCorrectionNotification,
|
|
65
|
+
drainPassiveCorrectionNotifications,
|
|
66
|
+
} from "./passive-correction-notifications.js";
|
|
67
|
+
export type { PassiveCorrectionNotification } from "./passive-correction-notifications.js";
|