@knowttl/tenable-axi 0.1.3 → 0.1.5

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 CHANGED
@@ -1,363 +1,147 @@
1
1
  # tenable-axi
2
2
 
3
- Investigate Tenable One exposure through compact TOON output and explicitly guarded business writes.
4
- It uses TypeScript on Node.js 22.12 or later and is packaged as `@knowttl/tenable-axi`.
5
- This is the pre-release source; publication follows separate live acceptance and release approval.
3
+ Investigate Tenable One exposure and run explicitly guarded writes
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@knowttl/tenable-axi)](https://www.npmjs.com/package/@knowttl/tenable-axi) [![License](https://img.shields.io/github/license/knowttl/tenable-axi)](LICENSE) [![Node.js](https://img.shields.io/node/v/@knowttl/tenable-axi)](https://nodejs.org/) [![npm provenance](https://img.shields.io/badge/npm-provenance-blue)](https://www.npmjs.com/package/@knowttl/tenable-axi#provenance) [![AXI](https://img.shields.io/badge/AXI-agent%20experience-blue)](https://github.com/knowttl/axi)
6
+
7
+ [Why](#why-this-exists) · [Quickstart](#quickstart) · [Agents](#use-with-your-agent) · [Coverage](#what-it-covers) · [Safety](#safety) · [Configuration](#configuration) · [Output](#output-and-exit-codes) · [Troubleshooting](#troubleshooting) · [Contributing](#contributing) · [Security](#security) · [License](#license)
8
+
9
+ ## Why this exists
10
+
11
+ Tenable One spans inventory, attack paths and business workflows with different routes and permissions.
12
+ Agents and the humans running them need bounded evidence instead of large responses and guessed API calls.
13
+ tenable-axi exposes reviewed commands, validates responses and returns compact TOON with next-step hints.
14
+ Reads stay bounded, and writes require explicit scope, a preview and exact confirmation.
6
15
 
7
16
  ## Quickstart
8
17
 
9
- Install the released package globally, or use `npx -y @knowttl/tenable-axi` in place of `tenable-axi` once published.
10
- Until then, use the [local development commands](#development-and-testing).
18
+ Requires Node.js 22.12 or later.
19
+ Install globally, or run `npx -y @knowttl/tenable-axi` without installing:
11
20
 
12
21
  ```sh
13
22
  npm install --global @knowttl/tenable-axi
14
- tenable-axi config path
15
- tenable-axi profile list
23
+ tenable-axi
16
24
  ```
17
25
 
18
- Save this configuration at the reported config path and supply the two environment variables through your secret manager.
19
- Secret values never belong in arguments, chat, or configuration JSON.
20
-
21
- ```json
22
- {
23
- "version": 1,
24
- "defaultProfile": "example",
25
- "profiles": {
26
- "example": {
27
- "origin": "https://cloud.tenable.com",
28
- "accessKey": { "env": "TENABLE_AXI_ACCESS_KEY" },
29
- "secretKey": { "env": "TENABLE_AXI_SECRET_KEY" },
30
- "writes": { "allowWrites": false, "operations": [] }
31
- }
32
- }
33
- }
26
+ An unconfigured home stays offline and prints this excerpt:
27
+
28
+ ```text
29
+ status: not configured
34
30
  ```
35
31
 
36
- Config files must be owned regular files without group/other write access; use `chmod 600 <config-path>` on Unix.
37
- SecretRefs also accept `{"file":"/absolute/path"}` to a protected secret file with no group/other permission bits.
38
- Windows uses protected DACLs; UNC and device paths are refused.
39
- No login command, credential minting, arbitrary HTTP, alternate origin or TLS bypass is available.
32
+ Supply `TENABLE_AXI_ACCESS_KEY` and `TENABLE_AXI_SECRET_KEY` through your secret manager.
33
+ Then check local credentials and read up to ten assets:
40
34
 
41
35
  ```sh
42
- tenable-axi auth status --profile example
43
- tenable-axi doctor --profile example
44
- tenable-axi asset list --profile example --limit 10
45
- tenable-axi finding list --profile example --filter 'severity = ["HIGH"]'
36
+ tenable-axi auth status
37
+ tenable-axi asset list --limit 10
46
38
  ```
47
39
 
48
- `auth status` is local; `doctor` makes one bounded read per module and reports each module's access separately.
49
- Configured home reads up to five live exposure cards; unconfigured home stays offline.
50
- Only `https://cloud.tenable.com` is supported.
51
- Upstream licensing and the user's per-operation permissions still apply.
52
- HTTP 403 returns `PERMISSION_DENIED` with “Not licensed or not permitted for this key” and advice naming the required privilege where documented.
53
- Inventory needs `EXPOSURE_MANAGEMENT.INVENTORY.INVENTORY.READ`; inventory exports need its `EXPORT` privilege and attack exports need `EXPOSURE_MANAGEMENT.ATTACK_PATH.ATTACK_PATH.WRITE`.
54
- Connector logs have elevated permissions; their denial does not imply ordinary inventory users need Administrator.
40
+ For named profiles or file SecretRefs, run `tenable-axi config path` and follow [configuration](https://github.com/knowttl/tenable-axi/blob/main/docs/configuration.md).
41
+ Only `https://cloud.tenable.com` is supported; licensing and upstream permissions still apply.
55
42
 
56
43
  ## Use with your agent
57
44
 
58
- Install optional hooks for ambient local context after installing the binary in a stable location:
59
-
60
45
  ```sh
61
46
  tenable-axi setup hooks
62
- ```
63
-
64
- This explicit opt-in installs or repairs Claude Code and Codex SessionStart hooks and an OpenCode managed plugin.
65
- Ordinary commands never install integrations.
66
- POSIX SessionStart hooks use the first executable on PATH only if it matches this installation, otherwise retaining the absolute hook path.
67
- Windows SessionStart hooks and the OpenCode plugin invoke Node with the absolute hook script path; rerun setup after relocating Node or the installation.
68
- Repeated setup preserves unrelated integrations and makes no changes when already current.
69
- Restart the agent session after setup.
70
- The hook prints local profile/origin/write posture, resolves no secrets, and never contacts Tenable.
71
- It follows the session's `TENABLE_AXI_PROFILE` and `TENABLE_AXI_CONFIG`, so select those explicitly when working with multiple tenants.
72
- Use `tenable-axi setup hooks --scope project` for project-local hook entries and the OpenCode plugin.
73
- User setup honors `CLAUDE_CONFIG_DIR` (default `~/.claude`), `CODEX_HOME` (default `~/.codex`), and `$XDG_CONFIG_HOME/opencode` (default `~/.config/opencode`).
74
- Project hook destinations remain `.claude`, `.codex`, and `.opencode` under the working directory.
75
- Both scopes enable Codex's shared user-level hooks feature in the active `CODEX_HOME/config.toml`.
76
- No repository-local Tenable configuration is discovered automatically.
77
- To remove user hooks, remove only entries containing `tenable-axi-hook` from `settings.json` in the active Claude configuration directory and `hooks.json` in the active Codex directory, and the managed `plugins/axi-tenable-axi-hook.js` under OpenCode's active configuration directory.
78
- For project scope, remove the corresponding `.claude/settings.json`, `.codex/hooks.json` entries and `.opencode/plugins/axi-tenable-axi-hook.js` under that project.
79
- Keep unrelated entries and Codex's shared hooks feature enabled for other tools.
80
-
81
- The generated skill provides discovery on demand, with no session hook required:
82
-
83
- ```sh
84
47
  npx skills add knowttl/tenable-axi --skill tenable-axi
85
48
  ```
86
49
 
87
- Hooks and skill work independently or together.
88
- The skill uses non-interactive `npx -y @knowttl/tenable-axi` examples and ships inside the npm tarball.
89
-
90
- ## Configuration and safety
91
-
92
- Linux/macOS configuration uses absolute `$XDG_CONFIG_HOME/tenable-axi/config.json`, otherwise `~/.config/tenable-axi/config.json`.
93
- State uses absolute `$XDG_STATE_HOME/tenable-axi`, otherwise `~/.local/state/tenable-axi`.
94
- Windows uses `%APPDATA%\tenable-axi` for config and `%LOCALAPPDATA%\tenable-axi` for state, ignoring XDG.
95
- `--config` overrides `TENABLE_AXI_CONFIG`; `--profile` overrides `TENABLE_AXI_PROFILE`, then a complete environment profile, configured default, or sole profile is selected.
96
- A complete environment profile requires both `TENABLE_AXI_ACCESS_KEY` and `TENABLE_AXI_SECRET_KEY`; partial values fail rather than mixing credentials.
97
- Explicit file-selected profiles ignore environment profile fields.
98
- Environment profiles cannot enable writes.
99
- `TENABLE_AXI_READ_ONLY=1` or `true` forces read-only; `0`, `false`, or unset permits the configured policy, and other values fail closed.
100
- `TENABLE_AXI_WRITE_LOG` selects a private journal instead of the default state-directory `writes.log`.
101
-
102
- Writes require a file profile with `writes.allowWrites: true` and exact upstream operation IDs in `writes.operations`, including for previews.
103
- For example, allow only `inventory-export-assets` to preview or create asset exports.
104
- Run a write without `--execute` to inspect its redacted preview, then supply `--execute --confirm '<exact preview confirmation>'` after reviewing the target and effect.
105
- `--dry-run` is explicit preview and excludes `--execute`.
106
- The durable redacted journal records intent before sending once; ambiguous outcomes include audit IDs and must be reconciled before retrying.
107
- Credential, user, role and access-control administration stays blocked, including nested security fields in otherwise allowed payloads.
108
-
109
- ## Command reference
110
-
111
- The [generated reference](docs/commands.md) includes flags, defaults and examples from the executable catalogue.
112
- Use each leaf's `--help` for concise help; unknown flags and invalid combinations fail before credentials or HTTP.
113
- Bare `--version`, `-v` and `-V` print only the package version.
114
-
115
- <!-- command-registry:start -->
116
- | Command | Purpose |
117
- |---|---|
118
- | `tenable-axi asset list` | Search assets |
119
- | `tenable-axi asset properties` | Discover asset properties and supported operators |
120
- | `tenable-axi asset show` | Find one asset by exact ID search |
121
- | `tenable-axi attack-path list` | Search top attack paths using the published specification route |
122
- | `tenable-axi attack-technique list` | Search top attack techniques; affectedAssets counts assets_ids |
123
- | `tenable-axi auth status` | Check local credentials and file security without contacting Tenable |
124
- | `tenable-axi card list` | List exposure view cards |
125
- | `tenable-axi card show` | Show an exposure card and its scores, trends and SLA details |
126
- | `tenable-axi combination create` | Preview or create combination |
127
- | `tenable-axi combination delete` | Preview or delete combination |
128
- | `tenable-axi combination filters` | List allowed combination query properties and operators |
129
- | `tenable-axi combination list` | list combinations |
130
- | `tenable-axi combination show` | show combination |
131
- | `tenable-axi combination update` | Preview or update combination |
132
- | `tenable-axi config path` | Show selected config and state paths without reading files |
133
- | `tenable-axi connector logs` | Read connector sync logs with sync identity, trigger, first FAILED stage and first ERROR summary (falling back to text); the API has no server paging parameters |
134
- | `tenable-axi doctor` | Check local security and read access to assets, findings, software, attack paths, attack techniques, initiatives, export jobs and connector logs without retries |
135
- | `tenable-axi export asset jobs` | List recent inventory asset export jobs |
136
- | `tenable-axi export asset start` | Preview or create an inventory asset export job |
137
- | `tenable-axi export attack download` | Download an attack export to a new file, redacting JSON/CSV within 128 MiB |
138
- | `tenable-axi export attack status` | Read an attack export job; no polling by default |
139
- | `tenable-axi export attack-path start` | Preview or start one attack-path export; requires configured write scope and ATTACK_PATH.WRITE |
140
- | `tenable-axi export attack-technique start` | Preview or start one attack-technique export; requires configured write scope and ATTACK_PATH.WRITE |
141
- | `tenable-axi export finding jobs` | List recent inventory finding export jobs |
142
- | `tenable-axi export finding start` | Preview or create an inventory finding export job |
143
- | `tenable-axi export inventory download` | Download one inventory chunk to a new redacted file |
144
- | `tenable-axi export inventory status` | Read one inventory export status without polling |
145
- | `tenable-axi export mitre-heatmap start` | Preview or start one mitre-heatmap export; requires configured write scope and ATTACK_PATH.WRITE |
146
- | `tenable-axi finding list` | Search findings |
147
- | `tenable-axi finding properties` | Discover finding properties and supported operators |
148
- | `tenable-axi finding show` | Find one finding by exact ID search |
149
- | `tenable-axi finding summary` | Count findings by each published severity and sensor_type value using limit-1 searches; no per-asset grouping |
150
- | `tenable-axi home` | Show profile state and up to five live exposure cards |
151
- | `tenable-axi hook` | Show compact local profile context without resolving secrets or HTTP |
152
- | `tenable-axi initiative create` | Preview or create initiative |
153
- | `tenable-axi initiative delete` | Preview or delete initiative |
154
- | `tenable-axi initiative list` | list initiatives |
155
- | `tenable-axi initiative show` | show initiative |
156
- | `tenable-axi initiative update` | Preview or update initiative |
157
- | `tenable-axi profile list` | List configured profiles without resolving secrets or contacting Tenable |
158
- | `tenable-axi setup hooks` | Explicitly install or repair local agent session integrations |
159
- | `tenable-axi software list` | Search software; the pinned API exposes no stable software ID |
160
- | `tenable-axi software properties` | Discover software properties and supported operators |
161
- | `tenable-axi tag asset-filter list` | List documented dynamic tag filter definitions |
162
- | `tenable-axi tag assignment add` | add tags for the exact asset set |
163
- | `tenable-axi tag assignment list` | List tags assigned to one asset |
164
- | `tenable-axi tag assignment remove` | remove tags for the exact asset set |
165
- | `tenable-axi tag category create` | Create platform tag category |
166
- | `tenable-axi tag category delete` | Delete platform tag category |
167
- | `tenable-axi tag category list` | List platform tag category |
168
- | `tenable-axi tag category show` | Show platform tag category |
169
- | `tenable-axi tag category update` | Update platform tag category |
170
- | `tenable-axi tag exclusion list` | List assets excluded from a dynamic tag |
171
- | `tenable-axi tag list` | Search Exposure Management tags |
172
- | `tenable-axi tag properties` | List available tag properties and operators |
173
- | `tenable-axi tag value bulk-delete` | Preview or delete the exact tag value set |
174
- | `tenable-axi tag value create` | Create platform tag value |
175
- | `tenable-axi tag value delete` | Delete platform tag value |
176
- | `tenable-axi tag value list` | List platform tag value |
177
- | `tenable-axi tag value show` | Show platform tag value |
178
- | `tenable-axi tag value update` | Update platform tag value |
179
- <!-- command-registry:end -->
180
-
181
- ## Shipped behavior
182
-
183
- Inventory reads and exports, attack searches and connector logs are implemented.
184
- Attack path, attack technique and MITRE heatmap exports support guarded creation, status and redacted file downloads.
185
- `tag list`, `tag properties`, `card list` and `card show` provide bounded Exposure Management reads.
186
- Platform tag categories, values, assignments, exclusions and dynamic filter definitions are implemented, including guarded mutations.
187
- Home shows up to five exposure cards when configured and setup guidance offline otherwise, without printing the executable path.
188
- Exposure response initiatives and combinations support reads and guarded writes, including allowed combination filters.
189
- `hook` reports local profile context without resolving secrets or contacting Tenable.
190
- Help, version, `auth status`, `profile list` and `config path` remain local.
191
-
192
- Credentials use the strict versioned config and SecretRefs described in [profiles and authentication](docs/design.md#profiles-and-authentication).
193
- Run `tenable-axi config path` to find the platform config path, or set both `TENABLE_AXI_ACCESS_KEY` and `TENABLE_AXI_SECRET_KEY` for an environment profile.
194
- Run `tenable-axi auth status` to check sources and file security locally without printing key values; `accessKey` and `secretKey` report only `env` or `file`.
195
- Home and auth status omit environment variable names and private configuration/secret paths from output and guidance; auth status no longer exposes a `config` field, including through `--fields`.
196
- The package ships [axi-credential.schema.json](axi-credential.schema.json) for hosts.
197
-
198
- The internal transport enforces the exact commercial origin, reviewed catalogue bindings, escaped paths, scoped continuations, and redirect refusal.
199
- One transport instance represents one invocation, sharing the [transport budgets](docs/design.md#transport-contract) across pages and retries.
200
- Read operations may retry 429/502/503/504 twice; writes require coordinator authorization and never replay automatically.
201
- Transport errors carry a stable code, operation, optional HTTP status and `retryAfter` in milliseconds, plus bounded redacted guidance.
202
- Production binds reviewed inventory search/properties and exports, Exposure Management tag and card reads, attack searches, attack exports, connector logs, platform tags and Exposure Response commands; offline tests use synthetic fixtures and a CA-verified loopback HTTPS fake through the internal construction seam.
203
- No flag or environment variable enables that seam in the CLI.
204
-
205
- Inventory and attack export creation, platform tag mutations and Exposure Response writes use the write coordinator and are read-only by default.
206
- It enforces immutable configured scope, redacted previews, exact confirmation, optional host approval, stale-state refusal and a durable private journal before a single authorized send.
207
- Unknown outcomes include an audit ID and read-back guidance and are never replayed.
208
- Named write commands register strict mutation definitions alongside transport bindings in the catalogue and call `createWriteCoordinator().run(operationId, input, options)`.
209
- State readers establish no-ops and include concurrency fields in the compared state; operation definitions own documented payload validation and read-back guidance.
210
-
211
- Use `initiative list/show/create/update/delete`, `combination list/show/create/update/delete` and `combination filters` for Exposure Response.
212
- Show, update and delete require `--id <uuid>`; create and update require a strict JSON `--body-file` (or `-` for stdin, at most 1 MiB).
213
- Updates send the complete replacement body, with the same required fields as creates.
214
- Initiative bodies contain `name`, `scope`, `combination_ids`, `tenable_ids`, `owner`, `sla_in_days` and optional `description`.
215
- Scope and each combination-ID array accept at most ten UUIDs; owner is an explicit UUID and SLA is a signed 32-bit integer as documented by the pinned schema.
216
- Previews read the selected combinations and enforce the seventeen-query initiative limit without discovering users or changing tags.
217
- Combination bodies contain `name`, `query`, `is_public` and optional `description`; queries use a single `{property, operator, value}` filter or nested `and`/`or` arrays with at most six conditions.
218
- `exists` and `nexists` allow an omitted value; `combination filters` reports supported properties, operators and value metadata.
219
- When selected, optional `allowedValues` and `selectMultiValue` remain absent if upstream omits them; malformed present values fail validation, including on cursor resume.
220
- The preview explicitly describes public or private visibility, owner and scope effects.
221
- Each write requires a file profile with `writes.allowWrites: true` and the exact `initiatives-create/update/delete` or `combinations-create/update/delete` operation IDs in `writes.operations`, including for preview.
222
- Run again with `--execute --confirm '<exact preview confirmation>'` to send once through the existing journal and read-only guards.
223
- Updates re-read the selected resource before sending and refuse changed state; identical updates/creates and verified absent deletes are no-ops.
224
- The API does not document conditional writes, so re-reading narrows the race without guaranteeing atomic comparison.
225
- Lists and allowed filters are unpaged upstream; `--limit` defaults to 100 and `--all` caps output at 10,000 rows.
226
- Their scoped cursors contain only a position and collection fingerprint, bounded at 1 KiB, without row data or invented server paging parameters.
227
- Resume re-fetches the collection with the original selectors and refuses changed collections; restart without `--cursor` if the collection changed.
228
- `combination list --type private|shared|tenable` scopes the upstream request; the displayed type uses that selector or the returned `is_public` value, and stays null when neither establishes it.
229
- No upstream total is supplied, so `total` remains null.
230
- Use `--fields` for documented wire fields or compact aliases (`slaInDays`, filter `property`); `--full` removes text truncation while retaining invocation bounds.
231
- Full-text hints omit `--execute` and `--confirm`, so following a write's hint previews without sending another mutation.
232
-
233
- Use `export asset start` or `export finding start` to preview the filters, properties, format and compression for a tenant-side job.
234
- The selected file profile must configure `writes.allowWrites: true` and allow the exact `inventory-export-assets` or `inventory-export-findings` operation, including for previews.
235
- Optional `--body-file` accepts strict documented query/filters JSON, or `-` for stdin, within 1 MiB.
236
- Query options use `--properties`, `--use-readable-name true|false`, `--max-chunk-file-size`, `--sort`, `--file-format JSON|CSV` and `--compress true|false`.
237
- Choose comma-separated `--properties` names from `asset properties` or `finding properties`; `id` maps to `asset_id` or `finding_id` respectively, while other names pass through unchanged.
238
- Run again with `--execute --confirm '<exact preview confirmation>'` to create once and return immediately; exports have no server dry run or idempotency guarantee.
239
- `TENABLE_AXI_READ_ONLY=true` overrides every configured write policy.
240
- `export asset jobs` and `export finding jobs` expose `--status` and `--limit` (default 100, maximum 1000), returning only the last three days without server paging or a claim of complete history.
241
- `export inventory status --id <id>` reads once without polling and reports available chunks.
242
- `export inventory download --id <id> --chunk <number> --output <new-file>` downloads one explicit chunk and prints file metadata only.
243
- Files are validated as JSON or CSV, scanned for secrets, redacted and published atomically without overwrite; gzip exports are decoded and re-encoded with the same format.
244
- Inventory JSON chunks must contain arrays of objects.
245
- See [download bounds](docs/design.md#collections-jobs-and-bounded-reads) for file size and decompression limits.
246
-
247
- Use `asset list/show/properties`, `finding list/show/properties/summary`, and `software list/properties` with `--help` for their flags and examples.
248
- Lists default to 100 rows, expose upstream totals when supplied, and return a cursor when more rows remain.
249
- `--all` remains bounded by 10,000 rows and the shared transport budgets; resume with the returned `--cursor` and original selectors, filters, sort, and fields.
250
- Offset paging does not provide snapshot isolation.
251
- `--fields` selects display or wire properties and automatically requests extra properties; `--full` removes the 1,000-character text preview without adding fields or rows or changing invocation bounds.
252
- For inventory reads and `tag list`, `--extra-properties` also adds the requested properties to the output, even when omitted from `--fields`.
253
- Absent selected inventory properties render as `null`; present malformed values still fail validation.
254
- Inventory sort accepts display aliases such as `name`, `class` and `exposureScore` and maps them to each kind's documented sortable keys.
255
- Unknown sort names return the valid choices before making a request.
256
- `asset show` includes FQDNs and last-observed time; `finding show` includes asset ID, CVEs and sensor type, and `finding list` includes sensor type.
257
- `finding summary` counts each severity and sensor type published in the pinned properties examples, including deprecated sensor types, using 19 sequential limit-1 searches and `pagination.total` without retries.
258
- It accepts profile/config selection, does no per-host grouping, and retains completed counts with `complete: false` if a read fails or the unchanged invocation budget runs out.
259
- Missing `pagination.total` fails validation rather than inventing a count.
260
- These counts are independent reads rather than a snapshot, and sensor values can overlap; their sum is not a distinct finding total.
261
- Simple filters use `--filter 'severity = ["HIGH"]'`; `--filter-file` accepts a flat JSON array of `{property, operator, value: string[]}` and rejects nested boolean expressions.
262
- Software defaults to name, version, and publisher because the pinned API exposes no stable software ID.
263
-
264
- `doctor` validates local configuration and file security, then performs one read each for assets, findings, software, attack paths, attack techniques, initiatives, export jobs and connector logs without retries or writes.
265
- Each check reports `ok`, `permission-denied` for HTTP 403 with its privilege advice, or `error`; any unsuccessful check exits nonzero while the other modules are still checked within the existing budgets.
266
- Probes use minimum documented page sizes; initiatives and connector logs have no server paging, so their collection reads remain bounded by the shared byte and deadline limits.
267
- `connector logs` includes sync UUID, type, trigger reason, first failed stage name and first ERROR message, preferring summarized text over full text.
268
- Failure details are `null` when no matching stage or log exists, and error text follows the same redaction, preview and `--full` behavior as other text.
269
- Collections expose returned count, upstream total when known, completeness and a scoped resume cursor.
270
- Card lists and home accept upstream pages of up to 25 cards even when fewer are requested, emit only the requested limit, and preserve overflow in a scoped, redacted cursor bounded at 64 KiB.
271
- Pages above 25 cards or cursors above this bound fail validation rather than dropping cards.
272
- Ordinary lists default to 100 output rows.
273
- `--all` remains subject to invocation budgets and the 10,000-row ceiling.
274
- Resume with `--cursor` and the same profile, fields, filters and sort.
275
- Offset pagination does not promise snapshot isolation.
276
- Tag `value` maps to the documented `name`; `category` requests `tag_category_name` through extra properties and remains null when unavailable.
277
- Explicit `--extra-properties tag_category_name` adds the `category` output field even when `--fields` omits it.
278
- Tag filter files contain the pinned API's strict array of `{property, operator, value}` filters, with string arrays for `value`; this endpoint does not define nested boolean filters.
279
- Use `--help` on each leaf for selectors and defaults.
280
-
281
- Use `tag category list/show/create/update/delete` and `tag value list/show/create/update/delete/bulk-delete` for platform tags.
282
- Category creates and updates require `--name`, with optional `--description`; show, update and delete select an exact `--id` UUID.
283
- Value creates and updates require `--body-file <file>` with only documented non-security fields; show, update and delete select an exact `--id` UUID.
284
- Creates accept category UUID or name, optional category description, value, description and dynamic filters; a new category name may create a category.
285
- Updates accept value, description, filters and the documented `version` field; read `tag value show --id <id> --fields id,value,version` before updating.
286
- Dynamic rules use `filters.asset.and` or `filters.asset.or` arrays of `{property, operator, value}`, where value is a string or string array, with at most 40 rules and 1024 values per rule.
287
- `tag asset-filter list` exposes available rule properties and operators and explains the resource-tag filters the upstream omits.
288
- Security fields, including nested `access_control`, are rejected before credentials or HTTP.
289
- Platform category/value list filters use repeatable `--filter 'field:operator:value'`, `--filter-type and|or` and comma-separated `--sort field:asc|desc`.
290
- Value wildcard search pairs `--with <text>` and `--with-filter category_name,value,description` with the documented `w` and `wf` parameters.
291
- `tag assignment list --asset-id <id>` reads one asset's assignments; `tag exclusion list --tag-id <id> --target-type assets` reads dynamic tag exclusions.
292
- Unpaged assignment/filter collections retain unreturned selected fields in bounded redacted cursors without inventing server paging parameters.
293
-
294
- Platform tag writes require `writes.allowWrites: true` and the exact operation ID from the [ledger](docs/design.md#complete-operation-ledger) in `writes.operations`, including for previews.
295
- They use the same preview, `--execute --confirm '<exact preview confirmation>'`, forced read-only override and private journal as export creation.
296
- `tag value bulk-delete --ids-file <file>` consumes a JSON array of exact value UUIDs.
297
- `tag assignment add/remove --asset-ids-file <file> --tag-ids-file <file>` consumes two JSON UUID arrays, confirms both complete sets, and returns one asynchronous job without polling.
298
- Input files accept `-` for stdin, with only one stdin consumer and a 1 MiB bound per file.
299
- State reads, including per-target checks for bulk operations, share invocation budgets; narrow large target sets when those budgets are exhausted.
300
- Identical verified updates/creates and already desired assignments return successful no-ops; an unverified missing-resource response remains an error.
301
- Deleting a category also deletes its values and assignments; deleting values removes their assignments while retaining the category.
302
- Value delete and bulk-delete accept unconstrained or undecodable HTTP 2xx replies as exit-0 success once the `SUCCESS` journal outcome is durably recorded.
303
- An undecodable reply includes a warning, audit ID and status; read back the target before retrying.
304
-
305
- Use `attack-path list`, `attack-technique list`, and `connector logs` with `--help` for their flags and examples.
306
- Attack paths use the published `/api/v1/t1/apa/top-attack-paths/search` route; the pyTenable route disagreement remains a live-acceptance check in the design.
307
- AI summarization defaults to false; explicitly enable it with `--run-ai-summarization true`.
308
- `--include-resolved` includes resolved paths or archived/resolved techniques.
309
- Attack filters accept `--filter 'priority gte 8'` or a `--filter-file` containing the documented single or nested filter object.
310
- Path logical operators use `AND`/`OR`; technique logical operators use `and`/`or`, with at most two logical levels in either case.
311
- Attack searches send at least 100 wire rows even for a smaller output limit, retaining excess selected fields in a bounded redacted cursor for resume.
312
- Technique `id` maps to `serial_id`, and `affectedAssets` counts the returned `assets_ids` array.
313
- Connector logs accept connector ID, sync status, and paired date boundaries (inclusive start, exclusive end), without invented server paging parameters.
314
- Log `timestamp` is the sync start time; use `--fields connectorId,status,sync_logs --full` for event details.
315
- Unpaged log collections retain unreturned rows for bounded local resume; if the upstream total exceeds the available collection, output reports that limitation and suggests narrowing the selectors.
316
- Connector log denial explains Administrator or the documented connector-read privilege without recommending Administrator for inventory access.
317
-
318
- Use `export attack-path start`, `export attack-technique start` or `export mitre-heatmap start` with a strict JSON `--body-file`, for example `{"file_format":"JSON"}`, using `"JSON"` or `"CSV"` and the operation's options from the [pinned specification](specs/exposure-management.json).
319
- The body is limited to 1 MiB; `--body-file -` reads stdin.
320
- Export filter logical operators use lowercase `and`/`or`, including attack path exports.
321
- Select a configured profile with `--profile`; its `writes.allowWrites` must be true and `writes.operations` must include the exact operation ID (`apa-export-attack-path`, `apa-export-attack-technique` or `apa-export-mitre-heatmap`), even for previews.
322
- Environment profiles cannot enable writes, and `TENABLE_AXI_READ_ONLY=true` blocks all creation.
323
- Preview first, then pass `--execute --confirm '<exact-preview-confirmation>'` to create one job and return immediately.
324
- Exports require `EXPOSURE_MANAGEMENT.ATTACK_PATH.ATTACK_PATH.WRITE` and the corresponding upstream entitlement.
325
- Use `export attack status --id <id>` for a single status read, or add `--wait` to poll within the shared deadline and request budgets.
326
- If a polling budget expires after a validated pending response, `--wait` returns the last validated job with `complete:false` and `reason:POLL_BUDGET_EXCEEDED`, including when retries exhaust the request budget or an in-flight poll reaches the deadline.
327
- Without a validated status, budget exhaustion remains an error; other polling failures remain errors.
328
- Use `export attack download --id <id> --output <new-file>` to download JSON or CSV, including gzip-encoded files, with format-aware secret redaction and atomic publication within the [download bounds](docs/design.md#collections-jobs-and-bounded-reads).
329
- Attack JSON downloads accept arrays of objects and top-level objects, including MITRE heatmap Navigator layers.
330
- Downloads refuse overwrite and print file metadata only.
331
- Attack and inventory job namespaces are separate; these commands never address inventory export jobs.
332
-
333
- See the [design](docs/design.md) for v1 scope, credentials, write policy, verification, and implementation slices.
334
- See [contributing](CONTRIBUTING.md) for development conventions.
335
-
336
- ## Development and testing
337
-
338
- ```sh
339
- corepack pnpm install --frozen-lockfile --ignore-scripts --config.confirm-modules-purge=false
340
- corepack pnpm run build
341
- node scripts/isolated.mjs node bin/tenable-axi.js --help
342
- node scripts/isolated.mjs node bin/tenable-axi.js --version
343
- corepack pnpm test
344
- corepack pnpm run lint
345
- corepack pnpm run spec:check
346
- corepack pnpm run docs:check
347
- ```
348
-
349
- See [verification](CONTRIBUTING.md#verification) for offline isolation and test selection.
350
- The [capability map](docs/design.md#capability-map) defines planned v1 scope; the generated [inventory](inventory/capabilities.json) records every pinned operation's classification and does not enable execution.
351
- After catalogue changes, rebuild and run `corepack pnpm run docs:generate` to regenerate the README table, command reference and skill.
352
- Tests and manual CLI checks use temporary HOME/XDG directories and synthetic fixtures, with no live tenant or real credentials.
353
- Pull requests are validated locally; hosted checks run only during [release publication](#releases).
354
-
355
- ## Releases
356
-
357
- Release-please owns versions, tags, release notes and changelog updates.
358
- The release workflow publishes only when release-please creates a release, after build, lint, offline fake tarball tests, spec and documentation checks.
359
- It publishes the verified tarball with npm provenance through OIDC trusted publishing, with no stored npm token.
360
- Before the first release, configure npm's trusted publisher for `knowttl/tenable-axi` and `.github/workflows/release-please.yml`, and complete the separate live acceptance in the design.
361
- This change does not publish a package or run that workflow.
362
-
363
- Licensed under the [MIT License](LICENSE).
50
+ Hooks inject local profile, origin and write posture at session start; the skill supplies command discovery on demand.
51
+ Both are optional, grant no permissions and work independently.
52
+ Restart the agent session after installing hooks.
53
+ The [compact agent guide](https://github.com/knowttl/tenable-axi/blob/main/skills/tenable-axi/SKILL.md) supplies investigation examples, output bounds, read allowlists and failure notes so agents can start without running help.
54
+ To remove hooks, delete only `tenable-axi-hook` entries in Claude's `settings.json` and Codex's `hooks.json`, plus OpenCode's `plugins/axi-tenable-axi-hook.js`.
55
+ See [agent integration](https://github.com/knowttl/tenable-axi/blob/main/docs/agent-integration.md) for active directories, project scope and removal.
56
+
57
+ ## What it covers
58
+
59
+ Start investigations from the [agent guide](https://github.com/knowttl/tenable-axi/blob/main/skills/tenable-axi/SKILL.md); use a leaf command's `--help` to recover from a failed or unfamiliar command.
60
+ The [generated command reference](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md) lists every leaf, flag and example.
61
+
62
+ | Group | Purpose | Access | Reference |
63
+ | --- | --- | --- | --- |
64
+ | `home`, `card` | Profile posture and exposure cards | Read | [Cards](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#card-list) |
65
+ | `asset` | Search inventory and inspect assets | Read | [Assets](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#asset-list) |
66
+ | `finding` | Search findings and count severity/sensor totals | Read | [Findings](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#finding-list) |
67
+ | `software` | Search software and available properties | Read | [Software](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#software-list) |
68
+ | `attack-path`, `attack-technique` | Investigate attack evidence | Read | [Attack paths](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#attack-path-list) |
69
+ | `connector logs` | Inspect connector sync failures | Read | [Logs](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#connector-logs) |
70
+ | `tag list/properties` | Search Exposure Management tags | Read | [Tag search](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#tag-list) |
71
+ | `tag category/value/assignment/exclusion/asset-filter` | Inspect and manage platform tags | Read/write | [Platform tags](https://github.com/knowttl/tenable-axi/blob/main/docs/behavior.md#platform-tags) |
72
+ | `initiative`, `combination` | Manage Exposure Response workflows | Read/write | [Exposure Response](https://github.com/knowttl/tenable-axi/blob/main/docs/behavior.md#exposure-response) |
73
+ | `export` | Create jobs, check status and download results | Read/write | [Exports](https://github.com/knowttl/tenable-axi/blob/main/docs/behavior.md#inventory-exports) |
74
+ | `auth`, `profile`, `config`, `doctor` | Inspect setup and module access | Local/read | [Doctor](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md#doctor) |
75
+ | `setup hooks`, `hook` | Install integrations and read local context | Local | [Integration](https://github.com/knowttl/tenable-axi/blob/main/docs/agent-integration.md) |
76
+
77
+ ## Safety
78
+
79
+ Writes are read-only by default.
80
+ A file profile must enable `writes.allowWrites` and allow each exact operation ID in `writes.operations`, including for previews.
81
+ Preview first, then pass `--execute --confirm '<exact preview confirmation>'` to send once.
82
+ `TENABLE_AXI_READ_ONLY=true` forces read-only even when the profile allows writes.
83
+ There is no `TENABLE_AXI_ALLOW_*` environment gate; configured operation allowlists control scope.
84
+ A durable redacted journal records intent before sending; reconcile unknown outcomes before retrying.
85
+ Credentials use environment/file SecretRefs, never inline secrets or arguments.
86
+ Credential minting, users, roles, access-control administration and arbitrary HTTP stay blocked.
87
+ See [write safety](https://github.com/knowttl/tenable-axi/blob/main/docs/safety.md) and the [permission ledger](https://github.com/knowttl/tenable-axi/blob/main/docs/design.md#complete-operation-ledger).
88
+
89
+ ## Configuration
90
+
91
+ | Setting | Purpose | Default |
92
+ | --- | --- | --- |
93
+ | Linux/macOS config | Profile JSON | `~/.config/tenable-axi/config.json` |
94
+ | Windows config | Profile JSON | `%APPDATA%\tenable-axi\config.json` |
95
+ | Linux/macOS state | Private journal directory | `~/.local/state/tenable-axi` |
96
+ | Windows state | Private journal directory | `%LOCALAPPDATA%\tenable-axi` |
97
+ | `TENABLE_AXI_CONFIG` | Config file, overridden by `--config` | Platform config path |
98
+ | `TENABLE_AXI_PROFILE` | Named profile, overridden by `--profile` | Environment profile, configured default, or sole profile |
99
+ | `TENABLE_AXI_ACCESS_KEY`, `TENABLE_AXI_SECRET_KEY` | Complete environment credential pair | Unset |
100
+ | `TENABLE_AXI_ORIGIN` | Environment profile origin; only the exact commercial origin is valid | `https://cloud.tenable.com` |
101
+ | `TENABLE_AXI_READ_ONLY` | Force read-only with `1` or `true` | Unset; profile policy applies |
102
+ | `TENABLE_AXI_WRITE_LOG` | Private journal path | State directory's `writes.log` |
103
+ | `XDG_CONFIG_HOME`, `XDG_STATE_HOME` | Absolute Unix config/state bases | `~/.config`, `~/.local/state` |
104
+ | `APPDATA`, `LOCALAPPDATA` | Absolute Windows config/state bases | `~/AppData/Roaming`, `~/AppData/Local` |
105
+ | `CLAUDE_CONFIG_DIR`, `CODEX_HOME` | Hook configuration directories | `~/.claude`, `~/.codex` |
106
+ | `PATH` / `Path`, `PATHEXT` | Hook executable lookup and Windows extensions | Empty path; `.COM;.EXE;.BAT;.CMD` |
107
+
108
+ User OpenCode setup uses `XDG_CONFIG_HOME` or `~/.config`.
109
+ SecretRefs may name additional environment variables explicitly.
110
+ See [configuration](https://github.com/knowttl/tenable-axi/blob/main/docs/configuration.md) for precedence, file security and a minimal profile.
111
+
112
+ ## Output and exit codes
113
+
114
+ Stdout uses compact TOON; bare `--version`, `-v` and `-V` print the package version.
115
+ `--fields` selects properties and `--full` removes text truncation without expanding row or transport bounds.
116
+ Ordinary lists default to 100 rows; `--all` remains bounded at 10,000.
117
+ Resume a returned `--cursor` with the same profile, filters, fields and sort.
118
+ Inspect `complete` and `reason` before treating a result as exhaustive.
119
+ See [behavior](https://github.com/knowttl/tenable-axi/blob/main/docs/behavior.md) for collection-specific limits and downloads.
120
+
121
+ | Code | Meaning |
122
+ | --- | --- |
123
+ | 0 | Success, including previews and verified no-ops |
124
+ | 1 | Configuration, authentication, permission, transport or operation failure |
125
+ | 2 | CLI usage validation error |
126
+
127
+ ## Troubleshooting
128
+
129
+ | Symptom | Next step |
130
+ | --- | --- |
131
+ | `PERMISSION_DENIED` / HTTP 403 | Check licensing and the operation's privilege; run `doctor` for module-level advice. |
132
+ | `CONFIG_INVALID` with environment credentials | Set both keys and use only the supported origin; partial environment profiles fail closed. |
133
+ | `CONFIG_INSECURE` | Use an owned regular file with mode 600 on Unix or a protected Windows DACL. |
134
+ | Writes refused | Check the file profile's operation allowlist and forced read-only setting. |
135
+ | Cursor rejected after collection changes | Restart without the cursor and retain the original selectors. |
136
+
137
+ ## Contributing
138
+
139
+ See [CONTRIBUTING.md](https://github.com/knowttl/tenable-axi/blob/main/CONTRIBUTING.md) for offline verification, documentation generation and releases, and [AGENTS.md](https://github.com/knowttl/tenable-axi/blob/main/AGENTS.md) for agent contribution rules.
140
+
141
+ ## Security
142
+
143
+ Report vulnerabilities using [SECURITY.md](https://github.com/knowttl/tenable-axi/blob/main/SECURITY.md).
144
+
145
+ ## License
146
+
147
+ [MIT](LICENSE).
@@ -0,0 +1,19 @@
1
+ export type DiagnosticRedactor = {
2
+ text(value: string): string;
3
+ };
4
+ export declare class ResponseDiagnostics {
5
+ private readonly redactor;
6
+ private readonly errorCodes;
7
+ private details;
8
+ private readonly shapeByPath;
9
+ private data;
10
+ constructor(redactor: DiagnosticRedactor, errorCodes?: readonly string[]);
11
+ record(status: number, headers: Headers, data: unknown): void;
12
+ validationFailed(issues: readonly {
13
+ path: readonly PropertyKey[];
14
+ expected?: unknown;
15
+ code?: unknown;
16
+ }[]): void;
17
+ private shape;
18
+ forError(error: unknown): Record<string, unknown>;
19
+ }
@@ -0,0 +1,115 @@
1
+ const issueCodes = new Set(["invalid_type", "too_big", "too_small", "invalid_format", "not_multiple_of", "unrecognized_keys", "invalid_union", "invalid_key", "invalid_element", "invalid_value", "custom"]);
2
+ const types = new Set(["string", "number", "boolean", "object", "array", "null", "undefined", "bigint", "symbol", "function", "date", "int", "unknown", "never", "void"]);
3
+ function valueType(value) {
4
+ return value === null ? "null" : Array.isArray(value) ? "array" : typeof value;
5
+ }
6
+ function keySegment(key, redactor) {
7
+ const identifier = /^[A-Za-z][A-Za-z0-9_]{0,39}$/.test(key);
8
+ const guid = /^(?:[0-9a-f]{32}|[0-9a-f]{8}(?:[-_][0-9a-f]{4}){3}[-_][0-9a-f]{12})$/i.test(key);
9
+ return `[${JSON.stringify(identifier && !guid ? redactor.text(key) : "<key>")}]`;
10
+ }
11
+ // Emit structure only, never the response body or validation-library errors.
12
+ export class ResponseDiagnostics {
13
+ redactor;
14
+ errorCodes;
15
+ details = {};
16
+ shapeByPath = new Map();
17
+ data;
18
+ constructor(redactor, errorCodes = ["API_RESPONSE_INVALID", "AUTH_RESPONSE_INVALID"]) {
19
+ this.redactor = redactor;
20
+ this.errorCodes = errorCodes;
21
+ }
22
+ record(status, headers, data) {
23
+ this.data = data;
24
+ // Parameters can contain arbitrary server text; report only the bounded media type.
25
+ const mediaType = headers.get("content-type")?.split(";", 1)[0]?.trim();
26
+ const contentType = mediaType && mediaType.length <= 128 && /^[a-z0-9!#$&^_.+\-]+\/[a-z0-9!#$&^_.+\-]+$/i.test(mediaType)
27
+ ? this.redactor.text(mediaType) : null;
28
+ this.details = { status: Number.isInteger(status) && status >= 100 && status <= 599 ? status : null, contentType, ...this.shape(data) };
29
+ }
30
+ validationFailed(issues) {
31
+ const issuePaths = [];
32
+ const annotations = [];
33
+ let truncated = false;
34
+ let characters = 0;
35
+ for (const issue of issues) {
36
+ let path = "$";
37
+ for (const [depth, key] of issue.path.entries()) {
38
+ if (depth >= 4) {
39
+ truncated = true;
40
+ break;
41
+ }
42
+ path += typeof key === "number" && Number.isSafeInteger(key) && key >= 0 ? "[*]" : keySegment(String(key), this.redactor);
43
+ }
44
+ if (issuePaths.length >= 64 || path.length > 256 || characters + path.length > 4096) {
45
+ truncated = true;
46
+ break;
47
+ }
48
+ characters += path.length;
49
+ issuePaths.push(path);
50
+ let received = this.data;
51
+ for (const key of issue.path) {
52
+ received = received !== null && typeof received === "object" && Object.hasOwn(received, key)
53
+ ? received[key] : undefined;
54
+ }
55
+ const expected = typeof issue.expected === "string" && types.has(issue.expected) ? issue.expected : "unknown";
56
+ annotations.push({ path, received: valueType(received), expected, ...(typeof issue.code === "string" && issueCodes.has(issue.code) ? { code: issue.code } : {}), ...(truncated ? { pathTruncated: true } : {}) });
57
+ // Validator messages and arbitrary expected strings can contain response values.
58
+ // Annotate only types from the contract vocabulary, on the recorded received shape.
59
+ if (!truncated && typeof issue.expected === "string" && types.has(issue.expected)) {
60
+ const entry = this.shapeByPath.get(JSON.stringify(issue.path));
61
+ if (entry)
62
+ entry.expected = issue.expected;
63
+ }
64
+ if (truncated)
65
+ break;
66
+ }
67
+ this.details = { ...this.details, issues: annotations, issuePaths, issuePathsTruncated: truncated };
68
+ }
69
+ shape(data) {
70
+ this.shapeByPath.clear();
71
+ const shape = [];
72
+ let truncated = false;
73
+ let characters = 0;
74
+ const visit = (value, path, keys) => {
75
+ if (shape.length >= 64 || path.length > 256 || characters + path.length > 4096) {
76
+ truncated = true;
77
+ return;
78
+ }
79
+ characters += path.length;
80
+ const type = valueType(value);
81
+ const entry = { path, type, ...(Array.isArray(value) ? { count: value.length } : {}) };
82
+ shape.push(entry);
83
+ this.shapeByPath.set(JSON.stringify(keys), entry);
84
+ if (value === null || typeof value !== "object")
85
+ return;
86
+ if (Array.isArray(value)) {
87
+ if (value.length === 0)
88
+ return;
89
+ if (keys.length >= 4) {
90
+ truncated = true;
91
+ return;
92
+ }
93
+ visit(value[0], path + "[*]", [...keys, 0]);
94
+ return;
95
+ }
96
+ for (const key in value) {
97
+ if (!Object.hasOwn(value, key))
98
+ continue;
99
+ if (keys.length >= 4 || shape.length >= 64) {
100
+ truncated = true;
101
+ break;
102
+ }
103
+ const segment = keySegment(key, this.redactor);
104
+ visit(value[key], path + segment, [...keys, key]);
105
+ if (truncated)
106
+ break;
107
+ }
108
+ };
109
+ visit(data, "$", []);
110
+ return { shape, shapeTruncated: truncated };
111
+ }
112
+ forError(error) {
113
+ return error !== null && typeof error === "object" && "code" in error && typeof error.code === "string" && this.errorCodes.includes(error.code) ? this.details : {};
114
+ }
115
+ }
@@ -50,6 +50,23 @@ export declare class TransportError extends Error {
50
50
  status?: number;
51
51
  retryAfter?: number;
52
52
  auditId?: string;
53
+ contentType?: string | null;
54
+ shape?: readonly {
55
+ path: string;
56
+ type: string;
57
+ count?: number;
58
+ expected?: string;
59
+ }[];
60
+ shapeTruncated?: boolean;
61
+ issues?: readonly {
62
+ path: string;
63
+ received: string;
64
+ expected: string;
65
+ code?: string;
66
+ pathTruncated?: boolean;
67
+ }[];
68
+ issuePaths?: readonly string[];
69
+ issuePathsTruncated?: boolean;
53
70
  };
54
71
  readonly help: readonly string[];
55
72
  constructor(error: {
@@ -59,6 +76,23 @@ export declare class TransportError extends Error {
59
76
  status?: number;
60
77
  retryAfter?: number;
61
78
  auditId?: string;
79
+ contentType?: string | null;
80
+ shape?: readonly {
81
+ path: string;
82
+ type: string;
83
+ count?: number;
84
+ expected?: string;
85
+ }[];
86
+ shapeTruncated?: boolean;
87
+ issues?: readonly {
88
+ path: string;
89
+ received: string;
90
+ expected: string;
91
+ code?: string;
92
+ pathTruncated?: boolean;
93
+ }[];
94
+ issuePaths?: readonly string[];
95
+ issuePathsTruncated?: boolean;
62
96
  }, help?: readonly string[]);
63
97
  toJSON(): {
64
98
  help?: readonly string[] | undefined;
@@ -69,6 +103,23 @@ export declare class TransportError extends Error {
69
103
  status?: number;
70
104
  retryAfter?: number;
71
105
  auditId?: string;
106
+ contentType?: string | null;
107
+ shape?: readonly {
108
+ path: string;
109
+ type: string;
110
+ count?: number;
111
+ expected?: string;
112
+ }[];
113
+ shapeTruncated?: boolean;
114
+ issues?: readonly {
115
+ path: string;
116
+ received: string;
117
+ expected: string;
118
+ code?: string;
119
+ pathTruncated?: boolean;
120
+ }[];
121
+ issuePaths?: readonly string[];
122
+ issuePathsTruncated?: boolean;
72
123
  };
73
124
  };
74
125
  }
@@ -1,3 +1,4 @@
1
+ import { ResponseDiagnostics } from "./response-diagnostics.js";
1
2
  export const TENABLE_ORIGIN = "https://cloud.tenable.com";
2
3
  export class TransportError extends Error {
3
4
  error;
@@ -188,15 +189,20 @@ export function constructTransport(options, dependencies) {
188
189
  return { status: response.status, body: file };
189
190
  }
190
191
  let decoded;
192
+ const diagnostics = new ResponseDiagnostics({ text: redact }, ["RESPONSE_INVALID"]);
191
193
  try {
192
194
  decoded = text ? JSON.parse(text) : undefined;
193
195
  }
194
196
  catch {
195
- fail("RESPONSE_INVALID", "Tenable response is not valid JSON", operation, [], { status: response.status });
197
+ diagnostics.record(response.status, response.headers, text);
198
+ fail("RESPONSE_INVALID", "Tenable response is not valid JSON", operation, [], diagnostics.forError({ code: "RESPONSE_INVALID" }));
196
199
  }
197
200
  const result = record.decoder.safeParse(decoded);
198
- if (!result.success)
199
- fail("RESPONSE_INVALID", "Tenable response does not match the selected view", operation, ["Check the operation response contract; no result was inferred"], { status: response.status });
201
+ if (!result.success) {
202
+ diagnostics.record(response.status, response.headers, decoded);
203
+ diagnostics.validationFailed(result.error.issues);
204
+ fail("RESPONSE_INVALID", "Tenable response does not match the selected view", operation, ["Check the operation response contract; no result was inferred"], diagnostics.forError({ code: "RESPONSE_INVALID" }));
205
+ }
200
206
  return { status: response.status, body: result.data };
201
207
  }
202
208
  const status = response.status;
package/docs/commands.md CHANGED
@@ -3,6 +3,137 @@
3
3
  # Command reference
4
4
 
5
5
  Investigate Tenable One exposure and run explicitly guarded writes.
6
+
7
+ ## Contents
8
+
9
+ - [asset list](#asset-list)
10
+ - [asset properties](#asset-properties)
11
+ - [asset show](#asset-show)
12
+ - [attack-path list](#attack-path-list)
13
+ - [attack-technique list](#attack-technique-list)
14
+ - [auth status](#auth-status)
15
+ - [card list](#card-list)
16
+ - [card show](#card-show)
17
+ - [combination create](#combination-create)
18
+ - [combination delete](#combination-delete)
19
+ - [combination filters](#combination-filters)
20
+ - [combination list](#combination-list)
21
+ - [combination show](#combination-show)
22
+ - [combination update](#combination-update)
23
+ - [config path](#config-path)
24
+ - [connector logs](#connector-logs)
25
+ - [doctor](#doctor)
26
+ - [export asset jobs](#export-asset-jobs)
27
+ - [export asset start](#export-asset-start)
28
+ - [export attack download](#export-attack-download)
29
+ - [export attack status](#export-attack-status)
30
+ - [export attack-path start](#export-attack-path-start)
31
+ - [export attack-technique start](#export-attack-technique-start)
32
+ - [export finding jobs](#export-finding-jobs)
33
+ - [export finding start](#export-finding-start)
34
+ - [export inventory download](#export-inventory-download)
35
+ - [export inventory status](#export-inventory-status)
36
+ - [export mitre-heatmap start](#export-mitre-heatmap-start)
37
+ - [finding list](#finding-list)
38
+ - [finding properties](#finding-properties)
39
+ - [finding show](#finding-show)
40
+ - [finding summary](#finding-summary)
41
+ - [home](#home)
42
+ - [hook](#hook)
43
+ - [initiative create](#initiative-create)
44
+ - [initiative delete](#initiative-delete)
45
+ - [initiative list](#initiative-list)
46
+ - [initiative show](#initiative-show)
47
+ - [initiative update](#initiative-update)
48
+ - [profile list](#profile-list)
49
+ - [setup hooks](#setup-hooks)
50
+ - [software list](#software-list)
51
+ - [software properties](#software-properties)
52
+ - [tag asset-filter list](#tag-asset-filter-list)
53
+ - [tag assignment add](#tag-assignment-add)
54
+ - [tag assignment list](#tag-assignment-list)
55
+ - [tag assignment remove](#tag-assignment-remove)
56
+ - [tag category create](#tag-category-create)
57
+ - [tag category delete](#tag-category-delete)
58
+ - [tag category list](#tag-category-list)
59
+ - [tag category show](#tag-category-show)
60
+ - [tag category update](#tag-category-update)
61
+ - [tag exclusion list](#tag-exclusion-list)
62
+ - [tag list](#tag-list)
63
+ - [tag properties](#tag-properties)
64
+ - [tag value bulk-delete](#tag-value-bulk-delete)
65
+ - [tag value create](#tag-value-create)
66
+ - [tag value delete](#tag-value-delete)
67
+ - [tag value list](#tag-value-list)
68
+ - [tag value show](#tag-value-show)
69
+ - [tag value update](#tag-value-update)
70
+
71
+ ## All commands
72
+
73
+ | Command | Purpose |
74
+ |---|---|
75
+ | `tenable-axi asset list` | Search assets |
76
+ | `tenable-axi asset properties` | Discover asset properties and supported operators |
77
+ | `tenable-axi asset show` | Find one asset by exact ID search |
78
+ | `tenable-axi attack-path list` | Search top attack paths using the published specification route |
79
+ | `tenable-axi attack-technique list` | Search top attack techniques; affectedAssets counts assets_ids |
80
+ | `tenable-axi auth status` | Check local credentials and file security without contacting Tenable |
81
+ | `tenable-axi card list` | List exposure view cards |
82
+ | `tenable-axi card show` | Show an exposure card and its scores, trends and SLA details |
83
+ | `tenable-axi combination create` | Preview or create combination |
84
+ | `tenable-axi combination delete` | Preview or delete combination |
85
+ | `tenable-axi combination filters` | List allowed combination query properties and operators |
86
+ | `tenable-axi combination list` | list combinations |
87
+ | `tenable-axi combination show` | show combination |
88
+ | `tenable-axi combination update` | Preview or update combination |
89
+ | `tenable-axi config path` | Show selected config and state paths without reading files |
90
+ | `tenable-axi connector logs` | Read connector sync logs with sync identity, trigger, first FAILED stage and first ERROR summary (falling back to text); the API has no server paging parameters |
91
+ | `tenable-axi doctor` | Check local security and read access to assets, findings, software, attack paths, attack techniques, initiatives, export jobs and connector logs without retries |
92
+ | `tenable-axi export asset jobs` | List recent inventory asset export jobs |
93
+ | `tenable-axi export asset start` | Preview or create an inventory asset export job |
94
+ | `tenable-axi export attack download` | Download an attack export to a new file, redacting JSON/CSV within 128 MiB |
95
+ | `tenable-axi export attack status` | Read an attack export job; no polling by default |
96
+ | `tenable-axi export attack-path start` | Preview or start one attack-path export; requires configured write scope and ATTACK_PATH.WRITE |
97
+ | `tenable-axi export attack-technique start` | Preview or start one attack-technique export; requires configured write scope and ATTACK_PATH.WRITE |
98
+ | `tenable-axi export finding jobs` | List recent inventory finding export jobs |
99
+ | `tenable-axi export finding start` | Preview or create an inventory finding export job |
100
+ | `tenable-axi export inventory download` | Download one inventory chunk to a new redacted file |
101
+ | `tenable-axi export inventory status` | Read one inventory export status without polling |
102
+ | `tenable-axi export mitre-heatmap start` | Preview or start one mitre-heatmap export; requires configured write scope and ATTACK_PATH.WRITE |
103
+ | `tenable-axi finding list` | Search findings |
104
+ | `tenable-axi finding properties` | Discover finding properties and supported operators |
105
+ | `tenable-axi finding show` | Find one finding by exact ID search |
106
+ | `tenable-axi finding summary` | Count findings by each published severity and sensor_type value using limit-1 searches; no per-asset grouping |
107
+ | `tenable-axi home` | Show profile state and up to five live exposure cards |
108
+ | `tenable-axi hook` | Show compact local profile context without resolving secrets or HTTP |
109
+ | `tenable-axi initiative create` | Preview or create initiative |
110
+ | `tenable-axi initiative delete` | Preview or delete initiative |
111
+ | `tenable-axi initiative list` | list initiatives |
112
+ | `tenable-axi initiative show` | show initiative |
113
+ | `tenable-axi initiative update` | Preview or update initiative |
114
+ | `tenable-axi profile list` | List configured profiles without resolving secrets or contacting Tenable |
115
+ | `tenable-axi setup hooks` | Explicitly install or repair local agent session integrations |
116
+ | `tenable-axi software list` | Search software; the pinned API exposes no stable software ID |
117
+ | `tenable-axi software properties` | Discover software properties and supported operators |
118
+ | `tenable-axi tag asset-filter list` | List documented dynamic tag filter definitions |
119
+ | `tenable-axi tag assignment add` | add tags for the exact asset set |
120
+ | `tenable-axi tag assignment list` | List tags assigned to one asset |
121
+ | `tenable-axi tag assignment remove` | remove tags for the exact asset set |
122
+ | `tenable-axi tag category create` | Create platform tag category |
123
+ | `tenable-axi tag category delete` | Delete platform tag category |
124
+ | `tenable-axi tag category list` | List platform tag category |
125
+ | `tenable-axi tag category show` | Show platform tag category |
126
+ | `tenable-axi tag category update` | Update platform tag category |
127
+ | `tenable-axi tag exclusion list` | List assets excluded from a dynamic tag |
128
+ | `tenable-axi tag list` | Search Exposure Management tags |
129
+ | `tenable-axi tag properties` | List available tag properties and operators |
130
+ | `tenable-axi tag value bulk-delete` | Preview or delete the exact tag value set |
131
+ | `tenable-axi tag value create` | Create platform tag value |
132
+ | `tenable-axi tag value delete` | Delete platform tag value |
133
+ | `tenable-axi tag value list` | List platform tag value |
134
+ | `tenable-axi tag value show` | Show platform tag value |
135
+ | `tenable-axi tag value update` | Update platform tag value |
136
+
6
137
  Run each command with `--help` for concise help.
7
138
  Writes default to preview and require configured operation scope even for previews.
8
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowttl/tenable-axi",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Investigate Tenable One exposure and run explicitly guarded writes",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,102 +1,106 @@
1
1
  ---
2
2
  name: tenable-axi
3
- description: "Investigate Tenable One assets, findings, software, exposure cards, attack paths, tags and exports; preview and execute explicitly scoped business writes through compact TOON output."
3
+ description: "Investigate Tenable One assets, findings, software, exposure and attack evidence with bounded read-only commands; diagnose failures and distinguish guarded writes."
4
4
  ---
5
5
 
6
6
  <!-- Generated by scripts/generate-docs.mjs from src/catalogue.ts. Do not hand-edit. -->
7
7
 
8
- # tenable-axi
8
+ # tenable-axi investigation guide
9
9
 
10
10
  Investigate Tenable One exposure and run explicitly guarded writes.
11
- Use `npx -y @knowttl/tenable-axi` without a global install.
12
- Bare `--version`, `-v` and `-V` print the package version.
13
-
11
+ Start with the relevant read below, without running help first.
12
+ Examples use synthetic values; replace them with evidence from the current investigation.
13
+ Use the installed binary or the shown non-interactive package invocation.
14
+ Append `--profile <name>` and optionally `--config <file>` to select an existing profile.
14
15
  Run npx -y @knowttl/tenable-axi config path; configure a profile with accessKey and secretKey SecretRefs.
15
- Credentials use environment/file SecretRefs, never inline secrets or chat.
16
+ Credentials use environment/file SecretRefs, never inline secrets or arguments.
16
17
  Only `https://cloud.tenable.com` is supported.
17
18
 
18
- Start with local discovery:
19
+ ## Investigation reads
20
+
21
+ Each line is an independent example, not a startup sequence.
22
+ The fields shown are useful compact projections; omit `--fields` for the command's compact defaults.
23
+
24
+ | Task | Exact example |
25
+ |---|---|
26
+ | Check credentials locally, without HTTP | `npx -y @knowttl/tenable-axi auth status` |
27
+ | Look up an asset by text | `npx -y @knowttl/tenable-axi asset list --query example-device --class DEVICE --limit 10 --fields id,name,class,exposureScore` |
28
+ | Read one exact asset, including observation evidence | `npx -y @knowttl/tenable-axi asset show --id asset-1 --fields id,name,fqdns,last_observed_at` |
29
+ | Pivot from an asset ID to findings | `npx -y @knowttl/tenable-axi finding list --filter 'asset_id = ["asset-1"]' --limit 20 --fields id,name,severity,state,sensor_type,cves` |
30
+ | Search high severity findings | `npx -y @knowttl/tenable-axi finding list --filter 'severity = ["HIGH"]' --filter 'sensor_type = ["NESSUS"]' --limit 20` |
31
+ | Read a finding and its asset/CVE evidence | `npx -y @knowttl/tenable-axi finding show --id finding-1 --fields id,name,severity,state,asset_id,cves,sensor_type` |
32
+ | Count severity and sensor values | `npx -y @knowttl/tenable-axi finding summary` |
33
+ | Find installed software | `npx -y @knowttl/tenable-axi software list --query example-app --limit 10 --fields name,version,publisher` |
34
+ | Discover asset filter properties | `npx -y @knowttl/tenable-axi asset properties --asset-classes DEVICE --limit 20 --fields key,operators,filterable,sortable` |
35
+ | Discover finding filter properties | `npx -y @knowttl/tenable-axi finding properties --limit 20 --fields key,operators,filterable,sortable` |
36
+ | Discover software filter properties | `npx -y @knowttl/tenable-axi software properties --limit 20 --fields key,operators,filterable,sortable` |
37
+ | Find high priority paths for an asset | `npx -y @knowttl/tenable-axi attack-path list --filter 'asset_id eq "asset-1"' --filter 'priority gte 8' --limit 10 --fields id,name,priority,summary` |
38
+ | Read techniques and affected asset IDs together | `npx -y @knowttl/tenable-axi attack-technique list --limit 10 --fields id,name,affectedAssets,assets_ids,mitre_id` |
39
+ | Read exposure cards | `npx -y @knowttl/tenable-axi card list --limit 5 --fields id,name,score` |
40
+ | Find Exposure Management tags | `npx -y @knowttl/tenable-axi tag list --query example --limit 10` |
41
+ | Diagnose failed connector syncs | `npx -y @knowttl/tenable-axi connector logs --status FAILED --start-date 2026-01-01 --end-date 2026-02-01 --limit 10` |
42
+ | Wait for an existing attack export | `npx -y @knowttl/tenable-axi export attack status --id 00000000-0000-4000-8000-000000000001 --wait` |
43
+
44
+ Inventory filters are repeatable AND conditions with a JSON array of strings, even for numeric values.
45
+ Inventory `--filter-file` accepts a flat JSON array and excludes `--filter`.
46
+ Attack filters instead use `eq`, `gte`, etc. with a JSON scalar or array; resolved records are excluded unless `--include-resolved` is set.
47
+ Connector dates must be paired: start inclusive, end exclusive.
48
+ Connector defaults include sync identity, trigger, first failed stage and first error; request `--full` only if text is truncated.
49
+
50
+ ## Save calls and bound output
19
51
 
20
- ```sh
21
- npx -y @knowttl/tenable-axi
22
- npx -y @knowttl/tenable-axi home --help
23
- npx -y @knowttl/tenable-axi auth status
24
- ```
52
+ Use list `--fields` to retrieve the needed evidence together instead of showing every result.
53
+ Inventory selected extra fields are requested automatically; `--extra-properties` also adds them to output.
54
+ Exact-ID `asset show` and `finding show` search directly without a preceding list.
55
+ `finding summary` is one CLI call making 19 sequential limit-1 reads without retries, using upstream totals.
56
+ It has no filters or per-asset grouping; counts are independent, sensor values may overlap, and `complete: false` means partial counts.
25
57
 
26
- Configured home reads up to five live exposure cards.
27
- The optional session hook reads local profile context only.
28
- Install integrations only on explicit request through `npx -y @knowttl/tenable-axi setup hooks`.
58
+ Ordinary lists default to 100 rows; use `--limit 1..10000` or `--all` (at most 10,000 rows, incompatible with `--limit`).
59
+ Inventory/attack collection reads share 20-second, 20-request and 20 MiB decoded-response budgets.
60
+ Check `count`, `total` (possibly null), `complete`, `reason` and any `error` before concluding absence.
61
+ Resume a returned `--cursor` with the same profile, filters, fields and sort; do not combine it with `--offset`.
62
+ `--full` removes the 1,000-character text preview, without adding fields, rows or budget.
63
+ Connector logs have no server paging; `UPSTREAM_UNPAGED` means unavailable history, not an exhaustive empty result.
29
64
 
30
- Writes require a file profile's allowWrites and exact operation allowlist, preview, --execute and the exact preview --confirm string.
31
- TENABLE_AXI_READ_ONLY=true overrides all write policies.
32
- Never replay an unknown mutation outcome; follow its audit ID and read-back guidance.
65
+ Attack export status `--wait` polls once per second within 20 seconds/20 requests; inspect the returned state before downloading.
66
+ There is no combined export start-and-wait, inventory-status wait, bulk show or asset-to-findings pivot command.
67
+ Use a filtered list for multiple details; use the returned asset ID in a separate finding query.
68
+ Software has no stable ID or show command.
69
+
70
+ ## Read allowlist and state changes
71
+
72
+ The table above is read-only, including POST searches and waiting on an existing export.
73
+ Other remote reads: `home`, `card show`, `tag properties`, platform `tag category/value list/show`, `tag assignment/exclusion/asset-filter list`, `initiative list/show`, `combination list/show/filters`, `export asset/finding jobs`, `export inventory status` and `doctor`.
74
+ `doctor` makes eight module probes without retries; use it for access diagnosis, not before each case.
75
+ Local reads: `auth status`, `profile list`, `config path`, `hook`, help and version.
76
+ Configured home reads up to five live cards; the optional hook reads local posture only.
77
+
78
+ Exclude all `create/update/delete/bulk-delete`, `tag assignment add/remove` and `export * start` commands from read allowlists.
79
+ Writes require a file profile's `allowWrites` and exact operation allowlist even for previews, followed by `--execute` and the exact preview `--confirm` string.
80
+ `TENABLE_AXI_READ_ONLY=true` forces read-only.
81
+ Export downloads read remotely but create a local file at an explicit new output path; `setup hooks` changes local integration files and needs explicit installation intent.
33
82
  Users, roles, access control, credential minting and arbitrary HTTP are unavailable.
34
- Downloads require an explicit new output path; results are bounded, validated and redacted.
35
83
 
36
- Lists default to bounded windows; preserve profile, filters, sort and fields when resuming a cursor.
37
- Use a command's --help for required selectors, defaults and examples.
38
- See the [command reference](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md) for all flags.
84
+ ## Help and failures
85
+
86
+ Use help to recover from a failed or unfamiliar command, not to start an investigation.
87
+ Top-level `--help` returns the command index, home flags and version aliases.
88
+ Leaf `--help` returns that command's flags, defaults, required selectors and examples (plus default fields where applicable).
89
+ Group-only help such as `asset --help` is unsupported and returns a usage error with valid commands.
90
+ The [command reference](https://github.com/knowttl/tenable-axi/blob/main/docs/commands.md) lists the full surface.
91
+
92
+ Stdout is structured TOON, including errors and actionable help.
93
+ Exit 0 means success (still inspect completeness), 1 means operation/configuration failure, and 2 means CLI usage validation failure.
39
94
 
40
- | Command | Purpose |
95
+ | Code | Adjustment |
41
96
  |---|---|
42
- | `npx -y @knowttl/tenable-axi asset list` | Search assets |
43
- | `npx -y @knowttl/tenable-axi asset properties` | Discover asset properties and supported operators |
44
- | `npx -y @knowttl/tenable-axi asset show` | Find one asset by exact ID search |
45
- | `npx -y @knowttl/tenable-axi attack-path list` | Search top attack paths using the published specification route |
46
- | `npx -y @knowttl/tenable-axi attack-technique list` | Search top attack techniques; affectedAssets counts assets_ids |
47
- | `npx -y @knowttl/tenable-axi auth status` | Check local credentials and file security without contacting Tenable |
48
- | `npx -y @knowttl/tenable-axi card list` | List exposure view cards |
49
- | `npx -y @knowttl/tenable-axi card show` | Show an exposure card and its scores, trends and SLA details |
50
- | `npx -y @knowttl/tenable-axi combination create` | Preview or create combination |
51
- | `npx -y @knowttl/tenable-axi combination delete` | Preview or delete combination |
52
- | `npx -y @knowttl/tenable-axi combination filters` | List allowed combination query properties and operators |
53
- | `npx -y @knowttl/tenable-axi combination list` | list combinations |
54
- | `npx -y @knowttl/tenable-axi combination show` | show combination |
55
- | `npx -y @knowttl/tenable-axi combination update` | Preview or update combination |
56
- | `npx -y @knowttl/tenable-axi config path` | Show selected config and state paths without reading files |
57
- | `npx -y @knowttl/tenable-axi connector logs` | Read connector sync logs with sync identity, trigger, first FAILED stage and first ERROR summary (falling back to text); the API has no server paging parameters |
58
- | `npx -y @knowttl/tenable-axi doctor` | Check local security and read access to assets, findings, software, attack paths, attack techniques, initiatives, export jobs and connector logs without retries |
59
- | `npx -y @knowttl/tenable-axi export asset jobs` | List recent inventory asset export jobs |
60
- | `npx -y @knowttl/tenable-axi export asset start` | Preview or create an inventory asset export job |
61
- | `npx -y @knowttl/tenable-axi export attack download` | Download an attack export to a new file, redacting JSON/CSV within 128 MiB |
62
- | `npx -y @knowttl/tenable-axi export attack status` | Read an attack export job; no polling by default |
63
- | `npx -y @knowttl/tenable-axi export attack-path start` | Preview or start one attack-path export; requires configured write scope and ATTACK_PATH.WRITE |
64
- | `npx -y @knowttl/tenable-axi export attack-technique start` | Preview or start one attack-technique export; requires configured write scope and ATTACK_PATH.WRITE |
65
- | `npx -y @knowttl/tenable-axi export finding jobs` | List recent inventory finding export jobs |
66
- | `npx -y @knowttl/tenable-axi export finding start` | Preview or create an inventory finding export job |
67
- | `npx -y @knowttl/tenable-axi export inventory download` | Download one inventory chunk to a new redacted file |
68
- | `npx -y @knowttl/tenable-axi export inventory status` | Read one inventory export status without polling |
69
- | `npx -y @knowttl/tenable-axi export mitre-heatmap start` | Preview or start one mitre-heatmap export; requires configured write scope and ATTACK_PATH.WRITE |
70
- | `npx -y @knowttl/tenable-axi finding list` | Search findings |
71
- | `npx -y @knowttl/tenable-axi finding properties` | Discover finding properties and supported operators |
72
- | `npx -y @knowttl/tenable-axi finding show` | Find one finding by exact ID search |
73
- | `npx -y @knowttl/tenable-axi finding summary` | Count findings by each published severity and sensor_type value using limit-1 searches; no per-asset grouping |
74
- | `npx -y @knowttl/tenable-axi home` | Show profile state and up to five live exposure cards |
75
- | `npx -y @knowttl/tenable-axi hook` | Show compact local profile context without resolving secrets or HTTP |
76
- | `npx -y @knowttl/tenable-axi initiative create` | Preview or create initiative |
77
- | `npx -y @knowttl/tenable-axi initiative delete` | Preview or delete initiative |
78
- | `npx -y @knowttl/tenable-axi initiative list` | list initiatives |
79
- | `npx -y @knowttl/tenable-axi initiative show` | show initiative |
80
- | `npx -y @knowttl/tenable-axi initiative update` | Preview or update initiative |
81
- | `npx -y @knowttl/tenable-axi profile list` | List configured profiles without resolving secrets or contacting Tenable |
82
- | `npx -y @knowttl/tenable-axi setup hooks` | Explicitly install or repair local agent session integrations |
83
- | `npx -y @knowttl/tenable-axi software list` | Search software; the pinned API exposes no stable software ID |
84
- | `npx -y @knowttl/tenable-axi software properties` | Discover software properties and supported operators |
85
- | `npx -y @knowttl/tenable-axi tag asset-filter list` | List documented dynamic tag filter definitions |
86
- | `npx -y @knowttl/tenable-axi tag assignment add` | add tags for the exact asset set |
87
- | `npx -y @knowttl/tenable-axi tag assignment list` | List tags assigned to one asset |
88
- | `npx -y @knowttl/tenable-axi tag assignment remove` | remove tags for the exact asset set |
89
- | `npx -y @knowttl/tenable-axi tag category create` | Create platform tag category |
90
- | `npx -y @knowttl/tenable-axi tag category delete` | Delete platform tag category |
91
- | `npx -y @knowttl/tenable-axi tag category list` | List platform tag category |
92
- | `npx -y @knowttl/tenable-axi tag category show` | Show platform tag category |
93
- | `npx -y @knowttl/tenable-axi tag category update` | Update platform tag category |
94
- | `npx -y @knowttl/tenable-axi tag exclusion list` | List assets excluded from a dynamic tag |
95
- | `npx -y @knowttl/tenable-axi tag list` | Search Exposure Management tags |
96
- | `npx -y @knowttl/tenable-axi tag properties` | List available tag properties and operators |
97
- | `npx -y @knowttl/tenable-axi tag value bulk-delete` | Preview or delete the exact tag value set |
98
- | `npx -y @knowttl/tenable-axi tag value create` | Create platform tag value |
99
- | `npx -y @knowttl/tenable-axi tag value delete` | Delete platform tag value |
100
- | `npx -y @knowttl/tenable-axi tag value list` | List platform tag value |
101
- | `npx -y @knowttl/tenable-axi tag value show` | Show platform tag value |
102
- | `npx -y @knowttl/tenable-axi tag value update` | Update platform tag value |
97
+ | `VALIDATION_ERROR` | Fix selectors, flag spelling or filter grammar using the returned hint; upstream validation can exit 1. |
98
+ | `CONFIG_INVALID`, `CONFIG_INSECURE` | Fix the profile/SecretRefs or private file permissions; use a complete credential pair and the supported origin. |
99
+ | `AUTH_REQUIRED` (401) | Repair credentials through the approved secret source; do not repeat unchanged requests. |
100
+ | `PERMISSION_DENIED` (403) | Check licensing and the operation's privilege; inventory access does not imply attack or connector access. |
101
+ | `NOT_FOUND` | Verify the exact ID and selected profile; a zero-row list is instead a successful search. |
102
+ | `RATE_LIMITED`, `REQUEST_FAILED`, `TRANSPORT_FAILED` | Reads already retry 429/502/503/504 up to twice within budgets; honor `retryAfter` milliseconds and investigate persistent failure. |
103
+ | `RESPONSE_INVALID` | Treat the result as invalid or partial. For transport JSON/schema failures, report the HTTP status, contentType, bounded shape and issues (received/expected types); values and validator messages are omitted. Later command checks may carry only a fixed message. |
104
+ | `DEADLINE_EXCEEDED`, `REQUEST_BUDGET_EXCEEDED`, `BYTE_BUDGET_EXCEEDED`, `ROW_BUDGET_EXCEEDED` | Narrow filters/fields or resume a supplied cursor; never infer completeness. |
105
+ | `EXPORT_NOT_READY` | Inspect job state before downloading; status waiting does not guarantee completion. |
106
+ | `OPERATION_BLOCKED`, `OUTCOME_UNKNOWN` | Respect write guards; for unknown mutation outcomes follow the audit ID and read-back advice, never replay blindly. |