signetai 0.197.7 → 0.197.8
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 +65 -8
- package/native-manifest.json +14 -14
- package/package.json +6 -6
package/dist/mcp-stdio.js
CHANGED
|
@@ -40804,6 +40804,58 @@ function up128(db) {
|
|
|
40804
40804
|
AND error IS NOT NULL;
|
|
40805
40805
|
`);
|
|
40806
40806
|
}
|
|
40807
|
+
function tableExists3(db, table) {
|
|
40808
|
+
return db.prepare("SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = ?").get(table) != null;
|
|
40809
|
+
}
|
|
40810
|
+
function up129(db) {
|
|
40811
|
+
if (!tableExists3(db, "memory_jobs"))
|
|
40812
|
+
return;
|
|
40813
|
+
if (!tableExists3(db, "job_cancellations")) {
|
|
40814
|
+
throw new Error("job_cancellations table missing; cannot retire structural jobs without an audit trail");
|
|
40815
|
+
}
|
|
40816
|
+
db.prepare(`
|
|
40817
|
+
INSERT INTO job_cancellations (
|
|
40818
|
+
id, source_table, source_id, status_before, payload_json,
|
|
40819
|
+
reason, actor, actor_type, request_id, created_at
|
|
40820
|
+
)
|
|
40821
|
+
SELECT
|
|
40822
|
+
'retire-structural-jobs-129:' || id,
|
|
40823
|
+
'memory_jobs',
|
|
40824
|
+
id,
|
|
40825
|
+
status,
|
|
40826
|
+
json_object(
|
|
40827
|
+
'id', id,
|
|
40828
|
+
'memory_id', memory_id,
|
|
40829
|
+
'document_id', document_id,
|
|
40830
|
+
'job_type', job_type,
|
|
40831
|
+
'status', status,
|
|
40832
|
+
'payload', payload,
|
|
40833
|
+
'result', result,
|
|
40834
|
+
'attempts', attempts,
|
|
40835
|
+
'max_attempts', max_attempts,
|
|
40836
|
+
'leased_at', leased_at,
|
|
40837
|
+
'completed_at', completed_at,
|
|
40838
|
+
'failed_at', failed_at,
|
|
40839
|
+
'error', error,
|
|
40840
|
+
'created_at', created_at,
|
|
40841
|
+
'updated_at', updated_at
|
|
40842
|
+
),
|
|
40843
|
+
'retired structural queue after Dreaming cutover',
|
|
40844
|
+
'migration:129',
|
|
40845
|
+
'system',
|
|
40846
|
+
NULL,
|
|
40847
|
+
strftime('%Y-%m-%dT%H:%M:%fZ', 'now')
|
|
40848
|
+
FROM memory_jobs
|
|
40849
|
+
WHERE job_type IN ('structural_classify', 'structural_dependency')
|
|
40850
|
+
AND status IN ('pending', 'leased');
|
|
40851
|
+
`).run();
|
|
40852
|
+
db.exec(`
|
|
40853
|
+
UPDATE memory_jobs
|
|
40854
|
+
SET status = 'cancelled', updated_at = strftime('%Y-%m-%dT%H:%M:%fZ', 'now')
|
|
40855
|
+
WHERE job_type IN ('structural_classify', 'structural_dependency')
|
|
40856
|
+
AND status IN ('pending', 'leased');
|
|
40857
|
+
`);
|
|
40858
|
+
}
|
|
40807
40859
|
var MIGRATIONS = [
|
|
40808
40860
|
{
|
|
40809
40861
|
version: 1,
|
|
@@ -41835,6 +41887,11 @@ var MIGRATIONS = [
|
|
|
41835
41887
|
version: 128,
|
|
41836
41888
|
name: "bounded-queue-diagnostics",
|
|
41837
41889
|
up: up128
|
|
41890
|
+
},
|
|
41891
|
+
{
|
|
41892
|
+
version: 129,
|
|
41893
|
+
name: "retire-structural-jobs",
|
|
41894
|
+
up: up129
|
|
41838
41895
|
}
|
|
41839
41896
|
];
|
|
41840
41897
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -43023,13 +43080,13 @@ try {
|
|
|
43023
43080
|
const esmRequire = createRequire5(import.meta.url);
|
|
43024
43081
|
native2 = esmRequire("@signet/native");
|
|
43025
43082
|
} catch {}
|
|
43026
|
-
function
|
|
43083
|
+
function tableExists4(db, name) {
|
|
43027
43084
|
return db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = ?").get(name) != null;
|
|
43028
43085
|
}
|
|
43029
43086
|
|
|
43030
43087
|
// ../../platform/daemon/src/memory-content-safety.ts
|
|
43031
43088
|
function memoryContentSafetyTableExists(db) {
|
|
43032
|
-
return
|
|
43089
|
+
return tableExists4(db, "memory_content_safety");
|
|
43033
43090
|
}
|
|
43034
43091
|
function upsertMemoryContentSafetyInTx(db, input) {
|
|
43035
43092
|
const sourceId = input.sourceId.trim();
|
|
@@ -44677,7 +44734,7 @@ function uniqueOntologyEvidenceRefs(refs) {
|
|
|
44677
44734
|
}
|
|
44678
44735
|
function readSessionTranscriptEvidence(db, agentId, ref3) {
|
|
44679
44736
|
const ids = sourceIdCandidates2(ref3.sourceId);
|
|
44680
|
-
if (ids.length === 0 || !
|
|
44737
|
+
if (ids.length === 0 || !tableExists4(db, "session_transcripts"))
|
|
44681
44738
|
return null;
|
|
44682
44739
|
const placeholders = ids.map(() => "?").join(", ");
|
|
44683
44740
|
const seenExpr = columnExists(db, "session_transcripts", "updated_at") ? "COALESCE(updated_at, created_at)" : "created_at";
|
|
@@ -44694,7 +44751,7 @@ function readSessionTranscriptEvidence(db, agentId, ref3) {
|
|
|
44694
44751
|
}) ? row : null;
|
|
44695
44752
|
}
|
|
44696
44753
|
function readOntologyProposalEvidence(db, agentId, ref3) {
|
|
44697
|
-
if (!
|
|
44754
|
+
if (!tableExists4(db, "ontology_proposals"))
|
|
44698
44755
|
return null;
|
|
44699
44756
|
const proposalId = ref3.sourceKind === "ontology_proposal" ? ref3.sourceId : null;
|
|
44700
44757
|
if (proposalId === null)
|
|
@@ -44713,7 +44770,7 @@ function readOntologyProposalEvidence(db, agentId, ref3) {
|
|
|
44713
44770
|
}) ? row : null;
|
|
44714
44771
|
}
|
|
44715
44772
|
function readMemoryArtifactEvidence(db, agentId, ref3) {
|
|
44716
|
-
if (!
|
|
44773
|
+
if (!tableExists4(db, "memory_artifacts"))
|
|
44717
44774
|
return null;
|
|
44718
44775
|
const ids = sourceIdCandidates2(ref3.sourceId);
|
|
44719
44776
|
const filters = ["agent_id = ?", "COALESCE(is_deleted, 0) = 0"];
|
|
@@ -44745,7 +44802,7 @@ function readMemoryArtifactEvidence(db, agentId, ref3) {
|
|
|
44745
44802
|
}) ? row : null;
|
|
44746
44803
|
}
|
|
44747
44804
|
function readMemoryEvidence(db, agentId, ref3) {
|
|
44748
|
-
if (!ref3.memoryId || !
|
|
44805
|
+
if (!ref3.memoryId || !tableExists4(db, "memories"))
|
|
44749
44806
|
return null;
|
|
44750
44807
|
const row = db.prepare(`SELECT id, source_id, source_type, source_path, content
|
|
44751
44808
|
FROM memories
|
|
@@ -45257,7 +45314,7 @@ function insertOrReactivateContradiction(db, input) {
|
|
|
45257
45314
|
return id;
|
|
45258
45315
|
}
|
|
45259
45316
|
function recordOntologyContradictionsForAttributeInTx(db, input) {
|
|
45260
|
-
if (!
|
|
45317
|
+
if (!tableExists4(db, "ontology_contradictions"))
|
|
45261
45318
|
return [];
|
|
45262
45319
|
const candidate = readClaim(db, input.agentId, input.attributeId);
|
|
45263
45320
|
if (candidate === null || candidate.kind === "constraint")
|
|
@@ -45318,7 +45375,7 @@ function contradictionScopeWhere(params) {
|
|
|
45318
45375
|
return { where, args };
|
|
45319
45376
|
}
|
|
45320
45377
|
function reconcileOntologyContradictionsInTx(db, params) {
|
|
45321
|
-
if (!
|
|
45378
|
+
if (!tableExists4(db, "ontology_contradictions"))
|
|
45322
45379
|
return 0;
|
|
45323
45380
|
const scope = contradictionScopeWhere(params);
|
|
45324
45381
|
const rows = db.prepare(`${CONTRADICTION_SELECT}
|
package/native-manifest.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.197.
|
|
3
|
+
"version": "0.197.8",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "96d87f2a4dcbc8c48a2622f02dfd21ec93902e1091a53d9b07a707216602617c",
|
|
9
|
+
"size": 125086240
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
14
|
+
"sha256": "afc2c69879b06481ba6b8a3705e899a28a2a4d34fd2ac670507da21c3869e5c3",
|
|
15
|
+
"size": 130058816
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "c621654e5edfa9d39cd7fcc8097f60ea8d23af94d7767ddf0cfcc5da1cc3ab6f",
|
|
21
|
+
"size": 169636020
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "1454010fe7481d16321cc68e8c774e97bd270861bb9182cafc6e7efcc89f7695",
|
|
27
|
+
"size": 172010602
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "9d0210e0577d89c8b8bab031d99a405afc58aab05ec53bf322d05640457a926e",
|
|
33
|
+
"size": 180136960
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"components": {
|
|
37
37
|
"connectors": {
|
|
38
|
-
"url": "signet-connectors-0.197.
|
|
39
|
-
"sha256": "
|
|
40
|
-
"size":
|
|
38
|
+
"url": "signet-connectors-0.197.8.tar.gz",
|
|
39
|
+
"sha256": "7d6c541f48dc8e20e522149c0db385a29d117be71e8322312459895baf0553f2",
|
|
40
|
+
"size": 21667
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signetai",
|
|
3
|
-
"version": "0.197.
|
|
3
|
+
"version": "0.197.8",
|
|
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.197.
|
|
69
|
-
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.
|
|
70
|
-
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.
|
|
71
|
-
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.
|
|
72
|
-
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.
|
|
68
|
+
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.8/signetai-darwin-arm64-0.197.8.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.8/signetai-darwin-x64-0.197.8.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.8/signetai-linux-arm64-0.197.8.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.8/signetai-linux-x64-0.197.8.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.197.8/signetai-win32-x64-0.197.8.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|