@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.
Files changed (133) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.cursor-plugin/mcp.json +1 -1
  5. package/.cursor-plugin/plugin.json +1 -1
  6. package/.mcp.json +1 -1
  7. package/README.md +27 -8
  8. package/dist/cli.js +7 -3
  9. package/gemini-extension.json +2 -2
  10. package/openclaw.plugin.json +1 -1
  11. package/package.json +2 -2
  12. package/plugin.json +1 -1
  13. package/skills/hexasync-connections/SKILL.md +20 -8
  14. package/skills/hexasync-connections/references/INDEX.md +18 -0
  15. package/skills/hexasync-connections/references/INSTALL.md +22 -6
  16. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  17. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  18. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  19. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  20. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.md +16 -0
  21. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  22. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  23. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  24. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  25. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  26. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  27. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  28. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  29. package/skills/hexasync-error-handling/SKILL.md +9 -7
  30. package/skills/hexasync-error-handling/references/INSTALL.md +22 -6
  31. package/skills/hexasync-expressions/SKILL.md +21 -9
  32. package/skills/hexasync-expressions/references/INDEX.md +18 -0
  33. package/skills/hexasync-expressions/references/INSTALL.md +22 -6
  34. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.md +1 -1
  35. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.quick-reference-the-three-expression-dialects.md +1 -1
  36. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +20 -1
  37. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  38. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  39. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  40. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  41. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +16 -0
  42. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  43. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  44. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  45. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  46. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  47. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  48. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  49. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  50. package/skills/hexasync-field-mapping/SKILL.md +10 -9
  51. package/skills/hexasync-field-mapping/references/INSTALL.md +22 -6
  52. package/skills/hexasync-metrics-reports/SKILL.md +9 -7
  53. package/skills/hexasync-metrics-reports/references/INSTALL.md +22 -6
  54. package/skills/hexasync-pullers/SKILL.md +9 -7
  55. package/skills/hexasync-pullers/references/INSTALL.md +22 -6
  56. package/skills/hexasync-pushers/SKILL.md +10 -10
  57. package/skills/hexasync-pushers/references/INSTALL.md +22 -6
  58. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +35 -8
  59. package/skills/hexasync-query-dsl/SKILL.md +10 -10
  60. package/skills/hexasync-query-dsl/references/INDEX.md +1 -1
  61. package/skills/hexasync-query-dsl/references/INSTALL.md +22 -6
  62. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +16 -8
  63. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +1 -1
  64. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +1 -1
  65. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +1 -1
  66. package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -7
  67. package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +22 -6
  68. package/skills/hexasync-steps-api-http/SKILL.md +22 -17
  69. package/skills/hexasync-steps-api-http/references/INDEX.md +18 -0
  70. package/skills/hexasync-steps-api-http/references/INSTALL.md +22 -6
  71. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  72. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  73. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  74. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  75. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +16 -0
  76. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  77. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  78. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  79. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  80. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  81. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  82. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  83. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  84. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +6 -0
  85. package/skills/hexasync-steps-control-data/SKILL.md +22 -18
  86. package/skills/hexasync-steps-control-data/references/INDEX.md +18 -0
  87. package/skills/hexasync-steps-control-data/references/INSTALL.md +22 -6
  88. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  89. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  90. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  91. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  92. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +16 -0
  93. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  94. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  95. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  96. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  97. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  98. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  99. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  100. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  101. package/skills/hexasync-tables-tasks-objects/SKILL.md +9 -7
  102. package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +22 -6
  103. package/skills/hexasync-templates/SKILL.md +22 -9
  104. package/skills/hexasync-templates/references/AI-INDEX.md +10 -7
  105. package/skills/hexasync-templates/references/INDEX.md +19 -0
  106. package/skills/hexasync-templates/references/INSTALL.md +22 -6
  107. package/skills/hexasync-templates/references/KB-INDEX.md +5 -0
  108. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +13 -2
  109. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md +76 -0
  110. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +6 -4
  111. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +205 -0
  112. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +11 -9
  113. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +31 -0
  114. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.md +2 -1
  115. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  116. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  117. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  118. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  119. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +16 -0
  120. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  121. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  122. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  123. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  124. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  125. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  126. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  127. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  128. package/skills/hexasync-transformations/SKILL.md +9 -7
  129. package/skills/hexasync-transformations/references/INSTALL.md +22 -6
  130. package/skills/hexasync-validations/SKILL.md +9 -7
  131. package/skills/hexasync-validations/references/INSTALL.md +22 -6
  132. package/skills/hexasync-webhooks/SKILL.md +9 -7
  133. package/skills/hexasync-webhooks/references/INSTALL.md +22 -6
@@ -10,7 +10,7 @@
10
10
  {
11
11
  "name": "hexasync-templates",
12
12
  "source": "./",
13
- "version": "2611.8.2",
13
+ "version": "2611.14.1",
14
14
  "description": "HexaSync profile template tools: agent skills for every template component family plus the HexaSync Template IDE MCP server (knowledge base, YAML examples, expression roots, validation).",
15
15
  "author": {
16
16
  "name": "BeeHexa"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexasync-templates",
3
- "version": "2611.8.2",
3
+ "version": "2611.14.1",
4
4
  "description": "HexaSync profile template tools: agent skills for every template component family plus the HexaSync Template IDE MCP server (knowledge base, YAML examples, expression roots, validation).",
5
5
  "author": {
6
6
  "name": "BeeHexa"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexasync-templates",
3
- "version": "2611.8.2",
3
+ "version": "2611.14.1",
4
4
  "description": "HexaSync profile template tools: agent skills for every template component family plus the HexaSync Template IDE MCP server (knowledge base, YAML examples, expression roots, validation).",
5
5
  "author": {
6
6
  "name": "BeeHexa"
@@ -5,7 +5,7 @@
5
5
  "command": "npx",
6
6
  "args": [
7
7
  "-y",
8
- "@beehexa/hexasync-template-ide-mcp@latest"
8
+ "@beehexa/hexasync-template-ide-mcp@2611.14.1"
9
9
  ]
10
10
  }
11
11
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexasync-templates",
3
- "version": "2611.8.2",
3
+ "version": "2611.14.1",
4
4
  "description": "HexaSync profile template tools: agent skills for every template component family plus the HexaSync Template IDE MCP server (knowledge base, YAML examples, expression roots, validation).",
5
5
  "author": {
6
6
  "name": "BeeHexa"
package/.mcp.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "command": "npx",
5
5
  "args": [
6
6
  "-y",
7
- "@beehexa/hexasync-template-ide-mcp@latest"
7
+ "@beehexa/hexasync-template-ide-mcp@2611.14.1"
8
8
  ]
9
9
  }
10
10
  }
package/README.md CHANGED
@@ -6,7 +6,8 @@ Teach your AI coding agent HexaSync profile templates. One command installs:
6
6
  validation, as tools your agent can call.
7
7
  - **16 HexaSync agent skills**: templates in general, pullers, pushers, webhooks, API steps, control and data
8
8
  steps, the Query DSL, expressions, transformations, validations, connections, tables and tasks, startup tasks
9
- and scheduling, metrics and reports, error handling and field mapping.
9
+ and scheduling, metrics and reports, error handling and field mapping. Entry/API/control/expression skills
10
+ route grouped frontend requests to the same KB-owned frontend reference, not a second authored grammar.
10
11
 
11
12
  Supported agents: Claude Code, Codex, Cursor, Antigravity, pi, OpenClaw and VS Code (GitHub Copilot).
12
13
  Works on Linux, macOS and Windows.
@@ -15,13 +16,19 @@ Works on Linux, macOS and Windows.
15
16
 
16
17
  Node.js 22.13 or newer (`node --version`).
17
18
 
19
+ Choose an exact toolkit release and replace `<toolkit-version>` below. The installer, generated manifests
20
+ and skill installation references select the standalone MCP server at that same version, never a moving
21
+ release or an automatic fallback. If the matching server is unpublished/missing, registry-backed activation
22
+ is blocked; do not substitute another version or publish automatically.
23
+
18
24
  ## Install
19
25
 
20
26
  ```sh
21
- npx -y @beehexa/hexasync-ai-toolkit install --client all
27
+ npx -y '@beehexa/hexasync-ai-toolkit@<toolkit-version>' install --client all
22
28
  ```
23
29
 
24
- Then restart your agent.
30
+ Then restart your agent. Skills load conditionally when the host selects them; installation does not inject
31
+ instructions globally or prove that a skill has loaded.
25
32
 
26
33
  | Option | Effect |
27
34
  | --- | --- |
@@ -37,15 +44,15 @@ server.
37
44
  ## Update, list, remove
38
45
 
39
46
  ```sh
40
- npx -y @beehexa/hexasync-ai-toolkit update
41
- npx -y @beehexa/hexasync-ai-toolkit list
42
- npx -y @beehexa/hexasync-ai-toolkit uninstall
47
+ npx -y '@beehexa/hexasync-ai-toolkit@<toolkit-version>' update
48
+ npx -y '@beehexa/hexasync-ai-toolkit@<toolkit-version>' list
49
+ npx -y '@beehexa/hexasync-ai-toolkit@<toolkit-version>' uninstall
43
50
  ```
44
51
 
45
52
  ## Install as a plugin
46
53
 
47
- - **pi**: `pi install npm:@beehexa/hexasync-ai-toolkit`
48
- - **OpenClaw**: `openclaw plugins install npm:@beehexa/hexasync-ai-toolkit`
54
+ - **pi**: `pi install 'npm:@beehexa/hexasync-ai-toolkit@<toolkit-version>'`
55
+ - **OpenClaw**: `openclaw plugins install 'npm:@beehexa/hexasync-ai-toolkit@<toolkit-version>'`
49
56
 
50
57
  ## Try these prompts
51
58
 
@@ -54,6 +61,15 @@ npx -y @beehexa/hexasync-ai-toolkit uninstall
54
61
  - "Handle HTTP and response errors in this puller with one classification step and an Error step."
55
62
  - "Which roots can I use in an expression inside a pusher step?"
56
63
  - "Validate this project and explain each problem."
64
+ - "Explain grouped getReadyFlows with runtime frontend and the frontend-step expression position."
65
+
66
+ The entry, API, control/data and expression skills link the
67
+ [canonical frontend guide](https://github.com/hexasync-saas/hexasync-templates-vscode-ext/blob/main/assets/docs/frontend/FRONTEND-FLOWS.md)
68
+ through their localized references.
69
+ They qualify frontend type lookups with `runtime: 'frontend'`; omitted runtime remains worker.
70
+ Use `frontend-step` for frontend expressions. Missing frontend knowledge is unavailable, not a worker
71
+ fallback. Refer to the KB for the complete contract and runtime prerequisites; schema acceptance is not
72
+ deployed-runtime support or router/provider/user-receipt proof.
57
73
 
58
74
  ## Troubleshooting
59
75
 
@@ -61,3 +77,6 @@ npx -y @beehexa/hexasync-ai-toolkit uninstall
61
77
  - **The server does not start:** check Node.js is 22.13 or newer.
62
78
  - **"No project" when validating:** open the template folder in your agent, or re-run with `--scope project`
63
79
  from that folder.
80
+ - **Missing matching MCP release:** activation is blocked. Local verification uses the actual installed
81
+ VSIX's `dist/mcp/server.js` without fetching from the registry. A generated manifest or matching version
82
+ alone is not installed-tool or skill-loading proof.
package/dist/cli.js CHANGED
@@ -2659,7 +2659,7 @@ async function extensionInstalled(ports) {
2659
2659
  return null;
2660
2660
  }
2661
2661
  async function planInstall(options, ports) {
2662
- const launch = standaloneLaunch(ports.host.platform);
2662
+ const launch = standaloneLaunch(ports.host.platform, `${STANDALONE_MCP_PACKAGE}@${options.toolkitVersion}`);
2663
2663
  const copiedTo = /* @__PURE__ */ new Map();
2664
2664
  const clients = [];
2665
2665
  for (const clientId of options.clients) {
@@ -2855,7 +2855,10 @@ ${USAGE}
2855
2855
  return 2;
2856
2856
  }
2857
2857
  const manifest = JSON.parse(await readFile2(join2(packageRoot2, "package.json"), "utf8"));
2858
- const version = manifest && typeof manifest === "object" && "version" in manifest && typeof manifest.version === "string" ? manifest.version : "unknown";
2858
+ if (!manifest || typeof manifest !== "object" || !("version" in manifest) || typeof manifest.version !== "string" || !manifest.version.trim()) {
2859
+ throw new Error("The toolkit package.json has no release version; cannot select its matching MCP server.");
2860
+ }
2861
+ const version = manifest.version;
2859
2862
  if (args.command === "help") {
2860
2863
  write(`${USAGE}
2861
2864
  `);
@@ -2894,6 +2897,7 @@ ${USAGE}
2894
2897
  clients: args.clients,
2895
2898
  scope: args.scope,
2896
2899
  skills: args.skills,
2900
+ toolkitVersion: version,
2897
2901
  mcp: args.mcp,
2898
2902
  useCli: args.useCli,
2899
2903
  skillsSource,
@@ -2919,7 +2923,7 @@ ${client.displayName}
2919
2923
  }
2920
2924
  }
2921
2925
  if (!args.dryRun && plan.clients.some((client) => client.actions.some((action) => action.kind === "write-config" || action.kind === "run"))) {
2922
- write("\nRestart (or reload) each client so it starts the MCP server and loads the skills.\n");
2926
+ write("\nRestart (or reload) each client so it starts the matching MCP server and discovers the skills; skills load conditionally.\n");
2923
2927
  }
2924
2928
  return failed ? 1 : 0;
2925
2929
  }
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "hexasync-templates",
3
- "version": "2611.8.2",
3
+ "version": "2611.14.1",
4
4
  "description": "HexaSync profile template tools: agent skills for every template component family plus the HexaSync Template IDE MCP server (knowledge base, YAML examples, expression roots, validation).",
5
5
  "mcpServers": {
6
6
  "hexasync-template-ide": {
7
7
  "command": "npx",
8
8
  "args": [
9
9
  "-y",
10
- "@beehexa/hexasync-template-ide-mcp@latest"
10
+ "@beehexa/hexasync-template-ide-mcp@2611.14.1"
11
11
  ]
12
12
  }
13
13
  }
@@ -2,7 +2,7 @@
2
2
  "id": "hexasync-templates",
3
3
  "name": "HexaSync Templates",
4
4
  "description": "HexaSync profile template tools: agent skills for every template component family plus the HexaSync Template IDE MCP server (knowledge base, YAML examples, expression roots, validation).",
5
- "version": "2611.8.2",
5
+ "version": "2611.14.1",
6
6
  "skills": [
7
7
  "./skills"
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beehexa/hexasync-ai-toolkit",
3
- "version": "2611.8.2",
3
+ "version": "2611.14.1",
4
4
  "description": "HexaSync AI toolkit: agent skills for HexaSync profile templates plus the HexaSync Template IDE MCP server, installable into Claude Code, Codex, Cursor, Antigravity, pi, OpenClaw and VS Code.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,7 +49,7 @@
49
49
  "build": "node build.mjs"
50
50
  },
51
51
  "devDependencies": {
52
- "@beehexa/hexasync-template-client-setup": "2611.8.2",
52
+ "@beehexa/hexasync-template-client-setup": "2611.14.1",
53
53
  "esbuild": "0.28.1",
54
54
  "typescript": "7.0.2"
55
55
  },
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexasync-templates",
3
- "version": "2611.8.2",
3
+ "version": "2611.14.1",
4
4
  "description": "HexaSync profile template tools: agent skills for every template component family plus the HexaSync Template IDE MCP server (knowledge base, YAML examples, expression roots, validation).",
5
5
  "author": {
6
6
  "name": "BeeHexa"
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: hexasync-connections
3
3
  description: "HexaSync connections: connectors list in main.yaml, connectorId/providerId/providerVersion, options, authentication and credential scope per connection, the self connector, HTTP request builders bound to a connection, CONN-* validation rules, connector catalog lookups. Use when declaring or binding a connection."
4
- compatibility: "Any agent that reads Agent Skills. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@latest), which needs Node.js >= 22.13; without it, read references/."
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.14.1), which needs Node.js >= 22.13; without it, read references/."
5
5
  metadata:
6
6
  author: BeeHexa
7
- version: "2611.8.2"
8
- kb-bundle: "103"
7
+ version: "2611.14.1"
8
+ kb-bundle: "113"
9
9
  mcp-server: "hexasync-template-ide"
10
10
  ---
11
11
 
@@ -13,24 +13,36 @@ metadata:
13
13
 
14
14
  **Syntax.** A profile declares connections as a list under `connectors:` (the legacy spelling `connections:` is still read):
15
15
 
16
- > Generated from the HexaSync knowledge base (asset bundle 103) by @beehexa/hexasync-ai-toolkit 2611.8.2.
16
+ > Generated from the HexaSync knowledge base (asset bundle 113) by @beehexa/hexasync-ai-toolkit 2611.14.1.
17
17
 
18
18
  ## How to work
19
19
 
20
+ The host loads this skill conditionally; installing it does not inject instructions into every conversation.
21
+ Choose worker or frontend from the owning collection before applying guidance; grouped frontend requests follow the separate route below.
20
22
  When the HexaSync MCP tools (`hexasync_*`) are available, use them in this order:
21
23
 
22
24
  1. `hexasync_orientation` once per session: what a template is, the two runtimes that must never be mixed, and the lookup order.
23
- 2. `hexasync_explain_type` before writing any field, e.g. `connectors`, `connectorId`. It returns the authoritative syntax, meaning, default and a YAML example.
24
- 3. `hexasync_search_examples` for complete, schema-valid examples (e.g. query `connectors connection options`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
25
+ 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":"connectorId","runtime":"worker"})`. Omitted runtime also means worker, never frontend.
26
+ 3. `hexasync_search_examples` for complete, schema-valid worker/data examples (e.g. query `connectors connection options`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
25
27
  4. `hexasync_explain_position` before writing an expression: each authoring position has its own roots.
26
28
  5. `hexasync_validate` on the project before claiming the YAML is correct; explain any rule id with `hexasync_explain_rule`.
27
29
 
28
30
  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.
29
31
 
32
+ ## Grouped frontend routing
33
+
34
+ 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.
35
+
36
+ - Look up `hexasync_explain_type({"name":"Step","runtime":"frontend"})`. Always pass `runtime: 'frontend'`, including for names shared with worker types.
37
+ - Retrieve complete grouped examples with `hexasync_search_examples({"feature":"frontend"})`.
38
+ - Keep each flow `key` and `dependsOn` reference within 128 characters, matching `^[A-Z][A-Z0-9_]*$`; longer values are invalid.
39
+ - Before an expression, use `hexasync_explain_position({"position":"frontend-step"})` and the KB's current-flow context guidance.
40
+ - 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.
41
+
30
42
  ## References
31
43
 
32
- [`references/INDEX.md`](references/INDEX.md) maps every section of *Connections and connectors* and lists the questions this skill answers. Open only the section you need.
44
+ [`references/INDEX.md`](references/INDEX.md) maps every section of *Connections and connectors*, *Frontend workflows* and lists the questions this skill answers. Open only the section you need.
33
45
 
34
46
  ## Installing the MCP server
35
47
 
36
- 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@latest`).
48
+ If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`). The matching published server is required; absence blocks registry-backed activation, with no fallback.
@@ -4,6 +4,8 @@ Each file is one knowledge-base section of at most 25 KB, the same split the MCP
4
4
 
5
5
  ## Questions this skill answers
6
6
 
7
+ - grouped frontend getReadyFlows, FrontendFlow/Step fields, RETURN, FAIL, PUBLISH_EVENT and RECORDS_FORM (multi-record edit; removes saved as disables) → [Frontend workflows](frontend.FRONTEND-FLOWS.md)
8
+ - save task/reference row changes, preview, health, repair, per-row outcomes and coded refusals; unreleased worker.proxy PR #78 deployment gate → [Data routes](frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md), [RECORDS_FORM change set](frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md), [File import](frontend.FRONTEND-FLOWS.records_form.file-import-path.md)
7
9
  - connection binding, options, auth and HTTP request builders → [Connections](connections.CONNECTIONS.md), [API](hexasync://docs/steps/API)
8
10
  - self connector identity (`**SelfConnectorProviderId**`, `IS_SELF_CONNECTOR`) and why `CONN-1` names it → [The self connector](connections.CONNECTIONS.the-self-connector.md#its-identity-and-why-conn-1-names-it)
9
11
  - several vendor accounts, credential scope per connection, shared provider quota → [One connection, one credential scope](connections.CONNECTIONS.one-connection-one-credential-scope.md)
@@ -31,3 +33,19 @@ Each file is one knowledge-base section of at most 25 KB, the same split the MCP
31
33
  - [Never invent a systemCode](connections.CONNECTIONS.never-invent-a-systemcode.md)
32
34
  - [Authentication and setup steps](connections.CONNECTIONS.authentication-and-setup-steps.md)
33
35
  - [Related](connections.CONNECTIONS.related.md)
36
+
37
+ ### Frontend workflows
38
+
39
+ - [Frontend workflows](frontend.FRONTEND-FLOWS.md)
40
+ - [Grouped readiness flows](frontend.FRONTEND-FLOWS.grouped-readiness-flows.md)
41
+ - [Frontend Step fields](frontend.FRONTEND-FLOWS.frontend-step-fields.md)
42
+ - [RETURN](frontend.FRONTEND-FLOWS.return.md)
43
+ - [FAIL](frontend.FRONTEND-FLOWS.fail.md)
44
+ - [PUBLISH_EVENT](frontend.FRONTEND-FLOWS.publish_event.md)
45
+ - [Task and reference data changes](frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md)
46
+ - [RECORDS_FORM](frontend.FRONTEND-FLOWS.records_form.md)
47
+ - [RECORDS_FORM change-set path](frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md)
48
+ - [File-import path](frontend.FRONTEND-FLOWS.records_form.file-import-path.md)
49
+ - [Rejected forms (non-copyable)](frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md)
50
+ - [Preview and source navigation](frontend.FRONTEND-FLOWS.preview-and-source-navigation.md)
51
+ - [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.14.1 install --client all --scope user
7
7
  ```
8
8
 
9
- Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@latest`):
9
+ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`):
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@latest` |
13
+ | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1` |
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@latest"]}'` |
18
+ | OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.14.1"]}'` |
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@latest"
28
+ "@beehexa/hexasync-template-ide-mcp@2611.14.1"
29
29
  ]
30
30
  }
31
31
  }
32
32
  }
33
33
  ```
34
34
 
35
- On native Windows use `"command": "cmd", "args": ["/c", "npx", "-y", "@beehexa/hexasync-template-ide-mcp@latest"]`. 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.
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.14.1"
45
+ ]
46
+ }
47
+ ```
48
+
49
+ The standalone server must match toolkit 2611.14.1. 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.
@@ -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](hexasync://docs/PROFILE-ROOT), [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](hexasync://docs/PROFILE-ROOT/profile-root-fields-1/frontend-steps-creationsteps-setupsteps-authorizationsteps/fail) 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](hexasync://docs/PROFILE-ROOT/profile-root-fields-1/frontend-steps-creationsteps-setupsteps-authorizationsteps/output-fields) 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
+
@@ -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
+