@a2a-exposed/control-core 0.8.21 → 0.8.23

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 CHANGED
@@ -3035,6 +3035,12 @@ var conversation_peer_owner_default = "-- One row per peer. The same context id
3035
3035
  // sql-raw:/home/runner/work/a2a-exposed/a2a-exposed/worker/migrations/0013_reply_delivery.sql
3036
3036
  var reply_delivery_default = "-- One delivery outcome for one logical owner reply. The key includes the inbound turn and reply content,\n-- so an HTTP/MCP retry is idempotent while a later peer message permits the same words to be sent again.\nCREATE TABLE IF NOT EXISTS reply_deliveries (\n delivery_key TEXT PRIMARY KEY,\n task_id TEXT NOT NULL,\n message_id TEXT NOT NULL,\n result_json TEXT,\n created_at TEXT NOT NULL,\n updated_at TEXT NOT NULL\n);\nCREATE INDEX IF NOT EXISTS reply_deliveries_task ON reply_deliveries(task_id, created_at);\n";
3037
3037
 
3038
+ // sql-raw:/home/runner/work/a2a-exposed/a2a-exposed/worker/migrations/0014_peer_address.sql
3039
+ var peer_address_default = "-- Pairing identity and the last verified callback address. Existing rows stay valid: every new column is nullable,\n-- so a peer paired before this migration keeps its token and has no callback until it announces one.\nALTER TABLE peers ADD COLUMN identity_key TEXT;\nALTER TABLE peers ADD COLUMN card_url TEXT;\nALTER TABLE peers ADD COLUMN previous_card_url TEXT;\nALTER TABLE peers ADD COLUMN previous_until_ms INTEGER;\n-- Sealed copy of a return token this inbox minted (source = 'reverse'). Null for every other peer.\n-- The owner API never selects this column. Export omits it.\nALTER TABLE peers ADD COLUMN token_enc TEXT;\nALTER TABLE device_requests ADD COLUMN identity_key TEXT;\n";
3040
+
3041
+ // sql-raw:/home/runner/work/a2a-exposed/a2a-exposed/worker/migrations/0015_outbound_source.sql
3042
+ var outbound_source_default = "-- Who created an outbound peer. NULL is an owner upload (`peers sync`). `announce` is a row this\n-- inbox created from a verified PeerAddressUpdate. An announcement must not repoint any other row.\nALTER TABLE outbound_peers ADD COLUMN source TEXT;\n";
3043
+
3038
3044
  // src/provision/inbox-migrations.ts
3039
3045
  var INBOX_MIGRATIONS = [
3040
3046
  { name: "0001_init.sql", sql: init_default },
@@ -3049,7 +3055,9 @@ var INBOX_MIGRATIONS = [
3049
3055
  { name: "0010_conversation_peer.sql", sql: conversation_peer_default },
3050
3056
  { name: "0011_conversation_owner.sql", sql: conversation_owner_default },
3051
3057
  { name: "0012_conversation_peer_owner.sql", sql: conversation_peer_owner_default },
3052
- { name: "0013_reply_delivery.sql", sql: reply_delivery_default }
3058
+ { name: "0013_reply_delivery.sql", sql: reply_delivery_default },
3059
+ { name: "0014_peer_address.sql", sql: peer_address_default },
3060
+ { name: "0015_outbound_source.sql", sql: outbound_source_default }
3053
3061
  ];
3054
3062
 
3055
3063
  // sql-raw:/home/runner/work/a2a-exposed/a2a-exposed/control/migrations/0001_auth.sql
@@ -25,8 +25,9 @@ export interface OwnerCall {
25
25
  /** Allowlisted query parameters only. */
26
26
  query?: Record<string, string>;
27
27
  /**
28
- * Tool arguments for `POST /owner/mcp/send`, `POST /owner/mcp/reply`, and `POST /owner/mcp/mark_working`.
29
- * Any other call refuses a body.
28
+ * Tool arguments for `POST /owner/mcp/send`, `POST /owner/mcp/reply`, `POST /owner/mcp/mark_working`,
29
+ * and `POST /owner/mcp/announce_address`. `PUT /owner/outbound-peers/:alias`, `PUT /owner/address-forward`,
30
+ * and `POST /owner/peers/announce` also take a body. Any other call refuses a body.
30
31
  */
31
32
  body?: unknown;
32
33
  /** Approve or deny after a recent sign-in. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2a-exposed/control-core",
3
- "version": "0.8.21",
3
+ "version": "0.8.23",
4
4
  "description": "A2A endpoint provisioning, routing, and D1 migrations for a2a-exposed.",
5
5
  "type": "module",
6
6
  "scripts": {