@signetai/connector-claude-code 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 +84 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11076,6 +11076,40 @@ function up125(db) {
|
|
|
11076
11076
|
scannedAt
|
|
11077
11077
|
});
|
|
11078
11078
|
}
|
|
11079
|
+
function up126(db) {
|
|
11080
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
11081
|
+
if (!table)
|
|
11082
|
+
return;
|
|
11083
|
+
if (table.sql?.includes("'surprisal'"))
|
|
11084
|
+
return;
|
|
11085
|
+
db.exec(`
|
|
11086
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
11087
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
11088
|
+
CREATE TABLE dreaming_attention (
|
|
11089
|
+
id TEXT PRIMARY KEY,
|
|
11090
|
+
agent_id TEXT NOT NULL,
|
|
11091
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
11092
|
+
subject_ref TEXT NOT NULL,
|
|
11093
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
11094
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
11095
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
11096
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
11097
|
+
resolved_at TEXT,
|
|
11098
|
+
resolved_by_pass_id TEXT,
|
|
11099
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
11100
|
+
);
|
|
11101
|
+
INSERT INTO dreaming_attention (
|
|
11102
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11103
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11104
|
+
)
|
|
11105
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
11106
|
+
generation, resolved_at, resolved_by_pass_id
|
|
11107
|
+
FROM dreaming_attention_legacy_126;
|
|
11108
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
11109
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
11110
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
11111
|
+
`);
|
|
11112
|
+
}
|
|
11079
11113
|
var MIGRATIONS = [
|
|
11080
11114
|
{
|
|
11081
11115
|
version: 1,
|
|
@@ -12090,6 +12124,12 @@ var MIGRATIONS = [
|
|
|
12090
12124
|
name: "memory-content-safety",
|
|
12091
12125
|
up: up125,
|
|
12092
12126
|
artifacts: { tables: ["memory_content_safety"] }
|
|
12127
|
+
},
|
|
12128
|
+
{
|
|
12129
|
+
version: 126,
|
|
12130
|
+
name: "dreaming-surprisal-attention",
|
|
12131
|
+
up: up126,
|
|
12132
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
12093
12133
|
}
|
|
12094
12134
|
];
|
|
12095
12135
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -19476,7 +19516,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
19476
19516
|
return true;
|
|
19477
19517
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
19478
19518
|
}
|
|
19479
|
-
function
|
|
19519
|
+
function up127(db) {
|
|
19480
19520
|
db.exec(`
|
|
19481
19521
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
19482
19522
|
version INTEGER PRIMARY KEY,
|
|
@@ -19919,7 +19959,7 @@ function up1110(db) {
|
|
|
19919
19959
|
ON session_scores(session_key);
|
|
19920
19960
|
`);
|
|
19921
19961
|
}
|
|
19922
|
-
function
|
|
19962
|
+
function up128(db) {
|
|
19923
19963
|
db.exec(`
|
|
19924
19964
|
CREATE TABLE IF NOT EXISTS scheduled_tasks (
|
|
19925
19965
|
id TEXT PRIMARY KEY,
|
|
@@ -23492,11 +23532,45 @@ function up1252(db) {
|
|
|
23492
23532
|
scannedAt
|
|
23493
23533
|
});
|
|
23494
23534
|
}
|
|
23535
|
+
function up1262(db) {
|
|
23536
|
+
const table = db.prepare("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'dreaming_attention'").get();
|
|
23537
|
+
if (!table)
|
|
23538
|
+
return;
|
|
23539
|
+
if (table.sql?.includes("'surprisal'"))
|
|
23540
|
+
return;
|
|
23541
|
+
db.exec(`
|
|
23542
|
+
DROP INDEX IF EXISTS idx_dreaming_attention_pending;
|
|
23543
|
+
ALTER TABLE dreaming_attention RENAME TO dreaming_attention_legacy_126;
|
|
23544
|
+
CREATE TABLE dreaming_attention (
|
|
23545
|
+
id TEXT PRIMARY KEY,
|
|
23546
|
+
agent_id TEXT NOT NULL,
|
|
23547
|
+
kind TEXT NOT NULL CHECK (kind IN ('review_due', 'hygiene', 'contested_claim', 'evidence_requeue', 'surprisal')),
|
|
23548
|
+
subject_ref TEXT NOT NULL,
|
|
23549
|
+
details_json TEXT NOT NULL DEFAULT '{}',
|
|
23550
|
+
priority INTEGER NOT NULL DEFAULT 0 CHECK (priority >= 0 AND priority <= 100),
|
|
23551
|
+
created_at TEXT NOT NULL DEFAULT (datetime('now')),
|
|
23552
|
+
generation INTEGER NOT NULL DEFAULT 0,
|
|
23553
|
+
resolved_at TEXT,
|
|
23554
|
+
resolved_by_pass_id TEXT,
|
|
23555
|
+
UNIQUE(agent_id, kind, subject_ref)
|
|
23556
|
+
);
|
|
23557
|
+
INSERT INTO dreaming_attention (
|
|
23558
|
+
id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23559
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23560
|
+
)
|
|
23561
|
+
SELECT id, agent_id, kind, subject_ref, details_json, priority, created_at,
|
|
23562
|
+
generation, resolved_at, resolved_by_pass_id
|
|
23563
|
+
FROM dreaming_attention_legacy_126;
|
|
23564
|
+
DROP TABLE dreaming_attention_legacy_126;
|
|
23565
|
+
CREATE INDEX idx_dreaming_attention_pending
|
|
23566
|
+
ON dreaming_attention (agent_id, resolved_at, priority DESC, created_at ASC);
|
|
23567
|
+
`);
|
|
23568
|
+
}
|
|
23495
23569
|
var MIGRATIONS2 = [
|
|
23496
23570
|
{
|
|
23497
23571
|
version: 1,
|
|
23498
23572
|
name: "baseline",
|
|
23499
|
-
up:
|
|
23573
|
+
up: up127,
|
|
23500
23574
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
23501
23575
|
},
|
|
23502
23576
|
{
|
|
@@ -23568,7 +23642,7 @@ var MIGRATIONS2 = [
|
|
|
23568
23642
|
{
|
|
23569
23643
|
version: 12,
|
|
23570
23644
|
name: "scheduled-tasks",
|
|
23571
|
-
up:
|
|
23645
|
+
up: up128,
|
|
23572
23646
|
artifacts: { tables: ["scheduled_tasks", "task_runs"] }
|
|
23573
23647
|
},
|
|
23574
23648
|
{
|
|
@@ -24506,6 +24580,12 @@ var MIGRATIONS2 = [
|
|
|
24506
24580
|
name: "memory-content-safety",
|
|
24507
24581
|
up: up1252,
|
|
24508
24582
|
artifacts: { tables: ["memory_content_safety"] }
|
|
24583
|
+
},
|
|
24584
|
+
{
|
|
24585
|
+
version: 126,
|
|
24586
|
+
name: "dreaming-surprisal-attention",
|
|
24587
|
+
up: up1262,
|
|
24588
|
+
artifacts: { tables: ["dreaming_attention"] }
|
|
24509
24589
|
}
|
|
24510
24590
|
];
|
|
24511
24591
|
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-claude-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.195.0",
|
|
4
4
|
"description": "Signet connector for Claude Code (Anthropic CLI)",
|
|
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.0",
|
|
28
|
+
"@signetai/core": "0.195.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|