@signetai/connector-hermes-agent 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 +74 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10421,6 +10421,27 @@ function up112(db) {
|
|
|
10421
10421
|
ON telemetry_events(source, sent_to_posthog, claimed_at, timestamp);
|
|
10422
10422
|
`);
|
|
10423
10423
|
}
|
|
10424
|
+
function up113(db) {
|
|
10425
|
+
db.exec(`
|
|
10426
|
+
CREATE TABLE IF NOT EXISTS session_claims (
|
|
10427
|
+
session_key TEXT NOT NULL,
|
|
10428
|
+
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
10429
|
+
runtime_path TEXT CHECK(runtime_path IN ('plugin', 'legacy')),
|
|
10430
|
+
harness TEXT,
|
|
10431
|
+
claimed_at TEXT NOT NULL,
|
|
10432
|
+
expires_at TEXT NOT NULL,
|
|
10433
|
+
state TEXT NOT NULL DEFAULT 'active' CHECK(state IN ('active', 'expired', 'ended')),
|
|
10434
|
+
ended_at TEXT,
|
|
10435
|
+
end_marker TEXT,
|
|
10436
|
+
PRIMARY KEY (agent_id, session_key)
|
|
10437
|
+
);
|
|
10438
|
+
|
|
10439
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_expiry
|
|
10440
|
+
ON session_claims(state, expires_at);
|
|
10441
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_agent
|
|
10442
|
+
ON session_claims(agent_id, state, expires_at);
|
|
10443
|
+
`);
|
|
10444
|
+
}
|
|
10424
10445
|
var MIGRATIONS = [
|
|
10425
10446
|
{
|
|
10426
10447
|
version: 1,
|
|
@@ -11319,6 +11340,20 @@ var MIGRATIONS = [
|
|
|
11319
11340
|
{ table: "telemetry_events", column: "claimed_at" }
|
|
11320
11341
|
]
|
|
11321
11342
|
}
|
|
11343
|
+
},
|
|
11344
|
+
{
|
|
11345
|
+
version: 113,
|
|
11346
|
+
name: "session-claims",
|
|
11347
|
+
up: up113,
|
|
11348
|
+
artifacts: {
|
|
11349
|
+
tables: ["session_claims"],
|
|
11350
|
+
columns: [
|
|
11351
|
+
{ table: "session_claims", column: "agent_id" },
|
|
11352
|
+
{ table: "session_claims", column: "harness" },
|
|
11353
|
+
{ table: "session_claims", column: "expires_at" },
|
|
11354
|
+
{ table: "session_claims", column: "end_marker" }
|
|
11355
|
+
]
|
|
11356
|
+
}
|
|
11322
11357
|
}
|
|
11323
11358
|
];
|
|
11324
11359
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -18586,7 +18621,7 @@ function memoriesFtsNeedsTokenizerRepair2(sql) {
|
|
|
18586
18621
|
return true;
|
|
18587
18622
|
return !normalized.includes(`tokenize='${MEMORIES_FTS_TOKENIZER2}'`);
|
|
18588
18623
|
}
|
|
18589
|
-
function
|
|
18624
|
+
function up114(db) {
|
|
18590
18625
|
db.exec(`
|
|
18591
18626
|
CREATE TABLE IF NOT EXISTS schema_migrations (
|
|
18592
18627
|
version INTEGER PRIMARY KEY,
|
|
@@ -19009,7 +19044,7 @@ function up1010(db) {
|
|
|
19009
19044
|
)
|
|
19010
19045
|
`);
|
|
19011
19046
|
}
|
|
19012
|
-
function
|
|
19047
|
+
function up115(db) {
|
|
19013
19048
|
db.exec(`
|
|
19014
19049
|
CREATE TABLE IF NOT EXISTS session_scores (
|
|
19015
19050
|
id TEXT PRIMARY KEY,
|
|
@@ -22039,11 +22074,32 @@ function up1122(db) {
|
|
|
22039
22074
|
ON telemetry_events(source, sent_to_posthog, claimed_at, timestamp);
|
|
22040
22075
|
`);
|
|
22041
22076
|
}
|
|
22077
|
+
function up1132(db) {
|
|
22078
|
+
db.exec(`
|
|
22079
|
+
CREATE TABLE IF NOT EXISTS session_claims (
|
|
22080
|
+
session_key TEXT NOT NULL,
|
|
22081
|
+
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
22082
|
+
runtime_path TEXT CHECK(runtime_path IN ('plugin', 'legacy')),
|
|
22083
|
+
harness TEXT,
|
|
22084
|
+
claimed_at TEXT NOT NULL,
|
|
22085
|
+
expires_at TEXT NOT NULL,
|
|
22086
|
+
state TEXT NOT NULL DEFAULT 'active' CHECK(state IN ('active', 'expired', 'ended')),
|
|
22087
|
+
ended_at TEXT,
|
|
22088
|
+
end_marker TEXT,
|
|
22089
|
+
PRIMARY KEY (agent_id, session_key)
|
|
22090
|
+
);
|
|
22091
|
+
|
|
22092
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_expiry
|
|
22093
|
+
ON session_claims(state, expires_at);
|
|
22094
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_agent
|
|
22095
|
+
ON session_claims(agent_id, state, expires_at);
|
|
22096
|
+
`);
|
|
22097
|
+
}
|
|
22042
22098
|
var MIGRATIONS2 = [
|
|
22043
22099
|
{
|
|
22044
22100
|
version: 1,
|
|
22045
22101
|
name: "baseline",
|
|
22046
|
-
up:
|
|
22102
|
+
up: up114,
|
|
22047
22103
|
artifacts: { tables: ["memories", "conversations", "embeddings"] }
|
|
22048
22104
|
},
|
|
22049
22105
|
{
|
|
@@ -22109,7 +22165,7 @@ var MIGRATIONS2 = [
|
|
|
22109
22165
|
{
|
|
22110
22166
|
version: 11,
|
|
22111
22167
|
name: "session-scores",
|
|
22112
|
-
up:
|
|
22168
|
+
up: up115,
|
|
22113
22169
|
artifacts: { tables: ["session_scores"] }
|
|
22114
22170
|
},
|
|
22115
22171
|
{
|
|
@@ -22937,6 +22993,20 @@ var MIGRATIONS2 = [
|
|
|
22937
22993
|
{ table: "telemetry_events", column: "claimed_at" }
|
|
22938
22994
|
]
|
|
22939
22995
|
}
|
|
22996
|
+
},
|
|
22997
|
+
{
|
|
22998
|
+
version: 113,
|
|
22999
|
+
name: "session-claims",
|
|
23000
|
+
up: up1132,
|
|
23001
|
+
artifacts: {
|
|
23002
|
+
tables: ["session_claims"],
|
|
23003
|
+
columns: [
|
|
23004
|
+
{ table: "session_claims", column: "agent_id" },
|
|
23005
|
+
{ table: "session_claims", column: "harness" },
|
|
23006
|
+
{ table: "session_claims", column: "expires_at" },
|
|
23007
|
+
{ table: "session_claims", column: "end_marker" }
|
|
23008
|
+
]
|
|
23009
|
+
}
|
|
22940
23010
|
}
|
|
22941
23011
|
];
|
|
22942
23012
|
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-hermes-agent",
|
|
3
|
-
"version": "0.181.
|
|
3
|
+
"version": "0.181.2",
|
|
4
4
|
"description": "Signet connector for Hermes Agent — installs Signet as a pluggable memory provider",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"typecheck": "tsc --noEmit"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@signetai/connector-base": "0.181.
|
|
29
|
-
"@signetai/core": "0.181.
|
|
28
|
+
"@signetai/connector-base": "0.181.2",
|
|
29
|
+
"@signetai/core": "0.181.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.0.0",
|