@alook/daemon 0.1.2 → 0.1.4

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.
Files changed (4) hide show
  1. package/README.md +10 -6
  2. package/dist/cli/index.js +10544 -7804
  3. package/dist/index.js +3220 -296
  4. 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 # DAEMON process: thin launcher wraps `alook daemon start` for local dev
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 the daemon with that credential:
315
- ALOOK_MACHINE_KEY=cmk_… \
316
- ALOOK_SERVER_URL=http://localhost:3000 \
317
- ALOOK_SERVER_WS_URL=ws://localhost:8789 \
318
- pnpm run daemon
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