@knowttl/mg-axi 0.1.4 → 0.1.7

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.
@@ -17,15 +17,16 @@ See [README.md](../../README.md) for write usage, execution gates, identity pinn
17
17
  Run commands non-interactively as `npx -y @knowttl/mg-axi ...`: no global install needed and no interactive prompts.
18
18
  Version pinning is the installer's choice: use `npx -y @knowttl/mg-axi@<version> ...` to select a specific release.
19
19
  Run `npx -y @knowttl/mg-axi doctor` first.
20
- See [README.md](../../README.md#release) for doctor profile selection, checks and failure behavior.
20
+ See [README.md](../../README.md#usage) for doctor profile selection, checks and failure behavior.
21
21
 
22
22
  ## Orientation
23
23
 
24
24
  The exact current leaf registry is `src/catalogue.ts`.
25
25
  Its capability label is `native` (implemented by an mg-axi handler).
26
- Its effect is `read` for Graph read leaves and the doctor health check, `write` for the gated named writes, or `local` for home, profile, login and setup views.
26
+ Its effect is `read` for Graph read leaves and the doctor health check, `write` for the gated named writes, or `local` for home, profile, auth, config path, login-alias and setup views.
27
27
  Doctor acquires credentials silently and contacts Graph; only its help view stays offline.
28
28
  The list below records current executable leaves; it makes no coverage claim for other Graph operations.
29
+ Graph v1.0 does not support the legacy `entra scoped-role-membership list/show`, `entra domain-dns-record list` or `entra directory-object list` routes; those commands fail locally with supported alternatives and their root routes are not available through `api get`.
29
30
  See `docs/coverage.md` for the per-operation disposition records.
30
31
  `docs/coverage.md` and this file are generated from the same catalogue and inventory sources; `node tools/generate-docs.mjs --check` fails when they are stale.
31
32
 
@@ -36,7 +37,7 @@ See `docs/coverage.md` for the per-operation disposition records.
36
37
  | `mg-axi profile create` | native | local |
37
38
  | `mg-axi profile list` | native | local |
38
39
  | `mg-axi profile show` | native | local |
39
- | `mg-axi login` | native | local |
40
+ | `mg-axi auth login` | native | local |
40
41
  | `mg-axi setup` | native | local |
41
42
  | `mg-axi setup hooks` | native | local |
42
43
  | `mg-axi doctor` | native | read |
@@ -307,6 +308,10 @@ See `docs/coverage.md` for the per-operation disposition records.
307
308
  | `mg-axi entra lifecycle run task-processing-result show` | native | read |
308
309
  | `mg-axi entra lifecycle run task-processing-result count` | native | read |
309
310
  | `mg-axi api get` | native | read |
311
+ | `mg-axi login` | native | local |
312
+ | `mg-axi config path` | native | local |
313
+ | `mg-axi auth status` | native | local |
314
+ | `mg-axi auth logout` | native | local |
310
315
  <!-- command-registry:end -->
311
316
 
312
317
  Run `npx -y @knowttl/mg-axi <leaf-path> --help` for that leaf's accepted flags and reference.
@@ -318,7 +323,7 @@ The no-args home view prints these hints alongside live profile status:
318
323
 
319
324
  ```sh
320
325
  npx -y @knowttl/mg-axi profile list
321
- npx -y @knowttl/mg-axi login --help
326
+ npx -y @knowttl/mg-axi auth login --help
322
327
  npx -y @knowttl/mg-axi setup
323
328
  npx -y @knowttl/mg-axi doctor
324
329
  npx -y @knowttl/mg-axi entra user list --help
@@ -333,18 +338,18 @@ npx -y @knowttl/mg-axi api get --help
333
338
 
334
339
  ## Setup (explicit only)
335
340
 
336
- Follow [release guidance](../../README.md#release) for npm installation and explicit skill installation; [README.md](../../README.md#mg-axi) also documents checkout builds.
341
+ Follow [installation guidance](../../README.md#quick-start) for npm installation and explicit skill installation; [README.md](../../README.md#development--testing) also documents checkout builds.
337
342
  Create profiles explicitly and keep secrets out of argv and config files:
338
343
 
339
344
  ```sh
340
345
  npx -y @knowttl/mg-axi setup # build steps, config path and capabilities; writes nothing
341
346
  npx -y @knowttl/mg-axi profile create --name soc --tenant <tenant-id> --client <client-id> --cloud commercial
342
- npx -y @knowttl/mg-axi login --profile soc --scopes https://graph.microsoft.com/User.Read.All
347
+ npx -y @knowttl/mg-axi auth login --profile soc --scopes https://graph.microsoft.com/User.Read.All
343
348
  npx -y @knowttl/mg-axi doctor # one bounded read per selected profile
344
349
  npx -y @knowttl/mg-axi entra user list --profile soc --limit 10
345
350
  ```
346
351
 
347
- Configuration defaults to `~/.mg-axi/config.json`; `MG_AXI_CONFIG` selects a separate file.
352
+ Configuration uses the XDG config directory (default `~/.config/mg-axi/config.json`), or `%APPDATA%\mg-axi\config.json` on Windows; `--config` overrides `MG_AXI_CONFIG`.
348
353
  `mg-axi setup` shows the selected path and writes nothing.
349
354
  Application profiles authenticate headlessly through credential references: the profile names an env var or file and the environment supplies the value at acquisition time.
350
355
  Container examples for client secrets, certificate keys and workload federation live in [README.md](../../README.md#mg-axi).
@@ -366,14 +371,13 @@ No other ordinary command installs hooks, plugins or configuration.
366
371
  ## Selecting a profile
367
372
 
368
373
  Read leaves accept `--profile <name>`.
369
- Selection uses `--profile` or the configured default.
370
- Without either, read leaves report `AUTH_REQUIRED`, even if only one profile exists.
371
- Doctor selection is documented in [README.md](../../README.md#release).
374
+ Profile selection order and env-profile rules live in [README Configuration](../../README.md#configuration); an explicitly selected file profile ignores env fields.
375
+ Doctor selection is documented in [README.md](../../README.md#usage).
372
376
  Without profiles, home, setup and profile list show unconfigured state; Graph read leaves report `AUTH_REQUIRED`.
373
377
 
374
378
  ## Safety
375
379
 
376
- Reads run through a session that authorizes only catalogued operations before silent credential acquisition; only explicit `login` opens a browser or prints a device-code challenge.
380
+ Reads run through a session that authorizes only catalogued operations before silent credential acquisition; only explicit `auth login` opens a browser or prints a device-code challenge.
377
381
  Writes preview before sending and need `--execute` plus a typed `--confirm` repeating the target; an already-desired value is a no-op with exit 0, never an error.
378
382
  Output is TOON on stdout; diagnostics use stderr.
379
383
  Text truncates at 500 characters (`--full` restores text, never redaction); row caps resume through opaque cursors.