signetai 0.200.7 → 0.200.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/mcp-stdio.js +36 -0
- package/native-manifest.json +13 -13
- package/package.json +6 -6
package/dist/mcp-stdio.js
CHANGED
|
@@ -45850,6 +45850,41 @@ function requireDependencyReason(dependencyType, reason) {
|
|
|
45850
45850
|
}
|
|
45851
45851
|
|
|
45852
45852
|
// ../../platform/daemon/src/derived-memory-provenance.ts
|
|
45853
|
+
var SEMANTIC_PREMISE_KIND = "ontology_claim";
|
|
45854
|
+
var EPISODIC_SOURCE_KINDS = new Set(["memory", "artifact", "transcript", "summary"]);
|
|
45855
|
+
function validateSemanticPremise(db, agentId, sourceId) {
|
|
45856
|
+
const row = db.prepare(`SELECT attr.agent_id AS attribute_agent_id,
|
|
45857
|
+
attr.status AS attribute_status,
|
|
45858
|
+
attr.superseded_by AS attribute_superseded_by,
|
|
45859
|
+
attr.archived_at AS attribute_archived_at,
|
|
45860
|
+
aspect.agent_id AS aspect_agent_id,
|
|
45861
|
+
aspect.status AS aspect_status,
|
|
45862
|
+
aspect.archived_at AS aspect_archived_at,
|
|
45863
|
+
entity.agent_id AS entity_agent_id,
|
|
45864
|
+
entity.status AS entity_status,
|
|
45865
|
+
entity.archived_at AS entity_archived_at,
|
|
45866
|
+
memory.agent_id AS memory_agent_id,
|
|
45867
|
+
memory.is_deleted AS memory_is_deleted,
|
|
45868
|
+
memory.stale_at AS memory_stale_at,
|
|
45869
|
+
memory.superseded_by AS memory_superseded_by
|
|
45870
|
+
FROM entity_attributes attr
|
|
45871
|
+
JOIN entity_aspects aspect ON aspect.id = attr.aspect_id
|
|
45872
|
+
JOIN entities entity ON entity.id = aspect.entity_id
|
|
45873
|
+
LEFT JOIN memories memory ON memory.id = attr.memory_id
|
|
45874
|
+
WHERE attr.id = ?`).get(sourceId);
|
|
45875
|
+
if (row == null || row.attribute_agent_id !== agentId || row.aspect_agent_id !== agentId || row.entity_agent_id !== agentId || row.attribute_status !== "active" || row.attribute_superseded_by !== null || row.attribute_archived_at !== null || row.aspect_status !== "active" || row.aspect_archived_at !== null || row.entity_status !== "active" || row.entity_archived_at !== null || row.memory_agent_id !== null && row.memory_agent_id !== agentId || row.memory_is_deleted !== null && row.memory_is_deleted !== 0 || row.memory_stale_at !== null || row.memory_superseded_by !== null) {
|
|
45876
|
+
throw new Error(`Derived memory provenance semantic premise is not in the authorized agent scope: ${sourceId}`);
|
|
45877
|
+
}
|
|
45878
|
+
}
|
|
45879
|
+
function validateSource(db, agentId, sourceKind, sourceId) {
|
|
45880
|
+
if (sourceKind === SEMANTIC_PREMISE_KIND) {
|
|
45881
|
+
validateSemanticPremise(db, agentId, sourceId);
|
|
45882
|
+
return;
|
|
45883
|
+
}
|
|
45884
|
+
if (!EPISODIC_SOURCE_KINDS.has(sourceKind)) {
|
|
45885
|
+
throw new Error(`Derived memory provenance source kind is not supported: ${sourceKind}`);
|
|
45886
|
+
}
|
|
45887
|
+
}
|
|
45853
45888
|
function required4(value, field) {
|
|
45854
45889
|
const normalized = value.trim();
|
|
45855
45890
|
if (!normalized)
|
|
@@ -45871,6 +45906,7 @@ function linkDerivedMemorySourcesInTx(db, input) {
|
|
|
45871
45906
|
if (seen.has(key))
|
|
45872
45907
|
continue;
|
|
45873
45908
|
seen.add(key);
|
|
45909
|
+
validateSource(db, agentId, sourceKind, sourceId);
|
|
45874
45910
|
insert.run(derivedMemoryId, sourceKind, sourceId, source.sourcePath?.trim() || null, agentId, createdAt);
|
|
45875
45911
|
}
|
|
45876
45912
|
}
|
package/native-manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.200.
|
|
3
|
+
"version": "0.200.9",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "832d4413ea16eeec08ace3c5cf8a25fca92c13da100af53f8763170b91fc2f3b",
|
|
9
|
+
"size": 125333920
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
14
|
+
"sha256": "ef17ae1c80d7e8e25d1bbc0ca715846ddd92efcf04c39f7cc23740f1a140940a",
|
|
15
15
|
"size": 130304576
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "adceb55c528718ccec1bfb38eb648fde61b94a2dc24678330a342feb3c855c17",
|
|
21
|
+
"size": 169872059
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "58d26635707ae1c156f4c18868537820dedf41d85e3845aec151adde291edb09",
|
|
27
|
+
"size": 172246641
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "e0d3aebd4b2afbbf1a919a002f6039412dbde9f2e4139bdc223692d0ff7c7cbe",
|
|
33
|
+
"size": 180372992
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"components": {
|
|
37
37
|
"connectors": {
|
|
38
|
-
"url": "signet-connectors-0.200.
|
|
39
|
-
"sha256": "
|
|
40
|
-
"size":
|
|
38
|
+
"url": "signet-connectors-0.200.9.tar.gz",
|
|
39
|
+
"sha256": "8471034569ab0f0cd4d7b498fd0dbf5c5039451dfe737dbc782e239f48aac905",
|
|
40
|
+
"size": 21947
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signetai",
|
|
3
|
-
"version": "0.200.
|
|
3
|
+
"version": "0.200.9",
|
|
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.200.
|
|
69
|
-
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
70
|
-
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
71
|
-
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
72
|
-
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.
|
|
68
|
+
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.9/signetai-darwin-arm64-0.200.9.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.9/signetai-darwin-x64-0.200.9.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.9/signetai-linux-arm64-0.200.9.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.9/signetai-linux-x64-0.200.9.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.200.9/signetai-win32-x64-0.200.9.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|