@signetai/connector-base 0.181.0 → 0.181.2
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 +35 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10453,6 +10453,27 @@ function up112(db) {
|
|
|
10453
10453
|
ON telemetry_events(source, sent_to_posthog, claimed_at, timestamp);
|
|
10454
10454
|
`);
|
|
10455
10455
|
}
|
|
10456
|
+
function up113(db) {
|
|
10457
|
+
db.exec(`
|
|
10458
|
+
CREATE TABLE IF NOT EXISTS session_claims (
|
|
10459
|
+
session_key TEXT NOT NULL,
|
|
10460
|
+
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
10461
|
+
runtime_path TEXT CHECK(runtime_path IN ('plugin', 'legacy')),
|
|
10462
|
+
harness TEXT,
|
|
10463
|
+
claimed_at TEXT NOT NULL,
|
|
10464
|
+
expires_at TEXT NOT NULL,
|
|
10465
|
+
state TEXT NOT NULL DEFAULT 'active' CHECK(state IN ('active', 'expired', 'ended')),
|
|
10466
|
+
ended_at TEXT,
|
|
10467
|
+
end_marker TEXT,
|
|
10468
|
+
PRIMARY KEY (agent_id, session_key)
|
|
10469
|
+
);
|
|
10470
|
+
|
|
10471
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_expiry
|
|
10472
|
+
ON session_claims(state, expires_at);
|
|
10473
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_agent
|
|
10474
|
+
ON session_claims(agent_id, state, expires_at);
|
|
10475
|
+
`);
|
|
10476
|
+
}
|
|
10456
10477
|
var MIGRATIONS = [
|
|
10457
10478
|
{
|
|
10458
10479
|
version: 1,
|
|
@@ -11351,6 +11372,20 @@ var MIGRATIONS = [
|
|
|
11351
11372
|
{ table: "telemetry_events", column: "claimed_at" }
|
|
11352
11373
|
]
|
|
11353
11374
|
}
|
|
11375
|
+
},
|
|
11376
|
+
{
|
|
11377
|
+
version: 113,
|
|
11378
|
+
name: "session-claims",
|
|
11379
|
+
up: up113,
|
|
11380
|
+
artifacts: {
|
|
11381
|
+
tables: ["session_claims"],
|
|
11382
|
+
columns: [
|
|
11383
|
+
{ table: "session_claims", column: "agent_id" },
|
|
11384
|
+
{ table: "session_claims", column: "harness" },
|
|
11385
|
+
{ table: "session_claims", column: "expires_at" },
|
|
11386
|
+
{ table: "session_claims", column: "end_marker" }
|
|
11387
|
+
]
|
|
11388
|
+
}
|
|
11354
11389
|
}
|
|
11355
11390
|
];
|
|
11356
11391
|
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.181.
|
|
3
|
+
"version": "0.181.2",
|
|
4
4
|
"description": "Base class for Signet harness connectors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@signetai/core": "0.181.
|
|
29
|
+
"@signetai/core": "0.181.2",
|
|
30
30
|
"json5": "^2.2.3",
|
|
31
31
|
"jsonc-parser": "3.3.1"
|
|
32
32
|
},
|