@signetai/signet-memory-openclaw 0.184.0 → 0.185.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 +61 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10755,6 +10755,50 @@ function up115(db) {
|
|
|
10755
10755
|
ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
|
|
10756
10756
|
`);
|
|
10757
10757
|
}
|
|
10758
|
+
function hasColumn21(db, table, column) {
|
|
10759
|
+
return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
|
|
10760
|
+
}
|
|
10761
|
+
function addColumnIfMissing24(db, column, definition) {
|
|
10762
|
+
if (!hasColumn21(db, "cross_agent_messages", column)) {
|
|
10763
|
+
db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
|
|
10764
|
+
}
|
|
10765
|
+
}
|
|
10766
|
+
function up116(db) {
|
|
10767
|
+
const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
|
|
10768
|
+
if (table == null)
|
|
10769
|
+
return;
|
|
10770
|
+
addColumnIfMissing24(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
|
|
10771
|
+
addColumnIfMissing24(db, "delivery_attempt_id", "TEXT");
|
|
10772
|
+
addColumnIfMissing24(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
|
|
10773
|
+
addColumnIfMissing24(db, "delivery_lease_token", "TEXT");
|
|
10774
|
+
addColumnIfMissing24(db, "delivery_lease_expires_at", "TEXT");
|
|
10775
|
+
addColumnIfMissing24(db, "delivery_attempt_started_at", "TEXT");
|
|
10776
|
+
addColumnIfMissing24(db, "delivery_updated_at", "TEXT");
|
|
10777
|
+
addColumnIfMissing24(db, "acp_base_url", "TEXT");
|
|
10778
|
+
addColumnIfMissing24(db, "acp_target_agent_name", "TEXT");
|
|
10779
|
+
addColumnIfMissing24(db, "acp_timeout_ms", "INTEGER");
|
|
10780
|
+
addColumnIfMissing24(db, "acp_metadata_json", "TEXT");
|
|
10781
|
+
db.exec(`
|
|
10782
|
+
UPDATE cross_agent_messages
|
|
10783
|
+
SET delivery_state = CASE delivery_status
|
|
10784
|
+
WHEN 'delivered' THEN 'delivered'
|
|
10785
|
+
WHEN 'failed' THEN 'failed'
|
|
10786
|
+
ELSE 'pending'
|
|
10787
|
+
END
|
|
10788
|
+
WHERE delivery_state = 'pending';
|
|
10789
|
+
|
|
10790
|
+
UPDATE cross_agent_messages
|
|
10791
|
+
SET delivery_attempt_id = id
|
|
10792
|
+
WHERE delivery_attempt_id IS NULL;
|
|
10793
|
+
|
|
10794
|
+
UPDATE cross_agent_messages
|
|
10795
|
+
SET delivery_updated_at = created_at
|
|
10796
|
+
WHERE delivery_updated_at IS NULL;
|
|
10797
|
+
|
|
10798
|
+
CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
|
|
10799
|
+
ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
|
|
10800
|
+
`);
|
|
10801
|
+
}
|
|
10758
10802
|
var MIGRATIONS = [
|
|
10759
10803
|
{
|
|
10760
10804
|
version: 1,
|
|
@@ -11680,6 +11724,20 @@ var MIGRATIONS = [
|
|
|
11680
11724
|
artifacts: {
|
|
11681
11725
|
tables: ["cross_agent_messages", "cross_agent_message_receipts"]
|
|
11682
11726
|
}
|
|
11727
|
+
},
|
|
11728
|
+
{
|
|
11729
|
+
version: 116,
|
|
11730
|
+
name: "acp-delivery-reconciliation",
|
|
11731
|
+
up: up116,
|
|
11732
|
+
artifacts: {
|
|
11733
|
+
columns: [
|
|
11734
|
+
{ table: "cross_agent_messages", column: "delivery_state" },
|
|
11735
|
+
{ table: "cross_agent_messages", column: "delivery_attempt_id" },
|
|
11736
|
+
{ table: "cross_agent_messages", column: "delivery_lease_expires_at" },
|
|
11737
|
+
{ table: "cross_agent_messages", column: "acp_base_url" },
|
|
11738
|
+
{ table: "cross_agent_messages", column: "acp_target_agent_name" }
|
|
11739
|
+
]
|
|
11740
|
+
}
|
|
11683
11741
|
}
|
|
11684
11742
|
];
|
|
11685
11743
|
var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
|
|
@@ -12264,6 +12322,9 @@ class SignetClientP2 {
|
|
|
12264
12322
|
async acknowledgeAgentMessage(messageId, opts) {
|
|
12265
12323
|
return this.transport.post(`/api/cross-agent/messages/${encodeURIComponent(messageId)}/ack`, opts ?? {});
|
|
12266
12324
|
}
|
|
12325
|
+
async retryAgentMessage(messageId, opts) {
|
|
12326
|
+
return this.transport.post(`/api/cross-agent/messages/${encodeURIComponent(messageId)}/retry`, opts ?? {});
|
|
12327
|
+
}
|
|
12267
12328
|
predictorDeprecated() {
|
|
12268
12329
|
throw new Error("Signet predictor APIs were removed in v0.112. Use memory search telemetry and pipeline diagnostics instead.");
|
|
12269
12330
|
}
|