signetai 0.146.5 → 0.147.0

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/mcp-stdio.js CHANGED
@@ -38267,6 +38267,102 @@ function up83(db) {
38267
38267
  AND ${sourceAgentId} = ${targetAgentId}
38268
38268
  `);
38269
38269
  }
38270
+ function up84(db) {
38271
+ db.exec(`
38272
+ CREATE TABLE IF NOT EXISTS legacy_markdown_imports (
38273
+ path TEXT PRIMARY KEY,
38274
+ mtime_ms INTEGER NOT NULL,
38275
+ ctime_ms INTEGER NOT NULL,
38276
+ size INTEGER NOT NULL,
38277
+ content_hash TEXT NOT NULL,
38278
+ importer_version INTEGER NOT NULL,
38279
+ chunk_count INTEGER NOT NULL DEFAULT 0,
38280
+ last_imported_at TEXT NOT NULL,
38281
+ last_seen_at TEXT NOT NULL,
38282
+ status TEXT NOT NULL DEFAULT 'imported',
38283
+ error TEXT
38284
+ );
38285
+
38286
+ CREATE TABLE IF NOT EXISTS legacy_markdown_chunks (
38287
+ file_path TEXT NOT NULL,
38288
+ chunk_hash TEXT NOT NULL,
38289
+ chunk_index INTEGER NOT NULL,
38290
+ memory_id TEXT,
38291
+ source_id TEXT,
38292
+ created_at TEXT NOT NULL,
38293
+ PRIMARY KEY (file_path, chunk_hash)
38294
+ );
38295
+
38296
+ CREATE INDEX IF NOT EXISTS idx_legacy_markdown_chunks_memory_id
38297
+ ON legacy_markdown_chunks(memory_id);
38298
+ `);
38299
+ }
38300
+ function up85(db) {
38301
+ const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name IN ('relations', 'entity_dependencies')").all();
38302
+ const tableNames = new Set(tables.map((r) => String(r.name)));
38303
+ if (!tableNames.has("relations") || !tableNames.has("entity_dependencies"))
38304
+ return;
38305
+ const relCols = db.prepare("PRAGMA table_info(relations)").all();
38306
+ const depCols = db.prepare("PRAGMA table_info(entity_dependencies)").all();
38307
+ const rel = new Set(relCols.map((c) => String(c.name)));
38308
+ const dep = new Set(depCols.map((c) => String(c.name)));
38309
+ if (!rel.has("source_entity_id") || !rel.has("relation_type"))
38310
+ return;
38311
+ if (!dep.has("source_entity_id") || !dep.has("dependency_type") || !dep.has("agent_id"))
38312
+ return;
38313
+ const hasRelConfidence = rel.has("confidence");
38314
+ const hasRelUpdated = rel.has("updated_at");
38315
+ const hasDepConfidence = dep.has("confidence");
38316
+ const hasDepReason = dep.has("reason");
38317
+ const hasDepStatus = dep.has("status");
38318
+ const selectParts = ["id", "source_entity_id", "target_entity_id"];
38319
+ const colParts = ["id", "source_entity_id", "target_entity_id"];
38320
+ selectParts.push("relation_type");
38321
+ colParts.push("dependency_type");
38322
+ selectParts.push("strength", "created_at");
38323
+ colParts.push("strength", "created_at");
38324
+ selectParts.push("'default'");
38325
+ colParts.push("agent_id");
38326
+ selectParts.push("NULL");
38327
+ colParts.push("aspect_id");
38328
+ if (hasRelConfidence && hasDepConfidence) {
38329
+ selectParts.push("confidence");
38330
+ colParts.push("confidence");
38331
+ }
38332
+ if (hasDepReason) {
38333
+ selectParts.push("'extracted'");
38334
+ colParts.push("reason");
38335
+ }
38336
+ if (hasDepStatus) {
38337
+ selectParts.push("'active'");
38338
+ colParts.push("status");
38339
+ }
38340
+ if (hasRelUpdated && dep.has("updated_at")) {
38341
+ selectParts.push("updated_at");
38342
+ colParts.push("updated_at");
38343
+ }
38344
+ const selectClause = selectParts.join(", ");
38345
+ const colsClause = colParts.join(", ");
38346
+ db.exec(`INSERT OR IGNORE INTO entity_dependencies (${colsClause})
38347
+ SELECT ${selectClause}
38348
+ FROM relations
38349
+ WHERE source_entity_id IS NOT NULL
38350
+ AND target_entity_id IS NOT NULL
38351
+ AND relation_type IS NOT NULL`);
38352
+ }
38353
+ function addColumnIfMissing21(db, table, column, definition) {
38354
+ const cols = db.prepare(`PRAGMA table_info(${table})`).all();
38355
+ if (cols.some((col) => col.name === column))
38356
+ return;
38357
+ db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
38358
+ }
38359
+ function up86(db) {
38360
+ addColumnIfMissing21(db, "summary_jobs", "content_hash", "TEXT");
38361
+ db.exec(`
38362
+ CREATE INDEX IF NOT EXISTS idx_summary_jobs_agent_session_content_hash
38363
+ ON summary_jobs(agent_id, session_key, content_hash)
38364
+ `);
38365
+ }
38270
38366
  var MIGRATIONS = [
38271
38367
  {
38272
38368
  version: 1,
@@ -38946,6 +39042,30 @@ var MIGRATIONS = [
38946
39042
  { table: "memories", column: "superseded_reason" }
38947
39043
  ]
38948
39044
  }
39045
+ },
39046
+ {
39047
+ version: 84,
39048
+ name: "legacy-markdown-import-state",
39049
+ up: up84,
39050
+ artifacts: {
39051
+ tables: ["legacy_markdown_imports", "legacy_markdown_chunks"]
39052
+ }
39053
+ },
39054
+ {
39055
+ version: 85,
39056
+ name: "backfill-relations-to-dependencies",
39057
+ up: up85,
39058
+ artifacts: {
39059
+ tables: ["entity_dependencies"]
39060
+ }
39061
+ },
39062
+ {
39063
+ version: 86,
39064
+ name: "summary-jobs-content-hash",
39065
+ up: up86,
39066
+ artifacts: {
39067
+ columns: [{ table: "summary_jobs", column: "content_hash" }]
39068
+ }
38949
39069
  }
38950
39070
  ];
38951
39071
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -1,43 +1,43 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "0.146.5",
3
+ "version": "0.147.0",
4
4
  "assets": [
5
5
  {
6
6
  "name": "signet-darwin-arm64",
7
7
  "platform": "darwin-arm64",
8
- "sha256": "9a97ef416effcebeb34ce4b6d02712803c4c5b0dc79304cb6fdfcacbc5ed40a0",
9
- "size": 126853024
8
+ "sha256": "74bfcb4440042e03c8edad70dd08fa7c29bb26ac4bca266ba47a231e7e03abc9",
9
+ "size": 126985120
10
10
  },
11
11
  {
12
12
  "name": "signet-darwin-x64",
13
13
  "platform": "darwin-x64",
14
- "sha256": "4a2c7d06a06785aef6ef66cbd972a10086e05fab7586c583fa6165c1c2ab1b00",
15
- "size": 131402304
14
+ "sha256": "79570dddf14eb288ed1e5280f2d193e4ad8f8b837aa96eee14fd2ffbfcc8e617",
15
+ "size": 131533376
16
16
  },
17
17
  {
18
18
  "name": "signet-linux-arm64",
19
19
  "platform": "linux-arm64",
20
- "sha256": "72756254ad76fb342b318c21fbd11804f53073262e136f14f83cd87a24bcccfe",
21
- "size": 164177362
20
+ "sha256": "fd5b630977cc63fe305f1daf9b9c654a8be4f653b5ade0d3525d002daeabb6dc",
21
+ "size": 164303849
22
22
  },
23
23
  {
24
24
  "name": "signet-linux-x64",
25
25
  "platform": "linux-x64",
26
- "sha256": "12f14f69ddddd1ee3c735eabff4d66c57a2856972c5e95d4f452535e53806de2",
27
- "size": 164691016
26
+ "sha256": "101b5aae80b408c72688a256e1718430703e8b2a9e91027aefcacda2ae795002",
27
+ "size": 164817503
28
28
  },
29
29
  {
30
30
  "name": "signet-win32-x64.exe",
31
31
  "platform": "win32-x64",
32
- "sha256": "ebc5cc7b26b7175a6c95ce672dd189d6a795b0a3a45736d77146f7b617750ce7",
33
- "size": 180755456
32
+ "sha256": "b511c7de24b094de51117ac838d066bbfaa433ee774f1e952907c21f6b75e1c9",
33
+ "size": 180882432
34
34
  }
35
35
  ],
36
36
  "components": {
37
37
  "connectors": {
38
- "url": "signet-connectors-0.146.5.tar.gz",
39
- "sha256": "cfb36ee65f9dc99360f4d814d50cfefc7b72512c4ec87e39e961d3b825421ed7",
40
- "size": 15375
38
+ "url": "signet-connectors-0.147.0.tar.gz",
39
+ "sha256": "0dce0c56cb892eb1385987c03eb1a4fcf0aff69e0cdc0849d364fb2df5a675a0",
40
+ "size": 15378
41
41
  }
42
42
  }
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signetai",
3
- "version": "0.146.5",
3
+ "version": "0.147.0",
4
4
  "description": "Signet native CLI installer wrapper",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,10 +65,10 @@
65
65
  "access": "public"
66
66
  },
67
67
  "optionalDependencies": {
68
- "signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.146.5/signetai-darwin-arm64-0.146.5.tgz",
69
- "signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.146.5/signetai-darwin-x64-0.146.5.tgz",
70
- "signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.146.5/signetai-linux-arm64-0.146.5.tgz",
71
- "signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.146.5/signetai-linux-x64-0.146.5.tgz",
72
- "signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.146.5/signetai-win32-x64-0.146.5.tgz"
68
+ "signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.0/signetai-darwin-arm64-0.147.0.tgz",
69
+ "signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.0/signetai-darwin-x64-0.147.0.tgz",
70
+ "signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.0/signetai-linux-arm64-0.147.0.tgz",
71
+ "signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.0/signetai-linux-x64-0.147.0.tgz",
72
+ "signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.147.0/signetai-win32-x64-0.147.0.tgz"
73
73
  }
74
74
  }