signetai 0.76.0 → 0.76.2
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/dashboard/_app/immutable/chunks/{CakBuH19.js → -ydU3S0W.js} +2 -2
- package/dashboard/_app/immutable/chunks/{B8RkrkP2.js → 2qxbHgg1.js} +1 -1
- package/dashboard/_app/immutable/chunks/{BmlXCwyO.js → 8nrtA0zd.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CAselS2a.js → B5W7510b.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DBfNNVC5.js → BDcs_M6s.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DXF7ZgZf.js → BElIJ3Kf.js} +1 -1
- package/dashboard/_app/immutable/chunks/{0clLSmnW.js → BKfpN7PE.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DmznbP6q.js → BLh6ioff.js} +1 -1
- package/dashboard/_app/immutable/chunks/{Dmq7121K.js → BOHGk1OV.js} +1 -1
- package/dashboard/_app/immutable/chunks/{wZE3jJFf.js → BP5pB_4J.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CYfL1h3k.js → BYvo794c.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CHRUdggZ.js → BdHyJqGB.js} +1 -1
- package/dashboard/_app/immutable/chunks/{BOyo_MI2.js → By3PQYMF.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CXYsM7jF.js → BzUtPINm.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DohRBaT0.js → C75ZSdM-.js} +1 -1
- package/dashboard/_app/immutable/chunks/{3zVBfrdZ.js → C98luRCe.js} +1 -1
- package/dashboard/_app/immutable/chunks/{ByjLSowq.js → CCSu9jUH.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CGuKwt_O.js → CFACHz8i.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DJIs9bhB.js → Capd-dh_.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DP4CvwXd.js → Caz0IrWj.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CziNCBQn.js → ChQ3ksMI.js} +1 -1
- package/dashboard/_app/immutable/chunks/{cZYS1l8j.js → CmdYSzCo.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DxXJeUTe.js → Cp9mJUhc.js} +1 -1
- package/dashboard/_app/immutable/chunks/{xhBU3KSt.js → CqHzdttG.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DpKVa2Sd.js → CzquSCtU.js} +1 -1
- package/dashboard/_app/immutable/chunks/{C2ZZbuiG.js → D1VevHah.js} +1 -1
- package/dashboard/_app/immutable/chunks/{Dd59PHvt.js → D39I8Kpo.js} +1 -1
- package/dashboard/_app/immutable/chunks/{BGoUmRC5.js → D4ZKI8sQ.js} +1 -1
- package/dashboard/_app/immutable/chunks/{BadoTVvL.js → D6tO5xog.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CXEXZMc1.js → DCDg9aJi.js} +1 -1
- package/dashboard/_app/immutable/chunks/{BbCiCc-S.js → DEDikSfY.js} +1 -1
- package/dashboard/_app/immutable/chunks/{D9mN4pgD.js → DYNcCNDa.js} +1 -1
- package/dashboard/_app/immutable/chunks/{D7iVIHZZ.js → Dow0u8lU.js} +1 -1
- package/dashboard/_app/immutable/chunks/{C66QHYsa.js → DqMv6jRy.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CXy0jFjr.js → DsdHoWhT.js} +1 -1
- package/dashboard/_app/immutable/chunks/{D6cd2usj.js → Dvvx8CpC.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DN6yGQLc.js → ICu-dBhN.js} +1 -1
- package/dashboard/_app/immutable/chunks/{XP9JsOOK.js → LiAmxJht.js} +1 -1
- package/dashboard/_app/immutable/chunks/{Cn9W5J_c.js → Qh-JRpbV.js} +3 -3
- package/dashboard/_app/immutable/chunks/{CIz1qIuR.js → RcjZ1fY0.js} +1 -1
- package/dashboard/_app/immutable/chunks/{B2jsalUy.js → TXcYSJIm.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CGOrOrWU.js → biLDNB_b.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DmAxos8M.js → gg_5z2Ho.js} +1 -1
- package/dashboard/_app/immutable/chunks/{BnoQwUby.js → mJLIP9eP.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CkKq6V9e.js → qq4IREUq.js} +1 -1
- package/dashboard/_app/immutable/chunks/{DtX_cpUj.js → qs_LfVZn.js} +1 -1
- package/dashboard/_app/immutable/chunks/{CoHp4Bdn.js → yOeyy5Xx.js} +1 -1
- package/dashboard/_app/immutable/entry/{app.Bjn677nV.js → app.-TPxKopm.js} +2 -2
- package/dashboard/_app/immutable/entry/start.CPwgBC1f.js +1 -0
- package/dashboard/_app/immutable/nodes/{1.CtzhdM1P.js → 1.BAoX-kqh.js} +1 -1
- package/dashboard/_app/immutable/nodes/2.D_L1UeKt.js +1 -0
- package/dashboard/_app/version.json +1 -1
- package/dashboard/index.html +6 -6
- package/dist/daemon.js +16 -9
- package/package.json +1 -1
- package/dashboard/_app/immutable/entry/start.Cz6XB5Z0.js +0 -1
- package/dashboard/_app/immutable/nodes/2.Cp4fGHP3.js +0 -1
package/dist/daemon.js
CHANGED
|
@@ -14715,8 +14715,8 @@ function txIngestEnvelope(db, mem) {
|
|
|
14715
14715
|
(id, content, normalized_content, content_hash, who, why, project,
|
|
14716
14716
|
importance, type, tags, pinned, is_deleted, extraction_status,
|
|
14717
14717
|
embedding_model, extraction_model, created_at, updated_at, updated_by,
|
|
14718
|
-
source_type, source_id, scope)
|
|
14719
|
-
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(mem.id, mem.content, mem.normalizedContent ?? mem.content, mem.contentHash, mem.who, mem.why, mem.project, mem.importance, mem.type, mem.tags, mem.pinned, mem.isDeleted ?? 0, mem.extractionStatus ?? "none", mem.embeddingModel ?? null, mem.extractionModel ?? null, mem.createdAt, mem.createdAt, mem.updatedBy ?? mem.who, mem.sourceType, mem.sourceId, mem.scope ?? null);
|
|
14718
|
+
source_type, source_id, scope, agent_id, visibility)
|
|
14719
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(mem.id, mem.content, mem.normalizedContent ?? mem.content, mem.contentHash, mem.who, mem.why, mem.project, mem.importance, mem.type, mem.tags, mem.pinned, mem.isDeleted ?? 0, mem.extractionStatus ?? "none", mem.embeddingModel ?? null, mem.extractionModel ?? null, mem.createdAt, mem.createdAt, mem.updatedBy ?? mem.who, mem.sourceType, mem.sourceId, mem.scope ?? null, mem.agentId ?? "default", mem.visibility ?? "global");
|
|
14720
14720
|
return mem.id;
|
|
14721
14721
|
}
|
|
14722
14722
|
function txModifyMemory(db, input) {
|
|
@@ -27707,12 +27707,13 @@ async function hybridRecall(params, cfg2, embedFn2) {
|
|
|
27707
27707
|
if (topIds.length === 0) {
|
|
27708
27708
|
return { results: [], query, method: "hybrid" };
|
|
27709
27709
|
}
|
|
27710
|
-
const scopeClause = params.scope !== undefined ? params.scope === null ? " AND scope IS NULL" : " AND scope = ?" : " AND scope IS NULL";
|
|
27710
|
+
const scopeClause = params.scope !== undefined ? params.scope === null ? " AND m.scope IS NULL" : " AND m.scope = ?" : " AND m.scope IS NULL";
|
|
27711
27711
|
const scopeArgs = params.scope !== undefined && params.scope !== null ? [params.scope] : [];
|
|
27712
|
+
const agentScope = params.agentId && params.readPolicy ? buildAgentScopeClause(params.agentId, params.readPolicy, params.policyGroup ?? null) : { sql: "", args: [] };
|
|
27712
27713
|
const placeholders = topIds.map(() => "?").join(", ");
|
|
27713
|
-
const rows = getDbAccessor().withReadDb((db) => db.prepare(`SELECT id, content, source_id, type, tags, pinned, importance, who, project, created_at
|
|
27714
|
-
FROM memories
|
|
27715
|
-
WHERE id IN (${placeholders})${scopeClause}`).all(...topIds, ...scopeArgs));
|
|
27714
|
+
const rows = getDbAccessor().withReadDb((db) => db.prepare(`SELECT m.id, m.content, m.source_id, m.type, m.tags, m.pinned, m.importance, m.who, m.project, m.created_at
|
|
27715
|
+
FROM memories m
|
|
27716
|
+
WHERE m.id IN (${placeholders})${scopeClause}${agentScope.sql}`).all(...topIds, ...scopeArgs, ...agentScope.args));
|
|
27716
27717
|
try {
|
|
27717
27718
|
getDbAccessor().withWriteTx((db) => {
|
|
27718
27719
|
db.prepare(`UPDATE memories
|
|
@@ -27762,8 +27763,8 @@ async function hybridRecall(params, cfg2, embedFn2) {
|
|
|
27762
27763
|
WHERE mem.entity_id IN (${ePlaceholders})
|
|
27763
27764
|
AND m.type = 'rationale'
|
|
27764
27765
|
AND m.is_deleted = 0
|
|
27765
|
-
${scopeClause}
|
|
27766
|
-
LIMIT 10`).all(...eIds, ...scopeArgs);
|
|
27766
|
+
${scopeClause}${agentScope.sql}
|
|
27767
|
+
LIMIT 10`).all(...eIds, ...scopeArgs, ...agentScope.args);
|
|
27767
27768
|
});
|
|
27768
27769
|
for (const r2 of supplementary) {
|
|
27769
27770
|
if (existingIds.has(r2.id))
|
|
@@ -109986,6 +109987,8 @@ var init_daemon = __esm(() => {
|
|
|
109986
109987
|
if (!raw2)
|
|
109987
109988
|
return c2.json({ error: "content is required" }, 400);
|
|
109988
109989
|
const scope = body.scope ?? null;
|
|
109990
|
+
const agentId = resolveAgentId({ agentId: body.agentId, sessionKey: c2.req.header("x-signet-session-key") });
|
|
109991
|
+
const visibility = body.visibility === "private" ? "private" : "global";
|
|
109989
109992
|
const hasBodyTags = Object.prototype.hasOwnProperty.call(body, "tags");
|
|
109990
109993
|
const bodyTags = hasBodyTags ? parseTagsMutation(body.tags) : undefined;
|
|
109991
109994
|
if (hasBodyTags && bodyTags === undefined) {
|
|
@@ -110018,7 +110021,7 @@ var init_daemon = __esm(() => {
|
|
|
110018
110021
|
getDbAccessor().withWriteTx((db) => {
|
|
110019
110022
|
db.prepare(`INSERT INTO entities
|
|
110020
110023
|
(id, name, canonical_name, entity_type, agent_id, mentions, created_at, updated_at)
|
|
110021
|
-
VALUES (?, ?, ?, 'chunk_group',
|
|
110024
|
+
VALUES (?, ?, ?, 'chunk_group', ?, 0, ?, ?)`).run(groupId, `chunk-group:${groupId}`, `chunk-group:${groupId}`, agentId, now5, now5);
|
|
110022
110025
|
});
|
|
110023
110026
|
} catch (e) {
|
|
110024
110027
|
logger.error("memory", "Failed to create chunk group entity", e);
|
|
@@ -110056,6 +110059,8 @@ var init_daemon = __esm(() => {
|
|
|
110056
110059
|
sourceType: "chunk",
|
|
110057
110060
|
sourceId: groupId,
|
|
110058
110061
|
scope,
|
|
110062
|
+
agentId,
|
|
110063
|
+
visibility,
|
|
110059
110064
|
createdAt: now5
|
|
110060
110065
|
});
|
|
110061
110066
|
db.prepare(`INSERT OR IGNORE INTO memory_entity_mentions
|
|
@@ -110184,6 +110189,8 @@ var init_daemon = __esm(() => {
|
|
|
110184
110189
|
sourceType,
|
|
110185
110190
|
sourceId,
|
|
110186
110191
|
scope,
|
|
110192
|
+
agentId,
|
|
110193
|
+
visibility,
|
|
110187
110194
|
createdAt: now4
|
|
110188
110195
|
});
|
|
110189
110196
|
return { deduped: false };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as o,a as r}from"../chunks/D7iVIHZZ.js";export{o as load_css,r as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bg as e,bh as n}from"../chunks/Cn9W5J_c.js";export{e as component,n as universal};
|