@alook/daemon 0.1.2 → 0.1.3
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 +10 -6
- package/dist/cli/index.js +10538 -7804
- package/dist/index.js +3220 -296
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -155,7 +155,7 @@ src/
|
|
|
155
155
|
credentials/
|
|
156
156
|
credentialProxy.ts # CredentialBroker (mint/revoke/check per-voucher vouchers) + local key-swapping proxy
|
|
157
157
|
scripts/
|
|
158
|
-
daemon.ts #
|
|
158
|
+
daemon.ts # local entry: delegates to the canonical `alook daemon` parser
|
|
159
159
|
```
|
|
160
160
|
|
|
161
161
|
## Host orchestration (manager + server)
|
|
@@ -311,11 +311,15 @@ curl -s -X POST http://localhost:3000/api/community/daemon/activate \
|
|
|
311
311
|
-d '{"hostname":"my-laptop","platform":"darwin","arch":"arm64"}'
|
|
312
312
|
# → { "credential": "cmk_…", "machineId": "cm_…", "expiresAt": null }
|
|
313
313
|
|
|
314
|
-
# 3. Start
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
314
|
+
# 3. Start it detached (the default):
|
|
315
|
+
pnpm run daemon -- start --machine-key cmk_… \
|
|
316
|
+
--server-url http://localhost:3000 \
|
|
317
|
+
--ws-url ws://localhost:8789
|
|
318
|
+
|
|
319
|
+
# Keep it attached for local debugging:
|
|
320
|
+
pnpm run daemon -- start --foreground --machine-key cmk_… \
|
|
321
|
+
--server-url http://localhost:3000 \
|
|
322
|
+
--ws-url ws://localhost:8789
|
|
319
323
|
```
|
|
320
324
|
|
|
321
325
|
A bot bound to this machine (via the community UI/API) can now be woken by
|