@signetai/connector-claude-code 0.184.1 → 0.185.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 +143 -27
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10498,6 +10498,50 @@ function up115(db) {
|
|
|
10498
10498
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
10499
10499
|
`);
|
|
10500
10500
|
}
|
|
10501
|
+
function hasColumn21(db, table, column) {
|
|
10502
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10503
|
+
}
|
|
10504
|
+
function addColumnIfMissing24(db, column, definition) {
|
|
10505
|
+
if (!hasColumn21(db, "cross_agent_messages", column)) {
|
|
10506
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
10507
|
+
}
|
|
10508
|
+
}
|
|
10509
|
+
function up116(db) {
|
|
10510
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
10511
|
+
if (table == null)
|
|
10512
|
+
return;
|
|
10513
|
+
addColumnIfMissing24(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
10514
|
+
addColumnIfMissing24(db, "delivery_attempt_id", "TEXT");
|
|
10515
|
+
addColumnIfMissing24(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10516
|
+
addColumnIfMissing24(db, "delivery_lease_token", "TEXT");
|
|
10517
|
+
addColumnIfMissing24(db, "delivery_lease_expires_at", "TEXT");
|
|
10518
|
+
addColumnIfMissing24(db, "delivery_attempt_started_at", "TEXT");
|
|
10519
|
+
addColumnIfMissing24(db, "delivery_updated_at", "TEXT");
|
|
10520
|
+
addColumnIfMissing24(db, "acp_base_url", "TEXT");
|
|
10521
|
+
addColumnIfMissing24(db, "acp_target_agent_name", "TEXT");
|
|
10522
|
+
addColumnIfMissing24(db, "acp_timeout_ms", "INTEGER");
|
|
10523
|
+
addColumnIfMissing24(db, "acp_metadata_json", "TEXT");
|
|
10524
|
+
db.exec(`
|
|
10525
|
+
UPDATE cross_agent_messages
|
|
10526
|
+
SET delivery_state = CASE delivery_status
|
|
10527
|
+
WHEN 'delivered' THEN 'delivered'
|
|
10528
|
+
WHEN 'failed' THEN 'failed'
|
|
10529
|
+
ELSE 'pending'
|
|
10530
|
+
END
|
|
10531
|
+
WHERE delivery_state = 'pending';
|
|
10532
|
+
|
|
10533
|
+
UPDATE cross_agent_messages
|
|
10534
|
+
SET delivery_attempt_id = id
|
|
10535
|
+
WHERE delivery_attempt_id IS NULL;
|
|
10536
|
+
|
|
10537
|
+
UPDATE cross_agent_messages
|
|
10538
|
+
SET delivery_updated_at = created_at
|
|
10539
|
+
WHERE delivery_updated_at IS NULL;
|
|
10540
|
+
|
|
10541
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
10542
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
10543
|
+
`);
|
|
10544
|
+
}
|
|
10501
10545
|
var MIGRATIONS = [
|
|
10502
10546
|
{
|
|
10503
10547
|
version: 1,
|
|
@@ -11423,6 +11467,20 @@ var MIGRATIONS = [
|
|
|
11423
11467
|
artifacts: {
|
|
11424
11468
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
11425
11469
|
}
|
|
11470
|
+
},
|
|
11471
|
+
{
|
|
11472
|
+
version: 116,
|
|
11473
|
+
name: "acp-delivery-reconciliation",
|
|
11474
|
+
up: up116,
|
|
11475
|
+
artifacts: {
|
|
11476
|
+
columns: [
|
|
11477
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
11478
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
11479
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
11480
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
11481
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
11482
|
+
]
|
|
11483
|
+
}
|
|
11426
11484
|
}
|
|
11427
11485
|
];
|
|
11428
11486
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18715,7 +18773,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18715
18773
|
return true;
|
|
18716
18774
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18717
18775
|
}
|
|
18718
|
-
function
|
|
18776
|
+
function up117(db) {
|
|
18719
18777
|
db.exec(`
|
|
18720
18778
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18721
18779
|
version INTEGER PRIMARY KEY,
|
|
@@ -18804,31 +18862,31 @@ function up116(db) {
|
|
|
18804
18862
|
} catch {}
|
|
18805
18863
|
createMemoriesFts2(db);
|
|
18806
18864
|
}
|
|
18807
|
-
function
|
|
18865
|
+
function hasColumn22(db, table, column) {
|
|
18808
18866
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18809
18867
|
return rows.some((r) => r.name === column);
|
|
18810
18868
|
}
|
|
18811
|
-
function
|
|
18812
|
-
if (!
|
|
18869
|
+
function addColumnIfMissing25(db, table, column, definition) {
|
|
18870
|
+
if (!hasColumn22(db, table, column)) {
|
|
18813
18871
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18814
18872
|
}
|
|
18815
18873
|
}
|
|
18816
18874
|
function up210(db) {
|
|
18817
|
-
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
|
|
18821
|
-
|
|
18822
|
-
|
|
18823
|
-
|
|
18824
|
-
|
|
18825
|
-
|
|
18826
|
-
|
|
18827
|
-
|
|
18828
|
-
|
|
18829
|
-
|
|
18830
|
-
|
|
18831
|
-
|
|
18875
|
+
addColumnIfMissing25(db, "memories", "content_hash", "TEXT");
|
|
18876
|
+
addColumnIfMissing25(db, "memories", "normalized_content", "TEXT");
|
|
18877
|
+
addColumnIfMissing25(db, "memories", "is_deleted", "INTEGER DEFAULT 0");
|
|
18878
|
+
addColumnIfMissing25(db, "memories", "deleted_at", "TEXT");
|
|
18879
|
+
addColumnIfMissing25(db, "memories", "extraction_status", "TEXT DEFAULT 'none'");
|
|
18880
|
+
addColumnIfMissing25(db, "memories", "embedding_model", "TEXT");
|
|
18881
|
+
addColumnIfMissing25(db, "memories", "extraction_model", "TEXT");
|
|
18882
|
+
addColumnIfMissing25(db, "memories", "update_count", "INTEGER DEFAULT 0");
|
|
18883
|
+
addColumnIfMissing25(db, "memories", "who", "TEXT");
|
|
18884
|
+
addColumnIfMissing25(db, "memories", "why", "TEXT");
|
|
18885
|
+
addColumnIfMissing25(db, "memories", "project", "TEXT");
|
|
18886
|
+
addColumnIfMissing25(db, "memories", "pinned", "INTEGER DEFAULT 0");
|
|
18887
|
+
addColumnIfMissing25(db, "memories", "importance", "REAL DEFAULT 0.5");
|
|
18888
|
+
addColumnIfMissing25(db, "memories", "last_accessed", "TEXT");
|
|
18889
|
+
addColumnIfMissing25(db, "memories", "access_count", "INTEGER DEFAULT 0");
|
|
18832
18890
|
db.exec(`
|
|
18833
18891
|
CREATE TABLE IF NOT EXISTS memory_history (
|
|
18834
18892
|
id TEXT PRIMARY KEY,
|
|
@@ -18924,7 +18982,7 @@ function up210(db) {
|
|
|
18924
18982
|
ON memory_entity_mentions(entity_id);
|
|
18925
18983
|
`);
|
|
18926
18984
|
}
|
|
18927
|
-
function
|
|
18985
|
+
function addColumnIfMissing26(db, table, column, definition) {
|
|
18928
18986
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18929
18987
|
if (rows.some((r) => r.name === column))
|
|
18930
18988
|
return false;
|
|
@@ -18932,8 +18990,8 @@ function addColumnIfMissing25(db, table, column, definition) {
|
|
|
18932
18990
|
return true;
|
|
18933
18991
|
}
|
|
18934
18992
|
function up310(db) {
|
|
18935
|
-
|
|
18936
|
-
|
|
18993
|
+
addColumnIfMissing26(db, "memories", "why", "TEXT");
|
|
18994
|
+
addColumnIfMissing26(db, "memories", "project", "TEXT");
|
|
18937
18995
|
db.exec(`DROP INDEX IF EXISTS idx_memories_content_hash`);
|
|
18938
18996
|
db.exec(`
|
|
18939
18997
|
UPDATE memories
|
|
@@ -18959,12 +19017,12 @@ function up310(db) {
|
|
|
18959
19017
|
WHERE content_hash IS NOT NULL AND is_deleted = 0
|
|
18960
19018
|
`);
|
|
18961
19019
|
}
|
|
18962
|
-
function
|
|
19020
|
+
function hasColumn23(db, table, column) {
|
|
18963
19021
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18964
19022
|
return rows.some((r) => r.name === column);
|
|
18965
19023
|
}
|
|
18966
19024
|
function addColumnIfMissing32(db, table, column, definition) {
|
|
18967
|
-
if (!
|
|
19025
|
+
if (!hasColumn23(db, table, column)) {
|
|
18968
19026
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18969
19027
|
}
|
|
18970
19028
|
}
|
|
@@ -19138,7 +19196,7 @@ function up1010(db) {
|
|
|
19138
19196
|
)
|
|
19139
19197
|
`);
|
|
19140
19198
|
}
|
|
19141
|
-
function
|
|
19199
|
+
function up118(db) {
|
|
19142
19200
|
db.exec(`
|
|
19143
19201
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
19144
19202
|
id TEXT PRIMARY KEY,
|
|
@@ -22247,11 +22305,55 @@ function up1152(db) {
|
|
|
22247
22305
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
22248
22306
|
`);
|
|
22249
22307
|
}
|
|
22308
|
+
function hasColumn212(db, table, column) {
|
|
22309
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
22310
|
+
}
|
|
22311
|
+
function addColumnIfMissing242(db, column, definition) {
|
|
22312
|
+
if (!hasColumn212(db, "cross_agent_messages", column)) {
|
|
22313
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
22314
|
+
}
|
|
22315
|
+
}
|
|
22316
|
+
function up1162(db) {
|
|
22317
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
22318
|
+
if (table == null)
|
|
22319
|
+
return;
|
|
22320
|
+
addColumnIfMissing242(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
22321
|
+
addColumnIfMissing242(db, "delivery_attempt_id", "TEXT");
|
|
22322
|
+
addColumnIfMissing242(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
22323
|
+
addColumnIfMissing242(db, "delivery_lease_token", "TEXT");
|
|
22324
|
+
addColumnIfMissing242(db, "delivery_lease_expires_at", "TEXT");
|
|
22325
|
+
addColumnIfMissing242(db, "delivery_attempt_started_at", "TEXT");
|
|
22326
|
+
addColumnIfMissing242(db, "delivery_updated_at", "TEXT");
|
|
22327
|
+
addColumnIfMissing242(db, "acp_base_url", "TEXT");
|
|
22328
|
+
addColumnIfMissing242(db, "acp_target_agent_name", "TEXT");
|
|
22329
|
+
addColumnIfMissing242(db, "acp_timeout_ms", "INTEGER");
|
|
22330
|
+
addColumnIfMissing242(db, "acp_metadata_json", "TEXT");
|
|
22331
|
+
db.exec(`
|
|
22332
|
+
UPDATE cross_agent_messages
|
|
22333
|
+
SET delivery_state = CASE delivery_status
|
|
22334
|
+
WHEN 'delivered' THEN 'delivered'
|
|
22335
|
+
WHEN 'failed' THEN 'failed'
|
|
22336
|
+
ELSE 'pending'
|
|
22337
|
+
END
|
|
22338
|
+
WHERE delivery_state = 'pending';
|
|
22339
|
+
|
|
22340
|
+
UPDATE cross_agent_messages
|
|
22341
|
+
SET delivery_attempt_id = id
|
|
22342
|
+
WHERE delivery_attempt_id IS NULL;
|
|
22343
|
+
|
|
22344
|
+
UPDATE cross_agent_messages
|
|
22345
|
+
SET delivery_updated_at = created_at
|
|
22346
|
+
WHERE delivery_updated_at IS NULL;
|
|
22347
|
+
|
|
22348
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
22349
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
22350
|
+
`);
|
|
22351
|
+
}
|
|
22250
22352
|
var MIGRATIONS2 = [
|
|
22251
22353
|
{
|
|
22252
22354
|
version: 1,
|
|
22253
22355
|
name: "baseline",
|
|
22254
|
-
up:
|
|
22356
|
+
up: up117,
|
|
22255
22357
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22256
22358
|
},
|
|
22257
22359
|
{
|
|
@@ -22317,7 +22419,7 @@ var MIGRATIONS2 = [
|
|
|
22317
22419
|
{
|
|
22318
22420
|
version: 11,
|
|
22319
22421
|
name: "session-scores",
|
|
22320
|
-
up:
|
|
22422
|
+
up: up118,
|
|
22321
22423
|
artifacts: { tables: ["session_scores"] }
|
|
22322
22424
|
},
|
|
22323
22425
|
{
|
|
@@ -23172,6 +23274,20 @@ var MIGRATIONS2 = [
|
|
|
23172
23274
|
artifacts: {
|
|
23173
23275
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
23174
23276
|
}
|
|
23277
|
+
},
|
|
23278
|
+
{
|
|
23279
|
+
version: 116,
|
|
23280
|
+
name: "acp-delivery-reconciliation",
|
|
23281
|
+
up: up1162,
|
|
23282
|
+
artifacts: {
|
|
23283
|
+
columns: [
|
|
23284
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
23285
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
23286
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
23287
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
23288
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
23289
|
+
]
|
|
23290
|
+
}
|
|
23175
23291
|
}
|
|
23176
23292
|
];
|
|
23177
23293
|
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.185.1",
|
|
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.185.1",
|
|
28
|
+
"@signetai/core": "0.185.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|