@signetai/core 0.145.8 → 0.145.9
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/index.js
CHANGED
|
@@ -9964,6 +9964,25 @@ function up80(db) {
|
|
|
9964
9964
|
db.exec("CREATE INDEX IF NOT EXISTS idx_documents_source_scope ON documents(source_url, agent_id, project)");
|
|
9965
9965
|
}
|
|
9966
9966
|
|
|
9967
|
+
// src/migrations/081-aggregate-evidence-sources.ts
|
|
9968
|
+
function up81(db) {
|
|
9969
|
+
db.exec(`
|
|
9970
|
+
CREATE TABLE IF NOT EXISTS aggregate_evidence_sources (
|
|
9971
|
+
aggregate_memory_id TEXT NOT NULL,
|
|
9972
|
+
source_kind TEXT NOT NULL,
|
|
9973
|
+
source_id TEXT NOT NULL,
|
|
9974
|
+
source_path TEXT,
|
|
9975
|
+
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
9976
|
+
created_at TEXT NOT NULL,
|
|
9977
|
+
PRIMARY KEY (aggregate_memory_id, source_kind, source_id)
|
|
9978
|
+
);
|
|
9979
|
+
CREATE INDEX IF NOT EXISTS idx_aggregate_evidence_sources_agent
|
|
9980
|
+
ON aggregate_evidence_sources(agent_id, aggregate_memory_id);
|
|
9981
|
+
CREATE INDEX IF NOT EXISTS idx_aggregate_evidence_sources_source
|
|
9982
|
+
ON aggregate_evidence_sources(source_kind, source_id);
|
|
9983
|
+
`);
|
|
9984
|
+
}
|
|
9985
|
+
|
|
9967
9986
|
// src/migrations/index.ts
|
|
9968
9987
|
var MIGRATIONS = [
|
|
9969
9988
|
{
|
|
@@ -10610,6 +10629,14 @@ var MIGRATIONS = [
|
|
|
10610
10629
|
{ table: "documents", column: "project" }
|
|
10611
10630
|
]
|
|
10612
10631
|
}
|
|
10632
|
+
},
|
|
10633
|
+
{
|
|
10634
|
+
version: 81,
|
|
10635
|
+
name: "aggregate-evidence-sources",
|
|
10636
|
+
up: up81,
|
|
10637
|
+
artifacts: {
|
|
10638
|
+
tables: ["aggregate_evidence_sources"]
|
|
10639
|
+
}
|
|
10613
10640
|
}
|
|
10614
10641
|
];
|
|
10615
10642
|
function checksum(m) {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MigrationDb } from "./index";
|
|
2
|
+
/**
|
|
3
|
+
* Migration 081: typed provenance links from aggregate recall memories to every
|
|
4
|
+
* evidence row used during synthesis, including non-memory sources such as
|
|
5
|
+
* ontology claims.
|
|
6
|
+
*/
|
|
7
|
+
export declare function up(db: MigrationDb): void;
|
|
8
|
+
//# sourceMappingURL=081-aggregate-evidence-sources.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"081-aggregate-evidence-sources.d.ts","sourceRoot":"","sources":["../../src/migrations/081-aggregate-evidence-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;GAIG;AACH,wBAAgB,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,CAgBxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsFH,MAAM,WAAW,WAAW;IAC3B,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG;QACrB,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAC9B,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;QAC7D,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CA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