@hasna/mementos 0.14.84 → 0.14.86
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/bun.lock +63 -4
- package/dist/cli/index.js +769 -261
- package/dist/diagnostics/historical-project-registration-receipt.js +1675 -0
- package/dist/index.js +343 -85
- package/dist/mcp/index.js +419 -99
- package/dist/pg-sync-worker.js +7 -5
- package/dist/project-registration.js +309 -68
- package/dist/sdk/index.js +123 -30
- package/dist/server/index.js +677 -317
- package/dist/storage.js +63 -26
- package/hasna.contract.json +5 -4
- package/package.json +6 -4
- package/dist/cli/__fixtures__/clean-fallback-stub-server.d.ts +0 -2
- package/dist/cli/__fixtures__/clean-fallback-stub-server.d.ts.map +0 -1
- package/dist/cli/brains.d.ts +0 -3
- package/dist/cli/brains.d.ts.map +0 -1
- package/dist/cli/commands/agent.d.ts +0 -3
- package/dist/cli/commands/agent.d.ts.map +0 -1
- package/dist/cli/commands/consolidation.d.ts +0 -3
- package/dist/cli/commands/consolidation.d.ts.map +0 -1
- package/dist/cli/commands/entity.d.ts +0 -3
- package/dist/cli/commands/entity.d.ts.map +0 -1
- package/dist/cli/commands/graph.d.ts +0 -3
- package/dist/cli/commands/graph.d.ts.map +0 -1
- package/dist/cli/commands/info-context.d.ts +0 -3
- package/dist/cli/commands/info-context.d.ts.map +0 -1
- package/dist/cli/commands/info-history.d.ts +0 -3
- package/dist/cli/commands/info-history.d.ts.map +0 -1
- package/dist/cli/commands/info-report.d.ts +0 -3
- package/dist/cli/commands/info-report.d.ts.map +0 -1
- package/dist/cli/commands/info-stale.d.ts +0 -3
- package/dist/cli/commands/info-stale.d.ts.map +0 -1
- package/dist/cli/commands/info-stats.d.ts +0 -3
- package/dist/cli/commands/info-stats.d.ts.map +0 -1
- package/dist/cli/commands/info.d.ts +0 -12
- package/dist/cli/commands/info.d.ts.map +0 -1
- package/dist/cli/commands/init.d.ts +0 -3
- package/dist/cli/commands/init.d.ts.map +0 -1
- package/dist/cli/commands/io-backup.d.ts +0 -3
- package/dist/cli/commands/io-backup.d.ts.map +0 -1
- package/dist/cli/commands/io-clean.d.ts +0 -3
- package/dist/cli/commands/io-clean.d.ts.map +0 -1
- package/dist/cli/commands/io-export.d.ts +0 -3
- package/dist/cli/commands/io-export.d.ts.map +0 -1
- package/dist/cli/commands/io-import.d.ts +0 -3
- package/dist/cli/commands/io-import.d.ts.map +0 -1
- package/dist/cli/commands/io-restore.d.ts +0 -3
- package/dist/cli/commands/io-restore.d.ts.map +0 -1
- package/dist/cli/commands/io.d.ts +0 -12
- package/dist/cli/commands/io.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-bulk.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-bulk.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-chain.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-chain.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-crud.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-crud.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-diff.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-diff.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-list.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-list.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-recall-exit.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-recall-exit.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-recall.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-recall.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-remove.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-remove.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-search.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-search.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-tail.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-tail.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-util.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-util.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-view.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-view.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-watch.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-watch.d.ts.map +0 -1
- package/dist/cli/commands/memory-cmd-when-to-use.d.ts +0 -3
- package/dist/cli/commands/memory-cmd-when-to-use.d.ts.map +0 -1
- package/dist/cli/commands/memory.d.ts +0 -3
- package/dist/cli/commands/memory.d.ts.map +0 -1
- package/dist/cli/commands/project-panel.d.ts +0 -3
- package/dist/cli/commands/project-panel.d.ts.map +0 -1
- package/dist/cli/commands/project.d.ts +0 -3
- package/dist/cli/commands/project.d.ts.map +0 -1
- package/dist/cli/commands/relation.d.ts +0 -3
- package/dist/cli/commands/relation.d.ts.map +0 -1
- package/dist/cli/commands/storage.d.ts +0 -3
- package/dist/cli/commands/storage.d.ts.map +0 -1
- package/dist/cli/commands/system-auto-memory.d.ts +0 -3
- package/dist/cli/commands/system-auto-memory.d.ts.map +0 -1
- package/dist/cli/commands/system-completions.d.ts +0 -13
- package/dist/cli/commands/system-completions.d.ts.map +0 -1
- package/dist/cli/commands/system-config.d.ts +0 -3
- package/dist/cli/commands/system-config.d.ts.map +0 -1
- package/dist/cli/commands/system-doctor.d.ts +0 -3
- package/dist/cli/commands/system-doctor.d.ts.map +0 -1
- package/dist/cli/commands/system-hooks.d.ts +0 -3
- package/dist/cli/commands/system-hooks.d.ts.map +0 -1
- package/dist/cli/commands/system-mcp.d.ts +0 -3
- package/dist/cli/commands/system-mcp.d.ts.map +0 -1
- package/dist/cli/commands/system-misc.d.ts +0 -3
- package/dist/cli/commands/system-misc.d.ts.map +0 -1
- package/dist/cli/commands/system-profile.d.ts +0 -3
- package/dist/cli/commands/system-profile.d.ts.map +0 -1
- package/dist/cli/commands/system-session.d.ts +0 -3
- package/dist/cli/commands/system-session.d.ts.map +0 -1
- package/dist/cli/commands/system-sessions.d.ts +0 -3
- package/dist/cli/commands/system-sessions.d.ts.map +0 -1
- package/dist/cli/commands/system-synthesis.d.ts +0 -3
- package/dist/cli/commands/system-synthesis.d.ts.map +0 -1
- package/dist/cli/commands/system-synthesized-profile.d.ts +0 -3
- package/dist/cli/commands/system-synthesized-profile.d.ts.map +0 -1
- package/dist/cli/commands/system-tools.d.ts +0 -3
- package/dist/cli/commands/system-tools.d.ts.map +0 -1
- package/dist/cli/commands/system-watch.d.ts +0 -3
- package/dist/cli/commands/system-watch.d.ts.map +0 -1
- package/dist/cli/commands/system.d.ts +0 -3
- package/dist/cli/commands/system.d.ts.map +0 -1
- package/dist/cli/exit-codes.d.ts +0 -13
- package/dist/cli/exit-codes.d.ts.map +0 -1
- package/dist/cli/global-options.d.ts +0 -27
- package/dist/cli/global-options.d.ts.map +0 -1
- package/dist/cli/helpers.d.ts +0 -119
- package/dist/cli/helpers.d.ts.map +0 -1
- package/dist/cli/index.d.ts +0 -3
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/register-all.d.ts +0 -17
- package/dist/cli/register-all.d.ts.map +0 -1
- package/dist/cli/startup-side-effects.d.ts +0 -9
- package/dist/cli/startup-side-effects.d.ts.map +0 -1
- package/dist/db/__fixtures__/fail-closed-stub-server.d.ts +0 -2
- package/dist/db/__fixtures__/fail-closed-stub-server.d.ts.map +0 -1
- package/dist/db/acl.d.ts +0 -34
- package/dist/db/acl.d.ts.map +0 -1
- package/dist/db/agents.d.ts +0 -21
- package/dist/db/agents.d.ts.map +0 -1
- package/dist/db/analytics.d.ts +0 -107
- package/dist/db/analytics.d.ts.map +0 -1
- package/dist/db/api-mode.d.ts +0 -127
- package/dist/db/api-mode.d.ts.map +0 -1
- package/dist/db/audit.d.ts +0 -53
- package/dist/db/audit.d.ts.map +0 -1
- package/dist/db/database.d.ts +0 -26
- package/dist/db/database.d.ts.map +0 -1
- package/dist/db/entities.d.ts +0 -62
- package/dist/db/entities.d.ts.map +0 -1
- package/dist/db/entity-memories.d.ts +0 -34
- package/dist/db/entity-memories.d.ts.map +0 -1
- package/dist/db/feedback.d.ts +0 -9
- package/dist/db/feedback.d.ts.map +0 -1
- package/dist/db/locks.d.ts +0 -63
- package/dist/db/locks.d.ts.map +0 -1
- package/dist/db/machines.d.ts +0 -23
- package/dist/db/machines.d.ts.map +0 -1
- package/dist/db/memories.d.ts +0 -137
- package/dist/db/memories.d.ts.map +0 -1
- package/dist/db/memory-links.d.ts +0 -21
- package/dist/db/memory-links.d.ts.map +0 -1
- package/dist/db/memory-project-link.d.ts +0 -13
- package/dist/db/memory-project-link.d.ts.map +0 -1
- package/dist/db/migrations.d.ts +0 -3
- package/dist/db/migrations.d.ts.map +0 -1
- package/dist/db/pg-migrate.d.ts +0 -27
- package/dist/db/pg-migrate.d.ts.map +0 -1
- package/dist/db/pg-migrations.d.ts +0 -2
- package/dist/db/pg-migrations.d.ts.map +0 -1
- package/dist/db/projects.d.ts +0 -27
- package/dist/db/projects.d.ts.map +0 -1
- package/dist/db/ratings.d.ts +0 -23
- package/dist/db/ratings.d.ts.map +0 -1
- package/dist/db/relations.d.ts +0 -49
- package/dist/db/relations.d.ts.map +0 -1
- package/dist/db/session-jobs.d.ts +0 -49
- package/dist/db/session-jobs.d.ts.map +0 -1
- package/dist/db/store-backend.d.ts +0 -42
- package/dist/db/store-backend.d.ts.map +0 -1
- package/dist/db/subscriptions.d.ts +0 -24
- package/dist/db/subscriptions.d.ts.map +0 -1
- package/dist/db/synthesis.d.ts +0 -101
- package/dist/db/synthesis.d.ts.map +0 -1
- package/dist/db/tasks.d.ts +0 -89
- package/dist/db/tasks.d.ts.map +0 -1
- package/dist/db/tool-events.d.ts +0 -27
- package/dist/db/tool-events.d.ts.map +0 -1
- package/dist/db/webhook_hooks.d.ts +0 -25
- package/dist/db/webhook_hooks.d.ts.map +0 -1
- package/dist/generated/storage-kit/backend.d.ts +0 -20
- package/dist/generated/storage-kit/backend.d.ts.map +0 -1
- package/dist/generated/storage-kit/health.d.ts +0 -20
- package/dist/generated/storage-kit/health.d.ts.map +0 -1
- package/dist/generated/storage-kit/index.d.ts +0 -8
- package/dist/generated/storage-kit/index.d.ts.map +0 -1
- package/dist/generated/storage-kit/migrations.d.ts +0 -48
- package/dist/generated/storage-kit/migrations.d.ts.map +0 -1
- package/dist/generated/storage-kit/own.d.ts +0 -11
- package/dist/generated/storage-kit/own.d.ts.map +0 -1
- package/dist/generated/storage-kit/pool.d.ts +0 -35
- package/dist/generated/storage-kit/pool.d.ts.map +0 -1
- package/dist/generated/storage-kit/query.d.ts +0 -36
- package/dist/generated/storage-kit/query.d.ts.map +0 -1
- package/dist/generated/storage-kit/tls.d.ts +0 -53
- package/dist/generated/storage-kit/tls.d.ts.map +0 -1
- package/dist/index.d.ts +0 -45
- package/dist/index.d.ts.map +0 -1
- package/dist/lib/activation-matcher.d.ts +0 -17
- package/dist/lib/activation-matcher.d.ts.map +0 -1
- package/dist/lib/asmr/categorizer.d.ts +0 -31
- package/dist/lib/asmr/categorizer.d.ts.map +0 -1
- package/dist/lib/asmr/context-agent.d.ts +0 -4
- package/dist/lib/asmr/context-agent.d.ts.map +0 -1
- package/dist/lib/asmr/ensemble.d.ts +0 -23
- package/dist/lib/asmr/ensemble.d.ts.map +0 -1
- package/dist/lib/asmr/fact-agent.d.ts +0 -4
- package/dist/lib/asmr/fact-agent.d.ts.map +0 -1
- package/dist/lib/asmr/index.d.ts +0 -7
- package/dist/lib/asmr/index.d.ts.map +0 -1
- package/dist/lib/asmr/orchestrator.d.ts +0 -4
- package/dist/lib/asmr/orchestrator.d.ts.map +0 -1
- package/dist/lib/asmr/recall.d.ts +0 -3
- package/dist/lib/asmr/recall.d.ts.map +0 -1
- package/dist/lib/asmr/temporal-agent.d.ts +0 -4
- package/dist/lib/asmr/temporal-agent.d.ts.map +0 -1
- package/dist/lib/asmr/types.d.ts +0 -27
- package/dist/lib/asmr/types.d.ts.map +0 -1
- package/dist/lib/auto-inject-orchestrator.d.ts +0 -57
- package/dist/lib/auto-inject-orchestrator.d.ts.map +0 -1
- package/dist/lib/auto-memory-queue.d.ts +0 -48
- package/dist/lib/auto-memory-queue.d.ts.map +0 -1
- package/dist/lib/auto-memory.d.ts +0 -19
- package/dist/lib/auto-memory.d.ts.map +0 -1
- package/dist/lib/bench.d.ts +0 -20
- package/dist/lib/bench.d.ts.map +0 -1
- package/dist/lib/built-in-hooks.d.ts +0 -12
- package/dist/lib/built-in-hooks.d.ts.map +0 -1
- package/dist/lib/channel-pusher.d.ts +0 -39
- package/dist/lib/channel-pusher.d.ts.map +0 -1
- package/dist/lib/config.d.ts +0 -9
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/connectors/files.d.ts +0 -8
- package/dist/lib/connectors/files.d.ts.map +0 -1
- package/dist/lib/connectors/github.d.ts +0 -7
- package/dist/lib/connectors/github.d.ts.map +0 -1
- package/dist/lib/connectors/index.d.ts +0 -12
- package/dist/lib/connectors/index.d.ts.map +0 -1
- package/dist/lib/connectors/notion.d.ts +0 -7
- package/dist/lib/connectors/notion.d.ts.map +0 -1
- package/dist/lib/connectors/types.d.ts +0 -27
- package/dist/lib/connectors/types.d.ts.map +0 -1
- package/dist/lib/consolidation.d.ts +0 -52
- package/dist/lib/consolidation.d.ts.map +0 -1
- package/dist/lib/context-extractor.d.ts +0 -14
- package/dist/lib/context-extractor.d.ts.map +0 -1
- package/dist/lib/context.d.ts +0 -36
- package/dist/lib/context.d.ts.map +0 -1
- package/dist/lib/contradiction.d.ts +0 -50
- package/dist/lib/contradiction.d.ts.map +0 -1
- package/dist/lib/decay.d.ts +0 -35
- package/dist/lib/decay.d.ts.map +0 -1
- package/dist/lib/dedup.d.ts +0 -33
- package/dist/lib/dedup.d.ts.map +0 -1
- package/dist/lib/duration.d.ts +0 -28
- package/dist/lib/duration.d.ts.map +0 -1
- package/dist/lib/embeddings.d.ts +0 -20
- package/dist/lib/embeddings.d.ts.map +0 -1
- package/dist/lib/enum-validation.d.ts +0 -20
- package/dist/lib/enum-validation.d.ts.map +0 -1
- package/dist/lib/export-v1.d.ts +0 -30
- package/dist/lib/export-v1.d.ts.map +0 -1
- package/dist/lib/extractor.d.ts +0 -9
- package/dist/lib/extractor.d.ts.map +0 -1
- package/dist/lib/extractors/audio.d.ts +0 -8
- package/dist/lib/extractors/audio.d.ts.map +0 -1
- package/dist/lib/extractors/index.d.ts +0 -12
- package/dist/lib/extractors/index.d.ts.map +0 -1
- package/dist/lib/extractors/ocr.d.ts +0 -7
- package/dist/lib/extractors/ocr.d.ts.map +0 -1
- package/dist/lib/extractors/pdf.d.ts +0 -7
- package/dist/lib/extractors/pdf.d.ts.map +0 -1
- package/dist/lib/extractors/types.d.ts +0 -12
- package/dist/lib/extractors/types.d.ts.map +0 -1
- package/dist/lib/file-deps.d.ts +0 -27
- package/dist/lib/file-deps.d.ts.map +0 -1
- package/dist/lib/focus.d.ts +0 -58
- package/dist/lib/focus.d.ts.map +0 -1
- package/dist/lib/gatherer.d.ts +0 -16
- package/dist/lib/gatherer.d.ts.map +0 -1
- package/dist/lib/gdpr.d.ts +0 -39
- package/dist/lib/gdpr.d.ts.map +0 -1
- package/dist/lib/hooks.d.ts +0 -50
- package/dist/lib/hooks.d.ts.map +0 -1
- package/dist/lib/importers/index.d.ts +0 -38
- package/dist/lib/importers/index.d.ts.map +0 -1
- package/dist/lib/injector.d.ts +0 -89
- package/dist/lib/injector.d.ts.map +0 -1
- package/dist/lib/machine-visibility.d.ts +0 -6
- package/dist/lib/machine-visibility.d.ts.map +0 -1
- package/dist/lib/matryoshka.d.ts +0 -50
- package/dist/lib/matryoshka.d.ts.map +0 -1
- package/dist/lib/memory-lock.d.ts +0 -58
- package/dist/lib/memory-lock.d.ts.map +0 -1
- package/dist/lib/model-config.d.ts +0 -14
- package/dist/lib/model-config.d.ts.map +0 -1
- package/dist/lib/open-sessions-connector.d.ts +0 -60
- package/dist/lib/open-sessions-connector.d.ts.map +0 -1
- package/dist/lib/package-version.d.ts +0 -3
- package/dist/lib/package-version.d.ts.map +0 -1
- package/dist/lib/poisoning.d.ts +0 -19
- package/dist/lib/poisoning.d.ts.map +0 -1
- package/dist/lib/poll.d.ts +0 -17
- package/dist/lib/poll.d.ts.map +0 -1
- package/dist/lib/procedural-extractor.d.ts +0 -21
- package/dist/lib/procedural-extractor.d.ts.map +0 -1
- package/dist/lib/profile-sync.d.ts +0 -20
- package/dist/lib/profile-sync.d.ts.map +0 -1
- package/dist/lib/profile-synthesizer.d.ts +0 -20
- package/dist/lib/profile-synthesizer.d.ts.map +0 -1
- package/dist/lib/project-detect.d.ts +0 -18
- package/dist/lib/project-detect.d.ts.map +0 -1
- package/dist/lib/project-panel.d.ts +0 -7
- package/dist/lib/project-panel.d.ts.map +0 -1
- package/dist/lib/providers/anthropic.d.ts +0 -21
- package/dist/lib/providers/anthropic.d.ts.map +0 -1
- package/dist/lib/providers/base.d.ts +0 -96
- package/dist/lib/providers/base.d.ts.map +0 -1
- package/dist/lib/providers/cerebras.d.ts +0 -20
- package/dist/lib/providers/cerebras.d.ts.map +0 -1
- package/dist/lib/providers/grok.d.ts +0 -19
- package/dist/lib/providers/grok.d.ts.map +0 -1
- package/dist/lib/providers/index.d.ts +0 -7
- package/dist/lib/providers/index.d.ts.map +0 -1
- package/dist/lib/providers/openai-compat.d.ts +0 -18
- package/dist/lib/providers/openai-compat.d.ts.map +0 -1
- package/dist/lib/providers/openai.d.ts +0 -20
- package/dist/lib/providers/openai.d.ts.map +0 -1
- package/dist/lib/providers/registry.d.ts +0 -38
- package/dist/lib/providers/registry.d.ts.map +0 -1
- package/dist/lib/quality.d.ts +0 -16
- package/dist/lib/quality.d.ts.map +0 -1
- package/dist/lib/redact.d.ts +0 -10
- package/dist/lib/redact.d.ts.map +0 -1
- package/dist/lib/reflection.d.ts +0 -83
- package/dist/lib/reflection.d.ts.map +0 -1
- package/dist/lib/retention.d.ts +0 -17
- package/dist/lib/retention.d.ts.map +0 -1
- package/dist/lib/retired-storage-mode.d.ts +0 -11
- package/dist/lib/retired-storage-mode.d.ts.map +0 -1
- package/dist/lib/search.d.ts +0 -52
- package/dist/lib/search.d.ts.map +0 -1
- package/dist/lib/session-auto-resolve.d.ts +0 -28
- package/dist/lib/session-auto-resolve.d.ts.map +0 -1
- package/dist/lib/session-processor.d.ts +0 -38
- package/dist/lib/session-processor.d.ts.map +0 -1
- package/dist/lib/session-queue.d.ts +0 -28
- package/dist/lib/session-queue.d.ts.map +0 -1
- package/dist/lib/session-registry.d.ts +0 -47
- package/dist/lib/session-registry.d.ts.map +0 -1
- package/dist/lib/session-start-briefing.d.ts +0 -10
- package/dist/lib/session-start-briefing.d.ts.map +0 -1
- package/dist/lib/session-watcher.d.ts +0 -30
- package/dist/lib/session-watcher.d.ts.map +0 -1
- package/dist/lib/storage-sync.d.ts +0 -45
- package/dist/lib/storage-sync.d.ts.map +0 -1
- package/dist/lib/sync.d.ts +0 -10
- package/dist/lib/sync.d.ts.map +0 -1
- package/dist/lib/synthesis/corpus-builder.d.ts +0 -30
- package/dist/lib/synthesis/corpus-builder.d.ts.map +0 -1
- package/dist/lib/synthesis/executor.d.ts +0 -14
- package/dist/lib/synthesis/executor.d.ts.map +0 -1
- package/dist/lib/synthesis/index.d.ts +0 -37
- package/dist/lib/synthesis/index.d.ts.map +0 -1
- package/dist/lib/synthesis/llm-analyzer.d.ts +0 -18
- package/dist/lib/synthesis/llm-analyzer.d.ts.map +0 -1
- package/dist/lib/synthesis/metrics.d.ts +0 -13
- package/dist/lib/synthesis/metrics.d.ts.map +0 -1
- package/dist/lib/synthesis/scheduler.d.ts +0 -18
- package/dist/lib/synthesis/scheduler.d.ts.map +0 -1
- package/dist/lib/synthesis/validator.d.ts +0 -19
- package/dist/lib/synthesis/validator.d.ts.map +0 -1
- package/dist/lib/task-runner.d.ts +0 -37
- package/dist/lib/task-runner.d.ts.map +0 -1
- package/dist/lib/tool-lesson-extractor.d.ts +0 -24
- package/dist/lib/tool-lesson-extractor.d.ts.map +0 -1
- package/dist/lib/tool-memory-synthesizer.d.ts +0 -28
- package/dist/lib/tool-memory-synthesizer.d.ts.map +0 -1
- package/dist/lib/topic-clusterer.d.ts +0 -21
- package/dist/lib/topic-clusterer.d.ts.map +0 -1
- package/dist/lib/when-to-use-generator.d.ts +0 -22
- package/dist/lib/when-to-use-generator.d.ts.map +0 -1
- package/dist/mcp/http.d.ts +0 -17
- package/dist/mcp/http.d.ts.map +0 -1
- package/dist/mcp/index.d.ts +0 -6
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/memory-broadcast.d.ts +0 -12
- package/dist/mcp/memory-broadcast.d.ts.map +0 -1
- package/dist/mcp/tools/agent-tools.d.ts +0 -3
- package/dist/mcp/tools/agent-tools.d.ts.map +0 -1
- package/dist/mcp/tools/auto-memory-tools.d.ts +0 -5
- package/dist/mcp/tools/auto-memory-tools.d.ts.map +0 -1
- package/dist/mcp/tools/bulk-tools.d.ts +0 -3
- package/dist/mcp/tools/bulk-tools.d.ts.map +0 -1
- package/dist/mcp/tools/consolidation-tools.d.ts +0 -3
- package/dist/mcp/tools/consolidation-tools.d.ts.map +0 -1
- package/dist/mcp/tools/focus-tools.d.ts +0 -3
- package/dist/mcp/tools/focus-tools.d.ts.map +0 -1
- package/dist/mcp/tools/graph-entity-tools.d.ts +0 -3
- package/dist/mcp/tools/graph-entity-tools.d.ts.map +0 -1
- package/dist/mcp/tools/graph-query-tools.d.ts +0 -3
- package/dist/mcp/tools/graph-query-tools.d.ts.map +0 -1
- package/dist/mcp/tools/graph-relation-tools.d.ts +0 -3
- package/dist/mcp/tools/graph-relation-tools.d.ts.map +0 -1
- package/dist/mcp/tools/graph-tools.d.ts +0 -3
- package/dist/mcp/tools/graph-tools.d.ts.map +0 -1
- package/dist/mcp/tools/graph-utils.d.ts +0 -5
- package/dist/mcp/tools/graph-utils.d.ts.map +0 -1
- package/dist/mcp/tools/hook-tools.d.ts +0 -3
- package/dist/mcp/tools/hook-tools.d.ts.map +0 -1
- package/dist/mcp/tools/lock-tools.d.ts +0 -3
- package/dist/mcp/tools/lock-tools.d.ts.map +0 -1
- package/dist/mcp/tools/memory-audit.d.ts +0 -3
- package/dist/mcp/tools/memory-audit.d.ts.map +0 -1
- package/dist/mcp/tools/memory-crud.d.ts +0 -3
- package/dist/mcp/tools/memory-crud.d.ts.map +0 -1
- package/dist/mcp/tools/memory-health.d.ts +0 -3
- package/dist/mcp/tools/memory-health.d.ts.map +0 -1
- package/dist/mcp/tools/memory-history.d.ts +0 -3
- package/dist/mcp/tools/memory-history.d.ts.map +0 -1
- package/dist/mcp/tools/memory-inject.d.ts +0 -3
- package/dist/mcp/tools/memory-inject.d.ts.map +0 -1
- package/dist/mcp/tools/memory-io.d.ts +0 -3
- package/dist/mcp/tools/memory-io.d.ts.map +0 -1
- package/dist/mcp/tools/memory-lifecycle.d.ts +0 -3
- package/dist/mcp/tools/memory-lifecycle.d.ts.map +0 -1
- package/dist/mcp/tools/memory-search.d.ts +0 -3
- package/dist/mcp/tools/memory-search.d.ts.map +0 -1
- package/dist/mcp/tools/memory-stats.d.ts +0 -3
- package/dist/mcp/tools/memory-stats.d.ts.map +0 -1
- package/dist/mcp/tools/memory-tools.d.ts +0 -17
- package/dist/mcp/tools/memory-tools.d.ts.map +0 -1
- package/dist/mcp/tools/memory-utils.d.ts +0 -27
- package/dist/mcp/tools/memory-utils.d.ts.map +0 -1
- package/dist/mcp/tools/memory-validation.d.ts +0 -3
- package/dist/mcp/tools/memory-validation.d.ts.map +0 -1
- package/dist/mcp/tools/project-tools.d.ts +0 -3
- package/dist/mcp/tools/project-tools.d.ts.map +0 -1
- package/dist/mcp/tools/session-tools.d.ts +0 -3
- package/dist/mcp/tools/session-tools.d.ts.map +0 -1
- package/dist/mcp/tools/storage-tools.d.ts +0 -3
- package/dist/mcp/tools/storage-tools.d.ts.map +0 -1
- package/dist/mcp/tools/synthesis-tools.d.ts +0 -3
- package/dist/mcp/tools/synthesis-tools.d.ts.map +0 -1
- package/dist/mcp/tools/system-tools-events.d.ts +0 -3
- package/dist/mcp/tools/system-tools-events.d.ts.map +0 -1
- package/dist/mcp/tools/system-tools-memory-admin.d.ts +0 -3
- package/dist/mcp/tools/system-tools-memory-admin.d.ts.map +0 -1
- package/dist/mcp/tools/system-tools-shared.d.ts +0 -23
- package/dist/mcp/tools/system-tools-shared.d.ts.map +0 -1
- package/dist/mcp/tools/system-tools.d.ts +0 -3
- package/dist/mcp/tools/system-tools.d.ts.map +0 -1
- package/dist/mcp/tools/tool-registry.d.ts +0 -30
- package/dist/mcp/tools/tool-registry.d.ts.map +0 -1
- package/dist/mcp/tools/utility-tools.d.ts +0 -3
- package/dist/mcp/tools/utility-tools.d.ts.map +0 -1
- package/dist/memory-project-link/index.d.ts +0 -2
- package/dist/memory-project-link/index.d.ts.map +0 -1
- package/dist/memory-project-link/schema.d.ts +0 -5
- package/dist/memory-project-link/schema.d.ts.map +0 -1
- package/dist/pg-sync-worker.d.ts +0 -2
- package/dist/pg-sync-worker.d.ts.map +0 -1
- package/dist/project-registration/authority.d.ts +0 -43
- package/dist/project-registration/authority.d.ts.map +0 -1
- package/dist/project-registration/http.d.ts +0 -32
- package/dist/project-registration/http.d.ts.map +0 -1
- package/dist/project-registration/identity.d.ts +0 -20
- package/dist/project-registration/identity.d.ts.map +0 -1
- package/dist/project-registration/index.d.ts +0 -11
- package/dist/project-registration/index.d.ts.map +0 -1
- package/dist/project-registration/project-references.d.ts +0 -71
- package/dist/project-registration/project-references.d.ts.map +0 -1
- package/dist/project-registration/project-resources.d.ts +0 -22
- package/dist/project-registration/project-resources.d.ts.map +0 -1
- package/dist/project-registration/schema.d.ts +0 -5
- package/dist/project-registration/schema.d.ts.map +0 -1
- package/dist/project-registration/types.d.ts +0 -293
- package/dist/project-registration/types.d.ts.map +0 -1
- package/dist/project-registration.d.ts +0 -2
- package/dist/project-registration.d.ts.map +0 -1
- package/dist/sdk/index.d.ts +0 -971
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/server/auth.d.ts +0 -11
- package/dist/server/auth.d.ts.map +0 -1
- package/dist/server/helpers.d.ts +0 -22
- package/dist/server/helpers.d.ts.map +0 -1
- package/dist/server/index.d.ts +0 -14
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/openapi.d.ts +0 -2
- package/dist/server/openapi.d.ts.map +0 -1
- package/dist/server/router.d.ts +0 -17
- package/dist/server/router.d.ts.map +0 -1
- package/dist/server/routes/agents.d.ts +0 -2
- package/dist/server/routes/agents.d.ts.map +0 -1
- package/dist/server/routes/entities.d.ts +0 -2
- package/dist/server/routes/entities.d.ts.map +0 -1
- package/dist/server/routes/memories-bulk.d.ts +0 -2
- package/dist/server/routes/memories-bulk.d.ts.map +0 -1
- package/dist/server/routes/memories-crud.d.ts +0 -2
- package/dist/server/routes/memories-crud.d.ts.map +0 -1
- package/dist/server/routes/memories-io.d.ts +0 -2
- package/dist/server/routes/memories-io.d.ts.map +0 -1
- package/dist/server/routes/memories-misc.d.ts +0 -2
- package/dist/server/routes/memories-misc.d.ts.map +0 -1
- package/dist/server/routes/memories-search.d.ts +0 -2
- package/dist/server/routes/memories-search.d.ts.map +0 -1
- package/dist/server/routes/memories-stats.d.ts +0 -2
- package/dist/server/routes/memories-stats.d.ts.map +0 -1
- package/dist/server/routes/memories.d.ts +0 -19
- package/dist/server/routes/memories.d.ts.map +0 -1
- package/dist/server/routes/memory-project-link.d.ts +0 -2
- package/dist/server/routes/memory-project-link.d.ts.map +0 -1
- package/dist/server/routes/project-registration.d.ts +0 -2
- package/dist/server/routes/project-registration.d.ts.map +0 -1
- package/dist/server/routes/projects.d.ts +0 -2
- package/dist/server/routes/projects.d.ts.map +0 -1
- package/dist/server/routes/system-auto-memory.d.ts +0 -2
- package/dist/server/routes/system-auto-memory.d.ts.map +0 -1
- package/dist/server/routes/system-chain.d.ts +0 -2
- package/dist/server/routes/system-chain.d.ts.map +0 -1
- package/dist/server/routes/system-consolidation.d.ts +0 -2
- package/dist/server/routes/system-consolidation.d.ts.map +0 -1
- package/dist/server/routes/system-hooks.d.ts +0 -2
- package/dist/server/routes/system-hooks.d.ts.map +0 -1
- package/dist/server/routes/system-sessions.d.ts +0 -2
- package/dist/server/routes/system-sessions.d.ts.map +0 -1
- package/dist/server/routes/system-subscriptions.d.ts +0 -2
- package/dist/server/routes/system-subscriptions.d.ts.map +0 -1
- package/dist/server/routes/system-synthesis.d.ts +0 -2
- package/dist/server/routes/system-synthesis.d.ts.map +0 -1
- package/dist/server/routes/system-tools.d.ts +0 -2
- package/dist/server/routes/system-tools.d.ts.map +0 -1
- package/dist/server/routes/system.d.ts +0 -2
- package/dist/server/routes/system.d.ts.map +0 -1
- package/dist/server/routes/tasks.d.ts +0 -2
- package/dist/server/routes/tasks.d.ts.map +0 -1
- package/dist/storage.d.ts +0 -266
- package/dist/storage.d.ts.map +0 -1
- package/dist/test-support/preload-local-store.d.ts +0 -2
- package/dist/test-support/preload-local-store.d.ts.map +0 -1
- package/dist/test-support/project-authority-identity.d.ts +0 -8
- package/dist/test-support/project-authority-identity.d.ts.map +0 -1
- package/dist/test-support/store-isolation.d.ts +0 -108
- package/dist/test-support/store-isolation.d.ts.map +0 -1
- package/dist/test-support/strip-ansi.d.ts +0 -3
- package/dist/test-support/strip-ansi.d.ts.map +0 -1
- package/dist/types/hooks.d.ts +0 -136
- package/dist/types/hooks.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -472
- package/dist/types/index.d.ts.map +0 -1
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const KIT_VERSION = "0.10.6";
|
|
2
|
-
export * from "./backend.js";
|
|
3
|
-
export * from "./tls.js";
|
|
4
|
-
export * from "./query.js";
|
|
5
|
-
export * from "./pool.js";
|
|
6
|
-
export * from "./migrations.js";
|
|
7
|
-
export * from "./health.js";
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,WAAW,WAAW,CAAC;AAEpC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { TypedQueryClient } from "./query.js";
|
|
2
|
-
/** Default ledger table name. Override per app if a legacy name exists. */
|
|
3
|
-
export declare const DEFAULT_MIGRATION_LEDGER_TABLE = "schema_migrations";
|
|
4
|
-
export interface Migration {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
readonly sql: string;
|
|
7
|
-
readonly checksum: string;
|
|
8
|
-
}
|
|
9
|
-
export type MigrationState = "already_applied" | "pending";
|
|
10
|
-
export interface MigrationPlanItem {
|
|
11
|
-
readonly migration: Migration;
|
|
12
|
-
readonly state: MigrationState;
|
|
13
|
-
}
|
|
14
|
-
export interface AppliedMigration {
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly checksum: string;
|
|
17
|
-
readonly appliedAt: string;
|
|
18
|
-
}
|
|
19
|
-
export interface MigrationResult {
|
|
20
|
-
readonly dryRun: boolean;
|
|
21
|
-
readonly applied: AppliedMigration[];
|
|
22
|
-
readonly plan: MigrationPlanItem[];
|
|
23
|
-
}
|
|
24
|
-
/** Stable sha256 checksum for a migration's SQL text. */
|
|
25
|
-
export declare function checksumSql(sql: string): string;
|
|
26
|
-
/** Freeze a migration definition, computing its checksum from the SQL. */
|
|
27
|
-
export declare function defineMigration(id: string, sql: string): Migration;
|
|
28
|
-
export interface MigrationRunnerOptions {
|
|
29
|
-
ledgerTable?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare class MigrationLedger {
|
|
32
|
-
private readonly client;
|
|
33
|
-
private readonly migrations;
|
|
34
|
-
private readonly ledgerTable;
|
|
35
|
-
constructor(client: TypedQueryClient, migrations: readonly Migration[], options?: MigrationRunnerOptions);
|
|
36
|
-
ensureLedger(): Promise<void>;
|
|
37
|
-
listApplied(): Promise<AppliedMigration[]>;
|
|
38
|
-
private readApplied;
|
|
39
|
-
/** Compute the migration plan and guard against drift/downgrade. */
|
|
40
|
-
private buildPlan;
|
|
41
|
-
/** Apply all pending migrations. With `dryRun`, report the plan only. */
|
|
42
|
-
migrate(opts?: {
|
|
43
|
-
dryRun?: boolean;
|
|
44
|
-
}): Promise<MigrationResult>;
|
|
45
|
-
}
|
|
46
|
-
/** Convenience: build a ledger and run all pending migrations. */
|
|
47
|
-
export declare function createMigrationLedger(client: TypedQueryClient, migrations: readonly Migration[], options?: MigrationRunnerOptions): MigrationLedger;
|
|
48
|
-
//# sourceMappingURL=migrations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/migrations.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGnD,2EAA2E;AAC3E,eAAO,MAAM,8BAA8B,sBAAsB,CAAC;AAElE,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAE3D,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,CAAC;CACpC;AAED,yDAAyD;AACzD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG/C;AAED,0EAA0E;AAC1E,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAElE;AAQD,MAAM,WAAW,sBAAsB;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,eAAe;IAIxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAJ7B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAGlB,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,SAAS,SAAS,EAAE,EACjD,OAAO,GAAE,sBAA2B;IAahC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAU7B,WAAW,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAKlC,WAAW;IAWzB,oEAAoE;IACpE,OAAO,CAAC,SAAS;IAsBjB,yEAAyE;IACnE,OAAO,CAAC,IAAI,GAAE;QAAE,MAAM,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,eAAe,CAAC;CAmBzE;AAED,kEAAkE;AAClE,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,gBAAgB,EACxB,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,OAAO,GAAE,sBAA2B,GACnC,eAAe,CAEjB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read `key` from `source` only when `source` OWNS it.
|
|
3
|
-
*
|
|
4
|
-
* Returns `undefined` for an inherited property and for a null/undefined or
|
|
5
|
-
* non-object source, so a guarded read is a drop-in for `source?.[key]` that
|
|
6
|
-
* cannot be answered by the prototype chain.
|
|
7
|
-
*/
|
|
8
|
-
export declare function ownProp<T>(source: unknown, key: string): T | undefined;
|
|
9
|
-
/** `ownProp` narrowed to a string, so a polluted non-string cannot slip through. */
|
|
10
|
-
export declare function ownString(source: unknown, key: string): string | undefined;
|
|
11
|
-
//# sourceMappingURL=own.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"own.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/own.ts"],"names":[],"mappings":"AAyCA;;;;;;GAMG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAMtE;AAED,oFAAoF;AACpF,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG1E"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Pool } from "pg";
|
|
2
|
-
import { type TlsResolveOptions } from "./tls.js";
|
|
3
|
-
import { type PoolQueryClient } from "./query.js";
|
|
4
|
-
export interface CreatePgPoolOptions extends TlsResolveOptions {
|
|
5
|
-
connectionString: string;
|
|
6
|
-
/** Max clients in the pool. Defaults to pg's default (10). */
|
|
7
|
-
max?: number;
|
|
8
|
-
/** Idle client timeout (ms). */
|
|
9
|
-
idleTimeoutMillis?: number;
|
|
10
|
-
/** Connection acquisition timeout (ms). */
|
|
11
|
-
connectionTimeoutMillis?: number;
|
|
12
|
-
/** Application name reported to Postgres (shows in pg_stat_activity). */
|
|
13
|
-
applicationName?: string;
|
|
14
|
-
}
|
|
15
|
-
/** Build a `pg.Pool` with fleet-standard TLS handling. */
|
|
16
|
-
export declare function createPgPool(options: CreatePgPoolOptions): Pool;
|
|
17
|
-
export interface CreateServerPoolFromEnvOptions extends TlsResolveOptions {
|
|
18
|
-
max?: number;
|
|
19
|
-
idleTimeoutMillis?: number;
|
|
20
|
-
connectionTimeoutMillis?: number;
|
|
21
|
-
applicationName?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ServerPoolFromEnv {
|
|
24
|
-
client: PoolQueryClient;
|
|
25
|
-
connectionSource: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Resolve backend + database URL from the environment and build the server's
|
|
29
|
-
* PostgreSQL pool.
|
|
30
|
-
*
|
|
31
|
-
* Throws when no database URL selects the `postgresql` backend. Never logs the
|
|
32
|
-
* URL.
|
|
33
|
-
*/
|
|
34
|
-
export declare function createServerPoolFromEnv(appName: string, options?: CreateServerPoolFromEnvOptions): ServerPoolFromEnv;
|
|
35
|
-
//# sourceMappingURL=pool.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/pool.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,IAAI,EAAc,MAAM,IAAI,CAAC;AAE3C,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAgDrE,MAAM,WAAW,mBAAoB,SAAQ,iBAAiB;IAC5D,gBAAgB,EAAE,MAAM,CAAC;IACzB,8DAA8D;IAC9D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,IAAI,CAmC/D;AAED,MAAM,WAAW,8BAA+B,SAAQ,iBAAiB;IACvE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,8BAAmC,GAC3C,iBAAiB,CAoBnB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Pool, QueryResultRow } from "pg";
|
|
2
|
-
export interface QueryResult<T extends QueryResultRow> {
|
|
3
|
-
rows: T[];
|
|
4
|
-
rowCount: number;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Minimal executor contract. `pg.Pool` and `pg.PoolClient` both satisfy the
|
|
8
|
-
* `query` method; the wrapper builds the rest on top so tests can substitute a
|
|
9
|
-
* lightweight shim without pulling in a live Postgres.
|
|
10
|
-
*/
|
|
11
|
-
export interface PgExecutor {
|
|
12
|
-
query<T extends QueryResultRow>(sql: string, params?: readonly unknown[]): Promise<{
|
|
13
|
-
rows: T[];
|
|
14
|
-
rowCount: number | null;
|
|
15
|
-
}>;
|
|
16
|
-
}
|
|
17
|
-
export interface TypedQueryClient {
|
|
18
|
-
query<T extends QueryResultRow>(sql: string, params?: readonly unknown[]): Promise<QueryResult<T>>;
|
|
19
|
-
many<T extends QueryResultRow>(sql: string, params?: readonly unknown[]): Promise<T[]>;
|
|
20
|
-
/** First row or `null`. Restored here after open-knowledge dropped it. */
|
|
21
|
-
get<T extends QueryResultRow>(sql: string, params?: readonly unknown[]): Promise<T | null>;
|
|
22
|
-
/** Exactly one row; throws if zero or more than one row is returned. */
|
|
23
|
-
one<T extends QueryResultRow>(sql: string, params?: readonly unknown[]): Promise<T>;
|
|
24
|
-
execute(sql: string, params?: readonly unknown[]): Promise<void>;
|
|
25
|
-
}
|
|
26
|
-
/** Wrap any `PgExecutor` (a Pool, a PoolClient, or a test shim) with the typed vocabulary. */
|
|
27
|
-
export declare function wrapExecutor(executor: PgExecutor): TypedQueryClient;
|
|
28
|
-
export interface PoolQueryClient extends TypedQueryClient {
|
|
29
|
-
readonly pool: Pool;
|
|
30
|
-
/** Run a callback inside a `BEGIN`/`COMMIT` transaction on a dedicated client. */
|
|
31
|
-
transaction<T>(fn: (client: TypedQueryClient) => Promise<T>): Promise<T>;
|
|
32
|
-
close(): Promise<void>;
|
|
33
|
-
}
|
|
34
|
-
/** Build a `PoolQueryClient` around a live `pg.Pool`. */
|
|
35
|
-
export declare function createQueryClient(pool: Pool): PoolQueryClient;
|
|
36
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/query.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,IAAI,EAAc,cAAc,EAAE,MAAM,IAAI,CAAC;AAE3D,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,cAAc;IACnD,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,CAAC,SAAS,cAAc,EAC5B,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAC1B,OAAO,CAAC;QAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;CACpD;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,CAAC,SAAS,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACvF,0EAA0E;IAC1E,GAAG,CAAC,CAAC,SAAS,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC3F,wEAAwE;IACxE,GAAG,CAAC,CAAC,SAAS,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACpF,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAClE;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,QAAQ,EAAE,UAAU,GAAG,gBAAgB,CAyBnE;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,kFAAkF;IAClF,WAAW,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACzE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED,yDAAyD;AACzD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,eAAe,CA2B7D"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/** The `ssl` field shape accepted by `pg.Pool` / `pg.Client`. */
|
|
2
|
-
export type PgSslConfig = boolean | {
|
|
3
|
-
rejectUnauthorized: boolean;
|
|
4
|
-
ca?: string;
|
|
5
|
-
cert?: string;
|
|
6
|
-
key?: string;
|
|
7
|
-
passphrase?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface TlsResolveOptions {
|
|
10
|
-
/** Inline CA bundle (PEM). Wins over every other CA source. */
|
|
11
|
-
ca?: string;
|
|
12
|
-
/** Path to a CA bundle PEM file, e.g. the Amazon RDS global bundle. */
|
|
13
|
-
caCertPath?: string;
|
|
14
|
-
/** Environment used to discover PGSSLROOTCERT / NODE_EXTRA_CA_CERTS. */
|
|
15
|
-
env?: Record<string, string | undefined>;
|
|
16
|
-
}
|
|
17
|
-
export type SslMode = "disable" | "prefer" | "require" | "verify-ca" | "verify-full";
|
|
18
|
-
/**
|
|
19
|
-
* Remove the TLS query parameters once this module has resolved them into an
|
|
20
|
-
* explicit `ssl` option. pg re-parses `connectionString` AFTER merging pool
|
|
21
|
-
* options and lets the parse win, so leaving `sslmode` (or `ssl`, `sslcert`,
|
|
22
|
-
* `sslkey`, `sslrootcert`, `sslnegotiation`) in the URL replaces the resolved
|
|
23
|
-
* SSL object with pg's own — discarding the CA bundle with it.
|
|
24
|
-
*
|
|
25
|
-
* Non-TLS parameters and any fragment are preserved exactly.
|
|
26
|
-
*/
|
|
27
|
-
export declare function connectionStringWithoutTlsParameters(connectionString: string): string;
|
|
28
|
-
/**
|
|
29
|
-
* Preserve pg's transport negotiation choice outside the stripped URL, so
|
|
30
|
-
* `sslnegotiation=direct` survives as an explicit pool option instead of being
|
|
31
|
-
* silently dropped.
|
|
32
|
-
*/
|
|
33
|
-
export declare function sslNegotiationFromConnectionString(connectionString: string): "postgres" | "direct" | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Extract the effective `sslmode` from a Postgres connection string. Honors the
|
|
36
|
-
* `sslmode` query param, the legacy `ssl=true` boolean, and pg's rule that
|
|
37
|
-
* `sslnegotiation=direct` implies TLS when no explicit SSL setting is present.
|
|
38
|
-
* Returns `disable` when TLS is not requested.
|
|
39
|
-
*/
|
|
40
|
-
export declare function sslModeFromConnectionString(connectionString: string): SslMode;
|
|
41
|
-
/**
|
|
42
|
-
* Resolve the `pg` ssl config for a connection string. See the module header
|
|
43
|
-
* for the full mode table.
|
|
44
|
-
*
|
|
45
|
-
* Returns `false` when TLS was explicitly switched off, and `undefined` when the
|
|
46
|
-
* DSN expressed no TLS policy at all — those are different answers, and pg
|
|
47
|
-
* treats them differently: only `undefined` lets `PGSSLMODE` decide.
|
|
48
|
-
*
|
|
49
|
-
* The caller MUST hand pg `connectionStringWithoutTlsParameters(connectionString)`
|
|
50
|
-
* rather than the original DSN, or pg discards everything resolved here.
|
|
51
|
-
*/
|
|
52
|
-
export declare function resolveTlsConfig(connectionString: string, options?: TlsResolveOptions): PgSslConfig | undefined;
|
|
53
|
-
//# sourceMappingURL=tls.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tls.d.ts","sourceRoot":"","sources":["../../../src/generated/storage-kit/tls.ts"],"names":[],"mappings":"AAwNA,iEAAiE;AACjE,MAAM,MAAM,WAAW,GACnB,OAAO,GACP;IACE,kBAAkB,EAAE,OAAO,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEN,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1C;AAED,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,aAAa,CAAC;AA+BrF;;;;;;;;GAQG;AACH,wBAAgB,oCAAoC,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,CAOrF;AAgBD;;;;GAIG;AACH,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,MAAM,GACvB,UAAU,GAAG,QAAQ,GAAG,SAAS,CAKnC;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAmD7E;AA6CD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,gBAAgB,EAAE,MAAM,EACxB,OAAO,GAAE,iBAAsB,GAC9B,WAAW,GAAG,SAAS,CAgEzB"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export type { Memory, MemoryWithRelations, MemoryScope, MemoryCategory, MemorySource, MemoryStatus, MemoryFilter, MemorySearchResult, MemoryStats, CreateMemoryInput, UpdateMemoryInput, DedupeMode, Agent, Project, UpdateProjectInput, ProjectAuthorityIdentity, ProjectGuardedUpdateRequest, ProjectGuardedRollbackRequest, ProjectGuardedUpdateResult, ProjectUpdateReceipt, MemoryProjectLinkSnapshot, MemoryProjectLinkRequest, MemoryProjectLinkRollbackRequest, MemoryProjectLinkReceipt, MemoryProjectLinkResult, MementosConfig, SyncDirection, SyncOptions, SyncResult, ConflictResolution, Entity, Relation, EntityMemory, EntityType, RelationType, EntityRole, EntityWithRelations, CreateEntityInput, UpdateEntityInput, CreateRelationInput, } from "./types/index.js";
|
|
2
|
-
export { MemoryNotFoundError, DuplicateMemoryError, MemoryExpiredError, InvalidScopeError, VersionConflictError, EntityNotFoundError, } from "./types/index.js";
|
|
3
|
-
export { getDatabase, closeDatabase, resetDatabase, getDbPath, resolvePartialId, now, uuid, shortUuid, } from "./db/database.js";
|
|
4
|
-
export { createMemory, getMemory, getMemoryByKey, getMemoriesByKey, listMemories, updateMemory, deleteMemory, bulkDeleteMemories, touchMemory, cleanExpiredMemories, getMemoryVersions, } from "./db/memories.js";
|
|
5
|
-
export { previewMemoryProjectLink, applyMemoryProjectLink, rollbackMemoryProjectLink, getMemoryProjectLinkReceipt, MemoryProjectLinkError, } from "./db/memory-project-link.js";
|
|
6
|
-
export * from "./memory-project-link/index.js";
|
|
7
|
-
export { registerAgent, getAgent, listAgents, listAgentsByProject, updateAgent, touchAgent, } from "./db/agents.js";
|
|
8
|
-
export { acquireLock, releaseLock, releaseResourceLocks, releaseAllAgentLocks, checkLock, agentHoldsLock, listAgentLocks, cleanExpiredLocks, } from "./db/locks.js";
|
|
9
|
-
export type { ResourceLock, ResourceType, LockType } from "./db/locks.js";
|
|
10
|
-
export { acquireMemoryWriteLock, releaseMemoryWriteLock, checkMemoryWriteLock, withMemoryLock, MemoryLockConflictError, memoryLockId, } from "./lib/memory-lock.js";
|
|
11
|
-
export { setFocus, getFocus, unfocus, resolveProjectId, buildFocusFilter, focusFilterSQL, } from "./lib/focus.js";
|
|
12
|
-
export { registerProject, getProject, listProjects, previewProjectUpdate, applyProjectUpdate, rollbackProjectUpdate, getProjectUpdateReceipt, ProjectGuardedUpdateError, ProjectCollisionError, } from "./db/projects.js";
|
|
13
|
-
export * from "./project-registration/index.js";
|
|
14
|
-
export { registerMachine, listMachines, getMachine, renameMachine, deleteMachine, touchMachine, getCurrentMachineId, getPrimaryMachine, getPrimaryMachineCandidate, setPrimaryMachine, getFallbackSyncTargetMachine, getPrimaryMachineStartupWarning, } from "./db/machines.js";
|
|
15
|
-
export type { Machine } from "./db/machines.js";
|
|
16
|
-
export { searchMemories } from "./lib/search.js";
|
|
17
|
-
export { createMementosProjectPanel, formatMementosProjectPanel, type MementosProjectPanelOptions, } from "./lib/project-panel.js";
|
|
18
|
-
export { loadConfig, DEFAULT_CONFIG, getActiveProfile, setActiveProfile, listProfiles, deleteProfile, } from "./lib/config.js";
|
|
19
|
-
export { MemoryInjector } from "./lib/injector.js";
|
|
20
|
-
export type { InjectionOptions, InjectionStrategy } from "./lib/injector.js";
|
|
21
|
-
export { enforceQuotas, archiveStale, archiveUnused, deprioritizeStale, runCleanup } from "./lib/retention.js";
|
|
22
|
-
export { syncMemories, defaultSyncAgents } from "./lib/sync.js";
|
|
23
|
-
export { pushStorageChanges, pullStorageChanges, getStorageSyncStatus, type MementosStorageStatus, type MementosStorageSyncResult, type MemoryStorageSyncMeta, type MemoryStorageSyncStats, } from "./lib/storage-sync.js";
|
|
24
|
-
export { SqliteAdapter, PgAdapter, PgAdapterAsync, MEMENTOS_STORAGE_ENV, MEMENTOS_STORAGE_FALLBACK_ENV, MEMENTOS_STORAGE_TABLES, STORAGE_TABLES, getStorageConfig, getStorageBackend, getStorageBackendDatabaseUrl, getStorageStatus, getMementosStorageStatus, saveStorageConfig, getStorageDatabaseEnv, getStorageDatabaseEnvName, getStorageDatabaseUrl, getStorageConnectionString, listSqliteTables, type DbAdapter, type StorageConfig, type StorageEnv, type StorageEnvStatus, type NativeStorageStatus, type MementosStorageTable, type SyncMeta, type IncrementalSyncStats, } from "./storage.js";
|
|
25
|
-
export { assertNoLegacyStorageMode, LEGACY_STORAGE_MODE_KEYS } from "./lib/retired-storage-mode.js";
|
|
26
|
-
export { redactSecrets, containsSecrets } from "./lib/redact.js";
|
|
27
|
-
export { createEntity, getEntity, getEntityByName, listEntities, updateEntity, deleteEntity, mergeEntities, parseEntityRow, } from "./db/entities.js";
|
|
28
|
-
export { createRelation, getRelation, listRelations, deleteRelation, getRelatedEntities, getEntityGraph, findPath, parseRelationRow, } from "./db/relations.js";
|
|
29
|
-
export { linkEntityToMemory, unlinkEntityFromMemory, getMemoriesForEntity, getEntitiesForMemory, bulkLinkEntities, getEntityMemoryLinks, } from "./db/entity-memories.js";
|
|
30
|
-
export { createMemoryLink, getMemoryLinks, getMemoryBacklinks, } from "./db/memory-links.js";
|
|
31
|
-
export type { MemoryLink, MemoryLinkRelation } from "./db/memory-links.js";
|
|
32
|
-
export { processConversationTurn, getAutoMemoryStats, configureAutoMemory, } from "./lib/auto-memory.js";
|
|
33
|
-
export type { LLMProvider, ExtractedMemory, ExtractedEntity, EntityExtractionResult, AutoMemoryConfig, ProviderName, ProviderConfig, } from "./lib/providers/base.js";
|
|
34
|
-
export { providerRegistry } from "./lib/providers/registry.js";
|
|
35
|
-
export { dedup, getDedupStats } from "./lib/dedup.js";
|
|
36
|
-
export { runConsolidation, type ConsolidationAction, type ConsolidationActionType, type ConsolidationOptions, type ConsolidationResult, type ConsolidationRun, } from "./lib/consolidation.js";
|
|
37
|
-
export { reflectOnTrajectory, createAISDKReflectionCritic, heuristicReflectionCritic, DEFAULT_REFLECTION_MODEL, DEFAULT_REFLECTION_PROVIDER, type ReflectionCritic, type ReflectionCriticResult, type ReflectionLesson, type ReflectionOptions, type ReflectionResult, type ReflectionRun, type ReflectionTarget, type ReflectionTrajectory, } from "./lib/reflection.js";
|
|
38
|
-
export { incrementRecallCount } from "./db/memories.js";
|
|
39
|
-
export { gatherTrainingData } from "./lib/gatherer.js";
|
|
40
|
-
export { getActiveModel, setActiveModel, clearActiveModel, DEFAULT_MODEL, } from "./lib/model-config.js";
|
|
41
|
-
export { createTask, getTask, listTasks, updateTask, deleteTask, addTaskComment, listTaskComments, deleteTaskComment, getTaskStats, } from "./db/tasks.js";
|
|
42
|
-
export type { Task, TaskComment, TaskStatus, TaskPriority, CreateTaskInput, UpdateTaskInput, } from "./db/tasks.js";
|
|
43
|
-
export { startTaskRunner, registerTaskHandler, setDefaultTaskHandler, getTaskRunnerStats, } from "./lib/task-runner.js";
|
|
44
|
-
export type { TaskHandlerContext, TaskHandler, TaskRunnerStats } from "./lib/task-runner.js";
|
|
45
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,MAAM,EACN,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,KAAK,EACL,OAAO,EACP,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACxB,gCAAg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eAAe,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Activation Matcher — finds memories whose when_to_use activates for a given context.
|
|
3
|
-
* Used by the auto-inject pipeline to proactively push relevant memories.
|
|
4
|
-
*/
|
|
5
|
-
import type { Memory } from "../types/index.js";
|
|
6
|
-
export declare function markAsPushed(memoryIds: string[]): void;
|
|
7
|
-
export declare function wasRecentlyPushed(id: string): boolean;
|
|
8
|
-
export declare function findActivatedMemories(contextText: string, options?: {
|
|
9
|
-
project_id?: string;
|
|
10
|
-
agent_id?: string;
|
|
11
|
-
machine_id?: string | null;
|
|
12
|
-
min_similarity?: number;
|
|
13
|
-
max_results?: number;
|
|
14
|
-
}): Promise<Memory[]>;
|
|
15
|
-
export declare function resetRecentlyPushed(): void;
|
|
16
|
-
export declare function getRecentlyPushedCount(): number;
|
|
17
|
-
//# sourceMappingURL=activation-matcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activation-matcher.d.ts","sourceRoot":"","sources":["../../src/lib/activation-matcher.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAahD,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAKtD;AAED,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAGrD;AAED,wBAAsB,qBAAqB,CACzC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;IACR,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GACA,OAAO,CAAC,MAAM,EAAE,CAAC,CAiDnB;AAqCD,wBAAgB,mBAAmB,IAAI,IAAI,CAE1C;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAG/C"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 6-Vector Memory Categorization for ASMR ingestion.
|
|
3
|
-
*
|
|
4
|
-
* Classifies memories into one of 6 vector categories using fast heuristic
|
|
5
|
-
* rules (no LLM calls). Designed to match supermemory's ASMR ingestion vectors.
|
|
6
|
-
*/
|
|
7
|
-
export type VectorCategory = "personal" | "preferences" | "events" | "temporal" | "updates" | "assistant";
|
|
8
|
-
interface CategorizableMemory {
|
|
9
|
-
key: string;
|
|
10
|
-
value: string;
|
|
11
|
-
category?: string;
|
|
12
|
-
importance?: number;
|
|
13
|
-
version?: number;
|
|
14
|
-
valid_until?: string | null;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Categorize a single memory into one of 6 vector categories using heuristic rules.
|
|
18
|
-
* Pure heuristic — no LLM calls.
|
|
19
|
-
*/
|
|
20
|
-
export declare function categorizeMemory(key: string, value: string, category?: string): Promise<VectorCategory>;
|
|
21
|
-
/**
|
|
22
|
-
* Categorize a batch of memories. Returns parallel array of vector categories.
|
|
23
|
-
*/
|
|
24
|
-
export declare function categorizeMemoryBatch(memories: CategorizableMemory[]): Promise<VectorCategory[]>;
|
|
25
|
-
/**
|
|
26
|
-
* Get the full tag string for a memory's vector category.
|
|
27
|
-
* Returns `vector:${category}` for use as a memory tag.
|
|
28
|
-
*/
|
|
29
|
-
export declare function vectorTag(category: VectorCategory): string;
|
|
30
|
-
export {};
|
|
31
|
-
//# sourceMappingURL=categorizer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"categorizer.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/categorizer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAE1G,UAAU,mBAAmB;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAWD;;;GAGG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,cAAc,CAAC,CAEzB;AA2DD;;GAEG;AACH,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,mBAAmB,EAAE,GAC9B,OAAO,CAAC,cAAc,EAAE,CAAC,CAI3B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,cAAc,GAAG,MAAM,CAE1D"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { SqliteAdapter as Database } from "../../storage.js";
|
|
2
|
-
import type { AsmrOptions, SearchAgentResult } from "./types.js";
|
|
3
|
-
export declare function runContextAgent(db: Database, query: string, opts: AsmrOptions): Promise<SearchAgentResult>;
|
|
4
|
-
//# sourceMappingURL=context-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/context-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAM7D,OAAO,KAAK,EAAE,WAAW,EAAoB,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA4BnF,wBAAsB,eAAe,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA0HhH"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Answer ensemble with majority voting for ASMR.
|
|
3
|
-
* Generates N prompt variants from retrieved context, runs in parallel,
|
|
4
|
-
* then aggregates via majority voting with optional escalation.
|
|
5
|
-
*/
|
|
6
|
-
import type { AsmrResult } from "./types.js";
|
|
7
|
-
interface EnsembleOptions {
|
|
8
|
-
variants?: number;
|
|
9
|
-
model?: string;
|
|
10
|
-
escalation_model?: string;
|
|
11
|
-
consensus_threshold?: number;
|
|
12
|
-
}
|
|
13
|
-
export interface EnsembleAnswer {
|
|
14
|
-
answer: string;
|
|
15
|
-
confidence: number;
|
|
16
|
-
reasoning: string;
|
|
17
|
-
variants_used: number;
|
|
18
|
-
consensus_reached: boolean;
|
|
19
|
-
escalated: boolean;
|
|
20
|
-
}
|
|
21
|
-
export declare function ensembleAnswer(context: AsmrResult, query: string, opts?: EnsembleOptions): Promise<EnsembleAnswer>;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=ensemble.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ensemble.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/ensemble.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAM7C,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;CACpB;AAkGD,wBAAsB,cAAc,CAClC,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,eAAe,GACrB,OAAO,CAAC,cAAc,CAAC,CA6FzB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { SqliteAdapter as Database } from "../../storage.js";
|
|
2
|
-
import type { AsmrOptions, SearchAgentResult } from "./types.js";
|
|
3
|
-
export declare function runFactAgent(db: Database, query: string, opts: AsmrOptions): Promise<SearchAgentResult>;
|
|
4
|
-
//# sourceMappingURL=fact-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fact-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/fact-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,WAAW,EAAoB,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAiFnF,wBAAsB,YAAY,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAmD7G"}
|
package/dist/lib/asmr/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { asmrRecall } from "./orchestrator.js";
|
|
2
|
-
export { ensembleAnswer } from "./ensemble.js";
|
|
3
|
-
export { categorizeMemory, categorizeMemoryBatch, vectorTag } from "./categorizer.js";
|
|
4
|
-
export type { AsmrOptions, AsmrResult, AsmrMemoryResult } from "./types.js";
|
|
5
|
-
export type { EnsembleAnswer } from "./ensemble.js";
|
|
6
|
-
export type { VectorCategory } from "./categorizer.js";
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC5E,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { SqliteAdapter as Database } from "../../storage.js";
|
|
2
|
-
import type { AsmrOptions, AsmrResult } from "./types.js";
|
|
3
|
-
export declare function asmrRecall(db: Database, query: string, opts?: AsmrOptions): Promise<AsmrResult>;
|
|
4
|
-
//# sourceMappingURL=orchestrator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAuC,MAAM,YAAY,CAAC;AAgF/F,wBAAsB,UAAU,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAgDrG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recall.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/recall.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI1D,wBAAsB,UAAU,CAC9B,KAAK,EAAE,MAAM,EACb,IAAI,GAAE,WAAgB,GACrB,OAAO,CAAC,UAAU,CAAC,CAerB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { SqliteAdapter as Database } from "../../storage.js";
|
|
2
|
-
import type { AsmrOptions, SearchAgentResult } from "./types.js";
|
|
3
|
-
export declare function runTemporalAgent(db: Database, query: string, opts: AsmrOptions): Promise<SearchAgentResult>;
|
|
4
|
-
//# sourceMappingURL=temporal-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"temporal-agent.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/temporal-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,WAAW,EAAoB,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA0CnF,wBAAsB,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CA2IjH"}
|
package/dist/lib/asmr/types.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Memory } from "../../types/index.js";
|
|
2
|
-
export interface AsmrOptions {
|
|
3
|
-
max_results?: number;
|
|
4
|
-
project_id?: string;
|
|
5
|
-
agent_id?: string;
|
|
6
|
-
include_reasoning?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface AsmrResult {
|
|
9
|
-
memories: AsmrMemoryResult[];
|
|
10
|
-
facts: string[];
|
|
11
|
-
timeline: string[];
|
|
12
|
-
reasoning: string;
|
|
13
|
-
agents_used: string[];
|
|
14
|
-
duration_ms: number;
|
|
15
|
-
}
|
|
16
|
-
export interface AsmrMemoryResult {
|
|
17
|
-
memory: Memory;
|
|
18
|
-
score: number;
|
|
19
|
-
source_agent: "facts" | "context" | "temporal";
|
|
20
|
-
reasoning: string;
|
|
21
|
-
verbatim_excerpt: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SearchAgentResult {
|
|
24
|
-
memories: AsmrMemoryResult[];
|
|
25
|
-
reasoning: string;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/asmr/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAEnD,MAAM,WAAW,WAAW;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Auto-Inject Orchestrator — ties session watcher, context extractor,
|
|
3
|
-
* activation matcher, and channel pusher into a unified pipeline.
|
|
4
|
-
*
|
|
5
|
-
* Flow: session file change → extract context → match memories → push via channel
|
|
6
|
-
*
|
|
7
|
-
* Enable: MEMENTOS_AUTO_INJECT=true + --dangerously-load-development-channels
|
|
8
|
-
*/
|
|
9
|
-
export interface AutoInjectConfig {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
throttle_ms: number;
|
|
12
|
-
debounce_ms: number;
|
|
13
|
-
max_pushes_per_5min: number;
|
|
14
|
-
min_similarity: number;
|
|
15
|
-
session_briefing: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface StartOptions {
|
|
18
|
-
server: any;
|
|
19
|
-
project_id?: string;
|
|
20
|
-
project_name?: string;
|
|
21
|
-
agent_id?: string;
|
|
22
|
-
agent_name?: string;
|
|
23
|
-
cwd?: string;
|
|
24
|
-
git_root?: string;
|
|
25
|
-
config?: Partial<AutoInjectConfig>;
|
|
26
|
-
}
|
|
27
|
-
export declare function startAutoInject(options: StartOptions): Promise<{
|
|
28
|
-
started: boolean;
|
|
29
|
-
session_id: string | null;
|
|
30
|
-
watcher_file: string | null;
|
|
31
|
-
briefing_pushed: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
export declare function stopAutoInject(): void;
|
|
34
|
-
export declare function getAutoInjectConfig(): AutoInjectConfig;
|
|
35
|
-
export declare function updateAutoInjectConfig(updates: Partial<AutoInjectConfig>): AutoInjectConfig;
|
|
36
|
-
export declare function getAutoInjectStatus(): {
|
|
37
|
-
running: boolean;
|
|
38
|
-
config: AutoInjectConfig;
|
|
39
|
-
session_id: string | null;
|
|
40
|
-
watcher: {
|
|
41
|
-
active: boolean;
|
|
42
|
-
watching_file: string | null;
|
|
43
|
-
last_offset: number;
|
|
44
|
-
};
|
|
45
|
-
pushes: {
|
|
46
|
-
total: number;
|
|
47
|
-
last_5min: number;
|
|
48
|
-
recently_pushed_memories: number;
|
|
49
|
-
next_available_in_ms: number;
|
|
50
|
-
};
|
|
51
|
-
history: {
|
|
52
|
-
timestamp: string;
|
|
53
|
-
context: string;
|
|
54
|
-
memory_count: number;
|
|
55
|
-
}[];
|
|
56
|
-
};
|
|
57
|
-
//# sourceMappingURL=auto-inject-orchestrator.d.ts.map
|
|
@@ -1 +0,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EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAChF,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,wBAAwB,EAAE,MAAM,CAAC;QACjC,oBAAoB,EAAE,MAAM,CAAC;KAC9B,CAAC;IACF,OAAO,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACzE,CAkBA"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fire-and-forget async queue for memory extraction jobs.
|
|
3
|
-
* enqueue() returns void immediately — never blocks the caller.
|
|
4
|
-
* Bounded to MAX_QUEUE_SIZE; oldest job dropped on overflow.
|
|
5
|
-
* All failures are silently logged — never propagate to caller.
|
|
6
|
-
*/
|
|
7
|
-
export interface ExtractionJob {
|
|
8
|
-
agentId?: string;
|
|
9
|
-
projectId?: string;
|
|
10
|
-
sessionId?: string;
|
|
11
|
-
/** The text to extract memories from (conversation turn, session chunk, etc.) */
|
|
12
|
-
turn: string;
|
|
13
|
-
timestamp: number;
|
|
14
|
-
/** Metadata passed through to the extraction pipeline */
|
|
15
|
-
source?: "turn" | "session" | "manual";
|
|
16
|
-
}
|
|
17
|
-
export interface QueueStats {
|
|
18
|
-
pending: number;
|
|
19
|
-
processing: number;
|
|
20
|
-
processed: number;
|
|
21
|
-
failed: number;
|
|
22
|
-
dropped: number;
|
|
23
|
-
}
|
|
24
|
-
type JobHandler = (job: ExtractionJob) => Promise<void>;
|
|
25
|
-
declare class AutoMemoryQueue {
|
|
26
|
-
private queue;
|
|
27
|
-
private handler;
|
|
28
|
-
private running;
|
|
29
|
-
private activeCount;
|
|
30
|
-
private stats;
|
|
31
|
-
/** Register the handler that processes each job */
|
|
32
|
-
setHandler(handler: JobHandler): void;
|
|
33
|
-
/**
|
|
34
|
-
* Enqueue a job. Returns immediately — never awaits.
|
|
35
|
-
* If queue is full, drops the oldest job (FIFO overflow).
|
|
36
|
-
*/
|
|
37
|
-
enqueue(job: ExtractionJob): void;
|
|
38
|
-
getStats(): Readonly<QueueStats>;
|
|
39
|
-
waitForIdleForTests(timeoutMs?: number): Promise<void>;
|
|
40
|
-
resetForTests(handler?: JobHandler | null): void;
|
|
41
|
-
private startLoop;
|
|
42
|
-
private loop;
|
|
43
|
-
private processJob;
|
|
44
|
-
}
|
|
45
|
-
/** Singleton queue — shared across the process */
|
|
46
|
-
export declare const autoMemoryQueue: AutoMemoryQueue;
|
|
47
|
-
export {};
|
|
48
|
-
//# sourceMappingURL=auto-memory-queue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-memory-queue.d.ts","sourceRoot":"","sources":["../../src/lib/auto-memory-queue.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,aAAa;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;CACxC;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,UAAU,GAAG,CAAC,GAAG,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAKxD,cAAM,eAAe;IACnB,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAK;IAExB,OAAO,CAAC,KAAK,CAMX;IAEF,mDAAmD;IACnD,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAKrC;;;OAGG;IACH,OAAO,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI;IAYjC,QAAQ,IAAI,QAAQ,CAAC,UAAU,CAAC;IAI1B,mBAAmB,CAAC,SAAS,SAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAS1D,aAAa,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,IAAI;IAkBhD,OAAO,CAAC,SAAS;YAKH,IAAI;YAiBJ,UAAU;CAiBzB;AAED,kDAAkD;AAClD,eAAO,MAAM,eAAe,iBAAwB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LLM-based auto-memory formation pipeline.
|
|
3
|
-
* NO REGEX — all extraction is done by LLMs.
|
|
4
|
-
* Main export: processConversationTurn(turn, context) — fire and forget.
|
|
5
|
-
* All failures are silently logged and never propagate.
|
|
6
|
-
*/
|
|
7
|
-
import { providerRegistry } from "./providers/registry.js";
|
|
8
|
-
import { type ExtractionJob } from "./auto-memory-queue.js";
|
|
9
|
-
/**
|
|
10
|
-
* Fire-and-forget: enqueue a conversation turn for async memory extraction.
|
|
11
|
-
* Returns immediately — never blocks. Never throws.
|
|
12
|
-
*/
|
|
13
|
-
export declare function processConversationTurn(turn: string, context: Omit<ExtractionJob, "turn" | "timestamp">, source?: ExtractionJob["source"]): void;
|
|
14
|
-
/** Get current queue stats */
|
|
15
|
-
export declare function getAutoMemoryStats(): Readonly<import("./auto-memory-queue.js").QueueStats>;
|
|
16
|
-
/** Configure the auto-memory pipeline at runtime */
|
|
17
|
-
export declare function configureAutoMemory(config: Parameters<typeof providerRegistry.configure>[0]): void;
|
|
18
|
-
export declare function resetAutoMemoryForTests(): Promise<void>;
|
|
19
|
-
//# sourceMappingURL=auto-memory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-memory.d.ts","sourceRoot":"","sources":["../../src/lib/auto-memory.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAmB,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAgO7E;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,WAAW,CAAC,EAClD,MAAM,GAAE,aAAa,CAAC,QAAQ,CAAU,GACvC,IAAI,CAQN;AAED,8BAA8B;AAC9B,wBAAgB,kBAAkB,0DAEjC;AAED,oDAAoD;AACpD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GACvD,IAAI,CAEN;AAED,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAK7D"}
|