@beehexa/hexasync-ai-toolkit 2611.8.3 → 2612.3.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 (398) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.codex-plugin/plugin.json +3 -4
  4. package/.cursor-plugin/plugin.json +3 -4
  5. package/README.md +5 -74
  6. package/dist/cli.js +15 -2070
  7. package/gemini-extension.json +2 -11
  8. package/openclaw.extension.mjs +2 -3
  9. package/openclaw.plugin.json +2 -2
  10. package/package.json +3 -4
  11. package/plugin.json +3 -4
  12. package/skills/hexasync-connections/SKILL.md +11 -16
  13. package/skills/hexasync-connections/references/INDEX.md +20 -2
  14. package/skills/hexasync-connections/references/INSTALL.md +5 -48
  15. package/skills/hexasync-connections/references/connections.CONNECTIONS.api-recovery.md +1 -1
  16. package/skills/hexasync-connections/references/connections.CONNECTIONS.captured-call-and-authenticated-composition.md +2 -2
  17. package/skills/hexasync-connections/references/connections.CONNECTIONS.framework-understood-connection-option-catalogue.md +2 -2
  18. package/skills/hexasync-connections/references/connections.CONNECTIONS.how-a-step-finds-its-connection.md +2 -2
  19. package/skills/hexasync-connections/references/connections.CONNECTIONS.md +1 -1
  20. package/skills/hexasync-connections/references/connections.CONNECTIONS.one-connection-one-credential-scope.md +2 -2
  21. package/skills/hexasync-connections/references/connections.CONNECTIONS.related.md +5 -5
  22. package/skills/hexasync-connections/references/connections.CONNECTIONS.the-self-connector.md +1 -1
  23. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  24. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  25. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  26. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  27. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  28. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.md +16 -0
  29. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  30. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  31. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  32. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  33. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  34. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  35. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  36. package/skills/hexasync-error-handling/SKILL.md +9 -16
  37. package/skills/hexasync-error-handling/references/INDEX.md +1 -1
  38. package/skills/hexasync-error-handling/references/INSTALL.md +5 -48
  39. package/skills/hexasync-error-handling/references/routing.NEXT.md +10 -10
  40. package/skills/hexasync-error-handling/references/steps.EXCEPTION.md +5 -5
  41. package/skills/hexasync-error-handling/references/steps.Error.md +8 -8
  42. package/skills/hexasync-expressions/SKILL.md +10 -24
  43. package/skills/hexasync-expressions/references/INDEX.md +8 -3
  44. package/skills/hexasync-expressions/references/INSTALL.md +5 -48
  45. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.arguments--computed-before-the-step-runs.md +1 -1
  46. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.dialect-classification-and-silent-scriban-fallback.md +2 -2
  47. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.exact-mutation-timeline.md +4 -4
  48. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.executor-results-are-not-downstream-values.md +2 -2
  49. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.graceful-failures-and-run-errors.md +1 -1
  50. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-call-site-scope-and-bindings.md +17 -17
  51. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-engine-pinned-version-and-restrictions.md +1 -1
  52. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonpath-expressions.md +2 -2
  53. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.related.md +1 -1
  54. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +12 -12
  55. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.host-qualified-authoring-examples.md +2 -2
  56. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  57. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
  58. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  59. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
  60. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
  61. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +6 -4
  62. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
  63. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  64. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
  65. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  66. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.return.md +2 -2
  67. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  68. package/skills/hexasync-expressions/references/steps.JSONata.md +8 -8
  69. package/skills/hexasync-expressions/references/steps.Liquid.md +2 -2
  70. package/skills/hexasync-expressions/references/steps.Scriban.md +9 -9
  71. package/skills/hexasync-field-mapping/SKILL.md +13 -19
  72. package/skills/hexasync-field-mapping/references/INDEX.md +2 -2
  73. package/skills/hexasync-field-mapping/references/INSTALL.md +5 -48
  74. package/skills/hexasync-field-mapping/references/steps.SAVE_TASK_DATA.md +19 -19
  75. package/skills/hexasync-field-mapping/references/tables.TABLES.best-practices.md +1 -1
  76. package/skills/hexasync-field-mapping/references/tables.TABLES.fields.md +1 -1
  77. package/skills/hexasync-field-mapping/references/tables.TABLES.md +1 -1
  78. package/skills/hexasync-field-mapping/references/tables.TABLES.minimal-declaration-and-composed-usage.md +1 -1
  79. package/skills/hexasync-field-mapping/references/tables.TABLES.related.md +5 -5
  80. package/skills/hexasync-field-mapping/references/tables.TABLES.the-system-columns-are-not-declared-here.md +1 -1
  81. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
  82. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.related.md +6 -6
  83. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
  84. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
  85. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
  86. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
  87. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
  88. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
  89. package/skills/hexasync-metrics-reports/SKILL.md +9 -16
  90. package/skills/hexasync-metrics-reports/references/INDEX.md +1 -1
  91. package/skills/hexasync-metrics-reports/references/INSTALL.md +5 -48
  92. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.common-metadata-properties.md +1 -1
  93. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-configuration.md +1 -1
  94. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-kinds-reference.md +2 -2
  95. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.related.md +4 -4
  96. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.when-to-use.md +1 -1
  97. package/skills/hexasync-metrics-reports/references/reports.REPORTS.md +4 -4
  98. package/skills/hexasync-metrics-reports/references/steps.METRIC_QUERY.md +2 -2
  99. package/skills/hexasync-metrics-reports/references/steps.QUERY_METRICS.md +8 -8
  100. package/skills/hexasync-pullers/SKILL.md +11 -18
  101. package/skills/hexasync-pullers/references/INDEX.md +3 -3
  102. package/skills/hexasync-pullers/references/INSTALL.md +5 -48
  103. package/skills/hexasync-pullers/references/pullers.PULLERS.api-error-classification.md +3 -3
  104. package/skills/hexasync-pullers/references/pullers.PULLERS.entity-classification.md +1 -1
  105. package/skills/hexasync-pullers/references/pullers.PULLERS.entry-context-and-transitions.md +1 -1
  106. package/skills/hexasync-pullers/references/pullers.PULLERS.overview.md +2 -2
  107. package/skills/hexasync-pullers/references/pullers.PULLERS.page-termination-and-the-four-platform-guards.md +2 -2
  108. package/skills/hexasync-pullers/references/pullers.PULLERS.persistence-and-safe-full-pull-removal.md +2 -2
  109. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-afterpullsteps.md +1 -1
  110. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-beforepullsteps.md +1 -1
  111. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-contracts.md +1 -1
  112. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-onerrorsteps.md +2 -2
  113. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-pullsteps.md +1 -1
  114. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-steps.md +1 -1
  115. package/skills/hexasync-pullers/references/pullers.PULLERS.property-reference.md +6 -6
  116. package/skills/hexasync-pullers/references/pullers.PULLERS.puller-completeness-contract.md +6 -6
  117. package/skills/hexasync-pullers/references/pullers.PULLERS.related.md +7 -7
  118. package/skills/hexasync-pullers/references/pullers.PULLERS.the-resume-computation.md +2 -2
  119. package/skills/hexasync-pullers/references/pullers.PULLERS.the-webhook-vs-puller-division.md +1 -1
  120. package/skills/hexasync-pullers/references/pullers.PULLERS.two-puller-host-modes-not-two-workflow-constructs.md +2 -2
  121. package/skills/hexasync-pullers/references/pullers.PULLERS.watermark-trustworthiness.md +1 -1
  122. package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-new-kind-snapshot-pull.md +2 -2
  123. package/skills/hexasync-pullers/references/steps.PULLER.md +8 -8
  124. package/skills/hexasync-pushers/SKILL.md +20 -22
  125. package/skills/hexasync-pushers/references/INDEX.md +2 -2
  126. package/skills/hexasync-pushers/references/INSTALL.md +5 -48
  127. package/skills/hexasync-pushers/references/pushers.PUSHERS.association-transform-routing.md +1 -1
  128. package/skills/hexasync-pushers/references/pushers.PUSHERS.best-practices.md +3 -3
  129. package/skills/hexasync-pushers/references/pushers.PUSHERS.expression-roots-differ-from-a-puller.md +1 -1
  130. package/skills/hexasync-pushers/references/pushers.PUSHERS.fields.md +4 -4
  131. package/skills/hexasync-pushers/references/pushers.PUSHERS.four-step-phases.md +1 -1
  132. package/skills/hexasync-pushers/references/pushers.PUSHERS.indirect-pushers.md +2 -2
  133. package/skills/hexasync-pushers/references/pushers.PUSHERS.md +1 -1
  134. package/skills/hexasync-pushers/references/pushers.PUSHERS.minimal-configuration.md +2 -2
  135. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-beforepushsteps.md +2 -2
  136. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-contracts.md +3 -3
  137. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-finalsteps.md +2 -2
  138. package/skills/hexasync-pushers/references/pushers.PUSHERS.related.md +6 -6
  139. package/skills/hexasync-pushers/references/pushers.PUSHERS.resolution-ordering-locks-and-retries.md +4 -4
  140. package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-direct-push-with-dependency.md +1 -1
  141. package/skills/hexasync-pushers/references/steps.PUSHER.md +8 -8
  142. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_STATUS.md +14 -14
  143. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +48 -21
  144. package/skills/hexasync-query-dsl/SKILL.md +13 -17
  145. package/skills/hexasync-query-dsl/references/INDEX.md +2 -2
  146. package/skills/hexasync-query-dsl/references/INSTALL.md +5 -48
  147. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.best-practice.md +1 -1
  148. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md +2 -2
  149. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md +1 -1
  150. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md +1 -1
  151. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +17 -9
  152. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +3 -3
  153. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.md +1 -1
  154. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md +3 -3
  155. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md +1 -1
  156. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md +1 -1
  157. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md +4 -4
  158. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md +3 -3
  159. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md +1 -1
  160. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md +5 -5
  161. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.regex-predicates-complete-scalar-postgresql-patterns.md +2 -2
  162. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md +2 -2
  163. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.verbatim-scalar-comparisons.md +2 -2
  164. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md +4 -4
  165. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md +1 -1
  166. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md +2 -2
  167. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.join-types.md +1 -1
  168. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +3 -3
  169. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +2 -2
  170. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.when-to-use.md +1 -1
  171. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.where-it-is-used.md +7 -7
  172. package/skills/hexasync-query-dsl/references/steps.QUERY_MANY.md +9 -9
  173. package/skills/hexasync-query-dsl/references/steps.QUERY_SINGLE.md +9 -9
  174. package/skills/hexasync-query-dsl/references/steps.SQL.md +12 -12
  175. package/skills/hexasync-query-dsl/references/steps.SQL_PROXY.md +9 -9
  176. package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -16
  177. package/skills/hexasync-startup-tasks-scheduling/references/INDEX.md +3 -3
  178. package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +5 -48
  179. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.legacy-target-tasks.md +3 -3
  180. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.metric-defaults.md +1 -1
  181. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.related.md +5 -5
  182. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.scheduler-metadata.md +6 -6
  183. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.when-to-use.md +2 -2
  184. package/skills/hexasync-startup-tasks-scheduling/references/steps.ENQUEUER.md +9 -9
  185. package/skills/hexasync-steps-api-http/SKILL.md +19 -26
  186. package/skills/hexasync-steps-api-http/references/INDEX.md +9 -4
  187. package/skills/hexasync-steps-api-http/references/INSTALL.md +5 -48
  188. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  189. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
  190. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  191. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
  192. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
  193. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +6 -4
  194. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
  195. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  196. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
  197. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  198. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.return.md +2 -2
  199. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  200. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.best-practices.md +1 -1
  201. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.execution-order-and-shared-values.md +1 -1
  202. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.md +1 -1
  203. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parsejson-boundary.md +2 -2
  204. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.related.md +1 -1
  205. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.same-name-different-placement-grammars.md +4 -4
  206. package/skills/hexasync-steps-api-http/references/routing.NEXT.md +7 -7
  207. package/skills/hexasync-steps-api-http/references/steps.API.api-pagination.md +1 -1
  208. package/skills/hexasync-steps-api-http/references/steps.API.contract.md +2 -2
  209. package/skills/hexasync-steps-api-http/references/steps.API.failure-handling.md +2 -2
  210. package/skills/hexasync-steps-api-http/references/steps.API.fields.md +1 -1
  211. package/skills/hexasync-steps-api-http/references/steps.API.related.md +4 -4
  212. package/skills/hexasync-steps-api-http/references/steps.INDEX.md +90 -90
  213. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE._history--the-per-step-occurrence-ring.md +1 -1
  214. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.arguments-and-routing.md +2 -2
  215. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.best-practices.md +1 -1
  216. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +6 -0
  217. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.one-canonical-workflow-component.md +16 -16
  218. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.recovery-bypasses-and-connector-restart.md +1 -1
  219. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.related.md +1 -1
  220. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.shape.md +4 -4
  221. package/skills/hexasync-steps-control-data/SKILL.md +25 -31
  222. package/skills/hexasync-steps-control-data/references/INDEX.md +8 -3
  223. package/skills/hexasync-steps-control-data/references/INSTALL.md +5 -48
  224. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  225. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
  226. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  227. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
  228. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
  229. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +6 -4
  230. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
  231. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  232. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
  233. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  234. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.return.md +2 -2
  235. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  236. package/skills/hexasync-steps-control-data/references/steps.BASE64_TO_MIME_TYPE.md +3 -3
  237. package/skills/hexasync-steps-control-data/references/steps.Begin.md +3 -3
  238. package/skills/hexasync-steps-control-data/references/steps.CACHE.md +4 -4
  239. package/skills/hexasync-steps-control-data/references/steps.Composite.md +4 -4
  240. package/skills/hexasync-steps-control-data/references/steps.DIRECT_INDEX.md +12 -12
  241. package/skills/hexasync-steps-control-data/references/steps.DOWNLOAD_CSV.md +23 -23
  242. package/skills/hexasync-steps-control-data/references/steps.EXCEL_READER.md +7 -7
  243. package/skills/hexasync-steps-control-data/references/steps.End.md +4 -4
  244. package/skills/hexasync-steps-control-data/references/steps.GET_KEY_VALUE.md +6 -6
  245. package/skills/hexasync-steps-control-data/references/steps.GraphQL.md +7 -7
  246. package/skills/hexasync-steps-control-data/references/steps.IF.md +12 -12
  247. package/skills/hexasync-steps-control-data/references/steps.IGNORE_ITEM.md +7 -7
  248. package/skills/hexasync-steps-control-data/references/steps.INDEX.md +48 -48
  249. package/skills/hexasync-steps-control-data/references/steps.INVALIDATE_CACHE.md +2 -2
  250. package/skills/hexasync-steps-control-data/references/steps.LOOKUP_STEP.md +8 -8
  251. package/skills/hexasync-steps-control-data/references/steps.OData.md +4 -4
  252. package/skills/hexasync-steps-control-data/references/steps.PUBLISH_EVENT.md +5 -5
  253. package/skills/hexasync-steps-control-data/references/steps.QueryDSL.md +3 -3
  254. package/skills/hexasync-steps-control-data/references/steps.REMOVE_DATA.md +7 -7
  255. package/skills/hexasync-steps-control-data/references/steps.RESET_ITEM.md +12 -12
  256. package/skills/hexasync-steps-control-data/references/steps.RESOLVE_RAW_DATA.md +11 -11
  257. package/skills/hexasync-steps-control-data/references/steps.Restful.md +6 -6
  258. package/skills/hexasync-steps-control-data/references/steps.SEED_DATA.md +10 -10
  259. package/skills/hexasync-steps-control-data/references/steps.SET_KEY_VALUE.md +7 -7
  260. package/skills/hexasync-steps-control-data/references/steps.SLEEP.md +8 -8
  261. package/skills/hexasync-steps-control-data/references/steps.SWITCH.md +12 -12
  262. package/skills/hexasync-steps-control-data/references/steps.TRACK_FOR_REMOVAL.md +12 -12
  263. package/skills/hexasync-steps-control-data/references/steps.UPDATE_TASK_DATA_STATUS.md +13 -13
  264. package/skills/hexasync-steps-control-data/references/steps.VALUES.md +12 -12
  265. package/skills/hexasync-steps-control-data/references/steps.VERIFY_CACHED.md +5 -5
  266. package/skills/hexasync-steps-control-data/references/steps.cURL.md +8 -8
  267. package/skills/hexasync-tables-tasks-objects/SKILL.md +11 -18
  268. package/skills/hexasync-tables-tasks-objects/references/INDEX.md +2 -2
  269. package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +5 -48
  270. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.fields.md +1 -1
  271. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.related.md +1 -1
  272. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.using-resolved-prerequisite-data.md +1 -1
  273. package/skills/hexasync-tables-tasks-objects/references/objectAssociations.OBJECT-ASSOCIATIONS.md +7 -7
  274. package/skills/hexasync-tables-tasks-objects/references/objects.object.best-practices-and-pitfalls.md +1 -1
  275. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dataprocessing.md +1 -1
  276. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dependencies.md +2 -2
  277. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.description.md +1 -1
  278. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.enqueue.md +1 -1
  279. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.fromconnectionid.md +1 -1
  280. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.id.md +1 -1
  281. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignorechange.md +1 -1
  282. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignoreremoval.md +2 -2
  283. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.integrationtype.md +1 -1
  284. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.isdirtyremovable.md +1 -1
  285. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.md +1 -1
  286. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metricgroups.md +1 -1
  287. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metrics.md +2 -2
  288. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.name.md +1 -1
  289. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.newtablename.md +1 -1
  290. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.oldtablename.md +1 -1
  291. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.priority.md +1 -1
  292. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.puller.md +4 -4
  293. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.pusher.md +1 -1
  294. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.queuer.md +1 -1
  295. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.toconnectionid.md +1 -1
  296. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.type.md +1 -1
  297. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.valuetablename.md +1 -1
  298. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.viewname.md +1 -1
  299. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.visible.md +1 -1
  300. package/skills/hexasync-tables-tasks-objects/references/objects.object.minimal-declaration.md +1 -1
  301. package/skills/hexasync-tables-tasks-objects/references/objects.object.related.md +2 -2
  302. package/skills/hexasync-tables-tasks-objects/references/steps.SAVE_TASK_DATA.md +16 -16
  303. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.best-practices.md +1 -1
  304. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.fields.md +1 -1
  305. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.related.md +3 -3
  306. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.fields.md +5 -5
  307. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.md +1 -1
  308. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.related.md +6 -6
  309. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.status-and-row-clocks.md +1 -1
  310. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.system-column-contract.md +1 -1
  311. package/skills/hexasync-templates/SKILL.md +16 -30
  312. package/skills/hexasync-templates/references/AI-INDEX.md +36 -35
  313. package/skills/hexasync-templates/references/INDEX.md +9 -4
  314. package/skills/hexasync-templates/references/INSTALL.md +5 -48
  315. package/skills/hexasync-templates/references/KB-INDEX.md +98 -98
  316. package/skills/hexasync-templates/references/PROFILE-ROOT.composed-and-render-only-metadata.md +1 -1
  317. package/skills/hexasync-templates/references/PROFILE-ROOT.md +1 -2
  318. package/skills/hexasync-templates/references/PROFILE-ROOT.minimal-worker-facing-profile.md +2 -2
  319. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-references.md +10 -10
  320. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connectors.md +1 -1
  321. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.dependencies.md +1 -1
  322. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +14 -3
  323. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api_proxy.md +69 -0
  324. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md +76 -0
  325. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +4 -2
  326. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +7 -3
  327. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +4 -4
  328. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +1 -1
  329. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.legacy-roots--do-not-author.md +1 -1
  330. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.metricgroups.md +1 -1
  331. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objectassociations.md +1 -1
  332. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objects.md +1 -1
  333. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pullers.md +1 -1
  334. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pushers.md +1 -1
  335. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.reports.md +1 -1
  336. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.startuptasks.md +1 -1
  337. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.tables.md +1 -1
  338. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.transformations.md +1 -1
  339. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.validations.md +1 -1
  340. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.webhooks.md +1 -1
  341. package/skills/hexasync-templates/references/PROFILE-ROOT.recommendation-selection.md +1 -1
  342. package/skills/hexasync-templates/references/PROFILE-ROOT.reference-composition-across-run-and-render-scope.md +1 -1
  343. package/skills/hexasync-templates/references/PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md +1 -1
  344. package/skills/hexasync-templates/references/PROFILE-ROOT.related.md +1 -1
  345. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  346. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
  347. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  348. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
  349. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
  350. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +6 -4
  351. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
  352. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  353. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
  354. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  355. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.return.md +2 -2
  356. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  357. package/skills/hexasync-transformations/SKILL.md +9 -16
  358. package/skills/hexasync-transformations/references/INDEX.md +2 -2
  359. package/skills/hexasync-transformations/references/INSTALL.md +5 -48
  360. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +1 -1
  361. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
  362. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.related.md +6 -6
  363. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
  364. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
  365. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
  366. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
  367. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
  368. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
  369. package/skills/hexasync-validations/SKILL.md +9 -16
  370. package/skills/hexasync-validations/references/INDEX.md +1 -1
  371. package/skills/hexasync-validations/references/INSTALL.md +5 -48
  372. package/skills/hexasync-validations/references/steps.CHECK_FORMAT.md +6 -6
  373. package/skills/hexasync-validations/references/validations.VALIDATIONS.fields.md +1 -1
  374. package/skills/hexasync-validations/references/validations.VALIDATIONS.how-validations-behave.md +2 -2
  375. package/skills/hexasync-validations/references/validations.VALIDATIONS.md +1 -1
  376. package/skills/hexasync-validations/references/validations.VALIDATIONS.not-the-query-dsl.md +1 -1
  377. package/skills/hexasync-webhooks/SKILL.md +12 -19
  378. package/skills/hexasync-webhooks/references/INDEX.md +2 -2
  379. package/skills/hexasync-webhooks/references/INSTALL.md +5 -48
  380. package/skills/hexasync-webhooks/references/steps.FORWARD.md +7 -7
  381. package/skills/hexasync-webhooks/references/steps.WEBHOOK_FORWARD.md +10 -10
  382. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.best-practices.md +2 -2
  383. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.gateway-mcp-webhook-workflow.md +1 -1
  384. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.md +2 -2
  385. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-finalsteps.md +1 -1
  386. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-pullsteps.md +6 -6
  387. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.related.md +6 -6
  388. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.autoenqueue.md +2 -2
  389. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.dataparser.md +3 -3
  390. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.options.md +1 -1
  391. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.pullsteps.md +1 -1
  392. package/.cursor-plugin/mcp.json +0 -12
  393. package/.mcp.json +0 -11
  394. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
  395. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
  396. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
  397. package/skills/hexasync-templates/references/PROFILE-ROOT.getreadyflows-1.md +0 -33
  398. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
@@ -0,0 +1,94 @@
1
+ > Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
2
+
3
+ ## `API_PROXY`
4
+
5
+ Call a third-party system with the credential of one of this profile's connections, without the credential ever reaching the browser. The browser sends only the request shape; the gateway's connector hook (`POST /api/v3/profiles/{profileId}/connections/{connectionId}/execute/`) adds the credential and calls the provider. The profile id comes from the host, never from the step. `API_PROXY` runs only inside `getReadyFlows`; a legacy direct array (`creationSteps`, …) fails it with `MISSING_PROFILE_CONTEXT`.
6
+
7
+ **Which request step to choose**
8
+
9
+ | Step | Use it for |
10
+ | --- | --- |
11
+ | `API_PROXY` | A third-party system, signed with a connection's credential held by the gateway. |
12
+ | `API` | A HexaSync service call (cURL string). |
13
+ | `GATEWAY_API` | Legacy token-then-request pattern. It hands the token to the browser; do not choose it for new flows. |
14
+
15
+ **Metadata** is closed: only the members below. `profileId`, `baseUrl`, `connectionOptions`, `acceptHttpStatuses` and any other member are refused (the gateway answers `UNSUPPORTED_MEMBER`); there is no status allow-list because every provider status already comes back as an answer with an `outcome`. Every value may use the existing Liquid/JSONata mapping.
16
+
17
+ | Syntax | Meaning | Default and choice |
18
+ | --- | --- | --- |
19
+ | `connectionId: 55555555-…` | Which connection's credential signs the call: the GUID `connectors[].id` of this template. | Required, nonblank; no default. A literal must be a GUID (`8-4-4-4-12` hex digits, the only form the gateway route accepts) and must name a declared connector (`FFE-7`); a templated id or `**Variable**` placeholder cannot be checked before run time. |
20
+ | `url: /v1/messages` | Endpoint path relative to the connection's base URL. | Required; no default. Any `:` before the first `/`, `?` or `#` (a scheme such as `https:` or `mailto:`), a leading `//`, whitespace, control characters or a backslash is refused; a relative path such as `endpoints/x` or `/v1/a:b` is fine: the connection decides the host. |
21
+ | `method: POST` | HTTP method. | Required; `GET`, `POST`, `PUT`, `PATCH`, `DELETE`, `HEAD` or `OPTIONS`. |
22
+ | `headers: { X-Trace: "1" }` | Extra request headers; each value a string or list of strings. | Optional; none. The gateway adds the credential — never author a secret header. |
23
+ | `queries: { page: 2 }` | Query-string members. | Optional; none. |
24
+ | `body: { … }` | Request body, any JSON. | Optional; none. |
25
+ | `responseFilters: { jsonata: { message_id: { expression: data.message_id } } }` | Response filters in the exact worker API step `data.responseFilters` grammar (search the standards MCP): parser ID (`jsonata`, `jsonpath`, `xpath`, `scriban`, `scriban_xml`, `regex_replace`, `base64`, `raw_text`) → output key → `{expression, acceptedStatuses?}`, with `expression` a required string. The filtered values come back in `outputs.<KEY>.results.outputs`. | Optional; none. Either a literal object, sent unchanged to the connector hook — its expressions run in the hook, not in the browser, so they never read this workflow's `outputs` — or a whole-member mapped string such as `responseFilters: 'jsonata:: outputs.BUILD_FILTERS'` that maps to such an object from this workflow. `API_PROXY` has no `acceptHttpStatuses`, so omit `acceptedStatuses` (or use `null`/`[]`): it lists status-key strings, never numbers such as `200`, and a non-empty list matches no status and drops that output. A missing `expression`, an unknown parser ID, a non-string status or any other value is refused (`FFE-7`, gateway `INVALID_RESPONSE_FILTERS` for a non-object). |
26
+
27
+ The step itself refuses `url`, `method`, `profile`, `profileId`, `connection`, `connectionId`, `header`, `headers`, `credential`, `credentialId` and `credentials` beside `metadata`, and `dryRun: true` (or `"true"`).
28
+
29
+ **Outputs** (`outputs.<KEY>`):
30
+
31
+ | Member | Meaning |
32
+ | --- | --- |
33
+ | `results.statusCode`, `results.headers`, `results.body` | The provider's answer. `body` is the hook's own body if it returns one; else, with `responseFilters`, the filtered values; else the provider's raw body. |
34
+ | `results.outputs` | With `responseFilters`: the filtered values the connector hook returns (for example `results.outputs.message_id`). Other members the hook returns pass through `results` as well. |
35
+ | `parseResponseResult` | How the gateway read the answer; may be `null` (for example a redirect with a raw text body). |
36
+ | `outcome` | `success`, `redirect`, `error`, `unauthorized`, `apiCallLimit` or `notFound`. A `redirect` answer may carry a raw text body. |
37
+ | `attempts` | Number of attempts the gateway made. |
38
+ | `_response.statusCode`, `_response.headers`, `_response.body` | The provider's answer, as for an `API` step. |
39
+
40
+ **What breaks**
41
+
42
+ ```mermaid
43
+ flowchart LR
44
+ S[API_PROXY] -->|any provider status: gateway 200 with outcome| N[next]
45
+ S -->|gateway 4xx with errorCode| F1[step fails with that code]
46
+ S -->|5xx IAM_UNAVAILABLE, CONNECTOR_WORKFLOW_INVALID, CREDENTIAL_UNAVAILABLE| F1
47
+ S -->|4xx without code: 408, 413, 429, route 404| F2[step fails: ACTION_OUTCOME_UNKNOWN, never resent]
48
+ S -->|other 5xx, network, timeout| F2
49
+ ```
50
+
51
+ - **Every provider HTTP status is an answer.** The gateway relays a provider 2xx, 3xx, 4xx and 5xx alike as HTTP 200 with an `outcome` (`success`, `redirect`, `error`, `unauthorized`, `apiCallLimit` or `notFound`), and the step advances to `next` **even when `outcome` is `error`** — a provider 404 or 500 does not fail the step. Classify `outcome` (and the provider body where it carries its own error flag) with an `IF` before a SUCCESS `RETURN`; a literal `next` straight into a SUCCESS `RETURN` is rejected (`FFE-13`).
52
+ - Only gateway failures fail the step, and failures never route to `next`. A gateway 4xx carrying a gateway `errorCode` (for example the member error for `acceptHttpStatuses`) is a definite failure with that code. A 5xx carrying `IAM_UNAVAILABLE`, `CONNECTOR_WORKFLOW_INVALID` or `CREDENTIAL_UNAVAILABLE` is likewise a definite failure with that code. A 4xx without a code (408, 413, 429 or a route 404), any other 5xx, a network error or a timeout ends the step with `ACTION_OUTCOME_UNKNOWN`, and an unknown outcome is never resent because the provider may already have acted. A connector hook failure after the provider answered 2xx is still an answer: the gateway returns 200 with `outcome: error`. Aborting before the request is sent cancels; after it is sent the outcome is `ACTION_OUTCOME_UNKNOWN`.
53
+
54
+ ```yaml
55
+ connectors:
56
+ - id: 55555555-5555-4555-8555-555555555555
57
+ name: Source system
58
+ connectorId: 0a0a0a0a-0a0a-4a0a-8a0a-0a0a0a0a0a0a
59
+ getReadyFlows:
60
+ - key: SEND_TEST_MESSAGE
61
+ title: Send a test message
62
+ action: { label: Send }
63
+ completionVersion: "1"
64
+ steps:
65
+ - key: SEND
66
+ type: API_PROXY
67
+ root: true
68
+ metadata:
69
+ connectionId: 55555555-5555-4555-8555-555555555555
70
+ url: /v1/messages
71
+ method: POST
72
+ headers: { X-Request-Source: readiness }
73
+ body:
74
+ text: "{{ inputs.MESSAGE }}"
75
+ next: CHECK_SENT
76
+ - key: CHECK_SENT
77
+ type: IF
78
+ metadata:
79
+ condition: '${ outputs.SEND.outcome = "success" }'
80
+ then: DONE
81
+ else: NOT_SENT
82
+ - key: DONE
83
+ type: RETURN
84
+ metadata:
85
+ status: SUCCESS
86
+ outputs:
87
+ status_code: "{{ outputs.SEND.results.statusCode }}"
88
+ - key: NOT_SENT
89
+ type: FAIL
90
+ metadata:
91
+ code: NOT_SENT
92
+ message: The system did not accept the message. Check the connection, then try again.
93
+ ```
94
+
@@ -4,13 +4,19 @@
4
4
 
5
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
6
 
7
- Only the enclosing workflow supplies output keys. Prerequisites are progress dependencies, not data injection. Dynamic API, JSONATA and LIQUID results stay unknown unless a declaration or handler contract 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.
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
8
 
9
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
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, 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. 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.
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
12
 
13
- Expression grammar is handler-specific: `JSONATA`, `SINGLE_CHOICE_FORM` and `MULTIPLE_CHOICE_FORM` use raw JSONata in `metadata.expression`; `IF` and `SWITCH` use Liquid. `RECORDS_FORM` uses `jsonata::` or Liquid in `initial`, `jsonata::` in `search.items` and Liquid in `search.request`, `search.label` and `search.fill`. Four of them are checked as current-flow expressions like any other step member, while its local `search.text` and `item` roots are not output reads; `search.items` is evaluated against the search response, so any `outputs`/`_outputs` read there is reported (FFE-10) because it names a response member, not this workflow's output. 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 raw JSONata handlers, raw bodies are emitted literally: whitespace control trims outside text, not the raw body. Comments and captured literal bodies are not emitted. Known non-emitting assignments permit token joining; dynamic emitters and control-flow boundaries remain opaque. Quoted JSONata result strings remain literal text.
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.
14
20
 
15
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.
16
22
 
@@ -24,6 +30,6 @@ Quoted/backtick path identifiers retain their complete field identity: `"outputs
24
30
 
25
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.
26
32
 
27
- Use the existing seven MCP tools. For `hexasync_explain_type`, pass `runtime: frontend` for `FrontendFlow`, `Step`, `RETURN`, `PUBLISH_EVENT`, `RECORDS_FORM`, `API`, `IF` or a metadata field (for example `RECORDS_FORM.metadata.search`). 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.
33
+ Use the existing seven MCP tools. For `hexasync_explain_type`, pass `runtime: frontend` for `FrontendFlow`, `Step`, `RETURN`, `FAIL`, `API_PROXY`, `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.
28
34
 
29
- See [root declarations](hexasync://docs/PROFILE-ROOT), [expression context](expressions.CONTEXT-AND-IO.md) 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.
35
+ See root declarations (search the standards MCP), [expression context](expressions.CONTEXT-AND-IO.md) 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 (search the standards MCP) 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
+
@@ -14,13 +14,13 @@ The examples on this page are full root declarations; each step belongs inside i
14
14
  | `msg: Check the values before continuing.` | UI message before/after the step. | Optional string; absent means no message. |
15
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
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/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. Forbidden on IF, SWITCH, JSONATA, LIQUID, WAIT and RETURN. 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. |
17
+ | `metadata: {fields: [...]}` | Handler-specific configuration using the frontend's existing recursive Liquid/JSONata mapping. | Requirement and shape depend on `type`; RETURN/FAIL/API_PROXY/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 (search the standards MCP) own processor variants. |
19
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
20
  | `repeatableDetailCount: 10` | Executing limit for repeats with the same key/resolved metadata. | Optional number; default 10. Lower for identical repeated work. |
21
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. 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. |
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
24
 
25
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
26
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Grouped readiness flows
4
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 member is required. Order controls display only; local `dependsOn` keys control prerequisites. Overrides of inherited keys update in place and do not reorder them.
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
6
 
7
7
  ```yaml
8
8
  getReadyFlows:
@@ -42,13 +42,13 @@ The complete example above supplies the context for each envelope field.
42
42
 
43
43
  | Syntax | Meaning | Default and choice |
44
44
  | --- | --- | --- |
45
- | `key: CONFIGURE` | Stable identity matching `^[A-Z][A-Z0-9_]*$`; unique within the group. | Required. Never use an `id` alias or derive identity from title/order. |
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
46
  | `title: "Configure your **app**"` | User-facing sanitized Markdown heading. | Required; no default. |
47
47
  | `description: "Review the configuration before continuing."` | Optional sanitized Markdown explanation. | Absent means no description. |
48
48
  | `action: {label: Configure, completedLabel: Configure again}` | Closed button-label object; no URL or executable action. | Required; no default. |
49
49
  | `action.label: Configure` | Plain-text label before completion. | Required; no default. |
50
50
  | `action.completedLabel: Configure again` | Plain-text label for an explicit rerun after completion. | Optional; absent uses `label`. |
51
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. | Absent means no prerequisites. Reject duplicate, missing, self and cyclic references; no cross-group links. |
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
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
54
 
@@ -2,13 +2,15 @@
2
2
 
3
3
  Frontend workflows guide a user through browser actions. They use `type`, `root` and `metadata`, not worker `displayType`, `rootStep` or `data`. Authoring support does not establish that a deployed dashboard supports these actions. Deploy compatible runtime and profile services before enabling grouped declarations.
4
4
 
5
- This page is served as 8 separate resources. Read the one you need:
5
+ This page is served as 10 separate resources. Read the one you need:
6
6
 
7
7
  - [Grouped readiness flows](frontend.FRONTEND-FLOWS.grouped-readiness-flows.md) — getReadyFlows is the registered ordered group at the profile root.
8
8
  - [Frontend Step fields](frontend.FRONTEND-FLOWS.frontend-step-fields.md) — The examples on this page are full root declarations; each step belongs inside its flow's steps array.
9
- - [RETURN](frontend.FRONTEND-FLOWS.return.md) — RETURN terminates one invocation before ordinary output postprocessing or successor advancement.
10
- - [PUBLISH_EVENT](frontend.FRONTEND-FLOWS.publish_event.md) — Frontend PUBLISH_EVENT performs one authenticated profiles-owned public event request.
11
- - [RECORDS_FORM](frontend.FRONTEND-FLOWS.records_form.md) — RECORDS_FORM lets the user add, change and remove several records in one paged table, then hands the changes to the steps after it.
9
+ - [`RETURN`](frontend.FRONTEND-FLOWS.return.md) — RETURN terminates one invocation before ordinary output postprocessing or successor advancement.
10
+ - [`FAIL`](frontend.FRONTEND-FLOWS.fail.md) — FAIL ends the run as failed, on purpose, with a code and message you write.
11
+ - [`API_PROXY`](frontend.FRONTEND-FLOWS.api_proxy.md) — Call a third-party system with the credential of one of this profile's connections, without the credential ever reaching the browser.
12
+ - [Task and reference data changes](frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md) — Save a form's row changes in one request and use the returned outcomes to tell the user what happened.
13
+ - [`RECORDS_FORM`](frontend.FRONTEND-FLOWS.records_form.md) — RECORDS_FORM lets the user add, change and remove several records in one paged table, then hands the changes to the steps after it.
12
14
  - [Rejected forms (non-copyable)](frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md) — These counterexamples are deliberately excluded from copyable example search.
13
15
  - [Preview and source navigation](frontend.FRONTEND-FLOWS.preview-and-source-navigation.md) — Grouped declarations use the existing project/external/partial composition pipeline.
14
16
  - [Expressions and tooling](frontend.FRONTEND-FLOWS.expressions-and-tooling.md) — Frontend position is frontend-step.
@@ -4,9 +4,19 @@
4
4
 
5
5
  Grouped declarations use the existing project/external/partial composition pipeline. A group may exist only in a split YAML file; preview resolves the effective project, not only the literal `main.yaml`. Keyed overrides update an inherited flow or step in place; they do not reorder it or erase untouched envelope fields. The effective owning-level array controls display order.
6
6
 
7
- Each `getReadyFlows` entry is a separate frontend graph with its authored title. Identity uses the flow key and step key, never title or array index. Equal step keys in different flows cannot form an edge or share a click target. RETURN is terminal and displays its declared SUCCESS, FAILED or CANCELLED status; an anonymous END is not a successful RETURN. Dynamic route destinations remain uncertain.
7
+ Each `getReadyFlows` entry is a separate frontend graph with its authored title. Identity uses the flow key and step key, never title or array index. Equal step keys in different flows cannot form an edge or share a click target. RETURN is terminal and displays its declared SUCCESS, FAILED or CANCELLED status; FAIL is terminal and displays as FAIL; an anonymous END is not a successful RETURN. Dynamic route destinations remain uncertain.
8
8
 
9
- Missing, null or blank successors, omitted conditional arms and omitted SWITCH defaults are `MISSING_RETURN` boundaries in grouped graphs, located at the nearest authored field. Legacy direct arrays retain their implicit END behavior. `jsonata::`, `liquid::` and `${…}` destinations remain uncertain with their dialect preserved; previews never evaluate them or invent a target.
9
+ Missing, null or blank successors, omitted conditional arms, omitted SWITCH defaults and a blank `onCancelled` are `MISSING_RETURN` boundaries in grouped graphs, located at the nearest authored field; validation rejects them on every step, reachable or not, as dashboard admission does. Legacy direct arrays retain their implicit END behavior. Only a Liquid tag (`{{ … }}`, `{% … %}`) or a `jsonata::` prefix makes a destination dynamic: it remains uncertain with its dialect preserved, and previews never evaluate it or invent a target. Any other text — including `liquid::DONE` or `${inputs.target}` — is rendered literally at runtime, so it is a literal key matched exactly and a missing one is reported (`FFE-5`).
10
+
11
+ An `API` or `GATEWAY_API` step's controlled failure, and an `API_PROXY` answer of any `outcome`, follows its plain `next`, so in a grouped flow a literal `next` straight into a SUCCESS RETURN is rejected (`FFE-13`, the same rule the dashboard applies at admission). Classify the result first with an `IF` step or a NextBranch `{if, then, else}`; a FAILED RETURN, a FAIL step, an intermediate step or a templated `next` is allowed.
12
+
13
+ Handle a failed request before reporting success. `FFE-14` (medium) warns when a grouped `API` or `GATEWAY_API` has no possible recovery route: a `failed` arm, a result read in its own `next`, or a reachable step that can read `outputs.<KEY>`. Analysis follows every route, including cancellation, IF/SWITCH arms and possible dynamic destinations; it does not prove which branch will run. A step already reported by `FFE-13` is not reported again. `API_PROXY` is not checked by `FFE-14`: its failures never route and always end the run, so there is nothing to recover — instead classify `outputs.<KEY>.outcome` (and `results.body` where the provider reports its own errors) before a SUCCESS RETURN.
14
+
15
+ A possible reader is not proof that the error was handled. The runtime keeps the failed request pending until an actual workflow expression reads that same run's result; it cannot save a successful completion while that failure remains unread. Comments, regular-expression text, quoted prose, unused functions, untaken branches and diagnostic preparation do not count as recovery. Read and classify the result where you recover, or end the run failed.
16
+
17
+ Field grammar matters: use Liquid `outputs["KEY"]` or JSONata dot/backtick paths, not JSONata's namespace predicate `outputs["KEY"]`. Raw response-only output projections and `RECORDS_FORM.search.items` read response data, not workflow results. Whole `${…}` control expressions belong only to IF conditions and SWITCH expressions; generic text stays literal.
18
+
19
+ Staged Liquid/JSONata recovery references are parsed one structural candidate at a time, without executing either language. Exact literal emission and known non-emission preserve syntax and lexical focus; opaque emitted syntax cannot certify a recovery reader, and shadowed `$$` does not identify the workflow root. This does not infer binding values or certify arbitrary generated programs. Correlated structural fragments can require exponential total work; editor and MCP validation yield between candidates and cancel superseded requests. Cancellation means validation is incomplete, never that a template is valid or has no findings.
10
20
 
11
21
  Duplicate flow keys decline every matching envelope, including malformed ones, rather than merging their nodes or choosing an occurrence. Both preview surfaces and Markdown output expose located `DUPLICATE_FRONTEND_FLOW_KEY` diagnostics. Unrelated valid scopes remain drawable.
12
22
 
@@ -0,0 +1,208 @@
1
+ > Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md) › [RECORDS_FORM](frontend.FRONTEND-FLOWS.records_form.md).
2
+
3
+ ### File-import path
4
+
5
+ The existing example below is the **file-import path**, retained for callers using the original full-row import contract. It is also the compatible path before the new worker.proxy capability is deployed. Its status mapping and read-back belong to that import contract; they are unnecessary on the changes route.
6
+
7
+ **Remove means disable, never delete.** Map `removes` to the target's disable representation in your import step:
8
+
9
+ - **TASK target** — send upserts with `__status: 1` and removes with `__status: 3` (Removed|Changed, enabling the apply pusher to re-evaluate an already-applied override) in ONE `POST /proxy/workers/api/tasks/<taskId>/data/import/data?r=false` call. Set `__status` explicitly on every row: a REFERENCE task imports a missing or blank status as Removed. Rows must be full because the import requires every table column and rejects unknown ones; with `allow.add`, declare every table column (readonly where users must not edit it), because added rows carry only declared columns. Loaded rows also carry system keys (`__id`, `__hashed_keys`, …) that the import does not accept, and the import takes its columns from the first row, so send one uniform key set: every non-`__` column, `__status`, and `__destination_id` only when every row carries it; drop the other `__` keys. The import also needs a change note (`notes`): the dashboard's own import asks for at least 32 characters and a super-admin account is refused below 256, so ask the user for a real reason rather than sending fixed text. Then read back with `__status not_hbw 6` (active rows only): every upserted identity must be present with the intended values and every removed identity absent, matched on every identity key; otherwise the outcome is unverified, never success, and is never resent automatically.
10
+ - **Never** use `r=true` (it disables every row missing from the payload), a physical delete or `…/data/statuses` (an empty item list applies to every row).
11
+ - **WORKER_SETTINGS target** — persist with the existing `PUT …/worker-settings/` call carrying `{values: {…}}`. Worker settings have no disable status, so keep `allow.remove` false unless your `PUT` step defines what removing a setting means.
12
+
13
+ **Quoting and limits.** Values the user types can contain an apostrophe, which would end a single-quoted `--data '…'` body and make the request unreadable. Render JSON inside such a body as `{{ value | json | replace: "'", "\\u0027" }}`: `json` makes a JSON value and the replace turns each apostrophe into the JSON escape `\u0027`. A search request returns at most its `limit` rows: size the initial read above the largest table you expect, because rows that are not loaded cannot be edited or removed, and adding an identity that exists beyond the limit overwrites that row. A read-back can only confirm as many rows as its `limit`, so a save touching more identities than that is unverified.
14
+
15
+ The following is a complete generic declaration: the tasks and tables the form edits and searches, then the flow.
16
+
17
+ ```yaml
18
+ objects:
19
+ - id: "**Example_Records_Task_Id**"
20
+ name: Example records
21
+ type: REFERENCE
22
+ priority: 1000
23
+ description: "!md[./tasks/example-records.md]"
24
+ valueTableName: __hsm_example_records
25
+ ignoreRemoval: true
26
+ ignoreChange: false
27
+ - id: "**Example_Catalog_Task_Id**"
28
+ name: Example catalog
29
+ type: REFERENCE
30
+ priority: 1000
31
+ description: "!md[./tasks/example-catalog.md]"
32
+ valueTableName: __hsm_example_catalog
33
+ ignoreRemoval: true
34
+ ignoreChange: false
35
+ objectAssociations:
36
+ "**Example_Records_Task_Id**":
37
+ table: { id: "**Example_Records_Table_Id**" }
38
+ "**Example_Catalog_Task_Id**":
39
+ table: { id: "**Example_Catalog_Table_Id**" }
40
+ tables:
41
+ - id: "**Example_Records_Table_Id**"
42
+ columns:
43
+ code: { name: Code }
44
+ name: { name: Name }
45
+ quantity: { name: Quantity, dataType: Numeric }
46
+ note: { name: Note }
47
+ - id: "**Example_Catalog_Table_Id**"
48
+ columns:
49
+ code: { name: Code }
50
+ name: { name: Name }
51
+ getReadyFlows:
52
+ - key: EDIT_RECORDS
53
+ title: Edit records
54
+ action: { label: Edit records }
55
+ completionVersion: "1"
56
+ steps:
57
+ - key: READ_RECORDS
58
+ type: API
59
+ root: true
60
+ name: Read the current records
61
+ metadata: |-
62
+ curl --location '/proxy/workers/api/tasks/**Example_Records_Task_Id**/data/search' --request POST \
63
+ --header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
64
+ --header 'Content-Type: application/json' \
65
+ --data '{"fields":[],"offset":0,"limit":500,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6}]}}'
66
+ next: EDIT
67
+ - key: EDIT
68
+ type: RECORDS_FORM
69
+ name: Edit records
70
+ description: Add, change or remove records. Nothing is saved until you confirm.
71
+ metadata:
72
+ target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
73
+ identity: [code]
74
+ initial: "jsonata:: outputs.READ_RECORDS.items"
75
+ columns:
76
+ - { key: code, name: Code, type: TEXT, required: true, readonly: true }
77
+ - { key: name, name: Name, type: TEXT, required: true }
78
+ - { key: quantity, name: Quantity, type: NUMBER, min: 0 }
79
+ - { key: note, name: Note, type: MULTILINE_TEXT }
80
+ allow: { add: true, edit: true, remove: true }
81
+ pageSize: 20
82
+ search:
83
+ request: |-
84
+ curl --location '/proxy/workers/api/tasks/**Example_Catalog_Task_Id**/data/search' --request POST \
85
+ --header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
86
+ --header 'Content-Type: application/json' \
87
+ --data '{"fields":[],"offset":0,"limit":20,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6},{"leftOp":"code","condition":"ct","rightOp":{{ search.text | json | replace: "'", "\\u0027" }}}]}}'
88
+ items: "jsonata:: items"
89
+ label: "{{ item.code }} — {{ item.name }}"
90
+ fill: { code: "{{ item.code }}", name: "{{ item.name }}" }
91
+ next: BUILD_IMPORT
92
+ onCancelled: CANCELLED
93
+ - key: BUILD_IMPORT
94
+ type: JSONATA
95
+ metadata:
96
+ expression: |-
97
+ (
98
+ $rows := [
99
+ outputs.EDIT.upserts.$merge([$, {"__status": 1}]),
100
+ outputs.EDIT.removes.$merge([$, {"__status": 3}])
101
+ ];
102
+ $keepDestination := $count($rows) > 0 and $count($rows[$exists(__destination_id)]) = $count($rows);
103
+ {
104
+ "hasChanges": $count($rows) > 0,
105
+ "identities": [outputs.EDIT.upserts.code, outputs.EDIT.removes.code],
106
+ "items": [$rows.$sift(function($v, $k) {
107
+ $substring($k, 0, 2) != "__" or $k = "__status" or ($keepDestination and $k = "__destination_id")
108
+ })]
109
+ }
110
+ )
111
+ next: HAS_CHANGES
112
+ - key: HAS_CHANGES
113
+ type: IF
114
+ metadata:
115
+ condition: "{{ outputs.BUILD_IMPORT.hasChanges }}"
116
+ then: CHANGE_NOTE
117
+ else: NO_CHANGES
118
+ - key: CHANGE_NOTE
119
+ type: FORM
120
+ name: Why are you changing these records?
121
+ metadata:
122
+ fields:
123
+ - key: REASON
124
+ type: MULTILINE_TEXT
125
+ name: Reason for this change (kept in the import history)
126
+ required: true
127
+ next: SAVE
128
+ onCancelled: CANCELLED
129
+ - key: SAVE
130
+ type: API
131
+ name: Save the changes
132
+ metadata: |-
133
+ curl --location '/proxy/workers/api/tasks/**Example_Records_Task_Id**/data/import/data?r=false' --request POST \
134
+ --header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
135
+ --header 'Content-Type: application/json' \
136
+ --data '{"notes":{{ outputs.CHANGE_NOTE.REASON | json | replace: "'", "\\u0027" }},"items":{{ outputs.BUILD_IMPORT.items | json | replace: "'", "\\u0027" }}}'
137
+ next: READ_BACK
138
+ - key: READ_BACK
139
+ type: API
140
+ name: Confirm what was saved
141
+ metadata: |-
142
+ curl --location '/proxy/workers/api/tasks/**Example_Records_Task_Id**/data/search' --request POST \
143
+ --header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
144
+ --header 'Content-Type: application/json' \
145
+ --data '{"fields":[],"offset":0,"limit":500,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6},{"leftOp":"code","condition":"in","rightOp":{{ outputs.BUILD_IMPORT.identities | json | replace: "'", "\\u0027" }}}]}}'
146
+ next: VERIFY
147
+ - key: VERIFY
148
+ type: JSONATA
149
+ metadata:
150
+ expression: |-
151
+ (
152
+ $saved := [outputs.READ_BACK.items];
153
+ $removed := [outputs.EDIT.removes.code];
154
+ $columns := ["code", "name", "quantity", "note"];
155
+ $text := function($v) { $exists($v) and $v != null ? $string($v) : "" };
156
+ $isSaved := function($row) { (
157
+ $found := $saved[code = $row.code][0];
158
+ $exists($found) and $count($columns[$text($lookup($found, $)) != $text($lookup($row, $))]) = 0
159
+ ) };
160
+ {
161
+ "verified": outputs.SAVE._response.statusCode >= 200 and outputs.SAVE._response.statusCode < 300
162
+ and outputs.READ_BACK._response.statusCode = 200
163
+ and $count([outputs.BUILD_IMPORT.identities]) <= 500
164
+ and $count([outputs.EDIT.upserts][$not($isSaved($))]) = 0
165
+ and $count($saved[code in $removed]) = 0
166
+ }
167
+ )
168
+ next: CHECK_SAVED
169
+ - key: CHECK_SAVED
170
+ type: IF
171
+ metadata:
172
+ condition: "{{ outputs.VERIFY.verified }}"
173
+ then: SHOW_SAVED
174
+ else: SHOW_UNVERIFIED
175
+ - key: SHOW_SAVED
176
+ type: SHOW_INFO
177
+ msg: Your changes are saved.
178
+ metadata: { type: SUCCESS, button_title: Finish }
179
+ next: DONE
180
+ - key: SHOW_UNVERIFIED
181
+ type: SHOW_INFO
182
+ msg: The save could not be confirmed. Reopen the records and check them before trying again.
183
+ metadata: { type: WARNING, button_title: Close }
184
+ next: UNVERIFIED
185
+ - key: DONE
186
+ type: RETURN
187
+ metadata:
188
+ status: SUCCESS
189
+ outputs:
190
+ upserted: "jsonata:: $count(outputs.EDIT.upserts)"
191
+ removed: "jsonata:: $count(outputs.EDIT.removes)"
192
+ - key: NO_CHANGES
193
+ type: RETURN
194
+ metadata:
195
+ status: SUCCESS
196
+ outputs: { upserted: 0, removed: 0 }
197
+ - key: UNVERIFIED
198
+ type: RETURN
199
+ metadata:
200
+ status: FAILED
201
+ error: { code: SAVE_UNVERIFIED, message: The saved records could not be confirmed }
202
+ - key: CANCELLED
203
+ type: RETURN
204
+ metadata: { status: CANCELLED }
205
+ ```
206
+
207
+ The JSONATA step after the form is where removes become disables: it is the only place `__status` is set, other system keys are dropped, and the single import carries both lists. A failed import or read-back is an `API` controlled failure: it follows the plain `next` like a success, so the read-back still runs and `VERIFY` classifies the outcome — success needs a 2xx import, a 200 read-back and every intended row confirmed. Anything else ends in the FAILED RETURN; nothing is resent automatically, because a lost response does not prove the rows were not saved.
208
+