@signetai/core 0.140.1
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/agents.d.ts +45 -0
- package/dist/agents.d.ts.map +1 -0
- package/dist/connector-types.d.ts +90 -0
- package/dist/connector-types.d.ts.map +1 -0
- package/dist/constants.d.ts +9 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/daemon-url.d.ts +7 -0
- package/dist/daemon-url.d.ts.map +1 -0
- package/dist/database.d.ts +41 -0
- package/dist/database.d.ts.map +1 -0
- package/dist/export.d.ts +84 -0
- package/dist/export.d.ts.map +1 -0
- package/dist/fts-schema.d.ts +13 -0
- package/dist/fts-schema.d.ts.map +1 -0
- package/dist/gitignore.d.ts +3 -0
- package/dist/gitignore.d.ts.map +1 -0
- package/dist/graphiq.d.ts +40 -0
- package/dist/graphiq.d.ts.map +1 -0
- package/dist/harness-config.d.ts +3 -0
- package/dist/harness-config.d.ts.map +1 -0
- package/dist/identity.d.ts +193 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/import.d.ts +86 -0
- package/dist/import.d.ts.map +1 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20057 -0
- package/dist/ingest/chat-extractor.d.ts +35 -0
- package/dist/ingest/chat-extractor.d.ts.map +1 -0
- package/dist/ingest/chat-utils.d.ts +18 -0
- package/dist/ingest/chat-utils.d.ts.map +1 -0
- package/dist/ingest/chunker.d.ts +27 -0
- package/dist/ingest/chunker.d.ts.map +1 -0
- package/dist/ingest/code-parser.d.ts +30 -0
- package/dist/ingest/code-parser.d.ts.map +1 -0
- package/dist/ingest/discord-parser.d.ts +30 -0
- package/dist/ingest/discord-parser.d.ts.map +1 -0
- package/dist/ingest/entire-extractor.d.ts +33 -0
- package/dist/ingest/entire-extractor.d.ts.map +1 -0
- package/dist/ingest/entire-parser.d.ts +51 -0
- package/dist/ingest/entire-parser.d.ts.map +1 -0
- package/dist/ingest/extractor.d.ts +27 -0
- package/dist/ingest/extractor.d.ts.map +1 -0
- package/dist/ingest/git-utils.d.ts +9 -0
- package/dist/ingest/git-utils.d.ts.map +1 -0
- package/dist/ingest/index.d.ts +52 -0
- package/dist/ingest/index.d.ts.map +1 -0
- package/dist/ingest/markdown-parser.d.ts +26 -0
- package/dist/ingest/markdown-parser.d.ts.map +1 -0
- package/dist/ingest/pdf-parser.d.ts +14 -0
- package/dist/ingest/pdf-parser.d.ts.map +1 -0
- package/dist/ingest/provenance.d.ts +55 -0
- package/dist/ingest/provenance.d.ts.map +1 -0
- package/dist/ingest/response-parser.d.ts +40 -0
- package/dist/ingest/response-parser.d.ts.map +1 -0
- package/dist/ingest/slack-parser.d.ts +34 -0
- package/dist/ingest/slack-parser.d.ts.map +1 -0
- package/dist/ingest/types.d.ts +163 -0
- package/dist/ingest/types.d.ts.map +1 -0
- package/dist/llm-model-catalog.d.ts +176 -0
- package/dist/llm-model-catalog.d.ts.map +1 -0
- package/dist/llm-model-catalog.js +110 -0
- package/dist/manifest.d.ts +4 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/markdown.d.ts +40 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/memory.d.ts +23 -0
- package/dist/memory.d.ts.map +1 -0
- package/dist/migrate.d.ts +8 -0
- package/dist/migrate.d.ts.map +1 -0
- package/dist/migration.d.ts +58 -0
- package/dist/migration.d.ts.map +1 -0
- package/dist/migrations/001-baseline.d.ts +10 -0
- package/dist/migrations/001-baseline.d.ts.map +1 -0
- package/dist/migrations/002-pipeline-v2.d.ts +10 -0
- package/dist/migrations/002-pipeline-v2.d.ts.map +1 -0
- package/dist/migrations/003-unique-content-hash.d.ts +13 -0
- package/dist/migrations/003-unique-content-hash.d.ts.map +1 -0
- package/dist/migrations/004-history-actor-and-retention.d.ts +10 -0
- package/dist/migrations/004-history-actor-and-retention.d.ts.map +1 -0
- package/dist/migrations/005-graph-extended.d.ts +3 -0
- package/dist/migrations/005-graph-extended.d.ts.map +1 -0
- package/dist/migrations/006-idempotency-key.d.ts +3 -0
- package/dist/migrations/006-idempotency-key.d.ts.map +1 -0
- package/dist/migrations/007-documents-and-connectors.d.ts +3 -0
- package/dist/migrations/007-documents-and-connectors.d.ts.map +1 -0
- package/dist/migrations/008-embeddings-unique-hash.d.ts +11 -0
- package/dist/migrations/008-embeddings-unique-hash.d.ts.map +1 -0
- package/dist/migrations/009-summary-jobs.d.ts +3 -0
- package/dist/migrations/009-summary-jobs.d.ts.map +1 -0
- package/dist/migrations/010-umap-cache.d.ts +3 -0
- package/dist/migrations/010-umap-cache.d.ts.map +1 -0
- package/dist/migrations/011-session-scores.d.ts +3 -0
- package/dist/migrations/011-session-scores.d.ts.map +1 -0
- package/dist/migrations/012-scheduled-tasks.d.ts +3 -0
- package/dist/migrations/012-scheduled-tasks.d.ts.map +1 -0
- package/dist/migrations/013-ingestion-tracking.d.ts +11 -0
- package/dist/migrations/013-ingestion-tracking.d.ts.map +1 -0
- package/dist/migrations/014-telemetry.d.ts +11 -0
- package/dist/migrations/014-telemetry.d.ts.map +1 -0
- package/dist/migrations/015-session-memories.d.ts +11 -0
- package/dist/migrations/015-session-memories.d.ts.map +1 -0
- package/dist/migrations/016-session-checkpoints.d.ts +10 -0
- package/dist/migrations/016-session-checkpoints.d.ts.map +1 -0
- package/dist/migrations/017-task-skills.d.ts +10 -0
- package/dist/migrations/017-task-skills.d.ts.map +1 -0
- package/dist/migrations/018-skill-meta.d.ts +10 -0
- package/dist/migrations/018-skill-meta.d.ts.map +1 -0
- package/dist/migrations/019-knowledge-structure.d.ts +12 -0
- package/dist/migrations/019-knowledge-structure.d.ts.map +1 -0
- package/dist/migrations/020-predictor-comparisons.d.ts +3 -0
- package/dist/migrations/020-predictor-comparisons.d.ts.map +1 -0
- package/dist/migrations/021-checkpoint-structural.d.ts +10 -0
- package/dist/migrations/021-checkpoint-structural.d.ts.map +1 -0
- package/dist/migrations/022-entity-pinning.d.ts +3 -0
- package/dist/migrations/022-entity-pinning.d.ts.map +1 -0
- package/dist/migrations/023-predictor-columns.d.ts +3 -0
- package/dist/migrations/023-predictor-columns.d.ts.map +1 -0
- package/dist/migrations/024-predictor-comparison-columns.d.ts +3 -0
- package/dist/migrations/024-predictor-comparison-columns.d.ts.map +1 -0
- package/dist/migrations/025-agent-feedback.d.ts +10 -0
- package/dist/migrations/025-agent-feedback.d.ts.map +1 -0
- package/dist/migrations/026-predictor-training-pairs.d.ts +3 -0
- package/dist/migrations/026-predictor-training-pairs.d.ts.map +1 -0
- package/dist/migrations/027-backfill-canonical-names.d.ts +12 -0
- package/dist/migrations/027-backfill-canonical-names.d.ts.map +1 -0
- package/dist/migrations/028-lossless-retention.d.ts +10 -0
- package/dist/migrations/028-lossless-retention.d.ts.map +1 -0
- package/dist/migrations/029-session-summary-dag.d.ts +3 -0
- package/dist/migrations/029-session-summary-dag.d.ts.map +1 -0
- package/dist/migrations/030-nullable-memory-job-memory-id.d.ts +18 -0
- package/dist/migrations/030-nullable-memory-job-memory-id.d.ts.map +1 -0
- package/dist/migrations/031-dependency-reason.d.ts +11 -0
- package/dist/migrations/031-dependency-reason.d.ts.map +1 -0
- package/dist/migrations/032-embeddings-vector-column.d.ts +11 -0
- package/dist/migrations/032-embeddings-vector-column.d.ts.map +1 -0
- package/dist/migrations/033-scope.d.ts +10 -0
- package/dist/migrations/033-scope.d.ts.map +1 -0
- package/dist/migrations/034-scope-aware-dedup.d.ts +12 -0
- package/dist/migrations/034-scope-aware-dedup.d.ts.map +1 -0
- package/dist/migrations/035-entity-fts.d.ts +10 -0
- package/dist/migrations/035-entity-fts.d.ts.map +1 -0
- package/dist/migrations/036-dependency-confidence.d.ts +15 -0
- package/dist/migrations/036-dependency-confidence.d.ts.map +1 -0
- package/dist/migrations/037-entity-communities.d.ts +10 -0
- package/dist/migrations/037-entity-communities.d.ts.map +1 -0
- package/dist/migrations/038-memory-hints.d.ts +11 -0
- package/dist/migrations/038-memory-hints.d.ts.map +1 -0
- package/dist/migrations/039-dedup-entity-dependencies.d.ts +11 -0
- package/dist/migrations/039-dedup-entity-dependencies.d.ts.map +1 -0
- package/dist/migrations/040-session-transcripts.d.ts +10 -0
- package/dist/migrations/040-session-transcripts.d.ts.map +1 -0
- package/dist/migrations/041-path-feedback.d.ts +3 -0
- package/dist/migrations/041-path-feedback.d.ts.map +1 -0
- package/dist/migrations/042-session-memories-agent-id.d.ts +10 -0
- package/dist/migrations/042-session-memories-agent-id.d.ts.map +1 -0
- package/dist/migrations/043-agents-table.d.ts +15 -0
- package/dist/migrations/043-agents-table.d.ts.map +1 -0
- package/dist/migrations/044-memory-md-temporal-head.d.ts +10 -0
- package/dist/migrations/044-memory-md-temporal-head.d.ts.map +1 -0
- package/dist/migrations/045-lossless-working-memory-hardening.d.ts +11 -0
- package/dist/migrations/045-lossless-working-memory-hardening.d.ts.map +1 -0
- package/dist/migrations/046-session-summary-uniqueness.d.ts +3 -0
- package/dist/migrations/046-session-summary-uniqueness.d.ts.map +1 -0
- package/dist/migrations/047-agent-scoped-temporal-uniqueness.d.ts +9 -0
- package/dist/migrations/047-agent-scoped-temporal-uniqueness.d.ts.map +1 -0
- package/dist/migrations/048-thread-heads.d.ts +9 -0
- package/dist/migrations/048-thread-heads.d.ts.map +1 -0
- package/dist/migrations/049-session-extract-cursors.d.ts +11 -0
- package/dist/migrations/049-session-extract-cursors.d.ts.map +1 -0
- package/dist/migrations/050-related-to-audit.d.ts +3 -0
- package/dist/migrations/050-related-to-audit.d.ts.map +1 -0
- package/dist/migrations/051-memory-md-rolling-window-lineage.d.ts +12 -0
- package/dist/migrations/051-memory-md-rolling-window-lineage.d.ts.map +1 -0
- package/dist/migrations/052-mcp-invocations.d.ts +10 -0
- package/dist/migrations/052-mcp-invocations.d.ts.map +1 -0
- package/dist/migrations/053-skill-invocations.d.ts +10 -0
- package/dist/migrations/053-skill-invocations.d.ts.map +1 -0
- package/dist/migrations/054-task-agent-scope.d.ts +3 -0
- package/dist/migrations/054-task-agent-scope.d.ts.map +1 -0
- package/dist/migrations/055-dreaming-state.d.ts +9 -0
- package/dist/migrations/055-dreaming-state.d.ts.map +1 -0
- package/dist/migrations/056-agent-scoped-content-hash.d.ts +11 -0
- package/dist/migrations/056-agent-scoped-content-hash.d.ts.map +1 -0
- package/dist/migrations/057-memories-fts-tokenizer-repair.d.ts +12 -0
- package/dist/migrations/057-memories-fts-tokenizer-repair.d.ts.map +1 -0
- package/dist/migrations/058-knowledge-graph-indices.d.ts +16 -0
- package/dist/migrations/058-knowledge-graph-indices.d.ts.map +1 -0
- package/dist/migrations/059-entity-attribute-claim-key.d.ts +11 -0
- package/dist/migrations/059-entity-attribute-claim-key.d.ts.map +1 -0
- package/dist/migrations/060-entity-attribute-group-key.d.ts +10 -0
- package/dist/migrations/060-entity-attribute-group-key.d.ts.map +1 -0
- package/dist/migrations/061-memory-artifact-source-mtime.d.ts +12 -0
- package/dist/migrations/061-memory-artifact-source-mtime.d.ts.map +1 -0
- package/dist/migrations/062-memory-artifact-soft-delete.d.ts +10 -0
- package/dist/migrations/062-memory-artifact-soft-delete.d.ts.map +1 -0
- package/dist/migrations/063-content-only-memories-fts-update.d.ts +13 -0
- package/dist/migrations/063-content-only-memories-fts-update.d.ts.map +1 -0
- package/dist/migrations/064-source-graph-provenance.d.ts +11 -0
- package/dist/migrations/064-source-graph-provenance.d.ts.map +1 -0
- package/dist/migrations/065-source-embedding-agent-scope.d.ts +10 -0
- package/dist/migrations/065-source-embedding-agent-scope.d.ts.map +1 -0
- package/dist/migrations/066-memory-search-telemetry.d.ts +10 -0
- package/dist/migrations/066-memory-search-telemetry.d.ts.map +1 -0
- package/dist/migrations/067-ontology-proposals.d.ts +10 -0
- package/dist/migrations/067-ontology-proposals.d.ts.map +1 -0
- package/dist/migrations/068-daily-reflections.d.ts +9 -0
- package/dist/migrations/068-daily-reflections.d.ts.map +1 -0
- package/dist/migrations/069-daily-reflections-multiple-insights.d.ts +11 -0
- package/dist/migrations/069-daily-reflections-multiple-insights.d.ts.map +1 -0
- package/dist/migrations/070-ontology-control-plane-state.d.ts +9 -0
- package/dist/migrations/070-ontology-control-plane-state.d.ts.map +1 -0
- package/dist/migrations/071-epistemic-assertions.d.ts +10 -0
- package/dist/migrations/071-epistemic-assertions.d.ts.map +1 -0
- package/dist/migrations/072-agent-scoped-idempotency-key.d.ts +9 -0
- package/dist/migrations/072-agent-scoped-idempotency-key.d.ts.map +1 -0
- package/dist/migrations/073-recall-context-dedupe.d.ts +10 -0
- package/dist/migrations/073-recall-context-dedupe.d.ts.map +1 -0
- package/dist/migrations/074-aggregate-memory-links.d.ts +7 -0
- package/dist/migrations/074-aggregate-memory-links.d.ts.map +1 -0
- package/dist/migrations/075-memory-artifact-source-provenance.d.ts +3 -0
- package/dist/migrations/075-memory-artifact-source-provenance.d.ts.map +1 -0
- package/dist/migrations/076-temporal-edges.d.ts +3 -0
- package/dist/migrations/076-temporal-edges.d.ts.map +1 -0
- package/dist/migrations/077-entity-aliases.d.ts +3 -0
- package/dist/migrations/077-entity-aliases.d.ts.map +1 -0
- package/dist/migrations/078-api-keys.d.ts +3 -0
- package/dist/migrations/078-api-keys.d.ts.map +1 -0
- package/dist/migrations/index.d.ts +54 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/network.d.ts +10 -0
- package/dist/network.d.ts.map +1 -0
- package/dist/oh-my-pi.d.ts +15 -0
- package/dist/oh-my-pi.d.ts.map +1 -0
- package/dist/package-manager.d.ts +33 -0
- package/dist/package-manager.d.ts.map +1 -0
- package/dist/pi.d.ts +15 -0
- package/dist/pi.d.ts.map +1 -0
- package/dist/pipeline-pause.d.ts +18 -0
- package/dist/pipeline-pause.d.ts.map +1 -0
- package/dist/pipeline-providers.d.ts +11 -0
- package/dist/pipeline-providers.d.ts.map +1 -0
- package/dist/pipeline-providers.js +144 -0
- package/dist/plugins.d.ts +6 -0
- package/dist/plugins.d.ts.map +1 -0
- package/dist/recall.d.ts +188 -0
- package/dist/recall.d.ts.map +1 -0
- package/dist/routing.d.ts +221 -0
- package/dist/routing.d.ts.map +1 -0
- package/dist/search.d.ts +75 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/signet-os-types.d.ts +116 -0
- package/dist/signet-os-types.d.ts.map +1 -0
- package/dist/signet.d.ts +36 -0
- package/dist/signet.d.ts.map +1 -0
- package/dist/skills.d.ts +111 -0
- package/dist/skills.d.ts.map +1 -0
- package/dist/soul.d.ts +3 -0
- package/dist/soul.d.ts.map +1 -0
- package/dist/source-substrate.d.ts +63 -0
- package/dist/source-substrate.d.ts.map +1 -0
- package/dist/sources-config.d.ts +131 -0
- package/dist/sources-config.d.ts.map +1 -0
- package/dist/symlinks.d.ts +45 -0
- package/dist/symlinks.d.ts.map +1 -0
- package/dist/types.d.ts +731 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/workspace-source-repo.d.ts +19 -0
- package/dist/workspace-source-repo.d.ts.map +1 -0
- package/dist/yaml.d.ts +29 -0
- package/dist/yaml.d.ts.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 003: Unique content hash index
|
|
3
|
+
*
|
|
4
|
+
* Safely creates a unique partial index on content_hash. Must run as a
|
|
5
|
+
* separate migration because 002 was already shipped with a non-unique
|
|
6
|
+
* index — existing installs need this new version to pick up the change.
|
|
7
|
+
*
|
|
8
|
+
* Also backfills `why` and `project` columns for databases that ran 001
|
|
9
|
+
* before those columns were added to the baseline CREATE TABLE.
|
|
10
|
+
*/
|
|
11
|
+
import type { MigrationDb } from "./index";
|
|
12
|
+
export declare function up(db: MigrationDb): void;
|
|
13
|
+
//# sourceMappingURL=003-unique-content-hash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"003-unique-content-hash.d.ts","sourceRoot":"","sources":["../../src/migrations/003-unique-content-hash.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAU3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAoCxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 004: Actor classification + correlation + retention indexes
|
|
3
|
+
*
|
|
4
|
+
* Adds structured actor_type and request/session correlation fields to
|
|
5
|
+
* memory_history, plus indexes to support the retention worker's purge
|
|
6
|
+
* queries on soft-deleted memories, expired history, and completed jobs.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=004-history-actor-and-retention.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"004-history-actor-and-retention.d.ts","sourceRoot":"","sources":["../../src/migrations/004-history-actor-and-retention.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAa3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CA+BxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"005-graph-extended.d.ts","sourceRoot":"","sources":["../../src/migrations/005-graph-extended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAa3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAqBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"006-idempotency-key.d.ts","sourceRoot":"","sources":["../../src/migrations/006-idempotency-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAO3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAiBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"007-documents-and-connectors.d.ts","sourceRoot":"","sources":["../../src/migrations/007-documents-and-connectors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAO3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CA2ExC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 008: Unique content_hash on embeddings
|
|
3
|
+
*
|
|
4
|
+
* The baseline schema declares content_hash as UNIQUE but older databases
|
|
5
|
+
* may have been created before that constraint was enforced. The pipeline
|
|
6
|
+
* Phase C write path uses ON CONFLICT(content_hash), which requires a
|
|
7
|
+
* unique index. Dedup any collisions then create the index.
|
|
8
|
+
*/
|
|
9
|
+
import type { MigrationDb } from "./index";
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=008-embeddings-unique-hash.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"008-embeddings-unique-hash.d.ts","sourceRoot":"","sources":["../../src/migrations/008-embeddings-unique-hash.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAsBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"009-summary-jobs.d.ts","sourceRoot":"","sources":["../../src/migrations/009-summary-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAsBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"010-umap-cache.d.ts","sourceRoot":"","sources":["../../src/migrations/010-umap-cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAUxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"011-session-scores.d.ts","sourceRoot":"","sources":["../../src/migrations/011-session-scores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAmBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"012-scheduled-tasks.d.ts","sourceRoot":"","sources":["../../src/migrations/012-scheduled-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAkCxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 013: Ingestion Tracking
|
|
3
|
+
*
|
|
4
|
+
* Adds infrastructure for the document ingestion engine:
|
|
5
|
+
* - ingestion_jobs table: tracks each ingestion run (file → memories)
|
|
6
|
+
* - source_path column on memories: links memories back to their source file
|
|
7
|
+
* - source_section column on memories: which section the memory came from
|
|
8
|
+
*/
|
|
9
|
+
import type { MigrationDb } from "./index";
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=013-ingestion-tracking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"013-ingestion-tracking.d.ts","sourceRoot":"","sources":["../../src/migrations/013-ingestion-tracking.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAU3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAgCxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 014: Telemetry Events
|
|
3
|
+
*
|
|
4
|
+
* Adds a table for anonymous, opt-in telemetry events that track token
|
|
5
|
+
* usage, error rates, performance, and feature usage. Events persist
|
|
6
|
+
* locally for the dashboard and predictor training data, and can
|
|
7
|
+
* optionally be batched to a self-hosted PostHog instance.
|
|
8
|
+
*/
|
|
9
|
+
import type { MigrationDb } from "./index";
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=014-telemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"014-telemetry.d.ts","sourceRoot":"","sources":["../../src/migrations/014-telemetry.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAkBxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 015: Session Memories
|
|
3
|
+
*
|
|
4
|
+
* Data pipeline prerequisites for the predictive memory scorer:
|
|
5
|
+
* - session_memories table: links memories to sessions with scoring metadata
|
|
6
|
+
* - confidence column on session_scores: LLM self-assessed quality gate
|
|
7
|
+
* - continuity_reasoning column on session_scores: full LLM reasoning for audit
|
|
8
|
+
*/
|
|
9
|
+
import type { MigrationDb } from "./index";
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=015-session-memories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"015-session-memories.d.ts","sourceRoot":"","sources":["../../src/migrations/015-session-memories.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAU3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAiCxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 016: Session Checkpoints
|
|
3
|
+
*
|
|
4
|
+
* Persistence layer for the session continuity protocol.
|
|
5
|
+
* Stores rolling digests so agents can recover context
|
|
6
|
+
* after compaction or session restart.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=016-session-checkpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"016-session-checkpoints.d.ts","sourceRoot":"","sources":["../../src/migrations/016-session-checkpoints.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAqBxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 017: Task Skills
|
|
3
|
+
*
|
|
4
|
+
* Adds optional skill attachment to scheduled tasks.
|
|
5
|
+
* Tasks can reference a skill by name and specify a mode
|
|
6
|
+
* for how the skill content is integrated into the prompt.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=017-task-skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"017-task-skills.d.ts","sourceRoot":"","sources":["../../src/migrations/017-task-skills.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAaxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 018: Skill Meta
|
|
3
|
+
*
|
|
4
|
+
* Creates the skill_meta table for procedural memory P1.
|
|
5
|
+
* Skills become first-class nodes in the knowledge graph,
|
|
6
|
+
* with per-agent scoping, usage tracking, and decay.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=018-skill-meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"018-skill-meta.d.ts","sourceRoot":"","sources":["../../src/migrations/018-skill-meta.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAiCxC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 019: Knowledge Architecture Structure
|
|
3
|
+
*
|
|
4
|
+
* Adds structural backbone for the knowledge graph:
|
|
5
|
+
* - Backfills agent_id on existing entities table
|
|
6
|
+
* - Creates entity_aspects, entity_attributes, entity_dependencies, task_meta
|
|
7
|
+
*
|
|
8
|
+
* Part of KA-1 (Schema + Types + Read/Write Helpers).
|
|
9
|
+
*/
|
|
10
|
+
import type { MigrationDb } from "./index";
|
|
11
|
+
export declare function up(db: MigrationDb): void;
|
|
12
|
+
//# sourceMappingURL=019-knowledge-structure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"019-knowledge-structure.d.ts","sourceRoot":"","sources":["../../src/migrations/019-knowledge-structure.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAwFxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"020-predictor-comparisons.d.ts","sourceRoot":"","sources":["../../src/migrations/020-predictor-comparisons.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAS3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAKxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 021: Structural checkpoint snapshot fields
|
|
3
|
+
*
|
|
4
|
+
* Adds optional structural snapshot columns to session_checkpoints so
|
|
5
|
+
* recovery can prioritize focal entities, active aspects, and traversal
|
|
6
|
+
* metadata from the prior session.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=021-checkpoint-structural.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"021-checkpoint-structural.d.ts","sourceRoot":"","sources":["../../src/migrations/021-checkpoint-structural.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAmBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"022-entity-pinning.d.ts","sourceRoot":"","sources":["../../src/migrations/022-entity-pinning.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAS3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAKxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"023-predictor-columns.d.ts","sourceRoot":"","sources":["../../src/migrations/023-predictor-columns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"024-predictor-comparison-columns.d.ts","sourceRoot":"","sources":["../../src/migrations/024-predictor-comparison-columns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAEzC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 025: Agent Relevance Feedback
|
|
3
|
+
*
|
|
4
|
+
* Adds columns to session_memories for accumulating per-prompt agent
|
|
5
|
+
* feedback scores. The running mean of feedback across the session
|
|
6
|
+
* becomes the primary training label for the predictive scorer.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=025-agent-feedback.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"025-agent-feedback.d.ts","sourceRoot":"","sources":["../../src/migrations/025-agent-feedback.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAU3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAOxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"026-predictor-training-pairs.d.ts","sourceRoot":"","sources":["../../src/migrations/026-predictor-training-pairs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,CAEzC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 027: Backfill NULL canonical_name on entities
|
|
3
|
+
*
|
|
4
|
+
* Migration 005 added the canonical_name column but never backfilled
|
|
5
|
+
* existing rows, leaving them NULL. This causes the upsertEntity
|
|
6
|
+
* lookup (which queries by canonical_name) to miss existing entities,
|
|
7
|
+
* leading to UNIQUE constraint violations on the name column during
|
|
8
|
+
* skill reconciliation and extraction.
|
|
9
|
+
*/
|
|
10
|
+
import type { MigrationDb } from "./index";
|
|
11
|
+
export declare function up(db: MigrationDb): void;
|
|
12
|
+
//# sourceMappingURL=027-backfill-canonical-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"027-backfill-canonical-names.d.ts","sourceRoot":"","sources":["../../src/migrations/027-backfill-canonical-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAWxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration 028: Lossless Retention (Cold Tier)
|
|
3
|
+
*
|
|
4
|
+
* Replaces hard deletion of tombstoned memories with cold-tier archival.
|
|
5
|
+
* Nothing is ever truly lost — expired memories are archived into
|
|
6
|
+
* memories_cold before being removed from the active table.
|
|
7
|
+
*/
|
|
8
|
+
import type { MigrationDb } from "./index";
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=028-lossless-retention.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"028-lossless-retention.d.ts","sourceRoot":"","sources":["../../src/migrations/028-lossless-retention.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAoCxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"029-session-summary-dag.d.ts","sourceRoot":"","sources":["../../src/migrations/029-session-summary-dag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CA4CxC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 030: Make memory_jobs.memory_id nullable
|
|
4
|
+
*
|
|
5
|
+
* The memory_jobs table was created in 002 with `memory_id TEXT NOT NULL`.
|
|
6
|
+
* Migration 007 added document_id for document_ingest jobs, but those jobs
|
|
7
|
+
* don't have a memory_id at creation time — they produce memories later.
|
|
8
|
+
* The NOT NULL constraint causes POST /api/documents to fail with:
|
|
9
|
+
* SQLiteError: NOT NULL constraint failed: memory_jobs.memory_id
|
|
10
|
+
*
|
|
11
|
+
* SQLite doesn't support ALTER COLUMN, so we rebuild the table.
|
|
12
|
+
*
|
|
13
|
+
* No artifacts declared: this migration modifies an existing table's
|
|
14
|
+
* constraint (not a new table/column). The memory_jobs table is already
|
|
15
|
+
* tracked by migration 002's artifacts, so phantom detection still works.
|
|
16
|
+
*/
|
|
17
|
+
export declare function up(db: MigrationDb): void;
|
|
18
|
+
//# sourceMappingURL=030-nullable-memory-job-memory-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"030-nullable-memory-job-memory-id.d.ts","sourceRoot":"","sources":["../../src/migrations/030-nullable-memory-job-memory-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CA+CxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 031: Add reason to dependencies, last_synthesized_at to entities
|
|
4
|
+
*
|
|
5
|
+
* - entity_dependencies.reason: LLM-provided explanation of why a
|
|
6
|
+
* dependency exists, surfaced in the dashboard for auditability.
|
|
7
|
+
* - entities.last_synthesized_at: timestamp tracking when the cross-entity
|
|
8
|
+
* dependency synthesis worker last processed an entity.
|
|
9
|
+
*/
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=031-dependency-reason.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"031-dependency-reason.d.ts","sourceRoot":"","sources":["../../src/migrations/031-dependency-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAUxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 032: Ensure embeddings.vector column exists
|
|
4
|
+
*
|
|
5
|
+
* Databases created on older Signet versions may lack the `vector BLOB`
|
|
6
|
+
* column on `embeddings`. Without it, `reembedMissingMemories` throws
|
|
7
|
+
* "table embeddings has no column named vector" and the daemon returns
|
|
8
|
+
* an unhandled 500 to the CLI.
|
|
9
|
+
*/
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=032-embeddings-vector-column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"032-embeddings-vector-column.d.ts","sourceRoot":"","sources":["../../src/migrations/032-embeddings-vector-column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAMxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Add nullable `scope` column to memories table.
|
|
4
|
+
*
|
|
5
|
+
* Normal memories keep `scope = NULL`. Benchmark or namespaced memories
|
|
6
|
+
* get a scoped value (e.g. "memorybench:question_42_run1"). A partial
|
|
7
|
+
* index on non-NULL scopes keeps the overhead at zero for normal queries.
|
|
8
|
+
*/
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=033-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"033-scope.d.ts","sourceRoot":"","sources":["../../src/migrations/033-scope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CASxC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Make the content_hash unique index scope-aware.
|
|
4
|
+
*
|
|
5
|
+
* The original idx_memories_content_hash_unique prevents duplicate content
|
|
6
|
+
* regardless of scope. With scoped memories (benchmarks, namespaced data),
|
|
7
|
+
* the same content legitimately exists in multiple scopes. Replace the
|
|
8
|
+
* global unique index with one that uses COALESCE(scope, '__NULL__') so
|
|
9
|
+
* duplicates are only blocked within the same scope.
|
|
10
|
+
*/
|
|
11
|
+
export declare function up(db: MigrationDb): void;
|
|
12
|
+
//# sourceMappingURL=034-scope-aware-dedup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"034-scope-aware-dedup.d.ts","sourceRoot":"","sources":["../../src/migrations/034-scope-aware-dedup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;GAQG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAOxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Add FTS5 full-text search index for entities.
|
|
4
|
+
*
|
|
5
|
+
* Replaces LIKE %token% matching with proper token-boundary search
|
|
6
|
+
* and BM25 ranking for entity resolution (DP-6). Content-sync
|
|
7
|
+
* triggers keep the FTS index in lockstep with the entities table.
|
|
8
|
+
*/
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=035-entity-fts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"035-entity-fts.d.ts","sourceRoot":"","sources":["../../src/migrations/035-entity-fts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAmCxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 036: Add confidence column to entity_dependencies.
|
|
4
|
+
*
|
|
5
|
+
* Combined (COALESCE(confidence, 0.7) * strength) score gates traversal
|
|
6
|
+
* so the walk prefers trustworthy edges. Reason values and their default
|
|
7
|
+
* confidence:
|
|
8
|
+
* user-asserted (1.0), multi-memory (0.9), single-memory (0.7),
|
|
9
|
+
* pattern-matched (0.5), inferred (0.4), llm-uncertain (0.3).
|
|
10
|
+
*
|
|
11
|
+
* The reason column was added in migration 031; this migration adds only
|
|
12
|
+
* the confidence column with DEFAULT 0.7 (single-memory).
|
|
13
|
+
*/
|
|
14
|
+
export declare function up(db: MigrationDb): void;
|
|
15
|
+
//# sourceMappingURL=036-dependency-confidence.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"036-dependency-confidence.d.ts","sourceRoot":"","sources":["../../src/migrations/036-dependency-confidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAMxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 037: Entity Communities
|
|
4
|
+
*
|
|
5
|
+
* Adds entity_communities table for Louvain community detection
|
|
6
|
+
* (DP-5). Entities gain a community_id foreign key that links them to
|
|
7
|
+
* their detected neighborhood cluster.
|
|
8
|
+
*/
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=037-entity-communities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"037-entity-communities.d.ts","sourceRoot":"","sources":["../../src/migrations/037-entity-communities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAsBxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Add prospective indexing: memory_hints table + FTS5 virtual table.
|
|
4
|
+
*
|
|
5
|
+
* At write time, the pipeline generates hypothetical future queries
|
|
6
|
+
* ("hints") for each memory. These are indexed via FTS5 so that
|
|
7
|
+
* search queries match memories by anticipated cue, not just by
|
|
8
|
+
* stored content. Inspired by Kumiho (arXiv:2603.17244).
|
|
9
|
+
*/
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=038-memory-hints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"038-memory-hints.d.ts","sourceRoot":"","sources":["../../src/migrations/038-memory-hints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CA8CxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Add unique constraint on entity_dependencies to prevent duplicate rows.
|
|
4
|
+
*
|
|
5
|
+
* The inline entity linker and graph transactions both insert with
|
|
6
|
+
* ON CONFLICT DO NOTHING, but no unique index existed — so duplicates
|
|
7
|
+
* accumulated freely. This migration adds the missing constraint and
|
|
8
|
+
* removes existing duplicates (keeping the oldest row per group).
|
|
9
|
+
*/
|
|
10
|
+
export declare function up(db: MigrationDb): void;
|
|
11
|
+
//# sourceMappingURL=039-dedup-entity-dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"039-dedup-entity-dependencies.d.ts","sourceRoot":"","sources":["../../src/migrations/039-dedup-entity-dependencies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;GAOG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAoBxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 040: Session Transcripts (Lossless Retention)
|
|
4
|
+
*
|
|
5
|
+
* Stores raw session transcripts alongside extracted facts.
|
|
6
|
+
* Extraction creates the search surface; the transcript preserves
|
|
7
|
+
* completeness so nothing is permanently lost.
|
|
8
|
+
*/
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=040-session-transcripts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"040-session-transcripts.d.ts","sourceRoot":"","sources":["../../src/migrations/040-session-transcripts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAgBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"041-path-feedback.d.ts","sourceRoot":"","sources":["../../src/migrations/041-path-feedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAW3C,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAqExC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 042: Add agent scoping to session_memories
|
|
4
|
+
*
|
|
5
|
+
* Rebuilds session_memories so rows are keyed by
|
|
6
|
+
* (session_key, agent_id, memory_id), enabling agent-scoped writes/reads
|
|
7
|
+
* when multiple agents reuse a session key.
|
|
8
|
+
*/
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=042-session-memories-agent-id.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"042-session-memories-agent-id.d.ts","sourceRoot":"","sources":["../../src/migrations/042-session-memories-agent-id.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAQ3C;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAqFxC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 043: Multi-agent support
|
|
4
|
+
*
|
|
5
|
+
* 1. Creates the `agents` table — agent roster with per-agent read policy.
|
|
6
|
+
* 2. Adds `agent_id` to `memories` — which agent owns each memory.
|
|
7
|
+
* 3. Adds `visibility` to `memories` — per-memory access flag.
|
|
8
|
+
* Values: 'global' (any permitted agent), 'private' (owner only),
|
|
9
|
+
* 'archived' (soft-deleted when owning agent is removed).
|
|
10
|
+
*
|
|
11
|
+
* Note: the existing `scope` column on memories is for benchmark namespacing
|
|
12
|
+
* (e.g. "memorybench:question_42_run1") and is NOT related to this.
|
|
13
|
+
*/
|
|
14
|
+
export declare function up(db: MigrationDb): void;
|
|
15
|
+
//# sourceMappingURL=043-agents-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"043-agents-table.d.ts","sourceRoot":"","sources":["../../src/migrations/043-agents-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAQ3C;;;;;;;;;;;GAWG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAgCxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 044: MEMORY.md temporal head metadata
|
|
4
|
+
*
|
|
5
|
+
* Extends `session_summaries` with provenance metadata so the table can
|
|
6
|
+
* represent summary-worker nodes, transcript-chunk leaves, compaction
|
|
7
|
+
* artifacts, and higher-order condensations without losing lineage.
|
|
8
|
+
*/
|
|
9
|
+
export declare function up(db: MigrationDb): void;
|
|
10
|
+
//# sourceMappingURL=044-memory-md-temporal-head.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"044-memory-md-temporal-head.d.ts","sourceRoot":"","sources":["../../src/migrations/044-memory-md-temporal-head.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAQ3C;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAoBxC"}
|