clawdentity 0.0.24 → 0.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawdentity",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: clawdentity_openclaw_relay
3
3
  description: This skill should be used when the user asks to "set up Clawdentity relay", "pair two agents", "verify an agent token", "rotate API key", "refresh agent auth", "revoke an agent", "troubleshoot relay", "uninstall connector service", "check relay health", "run relay doctor", "test relay connection", "send relay test", "install relay skill", "bootstrap registry", "create onboarding invite", "decommission agent", or needs OpenClaw relay onboarding, lifecycle management, or pairing workflows.
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  ---
6
6
 
7
7
  # Clawdentity OpenClaw Relay Skill
@@ -258,6 +258,9 @@ Use `--no-runtime-start` when the connector runs as a separate container or proc
258
258
  - At this point the agent is ready to start pairing or accept pairing.
259
259
 
260
260
  8. Pairing phase (separate from onboarding).
261
+ - Prerequisites (must be satisfied before any `pair` command):
262
+ - `humanName` must be set in local config. It is set automatically by `invite redeem --display-name`; if missing, set it with `clawdentity config set humanName <name>`. If absent, CLI fails with `CLI_PAIR_HUMAN_NAME_MISSING`.
263
+ - Proxy URL is auto-resolved by CLI (env → config → registry metadata). Do not ask the user for a proxy URL.
261
264
  - Required default initiator flow:
262
265
  - `clawdentity pair start <agent-name> --qr --wait`
263
266
  - Optional overrides: `--ttl-seconds <seconds>`, `--qr-output <path>`, `--wait-seconds <seconds>`, `--poll-interval-seconds <seconds>`
@@ -270,8 +273,9 @@ Use `--no-runtime-start` when the connector runs as a separate container or proc
270
273
  - Cannot provide both `--qr-file` and `--ticket` simultaneously.
271
274
  - Pair confirm auto-saves peer DID/proxy mapping locally from QR ticket metadata.
272
275
  - Pair start/confirm/status exchange profile metadata:
273
- - `initiatorProfile = { agentName, humanName }`
274
- - `responderProfile = { agentName, humanName }`
276
+ - `initiatorProfile = { agentName, humanName, proxyOrigin? }`
277
+ - `responderProfile = { agentName, humanName, proxyOrigin? }`
278
+ - These are NOT CLI flags. The CLI auto-constructs them from `config.humanName` and the `<agent-name>` argument. Do not pass or ask for these values.
275
279
  - Local peer entries in `~/.clawdentity/peers.json` should include:
276
280
  - `did`
277
281
  - `proxyUrl`
@@ -382,6 +386,9 @@ Do not ask for relay invite codes.
382
386
  Do not ask for `clawd1_...` values.
383
387
  Do not state that API key is required before invite redeem.
384
388
  Do not suggest switching endpoints unless user explicitly asks for endpoint changes.
389
+ Do not ask for proxy URL — it is auto-resolved by CLI from env, config, and registry metadata.
390
+ Do not ask for `initiatorProfile` or `responderProfile` — CLI auto-constructs these internally.
391
+ Do not re-ask for human display name if onboarding (invite redeem) was already completed.
385
392
 
386
393
  ## Failure Handling
387
394
 
@@ -396,6 +403,8 @@ Do not suggest switching endpoints unless user explicitly asks for endpoint chan
396
403
  - `CLI_PAIR_STATUS_WAIT_TIMEOUT`: responder did not confirm in time. Re-run `pair start`.
397
404
  - `CLI_PAIR_CONFIRM_INPUT_CONFLICT`: cannot provide both `--ticket` and `--qr-file`. Use one path only.
398
405
  - `CLI_PAIR_PROXY_URL_MISMATCH`: local `proxyUrl` does not match registry metadata. Rerun `clawdentity invite redeem <clw_inv_...>`.
406
+ - `CLI_PAIR_HUMAN_NAME_MISSING`: local config is missing `humanName`. Set via `clawdentity invite redeem <clw_inv_...> --display-name <name>` or `clawdentity config set humanName <name>`.
407
+ - `CLI_PAIR_TICKET_ISSUER_MISMATCH`: pairing ticket was issued by a different proxy than the currently configured one. Set `proxyUrl` to match the ticket issuer: `clawdentity config set proxyUrl <issuer-url>`.
399
408
  - Responder shows peer but initiator does not:
400
409
  - Cause: initiator started pairing without `--wait`.
401
410
  - Fix: run `clawdentity pair status <initiator-agent> --ticket <clwpair1_...> --wait` on initiator.
@@ -65,6 +65,8 @@ Current pairing contract is ticket-based with CLI support:
65
65
  }
66
66
  ```
67
67
 
68
+ > **Agent note:** `initiatorProfile` is auto-constructed by CLI from `config.humanName` and the `<agent-name>` argument. Do not pass or ask for this value.
69
+
68
70
  2. Responder confirms pairing:
69
71
  - CLI: `clawdentity pair confirm <agent-name> --qr-file <path>`
70
72
  - proxy route: `POST /pair/confirm`
@@ -82,6 +84,8 @@ Current pairing contract is ticket-based with CLI support:
82
84
  }
83
85
  ```
84
86
 
87
+ > **Agent note:** `responderProfile` is auto-constructed by CLI from `config.humanName` and the `<agent-name>` argument. Do not pass or ask for this value.
88
+
85
89
  Rules:
86
90
  - `ticket` is one-time and expires (default 5 minutes, max 15 minutes).
87
91
  - Confirm establishes mutual trust for the initiator/responder pair.
@@ -177,6 +181,8 @@ CLI resolves proxy URL in this order (first non-empty wins):
177
181
  3. Registry metadata from `GET /v1/metadata`
178
182
  4. Error when configured proxy does not match metadata (`CLI_PAIR_PROXY_URL_MISMATCH`) or metadata lookup fails
179
183
 
184
+ > **Agent note:** Proxy URL resolution is fully automatic. Do not ask the user for a proxy URL. The CLI resolves it from env, config, or registry metadata without user input.
185
+
180
186
  ### Metadata expectation
181
187
 
182
188
  Registry metadata (`/v1/metadata`) should return a valid `proxyUrl`.
@@ -229,7 +235,7 @@ The connector `deliver` frame includes `fromAgentDid` as a top-level field. Inbo
229
235
  | 503 | `PROXY_PAIR_OWNERSHIP_UNAVAILABLE` | Registry ownership lookup unavailable | Check proxy/registry service auth configuration |
230
236
  | — | `CLI_PAIR_AGENT_NOT_FOUND` | Agent ait.jwt or secret.key missing/empty | Run `agent create` or `agent auth refresh` |
231
237
  | — | `CLI_PAIR_HUMAN_NAME_MISSING` | Local config is missing `humanName` | Set via `invite redeem` or config |
232
- | — | `CLI_PAIR_PROXY_URL_REQUIRED` | Proxy URL could not be resolved | Run `invite redeem` or set `CLAWDENTITY_PROXY_URL` |
238
+ | — | `CLI_PAIR_PROXY_URL_INVALID` | Configured proxy URL is malformed | Fix proxy URL: `clawdentity config set proxyUrl <url>` |
233
239
  | — | `CLI_PAIR_START_INVALID_TTL` | ttlSeconds must be a positive integer | Use valid `--ttl-seconds` value |
234
240
  | — | `CLI_PAIR_INVALID_PROXY_URL` | Proxy URL is invalid | Fix proxy URL in config |
235
241
  | — | `CLI_PAIR_REQUEST_FAILED` | Unable to connect to proxy URL | Check DNS, firewall, proxy URL |
@@ -250,6 +256,7 @@ The connector `deliver` frame includes `fromAgentDid` as a top-level field. Inbo
250
256
  | — | `CLI_PAIR_CONFIRM_FAILED` | Generic pair confirm failure | Retry with new ticket |
251
257
  | — | `CLI_PAIR_CONFIRM_QR_FILE_INVALID` | QR image file corrupt or unsupported | Request new QR from initiator |
252
258
  | — | `CLI_PAIR_CONFIRM_QR_FILE_REQUIRED` | QR path unusable | Verify file path and format |
259
+ | — | `CLI_PAIR_TICKET_ISSUER_MISMATCH` | Ticket issuer does not match configured proxy URL | `clawdentity config set proxyUrl <issuer-url>` and retry |
253
260
 
254
261
  ### `pair status` errors
255
262
 
@@ -259,6 +266,8 @@ The connector `deliver` frame includes `fromAgentDid` as a top-level field. Inbo
259
266
  | — | `CLI_PAIR_STATUS_WAIT_TIMEOUT` | Wait polling timed out | Generate new ticket via `pair start` |
260
267
  | — | `CLI_PAIR_STATUS_FORBIDDEN` | 403 on status check — ownership mismatch | Verify correct agent |
261
268
  | — | `CLI_PAIR_STATUS_TICKET_REQUIRED` | Missing ticket argument | Provide `--ticket <clwpair1_...>` |
269
+ | — | `CLI_PAIR_STATUS_WAIT_INVALID` | Wait/poll option is not a positive integer | Use a valid positive integer for `--wait-seconds` or `--poll-interval-seconds` |
270
+ | — | `CLI_PAIR_TICKET_ISSUER_MISMATCH` | Ticket issuer does not match configured proxy URL | `clawdentity config set proxyUrl <issuer-url>` and retry |
262
271
 
263
272
  ### Peer persistence errors
264
273