@pmate/cli 0.29.11 → 0.30.1
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 +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +486 -402
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -234,3 +234,15 @@ Notes:
|
|
|
234
234
|
- `pmate vercel` is a thin wrapper around the installed `vercel` CLI.
|
|
235
235
|
- v1 only supports `vercel.scope` in PMate config.
|
|
236
236
|
- `pmate vercel deploys` requires `--project <name>`.
|
|
237
|
+
# App-scoped access logs
|
|
238
|
+
|
|
239
|
+
Developers access logs use the same authenticated API as `dev.pmate.chat`, so CLI users cannot bypass App-Service associations or `pmate:dev` authorization by reading the Indexer directly.
|
|
240
|
+
|
|
241
|
+
```sh
|
|
242
|
+
pmate service log pmate:developers-api --app pmate:developers --page 0 --json
|
|
243
|
+
pmate service log pmate:developers-api --app pmate:developers --search http.access --since-ms 1790000000000 --json
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Pages are zero-based. `--search` searches the last 24 hours; the ordinary list follows the Indexer's retention window (currently seven days). `--since-ms` is an epoch-millisecond lower bound. This mode does not accept `--env`, `--follow`, `--history`, or `--base-url`: environment filtering and follow are not implemented by the shared API and are never silently ignored. Without `--app`, the existing operational service-log command is unchanged.
|
|
247
|
+
|
|
248
|
+
A current CLI session is exchanged in memory for `pmate:developers`; the active App and session file are not changed. If login is required, run `pmate login --app pmate:developers`. Access denial never falls back to anonymous log reads. Neither source nor exchanged tokens are printed.
|