@signetai/connector-claude-code 0.145.9 → 0.146.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 +66 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9602,6 +9602,25 @@ function up81(db) {
|
|
|
9602
9602
|
ON aggregate_evidence_sources(source_kind, source_id);
|
|
9603
9603
|
`);
|
|
9604
9604
|
}
|
|
9605
|
+
function hasColumn11(db, table, column) {
|
|
9606
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
9607
|
+
return rows.some((row) => row.name === column);
|
|
9608
|
+
}
|
|
9609
|
+
var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
9610
|
+
function up82(db) {
|
|
9611
|
+
for (const column of COLUMNS) {
|
|
9612
|
+
if (!hasColumn11(db, "skill_invocations", column)) {
|
|
9613
|
+
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
9614
|
+
}
|
|
9615
|
+
}
|
|
9616
|
+
db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
|
|
9617
|
+
db.exec(`
|
|
9618
|
+
CREATE UNIQUE INDEX idx_skill_inv_dedupe
|
|
9619
|
+
ON skill_invocations(agent_id, harness, session_id, tool_use_id)
|
|
9620
|
+
WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
|
|
9621
|
+
`);
|
|
9622
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
|
|
9623
|
+
}
|
|
9605
9624
|
var MIGRATIONS = [
|
|
9606
9625
|
{
|
|
9607
9626
|
version: 1,
|
|
@@ -10255,6 +10274,17 @@ var MIGRATIONS = [
|
|
|
10255
10274
|
artifacts: {
|
|
10256
10275
|
tables: ["aggregate_evidence_sources"]
|
|
10257
10276
|
}
|
|
10277
|
+
},
|
|
10278
|
+
{
|
|
10279
|
+
version: 82,
|
|
10280
|
+
name: "skill-invocations-harness",
|
|
10281
|
+
up: up82,
|
|
10282
|
+
artifacts: {
|
|
10283
|
+
columns: [
|
|
10284
|
+
{ table: "skill_invocations", column: "harness" },
|
|
10285
|
+
{ table: "skill_invocations", column: "tool_use_id" }
|
|
10286
|
+
]
|
|
10287
|
+
}
|
|
10258
10288
|
}
|
|
10259
10289
|
];
|
|
10260
10290
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -17610,7 +17640,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
17610
17640
|
return true;
|
|
17611
17641
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
17612
17642
|
}
|
|
17613
|
-
function
|
|
17643
|
+
function up83(db) {
|
|
17614
17644
|
db.exec(`
|
|
17615
17645
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
17616
17646
|
version INTEGER PRIMARY KEY,
|
|
@@ -17699,12 +17729,12 @@ function up82(db) {
|
|
|
17699
17729
|
} catch {}
|
|
17700
17730
|
createMemoriesFts2(db);
|
|
17701
17731
|
}
|
|
17702
|
-
function
|
|
17732
|
+
function hasColumn12(db, table, column) {
|
|
17703
17733
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
17704
17734
|
return rows.some((r) => r.name === column);
|
|
17705
17735
|
}
|
|
17706
17736
|
function addColumnIfMissing20(db, table, column, definition) {
|
|
17707
|
-
if (!
|
|
17737
|
+
if (!hasColumn12(db, table, column)) {
|
|
17708
17738
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
17709
17739
|
}
|
|
17710
17740
|
}
|
|
@@ -17985,7 +18015,7 @@ function up710(db) {
|
|
|
17985
18015
|
db.exec("ALTER TABLE memory_jobs ADD COLUMN document_id TEXT");
|
|
17986
18016
|
}
|
|
17987
18017
|
}
|
|
17988
|
-
function
|
|
18018
|
+
function up84(db) {
|
|
17989
18019
|
const tables = db.prepare("SELECT name FROM sqlite_master WHERE type='table' AND name='embeddings'").all();
|
|
17990
18020
|
if (tables.length === 0)
|
|
17991
18021
|
return;
|
|
@@ -20275,11 +20305,30 @@ function up812(db) {
|
|
|
20275
20305
|
ON aggregate_evidence_sources(source_kind, source_id);
|
|
20276
20306
|
`);
|
|
20277
20307
|
}
|
|
20308
|
+
function hasColumn112(db, table, column) {
|
|
20309
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
20310
|
+
return rows.some((row) => row.name === column);
|
|
20311
|
+
}
|
|
20312
|
+
var COLUMNS2 = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
20313
|
+
function up822(db) {
|
|
20314
|
+
for (const column of COLUMNS2) {
|
|
20315
|
+
if (!hasColumn112(db, "skill_invocations", column)) {
|
|
20316
|
+
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
20317
|
+
}
|
|
20318
|
+
}
|
|
20319
|
+
db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
|
|
20320
|
+
db.exec(`
|
|
20321
|
+
CREATE UNIQUE INDEX idx_skill_inv_dedupe
|
|
20322
|
+
ON skill_invocations(agent_id, harness, session_id, tool_use_id)
|
|
20323
|
+
WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
|
|
20324
|
+
`);
|
|
20325
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
|
|
20326
|
+
}
|
|
20278
20327
|
var MIGRATIONS2 = [
|
|
20279
20328
|
{
|
|
20280
20329
|
version: 1,
|
|
20281
20330
|
name: "baseline",
|
|
20282
|
-
up:
|
|
20331
|
+
up: up83,
|
|
20283
20332
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
20284
20333
|
},
|
|
20285
20334
|
{
|
|
@@ -20328,7 +20377,7 @@ var MIGRATIONS2 = [
|
|
|
20328
20377
|
{
|
|
20329
20378
|
version: 8,
|
|
20330
20379
|
name: "embeddings-unique-hash",
|
|
20331
|
-
up:
|
|
20380
|
+
up: up84
|
|
20332
20381
|
},
|
|
20333
20382
|
{
|
|
20334
20383
|
version: 9,
|
|
@@ -20928,6 +20977,17 @@ var MIGRATIONS2 = [
|
|
|
20928
20977
|
artifacts: {
|
|
20929
20978
|
tables: ["aggregate_evidence_sources"]
|
|
20930
20979
|
}
|
|
20980
|
+
},
|
|
20981
|
+
{
|
|
20982
|
+
version: 82,
|
|
20983
|
+
name: "skill-invocations-harness",
|
|
20984
|
+
up: up822,
|
|
20985
|
+
artifacts: {
|
|
20986
|
+
columns: [
|
|
20987
|
+
{ table: "skill_invocations", column: "harness" },
|
|
20988
|
+
{ table: "skill_invocations", column: "tool_use_id" }
|
|
20989
|
+
]
|
|
20990
|
+
}
|
|
20931
20991
|
}
|
|
20932
20992
|
];
|
|
20933
20993
|
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.146.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.146.0",
|
|
28
|
+
"@signetai/core": "0.146.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|