@signetai/signet-memory-openclaw 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 +1 -1
package/dist/index.js
CHANGED
|
@@ -10676,6 +10676,27 @@ function up112(db) {
|
|
|
10676
10676
|
ON telemetry_events(source, sent_to_posthog, claimed_at, timestamp);
|
|
10677
10677
|
`);
|
|
10678
10678
|
}
|
|
10679
|
+
function up113(db) {
|
|
10680
|
+
db.exec(`
|
|
10681
|
+
CREATE TABLE IF NOT EXISTS session_claims (
|
|
10682
|
+
session_key TEXT NOT NULL,
|
|
10683
|
+
agent_id TEXT NOT NULL DEFAULT 'default',
|
|
10684
|
+
runtime_path TEXT CHECK(runtime_path IN ('plugin', 'legacy')),
|
|
10685
|
+
harness TEXT,
|
|
10686
|
+
claimed_at TEXT NOT NULL,
|
|
10687
|
+
expires_at TEXT NOT NULL,
|
|
10688
|
+
state TEXT NOT NULL DEFAULT 'active' CHECK(state IN ('active', 'expired', 'ended')),
|
|
10689
|
+
ended_at TEXT,
|
|
10690
|
+
end_marker TEXT,
|
|
10691
|
+
PRIMARY KEY (agent_id, session_key)
|
|
10692
|
+
);
|
|
10693
|
+
|
|
10694
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_expiry
|
|
10695
|
+
ON session_claims(state, expires_at);
|
|
10696
|
+
CREATE INDEX IF NOT EXISTS idx_session_claims_agent
|
|
10697
|
+
ON session_claims(agent_id, state, expires_at);
|
|
10698
|
+
`);
|
|
10699
|
+
}
|
|
10679
10700
|
var MIGRATIONS = [
|
|
10680
10701
|
{
|
|
10681
10702
|
version: 1,
|
|
@@ -11574,6 +11595,20 @@ var MIGRATIONS = [
|
|
|
11574
11595
|
{ table: "telemetry_events", column: "claimed_at" }
|
|
11575
11596
|
]
|
|
11576
11597
|
}
|
|
11598
|
+
},
|
|
11599
|
+
{
|
|
11600
|
+
version: 113,
|
|
11601
|
+
name: "session-claims",
|
|
11602
|
+
up: up113,
|
|
11603
|
+
artifacts: {
|
|
11604
|
+
tables: ["session_claims"],
|
|
11605
|
+
columns: [
|
|
11606
|
+
{ table: "session_claims", column: "agent_id" },
|
|
11607
|
+
{ table: "session_claims", column: "harness" },
|
|
11608
|
+
{ table: "session_claims", column: "expires_at" },
|
|
11609
|
+
{ table: "session_claims", column: "end_marker" }
|
|
11610
|
+
]
|
|
11611
|
+
}
|
|
11577
11612
|
}
|
|
11578
11613
|
];
|
|
11579
11614
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|