signetai 0.185.8 → 0.187.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 +47 -11
- package/native-manifest.json +14 -14
- package/package.json +6 -6
package/dist/mcp-stdio.js
CHANGED
|
@@ -47826,6 +47826,27 @@ function up119(db) {
|
|
|
47826
47826
|
db.exec("ALTER TABLE telemetry_install ADD COLUMN last_seen_version TEXT");
|
|
47827
47827
|
}
|
|
47828
47828
|
}
|
|
47829
|
+
function up120(db) {
|
|
47830
|
+
db.exec(`
|
|
47831
|
+
CREATE TABLE IF NOT EXISTS source_lifecycle_state (
|
|
47832
|
+
agent_id TEXT NOT NULL,
|
|
47833
|
+
source_key TEXT NOT NULL,
|
|
47834
|
+
source_class TEXT NOT NULL,
|
|
47835
|
+
mode TEXT NOT NULL,
|
|
47836
|
+
connected_at TEXT,
|
|
47837
|
+
first_indexed_at TEXT,
|
|
47838
|
+
first_searchable_at TEXT,
|
|
47839
|
+
first_recall_at TEXT,
|
|
47840
|
+
last_success_at TEXT,
|
|
47841
|
+
last_freshness_state TEXT,
|
|
47842
|
+
last_freshness_event_at TEXT,
|
|
47843
|
+
PRIMARY KEY (agent_id, source_key)
|
|
47844
|
+
);
|
|
47845
|
+
|
|
47846
|
+
CREATE INDEX IF NOT EXISTS idx_source_lifecycle_state_ready
|
|
47847
|
+
ON source_lifecycle_state(agent_id, source_class, first_searchable_at, first_recall_at);
|
|
47848
|
+
`);
|
|
47849
|
+
}
|
|
47829
47850
|
var MIGRATIONS = [
|
|
47830
47851
|
{
|
|
47831
47852
|
version: 1,
|
|
@@ -48787,6 +48808,12 @@ var MIGRATIONS = [
|
|
|
48787
48808
|
name: "telemetry-version-observation",
|
|
48788
48809
|
up: up119,
|
|
48789
48810
|
artifacts: { columns: [{ table: "telemetry_install", column: "last_seen_version" }] }
|
|
48811
|
+
},
|
|
48812
|
+
{
|
|
48813
|
+
version: 120,
|
|
48814
|
+
name: "source-lifecycle-telemetry",
|
|
48815
|
+
up: up120,
|
|
48816
|
+
artifacts: { tables: ["source_lifecycle_state"] }
|
|
48790
48817
|
}
|
|
48791
48818
|
];
|
|
48792
48819
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -52327,7 +52354,9 @@ function applySetClaimValue(db, agentId, proposal, payload, writeCaps) {
|
|
|
52327
52354
|
memoryId,
|
|
52328
52355
|
version: version2,
|
|
52329
52356
|
versionRootId: rootId,
|
|
52330
|
-
previousAttributeId: previous?.id ?? null
|
|
52357
|
+
previousAttributeId: previous?.id ?? null,
|
|
52358
|
+
previousWasActive: previous?.status === "active",
|
|
52359
|
+
supersededAttributeIds: active.map((row) => row.id)
|
|
52331
52360
|
};
|
|
52332
52361
|
}
|
|
52333
52362
|
function applySupersedeClaimValue(db, agentId, proposal, payload) {
|
|
@@ -52369,6 +52398,7 @@ function applySupersedeClaimValue(db, agentId, proposal, payload) {
|
|
|
52369
52398
|
throw new OntologyProposalError("No active claim values matched supersession payload", 400);
|
|
52370
52399
|
const replacementValue = readString2(payload, "new_value");
|
|
52371
52400
|
let replacementId = null;
|
|
52401
|
+
let replacementCreated = false;
|
|
52372
52402
|
if (replacementValue !== null) {
|
|
52373
52403
|
if (oldValue !== null && canonical(replacementValue) === canonical(oldValue)) {
|
|
52374
52404
|
throw new OntologyProposalError("payload.new_value must differ from payload.old_value", 400);
|
|
@@ -52385,6 +52415,7 @@ function applySupersedeClaimValue(db, agentId, proposal, payload) {
|
|
|
52385
52415
|
entity_type: readString2(payload, "entity_type") ?? undefined
|
|
52386
52416
|
});
|
|
52387
52417
|
replacementId = typeof replacement.attributeId === "string" ? replacement.attributeId : null;
|
|
52418
|
+
replacementCreated = replacement.deduped !== true && replacementId !== null;
|
|
52388
52419
|
}
|
|
52389
52420
|
const requestedReplacementId = readString2(payload, "superseded_by");
|
|
52390
52421
|
const supersededBy = replacementId ?? requestedReplacementId;
|
|
@@ -52407,7 +52438,7 @@ function applySupersedeClaimValue(db, agentId, proposal, payload) {
|
|
|
52407
52438
|
supersedeAttributeMemoryInTx(db, { memoryId: row.memory_id, replacementMemoryId, proposal });
|
|
52408
52439
|
}
|
|
52409
52440
|
}
|
|
52410
|
-
return { supersededAttributeIds: ids, replacementAttributeId: replacementId };
|
|
52441
|
+
return { supersededAttributeIds: ids, replacementAttributeId: replacementId, replacementCreated };
|
|
52411
52442
|
}
|
|
52412
52443
|
function applyRenameEntity(db, agentId, proposal, payload) {
|
|
52413
52444
|
const selector = readPayloadSelector(payload, "selector", "entity", "entity_id", "name");
|
|
@@ -52598,14 +52629,16 @@ function mergeEntityAspects(db, agentId, sourceId, targetId) {
|
|
|
52598
52629
|
return aspects.length;
|
|
52599
52630
|
}
|
|
52600
52631
|
function mergeEntityEdges(db, agentId, sourceId, targetId) {
|
|
52601
|
-
|
|
52602
|
-
db.prepare("UPDATE entity_dependencies SET
|
|
52603
|
-
db.prepare("
|
|
52604
|
-
db.prepare("
|
|
52605
|
-
db.prepare("UPDATE relations SET
|
|
52606
|
-
db.prepare("
|
|
52632
|
+
let relationshipChanges = 0;
|
|
52633
|
+
relationshipChanges += db.prepare("UPDATE entity_dependencies SET source_entity_id = ? WHERE source_entity_id = ? AND agent_id = ?").run(targetId, sourceId, agentId).changes;
|
|
52634
|
+
relationshipChanges += db.prepare("UPDATE entity_dependencies SET target_entity_id = ? WHERE target_entity_id = ? AND agent_id = ?").run(targetId, sourceId, agentId).changes;
|
|
52635
|
+
relationshipChanges += db.prepare("DELETE FROM entity_dependencies WHERE source_entity_id = target_entity_id AND agent_id = ?").run(agentId).changes;
|
|
52636
|
+
relationshipChanges += db.prepare("UPDATE relations SET source_entity_id = ? WHERE source_entity_id = ?").run(targetId, sourceId).changes;
|
|
52637
|
+
relationshipChanges += db.prepare("UPDATE relations SET target_entity_id = ? WHERE target_entity_id = ?").run(targetId, sourceId).changes;
|
|
52638
|
+
relationshipChanges += db.prepare("DELETE FROM relations WHERE source_entity_id = target_entity_id").run().changes;
|
|
52607
52639
|
db.prepare("INSERT OR IGNORE INTO memory_entity_mentions (memory_id, entity_id) SELECT memory_id, ? FROM memory_entity_mentions WHERE entity_id = ?").run(targetId, sourceId);
|
|
52608
52640
|
db.prepare("DELETE FROM memory_entity_mentions WHERE entity_id = ?").run(sourceId);
|
|
52641
|
+
return relationshipChanges;
|
|
52609
52642
|
}
|
|
52610
52643
|
function applyMergeEntities(db, agentId, payload) {
|
|
52611
52644
|
const sources = sourceMergeSpecs(payload);
|
|
@@ -52620,9 +52653,10 @@ function applyMergeEntities(db, agentId, payload) {
|
|
|
52620
52653
|
if (plan.blocked)
|
|
52621
52654
|
throw new OntologyProposalError(`Merge blocked: ${plan.warnings.join("; ")}`, 409);
|
|
52622
52655
|
const merged = [];
|
|
52656
|
+
let relationshipChanges = 0;
|
|
52623
52657
|
for (const source of plan.sources) {
|
|
52624
52658
|
const movedAspects = mergeEntityAspects(db, agentId, source.id, plan.target.id);
|
|
52625
|
-
mergeEntityEdges(db, agentId, source.id, plan.target.id);
|
|
52659
|
+
relationshipChanges += mergeEntityEdges(db, agentId, source.id, plan.target.id);
|
|
52626
52660
|
db.prepare(`UPDATE entities
|
|
52627
52661
|
SET mentions = COALESCE(mentions, 0) + COALESCE((SELECT mentions FROM entities WHERE id = ?), 0),
|
|
52628
52662
|
updated_at = datetime('now')
|
|
@@ -52636,7 +52670,8 @@ function applyMergeEntities(db, agentId, payload) {
|
|
|
52636
52670
|
targetEntityId: plan.target.id,
|
|
52637
52671
|
targetEntityName: plan.target.name,
|
|
52638
52672
|
mergedEntities: merged,
|
|
52639
|
-
warnings: plan.warnings
|
|
52673
|
+
warnings: plan.warnings,
|
|
52674
|
+
relationshipsChanged: relationshipChanges
|
|
52640
52675
|
};
|
|
52641
52676
|
}
|
|
52642
52677
|
function applyMergeAspects(db, agentId, proposal, payload) {
|
|
@@ -54418,6 +54453,7 @@ function createDreamingCapabilities(params) {
|
|
|
54418
54453
|
agentId: exports_external.string().min(1),
|
|
54419
54454
|
operations: exports_external.array(DREAMING_ONTOLOGY_OPERATION_SCHEMA).min(1).max(100)
|
|
54420
54455
|
}), async ({ agentId: scopeId, operations }) => {
|
|
54456
|
+
params.onOperationsAboutToApply?.(operations, scopeId);
|
|
54421
54457
|
const result = applyDreamingOperations({
|
|
54422
54458
|
accessor,
|
|
54423
54459
|
agentId: scopeId,
|
|
@@ -54426,7 +54462,7 @@ function createDreamingCapabilities(params) {
|
|
|
54426
54462
|
passId: params.passId,
|
|
54427
54463
|
writeCaps: params.writeCaps
|
|
54428
54464
|
});
|
|
54429
|
-
params.onOperationsApplied?.(result, operations);
|
|
54465
|
+
params.onOperationsApplied?.(result, operations, scopeId);
|
|
54430
54466
|
return { ok: result.ok, ...result.error ? { error: result.error } : {}, items: result.items };
|
|
54431
54467
|
})
|
|
54432
54468
|
];
|
package/native-manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.187.0",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "0cb9e2ddcdd054b0a5fa468b8af234bd89ccd9fb86865a42f319013018b510af",
|
|
9
|
+
"size": 117705376
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
14
|
+
"sha256": "a583327a47051334c0787b3975b1e0f030fe47cdcf03823195b193d8f2225970",
|
|
15
|
+
"size": 122325568
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "79c4fd306a9e02d500413751e8a6e4c31c992f3b2c3e9a27e2639cf0358cd997",
|
|
21
|
+
"size": 154942682
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "92cc149a58225f90c54672b4ba198495e9bae9bc1765054803bd163b7a5430be",
|
|
27
|
+
"size": 155501667
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "a409289492f35df4db7545eadddfdf7129c810984f2b989a891fda45876b449b",
|
|
33
|
+
"size": 171634176
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"components": {
|
|
37
37
|
"connectors": {
|
|
38
|
-
"url": "signet-connectors-0.
|
|
39
|
-
"sha256": "
|
|
40
|
-
"size":
|
|
38
|
+
"url": "signet-connectors-0.187.0.tar.gz",
|
|
39
|
+
"sha256": "aa9f38f7e6d8f79f696d21d3c101f6fabc58510bff12515d3f8b4a277cd7298f",
|
|
40
|
+
"size": 16881
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signetai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.187.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.
|
|
69
|
-
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
70
|
-
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
71
|
-
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
72
|
-
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.
|
|
68
|
+
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.187.0/signetai-darwin-arm64-0.187.0.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.187.0/signetai-darwin-x64-0.187.0.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.187.0/signetai-linux-arm64-0.187.0.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.187.0/signetai-linux-x64-0.187.0.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.187.0/signetai-win32-x64-0.187.0.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|