signetai 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/mcp-stdio.js CHANGED
@@ -47524,6 +47524,50 @@ function up115(db) {
47524
47524
  ON cross_agent_message_receipts(agent_id, acknowledged_at, message_id);
47525
47525
  `);
47526
47526
  }
47527
+ function hasColumn21(db, table, column) {
47528
+ return db.prepare(`PRAGMA table_info(${table})`).all().some((row) => row.name === column);
47529
+ }
47530
+ function addColumnIfMissing24(db, column, definition) {
47531
+ if (!hasColumn21(db, "cross_agent_messages", column)) {
47532
+ db.exec(`ALTER TABLE cross_agent_messages ADD COLUMN ${column} ${definition}`);
47533
+ }
47534
+ }
47535
+ function up116(db) {
47536
+ const table = db.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = 'cross_agent_messages'").get();
47537
+ if (table == null)
47538
+ return;
47539
+ addColumnIfMissing24(db, "delivery_state", "TEXT NOT NULL DEFAULT 'pending'");
47540
+ addColumnIfMissing24(db, "delivery_attempt_id", "TEXT");
47541
+ addColumnIfMissing24(db, "delivery_attempts", "INTEGER NOT NULL DEFAULT 0");
47542
+ addColumnIfMissing24(db, "delivery_lease_token", "TEXT");
47543
+ addColumnIfMissing24(db, "delivery_lease_expires_at", "TEXT");
47544
+ addColumnIfMissing24(db, "delivery_attempt_started_at", "TEXT");
47545
+ addColumnIfMissing24(db, "delivery_updated_at", "TEXT");
47546
+ addColumnIfMissing24(db, "acp_base_url", "TEXT");
47547
+ addColumnIfMissing24(db, "acp_target_agent_name", "TEXT");
47548
+ addColumnIfMissing24(db, "acp_timeout_ms", "INTEGER");
47549
+ addColumnIfMissing24(db, "acp_metadata_json", "TEXT");
47550
+ db.exec(`
47551
+ UPDATE cross_agent_messages
47552
+ SET delivery_state = CASE delivery_status
47553
+ WHEN 'delivered' THEN 'delivered'
47554
+ WHEN 'failed' THEN 'failed'
47555
+ ELSE 'pending'
47556
+ END
47557
+ WHERE delivery_state = 'pending';
47558
+
47559
+ UPDATE cross_agent_messages
47560
+ SET delivery_attempt_id = id
47561
+ WHERE delivery_attempt_id IS NULL;
47562
+
47563
+ UPDATE cross_agent_messages
47564
+ SET delivery_updated_at = created_at
47565
+ WHERE delivery_updated_at IS NULL;
47566
+
47567
+ CREATE INDEX IF NOT EXISTS idx_cross_agent_messages_delivery_reconciliation
47568
+ ON cross_agent_messages(delivery_path, delivery_state, delivery_lease_expires_at, delivery_updated_at);
47569
+ `);
47570
+ }
47527
47571
  var MIGRATIONS = [
47528
47572
  {
47529
47573
  version: 1,
@@ -48449,6 +48493,20 @@ var MIGRATIONS = [
48449
48493
  artifacts: {
48450
48494
  tables: ["cross_agent_messages", "cross_agent_message_receipts"]
48451
48495
  }
48496
+ },
48497
+ {
48498
+ version: 116,
48499
+ name: "acp-delivery-reconciliation",
48500
+ up: up116,
48501
+ artifacts: {
48502
+ columns: [
48503
+ { table: "cross_agent_messages", column: "delivery_state" },
48504
+ { table: "cross_agent_messages", column: "delivery_attempt_id" },
48505
+ { table: "cross_agent_messages", column: "delivery_lease_expires_at" },
48506
+ { table: "cross_agent_messages", column: "acp_base_url" },
48507
+ { table: "cross_agent_messages", column: "acp_target_agent_name" }
48508
+ ]
48509
+ }
48452
48510
  }
48453
48511
  ];
48454
48512
  var LATEST_SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1]?.version ?? 0;
@@ -56289,6 +56347,20 @@ async function createMcpServer(opts) {
56289
56347
  }
56290
56348
  return textResult(result.data);
56291
56349
  });
56350
+ registerMcpTool(server, "agent_message_retry", {
56351
+ title: "Retry ACP Agent Message",
56352
+ description: "Retry an indeterminate ACP delivery with the same durable idempotency key; retries are bounded.",
56353
+ inputSchema: exports_external.object({
56354
+ message_id: exports_external.string().describe("Message id returned by agent_message_send"),
56355
+ agent_id: exports_external.string().optional().describe("Sending agent id (defaults to authenticated scope/current agent)")
56356
+ }),
56357
+ annotations: { readOnlyHint: false }
56358
+ }, async ({ message_id, agent_id }) => {
56359
+ const result = await fetchDaemon(baseUrl, `/api/cross-agent/messages/${encodeURIComponent(message_id)}/retry`, { method: "POST", body: { agentId: agent_id } });
56360
+ if (!result.ok)
56361
+ return errorResult(`Retry failed: ${result.error}`);
56362
+ return textResult(result.data);
56363
+ });
56292
56364
  registerMcpTool(server, "agent_message_inbox", {
56293
56365
  title: "Read Agent Inbox",
56294
56366
  description: "Read recent cross-agent messages for the current or specified agent.",
@@ -1,43 +1,43 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "version": "0.184.0",
3
+ "version": "0.185.0",
4
4
  "assets": [
5
5
  {
6
6
  "name": "signet-darwin-arm64",
7
7
  "platform": "darwin-arm64",
8
- "sha256": "30e4674b6d6be5b773f95a1d1d17be95c5b685d82a532aa90c178efea0713e3a",
9
- "size": 117342112
8
+ "sha256": "918abf28fd99aa2352a783e9f60474e51f1717e708d66a9952f94c5a7f5d7211",
9
+ "size": 117408160
10
10
  },
11
11
  {
12
12
  "name": "signet-darwin-x64",
13
13
  "platform": "darwin-x64",
14
- "sha256": "0e60352eeea0b2c0c197609694558f56fb233cb41a2c891e193dcfa7b393ded7",
15
- "size": 121965120
14
+ "sha256": "e5ed9de595a60bbe1664d297576e21f91e43a6db46b7d151621000a466528a1b",
15
+ "size": 122030656
16
16
  },
17
17
  {
18
18
  "name": "signet-linux-arm64",
19
19
  "platform": "linux-arm64",
20
- "sha256": "768e694192cd37ccc8ffb67c27d66aece433b5b196e82d4b5665664e99582ad6",
21
- "size": 154572250
20
+ "sha256": "2a8bcd6bc49c7af1213a47e1148bdd19dc736593b03f299fa2c53ea62403810c",
21
+ "size": 154640572
22
22
  },
23
23
  {
24
24
  "name": "signet-linux-x64",
25
25
  "platform": "linux-x64",
26
- "sha256": "d518d9160d952ff727540f67b7b077fa02c61bfceb02c6454fde8d57f8ea8958",
27
- "size": 155131235
26
+ "sha256": "ac821111e0b41b48e31ed84475ed4435cf649cb55a2cffb41b0f25ffcf7810c9",
27
+ "size": 155199557
28
28
  },
29
29
  {
30
30
  "name": "signet-win32-x64.exe",
31
31
  "platform": "win32-x64",
32
- "sha256": "d3098098cc57781265275bb98990ec954653c70c57380030975fbfebe25bd41e",
33
- "size": 171264512
32
+ "sha256": "e2c7932701822ce2b98c2e870f16ccd8a6f03157f4cf11d0421e73e7f43fb6fa",
33
+ "size": 171332608
34
34
  }
35
35
  ],
36
36
  "components": {
37
37
  "connectors": {
38
- "url": "signet-connectors-0.184.0.tar.gz",
39
- "sha256": "d2fb01030725dae9197be2cf2556e4e22d146b83f76f0270f09d60e49215aeb0",
40
- "size": 16794
38
+ "url": "signet-connectors-0.185.0.tar.gz",
39
+ "sha256": "5e616ce51d31d95c1e25f46b6934ec210962c1bde100d451a687cce101849d90",
40
+ "size": 16792
41
41
  }
42
42
  }
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "signetai",
3
- "version": "0.184.0",
3
+ "version": "0.185.0",
4
4
  "description": "Signet native CLI installer wrapper",
5
5
  "type": "module",
6
6
  "bin": {
@@ -65,10 +65,10 @@
65
65
  "access": "public"
66
66
  },
67
67
  "optionalDependencies": {
68
- "signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.184.0/signetai-darwin-arm64-0.184.0.tgz",
69
- "signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.184.0/signetai-darwin-x64-0.184.0.tgz",
70
- "signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.184.0/signetai-linux-arm64-0.184.0.tgz",
71
- "signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.184.0/signetai-linux-x64-0.184.0.tgz",
72
- "signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.184.0/signetai-win32-x64-0.184.0.tgz"
68
+ "signetai-darwin-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.185.0/signetai-darwin-arm64-0.185.0.tgz",
69
+ "signetai-darwin-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.185.0/signetai-darwin-x64-0.185.0.tgz",
70
+ "signetai-linux-arm64": "https://github.com/Signet-AI/signetai/releases/download/v0.185.0/signetai-linux-arm64-0.185.0.tgz",
71
+ "signetai-linux-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.185.0/signetai-linux-x64-0.185.0.tgz",
72
+ "signetai-win32-x64": "https://github.com/Signet-AI/signetai/releases/download/v0.185.0/signetai-win32-x64-0.185.0.tgz"
73
73
  }
74
74
  }