@signetai/connector-forge 0.194.1 → 0.195.1
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 +84 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11091,6 +11091,40 @@ function up125(db) {
|
|
|
11091
11091
|
scannedAt
|
|
11092
11092
|
});
|
|
11093
11093
|
}
|
|
11094
|
+
function up126(db) {
|
|
11095
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
11096
|
+
if (!table)
|
|
11097
|
+
return;
|
|
11098
|
+
if (table.sql?.includes("'surprisal'"))
|
|
11099
|
+
return;
|
|
11100
|
+
db.exec(`
|
|
11101
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
11102
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
11103
|
+
CREATE TABLE dreaming_attention (
|
|
11104
|
+
id TEXT PRIMARY KEY,
|
|
11105
|
+
agent_id TEXT NOT NULL,
|
|
11106
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
11107
|
+
subject_ref TEXT NOT NULL,
|
|
11108
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
11109
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
11110
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
11111
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
11112
|
+
resolved_at TEXT,
|
|
11113
|
+
resolved_by_pass_id TEXT,
|
|
11114
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
11115
|
+
);
|
|
11116
|
+
INSERT INTO dreaming_attention (
|
|
11117
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11118
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11119
|
+
)
|
|
11120
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11121
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11122
|
+
FROM dreaming_attention_legacy_126;
|
|
11123
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
11124
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
11125
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
11126
|
+
`);
|
|
11127
|
+
}
|
|
11094
11128
|
var MIGRATIONS = [
|
|
11095
11129
|
{
|
|
11096
11130
|
version: 1,
|
|
@@ -12105,6 +12139,12 @@ var MIGRATIONS = [
|
|
|
12105
12139
|
name: "memory-content-safety",
|
|
12106
12140
|
up: up125,
|
|
12107
12141
|
artifacts: { tables: ["memory_content_safety"] }
|
|
12142
|
+
},
|
|
12143
|
+
{
|
|
12144
|
+
version: 126,
|
|
12145
|
+
name: "dreaming-surprisal-attention",
|
|
12146
|
+
up: up126,
|
|
12147
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
12108
12148
|
}
|
|
12109
12149
|
];
|
|
12110
12150
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19720,7 +19760,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19720
19760
|
return true;
|
|
19721
19761
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19722
19762
|
}
|
|
19723
|
-
function
|
|
19763
|
+
function up127(db) {
|
|
19724
19764
|
db.exec(`
|
|
19725
19765
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19726
19766
|
version INTEGER PRIMARY KEY,
|
|
@@ -20163,7 +20203,7 @@ function up1110(db) {
|
|
|
20163
20203
|
ON session_scores(session_key);
|
|
20164
20204
|
`);
|
|
20165
20205
|
}
|
|
20166
|
-
function
|
|
20206
|
+
function up128(db) {
|
|
20167
20207
|
db.exec(`
|
|
20168
20208
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
20169
20209
|
id TEXT PRIMARY KEY,
|
|
@@ -23736,11 +23776,45 @@ function up1252(db) {
|
|
|
23736
23776
|
scannedAt
|
|
23737
23777
|
});
|
|
23738
23778
|
}
|
|
23779
|
+
function up1262(db) {
|
|
23780
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
23781
|
+
if (!table)
|
|
23782
|
+
return;
|
|
23783
|
+
if (table.sql?.includes("'surprisal'"))
|
|
23784
|
+
return;
|
|
23785
|
+
db.exec(`
|
|
23786
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
23787
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
23788
|
+
CREATE TABLE dreaming_attention (
|
|
23789
|
+
id TEXT PRIMARY KEY,
|
|
23790
|
+
agent_id TEXT NOT NULL,
|
|
23791
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
23792
|
+
subject_ref TEXT NOT NULL,
|
|
23793
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
23794
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
23795
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
23796
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
23797
|
+
resolved_at TEXT,
|
|
23798
|
+
resolved_by_pass_id TEXT,
|
|
23799
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
23800
|
+
);
|
|
23801
|
+
INSERT INTO dreaming_attention (
|
|
23802
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23803
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23804
|
+
)
|
|
23805
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23806
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23807
|
+
FROM dreaming_attention_legacy_126;
|
|
23808
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
23809
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
23810
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
23811
|
+
`);
|
|
23812
|
+
}
|
|
23739
23813
|
var MIGRATIONS2 = [
|
|
23740
23814
|
{
|
|
23741
23815
|
version: 1,
|
|
23742
23816
|
name: "baseline",
|
|
23743
|
-
up:
|
|
23817
|
+
up: up127,
|
|
23744
23818
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23745
23819
|
},
|
|
23746
23820
|
{
|
|
@@ -23812,7 +23886,7 @@ var MIGRATIONS2 = [
|
|
|
23812
23886
|
{
|
|
23813
23887
|
version: 12,
|
|
23814
23888
|
name: "scheduled-tasks",
|
|
23815
|
-
up:
|
|
23889
|
+
up: up128,
|
|
23816
23890
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
23817
23891
|
},
|
|
23818
23892
|
{
|
|
@@ -24750,6 +24824,12 @@ var MIGRATIONS2 = [
|
|
|
24750
24824
|
name: "memory-content-safety",
|
|
24751
24825
|
up: up1252,
|
|
24752
24826
|
artifacts: { tables: ["memory_content_safety"] }
|
|
24827
|
+
},
|
|
24828
|
+
{
|
|
24829
|
+
version: 126,
|
|
24830
|
+
name: "dreaming-surprisal-attention",
|
|
24831
|
+
up: up1262,
|
|
24832
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
24753
24833
|
}
|
|
24754
24834
|
];
|
|
24755
24835
|
var LATEST_SCHEMA_VERSION2 = MIGRATIONS2[MIGRATIONS2.length - 1]?.version ?? 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.195.1",
|
|
4
4
|
"description": "Signet connector for ForgeCode - installs MCP, identity, and skills integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"typecheck": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@signetai/connector-base": "0.
|
|
28
|
-
"@signetai/core": "0.
|
|
27
|
+
"@signetai/connector-base": "0.195.1",
|
|
28
|
+
"@signetai/core": "0.195.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|