signetai 0.214.4 → 0.214.7
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 +79 -20
- package/native-manifest.json +13 -13
- package/package.json +6 -6
package/dist/mcp-stdio.js
CHANGED
|
@@ -15207,6 +15207,41 @@ function up142(db) {
|
|
|
15207
15207
|
db.exec("ALTER TABLE source_sync_checkpoints ADD COLUMN frontier TEXT");
|
|
15208
15208
|
}
|
|
15209
15209
|
}
|
|
15210
|
+
function up143(db) {
|
|
15211
|
+
const columns = new Set(db.prepare("PRAGMA table_info(embedding_index_state)").all().map((row) => row.name).filter((name) => typeof name === "string"));
|
|
15212
|
+
const additions = [
|
|
15213
|
+
["migration_phase", "TEXT"],
|
|
15214
|
+
["progress_staged", "INTEGER NOT NULL DEFAULT 0"],
|
|
15215
|
+
["progress_total", "INTEGER NOT NULL DEFAULT 0"],
|
|
15216
|
+
["projection_cursor_last_id", "TEXT"],
|
|
15217
|
+
["projection_cursor_slot", "TEXT"],
|
|
15218
|
+
["no_progress_ticks", "INTEGER NOT NULL DEFAULT 0"],
|
|
15219
|
+
["provider_endpoint", "TEXT"]
|
|
15220
|
+
];
|
|
15221
|
+
for (const [name, definition] of additions) {
|
|
15222
|
+
if (!columns.has(name))
|
|
15223
|
+
db.exec(`ALTER TABLE embedding_index_state ADD COLUMN ${name} ${definition}`);
|
|
15224
|
+
}
|
|
15225
|
+
db.exec(`
|
|
15226
|
+
UPDATE embedding_index_state
|
|
15227
|
+
SET provider_endpoint = COALESCE(
|
|
15228
|
+
provider_endpoint,
|
|
15229
|
+
json_extract(active_profile_json, '$.baseUrl')
|
|
15230
|
+
)
|
|
15231
|
+
WHERE id = 1
|
|
15232
|
+
`);
|
|
15233
|
+
const hasEmbeddings = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings'").get() != null;
|
|
15234
|
+
const hasStaging = db.prepare("SELECT 1 AS present FROM sqlite_master WHERE type = 'table' AND name = 'embeddings_staging'").get() != null;
|
|
15235
|
+
if (hasEmbeddings && hasStaging) {
|
|
15236
|
+
db.exec(`
|
|
15237
|
+
UPDATE embedding_index_state
|
|
15238
|
+
SET migration_phase = COALESCE(migration_phase, CASE WHEN state = 'building' THEN 'staging' END),
|
|
15239
|
+
progress_staged = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings_staging) ELSE progress_staged END,
|
|
15240
|
+
progress_total = CASE WHEN state = 'building' THEN (SELECT COUNT(*) FROM embeddings) ELSE progress_total END
|
|
15241
|
+
WHERE state = 'building'
|
|
15242
|
+
`);
|
|
15243
|
+
}
|
|
15244
|
+
}
|
|
15210
15245
|
function resolveDefaultBasePath() {
|
|
15211
15246
|
return process.env.SIGNET_PATH || join2(homedir2(), ".agents");
|
|
15212
15247
|
}
|
|
@@ -24550,6 +24585,22 @@ ${end.comment}` : end.comment;
|
|
|
24550
24585
|
name: "source-sync-frontier",
|
|
24551
24586
|
up: up142,
|
|
24552
24587
|
artifacts: { columns: [{ table: "source_sync_checkpoints", column: "frontier" }] }
|
|
24588
|
+
},
|
|
24589
|
+
{
|
|
24590
|
+
version: 143,
|
|
24591
|
+
name: "embedding-index-progress",
|
|
24592
|
+
up: up143,
|
|
24593
|
+
artifacts: {
|
|
24594
|
+
columns: [
|
|
24595
|
+
{ table: "embedding_index_state", column: "migration_phase" },
|
|
24596
|
+
{ table: "embedding_index_state", column: "progress_staged" },
|
|
24597
|
+
{ table: "embedding_index_state", column: "progress_total" },
|
|
24598
|
+
{ table: "embedding_index_state", column: "projection_cursor_last_id" },
|
|
24599
|
+
{ table: "embedding_index_state", column: "projection_cursor_slot" },
|
|
24600
|
+
{ table: "embedding_index_state", column: "no_progress_ticks" },
|
|
24601
|
+
{ table: "embedding_index_state", column: "provider_endpoint" }
|
|
24602
|
+
]
|
|
24603
|
+
}
|
|
24553
24604
|
}
|
|
24554
24605
|
];
|
|
24555
24606
|
LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -50977,7 +51028,7 @@ async function getEntityDependencyById(accessor2, params) {
|
|
|
50977
51028
|
return await accessor2.withReadDbAsync(async (db) => {
|
|
50978
51029
|
const row = db.prepare("SELECT * FROM entity_dependencies WHERE id = ? AND agent_id = ?").get(params.id, params.agentId);
|
|
50979
51030
|
return row === undefined ? null : rowToDependency(row);
|
|
50980
|
-
});
|
|
51031
|
+
}, { siteToken: "knowledge-graph.ts:269" });
|
|
50981
51032
|
}
|
|
50982
51033
|
function resolveAspectByName(db, params) {
|
|
50983
51034
|
const canonical = toCanonicalName(params.aspect);
|
|
@@ -51074,7 +51125,7 @@ async function listEntityAttributesByPath(accessor2, params) {
|
|
|
51074
51125
|
aspect,
|
|
51075
51126
|
items: rows.map(rowToAttribute)
|
|
51076
51127
|
};
|
|
51077
|
-
});
|
|
51128
|
+
}, { siteToken: "knowledge-graph.ts:1138" });
|
|
51078
51129
|
}
|
|
51079
51130
|
async function listKnowledgeEntities(accessor2, params) {
|
|
51080
51131
|
return await accessor2.withReadDbAsync(async (db) => {
|
|
@@ -51143,7 +51194,7 @@ async function listKnowledgeEntities(accessor2, params) {
|
|
|
51143
51194
|
constraintCount: Number(row.constraint_count ?? 0),
|
|
51144
51195
|
dependencyCount: Number(row.dependency_count ?? 0)
|
|
51145
51196
|
}));
|
|
51146
|
-
});
|
|
51197
|
+
}, { siteToken: "knowledge-graph.ts:1202" });
|
|
51147
51198
|
}
|
|
51148
51199
|
async function getKnowledgeEntityDetail(accessor2, entityId, agentId) {
|
|
51149
51200
|
const row = await accessor2.withReadDbAsync((db) => {
|
|
@@ -51193,7 +51244,7 @@ async function getKnowledgeEntityDetail(accessor2, entityId, agentId) {
|
|
|
51193
51244
|
FROM entities e
|
|
51194
51245
|
WHERE e.id = ? AND e.agent_id = ?
|
|
51195
51246
|
AND COALESCE(e.status, 'active') = 'active'`).get(entityId, agentId);
|
|
51196
|
-
});
|
|
51247
|
+
}, { siteToken: "knowledge-graph.ts:1289" });
|
|
51197
51248
|
if (!row)
|
|
51198
51249
|
return null;
|
|
51199
51250
|
const structuralDensity = await getStructuralDensity(accessor2, entityId, agentId);
|
|
@@ -51233,7 +51284,9 @@ function readEntityAspectsWithCounts(db, entityId, agentId) {
|
|
|
51233
51284
|
}));
|
|
51234
51285
|
}
|
|
51235
51286
|
async function getEntityAspectsWithCounts(accessor2, entityId, agentId) {
|
|
51236
|
-
return await accessor2.withReadDbAsync(async (db) => readEntityAspectsWithCounts(db, entityId, agentId)
|
|
51287
|
+
return await accessor2.withReadDbAsync(async (db) => readEntityAspectsWithCounts(db, entityId, agentId), {
|
|
51288
|
+
siteToken: "knowledge-graph.ts:1399"
|
|
51289
|
+
});
|
|
51237
51290
|
}
|
|
51238
51291
|
async function getAttributesForAspectFiltered(accessor2, params) {
|
|
51239
51292
|
return await accessor2.withReadDbAsync(async (db) => {
|
|
@@ -51262,7 +51315,7 @@ async function getAttributesForAspectFiltered(accessor2, params) {
|
|
|
51262
51315
|
ORDER BY ea.importance DESC, ea.created_at DESC
|
|
51263
51316
|
LIMIT ? OFFSET ?`).all(...args, params.limit, params.offset);
|
|
51264
51317
|
return rows.map(rowToAttribute);
|
|
51265
|
-
});
|
|
51318
|
+
}, { siteToken: "knowledge-graph.ts:1416" });
|
|
51266
51319
|
}
|
|
51267
51320
|
async function getEntityDependenciesDetailed(accessor2, params) {
|
|
51268
51321
|
return await accessor2.withReadDbAsync(async (db) => {
|
|
@@ -51300,7 +51353,7 @@ async function getEntityDependenciesDetailed(accessor2, params) {
|
|
|
51300
51353
|
createdAt: row.created_at,
|
|
51301
51354
|
updatedAt: row.updated_at
|
|
51302
51355
|
}));
|
|
51303
|
-
});
|
|
51356
|
+
}, { siteToken: "knowledge-graph.ts:1461" });
|
|
51304
51357
|
}
|
|
51305
51358
|
async function getStructuralDensity(accessor2, entityId, agentId) {
|
|
51306
51359
|
return await accessor2.withReadDbAsync((db) => {
|
|
@@ -51325,7 +51378,7 @@ async function getStructuralDensity(accessor2, entityId, agentId) {
|
|
|
51325
51378
|
constraintCount: constraints.n,
|
|
51326
51379
|
dependencyCount: dependencies2.n
|
|
51327
51380
|
};
|
|
51328
|
-
});
|
|
51381
|
+
}, { siteToken: "knowledge-graph.ts:2276" });
|
|
51329
51382
|
}
|
|
51330
51383
|
|
|
51331
51384
|
// ../../platform/daemon/src/ontology-claim-evidence.ts
|
|
@@ -52190,7 +52243,7 @@ async function getOntologyLinkEvidence(accessor2, params) {
|
|
|
52190
52243
|
const dependency = await getEntityDependencyById(accessor2, params);
|
|
52191
52244
|
if (dependency === null)
|
|
52192
52245
|
throw new OntologyLinkEvidenceError("Link not found", 404);
|
|
52193
|
-
const items = await accessor2.withReadDbAsync(async (db) => linkEvidenceRefs(dependency).map((ref3) => resolveOntologyEvidenceRef(db, params.agentId, ref3)));
|
|
52246
|
+
const items = await accessor2.withReadDbAsync(async (db) => linkEvidenceRefs(dependency).map((ref3) => resolveOntologyEvidenceRef(db, params.agentId, ref3)), { siteToken: "ontology-link-evidence.ts:92" });
|
|
52194
52247
|
return {
|
|
52195
52248
|
dependency,
|
|
52196
52249
|
items,
|
|
@@ -54132,7 +54185,9 @@ async function findDuplicateEntityMerges(accessor2, params) {
|
|
|
54132
54185
|
const canonicalName = canonical(params.name);
|
|
54133
54186
|
if (canonicalName.length === 0)
|
|
54134
54187
|
return [];
|
|
54135
|
-
return await accessor2.withReadDbAsync(async (db) => duplicateMergeCandidates(db, agentId, 1, canonicalName, true)
|
|
54188
|
+
return await accessor2.withReadDbAsync(async (db) => duplicateMergeCandidates(db, agentId, 1, canonicalName, true), {
|
|
54189
|
+
siteToken: "ontology-proposals.ts:2960"
|
|
54190
|
+
});
|
|
54136
54191
|
}
|
|
54137
54192
|
function markAppliedInTx(db, proposal, actor, result) {
|
|
54138
54193
|
const ts = now();
|
|
@@ -54300,9 +54355,13 @@ async function awaitPressureClear(timeoutMs = 30000) {
|
|
|
54300
54355
|
var yieldToEventLoop = () => new Promise((resolve) => setTimeout(resolve, 0));
|
|
54301
54356
|
async function writeBatch(accessor2, processBatch, label, estimatedWorkUnits) {
|
|
54302
54357
|
if (accessor2.withWriteTxAsync) {
|
|
54303
|
-
return accessor2.withWriteTxAsync(processBatch, {
|
|
54358
|
+
return accessor2.withWriteTxAsync(processBatch, {
|
|
54359
|
+
siteToken: "yielding-writes.ts:112",
|
|
54360
|
+
operation: `db.batch.${label}`,
|
|
54361
|
+
estimatedWorkUnits
|
|
54362
|
+
});
|
|
54304
54363
|
}
|
|
54305
|
-
return accessor2.withWriteTx(processBatch, "yielding-writes.ts:
|
|
54364
|
+
return accessor2.withWriteTx(processBatch, "yielding-writes.ts:119");
|
|
54306
54365
|
}
|
|
54307
54366
|
async function runWriteBatches(accessor2, items, processItem, options) {
|
|
54308
54367
|
const maxPerTx = typeof options.maxPerTx === "number" && Number.isFinite(options.maxPerTx) ? Math.max(1, Math.floor(options.maxPerTx)) : 50;
|
|
@@ -55267,7 +55326,7 @@ async function readCuratedMemoryHead(agentId) {
|
|
|
55267
55326
|
const revision = head2?.revision ?? 0;
|
|
55268
55327
|
const pending = db.prepare("SELECT status FROM memory_head_publications WHERE agent_id = ? AND revision = ?").get(agentId, revision);
|
|
55269
55328
|
return { head: head2, entries, pending };
|
|
55270
|
-
});
|
|
55329
|
+
}, { siteToken: "memory-head-curation.ts:31" });
|
|
55271
55330
|
const head = snapshot.head;
|
|
55272
55331
|
const content = typeof head?.content === "string" ? head.content : "";
|
|
55273
55332
|
if (content) {
|
|
@@ -55287,7 +55346,7 @@ async function readCuratedMemoryHead(agentId) {
|
|
|
55287
55346
|
if (snapshot.pending?.status === "pending") {
|
|
55288
55347
|
await getDbAccessor().withWriteTxAsync((writeDb) => {
|
|
55289
55348
|
writeDb.prepare("UPDATE memory_head_publications SET status='completed', completed_at=? WHERE agent_id=? AND revision=?").run(new Date().toISOString(), agentId, head?.revision ?? 0);
|
|
55290
|
-
});
|
|
55349
|
+
}, { siteToken: "memory-head-curation.ts:64" });
|
|
55291
55350
|
}
|
|
55292
55351
|
}
|
|
55293
55352
|
return {
|
|
@@ -55379,7 +55438,7 @@ async function commitCuratedMemoryHead(input) {
|
|
|
55379
55438
|
hash: contentHash,
|
|
55380
55439
|
changedIds: input.entries.map((entry) => entry.entryId)
|
|
55381
55440
|
};
|
|
55382
|
-
});
|
|
55441
|
+
}, { siteToken: "memory-head-curation.ts:101" });
|
|
55383
55442
|
if (!committed.ok || committed.code !== "COMMITTED" || committed.revision === undefined)
|
|
55384
55443
|
return committed;
|
|
55385
55444
|
const target2 = pathFor(input.agentId);
|
|
@@ -55400,7 +55459,7 @@ async function commitCuratedMemoryHead(input) {
|
|
|
55400
55459
|
try {
|
|
55401
55460
|
await getDbAccessor().withWriteTxAsync((db) => {
|
|
55402
55461
|
db.prepare("UPDATE memory_head_publications SET status='completed', completed_at=? WHERE agent_id=? AND revision=?").run(new Date().toISOString(), input.agentId, committed.revision);
|
|
55403
|
-
});
|
|
55462
|
+
}, { siteToken: "memory-head-curation.ts:230" });
|
|
55404
55463
|
} catch (error51) {
|
|
55405
55464
|
return {
|
|
55406
55465
|
...committed,
|
|
@@ -55531,7 +55590,7 @@ async function curateMemoryHead(input) {
|
|
|
55531
55590
|
if (manifestUpdate.changes !== 1)
|
|
55532
55591
|
throw new Error("Dreaming pass manifest row is missing");
|
|
55533
55592
|
writeProjection(projected.file, input.agentId);
|
|
55534
|
-
});
|
|
55593
|
+
}, { siteToken: "memory-head.ts:310" });
|
|
55535
55594
|
} catch (error51) {
|
|
55536
55595
|
try {
|
|
55537
55596
|
if (previous === undefined) {
|
|
@@ -55582,7 +55641,7 @@ async function filterDreamingAttributes(accessor2, agentId, attributes) {
|
|
|
55582
55641
|
});
|
|
55583
55642
|
}
|
|
55584
55643
|
return scanMemoryContent(attribute.content).contextEligible;
|
|
55585
|
-
}));
|
|
55644
|
+
}), { siteToken: "pipeline/dreaming-capabilities.ts:62" });
|
|
55586
55645
|
}
|
|
55587
55646
|
function readEvidenceWatermark(db, agentId) {
|
|
55588
55647
|
try {
|
|
@@ -55881,7 +55940,7 @@ function createDreamingCapabilities(params) {
|
|
|
55881
55940
|
return fragment === null ? [] : [fragment];
|
|
55882
55941
|
}) : projectEvidence(sources, query ?? "");
|
|
55883
55942
|
return { ok: true, items };
|
|
55884
|
-
})),
|
|
55943
|
+
}, { siteToken: "pipeline/dreaming-capabilities.ts:566" })),
|
|
55885
55944
|
capability("validate_proposal", "Validate proposal", "Run the daemon's deterministic pre-write guards in one pass for one agent scope: entity-label gate, duplicate-entity check, and/or contradiction check against active aspect values.", true, exports_external.object({
|
|
55886
55945
|
agentId: exports_external.string().min(1),
|
|
55887
55946
|
name: exports_external.string().optional(),
|
|
@@ -55964,7 +56023,7 @@ function createDreamingCapabilities(params) {
|
|
|
55964
56023
|
if (kind === "review_due") {
|
|
55965
56024
|
if (status === "resolved")
|
|
55966
56025
|
return { ok: true, items: [] };
|
|
55967
|
-
const due = await accessor2.withReadDbAsync(async (db) => collectReviewDueClaims({ all: (sql, ...params2) => db.prepare(sql).all(...params2) }, new Date, { agentId: scopeId, limit: bounded(limit, scopeId ? 50 : 100, scopeId ? 100 : 200) }));
|
|
56026
|
+
const due = await accessor2.withReadDbAsync(async (db) => collectReviewDueClaims({ all: (sql, ...params2) => db.prepare(sql).all(...params2) }, new Date, { agentId: scopeId, limit: bounded(limit, scopeId ? 50 : 100, scopeId ? 100 : 200) }), { siteToken: "pipeline/dreaming-capabilities.ts:741" });
|
|
55968
56027
|
return {
|
|
55969
56028
|
ok: true,
|
|
55970
56029
|
items: [
|
package/native-manifest.json
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.214.
|
|
3
|
+
"version": "0.214.7",
|
|
4
4
|
"assets": [
|
|
5
5
|
{
|
|
6
6
|
"name": "signet-darwin-arm64",
|
|
7
7
|
"platform": "darwin-arm64",
|
|
8
|
-
"sha256": "
|
|
9
|
-
"size":
|
|
8
|
+
"sha256": "565a03dbf3d6e90dd6a8a1c045ab61550c312ab780c70205f3e30f4733bd5279",
|
|
9
|
+
"size": 163476640
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"name": "signet-darwin-x64",
|
|
13
13
|
"platform": "darwin-x64",
|
|
14
|
-
"sha256": "
|
|
15
|
-
"size":
|
|
14
|
+
"sha256": "c3e6c20ca5457744020c899684c3ed325d6ecb064372010e8a0dffb18d96e92a",
|
|
15
|
+
"size": 168200768
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "signet-linux-arm64",
|
|
19
19
|
"platform": "linux-arm64",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"size":
|
|
20
|
+
"sha256": "4ad9865d05b7595b25d40dd517b6e356a9c17271ed426eacf97cbb193830a877",
|
|
21
|
+
"size": 210762887
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"name": "signet-linux-x64",
|
|
25
25
|
"platform": "linux-x64",
|
|
26
|
-
"sha256": "
|
|
27
|
-
"size":
|
|
26
|
+
"sha256": "eb57a7cfa4c2b479d2b8bb879a0ed77ed6b94f22c4e44a41d64867a4f16df995",
|
|
27
|
+
"size": 213551606
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "signet-win32-x64.exe",
|
|
31
31
|
"platform": "win32-x64",
|
|
32
|
-
"sha256": "
|
|
33
|
-
"size":
|
|
32
|
+
"sha256": "72dbf600b6700fee4da7922bcf3f06d18c2ef35ee8588f710cb45e27d438d3bc",
|
|
33
|
+
"size": 220036608
|
|
34
34
|
}
|
|
35
35
|
],
|
|
36
36
|
"components": {
|
|
37
37
|
"connectors": {
|
|
38
|
-
"url": "signet-connectors-0.214.
|
|
39
|
-
"sha256": "
|
|
38
|
+
"url": "signet-connectors-0.214.7.tar.gz",
|
|
39
|
+
"sha256": "f257e03a76ee29bc81ed493540f041ab14139d0e6724c01fa21896f9478d049e",
|
|
40
40
|
"size": 21943
|
|
41
41
|
}
|
|
42
42
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "signetai",
|
|
3
|
-
"version": "0.214.
|
|
3
|
+
"version": "0.214.7",
|
|
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.214.
|
|
69
|
-
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.
|
|
70
|
-
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.
|
|
71
|
-
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.
|
|
72
|
-
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.
|
|
68
|
+
"signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.7/signetai-darwin-arm64-0.214.7.tgz",
|
|
69
|
+
"signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.7/signetai-darwin-x64-0.214.7.tgz",
|
|
70
|
+
"signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.7/signetai-linux-arm64-0.214.7.tgz",
|
|
71
|
+
"signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.7/signetai-linux-x64-0.214.7.tgz",
|
|
72
|
+
"signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.214.7/signetai-win32-x64-0.214.7.tgz"
|
|
73
73
|
}
|
|
74
74
|
}
|