@signetai/connector-claude-code 0.167.0 → 0.169.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 +110 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10343,6 +10343,36 @@ function up106(db) {
|
|
|
10343
10343
|
}
|
|
10344
10344
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
10345
10345
|
}
|
|
10346
|
+
function hasColumn18(db, table, column) {
|
|
10347
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10348
|
+
}
|
|
10349
|
+
var TOKEN_COLUMNS = [
|
|
10350
|
+
["tokens_input", "INTEGER"],
|
|
10351
|
+
["tokens_output", "INTEGER"],
|
|
10352
|
+
["tokens_cache_read", "INTEGER"],
|
|
10353
|
+
["tokens_cache_write", "INTEGER"],
|
|
10354
|
+
["tokens_cost", "REAL"]
|
|
10355
|
+
];
|
|
10356
|
+
function up107(db) {
|
|
10357
|
+
for (const [column, type] of TOKEN_COLUMNS) {
|
|
10358
|
+
if (!hasColumn18(db, "dreaming_passes", column)) {
|
|
10359
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
10360
|
+
}
|
|
10361
|
+
}
|
|
10362
|
+
}
|
|
10363
|
+
function up108(db) {
|
|
10364
|
+
db.exec(`
|
|
10365
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
10366
|
+
day TEXT NOT NULL,
|
|
10367
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
10368
|
+
source_kind TEXT NOT NULL,
|
|
10369
|
+
provider TEXT NOT NULL,
|
|
10370
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
10371
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
10372
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
10373
|
+
);
|
|
10374
|
+
`);
|
|
10375
|
+
}
|
|
10346
10376
|
var MIGRATIONS = [
|
|
10347
10377
|
{
|
|
10348
10378
|
version: 1,
|
|
@@ -11183,6 +11213,28 @@ var MIGRATIONS = [
|
|
|
11183
11213
|
artifacts: {
|
|
11184
11214
|
columns: [{ table: "memories", column: "review_after" }]
|
|
11185
11215
|
}
|
|
11216
|
+
},
|
|
11217
|
+
{
|
|
11218
|
+
version: 107,
|
|
11219
|
+
name: "dreaming-pass-usage",
|
|
11220
|
+
up: up107,
|
|
11221
|
+
artifacts: {
|
|
11222
|
+
columns: [
|
|
11223
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
11224
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
11225
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
11226
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
11227
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
11228
|
+
]
|
|
11229
|
+
}
|
|
11230
|
+
},
|
|
11231
|
+
{
|
|
11232
|
+
version: 108,
|
|
11233
|
+
name: "embedding-usage",
|
|
11234
|
+
up: up108,
|
|
11235
|
+
artifacts: {
|
|
11236
|
+
tables: ["embedding_usage"]
|
|
11237
|
+
}
|
|
11186
11238
|
}
|
|
11187
11239
|
];
|
|
11188
11240
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18472,7 +18524,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18472
18524
|
return true;
|
|
18473
18525
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18474
18526
|
}
|
|
18475
|
-
function
|
|
18527
|
+
function up109(db) {
|
|
18476
18528
|
db.exec(`
|
|
18477
18529
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18478
18530
|
version INTEGER PRIMARY KEY,
|
|
@@ -18561,12 +18613,12 @@ function up107(db) {
|
|
|
18561
18613
|
} catch {}
|
|
18562
18614
|
createMemoriesFts2(db);
|
|
18563
18615
|
}
|
|
18564
|
-
function
|
|
18616
|
+
function hasColumn19(db, table, column) {
|
|
18565
18617
|
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
18566
18618
|
return rows.some((r) => r.name === column);
|
|
18567
18619
|
}
|
|
18568
18620
|
function addColumnIfMissing23(db, table, column, definition) {
|
|
18569
|
-
if (!
|
|
18621
|
+
if (!hasColumn19(db, table, column)) {
|
|
18570
18622
|
db.exec(`ALTER TABLE ${table} ADD COLUMN ${column} ${definition}`);
|
|
18571
18623
|
}
|
|
18572
18624
|
}
|
|
@@ -18884,7 +18936,7 @@ function up910(db) {
|
|
|
18884
18936
|
db.exec(`CREATE INDEX IF NOT EXISTS idx_summary_jobs_status
|
|
18885
18937
|
ON summary_jobs(status)`);
|
|
18886
18938
|
}
|
|
18887
|
-
function
|
|
18939
|
+
function up1010(db) {
|
|
18888
18940
|
db.exec(`
|
|
18889
18941
|
CREATE TABLE IF NOT EXISTS umap_cache (
|
|
18890
18942
|
id INTEGER PRIMARY KEY,
|
|
@@ -21851,11 +21903,41 @@ function up1062(db) {
|
|
|
21851
21903
|
}
|
|
21852
21904
|
db.exec("CREATE INDEX IF NOT EXISTS idx_memories_review_after ON memories(review_after);");
|
|
21853
21905
|
}
|
|
21906
|
+
function hasColumn182(db, table, column) {
|
|
21907
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
21908
|
+
}
|
|
21909
|
+
var TOKEN_COLUMNS2 = [
|
|
21910
|
+
["tokens_input", "INTEGER"],
|
|
21911
|
+
["tokens_output", "INTEGER"],
|
|
21912
|
+
["tokens_cache_read", "INTEGER"],
|
|
21913
|
+
["tokens_cache_write", "INTEGER"],
|
|
21914
|
+
["tokens_cost", "REAL"]
|
|
21915
|
+
];
|
|
21916
|
+
function up1072(db) {
|
|
21917
|
+
for (const [column, type] of TOKEN_COLUMNS2) {
|
|
21918
|
+
if (!hasColumn182(db, "dreaming_passes", column)) {
|
|
21919
|
+
db.exec(`ALTER TABLE dreaming_passes ADD COLUMN ${column} ${type};`);
|
|
21920
|
+
}
|
|
21921
|
+
}
|
|
21922
|
+
}
|
|
21923
|
+
function up1082(db) {
|
|
21924
|
+
db.exec(`
|
|
21925
|
+
CREATE TABLE IF NOT EXISTS embedding_usage (
|
|
21926
|
+
day TEXT NOT NULL,
|
|
21927
|
+
agent_id TEXT NOT NULL DEFAULT '',
|
|
21928
|
+
source_kind TEXT NOT NULL,
|
|
21929
|
+
provider TEXT NOT NULL,
|
|
21930
|
+
requests INTEGER NOT NULL DEFAULT 0,
|
|
21931
|
+
tokens INTEGER NOT NULL DEFAULT 0,
|
|
21932
|
+
PRIMARY KEY (day, agent_id, source_kind, provider)
|
|
21933
|
+
);
|
|
21934
|
+
`);
|
|
21935
|
+
}
|
|
21854
21936
|
var MIGRATIONS2 = [
|
|
21855
21937
|
{
|
|
21856
21938
|
version: 1,
|
|
21857
21939
|
name: "baseline",
|
|
21858
|
-
up:
|
|
21940
|
+
up: up109,
|
|
21859
21941
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
21860
21942
|
},
|
|
21861
21943
|
{
|
|
@@ -21915,7 +21997,7 @@ var MIGRATIONS2 = [
|
|
|
21915
21997
|
{
|
|
21916
21998
|
version: 10,
|
|
21917
21999
|
name: "umap-cache",
|
|
21918
|
-
up:
|
|
22000
|
+
up: up1010,
|
|
21919
22001
|
artifacts: { tables: ["umap_cache"] }
|
|
21920
22002
|
},
|
|
21921
22003
|
{
|
|
@@ -22691,6 +22773,28 @@ var MIGRATIONS2 = [
|
|
|
22691
22773
|
artifacts: {
|
|
22692
22774
|
columns: [{ table: "memories", column: "review_after" }]
|
|
22693
22775
|
}
|
|
22776
|
+
},
|
|
22777
|
+
{
|
|
22778
|
+
version: 107,
|
|
22779
|
+
name: "dreaming-pass-usage",
|
|
22780
|
+
up: up1072,
|
|
22781
|
+
artifacts: {
|
|
22782
|
+
columns: [
|
|
22783
|
+
{ table: "dreaming_passes", column: "tokens_input" },
|
|
22784
|
+
{ table: "dreaming_passes", column: "tokens_output" },
|
|
22785
|
+
{ table: "dreaming_passes", column: "tokens_cache_read" },
|
|
22786
|
+
{ table: "dreaming_passes", column: "tokens_cache_write" },
|
|
22787
|
+
{ table: "dreaming_passes", column: "tokens_cost" }
|
|
22788
|
+
]
|
|
22789
|
+
}
|
|
22790
|
+
},
|
|
22791
|
+
{
|
|
22792
|
+
version: 108,
|
|
22793
|
+
name: "embedding-usage",
|
|
22794
|
+
up: up1082,
|
|
22795
|
+
artifacts: {
|
|
22796
|
+
tables: ["embedding_usage"]
|
|
22797
|
+
}
|
|
22694
22798
|
}
|
|
22695
22799
|
];
|
|
22696
22800
|
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.169.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.169.0",
|
|
28
|
+
"@signetai/core": "0.169.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|