@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.
- package/README.md +303 -1268
- package/axi-credential.schema.json +65 -0
- package/dist/api.js +5 -21
- package/dist/app-auth.js +9 -4
- package/dist/auth-status.js +20 -0
- package/dist/auth.js +24 -10
- package/dist/catalogue.js +26 -20
- package/dist/cli.js +57 -26
- package/dist/credentials.js +78 -0
- package/dist/docs.js +17 -13
- package/dist/doctor.js +10 -8
- package/dist/entra-audit-logs.js +5 -4
- package/dist/entra-conditional-access.js +4 -3
- package/dist/entra-directory-objects.js +4 -5
- package/dist/entra-domains.js +4 -2
- package/dist/entra-group-lifecycle.js +3 -2
- package/dist/entra-roles.js +6 -5
- package/dist/graph-session.js +30 -14
- package/dist/hook.js +9 -32
- package/dist/msal-app-provider.js +27 -101
- package/dist/msal-provider.js +67 -54
- package/dist/mutations.js +42 -53
- package/dist/paths.js +17 -0
- package/dist/private-file.js +227 -0
- package/dist/profiles.js +180 -134
- package/dist/redact.js +26 -0
- package/dist/secrets.js +37 -0
- package/dist/setup.js +2 -2
- package/docs/coverage.md +6 -3
- package/package.json +4 -6
- package/skills/mg-axi/SKILL.md +15 -11
package/skills/mg-axi/SKILL.md
CHANGED
|
@@ -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#
|
|
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 [
|
|
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
|
|
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
|
-
|
|
370
|
-
|
|
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.
|