@beehexa/hexasync-ai-toolkit 2611.8.2 → 2611.8.3
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 +9 -7
- package/skills/hexasync-connections/references/INSTALL.md +22 -6
- 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 +20 -9
- package/skills/hexasync-expressions/references/INDEX.md +13 -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 +29 -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 +14 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +231 -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-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-query-dsl/SKILL.md +10 -10
- package/skills/hexasync-query-dsl/references/INSTALL.md +22 -6
- 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 +21 -16
- package/skills/hexasync-steps-api-http/references/INDEX.md +13 -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 +29 -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 +14 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +231 -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-control-data/SKILL.md +21 -17
- package/skills/hexasync-steps-control-data/references/INDEX.md +13 -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 +29 -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 +14 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +231 -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-tables-tasks-objects/SKILL.md +9 -7
- package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +22 -6
- package/skills/hexasync-templates/SKILL.md +21 -9
- package/skills/hexasync-templates/references/AI-INDEX.md +8 -6
- package/skills/hexasync-templates/references/INDEX.md +15 -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.getreadyflows-1.md +33 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.md +2 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +5 -4
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +201 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +10 -8
- 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 +29 -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 +14 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +231 -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-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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hexasync-templates
|
|
3
|
-
description: "Start here for any HexaSync profile template YAML work:
|
|
4
|
-
compatibility: "
|
|
3
|
+
description: "Start here for any HexaSync profile template YAML work: main.yaml, connectors, tasks/objects, tables, pullers, pushers, webhooks, worker steps, grouped frontend getReadyFlows, FrontendFlow, RETURN, frontend PUBLISH_EVENT and the RECORDS_FORM multi-record editor. Choose worker or frontend guidance before looking up syntax with the HexaSync Template IDE MCP server (orientation, explain_type, search_examples, explain_position, validate), or installing the server. Use when the user mentions HexaSync, template YAML, hexasync:// resources or a validation rule id."
|
|
4
|
+
compatibility: "Loaded conditionally by Agent Skills hosts. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3), which needs Node.js >= 22.13; without it, read references/."
|
|
5
5
|
metadata:
|
|
6
6
|
author: BeeHexa
|
|
7
|
-
version: "2611.8.
|
|
8
|
-
kb-bundle: "
|
|
7
|
+
version: "2611.8.3"
|
|
8
|
+
kb-bundle: "106"
|
|
9
9
|
mcp-server: "hexasync-template-ide"
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ metadata:
|
|
|
15
15
|
|
|
16
16
|
**When to use what.** Start with `id`, `name`, `description`, `connectors`. Add one `objects[]` task + `tables[]` definition + `objectAssociations` entry per dataset, then the pullers/pushers/webhooks that move it. Put shared tokens in `variables.yaml` and reuse other projects through `externals`. A sensible configuration keeps one collection per file (e.g. `tables/orders.yaml`, `pullers/orders.yaml`), stable literal UUIDs, and no legacy roots.
|
|
17
17
|
|
|
18
|
-
> Generated from the HexaSync knowledge base (asset bundle
|
|
18
|
+
> Generated from the HexaSync knowledge base (asset bundle 106) by @beehexa/hexasync-ai-toolkit 2611.8.3.
|
|
19
19
|
|
|
20
20
|
## Where things are documented
|
|
21
21
|
|
|
@@ -24,6 +24,7 @@ metadata:
|
|
|
24
24
|
| What belongs at the profile root? | [Profile root](references/PROFILE-ROOT.md) |
|
|
25
25
|
| Where is a component or type documented? | [Vocabulary index](references/AI-INDEX.md) |
|
|
26
26
|
| How do I compose a workflow and its steps? | [Workflow and step envelope](hexasync://docs/steps/STEP-ENVELOPE) |
|
|
27
|
+
| How do I author grouped browser workflows? | [Frontend workflows, RETURN and PUBLISH_EVENT](references/frontend.FRONTEND-FLOWS.md) |
|
|
27
28
|
| Which context values and expression language can I use? | [Context and expressions](hexasync://docs/expressions/CONTEXT-AND-IO) |
|
|
28
29
|
| How do I write QueryDSL? | [Query languages, grammar and examples](hexasync://docs/query-dsl/QUERY-DSL) |
|
|
29
30
|
| How do I choose a step? | [Step catalogue](hexasync://docs/steps/INDEX) |
|
|
@@ -48,20 +49,31 @@ metadata:
|
|
|
48
49
|
|
|
49
50
|
## How to work
|
|
50
51
|
|
|
52
|
+
The host loads this skill conditionally; installing it does not inject instructions into every conversation.
|
|
53
|
+
Choose worker or frontend from the owning collection before applying guidance; grouped frontend requests follow the separate route below.
|
|
51
54
|
When the HexaSync MCP tools (`hexasync_*`) are available, use them in this order:
|
|
52
55
|
|
|
53
56
|
1. `hexasync_orientation` once per session: what a template is, the two runtimes that must never be mixed, and the lookup order.
|
|
54
|
-
2. `hexasync_explain_type` before writing any field
|
|
55
|
-
3. `hexasync_search_examples` for complete, schema-valid examples (e.g. query `main.yaml profile root`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
|
|
57
|
+
2. `hexasync_explain_type` before writing any field. Worker/data lookups for this family: `hexasync_explain_type({"name":"connectors","runtime":"worker"})`, `hexasync_explain_type({"name":"objects","runtime":"worker"})`, `hexasync_explain_type({"name":"pullers","runtime":"worker"})`. Omitted runtime also means worker, never frontend.
|
|
58
|
+
3. `hexasync_search_examples` for complete, schema-valid worker/data examples (e.g. query `main.yaml profile root`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
|
|
56
59
|
4. `hexasync_explain_position` before writing an expression: each authoring position has its own roots.
|
|
57
60
|
5. `hexasync_validate` on the project before claiming the YAML is correct; explain any rule id with `hexasync_explain_rule`.
|
|
58
61
|
|
|
59
62
|
Never infer syntax from YAML already in the workspace: it may be outdated or wrong. The knowledge base and the MCP tools are authoritative. Use actual identities from the workspace or `hexasync_list_connectors`; never invent one.
|
|
60
63
|
|
|
64
|
+
## Grouped frontend routing
|
|
65
|
+
|
|
66
|
+
For grouped frontend requests (getReadyFlows / FrontendFlow), read [Frontend workflows](references/frontend.FRONTEND-FLOWS.md) and its linked canonical resources, not the worker examples above. This KB page owns the grammar; do not translate worker fields into frontend syntax.
|
|
67
|
+
|
|
68
|
+
- Look up `hexasync_explain_type({"name":"FrontendFlow","runtime":"frontend"})`, `hexasync_explain_type({"name":"Step","runtime":"frontend"})`, `hexasync_explain_type({"name":"RETURN","runtime":"frontend"})`, `hexasync_explain_type({"name":"PUBLISH_EVENT","runtime":"frontend"})`, `hexasync_explain_type({"name":"RECORDS_FORM","runtime":"frontend"})`, `hexasync_explain_type({"name":"RECORDS_FORM.metadata","runtime":"frontend"})`. Always pass `runtime: 'frontend'`, including for names shared with worker types.
|
|
69
|
+
- Retrieve complete grouped examples with `hexasync_search_examples({"feature":"frontend"})`.
|
|
70
|
+
- Before an expression, use `hexasync_explain_position({"position":"frontend-step"})` and the KB's current-flow context guidance.
|
|
71
|
+
- Missing frontend knowledge is unavailable, not permission to use a worker answer. Check the selected knowledge origin/version and validation coverage; authoring acceptance is not deployed-runtime or delivery proof.
|
|
72
|
+
|
|
61
73
|
## References
|
|
62
74
|
|
|
63
|
-
[`references/INDEX.md`](references/INDEX.md) maps every section of *HexaSync Profile Template — knowledge base*, *HexaSync Profile Template Knowledge Base*, *Profile root fields*. Open only the section you need.
|
|
75
|
+
[`references/INDEX.md`](references/INDEX.md) maps every section of *HexaSync Profile Template — knowledge base*, *HexaSync Profile Template Knowledge Base*, *Profile root fields*, *Frontend workflows*. Open only the section you need.
|
|
64
76
|
|
|
65
77
|
## Installing the MCP server
|
|
66
78
|
|
|
67
|
-
If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@
|
|
79
|
+
If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit@2611.8.3 install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3`). The matching published server is required; absence blocks registry-backed activation, with no fallback.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<!-- GENERATED KNOWLEDGE INDEX — DO NOT EDIT. Run `yarn ai:index`. -->
|
|
2
2
|
# HexaSync Profile Template Knowledge Base
|
|
3
3
|
|
|
4
|
-
**Asset bundle
|
|
4
|
+
**Asset bundle 106 · extension 2611.8.3.**
|
|
5
5
|
|
|
6
6
|
## Authoring boundaries
|
|
7
7
|
|
|
8
8
|
- Worker Workflow steps and frontend creation/setup steps are different domains. Shared names do not make their payloads or execution interchangeable.
|
|
9
|
+
- For grouped frontend `getReadyFlows`, start with [Frontend workflows](frontend.FRONTEND-FLOWS.md); use `runtime: frontend` for type lookup and `frontend-step` for expression position. Omitted runtime keeps worker meaning.
|
|
9
10
|
- Use actual existing component and provider identities. Resolution and unresolved outcomes belong to each component contract.
|
|
10
11
|
- Context roots depend on the workflow host and execution stage. A legal authoring root is not a promise that it exists at entry.
|
|
11
12
|
- Examples explain inputs, prerequisites and expected effects.
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
| --- | --- |
|
|
18
19
|
| root collections, identities and includes | [Profile root](PROFILE-ROOT.md) |
|
|
19
20
|
| frontend creation/setup/authorization steps and connector definitions | [Frontend steps](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md), [Connector definition](PROFILE-ROOT.profile-root-fields-1.connector-definition-document.md) |
|
|
21
|
+
| grouped frontend getReadyFlows, FrontendFlow/Step fields, RETURN, PUBLISH_EVENT and RECORDS_FORM (multi-record edit; removes saved as disables) | [Frontend workflows](frontend.FRONTEND-FLOWS.md) |
|
|
20
22
|
| Workflow selection, envelope, argument placement and flags | [Step envelope](hexasync://docs/steps/STEP-ENVELOPE) |
|
|
21
23
|
| host/stage context, Scriban, JSONata and expression call sites | [Expressions and context](hexasync://docs/expressions/CONTEXT-AND-IO) |
|
|
22
24
|
| next targets, branches, termination and loop guards | [Routing](hexasync://docs/routing/NEXT) |
|
|
@@ -63,8 +65,8 @@
|
|
|
63
65
|
|
|
64
66
|
Registered but throwing (9): `Begin`, `Composite`, `End`, `GraphQL`, `Liquid`, `OData`, `QueryDSL`, `Restful`, `cURL`. Read their rejected forms and actual alternatives through the worker step index.
|
|
65
67
|
|
|
66
|
-
## Frontend declaration vocabulary (
|
|
67
|
-
`API`, `BROWSER`, `FORM`, `GATEWAY_API`, `GET_LOCAL_STORAGE`, `HEALTH_CHECK_WORKER`, `IF`, `INTEGRATION_APP_MANAGEMENT`, `JSONATA`, `LIQUID`, `MULTIPLE_CHOICE_FORM`, `READ_QUERIES`, `REDIRECT`, `SELECT_GOOGLE_DRIVE`, `SET_LOCAL_STORAGE`, `SHOW_INFO`, `SINGLE_CHOICE_FORM`, `SWITCH`, `WAIT`
|
|
68
|
+
## Frontend declaration vocabulary (22)
|
|
69
|
+
`API`, `BROWSER`, `FORM`, `GATEWAY_API`, `GET_LOCAL_STORAGE`, `HEALTH_CHECK_WORKER`, `IF`, `INTEGRATION_APP_MANAGEMENT`, `JSONATA`, `LIQUID`, `MULTIPLE_CHOICE_FORM`, `PUBLISH_EVENT`, `READ_QUERIES`, `RECORDS_FORM`, `REDIRECT`, `RETURN`, `SELECT_GOOGLE_DRIVE`, `SET_LOCAL_STORAGE`, `SHOW_INFO`, `SINGLE_CHOICE_FORM`, `SWITCH`, `WAIT`
|
|
68
70
|
|
|
69
71
|
## Transformation authoring vocabulary (12)
|
|
70
72
|
`BulkClone`, `BulkRename`, `Clone`, `Jsonata`, `Nested_SQL`, `None`, `QUERY_MANY`, `QUERY_SINGLE`, `RESOLVE_RAW_DATA`, `Rename`, `SQL`, `Scriban`
|
|
@@ -81,8 +83,8 @@ Declaration-only members and datetime deployment prerequisites are explained on
|
|
|
81
83
|
`ARG`, `FIELD`, `PARAM`, `QUERY`, `VALUE`
|
|
82
84
|
API Filter DSL has its own predicate vocabulary, request envelope and bit-mask semantics; do not substitute Builder syntax.
|
|
83
85
|
|
|
84
|
-
## Editor/CLI diagnostic rule IDs (
|
|
85
|
-
`API-1`, `API-2`, `ARG-1`, `ARG-2`, `ARG-3`, `ARG-4`, `ARG-5`, `ARG-6`, `ARG-7`, `COL-1`, `CONN-0`, `CONN-1`, `CONN-2`, `CONN-3`, `CONN-4`, `CONN-5`, `CTX-1`, `CTX-2`, `CTX-3`, `DEP-1`, `DRIFT-1`, `DUP-1`, `DUP-3`, `DUP-4`, `DUP-5`, `FLOW-3`, `FLOW-4`, `FLOW-5`, `FLOW-6`, `FLOW-7`, `FLOW-8`, `MDI-1`, `OVW-1`, `PLK-1`, `PLK-2`, `QDSL-1`, `REF-1`, `REF-13`, `REF-15`, `REF-16`, `REF-2`, `REF-3`, `REF-5`, `REF-6`, `REF-7`, `REF-9`, `REF-K1`, `REF-K2`, `RET-1`, `STEP-1`, `STEP-2`, `STEP-3`, `TBL-1`, `TBL-2`, `TBL-3`, `TBL-4`, `TBL-5`, `TBL-6`, `TBL-7`, `UNIMP-1`, `VAR-1`, `VAR-2`, `VAR-3`, `VAR-4`
|
|
86
|
+
## Editor/CLI diagnostic rule IDs (77)
|
|
87
|
+
`API-1`, `API-2`, `ARG-1`, `ARG-2`, `ARG-3`, `ARG-4`, `ARG-5`, `ARG-6`, `ARG-7`, `COL-1`, `CONN-0`, `CONN-1`, `CONN-2`, `CONN-3`, `CONN-4`, `CONN-5`, `CTX-1`, `CTX-2`, `CTX-3`, `DEP-1`, `DRIFT-1`, `DUP-1`, `DUP-3`, `DUP-4`, `DUP-5`, `FFE-0`, `FFE-1`, `FFE-10`, `FFE-11`, `FFE-12`, `FFE-2`, `FFE-3`, `FFE-4`, `FFE-5`, `FFE-6`, `FFE-7`, `FFE-8`, `FFE-9`, `FLOW-3`, `FLOW-4`, `FLOW-5`, `FLOW-6`, `FLOW-7`, `FLOW-8`, `MDI-1`, `OVW-1`, `PLK-1`, `PLK-2`, `QDSL-1`, `REF-1`, `REF-13`, `REF-15`, `REF-16`, `REF-2`, `REF-3`, `REF-5`, `REF-6`, `REF-7`, `REF-9`, `REF-K1`, `REF-K2`, `RET-1`, `STEP-1`, `STEP-2`, `STEP-3`, `TBL-1`, `TBL-2`, `TBL-3`, `TBL-4`, `TBL-5`, `TBL-6`, `TBL-7`, `UNIMP-1`, `VAR-1`, `VAR-2`, `VAR-3`, `VAR-4`
|
|
86
88
|
Use `hexasync_explain_rule` for diagnostic meaning and consequences.
|
|
87
89
|
|
|
88
90
|
## Catalog systems with connector codes (16)
|
|
@@ -119,7 +121,7 @@ Catalog presence does not create an executable connector or an authentication sc
|
|
|
119
121
|
- `resources/list` and `resources/read` expose the component pages and shipped schema data without a private source checkout.
|
|
120
122
|
- `hexasync_explain_type` reads [step inputs](hexasync://assets/steps/inputs.json) and [step results](hexasync://assets/steps/outputs.json); read the component page for conditional output branches.
|
|
121
123
|
- `hexasync_explain_position` describes the static authoring position; use the context page for host/stage availability.
|
|
122
|
-
- `hexasync_search_examples` reads [
|
|
124
|
+
- `hexasync_search_examples` reads [1292 authored YAML examples](hexasync://assets/docs/examples.json), including their surrounding explanation and component page. Fragments are not necessarily complete profiles or successful-input examples. Connector identity is not guessed.
|
|
123
125
|
- `hexasync_list_connectors` reads the [connector catalog](hexasync://assets/connectors/catalog.json); use existing workspace identities rather than inventing IDs.
|
|
124
126
|
- This server never calls the gateway. Webhook resources, captured deliveries and replay are tools of the separately signed-in hosted Gateway MCP; read the [Gateway MCP webhook workflow](hexasync://docs/webhooks/WEBHOOKS/gateway-mcp-webhook-workflow) before asking the user.
|
|
125
127
|
- [Root schema](hexasync://assets/main.json) reaches component item contracts. The [full knowledge index](KB-INDEX.md) is the navigation entry.
|
|
@@ -47,6 +47,7 @@ Each file is one knowledge-base section of at most 25 KB, the same split the MCP
|
|
|
47
47
|
- [Form field fields](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form-field-fields.md)
|
|
48
48
|
- [FORM](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form.md)
|
|
49
49
|
- [SINGLE_CHOICE_FORM / MULTIPLE_CHOICE_FORM](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.single_choice_form--multiple_choice_form.md)
|
|
50
|
+
- [RECORDS_FORM](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md)
|
|
50
51
|
- [API / GATEWAY_API](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md)
|
|
51
52
|
- [BROWSER](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.browser.md)
|
|
52
53
|
- [REDIRECT](PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.redirect.md)
|
|
@@ -69,5 +70,19 @@ Each file is one knowledge-base section of at most 25 KB, the same split the MCP
|
|
|
69
70
|
- [Rejected reference forms and safe correction](PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md)
|
|
70
71
|
- [Minimal worker-facing profile](PROFILE-ROOT.minimal-worker-facing-profile.md)
|
|
71
72
|
- [Composed and render-only metadata](PROFILE-ROOT.composed-and-render-only-metadata.md)
|
|
73
|
+
- [getReadyFlows](PROFILE-ROOT.profile-root-fields-1.getreadyflows.md)
|
|
72
74
|
- [Related](PROFILE-ROOT.related.md)
|
|
75
|
+
- [getReadyFlows](PROFILE-ROOT.getreadyflows-1.md)
|
|
73
76
|
- [Profile root fields](PROFILE-ROOT.profile-root-fields-1.md)
|
|
77
|
+
|
|
78
|
+
### Frontend workflows
|
|
79
|
+
|
|
80
|
+
- [Frontend workflows](frontend.FRONTEND-FLOWS.md)
|
|
81
|
+
- [Grouped readiness flows](frontend.FRONTEND-FLOWS.grouped-readiness-flows.md)
|
|
82
|
+
- [Frontend Step fields](frontend.FRONTEND-FLOWS.frontend-step-fields.md)
|
|
83
|
+
- [RETURN](frontend.FRONTEND-FLOWS.return.md)
|
|
84
|
+
- [PUBLISH_EVENT](frontend.FRONTEND-FLOWS.publish_event.md)
|
|
85
|
+
- [RECORDS_FORM](frontend.FRONTEND-FLOWS.records_form.md)
|
|
86
|
+
- [Rejected forms (non-copyable)](frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md)
|
|
87
|
+
- [Preview and source navigation](frontend.FRONTEND-FLOWS.preview-and-source-navigation.md)
|
|
88
|
+
- [Expressions and tooling](frontend.FRONTEND-FLOWS.expressions-and-tooling.md)
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
If the `hexasync_*` tools are not available, install the server (and these skills) for every client at once:
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
npx -y @beehexa/hexasync-ai-toolkit install --client all --scope user
|
|
6
|
+
npx -y @beehexa/hexasync-ai-toolkit@2611.8.3 install --client all --scope user
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@
|
|
9
|
+
Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3`):
|
|
10
10
|
|
|
11
11
|
| Client | Registration |
|
|
12
12
|
| --- | --- |
|
|
13
|
-
| Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@
|
|
13
|
+
| Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3` |
|
|
14
14
|
| Codex | `mcp_servers` in `~/.codex/config.toml` |
|
|
15
15
|
| Cursor | `mcpServers` in `~/.cursor/mcp.json` |
|
|
16
16
|
| Antigravity | `mcpServers` in `~/.gemini/config/mcp_config.json` |
|
|
17
17
|
| pi | `mcpServers` in `~/.pi/agent/mcp.json` |
|
|
18
|
-
| OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@
|
|
18
|
+
| OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.8.3"]}'` |
|
|
19
19
|
| VS Code | `servers` in the user `mcp.json` |
|
|
20
20
|
|
|
21
21
|
```json
|
|
@@ -25,11 +25,27 @@ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@l
|
|
|
25
25
|
"command": "npx",
|
|
26
26
|
"args": [
|
|
27
27
|
"-y",
|
|
28
|
-
"@beehexa/hexasync-template-ide-mcp@
|
|
28
|
+
"@beehexa/hexasync-template-ide-mcp@2611.8.3"
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
On native Windows use
|
|
35
|
+
On native Windows use this launch:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"command": "cmd",
|
|
40
|
+
"args": [
|
|
41
|
+
"/c",
|
|
42
|
+
"npx",
|
|
43
|
+
"-y",
|
|
44
|
+
"@beehexa/hexasync-template-ide-mcp@2611.8.3"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The standalone server must match toolkit 2611.8.3. If that exact published artifact is absent, registry-backed activation is blocked; do not substitute another release or publish automatically. Local verification uses the actual installed VSIX's `dist/mcp/server.js`, without registry fetching. Confirm its loaded path/version and callable behavior separately.
|
|
50
|
+
|
|
51
|
+
Validation needs the project folder: when the client does not send roots, add `--root <absolute project path>` to `args` or set `HEXASYNC_WORKSPACE_ROOTS`. Do not add the server to a VS Code that has the HexaSync Template IDE extension: the extension already provides it. Skills are loaded conditionally by the host, not globally injected.
|
|
@@ -15,6 +15,7 @@ Use the Profile Template contracts documented in this bundle; external implement
|
|
|
15
15
|
| What belongs at the profile root? | [Profile root](PROFILE-ROOT.md) |
|
|
16
16
|
| Where is a component or type documented? | [Vocabulary index](AI-INDEX.md) |
|
|
17
17
|
| How do I compose a workflow and its steps? | [Workflow and step envelope](hexasync://docs/steps/STEP-ENVELOPE) |
|
|
18
|
+
| How do I author grouped browser workflows? | [Frontend workflows, RETURN and PUBLISH_EVENT](frontend.FRONTEND-FLOWS.md) |
|
|
18
19
|
| Which context values and expression language can I use? | [Context and expressions](hexasync://docs/expressions/CONTEXT-AND-IO) |
|
|
19
20
|
| How do I write QueryDSL? | [Query languages, grammar and examples](hexasync://docs/query-dsl/QUERY-DSL) |
|
|
20
21
|
| How do I choose a step? | [Step catalogue](hexasync://docs/steps/INDEX) |
|
|
@@ -27,6 +28,7 @@ Use the Profile Template contracts documented in this bundle; external implement
|
|
|
27
28
|
| Pushers and push lifecycle | [Pushers](hexasync://docs/pushers/PUSHERS) |
|
|
28
29
|
| Webhook declarations, targets and dispatch | [Webhooks](hexasync://docs/webhooks/WEBHOOKS) |
|
|
29
30
|
| Workflow, step envelope, arguments and shared controls | [Step envelope](hexasync://docs/steps/STEP-ENVELOPE), [argument forms](hexasync://docs/steps/STEP-ENVELOPE/arguments-and-routing), [flags](hexasync://docs/steps/STEP-ENVELOPE/cross-cutting-step-flags), [errors](hexasync://docs/steps/STEP-ENVELOPE/executor-results-graceful-returns-and-run-error-data) |
|
|
31
|
+
| Grouped readiness declarations and frontend-only steps | [FrontendFlow fields](frontend.FRONTEND-FLOWS.grouped-readiness-flows.md#frontendflow-fields), [Step fields](frontend.FRONTEND-FLOWS.frontend-step-fields.md), [RETURN](frontend.FRONTEND-FLOWS.return.md), [PUBLISH_EVENT](frontend.FRONTEND-FLOWS.publish_event.md) |
|
|
30
32
|
| Per-step fields and usages | [Step catalogue](hexasync://docs/steps/INDEX) |
|
|
31
33
|
| Routing and loop controls | [Worker routing](hexasync://docs/routing/NEXT#worker-contract), [loop guards](hexasync://docs/routing/NEXT#backward-edges-and-terminal-loop-guards) |
|
|
32
34
|
| Expressions and available context | [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope), [dialect classification](hexasync://docs/expressions/CONTEXT-AND-IO/dialect-classification-and-silent-scriban-fallback), [JSONata call-site bindings](hexasync://docs/expressions/CONTEXT-AND-IO/jsonata-call-site-scope-and-bindings) |
|
|
@@ -49,6 +51,8 @@ Use the Profile Template contracts documented in this bundle; external implement
|
|
|
49
51
|
|
|
50
52
|
Examples identify their component, placement, assumptions, inputs and expected result. Check the consuming page's context and mode before moving an example to a different placement. Unsupported or rejected forms are explanatory counterexamples, not copyable recommendations.
|
|
51
53
|
|
|
54
|
+
For grouped frontend declarations, search with `feature: frontend` (generic full-context examples) or `feature: getReadyFlows` (root placement), and explain types with `runtime: frontend`. Then validate the retrieved YAML against the aggregate schema with canonical frontend refs and grouped semantic checks; YAML parsing alone is not validation. Generic event examples do not register live public events or prove router/provider/user receipt.
|
|
55
|
+
|
|
52
56
|
A reused language or component has one canonical explanation. Follow the internal document/section link from the consuming page; that page explains only its contextual differences. For a query, start with [Query languages](hexasync://docs/query-dsl/QUERY-DSL), then use the consuming step, transformation or metric page for its bindings and output contract.
|
|
53
57
|
|
|
54
58
|
## Complete resource index
|
|
@@ -58,6 +62,7 @@ A reused language or component has one canonical explanation. Follow the interna
|
|
|
58
62
|
- [Connections and connectors](hexasync://docs/connections/CONNECTIONS)
|
|
59
63
|
- [Dependencies](hexasync://docs/dependencies/DEPENDENCIES)
|
|
60
64
|
- [Arguments, environment, step inputs and outputs](hexasync://docs/expressions/CONTEXT-AND-IO)
|
|
65
|
+
- [Frontend workflows](frontend.FRONTEND-FLOWS.md)
|
|
61
66
|
- [Metrics Configuration Reference](hexasync://docs/metrics/METRICS_REFERENCE)
|
|
62
67
|
- [Object associations](hexasync://docs/objectAssociations/OBJECT-ASSOCIATIONS)
|
|
63
68
|
- [Tasks (objects[])](hexasync://docs/objects/object)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
> Part of [Profile root fields](PROFILE-ROOT.md).
|
|
2
|
+
|
|
3
|
+
## getReadyFlows
|
|
4
|
+
|
|
5
|
+
`getReadyFlows: [<FrontendFlow>]` declares ordered browser setup actions. Omission
|
|
6
|
+
means not configured; explicit `[]` means a configured empty group. Null is
|
|
7
|
+
invalid. Every member is required; local `dependsOn` keys, not list position,
|
|
8
|
+
establish prerequisites. Keep `completionVersion` a nonempty string and flow
|
|
9
|
+
identity in `key` (never `id`).
|
|
10
|
+
|
|
11
|
+
```yaml
|
|
12
|
+
getReadyFlows:
|
|
13
|
+
- key: REVIEW
|
|
14
|
+
title: Review configuration
|
|
15
|
+
action: { label: Review, completedLabel: Review again }
|
|
16
|
+
completionVersion: "1"
|
|
17
|
+
steps:
|
|
18
|
+
- key: DONE
|
|
19
|
+
type: RETURN
|
|
20
|
+
root: true
|
|
21
|
+
metadata:
|
|
22
|
+
status: SUCCESS
|
|
23
|
+
outputs: {}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Frontend `type`/`root`/`metadata` is not worker syntax. Only exact boolean or
|
|
27
|
+
lowercase `"true"`/`"false"` flag literals are accepted; arbitrary metadata and
|
|
28
|
+
expressions retain their types. Grouped success requires explicit RETURN.
|
|
29
|
+
See [Frontend workflows](frontend.FRONTEND-FLOWS.md) for every
|
|
30
|
+
envelope field, local DAG/routing, RETURN failure/cancellation, pure result
|
|
31
|
+
mapping, closed PUBLISH_EVENT and current-flow-only expression context.
|
|
32
|
+
Schema support does not prove deployed runtime or installed-tool compatibility.
|
|
33
|
+
|
|
@@ -18,7 +18,7 @@ connectors:
|
|
|
18
18
|
|
|
19
19
|
A `main.yaml` with only identity and connector slots, while each collection lives in its own file, keeps reviews small and lets composition merge the files deterministically.
|
|
20
20
|
|
|
21
|
-
This page is served as
|
|
21
|
+
This page is served as 11 separate resources. Read the one you need:
|
|
22
22
|
|
|
23
23
|
- [Profile root fields](PROFILE-ROOT.profile-root-fields-1.md) — All roots are optional in the root schema; collection items keep their own required members.
|
|
24
24
|
- [Recommendation selection](PROFILE-ROOT.recommendation-selection.md) — recommendations[] has an existing explicit query consumer.
|
|
@@ -29,4 +29,5 @@ This page is served as 10 separate resources. Read the one you need:
|
|
|
29
29
|
- [Rejected reference forms and safe correction](PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md) — This fragment is non-copyable: the association key is a display label and its target is a physical name, not either required identity.
|
|
30
30
|
- [Minimal worker-facing profile](PROFILE-ROOT.minimal-worker-facing-profile.md) — This storage-only definition has a current task/table binding and no data-moving workflow.
|
|
31
31
|
- [Composed and render-only metadata](PROFILE-ROOT.composed-and-render-only-metadata.md) — Extend the minimal task/table profile with this root metadata fragment, retaining its existing objects, tables and objectAssociations:
|
|
32
|
+
- [getReadyFlows](PROFILE-ROOT.getreadyflows-1.md) — getReadyFlows: [<FrontendFlow>] declares ordered browser setup actions.
|
|
32
33
|
- [Related](PROFILE-ROOT.related.md) — Workflow, runtime scope, routing, response filters, query rules and metric ownership own shared contracts used by root components.
|
|
@@ -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 19 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,6 +95,7 @@ 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.
|
|
@@ -0,0 +1,201 @@
|
|
|
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`.
|
|
8
|
+
|
|
9
|
+
**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: 2`; 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 and a real change note. 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).
|
|
10
|
+
|
|
11
|
+
Syntax: `type: RECORDS_FORM`, `metadata: { target, identity, columns, initial?, allow?, pageSize?, search? }`.
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
creationSteps:
|
|
15
|
+
- key: EDIT_SETTINGS # <string>
|
|
16
|
+
type: RECORDS_FORM # required
|
|
17
|
+
metadata: # <object>; required
|
|
18
|
+
target: { kind: WORKER_SETTINGS } # required; TASK needs taskId
|
|
19
|
+
identity: [KEY] # required; >= 1 column key
|
|
20
|
+
columns: # required; >= 1 hand-written column
|
|
21
|
+
- { key: KEY, name: Setting, type: TEXT, readonly: true }
|
|
22
|
+
- { key: VALUE, name: Value, type: TEXT }
|
|
23
|
+
initial: "jsonata:: outputs.READ_ROWS.items" # optional; rows from a preceding API read; defaults to no rows
|
|
24
|
+
allow: { edit: true } # optional; defaults to {add: false, edit: true, remove: false}
|
|
25
|
+
pageSize: 20 # optional; defaults to 20
|
|
26
|
+
next: SAVE_ROWS # optional; your explicit save step
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Sensible configuration** — read the rows, then edit them with entity search; it must be followed by the import and read-back steps shown in the full example.
|
|
30
|
+
|
|
31
|
+
```yaml
|
|
32
|
+
creationSteps:
|
|
33
|
+
- key: READ_RECORDS
|
|
34
|
+
root: true
|
|
35
|
+
type: API
|
|
36
|
+
metadata: |-
|
|
37
|
+
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}]}}'
|
|
38
|
+
next: EDIT_RECORDS
|
|
39
|
+
- key: EDIT_RECORDS
|
|
40
|
+
type: RECORDS_FORM
|
|
41
|
+
name: Edit records
|
|
42
|
+
metadata:
|
|
43
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
|
|
44
|
+
identity: [code]
|
|
45
|
+
initial: "jsonata:: outputs.READ_RECORDS.items"
|
|
46
|
+
columns:
|
|
47
|
+
- { key: code, name: Code, type: TEXT, required: true, readonly: true }
|
|
48
|
+
- { key: name, name: Name, type: TEXT, required: true }
|
|
49
|
+
- { key: quantity, name: Quantity, type: NUMBER, min: 0 }
|
|
50
|
+
- { key: note, name: Note, type: MULTILINE_TEXT }
|
|
51
|
+
allow: { add: true, edit: true, remove: true }
|
|
52
|
+
search:
|
|
53
|
+
request: |-
|
|
54
|
+
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" }}}]}}'
|
|
55
|
+
items: "jsonata:: items"
|
|
56
|
+
label: "{{ item.code }} — {{ item.name }}"
|
|
57
|
+
fill: { code: "{{ item.code }}", name: "{{ item.name }}" }
|
|
58
|
+
next: BUILD_IMPORT
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
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.
|
|
62
|
+
|
|
63
|
+
##### `target` (RECORDS_FORM)
|
|
64
|
+
|
|
65
|
+
Syntax: `target: { kind: TASK | WORKER_SETTINGS, taskId?: <task id> }`
|
|
66
|
+
|
|
67
|
+
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.
|
|
68
|
+
|
|
69
|
+
```yaml
|
|
70
|
+
creationSteps:
|
|
71
|
+
- key: EDIT_RECORDS
|
|
72
|
+
root: true
|
|
73
|
+
type: RECORDS_FORM
|
|
74
|
+
metadata:
|
|
75
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" } # required; no default
|
|
76
|
+
identity: [code]
|
|
77
|
+
columns: [{ key: code, name: Code, type: TEXT }]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
##### `identity` (RECORDS_FORM)
|
|
81
|
+
|
|
82
|
+
Syntax: `identity: [<column key>, …]`
|
|
83
|
+
|
|
84
|
+
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.
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
creationSteps:
|
|
88
|
+
- key: EDIT_RECORDS
|
|
89
|
+
root: true
|
|
90
|
+
type: RECORDS_FORM
|
|
91
|
+
metadata:
|
|
92
|
+
target: { kind: WORKER_SETTINGS }
|
|
93
|
+
identity: [KEY] # required; >= 1 declared column
|
|
94
|
+
columns: [{ key: KEY, name: Setting, type: TEXT }]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
##### `initial` (RECORDS_FORM)
|
|
98
|
+
|
|
99
|
+
Syntax: `initial: <array of objects> | "<Liquid or jsonata:: expression>"`
|
|
100
|
+
|
|
101
|
+
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.
|
|
102
|
+
|
|
103
|
+
```yaml
|
|
104
|
+
creationSteps:
|
|
105
|
+
- key: EDIT_RECORDS
|
|
106
|
+
root: true
|
|
107
|
+
type: RECORDS_FORM
|
|
108
|
+
metadata:
|
|
109
|
+
target: { kind: WORKER_SETTINGS }
|
|
110
|
+
identity: [KEY]
|
|
111
|
+
columns: [{ key: KEY, name: Setting, type: TEXT }]
|
|
112
|
+
initial: [{ KEY: EXAMPLE_SETTING }] # optional; defaults to no rows
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
##### `columns` (RECORDS_FORM)
|
|
116
|
+
|
|
117
|
+
Syntax: `columns: [{ key, name, type: TEXT | NUMBER | MULTILINE_TEXT, required?, readonly?, min? }]`
|
|
118
|
+
|
|
119
|
+
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.
|
|
120
|
+
|
|
121
|
+
```yaml
|
|
122
|
+
creationSteps:
|
|
123
|
+
- key: EDIT_RECORDS
|
|
124
|
+
root: true
|
|
125
|
+
type: RECORDS_FORM
|
|
126
|
+
metadata:
|
|
127
|
+
target: { kind: WORKER_SETTINGS }
|
|
128
|
+
identity: [KEY]
|
|
129
|
+
columns: # required; >= 1
|
|
130
|
+
- { key: KEY, name: Setting, type: TEXT, readonly: true } # required/readonly default to false
|
|
131
|
+
- { key: LIMIT, name: Limit, type: NUMBER, min: 0 } # min only on NUMBER
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
##### `allow` (RECORDS_FORM)
|
|
135
|
+
|
|
136
|
+
Syntax: `allow: { add?: <boolean>, edit?: <boolean>, remove?: <boolean> }`
|
|
137
|
+
|
|
138
|
+
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.
|
|
139
|
+
|
|
140
|
+
```yaml
|
|
141
|
+
creationSteps:
|
|
142
|
+
- key: EDIT_RECORDS
|
|
143
|
+
root: true
|
|
144
|
+
type: RECORDS_FORM
|
|
145
|
+
metadata:
|
|
146
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
|
|
147
|
+
identity: [code]
|
|
148
|
+
columns:
|
|
149
|
+
- { key: code, name: Code, type: TEXT, required: true }
|
|
150
|
+
- { key: name, name: Name, type: TEXT }
|
|
151
|
+
- { key: quantity, name: Quantity, type: NUMBER, min: 0 }
|
|
152
|
+
- { key: note, name: Note, type: MULTILINE_TEXT }
|
|
153
|
+
allow: { add: true, remove: true } # edit keeps its default true
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
##### `pageSize` (RECORDS_FORM)
|
|
157
|
+
|
|
158
|
+
Syntax: `pageSize: <integer ≥ 1>`
|
|
159
|
+
|
|
160
|
+
Rows per table page; paging happens in the browser. Optional; defaults to 20.
|
|
161
|
+
|
|
162
|
+
```yaml
|
|
163
|
+
creationSteps:
|
|
164
|
+
- key: EDIT_RECORDS
|
|
165
|
+
root: true
|
|
166
|
+
type: RECORDS_FORM
|
|
167
|
+
metadata:
|
|
168
|
+
target: { kind: WORKER_SETTINGS }
|
|
169
|
+
identity: [KEY]
|
|
170
|
+
columns: [{ key: KEY, name: Setting, type: TEXT }]
|
|
171
|
+
pageSize: 50 # defaults to 20
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
##### `search` (RECORDS_FORM)
|
|
175
|
+
|
|
176
|
+
Syntax: `search: { request: <Liquid cURL>, items: "jsonata:: <expression>", label: <Liquid>, fill: { <column key>: <Liquid> } }`
|
|
177
|
+
|
|
178
|
+
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.
|
|
179
|
+
|
|
180
|
+
```yaml
|
|
181
|
+
creationSteps:
|
|
182
|
+
- key: EDIT_RECORDS
|
|
183
|
+
root: true
|
|
184
|
+
type: RECORDS_FORM
|
|
185
|
+
metadata:
|
|
186
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
|
|
187
|
+
identity: [code]
|
|
188
|
+
columns:
|
|
189
|
+
- { key: code, name: Code, type: TEXT, required: true, readonly: true }
|
|
190
|
+
- { key: name, name: Name, type: TEXT }
|
|
191
|
+
- { key: quantity, name: Quantity, type: NUMBER, min: 0 }
|
|
192
|
+
- { key: note, name: Note, type: MULTILINE_TEXT }
|
|
193
|
+
allow: { add: true }
|
|
194
|
+
search: # optional; no default
|
|
195
|
+
request: |-
|
|
196
|
+
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" }}}]}}'
|
|
197
|
+
items: "jsonata:: items"
|
|
198
|
+
label: "{{ item.code }} — {{ item.name }}"
|
|
199
|
+
fill: { code: "{{ item.code }}", name: "{{ item.name }}" }
|
|
200
|
+
```
|
|
201
|
+
|
|
@@ -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 | 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`) or inform (`SHOW_INFO`, `HEALTH_CHECK_WORKER`).
|
|
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`) or inform (`SHOW_INFO`, `HEALTH_CHECK_WORKER`).
|
|
94
|
+
|
|
95
|
+
Use [RETURN](frontend.FRONTEND-FLOWS.return.md) to settle a grouped invocation; 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:
|
|
@@ -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:
|