clawdentity 0.0.1 → 0.0.2
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
|
@@ -38,8 +38,9 @@ Use this skill when any of the following are requested:
|
|
|
38
38
|
|
|
39
39
|
## Invite Input Assumption
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
Invite creation is outside this skill scope. This skill consumes two invite types:
|
|
42
|
+
- Registry onboarding invite code (`clw_inv_...`) to obtain PAT when local API key is missing.
|
|
43
|
+
- OpenClaw peer relay invite code (`clawd1_...`) for `openclaw setup`.
|
|
43
44
|
|
|
44
45
|
## Human + Agent Flow (strict user-style)
|
|
45
46
|
|
|
@@ -63,12 +64,16 @@ Use these commands as the default execution path for skill utilization:
|
|
|
63
64
|
- or set env before init: `CLAWDENTITY_REGISTRY=<registry-url>` (supports env-based first-run override)
|
|
64
65
|
- Configure registry URL and API key when missing:
|
|
65
66
|
- `clawdentity config set registryUrl <registry-url>`
|
|
67
|
+
- Complete registry onboarding when API key is missing:
|
|
68
|
+
- `clawdentity invite redeem <registry-invite-code>`
|
|
69
|
+
- `clawdentity invite redeem <registry-invite-code> --registry-url <registry-url>`
|
|
70
|
+
- Configure API key only for non-invite fallback:
|
|
66
71
|
- `clawdentity config set apiKey <api-key>`
|
|
67
72
|
- Create and inspect local OpenClaw agent identity:
|
|
68
73
|
- `clawdentity agent create <agent-name> --framework openclaw`
|
|
69
74
|
- `clawdentity agent inspect <agent-name>`
|
|
70
75
|
- Apply OpenClaw invite setup:
|
|
71
|
-
- `clawdentity openclaw setup <agent-name> --invite-code <invite-code>`
|
|
76
|
+
- `clawdentity openclaw setup <agent-name> --invite-code <peer-relay-invite-code>`
|
|
72
77
|
- Start connector runtime for relay handoff:
|
|
73
78
|
- `clawdentity connector start <agent-name>`
|
|
74
79
|
- Optional persistent connector autostart:
|
|
@@ -92,7 +97,10 @@ Successful confirm establishes mutual trust for the two agent DIDs. After confir
|
|
|
92
97
|
|
|
93
98
|
1. Confirm prerequisites with the human.
|
|
94
99
|
- Confirm `clawdentity` CLI is installed and runnable.
|
|
95
|
-
- Confirm
|
|
100
|
+
- Confirm local agent name.
|
|
101
|
+
- Confirm OpenClaw peer relay invite code (`clawd1_...`).
|
|
102
|
+
- If API key is missing, request registry onboarding invite code (`clw_inv_...`) first.
|
|
103
|
+
- Only ask for API key when neither local API key nor registry onboarding invite code is available.
|
|
96
104
|
- Confirm OpenClaw state directory path if non-default.
|
|
97
105
|
- Confirm OpenClaw base URL if local endpoint is non-default.
|
|
98
106
|
|
|
@@ -100,24 +108,31 @@ Successful confirm establishes mutual trust for the two agent DIDs. After confir
|
|
|
100
108
|
- Ensure `~/.openclaw/workspace/skills/clawdentity-openclaw-relay/relay-to-peer.mjs` exists.
|
|
101
109
|
- If missing, install/update skill package contents before setup.
|
|
102
110
|
|
|
103
|
-
3.
|
|
111
|
+
3. Initialize local Clawdentity config.
|
|
104
112
|
- Run `clawdentity config init`.
|
|
105
|
-
-
|
|
113
|
+
- Use `clawdentity config init --registry-url <registry-url>` when registry URL override is required.
|
|
114
|
+
|
|
115
|
+
4. Complete registry onboarding auth before agent creation.
|
|
116
|
+
- If API key already exists, continue.
|
|
117
|
+
- Else redeem registry onboarding invite:
|
|
118
|
+
- `clawdentity invite redeem <registry-invite-code>`
|
|
119
|
+
- optional: `--registry-url <registry-url>`
|
|
120
|
+
- If registry invite code is unavailable, fallback to API key path:
|
|
121
|
+
- ask human for API key
|
|
122
|
+
- run `clawdentity config set apiKey <api-key>`
|
|
123
|
+
|
|
124
|
+
5. Configure local Clawdentity identity for this OpenClaw agent.
|
|
106
125
|
- Create identity: `clawdentity agent create <agent-name> --framework openclaw`.
|
|
107
126
|
- Verify identity: `clawdentity agent inspect <agent-name>`.
|
|
108
127
|
|
|
109
|
-
|
|
110
|
-
- Prompt exactly for one invite code string.
|
|
111
|
-
- Do not ask for DID/proxy URL when invite code is present.
|
|
112
|
-
|
|
113
|
-
5. Run automated setup from invite code.
|
|
128
|
+
6. Run automated setup from peer relay invite code.
|
|
114
129
|
- Execute:
|
|
115
|
-
`clawdentity openclaw setup <agent-name> --invite-code <invite-code>`
|
|
130
|
+
`clawdentity openclaw setup <agent-name> --invite-code <peer-relay-invite-code>`
|
|
116
131
|
- Use `--openclaw-dir <path>` when state directory is non-default.
|
|
117
132
|
- Use `--openclaw-base-url <url>` when local OpenClaw HTTP endpoint is non-default.
|
|
118
133
|
- Use `--peer-alias <alias>` only when alias override is required.
|
|
119
134
|
|
|
120
|
-
|
|
135
|
+
7. Verify setup outputs.
|
|
121
136
|
- Confirm setup reports:
|
|
122
137
|
- peer alias
|
|
123
138
|
- peer DID
|
|
@@ -127,17 +142,17 @@ Successful confirm establishes mutual trust for the two agent DIDs. After confir
|
|
|
127
142
|
- relay runtime config path
|
|
128
143
|
- Confirm `~/.clawdentity/openclaw-agent-name` is set to the local agent name.
|
|
129
144
|
|
|
130
|
-
|
|
145
|
+
8. Start connector runtime for local relay handoff.
|
|
131
146
|
- Run `clawdentity connector start <agent-name>`.
|
|
132
147
|
- Optional: run `clawdentity connector service install <agent-name>` for persistent autostart.
|
|
133
148
|
|
|
134
|
-
|
|
149
|
+
9. Complete trust pairing bootstrap.
|
|
135
150
|
- Run pairing start (`POST /pair/start`) from the owner/initiator side.
|
|
136
151
|
- Share returned one-time `pairingCode` with responder side.
|
|
137
152
|
- Run pairing confirm (`POST /pair/confirm`) from responder side.
|
|
138
153
|
- Confirm pairing success before relay test.
|
|
139
154
|
|
|
140
|
-
|
|
155
|
+
10. Validate with user-style relay test.
|
|
141
156
|
- Run `clawdentity openclaw doctor` to verify setup health and remediation hints.
|
|
142
157
|
- Run `clawdentity openclaw relay test --peer <alias>` to execute a probe.
|
|
143
158
|
- Confirm probe success and connector-mediated delivery logs.
|
|
@@ -146,10 +161,12 @@ Successful confirm establishes mutual trust for the two agent DIDs. After confir
|
|
|
146
161
|
## Required question policy
|
|
147
162
|
|
|
148
163
|
Ask the human only when required inputs are missing:
|
|
149
|
-
- Missing
|
|
164
|
+
- Missing local agent name.
|
|
165
|
+
- Missing peer relay invite code (`clawd1_...`).
|
|
166
|
+
- Missing registry onboarding invite code (`clw_inv_...`) when API key is absent.
|
|
167
|
+
- Missing Clawdentity API key only when registry onboarding invite code is unavailable.
|
|
150
168
|
- Unclear OpenClaw state directory.
|
|
151
169
|
- Non-default OpenClaw base URL.
|
|
152
|
-
- Missing invite code.
|
|
153
170
|
- Local connector runtime or peer network route is unknown or unreachable from agent runtime.
|
|
154
171
|
|
|
155
172
|
## Failure Handling
|
|
@@ -160,7 +177,7 @@ If setup or relay fails:
|
|
|
160
177
|
- Ensure connector runtime is active (`clawdentity connector start <agent-name>`).
|
|
161
178
|
- Re-run `clawdentity openclaw doctor`.
|
|
162
179
|
- Re-run `clawdentity openclaw relay test --peer <alias>`.
|
|
163
|
-
- Re-run the same user-style flow from step
|
|
180
|
+
- Re-run the same user-style flow from step 6 onward only after health checks pass.
|
|
164
181
|
|
|
165
182
|
## Bundled Resources
|
|
166
183
|
|