@remnic/core 9.3.624 → 9.3.625
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-cli.js +18 -16
- package/dist/access-cli.js.map +1 -1
- package/dist/access-http.d.ts +12 -5
- package/dist/access-http.js +10 -9
- package/dist/access-mcp.d.ts +5 -5
- package/dist/access-mcp.js +8 -8
- package/dist/access-schema.d.ts +5 -5
- package/dist/{access-service-CBNEKjzN.d.ts → access-service-C_sfOHsX.d.ts} +26 -3
- package/dist/access-service.d.ts +5 -5
- package/dist/access-service.js +7 -7
- 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 +2 -1
- package/dist/active-recall.js.map +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 +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/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +4 -4
- package/dist/{chunk-7TPH6UZL.js → chunk-2RHI3FGV.js} +540 -17
- package/dist/chunk-2RHI3FGV.js.map +1 -0
- package/dist/{chunk-GYTVOLNX.js → chunk-3MNBW7R7.js} +2 -2
- package/dist/{chunk-QFQQFX2H.js → chunk-3R2UZV3U.js} +2 -2
- package/dist/{chunk-O4UNM6OR.js → chunk-532VCWYW.js} +2 -2
- package/dist/{chunk-2UFQYU5F.js → chunk-57QXN2CS.js} +2 -2
- package/dist/chunk-7WV3F5DQ.js +22 -0
- package/dist/chunk-7WV3F5DQ.js.map +1 -0
- package/dist/{chunk-RKW6QR7W.js → chunk-AZ4RI3QD.js} +1461 -78
- package/dist/chunk-AZ4RI3QD.js.map +1 -0
- package/dist/{chunk-KQFQ3IS5.js → chunk-F3FY3D3S.js} +43 -7
- package/dist/chunk-F3FY3D3S.js.map +1 -0
- package/dist/{chunk-4R4KTDIE.js → chunk-FPNQF475.js} +1 -1
- package/dist/chunk-FPNQF475.js.map +1 -0
- package/dist/{chunk-UGEBPVNI.js → chunk-GE7Q7KXP.js} +2 -2
- package/dist/{chunk-GLWW3EJQ.js → chunk-KB4MFBF5.js} +3 -3
- package/dist/{chunk-5GOMXHLC.js → chunk-KKTXCFD7.js} +255 -1
- package/dist/chunk-KKTXCFD7.js.map +1 -0
- package/dist/{chunk-FH3PPO42.js → chunk-KVFYTRMV.js} +2 -2
- package/dist/{chunk-BNW5NJJH.js → chunk-LQYTQCXM.js} +2 -2
- package/dist/{chunk-AYHXQR53.js → chunk-MVQN73GT.js} +2 -2
- package/dist/{chunk-ZZPIJPPD.js → chunk-N5RGXWLQ.js} +2 -2
- package/dist/chunk-NDAH7BJ5.js +213 -0
- package/dist/chunk-NDAH7BJ5.js.map +1 -0
- package/dist/{chunk-R3OQGYOU.js → chunk-P2D2MM47.js} +2 -2
- package/dist/{chunk-PSUB67YB.js → chunk-PW6GURU3.js} +2 -2
- package/dist/{chunk-W3BKVM64.js → chunk-QDV6VAD4.js} +2 -2
- package/dist/{chunk-3QSU4NFF.js → chunk-QHXW3LZV.js} +3 -3
- package/dist/{chunk-I6UCUHLK.js → chunk-SHV5Y2WU.js} +182 -3
- package/dist/chunk-SHV5Y2WU.js.map +1 -0
- package/dist/{chunk-OZXVGYGZ.js → chunk-STDAAGH7.js} +2 -2
- package/dist/{chunk-FMGWXIES.js → chunk-TZDSNIRO.js} +5 -5
- package/dist/{chunk-2L54V4ZO.js → chunk-UELS6WWF.js} +2 -2
- package/dist/{chunk-PJGB7XRR.js → chunk-UGHUNQ74.js} +502 -134
- package/dist/chunk-UGHUNQ74.js.map +1 -0
- package/dist/{chunk-FG76RDVI.js → chunk-Y3TMFC6I.js} +136 -4
- package/dist/chunk-Y3TMFC6I.js.map +1 -0
- package/dist/{chunk-BPSGLMQ4.js → chunk-YQNADJCT.js} +2 -2
- package/dist/{cli-Cw729yLf.d.ts → cli-EZv6YE6_.d.ts} +3 -3
- package/dist/cli.d.ts +6 -6
- package/dist/cli.js +23 -21
- 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 +2 -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 +2 -2
- 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-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 +307 -9
- package/dist/index.js +155 -29
- 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/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 +1 -1
- 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 +1 -1
- 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 +8 -7
- package/dist/{orchestrator-CqWOjfgl.d.ts → orchestrator-CEycaY3M.d.ts} +361 -4
- package/dist/orchestrator.d.ts +4 -4
- package/dist/orchestrator.js +13 -11
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/policy-runtime.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 +3 -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 +10 -10
- 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-SLAa_prH.d.ts → semantic-DJR8_DMQ.d.ts} +1 -1
- package/dist/{semantic-consolidation-4HkHWgeI.d.ts → semantic-consolidation-FbhPeJjB.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 +5 -5
- package/dist/signal.d.ts +1 -1
- package/dist/storage.d.ts +19 -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/types-D5VRAI04.d.ts +3134 -0
- package/dist/types.d.ts +3 -2862
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +3 -3
- package/package.json +1 -1
- package/src/access-http.ts +167 -0
- package/src/access-mcp.ts +198 -0
- package/src/access-service.ts +65 -0
- package/src/cli.ts +187 -0
- package/src/config.ts +7 -0
- package/src/index.ts +7 -0
- package/src/orchestrator.ts +42 -0
- package/src/storage.ts +106 -0
- package/src/types.ts +5 -0
- package/src/wearables/cleanup.test.ts +134 -0
- package/src/wearables/cleanup.ts +188 -0
- package/src/wearables/cli.test.ts +170 -0
- package/src/wearables/cli.ts +441 -0
- package/src/wearables/config.test.ts +143 -0
- package/src/wearables/config.ts +332 -0
- package/src/wearables/corrections.test.ts +118 -0
- package/src/wearables/corrections.ts +211 -0
- package/src/wearables/day-store.test.ts +143 -0
- package/src/wearables/day-store.ts +238 -0
- package/src/wearables/errors.test.ts +32 -0
- package/src/wearables/errors.ts +29 -0
- package/src/wearables/index.ts +114 -0
- package/src/wearables/memory-gen.test.ts +342 -0
- package/src/wearables/memory-gen.ts +413 -0
- package/src/wearables/pipeline.test.ts +608 -0
- package/src/wearables/pipeline.ts +519 -0
- package/src/wearables/redaction.test.ts +94 -0
- package/src/wearables/redaction.ts +156 -0
- package/src/wearables/registry.test.ts +62 -0
- package/src/wearables/registry.ts +133 -0
- package/src/wearables/service.test.ts +425 -0
- package/src/wearables/service.ts +691 -0
- package/src/wearables/speakers.test.ts +110 -0
- package/src/wearables/speakers.ts +174 -0
- package/src/wearables/storage-io.test.ts +105 -0
- package/src/wearables/sync-state.test.ts +134 -0
- package/src/wearables/sync-state.ts +186 -0
- package/src/wearables/types.ts +285 -0
- package/dist/chunk-4R4KTDIE.js.map +0 -1
- package/dist/chunk-5GOMXHLC.js.map +0 -1
- package/dist/chunk-7TPH6UZL.js.map +0 -1
- package/dist/chunk-FG76RDVI.js.map +0 -1
- package/dist/chunk-I6UCUHLK.js.map +0 -1
- package/dist/chunk-KQFQ3IS5.js.map +0 -1
- package/dist/chunk-PJGB7XRR.js.map +0 -1
- package/dist/chunk-RKW6QR7W.js.map +0 -1
- /package/dist/{chunk-GYTVOLNX.js.map → chunk-3MNBW7R7.js.map} +0 -0
- /package/dist/{chunk-QFQQFX2H.js.map → chunk-3R2UZV3U.js.map} +0 -0
- /package/dist/{chunk-O4UNM6OR.js.map → chunk-532VCWYW.js.map} +0 -0
- /package/dist/{chunk-2UFQYU5F.js.map → chunk-57QXN2CS.js.map} +0 -0
- /package/dist/{chunk-UGEBPVNI.js.map → chunk-GE7Q7KXP.js.map} +0 -0
- /package/dist/{chunk-GLWW3EJQ.js.map → chunk-KB4MFBF5.js.map} +0 -0
- /package/dist/{chunk-FH3PPO42.js.map → chunk-KVFYTRMV.js.map} +0 -0
- /package/dist/{chunk-BNW5NJJH.js.map → chunk-LQYTQCXM.js.map} +0 -0
- /package/dist/{chunk-AYHXQR53.js.map → chunk-MVQN73GT.js.map} +0 -0
- /package/dist/{chunk-ZZPIJPPD.js.map → chunk-N5RGXWLQ.js.map} +0 -0
- /package/dist/{chunk-R3OQGYOU.js.map → chunk-P2D2MM47.js.map} +0 -0
- /package/dist/{chunk-PSUB67YB.js.map → chunk-PW6GURU3.js.map} +0 -0
- /package/dist/{chunk-W3BKVM64.js.map → chunk-QDV6VAD4.js.map} +0 -0
- /package/dist/{chunk-3QSU4NFF.js.map → chunk-QHXW3LZV.js.map} +0 -0
- /package/dist/{chunk-OZXVGYGZ.js.map → chunk-STDAAGH7.js.map} +0 -0
- /package/dist/{chunk-FMGWXIES.js.map → chunk-TZDSNIRO.js.map} +0 -0
- /package/dist/{chunk-2L54V4ZO.js.map → chunk-UELS6WWF.js.map} +0 -0
- /package/dist/{chunk-BPSGLMQ4.js.map → chunk-YQNADJCT.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { PluginEntryResolverOptions, resolvePluginEntry } from './plugin-entry-resolver.js';
|
|
2
2
|
export { isOpenaiApiKeyDisabled, parseConfig, resolveEnvVars } from './config.js';
|
|
3
3
|
export { MigrationOptions, MigrationResult, RollbackResult, migrateFromEngram, rollbackFromEngramMigration } from './migrate/from-engram.js';
|
|
4
|
-
|
|
4
|
+
import { S as SpeakerRegistry, W as WearablesService } from './orchestrator-CEycaY3M.js';
|
|
5
|
+
export { D as DEFAULT_SELF_NAME, O as Orchestrator, R as ResolvedSpeaker, a as SpeakerOverride, b as WEARABLE_SOURCE_PREFIX, c as WearableDayTranscriptView, d as WearableMemoryGenDeps, e as WearableMemoryGenResult, f as WearableMemorySearchResult, g as WearableMemoryWriter, h as WearableSearchBackend, i as WearableStorageIo, j as WearableSyncDeps, k as WearableSyncOptions, l as WearableTranscriptSearchResult, m as WearablesServiceDeps, n as buildExtractionTurns, o as dateInTimezone, p as defaultTimezone, q as defaultWorkspaceDir, r as distinctSpeakerLabels, s as emptySpeakerRegistry, t as generateWearableMemories, u as importNativeMemories, v as loadSpeakerRegistry, w as locateTranscriptPath, x as memoryStatusForMode, y as resolveSpeaker, z as resolveSyncDates, A as sanitizeSessionKeyForFilename, B as saveSpeakerRegistry, C as speakerRegistryKey, E as speakersFilePath, F as syncWearableSource, H as wearableDayTag, J as wearableSourceLabel, K as writeDailyDigestMemory } from './orchestrator-CEycaY3M.js';
|
|
5
6
|
export { normalizeProjectionPreview, normalizeProjectionTags } from './memory-projection-format.js';
|
|
6
7
|
export { ModelCapabilities, ModelRegistry } from './model-registry.js';
|
|
7
8
|
export { ACTIVE_STATUSES, ContradictionFilter, ContradictionJudgeBatchResult, ContradictionJudgeInput, ContradictionJudgeResult, ContradictionListResult, ContradictionVerdict, ResolutionResult, ResolutionVerb, ScanDependencies, ScanResult, computePairId, executeResolution, isCoolingDown, isValidResolutionVerb, judgeContradictionPairs, listPairs, readPair, resolvePair, runContradictionScan, writePair, writePairs } from './contradiction/index.js';
|
|
@@ -19,11 +20,11 @@ export { CodexCliFallbackConfig, CodexCliFallbackMessage, CodexCliFallbackOption
|
|
|
19
20
|
export { BufferSurpriseProbe, SmartBuffer, TriggerDecision } from './buffer.js';
|
|
20
21
|
export { ComputeSurpriseOptions, DEFAULT_SURPRISE_K, RecentMemoryLike, computeSurprise } from './buffer-surprise.js';
|
|
21
22
|
export { BufferSurpriseDistribution, BufferSurpriseReader, BufferSurpriseReportOptions, reportBufferSurpriseDistribution } from './buffer-surprise-report.js';
|
|
22
|
-
import { PluginConfig, CodingContext, CodingModeConfig, MemoryCategory } from './types.js';
|
|
23
|
-
export { AgentAccessAuthToken, BriefingActiveThread, BriefingConfig, BriefingFocus, BriefingFollowup, BriefingOpenCommitment, BriefingRecentEntity, BriefingResult, BriefingSections, BriefingWindow, BufferSurpriseEvent, CalendarEvent, CalendarSource, CodexCompatConfig, ConsolidationObservation, ContinuityImprovementLoop, DEFAULT_RECALL_DISCLOSURE, EntityFile, EntityStructuredSection, ExtractedFact, GatewayConfig, MemoryActionEligibilityContext, MemoryActionEligibilitySource, MemoryActionType, MemoryFile, MemoryFrontmatter, MemoryObservation, MemoryScope, RECALL_DISCLOSURE_LEVELS, RecallDisclosure, SecretRef, isRecallDisclosure } from './types.js';
|
|
23
|
+
import { P as PluginConfig, aG as CodingContext, aL as CodingModeConfig, M as MemoryCategory, aM as WearableCleanupSettings, ax as WearableSourceSettings, aB as WearablesConfig, aA as WearableSourceConnector, aw as WearableConversation, aF as WearableCorrectionRule, aN as WearableDayTranscriptMeta, aE as WearableDayTranscript } from './types-D5VRAI04.js';
|
|
24
|
+
export { a6 as AgentAccessAuthToken, a2 as BriefingActiveThread, aO as BriefingConfig, $ as BriefingFocus, _ as BriefingFollowup, aP as BriefingOpenCommitment, a4 as BriefingRecentEntity, a3 as BriefingResult, Z as BriefingSections, aQ as BriefingWindow, o as BufferSurpriseEvent, a1 as CalendarEvent, a0 as CalendarSource, aR as CodexCompatConfig, aJ as ConsolidationObservation, s as ContinuityImprovementLoop, aS as DEFAULT_RECALL_DISCLOSURE, x as EntityFile, E as EntityStructuredSection, aT as ExtractedFact, G as GatewayConfig, ak as MemoryActionEligibilityContext, aU as MemoryActionEligibilitySource, aa as MemoryActionType, g as MemoryFile, i as MemoryFrontmatter, aV as MemoryObservation, aW as MemoryScope, aX as RECALL_DISCLOSURE_LEVELS, K as RecallDisclosure, a5 as SecretRef, aY as WearableAuthCheck, aZ as WearableFetchOptions, a_ as WearableFetchPage, az as WearableMemoryMode, ay as WearableNativeMemory, a$ as WearableNativeMemoryPage, aD as WearableSourceStatus, aC as WearableSyncSummary, b0 as WearableTranscriptSegment, b1 as isRecallDisclosure } from './types-D5VRAI04.js';
|
|
24
25
|
export { JudgeBatchResult, JudgeCandidate, JudgeVerdict, JudgeVerdictKind, clearVerdictCache, createVerdictCache, getVerdictKind, isDurableVerdict, isValidCachedVerdict, judgeFactDurability, normalizeCachedVerdict, verdictCacheSize } from './extraction-judge.js';
|
|
25
26
|
export { hasBroadGraphIntent, inferIntentFromText, intentCompatibilityScore, isTaskInitiationIntent, planRecallMode } from './intent.js';
|
|
26
|
-
export { b as EngramAccessInputError, E as EngramAccessService, P as ProcedureStatsConfigSnapshot, c as ProcedureStatsRecent, d as ProcedureStatsReport, e as ProcedureStatusCounts, f as computeProcedureStats, g as formatProcedureStatsText } from './access-service-
|
|
27
|
+
export { b as EngramAccessInputError, E as EngramAccessService, P as ProcedureStatsConfigSnapshot, c as ProcedureStatsRecent, d as ProcedureStatsReport, e as ProcedureStatusCounts, f as computeProcedureStats, g as formatProcedureStatsText } from './access-service-C_sfOHsX.js';
|
|
27
28
|
export { FILTER_LABELS as DIRECT_ANSWER_FILTER_LABELS, DirectAnswerCandidate, DirectAnswerConfig, DirectAnswerInput, DirectAnswerReason, DirectAnswerResult, isDirectAnswerEligible } from './direct-answer.js';
|
|
28
29
|
export { MemoryTier, TierRoutingPolicy, TierTransitionDecision, computeTierValueScore, decideTierTransition } from './tier-routing.js';
|
|
29
30
|
export { ApplyReasoningTraceBoostOptions, BoostableResult, DEFAULT_REASONING_TRACE_BOOST, applyReasoningTraceBoost, isReasoningTracePath, looksLikeProblemSolvingQuery } from './reasoning-trace-recall.js';
|
|
@@ -56,10 +57,10 @@ export { CODEX_THREAD_KEY_PREFIX } from './codex-thread-key.js';
|
|
|
56
57
|
export { PageVersion, VersionHistory, VersionTrigger, VersioningConfig, VersioningLogger, createVersion, diffVersions, getVersion, listVersions, revertToVersion } from './page-versioning.js';
|
|
57
58
|
export { CitationBlock, CitationEntry, CitationMetadata, buildCitationGuidance, formatOaiMemCitation, parseOaiMemCitation, sanitizeNoteForCitation } from './citations.js';
|
|
58
59
|
export { initLogger, log } from './logger.js';
|
|
59
|
-
export { b as SemanticDedupDecision,
|
|
60
|
+
export { b as SemanticDedupDecision, a as SemanticDedupHit, S as SemanticDedupLookup, c as SemanticDedupOptions, d as decideSemanticDedup } from './semantic-DJR8_DMQ.js';
|
|
60
61
|
export { OFFLINE_SYNC_APPLY_MAX_BODY_BYTES, OFFLINE_SYNC_CHANGESET_FORMAT, OFFLINE_SYNC_FILE_CONTENT_MAX_CHUNK_BYTES, OFFLINE_SYNC_FILE_CONTENT_TRANSFER_CHUNK_BYTES, OFFLINE_SYNC_SNAPSHOT_BASE_MAX_BODY_BYTES, OFFLINE_SYNC_SNAPSHOT_FORMAT, OFFLINE_SYNC_STATE_VERSION, OfflineSyncApplyChangesetResult, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplySnapshotResult, OfflineSyncChange, OfflineSyncChangeset, OfflineSyncConflict, OfflineSyncFileContentChunk, OfflineSyncFileDigest, OfflineSyncFileRecord, OfflineSyncFileState, OfflineSyncFileTarget, OfflineSyncFileWriteTarget, OfflineSyncSnapshot, OfflineSyncState, applyOfflineSyncChangeset, applyOfflineSyncFileContentChunk, applyOfflineSyncSnapshot, buildOfflineSyncChangeset, buildOfflineSyncChangesetFromSnapshot, buildOfflineSyncSnapshot, buildOfflineSyncSnapshotForPaths, buildOfflineSyncSnapshotFromBase, defaultOfflineSyncStatePath, fileStatesFromSnapshot, iterateOfflineSyncSnapshotFileRecords, normalizeOfflineSyncChangeset, normalizeOfflineSyncSnapshot, offlineSyncStateFromSnapshot, readOfflineSyncFileContentChunk, readOfflineSyncState, shouldPreferIncomingOfflineRuntimeFile, summarizeOfflineSyncChangeset, summarizeOfflineSyncPendingChanges, summarizeOfflineSyncPendingFiles, writeOfflineSyncState } from './offline-sync.js';
|
|
61
|
-
import { D as DiscoveredExtension } from './semantic-consolidation-
|
|
62
|
-
export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-
|
|
62
|
+
import { D as DiscoveredExtension } from './semantic-consolidation-FbhPeJjB.js';
|
|
63
|
+
export { E as ExtensionSchema, R as REMNIC_EXTENSIONS_TOTAL_TOKEN_LIMIT, b as buildExtensionsBlockForConsolidation, d as discoverMemoryExtensions, r as resolveExtensionsRoot } from './semantic-consolidation-FbhPeJjB.js';
|
|
63
64
|
export { ConnectorCapability, ConnectorInstance, ConnectorManifest, ConnectorRegistry, DoctorCheck, DoctorResult, InstallOptions, InstallResult, MARKETPLACE_MANIFEST_FILENAME, MARKETPLACE_SCHEMA_VERSION, MarketplaceConfig, MarketplaceEntry, MarketplaceInstallResult, MarketplaceInstallType, MarketplaceLogger, MarketplaceManifest, MarketplaceValidation, RemoveResult, checkMarketplaceManifest, coerceInstallExtension, doctorConnector, generateMarketplaceManifest, getConnectorToken, installConnector, installFromMarketplace, listConnectors, loadRegistry, removeConnector, saveRegistry, validateMarketplaceManifest, writeMarketplaceManifest } from './connectors/index.js';
|
|
64
65
|
import { L as LiveConnector, S as SyncIncrementalResult } from './framework-CNDn2164.js';
|
|
65
66
|
export { c as CONNECTOR_ID_PATTERN, C as ConnectorConfig, b as ConnectorCursor, a as ConnectorDocument, d as ConnectorDocumentSource, e as SyncIncrementalArgs, i as isValidConnectorId, p as persistableConnectorConfig, r as redactConnectorConfigSecrets } from './framework-CNDn2164.js';
|
|
@@ -75,7 +76,7 @@ export { EnrichmentAuditEntry, EnrichmentCandidate, EnrichmentCostTier, Enrichme
|
|
|
75
76
|
export { d as BulkImportError, B as BulkImportOptions, b as BulkImportResult, a as BulkImportSource, e as BulkImportSourceAdapter, f as ImportSourceRole, I as ImportTurn, g as ImportTurnValidationIssue, i as isImportRole, p as parseIsoTimestamp, v as validateImportTurn } from './types-BliCnURB.js';
|
|
76
77
|
export { clearBulkImportSources, getBulkImportSource, listBulkImportSources, registerBulkImportSource } from './bulk-import/index.js';
|
|
77
78
|
export { a as ProcessBatchContext, P as ProcessBatchFn, b as ProcessBatchResult, f as formatBatchTranscript, r as resolveBulkImportContext, c as runBulkImportPipeline, v as validateBatchSize } from './pipeline-D18UAKlN.js';
|
|
78
|
-
export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-
|
|
79
|
+
export { B as BulkImportCliCommandOptions, p as parseStrictCliDate, r as runBulkImportCliCommand } from './cli-EZv6YE6_.js';
|
|
79
80
|
export { DEFAULT_IMPORT_BATCH_SIZE, ImportProgress, ImportedMemory, ImporterAdapter, ImporterParseOptions, ImporterTransformOptions, ImporterWriteResult, ImporterWriteTarget, RunImportOptions, RunImporterResult, defaultWriteMemoriesToOrchestrator, importedMemoryToTurn, runImporter, validateImportBatchSize, validateImportRateLimit } from './importers/index.js';
|
|
80
81
|
export { FallbackLlmClient, FallbackLlmOptions, FallbackLlmResponse, FallbackLlmRuntimeContext } from './fallback-llm.js';
|
|
81
82
|
export { ComputeMemoryWorthInput, MemoryWorthResult, computeMemoryWorth } from './memory-worth.js';
|
|
@@ -1959,6 +1960,303 @@ declare function getTaxonomyDir(memoryDir: string): string;
|
|
|
1959
1960
|
*/
|
|
1960
1961
|
declare function getTaxonomyFilePath(memoryDir: string): string;
|
|
1961
1962
|
|
|
1963
|
+
/**
|
|
1964
|
+
* Error thrown by wearables surfaces for caller-correctable problems:
|
|
1965
|
+
* invalid parameters, unknown sources, disabled subsystem, missing
|
|
1966
|
+
* connector packages. Transport layers map this to 400-class responses;
|
|
1967
|
+
* anything else is a backend fault and bubbles to the 500 handler.
|
|
1968
|
+
*/
|
|
1969
|
+
declare class WearablesInputError extends Error {
|
|
1970
|
+
constructor(message: string);
|
|
1971
|
+
}
|
|
1972
|
+
/**
|
|
1973
|
+
* Render a caught error for operator-facing sync warnings and auth
|
|
1974
|
+
* details. Warnings travel back through CLI/MCP/HTTP responses, so
|
|
1975
|
+
* foreign error text never passes through — delegation to the
|
|
1976
|
+
* project-standard `displayErrorDetail` exposes only the error class
|
|
1977
|
+
* and Node errno code. Wearables' own input errors (authored messages,
|
|
1978
|
+
* no foreign text) pass through verbatim.
|
|
1979
|
+
*/
|
|
1980
|
+
declare function describeErrorForOperator(err: unknown): string;
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* Wearables config parsing — strict, loud, and default-safe.
|
|
1984
|
+
*
|
|
1985
|
+
* Mirrors the `procedural` block conventions in config.ts: shape
|
|
1986
|
+
* violations and unparseable values throw with actionable messages
|
|
1987
|
+
* (CLAUDE.md rule 51); boolean-ish strings coerce via the shared
|
|
1988
|
+
* helpers (rule 36); every numeric knob is bounds-checked; the
|
|
1989
|
+
* memory-creation default is the least-privileged mode (rule 48).
|
|
1990
|
+
*/
|
|
1991
|
+
|
|
1992
|
+
declare const KNOWN_WEARABLE_SOURCE_IDS: readonly ["limitless", "bee", "omi"];
|
|
1993
|
+
declare function defaultWearableCleanupSettings(): WearableCleanupSettings;
|
|
1994
|
+
declare function defaultWearableSourceSettings(): WearableSourceSettings;
|
|
1995
|
+
declare function defaultWearablesConfig(): WearablesConfig;
|
|
1996
|
+
/**
|
|
1997
|
+
* Parse the `wearables` config block. `undefined` yields the disabled
|
|
1998
|
+
* default config; any present-but-malformed value throws.
|
|
1999
|
+
*/
|
|
2000
|
+
declare function parseWearablesConfig(value: unknown): WearablesConfig;
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Wearable connector registry.
|
|
2004
|
+
*
|
|
2005
|
+
* Concrete connectors live in optional à-la-carte packages and register
|
|
2006
|
+
* a factory here (directly, or via the built-in loader below which
|
|
2007
|
+
* dynamic-imports the known packages with computed specifiers so
|
|
2008
|
+
* bundlers and the dts resolver never require them at build time).
|
|
2009
|
+
*/
|
|
2010
|
+
|
|
2011
|
+
interface WearableConnectorFactoryOptions {
|
|
2012
|
+
settings: WearableSourceSettings;
|
|
2013
|
+
/** IANA timezone transcripts are bucketed in. */
|
|
2014
|
+
timezone: string;
|
|
2015
|
+
}
|
|
2016
|
+
type WearableConnectorFactory = (options: WearableConnectorFactoryOptions) => WearableSourceConnector;
|
|
2017
|
+
interface WearableConnectorRegistration {
|
|
2018
|
+
id: string;
|
|
2019
|
+
displayName: string;
|
|
2020
|
+
factory: WearableConnectorFactory;
|
|
2021
|
+
}
|
|
2022
|
+
declare function registerWearableConnector(registration: WearableConnectorRegistration): void;
|
|
2023
|
+
declare function getWearableConnector(id: string): WearableConnectorRegistration | undefined;
|
|
2024
|
+
declare function listWearableConnectors(): string[];
|
|
2025
|
+
/** Test-only: reset the registry between cases. */
|
|
2026
|
+
declare function clearWearableConnectors(): void;
|
|
2027
|
+
declare function ensureBuiltInWearableConnectors(): Promise<void>;
|
|
2028
|
+
|
|
2029
|
+
/**
|
|
2030
|
+
* Wearable transcript cleanup — deterministic, zero-LLM normalization.
|
|
2031
|
+
*
|
|
2032
|
+
* ASR output from always-on wearables is noisy: fragmented utterances,
|
|
2033
|
+
* filler tokens, stuttered repeats, and occasional pure garbage. This
|
|
2034
|
+
* module cleans a conversation in place-order without changing meaning:
|
|
2035
|
+
* everything here is conservative and reversible by re-syncing.
|
|
2036
|
+
*/
|
|
2037
|
+
|
|
2038
|
+
interface CleanupResult {
|
|
2039
|
+
conversation: WearableConversation;
|
|
2040
|
+
/** Segments removed by the low-quality heuristic. */
|
|
2041
|
+
droppedSegments: number;
|
|
2042
|
+
/** Segments merged into a predecessor. */
|
|
2043
|
+
mergedSegments: number;
|
|
2044
|
+
}
|
|
2045
|
+
/** Apply configured cleanup passes to one conversation. */
|
|
2046
|
+
declare function cleanConversation(conversation: WearableConversation, settings: WearableCleanupSettings): CleanupResult;
|
|
2047
|
+
declare function stripFillerTokens(text: string): string;
|
|
2048
|
+
/**
|
|
2049
|
+
* Collapse immediate word/phrase stutters: "I I I think" -> "I think",
|
|
2050
|
+
* "we should we should go" -> "we should go". Only collapses *adjacent*
|
|
2051
|
+
* repeats (up to 4-word phrases) so intentional repetition across a
|
|
2052
|
+
* sentence is preserved.
|
|
2053
|
+
*/
|
|
2054
|
+
declare function collapseImmediateRepeats(text: string): string;
|
|
2055
|
+
/**
|
|
2056
|
+
* Heuristic ASR-garbage detector. Intentionally conservative: it only
|
|
2057
|
+
* drops segments that carry no plausible information.
|
|
2058
|
+
*/
|
|
2059
|
+
declare function isLowQualitySegment(text: string): boolean;
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* Wearable transcript redaction — privacy guard applied before any
|
|
2063
|
+
* transcript text is persisted or fed to extraction.
|
|
2064
|
+
*
|
|
2065
|
+
* Always-on recorders capture things nobody intended to store: card
|
|
2066
|
+
* numbers read aloud, SSNs dictated to a pharmacy line. Built-in
|
|
2067
|
+
* patterns cover the unambiguous, high-sensitivity cases; users can add
|
|
2068
|
+
* their own regexes via `wearables.redactionPatterns` (validated at
|
|
2069
|
+
* config parse — invalid patterns are rejected loudly, never ignored).
|
|
2070
|
+
*
|
|
2071
|
+
* All built-in patterns are simple linear scans (no nested quantifiers)
|
|
2072
|
+
* to stay safely outside polynomial-ReDoS territory.
|
|
2073
|
+
*/
|
|
2074
|
+
|
|
2075
|
+
declare const REDACTION_PLACEHOLDER = "[redacted]";
|
|
2076
|
+
interface RedactionResult {
|
|
2077
|
+
text: string;
|
|
2078
|
+
redactions: number;
|
|
2079
|
+
}
|
|
2080
|
+
declare function redactText(text: string, userPatterns: RegExp[]): RedactionResult;
|
|
2081
|
+
/**
|
|
2082
|
+
* Compile user-supplied redaction patterns. Throws with a descriptive
|
|
2083
|
+
* message on the first invalid pattern — config parsing surfaces this
|
|
2084
|
+
* to the operator instead of silently skipping the rule.
|
|
2085
|
+
*/
|
|
2086
|
+
declare function compileRedactionPatterns(patterns: string[]): RegExp[];
|
|
2087
|
+
interface OffTheRecordResult {
|
|
2088
|
+
conversation: WearableConversation;
|
|
2089
|
+
droppedSegments: number;
|
|
2090
|
+
}
|
|
2091
|
+
/**
|
|
2092
|
+
* Drop segments between a spoken "off the record" marker and the next
|
|
2093
|
+
* "(back) on the record" marker (or conversation end). The marker
|
|
2094
|
+
* segments themselves are kept, with the off-record span replaced by a
|
|
2095
|
+
* visible placeholder so the transcript shows that content was elided
|
|
2096
|
+
* by request rather than lost.
|
|
2097
|
+
*/
|
|
2098
|
+
declare function applyOffTheRecord(conversation: WearableConversation): OffTheRecordResult;
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Wearable transcript corrections — user-specific replacement rules.
|
|
2102
|
+
*
|
|
2103
|
+
* ASR engines consistently mishear the same proper nouns for the same
|
|
2104
|
+
* person ("remnick" for "Remnic", a colleague's name, product jargon).
|
|
2105
|
+
* Rules come from two places, merged at sync time:
|
|
2106
|
+
*
|
|
2107
|
+
* 1. `wearables.corrections` in plugin config (declarative, versioned
|
|
2108
|
+
* with the operator's config).
|
|
2109
|
+
* 2. A CLI-managed rules file at `state/wearables/corrections.json`
|
|
2110
|
+
* (added interactively via `remnic wearables corrections add`).
|
|
2111
|
+
*
|
|
2112
|
+
* Literal rules are regex-escaped before compilation and replacements
|
|
2113
|
+
* are applied via a function (never a replacement string) so `$` in
|
|
2114
|
+
* either side can't corrupt output.
|
|
2115
|
+
*/
|
|
2116
|
+
|
|
2117
|
+
interface CompiledCorrectionRule {
|
|
2118
|
+
rule: WearableCorrectionRule;
|
|
2119
|
+
pattern: RegExp;
|
|
2120
|
+
}
|
|
2121
|
+
interface CorrectionApplication {
|
|
2122
|
+
text: string;
|
|
2123
|
+
applied: number;
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Validate and compile a correction rule. Throws a descriptive error on
|
|
2127
|
+
* invalid input (empty match, regex that doesn't compile, regex that
|
|
2128
|
+
* matches the empty string) — callers surface this at config parse or
|
|
2129
|
+
* CLI time rather than skipping the rule silently.
|
|
2130
|
+
*/
|
|
2131
|
+
declare function compileCorrectionRule(rule: WearableCorrectionRule, label: string): CompiledCorrectionRule;
|
|
2132
|
+
/** Compile a rule list, labeling errors with their index. */
|
|
2133
|
+
declare function compileCorrectionRules(rules: WearableCorrectionRule[], labelPrefix: string): CompiledCorrectionRule[];
|
|
2134
|
+
/** Apply every applicable rule to a piece of transcript text. */
|
|
2135
|
+
declare function applyCorrections(text: string, rules: CompiledCorrectionRule[], sourceId: string): CorrectionApplication;
|
|
2136
|
+
declare function correctionsFilePath(memoryDir: string): string;
|
|
2137
|
+
/**
|
|
2138
|
+
* Load CLI-managed correction rules. A missing file means no rules; a
|
|
2139
|
+
* malformed file throws (operators should know their corrections are
|
|
2140
|
+
* not being applied rather than silently losing them).
|
|
2141
|
+
*/
|
|
2142
|
+
declare function loadCorrectionsFile(memoryDir: string): Promise<WearableCorrectionRule[]>;
|
|
2143
|
+
/** Persist CLI-managed rules atomically (temp file + rename). */
|
|
2144
|
+
declare function saveCorrectionsFile(memoryDir: string, rules: WearableCorrectionRule[]): Promise<void>;
|
|
2145
|
+
|
|
2146
|
+
/**
|
|
2147
|
+
* Wearable day-transcript composition and parsing.
|
|
2148
|
+
*
|
|
2149
|
+
* One markdown file per source per day, stored under
|
|
2150
|
+
* `<memoryDir>/wearables/<source>/<YYYY-MM-DD>.md` with YAML
|
|
2151
|
+
* frontmatter. The location is deliberate:
|
|
2152
|
+
*
|
|
2153
|
+
* - it is OUTSIDE the memory scan roots (facts/, procedures/,
|
|
2154
|
+
* reasoning-traces/, corrections/), so transcripts never appear as
|
|
2155
|
+
* memories in recall or governance passes;
|
|
2156
|
+
* - it is INSIDE the QMD collection root (the memory dir), so day
|
|
2157
|
+
* transcripts are full-text searchable after the next index update.
|
|
2158
|
+
*
|
|
2159
|
+
* Files are rebuilt idempotently from provider data on every sync; the
|
|
2160
|
+
* body hash in frontmatter lets the pipeline skip rewriting (and
|
|
2161
|
+
* re-extracting) unchanged days.
|
|
2162
|
+
*
|
|
2163
|
+
* This module is pure composition/parsing — file IO lives in
|
|
2164
|
+
* `StorageManager` so encrypted-at-rest deployments and atomic write
|
|
2165
|
+
* semantics are inherited from the same code paths memories use.
|
|
2166
|
+
*/
|
|
2167
|
+
|
|
2168
|
+
declare const WEARABLES_DIR_NAME = "wearables";
|
|
2169
|
+
declare function isValidTranscriptDate(date: string): boolean;
|
|
2170
|
+
declare function hashTranscriptBody(body: string): string;
|
|
2171
|
+
/** Compose the markdown body (no frontmatter) for one source/day. */
|
|
2172
|
+
declare function composeDayTranscriptBody(sourceId: string, date: string, timezone: string, conversations: WearableConversation[], registry: SpeakerRegistry): string;
|
|
2173
|
+
declare function composeDayTranscriptMeta(sourceId: string, date: string, timezone: string, conversations: WearableConversation[], registry: SpeakerRegistry, body: string, syncedAt: string): WearableDayTranscriptMeta;
|
|
2174
|
+
/** Serialize meta + body into the persisted file format. */
|
|
2175
|
+
declare function serializeDayTranscript(meta: WearableDayTranscriptMeta, body: string): string;
|
|
2176
|
+
/**
|
|
2177
|
+
* Parse a persisted day-transcript file. Returns null when the content
|
|
2178
|
+
* does not look like a wearable transcript (wrong kind, missing
|
|
2179
|
+
* frontmatter) so callers can distinguish "not a transcript" from a
|
|
2180
|
+
* read error.
|
|
2181
|
+
*/
|
|
2182
|
+
declare function parseDayTranscript(raw: string): WearableDayTranscript | null;
|
|
2183
|
+
|
|
2184
|
+
/**
|
|
2185
|
+
* Wearable sync-state ledger — per-source bookkeeping for incremental
|
|
2186
|
+
* syncs, stored at `state/wearables/sync.json`.
|
|
2187
|
+
*
|
|
2188
|
+
* State is written only AFTER a source's transcripts (and any memories)
|
|
2189
|
+
* were persisted successfully, so a failed sync never advances the
|
|
2190
|
+
* watermark past data that didn't land.
|
|
2191
|
+
*/
|
|
2192
|
+
interface WearableSourceSyncState {
|
|
2193
|
+
/** ISO timestamp of the last successful sync run. */
|
|
2194
|
+
lastSyncAt: string;
|
|
2195
|
+
/** Most recent day (YYYY-MM-DD) that was synced. */
|
|
2196
|
+
lastDateSynced: string;
|
|
2197
|
+
/** Body hashes of the last-written day files, keyed by date. */
|
|
2198
|
+
dayHashes: Record<string, string>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Body hashes of days whose memory-extraction pass completed without
|
|
2201
|
+
* warnings, keyed by date. A day whose entry is missing or stale
|
|
2202
|
+
* re-extracts on the next sync even when its transcript is unchanged
|
|
2203
|
+
* — this is how a memory pass that failed mid-run (transcript stored,
|
|
2204
|
+
* memories incomplete) self-heals. Absent on records written before
|
|
2205
|
+
* this field existed.
|
|
2206
|
+
*/
|
|
2207
|
+
memoryDayHashes?: Record<string, string>;
|
|
2208
|
+
/** Native-memory ids already imported (bounded, newest kept). */
|
|
2209
|
+
importedNativeMemoryIds: string[];
|
|
2210
|
+
}
|
|
2211
|
+
interface WearableSyncStateFile {
|
|
2212
|
+
version: 1;
|
|
2213
|
+
sources: Record<string, WearableSourceSyncState>;
|
|
2214
|
+
}
|
|
2215
|
+
declare function syncStateFilePath(memoryDir: string): string;
|
|
2216
|
+
declare function emptySyncState(): WearableSyncStateFile;
|
|
2217
|
+
declare function loadSyncState(memoryDir: string): Promise<WearableSyncStateFile>;
|
|
2218
|
+
declare function saveSyncState(memoryDir: string, state: WearableSyncStateFile): Promise<void>;
|
|
2219
|
+
/** Merge a completed source sync into the state file shape. */
|
|
2220
|
+
declare function updateSourceSyncState(state: WearableSyncStateFile, sourceId: string, update: {
|
|
2221
|
+
syncedAt: string;
|
|
2222
|
+
days: string[];
|
|
2223
|
+
dayHashes: Record<string, string>;
|
|
2224
|
+
/** Days whose memory pass completed cleanly this run. */
|
|
2225
|
+
memoryDayHashes?: Record<string, string>;
|
|
2226
|
+
/**
|
|
2227
|
+
* Days whose memory pass ran this sync but did NOT complete
|
|
2228
|
+
* cleanly. Their previous completion records are removed so a
|
|
2229
|
+
* stale hash from an earlier clean pass can never mask the
|
|
2230
|
+
* failure on the next sync.
|
|
2231
|
+
*/
|
|
2232
|
+
clearMemoryDays?: string[];
|
|
2233
|
+
importedNativeMemoryIds?: string[];
|
|
2234
|
+
}): WearableSyncStateFile;
|
|
2235
|
+
|
|
2236
|
+
/**
|
|
2237
|
+
* Wearables CLI runner — one implementation shared by every CLI host
|
|
2238
|
+
* (`remnic wearables ...` and `openclaw engram wearables ...`), so the
|
|
2239
|
+
* surfaces never fork (same rule as the recall-explain renderers).
|
|
2240
|
+
*
|
|
2241
|
+
* Flag validation is strict: every value-taking flag requires a value,
|
|
2242
|
+
* unknown flags error with the valid list, and invalid values reject
|
|
2243
|
+
* loudly (CLAUDE.md rules 14 + 51).
|
|
2244
|
+
*/
|
|
2245
|
+
|
|
2246
|
+
interface WearablesCliIo {
|
|
2247
|
+
stdout: {
|
|
2248
|
+
write(chunk: string): unknown;
|
|
2249
|
+
};
|
|
2250
|
+
stderr: {
|
|
2251
|
+
write(chunk: string): unknown;
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
/**
|
|
2255
|
+
* Run a wearables CLI command. Returns a process exit code; all output
|
|
2256
|
+
* goes through `io`.
|
|
2257
|
+
*/
|
|
2258
|
+
declare function runWearablesCliCommand(service: WearablesService, args: string[], io: WearablesCliIo): Promise<number>;
|
|
2259
|
+
|
|
1962
2260
|
/**
|
|
1963
2261
|
* Training-data export types.
|
|
1964
2262
|
*
|
|
@@ -2148,4 +2446,4 @@ declare function forkCapsule(opts: ForkCapsuleOptions): Promise<ForkCapsuleResul
|
|
|
2148
2446
|
*/
|
|
2149
2447
|
declare function readForkLineage(targetRoot: string, forkId: string): Promise<ForkLineage | null>;
|
|
2150
2448
|
|
|
2151
|
-
export { type AuditEntry, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_SCAN_PATTERNS, DEFAULT_TAXONOMY, type DedupOptions, type DedupResult, DiscoveredExtension, type DocFile, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, type IngestionPlan, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, MemoryCategory, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OnboardOptions, type OnboardResult, PUBLISHERS, type PipelineResult, PluginConfig, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, type StatementProvenance, StorageManager, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, Taxonomy, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TreeNode, branchNamespaceName, buildProcedureMarkdownBody, buildProcedureRecallSection, clearTrainingExportAdapters, convertMemoriesToRecords, createBackend, createGoogleDriveConnector, createNotionConnector, createSpace, curate, defaultGoogleDriveClientFactory, deleteSpace, describeCodingScope, emptyManifest, expandTildePath, findContradictions, findDuplicates, forkCapsule, generateContextTree, generateResolverDocument, getActiveSpace, getAuditLog, getManifestPath, getSpacesDir, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, hostIdForConnector, isReviewPrompt, listReviewItems, listSpaces, listTrainingExportAdapters, loadManifest, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, mergeSpaces, normalizeOriginUrl, onboard, packReviewContext, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseProcedureStepsFromBody, parseTouchedFiles, performReview, projectNamespaceName, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, rankReviewCandidates, readForkLineage, readManifest, registerPublisher, registerTrainingExportAdapter, renderExtensionsBlock, renderExtensionsFooter, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, runBinaryLifecyclePipeline, saveManifest, saveTaxonomy, scanForBinaries, shareSpace, stableHash, switchSpace, syncChanges, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, watchForChanges, writeManifest };
|
|
2449
|
+
export { type AuditEntry, type BinaryAssetRecord, type BinaryAssetStatus, type BinaryLifecycleConfig, type BinaryLifecycleManifest, type BinaryStorageBackend, type BinaryStorageBackendConfig, ClaudeCodeMemoryExtensionPublisher, type CleanupResult, CodexMemoryExtensionPublisher, type CodingNamespaceOverlay, type CodingScopeDescription, type CompiledCorrectionRule, type ConflictEntry, type ContradictionOptions, type ContradictionPair, type ContradictionResult$1 as CurateContradictionResult, type DuplicateResult as CurateDuplicateResult, type CurateOptions, type CurateResult, type CuratedStatement, DEFAULT_GRACE_PERIOD_DAYS, DEFAULT_MAX_BINARY_SIZE_BYTES, DEFAULT_SCAN_PATTERNS, DEFAULT_TAXONOMY, type DedupOptions, type DedupResult, DiscoveredExtension, type DocFile, type DriveChange, type DriveChangesPage, type DriveFileMetadata, type DuplicatePair, type FileChange, FilesystemBackend, type ForkCapsuleOptions, type ForkCapsuleResult, type ForkLineage, GOOGLE_DRIVE_CONNECTOR_ID, GOOGLE_DRIVE_CURSOR_KIND, DEFAULT_POLL_INTERVAL_MS as GOOGLE_DRIVE_DEFAULT_POLL_INTERVAL_MS, type GenerateOptions, type GenerateResult, type GitContext, type GitInvoker, type GoogleDriveClient, type GoogleDriveClientFactory, type GoogleDriveConnectorConfig, type GoogleDriveSyncResult, HermesMemoryExtensionPublisher, type IngestionPlan, KNOWN_WEARABLE_SOURCE_IDS, type LanguageInfo, LiveConnector, LiveConnectorRegistry, LiveConnectorRegistryError, MemoryCategory, type MemoryEntry, type MemoryExtensionPublisher, type MergeResult, NOTION_CONNECTOR_ID, NOTION_CURSOR_KIND, NOTION_DEFAULT_POLL_INTERVAL_MS, NoneBackend, type NotionConnectorConfig, type OnboardOptions, type OnboardResult, PUBLISHERS, type PipelineResult, PluginConfig, type ProjectShape, type ProvenanceEntry, type PublishContext, type PublishResult, type PublisherCapabilities, REDACTION_PLACEHOLDER, REMNIC_CITATION_FORMAT, REMNIC_MCP_TOOL_INVENTORY, REMNIC_RECALL_DECISION_RULES, REMNIC_SEMANTIC_OVERVIEW, ResolverDecision, type ReviewAction, type ReviewCandidate, type ReviewContext, type ReviewItem, type ReviewListResult, type ReviewOptions, type ReviewResult, type Space, type SpaceKind, type SpaceManifest, type SpacePromoteResult, type SpacePullResult, type SpacePushResult, type SpaceShareResult, type SpaceSwitchResult, SpeakerRegistry, type StatementProvenance, StorageManager, SyncIncrementalResult, type SyncOptions, type SyncResult, type SyncState, Taxonomy, TokenEntry, type TrainingExportAdapter, type TrainingExportOptions, type TrainingExportRecord, type TreeNode, WEARABLES_DIR_NAME, WearableCleanupSettings, type WearableConnectorFactory, type WearableConnectorFactoryOptions, type WearableConnectorRegistration, WearableConversation, WearableCorrectionRule, WearableDayTranscript, WearableDayTranscriptMeta, WearableSourceConnector, WearableSourceSettings, type WearableSourceSyncState, type WearableSyncStateFile, type WearablesCliIo, WearablesConfig, WearablesInputError, WearablesService, applyCorrections, applyOffTheRecord, branchNamespaceName, buildProcedureMarkdownBody, buildProcedureRecallSection, cleanConversation, clearTrainingExportAdapters, clearWearableConnectors, collapseImmediateRepeats, compileCorrectionRule, compileCorrectionRules, compileRedactionPatterns, composeDayTranscriptBody, composeDayTranscriptMeta, convertMemoriesToRecords, correctionsFilePath, createBackend, createGoogleDriveConnector, createNotionConnector, createSpace, curate, defaultGoogleDriveClientFactory, defaultWearableCleanupSettings, defaultWearableSourceSettings, defaultWearablesConfig, deleteSpace, describeCodingScope, describeErrorForOperator, emptyManifest, emptySyncState, ensureBuiltInWearableConnectors, expandTildePath, findContradictions, findDuplicates, forkCapsule, generateContextTree, generateResolverDocument, getActiveSpace, getAuditLog, getManifestPath, getSpacesDir, getTaxonomyDir, getTaxonomyFilePath, getTrainingExportAdapter, getWearableConnector, hashTranscriptBody, hostIdForConnector, isLowQualitySegment, isReviewPrompt, isValidTranscriptDate, listReviewItems, listSpaces, listTrainingExportAdapters, listWearableConnectors, loadCorrectionsFile, loadManifest, loadSyncState, loadTaxonomy, manifestDir, manifestPath, matchesPatterns, mergeSpaces, normalizeOriginUrl, onboard, packReviewContext, parseDayTranscript, parseFlexibleIsoTimestamp, parseIsoOffsetTimestamp, parseIsoUtcTimestamp, parseProcedureStepsFromBody, parseTouchedFiles, parseWearablesConfig, performReview, projectNamespaceName, promoteSpace, publisherFor, publisherForConnector, pullFromSpace, pushToSpace, rankReviewCandidates, readForkLineage, readManifest, redactText, registerPublisher, registerTrainingExportAdapter, registerWearableConnector, renderExtensionsBlock, renderExtensionsFooter, resolveCategory, resolveCodingNamespaceOverlay, resolveGitContext, runBinaryLifecyclePipeline, runWearablesCliCommand, saveCorrectionsFile, saveManifest, saveSyncState, saveTaxonomy, scanForBinaries, serializeDayTranscript, shareSpace, stableHash, stripFillerTokens, switchSpace, syncChanges, syncStateFilePath, updateSourceSyncState, validateGoogleDriveConfig, validateNotionConfig, validateSlug, validateTaxonomy, watchForChanges, writeManifest };
|