@everfir/az8-cli 0.3.0 → 0.4.0
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/CHANGELOG.md +35 -0
- package/README.md +68 -39
- package/RELEASE.md +2 -2
- package/dist/main.js +26060 -25172
- package/package.json +1 -1
- package/skills/az8-cli/SKILL.md +67 -26
package/package.json
CHANGED
package/skills/az8-cli/SKILL.md
CHANGED
|
@@ -22,9 +22,10 @@ capabilities instead of guessing operation names or input shapes.
|
|
|
22
22
|
indeterminate result; do not execute later steps.
|
|
23
23
|
- Never automatically retry a write. Retry only bounded reads when the returned error says doing so
|
|
24
24
|
is safe. An idempotency key does not authorize blind replay.
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
print, or return a token through a shell tool call, argv, stdio
|
|
25
|
+
- Prefer `az8 login` browser authorization for the current operating-system user. Externally
|
|
26
|
+
provisioned inherited-environment and env-file credentials remain higher-priority automation
|
|
27
|
+
inputs. Never type, read, copy, print, or return a token through a shell tool call, argv, stdio
|
|
28
|
+
frame, prompt, log, or output.
|
|
28
29
|
|
|
29
30
|
## Concepts
|
|
30
31
|
|
|
@@ -57,23 +58,45 @@ capabilities instead of guessing operation names or input shapes.
|
|
|
57
58
|
name is always `<authenticated display name> (<client suffix>)`; the default suffix is `cli`.
|
|
58
59
|
CLI awareness does not publish selection bounds. Awareness never grants authority, changes
|
|
59
60
|
persisted authorship, or proves a business result.
|
|
60
|
-
- **Actor** is the
|
|
61
|
-
impersonate another author.
|
|
61
|
+
- **Actor** is the account selected by the active credential source. A client or awareness name
|
|
62
|
+
cannot impersonate another author.
|
|
62
63
|
|
|
63
64
|
## Bootstrap
|
|
64
65
|
|
|
65
|
-
1. Report the canonical working directory and intended environment
|
|
66
|
-
|
|
67
|
-
inspecting the file or secret. Then verify the installed client without credentials:
|
|
66
|
+
1. Report the canonical working directory and intended environment. Then verify the installed
|
|
67
|
+
client without credentials:
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
70
|
az8 --version
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
2.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
2. Check the active identity without inspecting credential material:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
az8 whoami --environment test
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
If no credential is available, invoke browser authorization and ask the user to approve the
|
|
80
|
+
request in the opened AZ8 Studio page:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
az8 login --environment test
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`login` emits the verification URL and User Code as structured progress while it waits. Do not
|
|
87
|
+
create a polling loop around it. If the browser cannot be opened on the agent host, use
|
|
88
|
+
`az8 login --environment test --no-open`, give the emitted URL to the user, and keep that one
|
|
89
|
+
command running until it succeeds or fails. Authorization delivery is at-most-once: a lost
|
|
90
|
+
response, cancelled CLI, or failed local save requires a completely new `az8 login`; never retry
|
|
91
|
+
the consumed exchange yourself.
|
|
92
|
+
|
|
93
|
+
The CLI stores browser-authorized credentials privately by operating-system user and environment.
|
|
94
|
+
`az8 logout` removes only that local credential and closes daemon Sessions that depend on it; it
|
|
95
|
+
is not online revocation. Do not log out automatically at task completion.
|
|
96
|
+
|
|
97
|
+
The CLI also accepts `AZ8_TOKEN` from its inherited process environment or an env file for
|
|
98
|
+
externally managed automation. A provisioned env file has this shape, but the agent must not fill
|
|
99
|
+
the placeholder with a real token in a recorded interaction:
|
|
77
100
|
|
|
78
101
|
```dotenv
|
|
79
102
|
AZ8_TOKEN=<operator-provisioned-secret>
|
|
@@ -88,15 +111,16 @@ capabilities instead of guessing operation names or input shapes.
|
|
|
88
111
|
--environment test --env-file /secure/path/.env.local
|
|
89
112
|
```
|
|
90
113
|
|
|
91
|
-
Use
|
|
92
|
-
`
|
|
93
|
-
|
|
94
|
-
|
|
114
|
+
Use `az8 whoami` as the credential check. Never verify a token with `cat`, `sed`, `grep`, `env`,
|
|
115
|
+
`printenv`, `echo`, shell tracing, or by reading the env file through another tool. Do not create,
|
|
116
|
+
edit, move, or delete a credential file unless the operator explicitly asks through a secure
|
|
117
|
+
provisioning workflow. Keep it outside version control with owner-only access.
|
|
95
118
|
|
|
96
|
-
The inherited process environment overrides env-file values
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
119
|
+
The inherited process environment overrides env-file values, and env-file values override the
|
|
120
|
+
locally saved login; `--environment` overrides `AZ8_ENVIRONMENT`. `az8 login` can save a local
|
|
121
|
+
credential while an external credential remains active, so check the returned `credential.active`
|
|
122
|
+
field and use `az8 whoami` to confirm the effective Actor. Always pass or provision the intended
|
|
123
|
+
environment explicitly. Never ask the user to paste a secret into chat.
|
|
100
124
|
|
|
101
125
|
3. Select an existing Project or create a bounded workspace:
|
|
102
126
|
|
|
@@ -114,7 +138,7 @@ capabilities instead of guessing operation names or input shapes.
|
|
|
114
138
|
```bash
|
|
115
139
|
az8 session open <project-id> --environment test
|
|
116
140
|
az8 session query capabilities.summary
|
|
117
|
-
az8 session query capabilities.detail
|
|
141
|
+
az8 session query capabilities.detail --operation-name <operation-name>
|
|
118
142
|
az8 session query canvas.summary
|
|
119
143
|
```
|
|
120
144
|
|
|
@@ -126,9 +150,11 @@ capabilities instead of guessing operation names or input shapes.
|
|
|
126
150
|
az8 canvas query <project-id> canvas.summary --environment test
|
|
127
151
|
```
|
|
128
152
|
|
|
129
|
-
`capabilities.summary` is the short menu.
|
|
130
|
-
|
|
131
|
-
|
|
153
|
+
`capabilities.summary` is the short menu. Select one Operation with `--operation-name` when
|
|
154
|
+
querying `capabilities.detail`; that focused response is authoritative for exact JSON Schema,
|
|
155
|
+
`effect`, `history`, `completion`, and `retry`. Availability is filtered by the current account,
|
|
156
|
+
Project role, upstream services, and CLI version. Do not load the full detail catalog or rely on
|
|
157
|
+
remembered schemas.
|
|
132
158
|
|
|
133
159
|
5. Use `canvas.detail` only when exact node geometry, Draft, status, or bindings are needed:
|
|
134
160
|
|
|
@@ -244,7 +270,8 @@ one-shot processes.
|
|
|
244
270
|
## Canvas SOP
|
|
245
271
|
|
|
246
272
|
1. Query `canvas.summary`; query selected details only as needed.
|
|
247
|
-
2. Query `capabilities.detail
|
|
273
|
+
2. Query `capabilities.detail --operation-name <operation-name>` and validate the planned Operation
|
|
274
|
+
input against its schema.
|
|
248
275
|
3. When artifact type and placement are already clear, make the first meaningful Canvas state
|
|
249
276
|
visible before doing lengthy prompt refinement or generation planning:
|
|
250
277
|
- create the generation target first, inspect whether its eligible default Draft was
|
|
@@ -275,6 +302,9 @@ entries. Never use compensating low-level mutations to imitate undo.
|
|
|
275
302
|
|
|
276
303
|
Generation is an explicit sequence, never one transaction:
|
|
277
304
|
|
|
305
|
+
`getCoreNode` requires a non-empty unique `coreNodeIds` batch and returns `coreNodes` in request
|
|
306
|
+
order. Treat any missing requested Core Node as a failed read.
|
|
307
|
+
|
|
278
308
|
1. Create a target with `createGenerationTarget` and retain its View Node ID. It accepts `audio`,
|
|
279
309
|
`image`, `text`, or `video`; `createMediaTarget` remains a compatibility capability for non-text
|
|
280
310
|
targets when advertised. The same creation interaction initializes an account-eligible default
|
|
@@ -296,6 +326,9 @@ Generation is an explicit sequence, never one transaction:
|
|
|
296
326
|
plan.
|
|
297
327
|
4. Execute `plan.operations` exactly in order, one Operation at a time. Each step revalidates
|
|
298
328
|
current facts. Stop after the first non-success.
|
|
329
|
+
`addVisualReference` requires a non-empty unique `referenceViewNodeIds` batch, and
|
|
330
|
+
`removeVisualReference` requires a non-empty unique `referenceIds` batch. The runtime validates
|
|
331
|
+
the whole batch and writes the Draft once.
|
|
299
332
|
When a reference must also appear at a meaningful Prompt position, use
|
|
300
333
|
`insertPromptReference` with the target View Node and visible reference View Node. Use
|
|
301
334
|
`placement: "start"` or `"end"` for boundary placement, or anchor a named concept precisely:
|
|
@@ -345,7 +378,15 @@ delivers each unchanged terminal fact once. User Workflow Interests are additive
|
|
|
345
378
|
progress observations, but cannot remove or narrow the system terminal stream. This is Session
|
|
346
379
|
discovery, not an account-wide or historical Workflow event log.
|
|
347
380
|
|
|
348
|
-
Workflow Definitions change over time.
|
|
381
|
+
Workflow Definitions change over time. Start with a bounded catalog page:
|
|
382
|
+
|
|
383
|
+
```bash
|
|
384
|
+
az8 session query workflowDefinitions.summary --page-size 10
|
|
385
|
+
az8 session query workflowDefinitions.summary --workflow-target image --page-size 10
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
The compact response reports `catalog.targetCounts`, filtered `pagination.total`, and an opaque
|
|
389
|
+
`pagination.nextCursor`. Continue only when more Definition identities are needed. Then query
|
|
349
390
|
`workflowDefinition.detail` only when planning detail is insufficient. Never guess a Definition,
|
|
350
391
|
configuration option, modality, cost, or media compatibility from its display name.
|
|
351
392
|
Summary discovery, defaults, planning, and start are filtered to Definitions available to the
|