@signetai/connector-base 0.194.0 → 0.195.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/index.js +40 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11110,6 +11110,40 @@ function up125(db) {
|
|
|
11110
11110
|
scannedAt
|
|
11111
11111
|
});
|
|
11112
11112
|
}
|
|
11113
|
+
function up126(db) {
|
|
11114
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
11115
|
+
if (!table)
|
|
11116
|
+
return;
|
|
11117
|
+
if (table.sql?.includes("'surprisal'"))
|
|
11118
|
+
return;
|
|
11119
|
+
db.exec(`
|
|
11120
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
11121
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
11122
|
+
CREATE TABLE dreaming_attention (
|
|
11123
|
+
id TEXT PRIMARY KEY,
|
|
11124
|
+
agent_id TEXT NOT NULL,
|
|
11125
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
11126
|
+
subject_ref TEXT NOT NULL,
|
|
11127
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
11128
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
11129
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
11130
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
11131
|
+
resolved_at TEXT,
|
|
11132
|
+
resolved_by_pass_id TEXT,
|
|
11133
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
11134
|
+
);
|
|
11135
|
+
INSERT INTO dreaming_attention (
|
|
11136
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11137
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11138
|
+
)
|
|
11139
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11140
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11141
|
+
FROM dreaming_attention_legacy_126;
|
|
11142
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
11143
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
11144
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
11145
|
+
`);
|
|
11146
|
+
}
|
|
11113
11147
|
var MIGRATIONS = [
|
|
11114
11148
|
{
|
|
11115
11149
|
version: 1,
|
|
@@ -12124,6 +12158,12 @@ var MIGRATIONS = [
|
|
|
12124
12158
|
name: "memory-content-safety",
|
|
12125
12159
|
up: up125,
|
|
12126
12160
|
artifacts: { tables: ["memory_content_safety"] }
|
|
12161
|
+
},
|
|
12162
|
+
{
|
|
12163
|
+
version: 126,
|
|
12164
|
+
name: "dreaming-surprisal-attention",
|
|
12165
|
+
up: up126,
|
|
12166
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
12127
12167
|
}
|
|
12128
12168
|
];
|
|
12129
12169
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.195.0",
|
|
4
4
|
"description": "Base class for Signet harness connectors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@signetai/core": "0.
|
|
29
|
+
"@signetai/core": "0.195.0",
|
|
30
30
|
"json5": "^2.2.3",
|
|
31
31
|
"jsonc-parser": "3.3.1"
|
|
32
32
|
},
|