···7272zig zen
7373```
74747575-Use `just invite` for admin-minted invite codes and `just bench ...` for local
7575+Use `just invite` for admin-minted invite codes. Assume `ZDS_ADMIN_TOKEN` is
7676+set in the repo `.env`; source it before running the target, for example
7777+`set -a; . ./.env; set +a; just invite`. Use `just bench ...` for local
7678performance probes. Keep commits small. Amend only when asked. Do not revert
7779user or sibling-repo changes unless asked.
+6-4
docs/invite-codes.md
···4747requests cannot both consume a one-use code.
48484949When invite-required mode starts against an empty database, ZDS creates one
5050-bootstrap code and logs it. After that, mint codes through the XRPC endpoint:
5050+bootstrap code and logs it. After that, mint codes through the XRPC endpoint.
5151+For local admin operations, assume `ZDS_ADMIN_TOKEN` is set in the repo `.env`
5252+and source it before running the Just target:
51535254```sh
5353-ZDS_ADMIN_TOKEN='...' just invite https://pds.zat.dev
5555+set -a; . ./.env; set +a; just invite https://pds.zat.dev
5456```
55575658For a multi-use code:
57595860```sh
5959-ZDS_ADMIN_TOKEN='...' just invite https://pds.zat.dev 3
6161+set -a; . ./.env; set +a; just invite https://pds.zat.dev 3
6062```
61636264For a code assigned to a specific DID:
63656466```sh
6565-ZDS_ADMIN_TOKEN='...' just invite https://pds.zat.dev 1 did:plc:...
6767+set -a; . ./.env; set +a; just invite https://pds.zat.dev 1 did:plc:...
6668```
67696870## reference notes