@everfir/az8-cli 0.3.0-preview.3 → 0.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everfir/az8-cli",
3
- "version": "0.3.0-preview.3",
3
+ "version": "0.3.0",
4
4
  "description": "Semantic Project Canvas client for AZ8 Studio agents.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  "main": "./dist/main.js",
17
17
  "publishConfig": {
18
18
  "access": "public",
19
- "tag": "preview"
19
+ "tag": "latest"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "pnpm build:dependencies && rm -rf dist && esbuild src/main.ts --bundle --platform=node --format=esm --target=node22.12 --banner:js='import { createRequire } from \"node:module\"; const require = createRequire(import.meta.url);' --outfile=dist/main.js",
@@ -247,7 +247,8 @@ one-shot processes.
247
247
  2. Query `capabilities.detail` and validate the planned Operation input against its schema.
248
248
  3. When artifact type and placement are already clear, make the first meaningful Canvas state
249
249
  visible before doing lengthy prompt refinement or generation planning:
250
- - create the empty generation target first, then plan and edit its Draft;
250
+ - create the generation target first, inspect whether its eligible default Draft was
251
+ initialized, then plan and edit;
251
252
  - create an empty manual Text Resource with `text: ""`, then fill it with
252
253
  `editTextContent`;
253
254
  - create a Note with its useful content directly rather than creating an empty sticky.
@@ -276,7 +277,9 @@ Generation is an explicit sequence, never one transaction:
276
277
 
277
278
  1. Create a target with `createGenerationTarget` and retain its View Node ID. It accepts `audio`,
278
279
  `image`, `text`, or `video`; `createMediaTarget` remains a compatibility capability for non-text
279
- targets when advertised.
280
+ targets when advertised. The same creation interaction initializes an account-eligible default
281
+ Draft when one exists; inspect `draftInitialized`, `definitionId`, and `selectionSource`. This is
282
+ convenience state only: it does not start or estimate generation.
280
283
  2. Call the read-only `planGeneration` Operation with the target, prompt, and any references. Use
281
284
  `detail: "detail"` when configuration fields or dynamic enum options are needed.
282
285
  Every reference must be `{ "viewNodeId": "..." }`. If the desired Core Node is not currently
@@ -316,9 +319,11 @@ Generation is an explicit sequence, never one transaction:
316
319
  acknowledged. This completes the start interaction; it does not mean generation finished.
317
320
  6. Retain the Workflow Run ID. The Session automatically covers its terminal state through
318
321
  `system.workflow-terminal`; call one foreground `az8 session watch` whenever completion is the
319
- next useful event. The terminal summary contains the Run, target View Node, and output Core Node
320
- identities supplied by Workflow Runtime. Continue other work first when it does not require the
321
- output, and use `getWorkflowRun` at a meaningful authoritative checkpoint.
322
+ next useful event. The terminal summary includes the target View Node only when the Session can
323
+ map it uniquely from authoritative launch or Canvas History facts. If `targetResolution` is
324
+ `unresolved` or `ambiguous`, query the Run and Canvas rather than guessing. Continue other work
325
+ first when it does not require the output, and use `getWorkflowRun` at a meaningful
326
+ authoritative checkpoint.
322
327
  7. Use `waitWorkflowRun` only when the next step actually requires terminal output and the current
323
328
  request lane can remain dedicated to waiting. Choose one intentional observation window; do not
324
329
  emulate polling with repeated short waits. An observation-window timeout while the authoritative
@@ -343,6 +348,13 @@ discovery, not an account-wide or historical Workflow event log.
343
348
  Workflow Definitions change over time. Query `workflowDefinitions.summary`, then
344
349
  `workflowDefinition.detail` only when planning detail is insufficient. Never guess a Definition,
345
350
  configuration option, modality, cost, or media compatibility from its display name.
351
+ Summary discovery, defaults, planning, and start are filtered to Definitions available to the
352
+ authenticated account. Detail may retain an unavailable historical Definition for diagnosis and
353
+ marks it with `availableForAccount` and `accessReason`.
354
+
355
+ Workflow tags classify compatibility, access, and rollout; they are not pricing evidence.
356
+ `available:free` means a free-tier account may select that Workflow. It does not mean generation
357
+ costs zero credits. Use planning/start estimates and terminal usage records for credit information.
346
358
 
347
359
  The start Receipt may report `usage.credits.status` as `estimated`, `not-consumed`, or `unknown`.
348
360
  Estimated cost is informational, not final charged usage. There is no second confirmation. Never