@signetai/connector-base 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 +30 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9601,6 +9601,25 @@ function up81(db) {
|
|
|
9601
9601
|
ON aggregate_evidence_sources(source_kind, source_id);
|
|
9602
9602
|
`);
|
|
9603
9603
|
}
|
|
9604
|
+
function hasColumn11(db, table, column) {
|
|
9605
|
+
const rows = db.prepare(`PRAGMA table_info(${table})`).all();
|
|
9606
|
+
return rows.some((row) => row.name === column);
|
|
9607
|
+
}
|
|
9608
|
+
var COLUMNS = ["harness", "session_id", "tool_use_id", "cwd", "origin", "args"];
|
|
9609
|
+
function up82(db) {
|
|
9610
|
+
for (const column of COLUMNS) {
|
|
9611
|
+
if (!hasColumn11(db, "skill_invocations", column)) {
|
|
9612
|
+
db.exec(`ALTER TABLE skill_invocations ADD COLUMN ${column} TEXT`);
|
|
9613
|
+
}
|
|
9614
|
+
}
|
|
9615
|
+
db.exec("DROP INDEX IF EXISTS idx_skill_inv_dedupe");
|
|
9616
|
+
db.exec(`
|
|
9617
|
+
CREATE UNIQUE INDEX idx_skill_inv_dedupe
|
|
9618
|
+
ON skill_invocations(agent_id, harness, session_id, tool_use_id)
|
|
9619
|
+
WHERE harness IS NOT NULL AND session_id IS NOT NULL AND tool_use_id IS NOT NULL
|
|
9620
|
+
`);
|
|
9621
|
+
db.exec("CREATE INDEX IF NOT EXISTS idx_skill_inv_harness ON skill_invocations(harness, created_at)");
|
|
9622
|
+
}
|
|
9604
9623
|
var MIGRATIONS = [
|
|
9605
9624
|
{
|
|
9606
9625
|
version: 1,
|
|
@@ -10254,6 +10273,17 @@ var MIGRATIONS = [
|
|
|
10254
10273
|
artifacts: {
|
|
10255
10274
|
tables: ["aggregate_evidence_sources"]
|
|
10256
10275
|
}
|
|
10276
|
+
},
|
|
10277
|
+
{
|
|
10278
|
+
version: 82,
|
|
10279
|
+
name: "skill-invocations-harness",
|
|
10280
|
+
up: up82,
|
|
10281
|
+
artifacts: {
|
|
10282
|
+
columns: [
|
|
10283
|
+
{ table: "skill_invocations", column: "harness" },
|
|
10284
|
+
{ table: "skill_invocations", column: "tool_use_id" }
|
|
10285
|
+
]
|
|
10286
|
+
}
|
|
10257
10287
|
}
|
|
10258
10288
|
];
|
|
10259
10289
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.146.0",
|
|
4
4
|
"description": "Base class for Signet harness connectors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"typecheck": "tsc --noEmit"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@signetai/core": "0.
|
|
25
|
+
"@signetai/core": "0.146.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|