@remnic/core 9.3.703 → 9.3.704
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 +7 -7
- package/dist/access-boundary.js +15 -15
- package/dist/access-cli.js +31 -31
- package/dist/access-http.d.ts +7 -7
- package/dist/access-http.js +19 -19
- package/dist/access-mcp.d.ts +7 -7
- package/dist/access-mcp.js +18 -18
- package/dist/access-operations.d.ts +7 -7
- package/dist/access-operations.js +17 -17
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-COCzhgEL.d.ts → access-service-C8hc8N2i.d.ts} +4 -4
- package/dist/access-service.d.ts +7 -7
- package/dist/access-service.js +14 -14
- package/dist/access-surface-catalog.d.ts +7 -7
- package/dist/action-confidence.d.ts +3 -3
- package/dist/active-memory-bridge.d.ts +3 -3
- package/dist/active-recall.d.ts +3 -3
- package/dist/behavior-learner.d.ts +3 -3
- package/dist/behavior-signals.d.ts +3 -3
- package/dist/bootstrap.d.ts +6 -6
- package/dist/briefing.d.ts +3 -3
- package/dist/briefing.js +3 -3
- package/dist/buffer-surprise-report.d.ts +3 -3
- package/dist/buffer.d.ts +3 -3
- package/dist/bulk-import/index.d.ts +4 -4
- package/dist/calibration.d.ts +3 -3
- package/dist/capabilities.d.ts +3 -3
- package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-GWVG7LGC.js} +2 -2
- package/dist/{catalog-DxCzhjE6.d.ts → catalog-CAeU0e1C.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +3 -3
- package/dist/causal-consolidation.d.ts +3 -3
- package/dist/causal-consolidation.js +4 -4
- package/dist/{chunk-5VXVXJH6.js → chunk-25FHSOEB.js} +5 -5
- package/dist/{chunk-ZCEI242W.js → chunk-3EHCV6YV.js} +368 -358
- package/dist/chunk-3EHCV6YV.js.map +1 -0
- package/dist/{chunk-QQW2LIEA.js → chunk-53EEQYE5.js} +4 -4
- package/dist/{chunk-VDX2J7OX.js → chunk-5W7CTZ2E.js} +4 -4
- package/dist/{chunk-VPAFWWCL.js → chunk-6AFVIOVZ.js} +2 -2
- package/dist/{chunk-6TAETM63.js → chunk-6GHWF4QH.js} +2 -2
- package/dist/{chunk-EZR35XHX.js → chunk-6Q7JFY4P.js} +2 -2
- package/dist/{chunk-64XXOQRW.js → chunk-7G4KPGR3.js} +2 -2
- package/dist/{chunk-TGAHHCB6.js → chunk-AE3C4PY6.js} +2 -2
- package/dist/{chunk-CI7RKSRE.js → chunk-AQEJKOKI.js} +2 -1
- package/dist/{chunk-CZJ6QSKG.js → chunk-CTY6QSLZ.js} +4 -4
- package/dist/{chunk-FVI5B7DE.js → chunk-DE2OPIQD.js} +2 -2
- package/dist/{chunk-MDJURR27.js → chunk-HW5EF6LV.js} +2 -2
- package/dist/{chunk-BMFZLLNI.js → chunk-ICP53SKG.js} +2 -2
- package/dist/{chunk-MBUM2Y3L.js → chunk-K7QRDDSR.js} +2 -2
- package/dist/{chunk-GFIARMA7.js → chunk-NMW3T6T6.js} +5 -5
- package/dist/{chunk-6VVP6NK7.js → chunk-OCFNG4LB.js} +2 -2
- package/dist/{chunk-KC6TCAWV.js → chunk-OOEVMJK4.js} +5 -5
- package/dist/{chunk-MXEWQKM7.js → chunk-ORXVO6TH.js} +2 -2
- package/dist/{chunk-BXLOS5AJ.js → chunk-OWHERGF2.js} +2 -2
- package/dist/{chunk-EOOVJK2U.js → chunk-PJ5MDXOF.js} +3 -3
- package/dist/{chunk-X5J3JZR3.js → chunk-PKMQK2WY.js} +3 -3
- package/dist/{chunk-Q4O3ET6F.js → chunk-QDIVMS25.js} +2 -2
- package/dist/{chunk-EYJD6KIO.js → chunk-QHNJVWF6.js} +2 -2
- package/dist/{chunk-JMA4RYRN.js → chunk-QV5WFNZ2.js} +2 -2
- package/dist/{chunk-XGMCUY5P.js → chunk-R64MNFPV.js} +20 -20
- package/dist/{chunk-QGJAGC2J.js → chunk-RYDT7LAI.js} +2 -2
- package/dist/{chunk-JTKFZMZ7.js → chunk-S24J5LLQ.js} +3 -3
- package/dist/{chunk-AMNLZ6SF.js → chunk-TUPNAHHQ.js} +2 -2
- package/dist/{chunk-DL6H3D7S.js → chunk-UNNDFYUX.js} +5 -5
- package/dist/{chunk-QIMFOCSH.js → chunk-UOIRJ45Z.js} +2 -2
- package/dist/{chunk-DQEMWVMT.js → chunk-UVYI6VIX.js} +1 -1
- package/dist/{chunk-IX72AAMZ.js → chunk-WAHI7SPK.js} +2 -2
- package/dist/{chunk-7WWURLG6.js → chunk-XPOOY35N.js} +2 -2
- package/dist/{chunk-NUIJEGVD.js → chunk-XXDOJ5NL.js} +5 -5
- package/dist/{chunk-Z7XEIAV4.js → chunk-YLB7NMLD.js} +2 -2
- package/dist/{chunk-OXEAMU42.js → chunk-ZXFNSKPY.js} +8 -8
- package/dist/{cli-BM4xQPp4.d.ts → cli-ChE0XlJY.d.ts} +6 -6
- package/dist/cli.d.ts +9 -9
- package/dist/cli.js +31 -31
- package/dist/compounding/engine.d.ts +3 -3
- package/dist/compounding/engine.js +3 -3
- package/dist/compounding/preference-consolidator.d.ts +3 -3
- package/dist/compression-optimizer.d.ts +3 -3
- package/dist/config.d.ts +3 -3
- package/dist/connectors/codex-materialize-runner.d.ts +3 -3
- package/dist/connectors/codex-materialize-runner.js +3 -3
- package/dist/connectors/codex-materialize.d.ts +3 -3
- package/dist/connectors/index.d.ts +3 -3
- package/dist/connectors/index.js +3 -3
- package/dist/consolidation-provenance-check.d.ts +3 -3
- package/dist/consolidation-undo.d.ts +3 -3
- package/dist/contradiction/index.d.ts +3 -3
- package/dist/conversation-index/backend.d.ts +3 -3
- package/dist/conversation-index/chunker.d.ts +3 -3
- package/dist/conversation-index/faiss-adapter.d.ts +3 -3
- package/dist/conversation-index/indexer.d.ts +3 -3
- package/dist/conversation-index/search.d.ts +3 -3
- package/dist/day-summary.d.ts +3 -3
- package/dist/delinearize.d.ts +3 -3
- package/dist/direct-answer-wiring.d.ts +3 -3
- package/dist/direct-answer.d.ts +3 -3
- package/dist/embedding-fallback.d.ts +3 -3
- package/dist/enrichment/index.d.ts +3 -3
- package/dist/entity-retrieval.d.ts +3 -3
- package/dist/entity-retrieval.js +3 -3
- package/dist/entity-schema.d.ts +3 -3
- package/dist/explicit-capture.d.ts +6 -6
- package/dist/extraction-faithfulness.d.ts +3 -3
- package/dist/extraction-judge-telemetry.d.ts +3 -3
- package/dist/extraction-judge-training.d.ts +3 -3
- package/dist/extraction-judge.d.ts +3 -3
- package/dist/extraction.d.ts +3 -3
- package/dist/fallback-llm.d.ts +3 -3
- package/dist/identity-continuity.d.ts +3 -3
- package/dist/importance.d.ts +3 -3
- package/dist/importers/index.d.ts +2 -2
- package/dist/index.d.ts +14 -29
- package/dist/index.js +42 -42
- package/dist/intent.d.ts +3 -3
- package/dist/lcm/archive.d.ts +1 -1
- package/dist/lcm/archive.js +2 -2
- package/dist/lcm/engine.d.ts +3 -3
- package/dist/lcm/engine.js +4 -4
- package/dist/lcm/index.d.ts +3 -3
- package/dist/lcm/index.js +4 -4
- package/dist/lcm/queue.d.ts +1 -1
- package/dist/lcm/recall.d.ts +1 -1
- package/dist/lcm/summarizer.d.ts +1 -1
- package/dist/lcm/summarizer.js +3 -3
- package/dist/lcm/tools.d.ts +3 -3
- package/dist/lifecycle.d.ts +3 -3
- package/dist/live-connectors-runner.d.ts +3 -3
- package/dist/local-llm.d.ts +3 -3
- package/dist/maintenance/memory-governance.d.ts +3 -3
- 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 +7 -7
- package/dist/memory-action-policy.d.ts +3 -3
- package/dist/memory-cache.d.ts +3 -3
- package/dist/memory-lifecycle-ledger-utils.d.ts +3 -3
- package/dist/memory-projection-store.d.ts +3 -3
- package/dist/memory-provenance.d.ts +3 -3
- package/dist/memory-worth-outcomes.d.ts +3 -3
- package/dist/{index-DJ9QWMw-.d.ts → message-parts/index.d.ts} +2 -1
- package/dist/message-parts/index.js +24 -0
- package/dist/models-json.d.ts +3 -3
- package/dist/namespaces/migrate.d.ts +4 -4
- package/dist/namespaces/migrate.js +8 -8
- package/dist/namespaces/principal.d.ts +3 -3
- package/dist/namespaces/search.d.ts +3 -3
- package/dist/namespaces/search.js +4 -4
- package/dist/namespaces/storage.d.ts +4 -4
- package/dist/namespaces/storage.js +3 -3
- package/dist/native-knowledge.d.ts +3 -3
- package/dist/objective-state-writers.d.ts +1 -1
- package/dist/objective-state-writers.js +2 -2
- package/dist/operator-toolkit.d.ts +3 -3
- package/dist/operator-toolkit.js +12 -12
- package/dist/orchestration/maintenance.d.ts +4 -4
- package/dist/orchestration/maintenance.js +5 -5
- package/dist/{orchestrator-C9CDWAm6.d.ts → orchestrator-m_PnhyHj.d.ts} +4 -4
- package/dist/orchestrator.d.ts +6 -6
- package/dist/orchestrator.js +22 -22
- package/dist/patterns-cli.d.ts +3 -3
- package/dist/{pipeline-BSTuml0d.d.ts → pipeline-DmqtvION.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +3 -3
- package/dist/provenance.d.ts +3 -3
- package/dist/qmd-recall-cache.d.ts +3 -3
- package/dist/qmd.d.ts +3 -3
- package/dist/recall-disclosure-escalation.d.ts +3 -3
- package/dist/recall-explain-renderer.d.ts +3 -3
- package/dist/recall-planner-llm.d.ts +3 -3
- package/dist/recall-state.d.ts +3 -3
- package/dist/recall-tag-filter.d.ts +3 -3
- package/dist/recall-xray-cli.d.ts +3 -3
- package/dist/recall-xray-renderer.d.ts +3 -3
- package/dist/recall-xray.d.ts +3 -3
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/resolve-auth-token.d.ts +3 -3
- package/dist/retrieval-agents.d.ts +3 -3
- package/dist/retrieval-tiers.d.ts +3 -3
- package/dist/routing/engine.d.ts +3 -3
- package/dist/routing/store.d.ts +3 -3
- package/dist/search/embed-helper.d.ts +3 -3
- package/dist/search/factory.d.ts +3 -3
- package/dist/search/factory.js +3 -3
- package/dist/search/index.d.ts +3 -3
- package/dist/search/index.js +7 -7
- package/dist/search/lancedb-backend.d.ts +3 -3
- package/dist/search/meilisearch-backend.d.ts +3 -3
- package/dist/search/noop-backend.d.ts +3 -3
- package/dist/search/orama-backend.d.ts +3 -3
- package/dist/search/port.d.ts +3 -3
- package/dist/search/remote-backend.d.ts +3 -3
- package/dist/{semantic-consolidation-DgFXyALl.d.ts → semantic-consolidation-DVBbq6Wr.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +4 -4
- package/dist/semantic-consolidation.js +4 -4
- package/dist/semantic-rule-promotion.js +3 -3
- package/dist/semantic-rule-verifier.d.ts +3 -3
- package/dist/semantic-rule-verifier.js +3 -3
- package/dist/session-observer-bands.d.ts +3 -3
- package/dist/session-observer-state.d.ts +3 -3
- package/dist/shared-context/manager.d.ts +3 -3
- package/dist/signal.d.ts +3 -3
- package/dist/storage.d.ts +3 -3
- package/dist/storage.js +2 -2
- package/dist/summarizer.d.ts +3 -3
- package/dist/summary-snapshot.d.ts +3 -3
- package/dist/temporal-supersession.d.ts +3 -3
- package/dist/temporal-validity.d.ts +3 -3
- package/dist/threading.d.ts +3 -3
- package/dist/tier-migration.d.ts +3 -3
- package/dist/tier-routing.d.ts +3 -3
- package/dist/topics.d.ts +3 -3
- package/dist/transcript.d.ts +3 -3
- package/dist/transfer/backup.js +2 -2
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +2 -2
- package/dist/{types-MWKPZnM0.d.ts → types-CJrvHJjx.d.ts} +2 -2
- package/dist/{types-ByK7T3L6.d.ts → types-gb_SNtjR.d.ts} +1 -1
- package/dist/types.d.ts +3 -3
- package/dist/utility-runtime.d.ts +3 -3
- package/dist/utils/path.d.ts +17 -0
- package/dist/utils/path.js +9 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/verified-recall.js +3 -3
- package/package.json +27 -2
- package/src/cli/creation-ledger-commands.ts +346 -0
- package/src/cli/research-status-commands.ts +256 -0
- package/src/cli.ts +7 -516
- package/dist/chunk-ZCEI242W.js.map +0 -1
- package/dist/path-X2K5XCHL.js +0 -9
- /package/dist/{capsule-crypto-YO5QJ6L3.js.map → capsule-crypto-GWVG7LGC.js.map} +0 -0
- /package/dist/{chunk-5VXVXJH6.js.map → chunk-25FHSOEB.js.map} +0 -0
- /package/dist/{chunk-QQW2LIEA.js.map → chunk-53EEQYE5.js.map} +0 -0
- /package/dist/{chunk-VDX2J7OX.js.map → chunk-5W7CTZ2E.js.map} +0 -0
- /package/dist/{chunk-VPAFWWCL.js.map → chunk-6AFVIOVZ.js.map} +0 -0
- /package/dist/{chunk-6TAETM63.js.map → chunk-6GHWF4QH.js.map} +0 -0
- /package/dist/{chunk-EZR35XHX.js.map → chunk-6Q7JFY4P.js.map} +0 -0
- /package/dist/{chunk-64XXOQRW.js.map → chunk-7G4KPGR3.js.map} +0 -0
- /package/dist/{chunk-TGAHHCB6.js.map → chunk-AE3C4PY6.js.map} +0 -0
- /package/dist/{chunk-CI7RKSRE.js.map → chunk-AQEJKOKI.js.map} +0 -0
- /package/dist/{chunk-CZJ6QSKG.js.map → chunk-CTY6QSLZ.js.map} +0 -0
- /package/dist/{chunk-FVI5B7DE.js.map → chunk-DE2OPIQD.js.map} +0 -0
- /package/dist/{chunk-MDJURR27.js.map → chunk-HW5EF6LV.js.map} +0 -0
- /package/dist/{chunk-BMFZLLNI.js.map → chunk-ICP53SKG.js.map} +0 -0
- /package/dist/{chunk-MBUM2Y3L.js.map → chunk-K7QRDDSR.js.map} +0 -0
- /package/dist/{chunk-GFIARMA7.js.map → chunk-NMW3T6T6.js.map} +0 -0
- /package/dist/{chunk-6VVP6NK7.js.map → chunk-OCFNG4LB.js.map} +0 -0
- /package/dist/{chunk-KC6TCAWV.js.map → chunk-OOEVMJK4.js.map} +0 -0
- /package/dist/{chunk-MXEWQKM7.js.map → chunk-ORXVO6TH.js.map} +0 -0
- /package/dist/{chunk-BXLOS5AJ.js.map → chunk-OWHERGF2.js.map} +0 -0
- /package/dist/{chunk-EOOVJK2U.js.map → chunk-PJ5MDXOF.js.map} +0 -0
- /package/dist/{chunk-X5J3JZR3.js.map → chunk-PKMQK2WY.js.map} +0 -0
- /package/dist/{chunk-Q4O3ET6F.js.map → chunk-QDIVMS25.js.map} +0 -0
- /package/dist/{chunk-EYJD6KIO.js.map → chunk-QHNJVWF6.js.map} +0 -0
- /package/dist/{chunk-JMA4RYRN.js.map → chunk-QV5WFNZ2.js.map} +0 -0
- /package/dist/{chunk-XGMCUY5P.js.map → chunk-R64MNFPV.js.map} +0 -0
- /package/dist/{chunk-QGJAGC2J.js.map → chunk-RYDT7LAI.js.map} +0 -0
- /package/dist/{chunk-JTKFZMZ7.js.map → chunk-S24J5LLQ.js.map} +0 -0
- /package/dist/{chunk-AMNLZ6SF.js.map → chunk-TUPNAHHQ.js.map} +0 -0
- /package/dist/{chunk-DL6H3D7S.js.map → chunk-UNNDFYUX.js.map} +0 -0
- /package/dist/{chunk-QIMFOCSH.js.map → chunk-UOIRJ45Z.js.map} +0 -0
- /package/dist/{chunk-DQEMWVMT.js.map → chunk-UVYI6VIX.js.map} +0 -0
- /package/dist/{chunk-IX72AAMZ.js.map → chunk-WAHI7SPK.js.map} +0 -0
- /package/dist/{chunk-7WWURLG6.js.map → chunk-XPOOY35N.js.map} +0 -0
- /package/dist/{chunk-NUIJEGVD.js.map → chunk-XXDOJ5NL.js.map} +0 -0
- /package/dist/{chunk-Z7XEIAV4.js.map → chunk-YLB7NMLD.js.map} +0 -0
- /package/dist/{chunk-OXEAMU42.js.map → chunk-ZXFNSKPY.js.map} +0 -0
- /package/dist/{path-X2K5XCHL.js.map → message-parts/index.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as ImportTurnProvenance } from './types-
|
|
2
|
-
import {
|
|
1
|
+
import { c as ImportTurnProvenance } from './types-gb_SNtjR.js';
|
|
2
|
+
import { LcmMessagePartInput, MessagePartSourceFormat } from './message-parts/index.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Wearable transcript subsystem — shared types (issue: wearable connectors).
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './types-
|
|
2
|
-
import './index
|
|
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, f 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, v as Checkpoint, bh as CodexCliReasoningEffort, bi as CodexCompactionFlushMode, aX as CodexCompatConfig, bj as CodexConnectorConfig, aG as CodingContext, bk as CodingKnowledgeConfig, aR as CodingModeConfig, bl as CompressionGuidelineActivationState, N as CompressionGuidelineOptimizerActionSummary, K as CompressionGuidelineOptimizerEventCounts, O as CompressionGuidelineOptimizerRuleUpdate, bm as CompressionGuidelineOptimizerSourceWindow, X as CompressionGuidelineOptimizerState, bn as ConfidenceTier, bo as ConsolidationAction, bp as ConsolidationItem, aJ as ConsolidationObservation, a1 as ConsolidationResult, a6 as ContinuityImprovementLoop, a4 as ContinuityIncidentCloseInput, a5 as ContinuityIncidentOpenInput, a3 as ContinuityIncidentRecord, bq as ContinuityIncidentState, br as ContinuityLoopCadence, a7 as ContinuityLoopReviewInput, bs as ContinuityLoopStatus, a8 as ContinuityLoopUpsertInput, bt as ContradictionScanConfig, am as ConversationThread, bu as CronConversationRecallMode, bv as CronRecallMode, aY as DEFAULT_RECALL_DISCLOSURE, a2 as DaySummaryResult, bw as DreamingConfig, bx as DreamingNarrativePromptStyle, by as DreamsDeepSleepConfig, bz as DreamsLightSleepConfig, aP as DreamsPhase, bA as DreamsPhaseStatus, bB as DreamsPhasesConfig, bC as DreamsRemConfig, aQ as DreamsRunResult, aO as DreamsStatusResult, bD 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, bE as ExtractedProcedureStep, bF as ExtractedQuestion, bG as ExtractedReasoningTrace, bH as ExtractedReasoningTraceStep, bI as ExtractedRelationship, bJ as ExtractionPassSource, a0 as ExtractionResult, F as FaithfulnessFrontmatter, ar as FileHygieneConfig, G as GatewayConfig, bK as GitHubLiveConnectorConfig, bL as GmailLiveConnectorConfig, bM as GoogleDriveLiveConnectorConfig, bN as HeartbeatConfig, bO as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, y as ImportanceLevel, a9 as ImportanceScore, w as LifecycleState, L as LiveConnectorsConfig, bP as LlmTraceCallback, bQ as LlmTraceEvent, ac as MemoryActionEligibilityContext, a_ as MemoryActionEligibilitySource, W as MemoryActionEvent, bR as MemoryActionOutcome, bS as MemoryActionPolicyDecision, ad as MemoryActionPolicyResult, bT 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, bU as MemoryLinkType, a$ as MemoryObservation, bV as MemoryOsPresetName, l as MemoryProjectionCurrentState, b0 as MemoryScope, h as MemoryStatus, av as MemorySummary, aq as MetaState, bW as ModelApi, bX as ModelDefinitionConfig, bY as ModelProviderAuthMode, ag as ModelProviderConfig, bZ as NamespacePolicy, ah as NativeKnowledgeConfig, b_ as NativeKnowledgeFolderRuleConfig, b$ as NativeKnowledgeObsidianVaultConfig, c0 as NativeKnowledgeOpenClawWorkspaceConfig, c1 as NotionLiveConnectorConfig, P as PluginConfig, x as PolicyClass, c2 as PrincipalFromSessionKeyMode, c3 as PrincipalRule, c4 as ProceduralConfig, aj as ProvenanceConfig, ai as ProvenanceSource, ab as QmdSearchExplain, Q as QmdSearchResult, c5 as QuestionEntry, b1 as RECALL_DISCLOSURE_LEVELS, c6 as ReasoningEffort, j as RecallDisclosure, c7 as RecallPipelineConfig, i as RecallPlanMode, c8 as RecallSectionConfig, R as RecallTierExplain, c9 as RecallTraceEvent, ca as RelevanceFeedback, ak as RetrievalTier, cb as SPECULATIVE_TTL_DAYS, cc as ScopeProfileAutoPromoteConfig, aN as ScopeProfileConfig, aL as ScopeProfileLayerId, aM as ScopeProfilePromotionTarget, cd as ScopeProfileTeamProjectConfig, ce as ScopeTeamConfig, cf as ScoredEntity, D as SecretRef, cg as SemanticChunkingConfigShape, S as SessionObserverBandConfig, ch as SignalLevel, al as SignalScanResult, ci as SlotBehaviorConfig, cj as SlotMismatchMode, an as TopicScore, T as TranscriptEntry, ck as TriggerMode, V as VerificationState, cl as confidenceTier, b7 as isRecallDisclosure } from './types-
|
|
1
|
+
import './types-gb_SNtjR.js';
|
|
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, f 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, v as Checkpoint, bh as CodexCliReasoningEffort, bi as CodexCompactionFlushMode, aX as CodexCompatConfig, bj as CodexConnectorConfig, aG as CodingContext, bk as CodingKnowledgeConfig, aR as CodingModeConfig, bl as CompressionGuidelineActivationState, N as CompressionGuidelineOptimizerActionSummary, K as CompressionGuidelineOptimizerEventCounts, O as CompressionGuidelineOptimizerRuleUpdate, bm as CompressionGuidelineOptimizerSourceWindow, X as CompressionGuidelineOptimizerState, bn as ConfidenceTier, bo as ConsolidationAction, bp as ConsolidationItem, aJ as ConsolidationObservation, a1 as ConsolidationResult, a6 as ContinuityImprovementLoop, a4 as ContinuityIncidentCloseInput, a5 as ContinuityIncidentOpenInput, a3 as ContinuityIncidentRecord, bq as ContinuityIncidentState, br as ContinuityLoopCadence, a7 as ContinuityLoopReviewInput, bs as ContinuityLoopStatus, a8 as ContinuityLoopUpsertInput, bt as ContradictionScanConfig, am as ConversationThread, bu as CronConversationRecallMode, bv as CronRecallMode, aY as DEFAULT_RECALL_DISCLOSURE, a2 as DaySummaryResult, bw as DreamingConfig, bx as DreamingNarrativePromptStyle, by as DreamsDeepSleepConfig, bz as DreamsLightSleepConfig, aP as DreamsPhase, bA as DreamsPhaseStatus, bB as DreamsPhasesConfig, bC as DreamsRemConfig, aQ as DreamsRunResult, aO as DreamsStatusResult, bD 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, bE as ExtractedProcedureStep, bF as ExtractedQuestion, bG as ExtractedReasoningTrace, bH as ExtractedReasoningTraceStep, bI as ExtractedRelationship, bJ as ExtractionPassSource, a0 as ExtractionResult, F as FaithfulnessFrontmatter, ar as FileHygieneConfig, G as GatewayConfig, bK as GitHubLiveConnectorConfig, bL as GmailLiveConnectorConfig, bM as GoogleDriveLiveConnectorConfig, bN as HeartbeatConfig, bO as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, y as ImportanceLevel, a9 as ImportanceScore, w as LifecycleState, L as LiveConnectorsConfig, bP as LlmTraceCallback, bQ as LlmTraceEvent, ac as MemoryActionEligibilityContext, a_ as MemoryActionEligibilitySource, W as MemoryActionEvent, bR as MemoryActionOutcome, bS as MemoryActionPolicyDecision, ad as MemoryActionPolicyResult, bT 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, bU as MemoryLinkType, a$ as MemoryObservation, bV as MemoryOsPresetName, l as MemoryProjectionCurrentState, b0 as MemoryScope, h as MemoryStatus, av as MemorySummary, aq as MetaState, bW as ModelApi, bX as ModelDefinitionConfig, bY as ModelProviderAuthMode, ag as ModelProviderConfig, bZ as NamespacePolicy, ah as NativeKnowledgeConfig, b_ as NativeKnowledgeFolderRuleConfig, b$ as NativeKnowledgeObsidianVaultConfig, c0 as NativeKnowledgeOpenClawWorkspaceConfig, c1 as NotionLiveConnectorConfig, P as PluginConfig, x as PolicyClass, c2 as PrincipalFromSessionKeyMode, c3 as PrincipalRule, c4 as ProceduralConfig, aj as ProvenanceConfig, ai as ProvenanceSource, ab as QmdSearchExplain, Q as QmdSearchResult, c5 as QuestionEntry, b1 as RECALL_DISCLOSURE_LEVELS, c6 as ReasoningEffort, j as RecallDisclosure, c7 as RecallPipelineConfig, i as RecallPlanMode, c8 as RecallSectionConfig, R as RecallTierExplain, c9 as RecallTraceEvent, ca as RelevanceFeedback, ak as RetrievalTier, cb as SPECULATIVE_TTL_DAYS, cc as ScopeProfileAutoPromoteConfig, aN as ScopeProfileConfig, aL as ScopeProfileLayerId, aM as ScopeProfilePromotionTarget, cd as ScopeProfileTeamProjectConfig, ce as ScopeTeamConfig, cf as ScoredEntity, D as SecretRef, cg as SemanticChunkingConfigShape, S as SessionObserverBandConfig, ch as SignalLevel, al as SignalScanResult, ci as SlotBehaviorConfig, cj as SlotMismatchMode, an as TopicScore, T as TranscriptEntry, ck as TriggerMode, V as VerificationState, cl as confidenceTier, b7 as isRecallDisclosure } from './types-CJrvHJjx.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TierRoutingPolicy } from './tier-routing.js';
|
|
2
|
-
import './types-
|
|
3
|
-
import './types-
|
|
4
|
-
import './index
|
|
2
|
+
import './types-CJrvHJjx.js';
|
|
3
|
+
import './types-gb_SNtjR.js';
|
|
4
|
+
import './message-parts/index.js';
|
|
5
5
|
import './lifecycle.js';
|
|
6
6
|
|
|
7
7
|
interface UtilityRuntimeValues {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared path helpers. CLAUDE.md #17 requires consistent `~` expansion across
|
|
3
|
+
* every user-facing path input, but Node's `fs` does not expand `~`, so every
|
|
4
|
+
* call site must go through this helper.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Expand a leading `~` or `~/…` to the resolved home directory.
|
|
8
|
+
*
|
|
9
|
+
* Leaves paths without a leading `~` unchanged — including absolute paths,
|
|
10
|
+
* relative paths, and paths that contain `~` in the middle.
|
|
11
|
+
*
|
|
12
|
+
* Accepts both `~/` (POSIX) and `~\` (Windows) as separators so call sites
|
|
13
|
+
* don't have to branch on platform.
|
|
14
|
+
*/
|
|
15
|
+
declare function expandTildePath(p: string): string;
|
|
16
|
+
|
|
17
|
+
export { expandTildePath };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/verified-recall.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
compareVerifiedEpisodeResults,
|
|
3
3
|
searchVerifiedEpisodes
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ORXVO6TH.js";
|
|
5
5
|
import "./chunk-7FL4CNPV.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-3JJWNZTT.js";
|
|
6
|
+
import "./chunk-NMW3T6T6.js";
|
|
8
7
|
import "./chunk-M7XQSUBB.js";
|
|
8
|
+
import "./chunk-3JJWNZTT.js";
|
|
9
9
|
import "./chunk-5UZXUTVO.js";
|
|
10
10
|
import "./chunk-5GPPACXK.js";
|
|
11
11
|
import "./chunk-OMNTQPZO.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.704",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -1476,6 +1476,21 @@
|
|
|
1476
1476
|
"remnic-source": "./src/memory-worth.ts",
|
|
1477
1477
|
"import": "./dist/memory-worth.js"
|
|
1478
1478
|
},
|
|
1479
|
+
"./message-parts": {
|
|
1480
|
+
"types": "./dist/message-parts/index.d.ts",
|
|
1481
|
+
"remnic-source": "./src/message-parts/index.ts",
|
|
1482
|
+
"import": "./dist/message-parts/index.js"
|
|
1483
|
+
},
|
|
1484
|
+
"./message-parts/index": {
|
|
1485
|
+
"types": "./dist/message-parts/index.d.ts",
|
|
1486
|
+
"remnic-source": "./src/message-parts/index.ts",
|
|
1487
|
+
"import": "./dist/message-parts/index.js"
|
|
1488
|
+
},
|
|
1489
|
+
"./message-parts/index.js": {
|
|
1490
|
+
"types": "./dist/message-parts/index.d.ts",
|
|
1491
|
+
"remnic-source": "./src/message-parts/index.ts",
|
|
1492
|
+
"import": "./dist/message-parts/index.js"
|
|
1493
|
+
},
|
|
1479
1494
|
"./migrate/from-engram": {
|
|
1480
1495
|
"types": "./dist/migrate/from-engram.d.ts",
|
|
1481
1496
|
"remnic-source": "./src/migrate/from-engram.ts",
|
|
@@ -2806,6 +2821,16 @@
|
|
|
2806
2821
|
"remnic-source": "./src/utils/serialize-mutations.ts",
|
|
2807
2822
|
"import": "./dist/utils/serialize-mutations.js"
|
|
2808
2823
|
},
|
|
2824
|
+
"./utils/path": {
|
|
2825
|
+
"types": "./dist/utils/path.d.ts",
|
|
2826
|
+
"remnic-source": "./src/utils/path.ts",
|
|
2827
|
+
"import": "./dist/utils/path.js"
|
|
2828
|
+
},
|
|
2829
|
+
"./utils/path.js": {
|
|
2830
|
+
"types": "./dist/utils/path.d.ts",
|
|
2831
|
+
"remnic-source": "./src/utils/path.ts",
|
|
2832
|
+
"import": "./dist/utils/path.js"
|
|
2833
|
+
},
|
|
2809
2834
|
"./verified-recall": {
|
|
2810
2835
|
"types": "./dist/verified-recall.d.ts",
|
|
2811
2836
|
"remnic-source": "./src/verified-recall.ts",
|
|
@@ -2941,7 +2966,7 @@
|
|
|
2941
2966
|
"core"
|
|
2942
2967
|
],
|
|
2943
2968
|
"peerDependencies": {
|
|
2944
|
-
"@remnic/coding-graph": "^9.3.
|
|
2969
|
+
"@remnic/coding-graph": "^9.3.704"
|
|
2945
2970
|
},
|
|
2946
2971
|
"peerDependenciesMeta": {
|
|
2947
2972
|
"@remnic/coding-graph": {
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creation-memory ledger command group — extracted from cli.ts (#1532 Phase B).
|
|
3
|
+
*
|
|
4
|
+
* Ten creation-memory ledger commands — thin wrappers over exported
|
|
5
|
+
* runXxxCliCommand helpers across three ledgers:
|
|
6
|
+
* - resume-bundle (status / record / build)
|
|
7
|
+
* - commitment (status / record / set-state / lifecycle)
|
|
8
|
+
* - work-product (status / record / recall-search)
|
|
9
|
+
*
|
|
10
|
+
* Behaviour is identical to the inline registration it replaces — the
|
|
11
|
+
* cli-command-surface contract tests guard against silent drift.
|
|
12
|
+
*
|
|
13
|
+
* Circular import note: same safe pattern as research-status-commands.ts —
|
|
14
|
+
* the runXxx helpers are referenced only inside action callbacks invoked at
|
|
15
|
+
* runtime, never at module-eval time.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import type { Orchestrator } from "../orchestrator.js";
|
|
19
|
+
import type { CliCommand } from "../cli.js";
|
|
20
|
+
import type { CommitmentLedgerEntry } from "../commitment-ledger.js";
|
|
21
|
+
import type { WorkProductLedgerEntry } from "../work-product-ledger.js";
|
|
22
|
+
import type { ResumeBundle } from "../resume-bundles.js";
|
|
23
|
+
import {
|
|
24
|
+
runResumeBundleStatusCliCommand,
|
|
25
|
+
runResumeBundleRecordCliCommand,
|
|
26
|
+
runResumeBundleBuildCliCommand,
|
|
27
|
+
runCommitmentStatusCliCommand,
|
|
28
|
+
runCommitmentRecordCliCommand,
|
|
29
|
+
runCommitmentSetStateCliCommand,
|
|
30
|
+
runCommitmentLifecycleCliCommand,
|
|
31
|
+
runWorkProductStatusCliCommand,
|
|
32
|
+
runWorkProductRecordCliCommand,
|
|
33
|
+
runWorkProductRecallSearchCliCommand,
|
|
34
|
+
} from "../cli.js";
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Register the creation-memory ledger command group on the parent `engram`
|
|
38
|
+
* command. Extracted verbatim from registerCli; behaviour-preserving.
|
|
39
|
+
*/
|
|
40
|
+
export function registerCreationLedgerCommands(
|
|
41
|
+
cmd: CliCommand,
|
|
42
|
+
orchestrator: Orchestrator,
|
|
43
|
+
): void {
|
|
44
|
+
cmd
|
|
45
|
+
.command("resume-bundle-status")
|
|
46
|
+
.description("Show resume bundle status, bundle counts, and the latest recorded handoff bundle")
|
|
47
|
+
.action(async () => {
|
|
48
|
+
const status = await runResumeBundleStatusCliCommand({
|
|
49
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
50
|
+
resumeBundleDir: orchestrator.config.resumeBundleDir,
|
|
51
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
52
|
+
resumeBundlesEnabled: orchestrator.config.resumeBundlesEnabled,
|
|
53
|
+
});
|
|
54
|
+
console.log(JSON.stringify(status, null, 2));
|
|
55
|
+
console.log("OK");
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
cmd
|
|
59
|
+
.command("resume-bundle-record")
|
|
60
|
+
.description("Record an explicit resume bundle when creation-memory handoff bundles are enabled")
|
|
61
|
+
.requiredOption("--bundle-id <bundleId>", "Resume bundle id")
|
|
62
|
+
.requiredOption("--recorded-at <recordedAt>", "ISO timestamp for the bundle")
|
|
63
|
+
.requiredOption("--session-key <sessionKey>", "Session key that owns the bundle")
|
|
64
|
+
.requiredOption("--source <source>", "Bundle source (tool_result|cli|system|manual)")
|
|
65
|
+
.requiredOption("--scope <scope>", "Primary scope or recovery domain for the bundle")
|
|
66
|
+
.requiredOption("--summary <summary>", "Human-readable summary of what this bundle preserves")
|
|
67
|
+
.option("--key-fact <keyFact...>", "Short facts that a resumed agent should retain")
|
|
68
|
+
.option("--next-action <nextAction...>", "Explicit next actions for the resumed agent")
|
|
69
|
+
.option("--risk-flag <riskFlag...>", "Open risks or cautions attached to the bundle")
|
|
70
|
+
.option(
|
|
71
|
+
"--objective-state-snapshot-ref <objectiveStateSnapshotRef...>",
|
|
72
|
+
"Objective-state snapshot refs attached to the bundle",
|
|
73
|
+
)
|
|
74
|
+
.option(
|
|
75
|
+
"--work-product-entry-ref <workProductEntryRef...>",
|
|
76
|
+
"Work-product ledger refs attached to the bundle",
|
|
77
|
+
)
|
|
78
|
+
.option(
|
|
79
|
+
"--commitment-entry-ref <commitmentEntryRef...>",
|
|
80
|
+
"Commitment ledger refs attached to the bundle",
|
|
81
|
+
)
|
|
82
|
+
.action(async (...args: unknown[]) => {
|
|
83
|
+
const options = (args[0] ?? {}) as Record<string, unknown>;
|
|
84
|
+
const filePath = await runResumeBundleRecordCliCommand({
|
|
85
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
86
|
+
resumeBundleDir: orchestrator.config.resumeBundleDir,
|
|
87
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
88
|
+
resumeBundlesEnabled: orchestrator.config.resumeBundlesEnabled,
|
|
89
|
+
bundle: {
|
|
90
|
+
schemaVersion: 1,
|
|
91
|
+
bundleId: String(options.bundleId ?? ""),
|
|
92
|
+
recordedAt: String(options.recordedAt ?? ""),
|
|
93
|
+
sessionKey: String(options.sessionKey ?? ""),
|
|
94
|
+
source: String(options.source ?? "") as ResumeBundle["source"],
|
|
95
|
+
scope: String(options.scope ?? ""),
|
|
96
|
+
summary: String(options.summary ?? ""),
|
|
97
|
+
keyFacts: Array.isArray(options.keyFact) ? options.keyFact.map(String) : undefined,
|
|
98
|
+
nextActions: Array.isArray(options.nextAction) ? options.nextAction.map(String) : undefined,
|
|
99
|
+
riskFlags: Array.isArray(options.riskFlag) ? options.riskFlag.map(String) : undefined,
|
|
100
|
+
objectiveStateSnapshotRefs: Array.isArray(options.objectiveStateSnapshotRef)
|
|
101
|
+
? options.objectiveStateSnapshotRef.map(String)
|
|
102
|
+
: undefined,
|
|
103
|
+
workProductEntryRefs: Array.isArray(options.workProductEntryRef)
|
|
104
|
+
? options.workProductEntryRef.map(String)
|
|
105
|
+
: undefined,
|
|
106
|
+
commitmentEntryRefs: Array.isArray(options.commitmentEntryRef)
|
|
107
|
+
? options.commitmentEntryRef.map(String)
|
|
108
|
+
: undefined,
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
console.log(JSON.stringify({ wrote: filePath !== null, filePath }, null, 2));
|
|
112
|
+
console.log("OK");
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
cmd
|
|
116
|
+
.command("resume-bundle-build")
|
|
117
|
+
.description("Build and persist a resume bundle from transcript recovery, objective state, work products, and open commitments")
|
|
118
|
+
.requiredOption("--bundle-id <bundleId>", "Resume bundle id")
|
|
119
|
+
.requiredOption("--recorded-at <recordedAt>", "ISO timestamp for the bundle")
|
|
120
|
+
.requiredOption("--session-key <sessionKey>", "Session key that owns the bundle")
|
|
121
|
+
.requiredOption("--scope <scope>", "Primary scope or recovery domain for the bundle")
|
|
122
|
+
.action(async (...args: unknown[]) => {
|
|
123
|
+
const options = (args[0] ?? {}) as Record<string, unknown>;
|
|
124
|
+
const built = await runResumeBundleBuildCliCommand({
|
|
125
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
126
|
+
resumeBundleDir: orchestrator.config.resumeBundleDir,
|
|
127
|
+
objectiveStateStoreDir: orchestrator.config.objectiveStateStoreDir,
|
|
128
|
+
workProductLedgerDir: orchestrator.config.workProductLedgerDir,
|
|
129
|
+
commitmentLedgerDir: orchestrator.config.commitmentLedgerDir,
|
|
130
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
131
|
+
resumeBundlesEnabled: orchestrator.config.resumeBundlesEnabled,
|
|
132
|
+
transcriptEnabled: orchestrator.config.transcriptEnabled,
|
|
133
|
+
objectiveStateMemoryEnabled: orchestrator.config.objectiveStateMemoryEnabled,
|
|
134
|
+
commitmentLedgerEnabled: orchestrator.config.commitmentLedgerEnabled,
|
|
135
|
+
bundleId: String(options.bundleId ?? ""),
|
|
136
|
+
recordedAt: String(options.recordedAt ?? ""),
|
|
137
|
+
sessionKey: String(options.sessionKey ?? ""),
|
|
138
|
+
scope: String(options.scope ?? ""),
|
|
139
|
+
});
|
|
140
|
+
console.log(JSON.stringify({
|
|
141
|
+
wrote: built !== null,
|
|
142
|
+
filePath: built?.filePath ?? null,
|
|
143
|
+
bundle: built?.bundle ?? null,
|
|
144
|
+
}, null, 2));
|
|
145
|
+
console.log("OK");
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
cmd
|
|
149
|
+
.command("commitment-status")
|
|
150
|
+
.description("Show commitment ledger status, entry counts, and the latest recorded commitment")
|
|
151
|
+
.action(async () => {
|
|
152
|
+
const status = await runCommitmentStatusCliCommand({
|
|
153
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
154
|
+
commitmentLedgerDir: orchestrator.config.commitmentLedgerDir,
|
|
155
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
156
|
+
commitmentLedgerEnabled: orchestrator.config.commitmentLedgerEnabled,
|
|
157
|
+
commitmentLifecycleEnabled: orchestrator.config.commitmentLifecycleEnabled,
|
|
158
|
+
commitmentStaleDays: orchestrator.config.commitmentStaleDays,
|
|
159
|
+
commitmentDecayDays: orchestrator.config.commitmentDecayDays,
|
|
160
|
+
});
|
|
161
|
+
console.log(JSON.stringify(status, null, 2));
|
|
162
|
+
console.log("OK");
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
cmd
|
|
166
|
+
.command("commitment-record")
|
|
167
|
+
.description("Record a commitment ledger entry when commitment memory is enabled")
|
|
168
|
+
.requiredOption("--entry-id <entryId>", "Commitment entry id")
|
|
169
|
+
.requiredOption("--recorded-at <recordedAt>", "ISO timestamp for the entry")
|
|
170
|
+
.requiredOption("--session-key <sessionKey>", "Session key that owns the commitment")
|
|
171
|
+
.requiredOption("--source <source>", "Entry source (tool_result|cli|system|manual)")
|
|
172
|
+
.requiredOption("--kind <kind>", "Entry kind (promise|follow_up|deadline|deliverable)")
|
|
173
|
+
.requiredOption("--state <state>", "Entry state (open|fulfilled|cancelled|expired)")
|
|
174
|
+
.requiredOption("--scope <scope>", "Primary scope or identifier for the commitment")
|
|
175
|
+
.requiredOption("--summary <summary>", "Human-readable summary of the commitment")
|
|
176
|
+
.option("--due-at <dueAt>", "Optional due timestamp for the commitment")
|
|
177
|
+
.option("--tag <tag...>", "Tags to attach to the commitment entry")
|
|
178
|
+
.option("--entity-ref <entityRef...>", "Entity refs to attach to the commitment entry")
|
|
179
|
+
.option(
|
|
180
|
+
"--work-product-entry-ref <workProductEntryRef...>",
|
|
181
|
+
"Work-product ledger refs that this commitment depends on",
|
|
182
|
+
)
|
|
183
|
+
.option(
|
|
184
|
+
"--objective-state-snapshot-ref <objectiveStateSnapshotRef...>",
|
|
185
|
+
"Objective-state snapshot refs to link to this commitment",
|
|
186
|
+
)
|
|
187
|
+
.action(async (...args: unknown[]) => {
|
|
188
|
+
const options = (args[0] ?? {}) as Record<string, unknown>;
|
|
189
|
+
const filePath = await runCommitmentRecordCliCommand({
|
|
190
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
191
|
+
commitmentLedgerDir: orchestrator.config.commitmentLedgerDir,
|
|
192
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
193
|
+
commitmentLedgerEnabled: orchestrator.config.commitmentLedgerEnabled,
|
|
194
|
+
entry: {
|
|
195
|
+
schemaVersion: 1,
|
|
196
|
+
entryId: String(options.entryId ?? ""),
|
|
197
|
+
recordedAt: String(options.recordedAt ?? ""),
|
|
198
|
+
sessionKey: String(options.sessionKey ?? ""),
|
|
199
|
+
source: String(options.source ?? "") as CommitmentLedgerEntry["source"],
|
|
200
|
+
kind: String(options.kind ?? "") as CommitmentLedgerEntry["kind"],
|
|
201
|
+
state: String(options.state ?? "") as CommitmentLedgerEntry["state"],
|
|
202
|
+
scope: String(options.scope ?? ""),
|
|
203
|
+
summary: String(options.summary ?? ""),
|
|
204
|
+
dueAt: typeof options.dueAt === "string" ? options.dueAt : undefined,
|
|
205
|
+
tags: Array.isArray(options.tag) ? options.tag.map(String) : undefined,
|
|
206
|
+
entityRefs: Array.isArray(options.entityRef) ? options.entityRef.map(String) : undefined,
|
|
207
|
+
workProductEntryRefs: Array.isArray(options.workProductEntryRef)
|
|
208
|
+
? options.workProductEntryRef.map(String)
|
|
209
|
+
: undefined,
|
|
210
|
+
objectiveStateSnapshotRefs: Array.isArray(options.objectiveStateSnapshotRef)
|
|
211
|
+
? options.objectiveStateSnapshotRef.map(String)
|
|
212
|
+
: undefined,
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
console.log(JSON.stringify({ wrote: filePath !== null, filePath }, null, 2));
|
|
216
|
+
console.log("OK");
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
cmd
|
|
220
|
+
.command("commitment-set-state")
|
|
221
|
+
.description("Transition an existing commitment ledger entry when commitment lifecycle is enabled")
|
|
222
|
+
.requiredOption("--entry-id <entryId>", "Commitment entry id")
|
|
223
|
+
.requiredOption("--state <state>", "Next state (open|fulfilled|cancelled|expired)")
|
|
224
|
+
.requiredOption("--changed-at <changedAt>", "ISO timestamp for the lifecycle transition")
|
|
225
|
+
.action(async (...args: unknown[]) => {
|
|
226
|
+
const options = (args[0] ?? {}) as Record<string, unknown>;
|
|
227
|
+
const entry = await runCommitmentSetStateCliCommand({
|
|
228
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
229
|
+
commitmentLedgerDir: orchestrator.config.commitmentLedgerDir,
|
|
230
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
231
|
+
commitmentLedgerEnabled: orchestrator.config.commitmentLedgerEnabled,
|
|
232
|
+
commitmentLifecycleEnabled: orchestrator.config.commitmentLifecycleEnabled,
|
|
233
|
+
entryId: String(options.entryId ?? ""),
|
|
234
|
+
nextState: String(options.state ?? "") as CommitmentLedgerEntry["state"],
|
|
235
|
+
changedAt: String(options.changedAt ?? ""),
|
|
236
|
+
});
|
|
237
|
+
console.log(JSON.stringify({ updated: entry !== null, entry }, null, 2));
|
|
238
|
+
console.log("OK");
|
|
239
|
+
});
|
|
240
|
+
|
|
241
|
+
cmd
|
|
242
|
+
.command("commitment-lifecycle-run")
|
|
243
|
+
.description("Apply overdue-expiry and resolved-entry cleanup to the commitment ledger")
|
|
244
|
+
.option("--now <now>", "Override the lifecycle timestamp for testing or backfills")
|
|
245
|
+
.action(async (...args: unknown[]) => {
|
|
246
|
+
const options = (args[0] ?? {}) as Record<string, unknown>;
|
|
247
|
+
const result = await runCommitmentLifecycleCliCommand({
|
|
248
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
249
|
+
commitmentLedgerDir: orchestrator.config.commitmentLedgerDir,
|
|
250
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
251
|
+
commitmentLedgerEnabled: orchestrator.config.commitmentLedgerEnabled,
|
|
252
|
+
commitmentLifecycleEnabled: orchestrator.config.commitmentLifecycleEnabled,
|
|
253
|
+
commitmentDecayDays: orchestrator.config.commitmentDecayDays,
|
|
254
|
+
now: typeof options.now === "string" ? options.now : undefined,
|
|
255
|
+
});
|
|
256
|
+
console.log(JSON.stringify({ applied: result !== null, result }, null, 2));
|
|
257
|
+
console.log("OK");
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
cmd
|
|
261
|
+
.command("work-product-status")
|
|
262
|
+
.description("Show work-product ledger status, entry counts, and the latest recorded work product")
|
|
263
|
+
.action(async () => {
|
|
264
|
+
const status = await runWorkProductStatusCliCommand({
|
|
265
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
266
|
+
workProductLedgerDir: orchestrator.config.workProductLedgerDir,
|
|
267
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
268
|
+
});
|
|
269
|
+
console.log(JSON.stringify(status, null, 2));
|
|
270
|
+
console.log("OK");
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
cmd
|
|
274
|
+
.command("work-product-record")
|
|
275
|
+
.description("Record a work-product ledger entry when creation-memory is enabled")
|
|
276
|
+
.requiredOption("--entry-id <entryId>", "Ledger entry id")
|
|
277
|
+
.requiredOption("--recorded-at <recordedAt>", "ISO timestamp for the entry")
|
|
278
|
+
.requiredOption("--session-key <sessionKey>", "Session key that created the work product")
|
|
279
|
+
.requiredOption("--source <source>", "Entry source (tool_result|cli|system|manual)")
|
|
280
|
+
.requiredOption("--kind <kind>", "Entry kind (artifact|file|record|report|workspace)")
|
|
281
|
+
.requiredOption(
|
|
282
|
+
"--entry-action <entryAction>",
|
|
283
|
+
"Entry action (created|updated|deleted|referenced|published)",
|
|
284
|
+
)
|
|
285
|
+
.requiredOption("--scope <scope>", "Primary scope or identifier for the created work product")
|
|
286
|
+
.requiredOption("--summary <summary>", "Human-readable summary of the work product")
|
|
287
|
+
.option("--artifact-path <artifactPath>", "Optional path to the created artifact")
|
|
288
|
+
.option("--tag <tag...>", "Tags to attach to the work-product entry")
|
|
289
|
+
.option("--entity-ref <entityRef...>", "Entity refs to attach to the work-product entry")
|
|
290
|
+
.option(
|
|
291
|
+
"--objective-state-snapshot-ref <objectiveStateSnapshotRef...>",
|
|
292
|
+
"Objective-state snapshot refs to link to this work product",
|
|
293
|
+
)
|
|
294
|
+
.action(async (...args: unknown[]) => {
|
|
295
|
+
const options = (args[0] ?? {}) as Record<string, unknown>;
|
|
296
|
+
const filePath = await runWorkProductRecordCliCommand({
|
|
297
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
298
|
+
workProductLedgerDir: orchestrator.config.workProductLedgerDir,
|
|
299
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
300
|
+
entry: {
|
|
301
|
+
schemaVersion: 1,
|
|
302
|
+
entryId: String(options.entryId ?? ""),
|
|
303
|
+
recordedAt: String(options.recordedAt ?? ""),
|
|
304
|
+
sessionKey: String(options.sessionKey ?? ""),
|
|
305
|
+
source: String(options.source ?? "") as WorkProductLedgerEntry["source"],
|
|
306
|
+
kind: String(options.kind ?? "") as WorkProductLedgerEntry["kind"],
|
|
307
|
+
action: String(options.entryAction ?? "") as WorkProductLedgerEntry["action"],
|
|
308
|
+
scope: String(options.scope ?? ""),
|
|
309
|
+
summary: String(options.summary ?? ""),
|
|
310
|
+
artifactPath: typeof options.artifactPath === "string" ? options.artifactPath : undefined,
|
|
311
|
+
tags: Array.isArray(options.tag) ? options.tag.map(String) : undefined,
|
|
312
|
+
entityRefs: Array.isArray(options.entityRef) ? options.entityRef.map(String) : undefined,
|
|
313
|
+
objectiveStateSnapshotRefs: Array.isArray(options.objectiveStateSnapshotRef)
|
|
314
|
+
? options.objectiveStateSnapshotRef.map(String)
|
|
315
|
+
: undefined,
|
|
316
|
+
},
|
|
317
|
+
});
|
|
318
|
+
console.log(JSON.stringify({ wrote: filePath !== null, filePath }, null, 2));
|
|
319
|
+
console.log("OK");
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
cmd
|
|
323
|
+
.command("work-product-recall-search")
|
|
324
|
+
.description("Preview work-product recovery candidates when creation-memory recall is enabled")
|
|
325
|
+
.argument("<query>", "Prompt-like query to evaluate against the work-product ledger")
|
|
326
|
+
.option("--max-results <count>", "Maximum number of work-product results to return", "3")
|
|
327
|
+
.option("--session-key <sessionKey>", "Optional session key to boost same-session work products")
|
|
328
|
+
.action(async (...args: unknown[]) => {
|
|
329
|
+
const query = typeof args[0] === "string" ? args[0] : "";
|
|
330
|
+
const options = (args[1] ?? {}) as Record<string, unknown>;
|
|
331
|
+
const maxResults = typeof options.maxResults === "string"
|
|
332
|
+
? Number.parseInt(options.maxResults, 10)
|
|
333
|
+
: 3;
|
|
334
|
+
const results = await runWorkProductRecallSearchCliCommand({
|
|
335
|
+
memoryDir: orchestrator.config.memoryDir,
|
|
336
|
+
workProductLedgerDir: orchestrator.config.workProductLedgerDir,
|
|
337
|
+
creationMemoryEnabled: orchestrator.config.creationMemoryEnabled,
|
|
338
|
+
workProductRecallEnabled: orchestrator.config.workProductRecallEnabled,
|
|
339
|
+
query,
|
|
340
|
+
maxResults: Number.isFinite(maxResults) ? maxResults : 3,
|
|
341
|
+
sessionKey: typeof options.sessionKey === "string" ? options.sessionKey : undefined,
|
|
342
|
+
});
|
|
343
|
+
console.log(JSON.stringify(results, null, 2));
|
|
344
|
+
console.log("OK");
|
|
345
|
+
});
|
|
346
|
+
}
|