@signetai/connector-claude-code 0.151.0 → 0.152.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 +144 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -9897,6 +9897,61 @@ function up88(db) {
|
|
|
9897
9897
|
ON transcript_capture_jobs(agent_id, session_id, status);
|
|
9898
9898
|
`);
|
|
9899
9899
|
}
|
|
9900
|
+
function up89(db) {
|
|
9901
|
+
db.exec(`
|
|
9902
|
+
CREATE TABLE IF NOT EXISTS job_cancellations (
|
|
9903
|
+
id TEXT PRIMARY KEY,
|
|
9904
|
+
source_table TEXT NOT NULL,
|
|
9905
|
+
source_id TEXT NOT NULL,
|
|
9906
|
+
status_before TEXT NOT NULL,
|
|
9907
|
+
payload_json TEXT NOT NULL,
|
|
9908
|
+
reason TEXT,
|
|
9909
|
+
actor TEXT NOT NULL,
|
|
9910
|
+
actor_type TEXT NOT NULL,
|
|
9911
|
+
request_id TEXT,
|
|
9912
|
+
created_at TEXT NOT NULL
|
|
9913
|
+
)
|
|
9914
|
+
`);
|
|
9915
|
+
if (!indexExists(db, "job_cancellations", "idx_job_cancellations_source")) {
|
|
9916
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
|
|
9917
|
+
ON job_cancellations(source_table, source_id)`);
|
|
9918
|
+
}
|
|
9919
|
+
if (!indexExists(db, "job_cancellations", "idx_job_cancellations_created_at")) {
|
|
9920
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
|
|
9921
|
+
ON job_cancellations(created_at)`);
|
|
9922
|
+
}
|
|
9923
|
+
}
|
|
9924
|
+
function indexExists(db, table, indexName) {
|
|
9925
|
+
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
9926
|
+
return rows.some((row) => row.name === indexName);
|
|
9927
|
+
}
|
|
9928
|
+
function up90(db) {
|
|
9929
|
+
db.exec(`
|
|
9930
|
+
CREATE TABLE IF NOT EXISTS job_archive (
|
|
9931
|
+
id TEXT PRIMARY KEY,
|
|
9932
|
+
source_table TEXT NOT NULL,
|
|
9933
|
+
source_id TEXT NOT NULL,
|
|
9934
|
+
status TEXT NOT NULL,
|
|
9935
|
+
payload_json TEXT NOT NULL,
|
|
9936
|
+
archived_at TEXT NOT NULL,
|
|
9937
|
+
archived_by TEXT NOT NULL,
|
|
9938
|
+
reason TEXT,
|
|
9939
|
+
created_at TEXT NOT NULL
|
|
9940
|
+
)
|
|
9941
|
+
`);
|
|
9942
|
+
if (!indexExists2(db, "job_archive", "idx_job_archive_source")) {
|
|
9943
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
|
|
9944
|
+
ON job_archive(source_table, source_id)`);
|
|
9945
|
+
}
|
|
9946
|
+
if (!indexExists2(db, "job_archive", "idx_job_archive_archived_at")) {
|
|
9947
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
|
|
9948
|
+
ON job_archive(archived_at)`);
|
|
9949
|
+
}
|
|
9950
|
+
}
|
|
9951
|
+
function indexExists2(db, table, indexName) {
|
|
9952
|
+
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
9953
|
+
return rows.some((row) => row.name === indexName);
|
|
9954
|
+
}
|
|
9900
9955
|
var MIGRATIONS = [
|
|
9901
9956
|
{
|
|
9902
9957
|
version: 1,
|
|
@@ -10616,6 +10671,22 @@ var MIGRATIONS = [
|
|
|
10616
10671
|
artifacts: {
|
|
10617
10672
|
tables: ["transcript_recovery_files"]
|
|
10618
10673
|
}
|
|
10674
|
+
},
|
|
10675
|
+
{
|
|
10676
|
+
version: 89,
|
|
10677
|
+
name: "job-cancellations",
|
|
10678
|
+
up: up89,
|
|
10679
|
+
artifacts: {
|
|
10680
|
+
tables: ["job_cancellations"]
|
|
10681
|
+
}
|
|
10682
|
+
},
|
|
10683
|
+
{
|
|
10684
|
+
version: 90,
|
|
10685
|
+
name: "job-archive",
|
|
10686
|
+
up: up90,
|
|
10687
|
+
artifacts: {
|
|
10688
|
+
tables: ["job_archive"]
|
|
10689
|
+
}
|
|
10619
10690
|
}
|
|
10620
10691
|
];
|
|
10621
10692
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -17979,7 +18050,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
17979
18050
|
return true;
|
|
17980
18051
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
17981
18052
|
}
|
|
17982
|
-
function
|
|
18053
|
+
function up91(db) {
|
|
17983
18054
|
db.exec(`
|
|
17984
18055
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
17985
18056
|
version INTEGER PRIMARY KEY,
|
|
@@ -20939,11 +21010,66 @@ function up882(db) {
|
|
|
20939
21010
|
ON transcript_capture_jobs(agent_id, session_id, status);
|
|
20940
21011
|
`);
|
|
20941
21012
|
}
|
|
21013
|
+
function up892(db) {
|
|
21014
|
+
db.exec(`
|
|
21015
|
+
CREATE TABLE IF NOT EXISTS job_cancellations (
|
|
21016
|
+
id TEXT PRIMARY KEY,
|
|
21017
|
+
source_table TEXT NOT NULL,
|
|
21018
|
+
source_id TEXT NOT NULL,
|
|
21019
|
+
status_before TEXT NOT NULL,
|
|
21020
|
+
payload_json TEXT NOT NULL,
|
|
21021
|
+
reason TEXT,
|
|
21022
|
+
actor TEXT NOT NULL,
|
|
21023
|
+
actor_type TEXT NOT NULL,
|
|
21024
|
+
request_id TEXT,
|
|
21025
|
+
created_at TEXT NOT NULL
|
|
21026
|
+
)
|
|
21027
|
+
`);
|
|
21028
|
+
if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_source")) {
|
|
21029
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_source
|
|
21030
|
+
ON job_cancellations(source_table, source_id)`);
|
|
21031
|
+
}
|
|
21032
|
+
if (!indexExists3(db, "job_cancellations", "idx_job_cancellations_created_at")) {
|
|
21033
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_cancellations_created_at
|
|
21034
|
+
ON job_cancellations(created_at)`);
|
|
21035
|
+
}
|
|
21036
|
+
}
|
|
21037
|
+
function indexExists3(db, table, indexName) {
|
|
21038
|
+
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
21039
|
+
return rows.some((row) => row.name === indexName);
|
|
21040
|
+
}
|
|
21041
|
+
function up902(db) {
|
|
21042
|
+
db.exec(`
|
|
21043
|
+
CREATE TABLE IF NOT EXISTS job_archive (
|
|
21044
|
+
id TEXT PRIMARY KEY,
|
|
21045
|
+
source_table TEXT NOT NULL,
|
|
21046
|
+
source_id TEXT NOT NULL,
|
|
21047
|
+
status TEXT NOT NULL,
|
|
21048
|
+
payload_json TEXT NOT NULL,
|
|
21049
|
+
archived_at TEXT NOT NULL,
|
|
21050
|
+
archived_by TEXT NOT NULL,
|
|
21051
|
+
reason TEXT,
|
|
21052
|
+
created_at TEXT NOT NULL
|
|
21053
|
+
)
|
|
21054
|
+
`);
|
|
21055
|
+
if (!indexExists22(db, "job_archive", "idx_job_archive_source")) {
|
|
21056
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_source
|
|
21057
|
+
ON job_archive(source_table, source_id)`);
|
|
21058
|
+
}
|
|
21059
|
+
if (!indexExists22(db, "job_archive", "idx_job_archive_archived_at")) {
|
|
21060
|
+
db.exec(`CREATE INDEX IF NOT EXISTS idx_job_archive_archived_at
|
|
21061
|
+
ON job_archive(archived_at)`);
|
|
21062
|
+
}
|
|
21063
|
+
}
|
|
21064
|
+
function indexExists22(db, table, indexName) {
|
|
21065
|
+
const rows = db.prepare(`PRAGMA index_list(${table})`).all();
|
|
21066
|
+
return rows.some((row) => row.name === indexName);
|
|
21067
|
+
}
|
|
20942
21068
|
var MIGRATIONS2 = [
|
|
20943
21069
|
{
|
|
20944
21070
|
version: 1,
|
|
20945
21071
|
name: "baseline",
|
|
20946
|
-
up:
|
|
21072
|
+
up: up91,
|
|
20947
21073
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
20948
21074
|
},
|
|
20949
21075
|
{
|
|
@@ -21658,6 +21784,22 @@ var MIGRATIONS2 = [
|
|
|
21658
21784
|
artifacts: {
|
|
21659
21785
|
tables: ["transcript_recovery_files"]
|
|
21660
21786
|
}
|
|
21787
|
+
},
|
|
21788
|
+
{
|
|
21789
|
+
version: 89,
|
|
21790
|
+
name: "job-cancellations",
|
|
21791
|
+
up: up892,
|
|
21792
|
+
artifacts: {
|
|
21793
|
+
tables: ["job_cancellations"]
|
|
21794
|
+
}
|
|
21795
|
+
},
|
|
21796
|
+
{
|
|
21797
|
+
version: 90,
|
|
21798
|
+
name: "job-archive",
|
|
21799
|
+
up: up902,
|
|
21800
|
+
artifacts: {
|
|
21801
|
+
tables: ["job_archive"]
|
|
21802
|
+
}
|
|
21661
21803
|
}
|
|
21662
21804
|
];
|
|
21663
21805
|
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.152.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.152.0",
|
|
28
|
+
"@signetai/core": "0.152.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|