@beehexa/hexasync-ai-toolkit 2611.8.2 → 2611.14.1
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/mcp.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/README.md +27 -8
- package/dist/cli.js +7 -3
- package/gemini-extension.json +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
- package/plugin.json +1 -1
- package/skills/hexasync-connections/SKILL.md +20 -8
- package/skills/hexasync-connections/references/INDEX.md +18 -0
- package/skills/hexasync-connections/references/INSTALL.md +22 -6
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.md +16 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-error-handling/SKILL.md +9 -7
- package/skills/hexasync-error-handling/references/INSTALL.md +22 -6
- package/skills/hexasync-expressions/SKILL.md +21 -9
- package/skills/hexasync-expressions/references/INDEX.md +18 -0
- package/skills/hexasync-expressions/references/INSTALL.md +22 -6
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.quick-reference-the-three-expression-dialects.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +20 -1
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +16 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-field-mapping/SKILL.md +10 -9
- package/skills/hexasync-field-mapping/references/INSTALL.md +22 -6
- package/skills/hexasync-metrics-reports/SKILL.md +9 -7
- package/skills/hexasync-metrics-reports/references/INSTALL.md +22 -6
- package/skills/hexasync-pullers/SKILL.md +9 -7
- package/skills/hexasync-pullers/references/INSTALL.md +22 -6
- package/skills/hexasync-pushers/SKILL.md +10 -10
- package/skills/hexasync-pushers/references/INSTALL.md +22 -6
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +35 -8
- package/skills/hexasync-query-dsl/SKILL.md +10 -10
- package/skills/hexasync-query-dsl/references/INDEX.md +1 -1
- package/skills/hexasync-query-dsl/references/INSTALL.md +22 -6
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +16 -8
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +1 -1
- package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -7
- package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +22 -6
- package/skills/hexasync-steps-api-http/SKILL.md +22 -17
- package/skills/hexasync-steps-api-http/references/INDEX.md +18 -0
- package/skills/hexasync-steps-api-http/references/INSTALL.md +22 -6
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +16 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +6 -0
- package/skills/hexasync-steps-control-data/SKILL.md +22 -18
- package/skills/hexasync-steps-control-data/references/INDEX.md +18 -0
- package/skills/hexasync-steps-control-data/references/INSTALL.md +22 -6
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +16 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-tables-tasks-objects/SKILL.md +9 -7
- package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +22 -6
- package/skills/hexasync-templates/SKILL.md +22 -9
- package/skills/hexasync-templates/references/AI-INDEX.md +10 -7
- package/skills/hexasync-templates/references/INDEX.md +19 -0
- package/skills/hexasync-templates/references/INSTALL.md +22 -6
- package/skills/hexasync-templates/references/KB-INDEX.md +5 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +13 -2
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md +76 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +6 -4
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +205 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +11 -9
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +31 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.md +2 -1
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +16 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-transformations/SKILL.md +9 -7
- package/skills/hexasync-transformations/references/INSTALL.md +22 -6
- package/skills/hexasync-validations/SKILL.md +9 -7
- package/skills/hexasync-validations/references/INSTALL.md +22 -6
- package/skills/hexasync-webhooks/SKILL.md +9 -7
- package/skills/hexasync-webhooks/references/INSTALL.md +22 -6
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Frontend steps (creationSteps, setupSteps, authorizationSteps)
|
|
4
4
|
|
|
5
|
-
**Contract.** Frontend steps run in the browser wizard, not in the worker. The same
|
|
5
|
+
**Contract.** Frontend steps run in the browser wizard, not in the worker. The same canonical Step is used by grouped `getReadyFlows[].steps`, a profile template's `creationSteps`, profile-connection `setupSteps` and a connector definition's `appRegistrationSteps`, `authorizationSteps`, `authorizationCallbackSteps`, `installStandaloneCallbackSteps` and `setupSteps`. Each array is a local graph with one true `root`; nonterminal results are readable by later steps in that same workflow as `{{ outputs.<STEP_KEY>... }}`. Grouped invocations must terminate through explicit [RETURN](frontend.FRONTEND-FLOWS.return.md); direct legacy arrays retain their existing exhaustion behavior. Frontend uses `type`/`metadata`, never worker `displayType`/`data`; do not mix the runtimes in an array.
|
|
6
6
|
|
|
7
7
|
**When to use.** Use frontend steps to collect input, authorize a connection, register an integration app and create the profile. Use worker steps (`displayType`, see [step envelope](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component)) for anything that moves data after the profile exists. Put a flow that every profile using a connector needs into the connector definition's `setupSteps`; put profile-specific questions into the template's `creationSteps`.
|
|
8
8
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
```yaml
|
|
12
12
|
creationSteps: # <Step[]>; optional; no default
|
|
13
13
|
- key: STEP_KEY # <string ^[A-Z0-9_]+$>; unique in the array; optional; no default
|
|
14
|
-
root: true # <boolean |
|
|
14
|
+
root: true # <boolean | string>; prefer boolean; entry step; optional; no default
|
|
15
15
|
type: FORM # <step type enum>; required; no default
|
|
16
16
|
name: Title # <string | null>; optional; no default
|
|
17
17
|
description: Help text # <string | null>; Markdown or http(s) URL; optional; no default
|
|
@@ -19,7 +19,7 @@ creationSteps: # <Step[]>; optional; no default
|
|
|
19
19
|
metadata: { fields: [] } # <object | string; shape depends on type>; required for FORM and several others
|
|
20
20
|
arguments: {} # <object | null>; optional; no default
|
|
21
21
|
outputs: [] # <Output[] | null>; optional; no default
|
|
22
|
-
dryRun: false # <boolean |
|
|
22
|
+
dryRun: false # <boolean | string>; optional; no default
|
|
23
23
|
repeatableCount: 20 # <number>; defaults to 20
|
|
24
24
|
repeatableDetailCount: 10 # <number>; defaults to 10
|
|
25
25
|
next: NEXT_KEY # <step key | null | NextBranch>; optional; omit to end the flow
|
|
@@ -87,7 +87,7 @@ creationSteps:
|
|
|
87
87
|
metadata: { type: SUCCESS }
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
This section is served as
|
|
90
|
+
This section is served as 20 separate resources. Read the one you need:
|
|
91
91
|
|
|
92
92
|
- [Step envelope fields](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md) — Members shared by every frontend step type, whatever its type.
|
|
93
93
|
- [NextBranch fields](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.nextbranch-fields.md) — The object form of next.
|
|
@@ -95,10 +95,12 @@ This section is served as 18 separate resources. Read the one you need:
|
|
|
95
95
|
- [Form field fields](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form-field-fields.md) — One entry of a FORM step's metadata.fields.
|
|
96
96
|
- [`FORM`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form.md) — Contract. Renders an input form; each field value is written to outputs.<STEP_KEY>.<FIELD_KEY> (and is readable later as {{ inputs.<FIELD_KEY> }}).
|
|
97
97
|
- [`SINGLE_CHOICE_FORM / MULTIPLE_CHOICE_FORM`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.single_choice_form--multiple_choice_form.md) — Contract. Shows a pick list built by a JSONata expression returning [{ label, value, data }].
|
|
98
|
+
- [`RECORDS_FORM`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md) — Contract. Shows a paged table in which the user adds, edits and removes several records, then stores the changes, without spreading, as outputs.<STEP_KEY> = {rows, upserts, removes, unchanged}.
|
|
98
99
|
- [`API / GATEWAY_API`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md) — Contract. Executes an HTTP request described as a Liquid-templated cURL command.
|
|
99
100
|
- [`BROWSER`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.browser.md) — Contract. Navigates the browser to url, typically an OAuth consent page, after the user confirms with an acknowledgement button.
|
|
100
101
|
- [`REDIRECT`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.redirect.md) — Contract. Redirects through a registered integration app (an OAuth app owned by the platform), after an acknowledgement button.
|
|
101
102
|
- [`SHOW_INFO`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.show_info.md) — Contract. Shows an acknowledgement panel with name and msg/description; the wizard continues when the user presses the button.
|
|
103
|
+
- [`FAIL`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md) — Contract. Ends the run as failed with an authored code and message.
|
|
102
104
|
- [`GET_LOCAL_STORAGE / SET_LOCAL_STORAGE`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.get_local_storage--set_local_storage.md) — Contract. Reads/writes a browser-side record by id so state survives page reloads and is shared between wizards.
|
|
103
105
|
- [`WAIT`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.wait.md) — Contract. Pauses before following next.
|
|
104
106
|
- [`IF / SWITCH`](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.if--switch.md) — Contract. Frontend branching.
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
> Part of [Profile root fields](PROFILE-ROOT.md) › [Profile root fields](PROFILE-ROOT.profile-root-fields-1.md) › [Frontend steps (creationSteps, setupSteps, authorizationSteps)](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md).
|
|
2
|
+
|
|
3
|
+
#### `RECORDS_FORM`
|
|
4
|
+
|
|
5
|
+
**Contract.** Shows a paged table in which the user adds, edits and removes several records, then stores the changes, without spreading, as `outputs.<STEP_KEY> = {rows, upserts, removes, unchanged}`. `upserts` are full rows (every declared column plus every non-column key from `initial`, verbatim); `removes` are full rows exactly as loaded; `unchanged` is a count. **The step never writes** — later `API` steps save the changes.
|
|
6
|
+
|
|
7
|
+
**When to use.** Edit a list of records in one place, such as the rows of a reference task or a set of worker settings. For one record use `FORM`; to pick existing records without editing them use `SINGLE_CHOICE_FORM`/`MULTIPLE_CHOICE_FORM`. Place it in a flow that runs once the profile and its tasks exist, such as a `getReadyFlows` flow as in [the full example](frontend.FRONTEND-FLOWS.records_form.md) — not in `creationSteps`, the wizard that creates the profile, where there are no task rows to read or save yet. The `creationSteps:` wrapper in the snippets below only shows the step's shape.
|
|
8
|
+
|
|
9
|
+
**Save a TASK form with one change set.** After the [worker.proxy capability is deployed](frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md#availability-of-the-data-routes), send `outputs.EDIT.upserts` as `changes.upsert` and `outputs.EDIT.removes` as `changes.disable` in one `POST /proxy/workers/api/v2/tasks/<taskId>/data/changes` request with a real `notes` value. Do not map system status/hash members: the service ignores `__*` fields and returns per-row outcomes from the writing transaction, so one outcome check replaces the verification read. Skip empty sets; at most 5,000 rows are accepted. A controlled API failure can follow plain `next`, so check the HTTP status and outcomes before SUCCESS and read refusal `code`/`detail` from `outputs.SAVE.error.detail.rawData` with transport status at `outputs.SAVE.error.detail.status`. Treat INTERNAL_ERROR, malformed answers and network loss as unconfirmed saves; do not promise rollback. Never automatically resend an uncertain save. The complete [change-set example](frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md) includes its task, table, form, save and outcome check.
|
|
10
|
+
|
|
11
|
+
The same data API serves in-schema references with `entityType: references`; it does not add a REFERENCE form target kind. [Changes, preview, health and repair](frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md) document permissions, row shapes, limits, response members and every refusal code with the flow's response. Preview uses the same body without a required note; health reads counts; repair fills provable missing task identities/change hashes and reports unresolved rows. These are unreleased worker.proxy PR #78 capabilities, not a core.api version requirement.
|
|
12
|
+
|
|
13
|
+
**File-import path (existing contract).** **Remove means disable, never delete.** For a `TASK` target, save with ONE `…/data/import/data?r=false` call whose items are the upserts with `__status: 1` and the removes with `__status: 3` (Removed|Changed, so an existing apply pusher can re-evaluate the removed override); set `__status` on every row, because a REFERENCE task imports a missing or blank status as Removed. The import needs every table column on every row, one key set for all rows and a real change note: send the non-`__` columns, `__status`, and `__destination_id` only when every row carries it, and drop the other `__` system keys loaded rows carry. Read back with `__status not_hbw 6` before reporting success. Never use `r=true`, which disables every row missing from the payload. A `WORKER_SETTINGS` target saves with `PUT …/worker-settings/ {values}`; it has no disable status, so keep `allow.remove` false there unless your save defines it. Inside a single-quoted `--data '…'` body, render user values as `{{ value | json | replace: "'", "\\u0027" }}` so an apostrophe cannot end the body. The complete flow, including the task, table, import and read-back, is the [RECORDS_FORM example](frontend.FRONTEND-FLOWS.records_form.md).
|
|
14
|
+
|
|
15
|
+
Syntax: `type: RECORDS_FORM`, `metadata: { target, identity, columns, initial?, allow?, pageSize?, search? }`.
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
creationSteps:
|
|
19
|
+
- key: EDIT_SETTINGS # <string>
|
|
20
|
+
type: RECORDS_FORM # required
|
|
21
|
+
metadata: # <object>; required
|
|
22
|
+
target: { kind: WORKER_SETTINGS } # required; TASK needs taskId
|
|
23
|
+
identity: [KEY] # required; >= 1 column key
|
|
24
|
+
columns: # required; >= 1 hand-written column
|
|
25
|
+
- { key: KEY, name: Setting, type: TEXT, readonly: true }
|
|
26
|
+
- { key: VALUE, name: Value, type: TEXT }
|
|
27
|
+
initial: "jsonata:: outputs.READ_ROWS.items" # optional; rows from a preceding API read; defaults to no rows
|
|
28
|
+
allow: { edit: true } # optional; defaults to {add: false, edit: true, remove: false}
|
|
29
|
+
pageSize: 20 # optional; defaults to 20
|
|
30
|
+
next: SAVE_ROWS # optional; your explicit save step
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Sensible configuration** — read the rows, edit them with entity search, then save with one changes API step and check its returned outcomes as in [the change-set example](frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md). The retained [file-import path](frontend.FRONTEND-FLOWS.records_form.file-import-path.md) uses its own status mapping and read-back. A WORKER_SETTINGS target still uses its existing settings API.
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
creationSteps:
|
|
37
|
+
- key: READ_RECORDS
|
|
38
|
+
root: true
|
|
39
|
+
type: API
|
|
40
|
+
metadata: |-
|
|
41
|
+
curl --location '/proxy/workers/api/tasks/**Example_Records_Task_Id**/data/search' --request POST --header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' --header 'Content-Type: application/json' --data '{"limit":500,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6}]}}'
|
|
42
|
+
next: EDIT_RECORDS
|
|
43
|
+
- key: EDIT_RECORDS
|
|
44
|
+
type: RECORDS_FORM
|
|
45
|
+
name: Edit records
|
|
46
|
+
metadata:
|
|
47
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
|
|
48
|
+
identity: [code]
|
|
49
|
+
initial: "jsonata:: outputs.READ_RECORDS.items"
|
|
50
|
+
columns:
|
|
51
|
+
- { key: code, name: Code, type: TEXT, required: true, readonly: true }
|
|
52
|
+
- { key: name, name: Name, type: TEXT, required: true }
|
|
53
|
+
- { key: quantity, name: Quantity, type: NUMBER, min: 0 }
|
|
54
|
+
- { key: note, name: Note, type: MULTILINE_TEXT }
|
|
55
|
+
allow: { add: true, edit: true, remove: true }
|
|
56
|
+
search:
|
|
57
|
+
request: |-
|
|
58
|
+
curl --location '/proxy/workers/api/tasks/**Example_Catalog_Task_Id**/data/search' --request POST --header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' --header 'Content-Type: application/json' --data '{"limit":20,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6},{"leftOp":"code","condition":"ct","rightOp":{{ search.text | json | replace: "'", "\\u0027" }}}]}}'
|
|
59
|
+
items: "jsonata:: items"
|
|
60
|
+
label: "{{ item.code }} — {{ item.name }}"
|
|
61
|
+
fill: { code: "{{ item.code }}", name: "{{ item.name }}" }
|
|
62
|
+
next: BUILD_IMPORT
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Load `initial` with an `API` read just before the form, declare every table column when users may add rows, keep identity columns `readonly` and set them from `search.fill`, and enable `remove` only when the import step maps removes to a disable status.
|
|
66
|
+
|
|
67
|
+
##### `target` (RECORDS_FORM)
|
|
68
|
+
|
|
69
|
+
Syntax: `target: { kind: TASK | WORKER_SETTINGS, taskId?: <task id> }`
|
|
70
|
+
|
|
71
|
+
Where the rows belong. `TASK` needs `taskId` — a literal task UUID or `**Variable**` placeholder — and its table is used to check every column, identity and fill key (FFE-12; an unresolvable task or table is reported as uncertain). `WORKER_SETTINGS` takes no `taskId` and skips the table check. Declarative only: the step never writes to it. Required; no default.
|
|
72
|
+
|
|
73
|
+
```yaml
|
|
74
|
+
creationSteps:
|
|
75
|
+
- key: EDIT_RECORDS
|
|
76
|
+
root: true
|
|
77
|
+
type: RECORDS_FORM
|
|
78
|
+
metadata:
|
|
79
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" } # required; no default
|
|
80
|
+
identity: [code]
|
|
81
|
+
columns: [{ key: code, name: Code, type: TEXT }]
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
##### `identity` (RECORDS_FORM)
|
|
85
|
+
|
|
86
|
+
Syntax: `identity: [<column key>, …]`
|
|
87
|
+
|
|
88
|
+
The column keys that identify one row. They block duplicate rows, match edits to loaded rows and identify removes; loaded identity values cannot be edited. Every key must be a `columns[].key`. Required, at least one; no default.
|
|
89
|
+
|
|
90
|
+
```yaml
|
|
91
|
+
creationSteps:
|
|
92
|
+
- key: EDIT_RECORDS
|
|
93
|
+
root: true
|
|
94
|
+
type: RECORDS_FORM
|
|
95
|
+
metadata:
|
|
96
|
+
target: { kind: WORKER_SETTINGS }
|
|
97
|
+
identity: [KEY] # required; >= 1 declared column
|
|
98
|
+
columns: [{ key: KEY, name: Setting, type: TEXT }]
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
##### `initial` (RECORDS_FORM)
|
|
102
|
+
|
|
103
|
+
Syntax: `initial: <array of objects> | "<Liquid or jsonata:: expression>"`
|
|
104
|
+
|
|
105
|
+
The rows shown when the step opens, usually the items of a preceding `API` read in the same workflow. Keys that are not columns are kept and returned untouched. Optional; absent means the table starts empty. A result that is not an array of objects fails the step.
|
|
106
|
+
|
|
107
|
+
```yaml
|
|
108
|
+
creationSteps:
|
|
109
|
+
- key: EDIT_RECORDS
|
|
110
|
+
root: true
|
|
111
|
+
type: RECORDS_FORM
|
|
112
|
+
metadata:
|
|
113
|
+
target: { kind: WORKER_SETTINGS }
|
|
114
|
+
identity: [KEY]
|
|
115
|
+
columns: [{ key: KEY, name: Setting, type: TEXT }]
|
|
116
|
+
initial: [{ KEY: EXAMPLE_SETTING }] # optional; defaults to no rows
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
##### `columns` (RECORDS_FORM)
|
|
120
|
+
|
|
121
|
+
Syntax: `columns: [{ key, name, type: TEXT | NUMBER | MULTILINE_TEXT, required?, readonly?, min? }]`
|
|
122
|
+
|
|
123
|
+
The editable columns, written by hand — never generated from table metadata. `key` must be a column of a TASK target's table; `required` blocks an empty cell; `readonly` cells take values only from `initial` or `search.fill`; `min` applies to `NUMBER` columns only. Required, at least one; `required` and `readonly` default to false.
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
creationSteps:
|
|
127
|
+
- key: EDIT_RECORDS
|
|
128
|
+
root: true
|
|
129
|
+
type: RECORDS_FORM
|
|
130
|
+
metadata:
|
|
131
|
+
target: { kind: WORKER_SETTINGS }
|
|
132
|
+
identity: [KEY]
|
|
133
|
+
columns: # required; >= 1
|
|
134
|
+
- { key: KEY, name: Setting, type: TEXT, readonly: true } # required/readonly default to false
|
|
135
|
+
- { key: LIMIT, name: Limit, type: NUMBER, min: 0 } # min only on NUMBER
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
##### `allow` (RECORDS_FORM)
|
|
139
|
+
|
|
140
|
+
Syntax: `allow: { add?: <boolean>, edit?: <boolean>, remove?: <boolean> }`
|
|
141
|
+
|
|
142
|
+
Which changes the user may make. With `search`, new rows come only from a search selection. Added rows carry only declared columns, so for a `TASK` target declare every table column when `add` is on. Removed rows go to `removes`; your import step must turn them into a disable status (worker settings have none, so keep `remove` off there). Optional; absent means `{add: false, edit: true, remove: false}`, and each omitted member keeps its own default.
|
|
143
|
+
|
|
144
|
+
```yaml
|
|
145
|
+
creationSteps:
|
|
146
|
+
- key: EDIT_RECORDS
|
|
147
|
+
root: true
|
|
148
|
+
type: RECORDS_FORM
|
|
149
|
+
metadata:
|
|
150
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
|
|
151
|
+
identity: [code]
|
|
152
|
+
columns:
|
|
153
|
+
- { key: code, name: Code, type: TEXT, required: true }
|
|
154
|
+
- { key: name, name: Name, type: TEXT }
|
|
155
|
+
- { key: quantity, name: Quantity, type: NUMBER, min: 0 }
|
|
156
|
+
- { key: note, name: Note, type: MULTILINE_TEXT }
|
|
157
|
+
allow: { add: true, remove: true } # edit keeps its default true
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
##### `pageSize` (RECORDS_FORM)
|
|
161
|
+
|
|
162
|
+
Syntax: `pageSize: <integer ≥ 1>`
|
|
163
|
+
|
|
164
|
+
Rows per table page; paging happens in the browser. Optional; defaults to 20.
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
creationSteps:
|
|
168
|
+
- key: EDIT_RECORDS
|
|
169
|
+
root: true
|
|
170
|
+
type: RECORDS_FORM
|
|
171
|
+
metadata:
|
|
172
|
+
target: { kind: WORKER_SETTINGS }
|
|
173
|
+
identity: [KEY]
|
|
174
|
+
columns: [{ key: KEY, name: Setting, type: TEXT }]
|
|
175
|
+
pageSize: 50 # defaults to 20
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
##### `search` (RECORDS_FORM)
|
|
179
|
+
|
|
180
|
+
Syntax: `search: { request: <Liquid cURL>, items: "jsonata:: <expression>", label: <Liquid>, fill: { <column key>: <Liquid> } }`
|
|
181
|
+
|
|
182
|
+
An optional entity search that adds one row per selection; it needs `allow.add: true`. `request` runs after the user pauses typing, with `{{ search.text }}` in scope — inside a single-quoted `--data '…'` body write `{{ search.text | json | replace: "'", "\\u0027" }}` so an apostrophe cannot end the body; `items` selects the found entities from the response only (shaped like an `API` step result; workflow roots are not visible there); `label` names each one and `fill` copies values into the new row, both with `{{ item }}`. `fill` keys must be columns, and a readonly required or identity column must be filled. Failures show inline and are never retried automatically. Optional; when present all four members are required.
|
|
183
|
+
|
|
184
|
+
```yaml
|
|
185
|
+
creationSteps:
|
|
186
|
+
- key: EDIT_RECORDS
|
|
187
|
+
root: true
|
|
188
|
+
type: RECORDS_FORM
|
|
189
|
+
metadata:
|
|
190
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
|
|
191
|
+
identity: [code]
|
|
192
|
+
columns:
|
|
193
|
+
- { key: code, name: Code, type: TEXT, required: true, readonly: true }
|
|
194
|
+
- { key: name, name: Name, type: TEXT }
|
|
195
|
+
- { key: quantity, name: Quantity, type: NUMBER, min: 0 }
|
|
196
|
+
- { key: note, name: Note, type: MULTILINE_TEXT }
|
|
197
|
+
allow: { add: true }
|
|
198
|
+
search: # optional; no default
|
|
199
|
+
request: |-
|
|
200
|
+
curl --location '/proxy/workers/api/tasks/**Example_Catalog_Task_Id**/data/search' --request POST --header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' --header 'Content-Type: application/json' --data '{"limit":20,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6},{"leftOp":"code","condition":"ct","rightOp":{{ search.text | json | replace: "'", "\\u0027" }}}]}}'
|
|
201
|
+
items: "jsonata:: items"
|
|
202
|
+
label: "{{ item.code }} — {{ item.name }}"
|
|
203
|
+
fill: { code: "{{ item.code }}", name: "{{ item.name }}" }
|
|
204
|
+
```
|
|
205
|
+
|
|
@@ -6,9 +6,9 @@ Members shared by every frontend step type, whatever its `type`.
|
|
|
6
6
|
|
|
7
7
|
##### `root`
|
|
8
8
|
|
|
9
|
-
Syntax: `root: <boolean |
|
|
9
|
+
Syntax: `root: <boolean | string>`
|
|
10
10
|
|
|
11
|
-
Marks the entry step of the array.
|
|
11
|
+
Marks the entry step of the array. Grouped `getReadyFlows[].steps` require exactly one true root and accept only booleans or exact lowercase strings `"true"`/`"false"`; both false forms are false. Absence stays absent. Numbers, null, expressions, whitespace-padded and mixed-case strings are invalid in grouped mode. Direct legacy arrays retain their boolean/string compatibility and root-selection behavior; prefer boolean literals in new authoring. No metadata expressions are normalized by this flag rule.
|
|
12
12
|
|
|
13
13
|
```yaml
|
|
14
14
|
authorizationSteps:
|
|
@@ -88,9 +88,11 @@ creationSteps:
|
|
|
88
88
|
|
|
89
89
|
##### `type` (step)
|
|
90
90
|
|
|
91
|
-
Syntax: `type: FORM | SINGLE_CHOICE_FORM | MULTIPLE_CHOICE_FORM | API | GATEWAY_API | BROWSER | REDIRECT | READ_QUERIES | GET_LOCAL_STORAGE | SET_LOCAL_STORAGE | SELECT_GOOGLE_DRIVE | HEALTH_CHECK_WORKER | SHOW_INFO | IF | SWITCH | JSONATA | LIQUID | WAIT | INTEGRATION_APP_MANAGEMENT`
|
|
91
|
+
Syntax: `type: FORM | SINGLE_CHOICE_FORM | MULTIPLE_CHOICE_FORM | API | GATEWAY_API | BROWSER | REDIRECT | READ_QUERIES | GET_LOCAL_STORAGE | SET_LOCAL_STORAGE | SELECT_GOOGLE_DRIVE | HEALTH_CHECK_WORKER | SHOW_INFO | IF | SWITCH | JSONATA | LIQUID | WAIT | INTEGRATION_APP_MANAGEMENT | RETURN | FAIL | PUBLISH_EVENT | RECORDS_FORM`
|
|
92
92
|
|
|
93
|
-
Selects the step runtime and therefore the shape of `metadata`. Required. Each value is documented in its own section below; pick the type by what the step must do: ask the user (`FORM`, `*_CHOICE_FORM`, `INTEGRATION_APP_MANAGEMENT`, `SELECT_GOOGLE_DRIVE`), call HTTP (`API`, `GATEWAY_API`), navigate (`BROWSER`, `REDIRECT`, `READ_QUERIES`), keep state (`GET_LOCAL_STORAGE`, `SET_LOCAL_STORAGE`), compute or branch (`JSONATA`, `LIQUID`, `IF`, `SWITCH`), pace (`WAIT`)
|
|
93
|
+
Selects the step runtime and therefore the shape of `metadata`. Required. Each value is documented in its own section below; pick the type by what the step must do: ask the user (`FORM`, `*_CHOICE_FORM`, `INTEGRATION_APP_MANAGEMENT`, `SELECT_GOOGLE_DRIVE`), edit several records at once (`RECORDS_FORM`), call HTTP (`API`, `GATEWAY_API`), navigate (`BROWSER`, `REDIRECT`, `READ_QUERIES`), keep state (`GET_LOCAL_STORAGE`, `SET_LOCAL_STORAGE`), compute or branch (`JSONATA`, `LIQUID`, `IF`, `SWITCH`), pace (`WAIT`), inform (`SHOW_INFO`, `HEALTH_CHECK_WORKER`) or end the run failed (`FAIL`).
|
|
94
|
+
|
|
95
|
+
Use [RETURN](frontend.FRONTEND-FLOWS.return.md) to settle a grouped invocation and [FAIL](frontend.FRONTEND-FLOWS.fail.md) to end any workflow failed with your own code and message; use [frontend PUBLISH_EVENT](frontend.FRONTEND-FLOWS.publish_event.md) for one profiles-owned public event request, not worker routing or a composite send/wait/receipt action. Use [RECORDS_FORM](frontend.FRONTEND-FLOWS.records_form.md) to edit rows; it never saves them. Qualify same-named MCP lookups with `runtime: frontend`.
|
|
94
96
|
|
|
95
97
|
```yaml
|
|
96
98
|
creationSteps:
|
|
@@ -104,7 +106,7 @@ creationSteps:
|
|
|
104
106
|
|
|
105
107
|
Syntax: `metadata: <object | string>` — shape depends on `type`
|
|
106
108
|
|
|
107
|
-
Per-type configuration, rendered with Liquid before the step runs. `API
|
|
109
|
+
Per-type configuration, rendered with Liquid before the step runs. `API` takes a cURL string and `GATEWAY_API` a `{tokenRequest, request}` pair of them; most other types take an object (see each type's section). `FORM`, `*_CHOICE_FORM`, `IF`, `SWITCH`, `JSONATA`, `LIQUID`, `INTEGRATION_APP_MANAGEMENT` and `SELECT_GOOGLE_DRIVE` require it; `READ_QUERIES` ignores it.
|
|
108
110
|
|
|
109
111
|
```yaml
|
|
110
112
|
creationSteps:
|
|
@@ -134,7 +136,7 @@ creationSteps:
|
|
|
134
136
|
|
|
135
137
|
Syntax: `outputs: <Output[] | null>`
|
|
136
138
|
|
|
137
|
-
Post-processors that run after the step and add derived fields to its result. Each entry is an [Output](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.output-fields.md). Rejected on `IF`, `SWITCH`, `JSONATA`, `LIQUID` and `
|
|
139
|
+
Post-processors that run after the step and add derived fields to its result. Each entry is an [Output](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.output-fields.md). Rejected on `IF`, `SWITCH`, `JSONATA`, `LIQUID`, `WAIT` and `RETURN`. Absent or `null` means the nonterminal result is published as is. RETURN instead maps `metadata.outputs` for its immediate caller and never publishes a step output.
|
|
138
140
|
|
|
139
141
|
```yaml
|
|
140
142
|
creationSteps:
|
|
@@ -151,9 +153,9 @@ creationSteps:
|
|
|
151
153
|
|
|
152
154
|
##### `dryRun`
|
|
153
155
|
|
|
154
|
-
Syntax: `dryRun: <boolean |
|
|
156
|
+
Syntax: `dryRun: <boolean | string>`
|
|
155
157
|
|
|
156
|
-
Asks the step to run without side effects where its runtime supports it.
|
|
158
|
+
Asks the step to run without side effects where its runtime supports it. Optional; absence stays absent. Grouped `getReadyFlows[].steps` accept only `true`, `false`, `"true"` or `"false"`; both false forms are false. Grouped flags reject numbers, null, expressions, whitespace-padded and mixed-case strings. Direct legacy arrays retain their existing boolean/string forms rather than receiving a grouped-only restriction. Leave unset in shipped templates. A simulated event is not router acceptance.
|
|
157
159
|
|
|
158
160
|
```yaml
|
|
159
161
|
creationSteps:
|
|
@@ -213,7 +215,7 @@ creationSteps:
|
|
|
213
215
|
|
|
214
216
|
Syntax: `next: <step key> | null | <NextBranch>`
|
|
215
217
|
|
|
216
|
-
Successor after the step succeeds. A string jumps to that key; a [NextBranch](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.nextbranch-fields.md)
|
|
218
|
+
Successor after the step succeeds. A string jumps to that local key; a [NextBranch](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.nextbranch-fields.md) routes on a frontend condition. Absent or `null` ends a legacy direct array, but grouped exhaustion without RETURN fails with `MISSING_RETURN`. Rejected on `IF`/`SWITCH`, whose targets live in `metadata`, and on terminal `RETURN`.
|
|
217
219
|
|
|
218
220
|
```yaml
|
|
219
221
|
creationSteps:
|
package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
> Part of [Profile root fields](PROFILE-ROOT.md) › [Profile root fields](PROFILE-ROOT.profile-root-fields-1.md).
|
|
2
|
+
|
|
3
|
+
### `getReadyFlows`
|
|
4
|
+
|
|
5
|
+
Syntax: `getReadyFlows: [ <FrontendFlow> ]`
|
|
6
|
+
|
|
7
|
+
The registered, ordered group of required browser actions. Use it for explicit readiness actions with local prerequisite keys, not worker automation. Omission means `not_configured`; `[]` explicitly configures an empty ready group (0/0). Null is invalid. No default group is synthesized. A malformed declaration is `invalid_definition`, not an empty setup.
|
|
8
|
+
|
|
9
|
+
```yaml
|
|
10
|
+
getReadyFlows:
|
|
11
|
+
- key: REVIEW
|
|
12
|
+
title: Review configuration
|
|
13
|
+
description: Check the configuration before continuing.
|
|
14
|
+
action:
|
|
15
|
+
label: Review
|
|
16
|
+
completedLabel: Review again
|
|
17
|
+
completionVersion: "1"
|
|
18
|
+
dependsOn: []
|
|
19
|
+
steps:
|
|
20
|
+
- key: DONE
|
|
21
|
+
type: RETURN
|
|
22
|
+
root: true
|
|
23
|
+
metadata:
|
|
24
|
+
status: SUCCESS
|
|
25
|
+
outputs: {}
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
FrontendFlow is closed: required `key`, `title`, `action.label`, string `completionVersion` and nonempty `steps`; optional `description`, `action.completedLabel` (falls back to label) and `dependsOn` (no prerequisites when absent). There is no flow `id` alias or `successOutputs`. Array order is display order only; the local prerequisite graph must have unique existing keys and no duplicate/self/cyclic links.
|
|
29
|
+
|
|
30
|
+
See [FrontendFlow and Step fields](frontend.FRONTEND-FLOWS.grouped-readiness-flows.md#frontendflow-fields), [RETURN](frontend.FRONTEND-FLOWS.return.md), [FAIL](frontend.FRONTEND-FLOWS.fail.md) and [frontend PUBLISH_EVENT](frontend.FRONTEND-FLOWS.publish_event.md) for field syntax/defaults, full-context variants, pure result mapping and runtime support prerequisites. A valid example proves neither a compatible deployed dashboard nor authorized event admission/delivery.
|
|
31
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
All roots are optional in the root schema; collection items keep their own required members. An absent collection is never synthesized.
|
|
6
6
|
|
|
7
|
-
This section is served as
|
|
7
|
+
This section is served as 29 separate resources. Read the one you need:
|
|
8
8
|
|
|
9
9
|
- [`id`](PROFILE-ROOT.profile-root-fields-1.id.md) — Syntax: id: <uuid string>
|
|
10
10
|
- [`name`](PROFILE-ROOT.profile-root-fields-1.name.md) — Syntax: name: <string>
|
|
@@ -28,6 +28,7 @@ This section is served as 28 separate resources. Read the one you need:
|
|
|
28
28
|
- [`startupTasks`](PROFILE-ROOT.profile-root-fields-1.startuptasks.md) — Syntax: startupTasks: [ <startup task> ]
|
|
29
29
|
- [`recommendations`](PROFILE-ROOT.profile-root-fields-1.recommendations.md) — Syntax: recommendations: [ { id, objectId, relatedEntities: [ { sql, index?
|
|
30
30
|
- [`creationSteps`](PROFILE-ROOT.profile-root-fields-1.creationsteps.md) — Syntax: creationSteps: [ <frontend step> ]
|
|
31
|
+
- [`getReadyFlows`](PROFILE-ROOT.profile-root-fields-1.getreadyflows.md) — Syntax: getReadyFlows: [ <FrontendFlow> ]
|
|
31
32
|
- [`thumbnail`](PROFILE-ROOT.profile-root-fields-1.thumbnail.md) — Syntax: thumbnail: <string | null>
|
|
32
33
|
- [`databaseName`](PROFILE-ROOT.profile-root-fields-1.databasename.md) — Syntax: databaseName: <string>
|
|
33
34
|
- [`noSchedules`](PROFILE-ROOT.profile-root-fields-1.noschedules.md) — Syntax: noSchedules: <boolean>
|
package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## Expressions and tooling
|
|
4
|
+
|
|
5
|
+
Frontend position is `frontend-step`. Its roots include `app`, `inputs`, `outputs` and `arguments`; runtime-provided members may be unknown at authoring. Worker `_inputs`, `_outputs`, item/task/puller roots and `__this` are not interchangeable frontend roots.
|
|
6
|
+
|
|
7
|
+
Only the enclosing workflow supplies output keys. Prerequisites are progress dependencies, not data injection. `API` and `GATEWAY_API` results always carry the typed HTTP envelope `outputs.<STEP_KEY>._response` (`statusCode`, `headers`, `cookies`, `text`, `body` and its `data` alias), beside any declared `outputs[]` keys; completion offers it whether or not keys are declared, while merged object-body members stay unknown. After a controlled failure the step follows its plain `next` with `outputs.<STEP_KEY>.errorCode` (`NETWORK`, `TIMEOUT`, `HTTP_4XX`, `HTTP_5XX`, `VALIDATION`, …) and `outputs.<STEP_KEY>.error` (`message`, optional `stacktrace`, run-time `detail`) in place of the success result; completion offers both beside `_response`. A 4xx/5xx or other controlled failure is not by itself a failed run: a later step catches it by reading `outputs.<STEP_KEY>._response.statusCode`, `.error` or `.errorCode` (directly or through an alias) in an `IF`, `SWITCH` or `JSONATA` step and branching, and a handled failure counts as no error. A grouped run ends FAILED for such a step only when no reachable later step consumes its output (`FFE-14`). Dynamic JSONATA and LIQUID results stay unknown unless a declaration establishes fields; arbitrary primitives/arrays and terminal results do not gain universal error or `_response` members. RETURN's `metadata.outputs` uses pure frontend mapping, not worker output processors; FAIL publishes no output.
|
|
8
|
+
|
|
9
|
+
An effective composition snapshot owns removals across all recorded contributors, including each occurrence's ordered replacements: editing, reordering or moving an old identity into another source buffer cannot restore output completion for a flow, owner or step that composition removed. Duplicate envelopes, including wholly malformed duplicates, make that flow's step/output ownership unavailable in both the current buffer and the effective snapshot. Genuinely new buffer-only identities may remain provisional until composition refreshes. A rewritten contributor's physical text must remain equivalent under every occurrence's replacements before its raw identity can bind to any effective scope, not just a new one; irrelevant or roundtrip replacements preserve equivalence. Connector/connection ownership must be unique in both current and effective documents even when only one duplicate has executable steps.
|
|
10
|
+
|
|
11
|
+
Static output findings use `FFE-10` for an established workflow-root reference to a definite nonlocal/terminal producer or worker `_outputs`, and `FFE-11` for uncertain focus/root binding, opaque or incomplete producer tokens, namespace predicates/computed ownership, whole-namespace reads (`{{ outputs | json }}`, `{% for x in outputs %}`, `jsonata::$keys(outputs)`) in both dialects, ambiguous producer keys or analysis-depth refusal. Uncertainty takes precedence over a definite worker/missing-key claim. Checks include active Liquid interpolation/control reads, including captured reads, and executable mapped property names under their owning field's grammar. Passive RECORDS_FORM configuration names and literal search-fill target keys are not expressions. Dynamic result members remain unknown rather than being invented or rejected merely because authoring cannot enumerate them. Literal text and Liquid raw/comment bodies are not active Liquid expressions.
|
|
12
|
+
|
|
13
|
+
Expression grammar is handler-specific: `JSONATA`, `SINGLE_CHOICE_FORM` and `MULTIPLE_CHOICE_FORM` Liquid-render their raw `metadata.expression` before JSONata evaluation. `IF` `condition` and `SWITCH` `expression` use Liquid, except that a value wrapped entirely in `${…}` has its inner text Liquid-rendered and then evaluated as JSONata. Completion and the shared hover gate recognize that wrapper only in those exact control fields, not ordinary text.
|
|
14
|
+
|
|
15
|
+
Generic `jsonata::` mappings evaluate JSONata directly: Liquid-looking text inside a JSONata string is data, not a first-stage read. Explicit Liquid handlers and Liquid output processors remain Liquid even when their text carries that prefix; GET/SET_LOCAL_STORAGE output processors also render their key with Liquid.
|
|
16
|
+
|
|
17
|
+
RECORDS_FORM `initial` and search-fill values use generic Liquid/`jsonata::` mappings; array/object initial rows are deep-transformed, including mapped row keys. The search request uses the cURL parser, `search.label` is forced Liquid, and `search.fill` target field names remain literal. These fields may read the current workflow; columns, target, identity and permission configuration are not expressions. `search.items` instead evaluates JSONata against the search response, so an `outputs`/`_outputs` read there is uncertain (low `FFE-11`): it names response data, not workflow output. Local `search.text` and `item` roots are not workflow-output namespaces.
|
|
18
|
+
|
|
19
|
+
Bare `outputs.OTHER` in a Liquid literal is not a root read. Known Liquid assignment/capture/loop targets are declarations, not reads; evaluated RHS/iterables and active capture contents remain checked, including multiline `liquid` tags. For staged JSONata, raw bodies emit literally, with whitespace control outside rather than inside the raw body. Comments and captured literal bodies do not emit. Known non-emitting assignments concatenate exactly; uncertified emitted syntax stays opaque. Quoted JSONata result strings remain literal data.
|
|
20
|
+
|
|
21
|
+
Complete unescaped Liquid quoted-bracket keys are literal data, including punctuation and blanks, not partial words or property paths. Unsupported escapes and computed selectors remain uncertain. Liquid emission trimming preserves FEFF and removes U180E only outside literal raw bodies; this does not change JSONata's separate trivia rules.
|
|
22
|
+
|
|
23
|
+
Liquid namespace declarations make subsequent uses of that name uncertain, not definite ambient workflow/worker reads. RHS and loop iterables are checked before binding, and capture-body reads before capture completion retain their incoming binding. Conditional and scoped bindings may remain conservatively uncertain; they do not shadow the downstream JSONata program's separate root.
|
|
24
|
+
|
|
25
|
+
JSONata bare names and `$` use the current focus; a predicate or mapped object can rebind that focus without reading workflow outputs. `$$` normally resolves the workflow input even after a path dot, but a local assignment, parameter or tuple binding can shadow it. Root-defined lambdas capture definition focus, not their caller's first argument; captured mutable bindings and conditional effects can remain uncertain. Parenthesized blocks establish lexical frames; constructors and predicates are not blanket binding frames.
|
|
26
|
+
|
|
27
|
+
Tuple-local writes do not create an enclosing lexical binding. A conditional own binding stops parent-capture analysis only when established in every alternative. Tuple targets and following evaluated predicates are separate stages, so explicit root reads in a predicate remain checked.
|
|
28
|
+
|
|
29
|
+
Quoted/backtick path identifiers retain their complete field identity: `"outputs".NAME` and `$$.` followed by the quoted field `outputs` and `.NAME` are namespace paths, while standalone `"outputs.NAME"` or a single backtick field named `outputs.NAME` is not. Quoted closing delimiters remain data, never lexical frame boundaries. JSONata `outputs["NAME"]` is a predicate over the namespace, not Liquid-style key lookup; a predicate after `outputs.NAME` preserves the already-selected producer. Comments are path trivia. Strings and regex bodies are not executable reads; division checks its operands.
|
|
30
|
+
|
|
31
|
+
Opaque template output adjoining a producer token cannot establish its literal prefix as a producer. An already-complete `outputs.FETCH` remains selected through dynamic result-member access. Opaque binders and unsupported focus-changing syntax remain uncertain rather than preserving a definite workflow root through recovery. Tuple-root mutations and pending captured writes participate in uncertainty joins; constructor peer origins are aggregated once rather than rescanned per sibling. The structural analyzer bounds recursion at 128 frames and reports recognizable namespace ownership as uncertain on refusal rather than throwing or certifying an unvisited expression. These are lexical provenance checks, not arbitrary expression evaluation, function-result identity inference or dynamic result-member certification.
|
|
32
|
+
|
|
33
|
+
Use the existing seven MCP tools. For `hexasync_explain_type`, pass `runtime: frontend` for `FrontendFlow`, `Step`, `RETURN`, `FAIL`, `PUBLISH_EVENT`, `RECORDS_FORM`, `API`, `IF` or a metadata field (for example `RECORDS_FORM.metadata.search`). Its default frontend answer is concise (description, default, fields and an example) and marked incomplete; repeat with `full: true` for the canonical JSON Schema grammar. Omitted runtime means worker, as does explicit `worker`; unsupported runtime values fail. A missing frontend reference must not silently fall back to worker knowledge. Use `hexasync_explain_position` with `frontend-step`, then validate the effective composed project. Missing source or validation coverage is unavailable/incomplete, never proof of validity. `FFE-12` reports RECORDS_FORM column, identity and fill keys that do not fit the target table, and an unresolvable task/table as uncertain.
|
|
34
|
+
|
|
35
|
+
See [root declarations](PROFILE-ROOT.md), [expression context](hexasync://docs/expressions/CONTEXT-AND-IO) and the canonical resources `hexasync://assets/frontend/connectors/main.json` and `hexasync://assets/frontend/templates/getReadyFlows.json`. Installed and bundled knowledge report their origin/version. Actual installed editor/MCP and matching published package proof remain release checks, not consequences of schema acceptance.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## `FAIL`
|
|
4
|
+
|
|
5
|
+
FAIL ends the run as failed, on purpose, with a code and message you write. Use it where a flow has established that it cannot continue — a missing prerequisite, a rejected request it classified, an answer the user must fix elsewhere — and the user should see that as a failure rather than as information.
|
|
6
|
+
|
|
7
|
+
| Syntax | Meaning | Default / absence and choice |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `type: FAIL` | Terminal step: nothing runs after it and it publishes no `outputs.<KEY>`. | Required to select FAIL. |
|
|
10
|
+
| `metadata.code: NOT_CONNECTED` | Stable machine-readable failure code matching `^[A-Z][A-Z0-9_]*$`. | Required; no default. A literal only: a Liquid or `jsonata::` code is rejected, because diagnostics rely on a fixed code. |
|
|
11
|
+
| `metadata.message: Connect the account, then run this action again.` | User-facing explanation shown when the run ends. | Required, nonblank; no default. May use the existing Liquid/JSONata mapping (`"{{ outputs.CHECK.reason }}"`). Write it yourself; never echo a server response body, credentials or context dumps. |
|
|
12
|
+
| `next`, `onCancelled` | No route: FAIL is terminal. | Omit them; `null` is tolerated, any route is rejected (`FFE-6`). |
|
|
13
|
+
| `outputs` | No output processors. | Omit it; `null` or `[]` is tolerated, a non-empty list is rejected (`FFE-6`). |
|
|
14
|
+
|
|
15
|
+
Metadata is closed: exactly `code` and `message`. In a grouped flow FAIL is an explicit terminal like RETURN, so it satisfies "every path ends in RETURN" (`FFE-8`), and its outcome is identical to `RETURN {status: FAILED, error: {code, message}}`: the run ends `failed`, the FAIL step is the failing step and the most recently handled failed step, if any, is recorded as its cause. In a legacy direct array (`creationSteps`, connector authorization/setup steps, connection `setupSteps`) the workflow stops, the step is marked failed with the message (a localized fallback if it renders blank), the standard failure display shows, no further step runs and nothing navigates. Existing flows without FAIL are unaffected.
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
getReadyFlows:
|
|
19
|
+
- key: CHECK_CONNECTION
|
|
20
|
+
title: Check the connection
|
|
21
|
+
action: { label: Check }
|
|
22
|
+
completionVersion: "1"
|
|
23
|
+
steps:
|
|
24
|
+
- key: READ_STATUS
|
|
25
|
+
type: API
|
|
26
|
+
root: true
|
|
27
|
+
metadata: "curl --location '/proxy/workers/api/connection/status'"
|
|
28
|
+
next:
|
|
29
|
+
if: "{{ outputs.READ_STATUS._response.statusCode == 200 and outputs.READ_STATUS.connected == true }}"
|
|
30
|
+
then: DONE
|
|
31
|
+
else: NOT_CONNECTED
|
|
32
|
+
- key: DONE
|
|
33
|
+
type: RETURN
|
|
34
|
+
metadata:
|
|
35
|
+
status: SUCCESS
|
|
36
|
+
outputs: { connected: true }
|
|
37
|
+
- key: NOT_CONNECTED
|
|
38
|
+
type: FAIL
|
|
39
|
+
name: Connection required
|
|
40
|
+
metadata:
|
|
41
|
+
code: NOT_CONNECTED
|
|
42
|
+
message: Connect the account, then run this action again.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The same step ends a legacy direct array such as `creationSteps`; see [FAIL in frontend steps](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md) for that full-context example and its `code`/`message` fields.
|
|
46
|
+
|
|
47
|
+
How to choose: use FAIL for a failed ending with a fixed code; use `RETURN` with `status: FAILED` only where you already return through RETURN and prefer one terminal type (in grouped flows the outcome is the same). Use `SHOW_INFO` — any `metadata.type`, including `ERROR` — to inform the user and continue; SHOW_INFO never ends or fails a run. Prefer a FAIL reached after classifying a failed request (an `IF` or NextBranch reading `outputs.<KEY>`) over leaving the request unread: a grouped request failure that no reachable step reads ends the run with a generic handler failure instead of your code and message (`FFE-14`).
|
|
48
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## Frontend Step fields
|
|
4
|
+
|
|
5
|
+
The examples on this page are full root declarations; each step belongs inside its flow's `steps` array. Existing direct `creationSteps`, connector authorization/setup arrays and profile connection `setupSteps` use the same Step schema, but retain legacy flag compatibility and termination behavior rather than requiring RETURN.
|
|
6
|
+
|
|
7
|
+
| Syntax | Meaning | Default and choice |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `key: REVIEW` | Local route and output identity matching `^[A-Z0-9_]+$`. | Grouped flows require a unique nonempty key, even though the base Step permits omission/null for legacy arrays. No cross-flow targets. |
|
|
10
|
+
| `type: FORM` | Selects the frontend handler and its metadata contract. | Required; no default. Qualify MCP lookups with `runtime: frontend`; shared worker names are different handlers. |
|
|
11
|
+
| `root: true` | Entry step. | Optional; absence stays absent and does not mark a root. Exactly one true root per grouped flow. |
|
|
12
|
+
| `name: Review values` | Step title while running. | Optional string/null; absent/null shows no title. |
|
|
13
|
+
| `description: Review the supplied values.` | Step help; FORM uses Markdown help or an http(s) link, other types show a subtitle. | Optional string/null; absent/null shows no help. Choose inline Markdown for short help, a URL for longer guidance. |
|
|
14
|
+
| `msg: Check the values before continuing.` | UI message before/after the step. | Optional string; absent means no message. |
|
|
15
|
+
| `arguments: {purpose: review}` | Free-form frontend runtime arguments, not worker argument wrappers. | Optional object/null; absent/null supplies no arguments. Prefer `metadata` for handler configuration. |
|
|
16
|
+
| `dryRun: "false"` | Requests side-effect-free execution only where the handler supports it. | Optional; absence stays absent. It does not prove that a handler supports simulation or that an event was router-accepted. |
|
|
17
|
+
| `metadata: {fields: [...]}` | Handler-specific configuration using the frontend's existing recursive Liquid/JSONata mapping. | Requirement and shape depend on `type`; RETURN/FAIL/PUBLISH_EVENT/RECORDS_FORM require their closed objects below. Preserve FORM required/readonly expressions; never globally coerce metadata. |
|
|
18
|
+
| `outputs: [{key: reviewed, index: 0, type: jsonata, metadata: {expression: "$"}}]` | Nonterminal postprocessors adding named derived fields to a step result. | Optional array/null; absent/null keeps the original result. A non-empty list is forbidden on IF, SWITCH, JSONATA, LIQUID, WAIT, RETURN and FAIL; there an absent, `null` or empty (`[]`) `outputs` means no processors and is accepted, because the runtime ignores it — except that a grouped RETURN forbids the member altogether, even empty or null (`FFE-6`, as grouped admission does). Not the terminal result map; [Output fields](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.output-fields.md) own processor variants. |
|
|
19
|
+
| `repeatableCount: 20` | Pre-execution limit for repeats with the same key/raw metadata template. | Optional number; default 20. Lower for bounded polling; not a retry policy or a termination guarantee. |
|
|
20
|
+
| `repeatableDetailCount: 10` | Executing limit for repeats with the same key/resolved metadata. | Optional number; default 10. Lower for identical repeated work. |
|
|
21
|
+
| `status: NOT_STARTED` | Runtime state: NOT_STARTED, SUCCESS, FAILED or null. Not RETURN's terminal status. | Optional; absent/null means no recorded state. Normally omit in authored declarations. |
|
|
22
|
+
| `next: DECIDE` | Successor key, null, or nested NextBranch `{if,then,else}`. | Optional; absent/null exhausts the path, which is MISSING_RETURN in grouped mode. Forbidden on IF/SWITCH (use metadata targets) and RETURN; FAIL accepts only absent or null. Prefer literal local targets; deprecated `success`/`failed` branch aliases are not recommended. |
|
|
23
|
+
| `onCancelled: CANCEL` | Local cancellation successor, where supported by the handler. | Optional; absence supplies no cancellation route. RETURN forbids it; FAIL accepts only absent or null. |
|
|
24
|
+
|
|
25
|
+
In grouped flows, only `root` and `dryRun` accept normalization, and only these four literals: `true`, `false`, `"true"`, `"false"`. Both false forms are false, not truthy strings. Numbers, null, expressions, empty/whitespace-padded and mixed-case strings are invalid there. Direct legacy arrays keep their existing boolean/string forms. No other property gains boolean coercion.
|
|
26
|
+
|
|
27
|
+
This complete grouped declaration illustrates every shared field, including state only to show its shape. Normally omit `status`. The host supplies `inputs`/`app`; they are not configured as extra flow-envelope fields. `onCancelled` routes a cancelled form to an explicit cancellation result.
|
|
28
|
+
|
|
29
|
+
```yaml
|
|
30
|
+
getReadyFlows:
|
|
31
|
+
- key: REVIEW_VALUES
|
|
32
|
+
title: Review values
|
|
33
|
+
action: { label: Review }
|
|
34
|
+
completionVersion: "1"
|
|
35
|
+
steps:
|
|
36
|
+
- key: REVIEW
|
|
37
|
+
type: FORM
|
|
38
|
+
root: true
|
|
39
|
+
name: Review values
|
|
40
|
+
description: Review the supplied values.
|
|
41
|
+
msg: Check the values before continuing.
|
|
42
|
+
arguments: { purpose: review }
|
|
43
|
+
dryRun: "false"
|
|
44
|
+
repeatableCount: 20
|
|
45
|
+
repeatableDetailCount: 10
|
|
46
|
+
status: NOT_STARTED
|
|
47
|
+
metadata:
|
|
48
|
+
fields:
|
|
49
|
+
- key: ACCEPTED
|
|
50
|
+
type: CHECKBOX
|
|
51
|
+
name: Accept
|
|
52
|
+
defaultValue: false
|
|
53
|
+
outputs:
|
|
54
|
+
- key: reviewed
|
|
55
|
+
index: 0
|
|
56
|
+
type: jsonata
|
|
57
|
+
metadata: { expression: "$" }
|
|
58
|
+
next: DECIDE
|
|
59
|
+
onCancelled: CANCEL
|
|
60
|
+
- key: DECIDE
|
|
61
|
+
type: IF
|
|
62
|
+
root: "false"
|
|
63
|
+
metadata:
|
|
64
|
+
condition: "{{ outputs.REVIEW.ACCEPTED }}"
|
|
65
|
+
then: DONE
|
|
66
|
+
else: REJECTED
|
|
67
|
+
- key: DONE
|
|
68
|
+
type: RETURN
|
|
69
|
+
metadata:
|
|
70
|
+
status: SUCCESS
|
|
71
|
+
outputs: { accepted: "jsonata::outputs.REVIEW.ACCEPTED" }
|
|
72
|
+
- key: REJECTED
|
|
73
|
+
type: RETURN
|
|
74
|
+
metadata:
|
|
75
|
+
status: FAILED
|
|
76
|
+
error: { code: NOT_ACCEPTED, message: Values were not accepted }
|
|
77
|
+
- key: CANCEL
|
|
78
|
+
type: RETURN
|
|
79
|
+
metadata: { status: CANCELLED }
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
`IF.metadata` is closed and requires `condition`, `then`, `else` (strings, no defaults): the frontend condition chooses the two local targets. Do not confuse it with a `next` branch, whose condition member is `if`. A NextBranch requires `if`; its `then`/`else` can be local keys or nested branches, but absent/null branches exhaust and therefore cannot complete a grouped flow successfully. Loops and dynamic targets remain statically uncertain; the group prerequisite DAG must always be acyclic.
|
|
83
|
+
|
package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## Grouped readiness flows
|
|
4
|
+
|
|
5
|
+
`getReadyFlows` is the registered ordered group at the profile root. Omit it for no configured group; `[]` explicitly configures an empty, ready group. Null is invalid. Every declared flow is required for readiness. Order controls display only; local `dependsOn` keys control prerequisites. Overrides of inherited keys update in place and do not reorder them.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
getReadyFlows:
|
|
9
|
+
- key: CONFIGURE
|
|
10
|
+
title: "Configure your **app**"
|
|
11
|
+
description: "Review the configuration before continuing."
|
|
12
|
+
action:
|
|
13
|
+
label: Configure
|
|
14
|
+
completedLabel: Configure again
|
|
15
|
+
completionVersion: "1"
|
|
16
|
+
dependsOn: []
|
|
17
|
+
steps:
|
|
18
|
+
- key: DONE
|
|
19
|
+
type: RETURN
|
|
20
|
+
root: true
|
|
21
|
+
metadata:
|
|
22
|
+
status: SUCCESS
|
|
23
|
+
outputs: {}
|
|
24
|
+
- key: VERIFY
|
|
25
|
+
title: Verify configuration
|
|
26
|
+
action:
|
|
27
|
+
label: Verify
|
|
28
|
+
completionVersion: "1"
|
|
29
|
+
dependsOn: [CONFIGURE]
|
|
30
|
+
steps:
|
|
31
|
+
- key: DONE
|
|
32
|
+
type: RETURN
|
|
33
|
+
root: "true"
|
|
34
|
+
metadata:
|
|
35
|
+
status: SUCCESS
|
|
36
|
+
outputs: { verified: true }
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### FrontendFlow fields
|
|
40
|
+
|
|
41
|
+
The complete example above supplies the context for each envelope field.
|
|
42
|
+
|
|
43
|
+
| Syntax | Meaning | Default and choice |
|
|
44
|
+
| --- | --- | --- |
|
|
45
|
+
| `key: CONFIGURE` | Stable identity matching `^[A-Z][A-Z0-9_]*$`, with at most 128 characters; unique within the group. | Required. Longer keys are invalid. Never use an `id` alias or derive identity from title/order. |
|
|
46
|
+
| `title: "Configure your **app**"` | User-facing sanitized Markdown heading. | Required; no default. |
|
|
47
|
+
| `description: "Review the configuration before continuing."` | Optional sanitized Markdown explanation. | Absent means no description. |
|
|
48
|
+
| `action: {label: Configure, completedLabel: Configure again}` | Closed button-label object; no URL or executable action. | Required; no default. |
|
|
49
|
+
| `action.label: Configure` | Plain-text label before completion. | Required; no default. |
|
|
50
|
+
| `action.completedLabel: Configure again` | Plain-text label for an explicit rerun after completion. | Optional; absent uses `label`. |
|
|
51
|
+
| `completionVersion: "1"` | Nonempty string identifying the executable completion contract. | Required; no numeric coercion. Bump when external action meaning changes without a step edit. |
|
|
52
|
+
| `dependsOn: [CONFIGURE]` | Required prior completions in this same group. Each key matches `^[A-Z][A-Z0-9_]*$`, with at most 128 characters. | Absent means no prerequisites. Reject longer, duplicate, missing, self and cyclic references; no cross-group links. |
|
|
53
|
+
| `steps: [...]` | Nonempty list using the canonical frontend Step. | Required; exactly one true root and unique local step keys. Equal step keys in another flow are independent. |
|
|
54
|
+
|