clawdentity 0.0.25 → 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/README.md +0 -11
- package/dist/bin.js +3998 -4620
- package/dist/index.js +3998 -4620
- package/package.json +1 -9
- package/skill-bundle/openclaw-skill/skill/SKILL.md +14 -15
- package/skill-bundle/openclaw-skill/skill/references/clawdentity-protocol.md +10 -1
package/package.json
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clawdentity",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/vrknetha/clawdentity"
|
|
11
|
-
},
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/vrknetha/clawdentity/issues"
|
|
14
|
-
},
|
|
15
|
-
"homepage": "https://github.com/vrknetha/clawdentity#readme",
|
|
16
8
|
"main": "./dist/index.js",
|
|
17
9
|
"types": "./dist/index.d.ts",
|
|
18
10
|
"bin": {
|
|
@@ -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.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Clawdentity OpenClaw Relay Skill
|
|
@@ -163,13 +163,10 @@ Use `--no-runtime-start` when the connector runs as a separate container or proc
|
|
|
163
163
|
- `clawdentity pair start <agent-name> --qr --ttl-seconds <seconds>`
|
|
164
164
|
- `clawdentity pair start <agent-name> --qr --wait`
|
|
165
165
|
- `clawdentity pair start <agent-name> --qr --wait --wait-seconds <seconds> --poll-interval-seconds <seconds>`
|
|
166
|
-
- `clawdentity pair start <agent-name> --qr --allow-responder <did:claw:agent:...>`
|
|
167
|
-
- `clawdentity pair start <agent-name> --qr --callback-url <https://...>`
|
|
168
166
|
- `clawdentity pair confirm <agent-name> --qr-file <path>`
|
|
169
167
|
- `clawdentity pair confirm <agent-name> --ticket <clwpair1_...>`
|
|
170
168
|
- `clawdentity pair status <agent-name> --ticket <clwpair1_...>`
|
|
171
169
|
- `clawdentity pair status <agent-name> --ticket <clwpair1_...> --wait`
|
|
172
|
-
- `clawdentity pair recover <agent-name>`
|
|
173
170
|
|
|
174
171
|
### Token verification
|
|
175
172
|
- `clawdentity verify <tokenOrFile>`
|
|
@@ -261,6 +258,9 @@ Use `--no-runtime-start` when the connector runs as a separate container or proc
|
|
|
261
258
|
- At this point the agent is ready to start pairing or accept pairing.
|
|
262
259
|
|
|
263
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.
|
|
264
264
|
- Required default initiator flow:
|
|
265
265
|
- `clawdentity pair start <agent-name> --qr --wait`
|
|
266
266
|
- Optional overrides: `--ttl-seconds <seconds>`, `--qr-output <path>`, `--wait-seconds <seconds>`, `--poll-interval-seconds <seconds>`
|
|
@@ -273,8 +273,9 @@ Use `--no-runtime-start` when the connector runs as a separate container or proc
|
|
|
273
273
|
- Cannot provide both `--qr-file` and `--ticket` simultaneously.
|
|
274
274
|
- Pair confirm auto-saves peer DID/proxy mapping locally from QR ticket metadata.
|
|
275
275
|
- Pair start/confirm/status exchange profile metadata:
|
|
276
|
-
- `initiatorProfile = { agentName, humanName }`
|
|
277
|
-
- `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.
|
|
278
279
|
- Local peer entries in `~/.clawdentity/peers.json` should include:
|
|
279
280
|
- `did`
|
|
280
281
|
- `proxyUrl`
|
|
@@ -284,11 +285,7 @@ Use `--no-runtime-start` when the connector runs as a separate container or proc
|
|
|
284
285
|
- `clawdentity pair status <agent-name> --ticket <clwpair1_...> --wait`
|
|
285
286
|
- This persists the peer on initiator after responder confirmation.
|
|
286
287
|
- Default wait timeout is 300 seconds with 3-second polling.
|
|
287
|
-
-
|
|
288
|
-
- If wait times out/cancels/fails due repeated transients, preferred recovery is:
|
|
289
|
-
- `clawdentity pair recover <agent-name>`
|
|
290
|
-
- Manual fallback remains:
|
|
291
|
-
- `clawdentity pair status <agent-name> --ticket <clwpair1_...> --wait`
|
|
288
|
+
- If `CLI_PAIR_STATUS_WAIT_TIMEOUT` is thrown: the responder did not confirm in time. Recovery: re-run `clawdentity pair start <agent-name> --qr --wait` to generate a new ticket.
|
|
292
289
|
- Confirm pairing success, then run `clawdentity openclaw relay test`.
|
|
293
290
|
- **Validate:** `~/.clawdentity/peers.json` contains the new peer alias entry.
|
|
294
291
|
|
|
@@ -389,6 +386,9 @@ Do not ask for relay invite codes.
|
|
|
389
386
|
Do not ask for `clawd1_...` values.
|
|
390
387
|
Do not state that API key is required before invite redeem.
|
|
391
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.
|
|
392
392
|
|
|
393
393
|
## Failure Handling
|
|
394
394
|
|
|
@@ -400,12 +400,11 @@ Do not suggest switching endpoints unless user explicitly asks for endpoint chan
|
|
|
400
400
|
### Pairing errors
|
|
401
401
|
- `PROXY_PAIR_TICKET_NOT_FOUND`: ticket invalid or expired. Request a new ticket from initiator.
|
|
402
402
|
- `PROXY_PAIR_TICKET_EXPIRED`: ticket has expired. Request a new ticket.
|
|
403
|
-
- `
|
|
404
|
-
- `CLI_PAIR_STATUS_WAIT_TIMEOUT`: responder did not confirm before deadline. Run `pair recover` (preferred) or `pair status --ticket ... --wait`.
|
|
405
|
-
- `CLI_PAIR_STATUS_POLL_FAILED`: transient polling failures exceeded retry budget. Run `pair recover`.
|
|
406
|
-
- `CLI_PAIR_STATUS_WAIT_CANCELLED`: wait interrupted (SIGINT). Run `pair recover`.
|
|
403
|
+
- `CLI_PAIR_STATUS_WAIT_TIMEOUT`: responder did not confirm in time. Re-run `pair start`.
|
|
407
404
|
- `CLI_PAIR_CONFIRM_INPUT_CONFLICT`: cannot provide both `--ticket` and `--qr-file`. Use one path only.
|
|
408
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>`.
|
|
409
408
|
- Responder shows peer but initiator does not:
|
|
410
409
|
- Cause: initiator started pairing without `--wait`.
|
|
411
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
|
-
| — | `
|
|
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
|
|