@beehexa/hexasync-ai-toolkit 0.0.0-stage → 2610.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +31 -0
- package/.claude-plugin/plugin.json +19 -0
- package/.codex-plugin/plugin.json +37 -0
- package/.cursor-plugin/mcp.json +12 -0
- package/.cursor-plugin/plugin.json +20 -0
- package/.mcp.json +11 -0
- package/README.md +62 -2
- package/dist/cli.js +2935 -0
- package/gemini-extension.json +14 -0
- package/openclaw.extension.mjs +9 -0
- package/openclaw.plugin.json +14 -0
- package/package.json +69 -3
- package/plugin.json +21 -0
- package/skills/hexasync-connections/SKILL.md +36 -0
- package/skills/hexasync-connections/references/INDEX.md +33 -0
- package/skills/hexasync-connections/references/INSTALL.md +35 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.api-recovery.md +17 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.authentication-and-setup-steps.md +64 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.captured-call-and-authenticated-composition.md +96 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.compiled-connector-hooks.md +23 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.connection-authentication.md +36 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.connection-rate-limiting.md +17 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.fields.md +225 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.framework-understood-connection-option-catalogue.md +225 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.how-a-step-finds-its-connection.md +54 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.md +84 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.never-invent-a-systemcode.md +6 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.one-connection-one-credential-scope.md +16 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.related.md +9 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.resolution-and-transport-scope.md +8 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.the-self-connector.md +22 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.two-spellings-of-the-collection-both-accepted.md +6 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.two-spellings-of-the-provider-with-defined-precedence.md +6 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.unsupported-authentication.md +26 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.untyped-options-generic-validity-is-not-provider-completeness.md +192 -0
- package/skills/hexasync-error-handling/SKILL.md +47 -0
- package/skills/hexasync-error-handling/references/INDEX.md +22 -0
- package/skills/hexasync-error-handling/references/INSTALL.md +35 -0
- package/skills/hexasync-error-handling/references/routing.NEXT.md +246 -0
- package/skills/hexasync-error-handling/references/steps.EXCEPTION.md +139 -0
- package/skills/hexasync-error-handling/references/steps.Error.md +296 -0
- package/skills/hexasync-expressions/SKILL.md +53 -0
- package/skills/hexasync-expressions/references/INDEX.md +45 -0
- package/skills/hexasync-expressions/references/INSTALL.md +35 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.arguments--computed-before-the-step-runs.md +6 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.dialect-classification-and-silent-scriban-fallback.md +32 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.exact-mutation-timeline.md +41 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.executor-results-are-not-downstream-values.md +10 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.graceful-failures-and-run-errors.md +6 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-call-site-scope-and-bindings.md +89 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-engine-pinned-version-and-restrictions.md +28 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonpath-expressions.md +47 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.md +21 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.quick-reference-the-three-expression-dialects.md +44 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.related.md +5 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +110 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-array-enum-item-and-numeric-functions.md +17 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-date-functions.md +19 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-object-functions.md +13 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-string-functions.md +45 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.host-qualified-authoring-examples.md +27 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.md +15 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.standard-engine-versus-host-custom-functions.md +32 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.visibility-and-call-site-constraints.md +8 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.shared-stepiterator-roots.md +23 -0
- package/skills/hexasync-expressions/references/steps.JSONata.md +200 -0
- package/skills/hexasync-expressions/references/steps.Liquid.md +95 -0
- package/skills/hexasync-expressions/references/steps.Scriban.md +156 -0
- package/skills/hexasync-field-mapping/SKILL.md +60 -0
- package/skills/hexasync-field-mapping/references/INDEX.md +54 -0
- package/skills/hexasync-field-mapping/references/INSTALL.md +35 -0
- package/skills/hexasync-field-mapping/references/steps.SAVE_TASK_DATA.md +318 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.best-practices.md +11 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.fields.md +518 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.md +62 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.minimal-declaration-and-composed-usage.md +49 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.related.md +10 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.the-system-columns-are-not-declared-here.md +6 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.best-practices.md +21 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.contract.md +12 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.envelope-fields.md +115 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.example-enrich-an-item-with-a-structured-lookup.md +36 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +37 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.md +20 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.none--disabled-versus-absent-discriminator.md +17 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +37 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.related.md +10 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +18 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.sensible-configuration.md +23 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.syntax.md +30 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-chain-contract.md +43 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.bulkclone--clone-many.md +24 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.bulkrename--rename-many.md +27 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.clone--copy-one-field-to-several-names.md +47 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +120 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.md +18 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.nested_sql--legacy-raw-sql-producing-a-nested-list.md +64 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +88 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_many--the-dsl-replacement-for-nested_sql.md +172 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +220 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.rename--rename-one-field.md +45 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.resolve_raw_data--lift-a-value-out-of-the-raw-payload.md +86 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +49 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.sql--legacy-raw-sql.md +73 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.when-to-use.md +9 -0
- package/skills/hexasync-metrics-reports/SKILL.md +55 -0
- package/skills/hexasync-metrics-reports/references/INDEX.md +41 -0
- package/skills/hexasync-metrics-reports/references/INSTALL.md +35 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.best-practices.md +13 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.choosing-a-scoremode.md +44 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.common-metadata-properties.md +35 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.contract.md +6 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.digest-message-templates.md +31 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.facet-properties.md +6 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.fields.md +551 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.health-scores.md +69 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.md +20 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-configuration.md +57 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-kinds-reference.md +574 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.related.md +9 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.sensible-configuration.md +30 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.severity-scoring.md +89 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.syntax.md +18 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.when-to-use.md +6 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.worked-example-from-rows-to-health-score.md +108 -0
- package/skills/hexasync-metrics-reports/references/reports.REPORTS.md +460 -0
- package/skills/hexasync-metrics-reports/references/steps.METRIC_QUERY.md +171 -0
- package/skills/hexasync-metrics-reports/references/steps.QUERY_METRICS.md +400 -0
- package/skills/hexasync-pullers/SKILL.md +44 -0
- package/skills/hexasync-pullers/references/INDEX.md +50 -0
- package/skills/hexasync-pullers/references/INSTALL.md +35 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.api-error-classification.md +26 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.entity-classification.md +52 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.entry-context-and-transitions.md +12 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.error-and-final-handling.md +10 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.generalisation.md +17 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.md +36 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.overview.md +77 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.page-termination-and-the-four-platform-guards.md +49 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.paging-is-the-authors-job.md +8 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.persistence-and-safe-full-pull-removal.md +23 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-afterpullsteps.md +56 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-beforepullsteps.md +43 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-contracts.md +6 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-finalsteps.md +48 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-onerrorsteps.md +38 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-pullsteps.md +66 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-steps.md +46 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.probe-discipline.md +13 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.property-reference.md +561 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.puller-completeness-contract.md +88 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.related.md +11 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.stamp--sweep.md +21 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.symptom--cause--rule.md +24 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-resume-computation.md +19 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-six-slot-specificity-checklist--once-per-endpoint.md +28 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-webhook-vs-puller-division.md +8 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.two-puller-host-modes-not-two-workflow-constructs.md +24 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.watermark-trustworthiness.md +15 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-legacy-paged-pull.md +38 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-new-kind-snapshot-pull.md +74 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-opaque-token-api.md +14 -0
- package/skills/hexasync-pullers/references/steps.PULLER.md +187 -0
- package/skills/hexasync-pushers/SKILL.md +60 -0
- package/skills/hexasync-pushers/references/INDEX.md +47 -0
- package/skills/hexasync-pushers/references/INSTALL.md +35 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.association-transform-routing.md +38 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.best-practices.md +38 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.expression-roots-differ-from-a-puller.md +27 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.fields.md +332 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.four-step-phases.md +17 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.indirect-pushers.md +36 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.md +85 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.minimal-configuration.md +45 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.ordinary-result-contract.md +136 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-afterpushsteps.md +34 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-beforepushsteps.md +33 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-afterpushsteps.md +8 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-beforepushsteps.md +46 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-pushsteps.md +8 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-contracts.md +10 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-finalsteps.md +99 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-pushsteps.md +50 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.related.md +10 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.resolution-ordering-locks-and-retries.md +56 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.the-two-identities-a-push-step-reads-off-the-item.md +18 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.troubleshooting.md +16 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-direct-push-with-dependency.md +66 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-indirect-push.md +35 -0
- package/skills/hexasync-pushers/references/steps.PUSHER.md +238 -0
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_STATUS.md +201 -0
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +359 -0
- package/skills/hexasync-query-dsl/SKILL.md +67 -0
- package/skills/hexasync-query-dsl/references/INDEX.md +60 -0
- package/skills/hexasync-query-dsl/references/INSTALL.md +35 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.best-practice.md +6 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md +48 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md +51 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md +51 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-quick-reference.md +67 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +123 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +61 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.md +25 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.md +61 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md +80 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md +54 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md +52 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md +60 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md +92 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.md +16 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md +44 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md +67 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.regex-predicates-complete-scalar-postgresql-patterns.md +87 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md +85 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.verbatim-scalar-comparisons.md +92 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.property-reference.md +428 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md +363 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md +104 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.sensible-configuration.md +24 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md +57 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md +102 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.join-types.md +91 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.md +10 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +95 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +39 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.when-to-use.md +9 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.where-it-is-used.md +141 -0
- package/skills/hexasync-query-dsl/references/steps.QUERY_MANY.md +510 -0
- package/skills/hexasync-query-dsl/references/steps.QUERY_SINGLE.md +491 -0
- package/skills/hexasync-query-dsl/references/steps.SQL.md +362 -0
- package/skills/hexasync-query-dsl/references/steps.SQL_PROXY.md +315 -0
- package/skills/hexasync-startup-tasks-scheduling/SKILL.md +44 -0
- package/skills/hexasync-startup-tasks-scheduling/references/INDEX.md +28 -0
- package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +35 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.contract.md +6 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.legacy-target-tasks.md +124 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.md +15 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.metric-defaults.md +73 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.related.md +9 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.scheduler-metadata.md +324 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.sensible-configuration.md +28 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.shape.md +108 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.syntax.md +33 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.when-to-use.md +10 -0
- package/skills/hexasync-startup-tasks-scheduling/references/steps.ENQUEUER.md +234 -0
- package/skills/hexasync-steps-api-http/SKILL.md +61 -0
- package/skills/hexasync-steps-api-http/references/INDEX.md +73 -0
- package/skills/hexasync-steps-api-http/references/INSTALL.md +35 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.best-practices.md +11 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.exact-authored-shape.md +37 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.execution-order-and-shared-values.md +13 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.field-contract.md +60 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.md +49 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.members-encoded-inside-yaml-expression-strings.md +18 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parsejson-boundary.md +14 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parser-examples.md +77 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parser-groups.md +203 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.related.md +5 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.same-name-different-placement-grammars.md +80 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.status-narrowing.md +29 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.the-eight-parser-ids.md +17 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.troubleshooting.md +13 -0
- package/skills/hexasync-steps-api-http/references/routing.NEXT.md +246 -0
- package/skills/hexasync-steps-api-http/references/steps.API.api-pagination.md +44 -0
- package/skills/hexasync-steps-api-http/references/steps.API.api-response-parsing-and-outputs.md +43 -0
- package/skills/hexasync-steps-api-http/references/steps.API.api-response-status.md +37 -0
- package/skills/hexasync-steps-api-http/references/steps.API.best-practices.md +14 -0
- package/skills/hexasync-steps-api-http/references/steps.API.contract.md +64 -0
- package/skills/hexasync-steps-api-http/references/steps.API.curl-request-intake.md +31 -0
- package/skills/hexasync-steps-api-http/references/steps.API.failure-handling.md +18 -0
- package/skills/hexasync-steps-api-http/references/steps.API.fields.md +457 -0
- package/skills/hexasync-steps-api-http/references/steps.API.md +21 -0
- package/skills/hexasync-steps-api-http/references/steps.API.public-webhook-binding.md +17 -0
- package/skills/hexasync-steps-api-http/references/steps.API.related.md +12 -0
- package/skills/hexasync-steps-api-http/references/steps.API.request-builders.md +206 -0
- package/skills/hexasync-steps-api-http/references/steps.API.request-pipeline-and-precedence.md +13 -0
- package/skills/hexasync-steps-api-http/references/steps.API.sensitive-headers-and-diagnostic-trail.md +25 -0
- package/skills/hexasync-steps-api-http/references/steps.INDEX.md +137 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE._history--the-per-step-occurrence-ring.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.arguments-and-routing.md +103 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.best-practices.md +11 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.connection-binding.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.cross-cutting-step-flags.md +76 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.execution-budgets.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-results-graceful-returns-and-run-error-data.md +18 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +21 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.flow-entry.md +8 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.md +22 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.one-canonical-workflow-component.md +79 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.payload-selection-and-thrown-error-routing.md +19 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.recovery-bypasses-and-connector-restart.md +11 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.related.md +5 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.shape.md +300 -0
- package/skills/hexasync-steps-control-data/SKILL.md +59 -0
- package/skills/hexasync-steps-control-data/references/INDEX.md +133 -0
- package/skills/hexasync-steps-control-data/references/INSTALL.md +35 -0
- package/skills/hexasync-steps-control-data/references/steps.BASE64_TO_MIME_TYPE.md +101 -0
- package/skills/hexasync-steps-control-data/references/steps.Begin.md +80 -0
- package/skills/hexasync-steps-control-data/references/steps.CACHE.md +221 -0
- package/skills/hexasync-steps-control-data/references/steps.Composite.md +87 -0
- package/skills/hexasync-steps-control-data/references/steps.DIRECT_INDEX.md +303 -0
- package/skills/hexasync-steps-control-data/references/steps.DOWNLOAD_CSV.md +475 -0
- package/skills/hexasync-steps-control-data/references/steps.EXCEL_READER.md +323 -0
- package/skills/hexasync-steps-control-data/references/steps.End.md +100 -0
- package/skills/hexasync-steps-control-data/references/steps.GET_KEY_VALUE.md +167 -0
- package/skills/hexasync-steps-control-data/references/steps.GraphQL.md +88 -0
- package/skills/hexasync-steps-control-data/references/steps.IF.md +284 -0
- package/skills/hexasync-steps-control-data/references/steps.IGNORE_ITEM.md +170 -0
- package/skills/hexasync-steps-control-data/references/steps.INDEX.md +137 -0
- package/skills/hexasync-steps-control-data/references/steps.INVALIDATE_CACHE.md +175 -0
- package/skills/hexasync-steps-control-data/references/steps.LOOKUP_STEP.md +146 -0
- package/skills/hexasync-steps-control-data/references/steps.OData.md +133 -0
- package/skills/hexasync-steps-control-data/references/steps.PUBLISH_EVENT.md +274 -0
- package/skills/hexasync-steps-control-data/references/steps.QueryDSL.md +126 -0
- package/skills/hexasync-steps-control-data/references/steps.REMOVE_DATA.md +264 -0
- package/skills/hexasync-steps-control-data/references/steps.RESET_ITEM.md +164 -0
- package/skills/hexasync-steps-control-data/references/steps.RESOLVE_RAW_DATA.md +180 -0
- package/skills/hexasync-steps-control-data/references/steps.Restful.md +124 -0
- package/skills/hexasync-steps-control-data/references/steps.SEED_DATA.md +255 -0
- package/skills/hexasync-steps-control-data/references/steps.SET_KEY_VALUE.md +168 -0
- package/skills/hexasync-steps-control-data/references/steps.SLEEP.md +207 -0
- package/skills/hexasync-steps-control-data/references/steps.SWITCH.md +194 -0
- package/skills/hexasync-steps-control-data/references/steps.TRACK_FOR_REMOVAL.md +253 -0
- package/skills/hexasync-steps-control-data/references/steps.UPDATE_TASK_DATA_STATUS.md +247 -0
- package/skills/hexasync-steps-control-data/references/steps.VALUES.md +149 -0
- package/skills/hexasync-steps-control-data/references/steps.VERIFY_CACHED.md +172 -0
- package/skills/hexasync-steps-control-data/references/steps.cURL.md +78 -0
- package/skills/hexasync-tables-tasks-objects/SKILL.md +57 -0
- package/skills/hexasync-tables-tasks-objects/references/INDEX.md +78 -0
- package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +35 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.authoring-dependencies.md +80 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.best-practices-and-pitfalls.md +22 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.fields.md +430 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.md +57 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.related.md +6 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.using-resolved-prerequisite-data.md +12 -0
- package/skills/hexasync-tables-tasks-objects/references/objectAssociations.OBJECT-ASSOCIATIONS.md +340 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.best-practices-and-pitfalls.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dataprocessing.md +88 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dependencies.md +27 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.description.md +37 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.enqueue.md +179 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.fromconnectionid.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.id.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignorechange.md +31 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignoreremoval.md +25 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.integrationtype.md +26 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.isdirtyremovable.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.md +52 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metricgroups.md +28 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metrics.md +25 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.name.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.newtablename.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.oldtablename.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.priority.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.puller.md +55 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.pusher.md +24 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.queuer.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.toconnectionid.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.type.md +35 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.valuetablename.md +25 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.viewname.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.visible.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.md +64 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.minimal-declaration.md +32 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.related.md +8 -0
- package/skills/hexasync-tables-tasks-objects/references/steps.SAVE_TASK_DATA.md +318 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.best-practices.md +11 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.fields.md +518 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.md +62 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.minimal-declaration-and-composed-usage.md +49 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.related.md +10 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.the-system-columns-are-not-declared-here.md +6 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.best-practices.md +11 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.fields.md +357 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.md +14 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.related.md +12 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.status-and-row-clocks.md +28 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.system-column-contract.md +44 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.systemcolumns-presentation.md +99 -0
- package/skills/hexasync-templates/SKILL.md +67 -0
- package/skills/hexasync-templates/references/AI-INDEX.md +125 -0
- package/skills/hexasync-templates/references/INDEX.md +73 -0
- package/skills/hexasync-templates/references/INSTALL.md +35 -0
- package/skills/hexasync-templates/references/KB-INDEX.md +128 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.composed-and-render-only-metadata.md +30 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.composition-fields.md +44 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.deployment-descriptor-retirement-and-current-composition.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.md +32 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.minimal-worker-facing-profile.md +34 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-references.md +54 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.author.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connector-definition-document.md +356 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connectors.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.contributors.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.creationsteps.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.databasename.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.dependencies.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.description.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.externals.md +14 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +33 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.browser.md +101 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form-field-fields.md +238 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form.md +65 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.get_local_storage--set_local_storage.md +114 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.health_check_worker.md +33 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.if--switch.md +148 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.integration_app_management.md +115 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.jsonata--liquid.md +47 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +109 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.nextbranch-fields.md +93 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.output-fields.md +82 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.read_queries.md +30 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.redirect.md +80 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.select_google_drive.md +47 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.show_info.md +65 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.single_choice_form--multiple_choice_form.md +47 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +233 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.wait.md +79 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.id.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.legacy-roots--do-not-author.md +30 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.md +36 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.metricgroups.md +14 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.name.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.noschedules.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objectassociations.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objects.md +23 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pullers.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pushers.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.recommendations.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.reports.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.startuptasks.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.tables.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.thumbnail.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.transformations.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.validations.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.variables.md +16 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.webhooks.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.recommendation-selection.md +36 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.reference-composition-across-run-and-render-scope.md +29 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md +21 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.related.md +5 -0
- package/skills/hexasync-transformations/SKILL.md +51 -0
- package/skills/hexasync-transformations/references/INDEX.md +40 -0
- package/skills/hexasync-transformations/references/INSTALL.md +35 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.best-practices.md +21 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.contract.md +12 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.envelope-fields.md +115 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.example-enrich-an-item-with-a-structured-lookup.md +36 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +37 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.md +20 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.none--disabled-versus-absent-discriminator.md +17 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +37 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.related.md +10 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +18 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.sensible-configuration.md +23 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.syntax.md +30 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-chain-contract.md +43 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.bulkclone--clone-many.md +24 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.bulkrename--rename-many.md +27 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.clone--copy-one-field-to-several-names.md +47 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +120 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.md +18 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.nested_sql--legacy-raw-sql-producing-a-nested-list.md +64 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +88 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_many--the-dsl-replacement-for-nested_sql.md +172 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +220 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.rename--rename-one-field.md +45 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.resolve_raw_data--lift-a-value-out-of-the-raw-payload.md +86 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +49 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.sql--legacy-raw-sql.md +73 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.when-to-use.md +9 -0
- package/skills/hexasync-validations/SKILL.md +52 -0
- package/skills/hexasync-validations/references/INDEX.md +27 -0
- package/skills/hexasync-validations/references/INSTALL.md +35 -0
- package/skills/hexasync-validations/references/steps.CHECK_FORMAT.md +196 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.authoring-validations.md +5 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.best-practices.md +15 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.composing-rules.md +37 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.example-required-text-plus-a-numeric-range.md +33 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.fields.md +118 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.how-validations-behave.md +27 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.md +57 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.metadata-members.md +134 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.not-the-query-dsl.md +15 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.operators.md +406 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.troubleshooting.md +13 -0
- package/skills/hexasync-webhooks/SKILL.md +62 -0
- package/skills/hexasync-webhooks/references/INDEX.md +46 -0
- package/skills/hexasync-webhooks/references/INSTALL.md +35 -0
- package/skills/hexasync-webhooks/references/steps.FORWARD.md +130 -0
- package/skills/hexasync-webhooks/references/steps.WEBHOOK_FORWARD.md +259 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.best-practices.md +31 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.gateway-mcp-webhook-workflow.md +206 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.md +62 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.message-shape.md +29 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-finalsteps.md +59 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-pullsteps.md +72 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.related.md +10 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.routing-and-boundary-ownership.md +30 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.shape.md +37 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.autoenqueue.md +66 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.datafilter.md +68 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.dataparser.md +268 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.id-target.md +21 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.matchfilter-and-matchpattern.md +77 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.matchremovefilter-and-matchremovepattern.md +41 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.md +20 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.objectid-deprecated.md +25 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.objectids.md +66 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.options.md +67 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.pullsteps.md +31 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.rejected-target-fields-finalsteps-and-responsefilters.md +8 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.troubleshooting.md +17 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.webhook-properties.md +117 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.worked-example-webhook-direct-index-plus-steps.md +71 -0
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# `SQL` — SQL
|
|
2
|
+
|
|
3
|
+
> Addressable through MCP as **`hexasync://docs/steps/SQL`**.
|
|
4
|
+
|
|
5
|
+
## Contract
|
|
6
|
+
|
|
7
|
+
`SQL` runs a connector-defined SQL statement (or stored procedure) through the step's connection and publishes the connector's result dictionary unchanged as `_outputs.<key>`. The step itself does not parse or validate SQL: the connection's connector does. The fields on this page describe the relational-database (RDBMS) connector, which renders `data.sql` with Scriban, binds step arguments as SQL parameters, runs the statement, and maps the returned result sets to named outputs.
|
|
8
|
+
|
|
9
|
+
Output shape with the RDBMS connector: one key per selected result (`responseFilters[].key`, or legacy `resultSets` keys), plus `hasNextPage` (boolean), plus `__firstKeys`/`__lastKeys` (first/last row) when a list is selected. Example: `{items: [{id: 1}], __firstKeys: {id: 1}, __lastKeys: {id: 1}, hasNextPage: false}`.
|
|
10
|
+
|
|
11
|
+
The RDBMS connector rejects, before executing, any statement containing the exact uppercase text `DROP DATABASE`, `DROP TABLE`, `ALTER TABLE` or `DROP INDEX`. This is a plain text match, not a parser or a security boundary (other casing is not caught). Real protection comes from the database account's permissions.
|
|
12
|
+
|
|
13
|
+
The connection is bound through the shared envelope: the step-level `connectorId` (a profile connection UUID) wins; otherwise `data.connectionId` is read. A value that is not a valid UUID does not fall back to a lookup by name; the connection does not resolve and the step fails. See [how a step finds its connection](hexasync://docs/connections/CONNECTIONS/how-a-step-finds-its-connection).
|
|
14
|
+
|
|
15
|
+
## When to use
|
|
16
|
+
|
|
17
|
+
- Use `SQL` when you need a statement the typed query steps cannot express (dialect-specific SQL, a stored procedure, several result sets in one round trip) against a database connection.
|
|
18
|
+
- To read profile task rows, prefer [QUERY_SINGLE](steps.QUERY_SINGLE.md) (one row) or [QUERY_MANY](steps.QUERY_MANY.md) (many rows). They compile the [Query DSL](query-dsl.QUERY-DSL.md), bind values safely and keep templates portable.
|
|
19
|
+
- For an HTTP endpoint use [API](hexasync://docs/steps/API). A SQL statement routed through a proxy-service connection is documented under [SQL_PROXY](steps.SQL_PROXY.md).
|
|
20
|
+
- `SQL` only reads and returns results. It does not save rows. Persist them with an explicit step such as [SAVE_TASK_DATA](hexasync://docs/steps/SAVE_TASK_DATA).
|
|
21
|
+
|
|
22
|
+
## Syntax
|
|
23
|
+
|
|
24
|
+
```yaml
|
|
25
|
+
- key: READ_ROWS
|
|
26
|
+
displayType: SQL
|
|
27
|
+
connectorId: 11111111-1111-4111-8111-111111111111 # profile connection UUID
|
|
28
|
+
arguments: # each entry becomes SQL parameter @<name> (string value)
|
|
29
|
+
since: '2024-01-01'
|
|
30
|
+
data:
|
|
31
|
+
sql: select id, name from items where updated_at >= @since # required; Scriban-rendered
|
|
32
|
+
timeout: 60 # seconds; defaults to 60
|
|
33
|
+
commandType: text # exact `sp` = stored procedure; anything else/omitted = text
|
|
34
|
+
responseFilters: # ordered selectors, one per result set; defaults to []
|
|
35
|
+
- key: items
|
|
36
|
+
type: List # List | Row | Field (or 0 | 1 | 2); defaults to List
|
|
37
|
+
hasNextPage: items # name of a selected list result; omitted = false
|
|
38
|
+
hasError: 'false' # Scriban string; rendered "true" fails the step after the query
|
|
39
|
+
logOutput: false # defaults to false
|
|
40
|
+
resultSets: {} # legacy, used only when responseFilters is empty
|
|
41
|
+
keySets: {} # legacy, resultSets only
|
|
42
|
+
next: null
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Sensible configuration
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
- key: READ_ITEM
|
|
49
|
+
displayType: SQL
|
|
50
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
51
|
+
arguments:
|
|
52
|
+
wanted: '{{ _outputs.INPUT.items[0].id }}'
|
|
53
|
+
data:
|
|
54
|
+
sql: select id, name from items where id = @wanted
|
|
55
|
+
timeout: 30
|
|
56
|
+
responseFilters:
|
|
57
|
+
- key: item
|
|
58
|
+
type: Row
|
|
59
|
+
next: CHECK_ITEM
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Why: the value travels as a bound parameter instead of being pasted into the SQL text; `timeout` is set on purpose for the expected workload; one ordered `responseFilters` entry names the single result set, so `_outputs.READ_ITEM.item` is the row or `null`. Leave the legacy `resultSets`/`keySets` out of new work.
|
|
63
|
+
|
|
64
|
+
## RDBMS fields and results
|
|
65
|
+
|
|
66
|
+
Applies to the RDBMS connector. Another connector selected by the connection may read a different payload, so confirm its contract before reusing these fields.
|
|
67
|
+
|
|
68
|
+
### `arguments.<name>`
|
|
69
|
+
|
|
70
|
+
Syntax: `arguments: { <name>: <string or expression> }` (map form of the shared [arguments](hexasync://docs/steps/STEP-ENVELOPE/arguments-and-routing)).
|
|
71
|
+
|
|
72
|
+
Meaning: each resolved argument is passed to the database as a SQL parameter named `<name>`, with a **string** value. Write it in the statement using the connection's placeholder syntax (for example `@name`). The same values are also available as Scriban variables while `data.sql` renders. The connector also adds a `profile_id` parameter automatically. There is no `data.parameters` map.
|
|
73
|
+
|
|
74
|
+
Variants: a literal value (`'42'`) or an expression evaluated before the step runs (`'{{ _outputs.SEED.id }}'`). Prefer a parameter to Scriban interpolation for any value, because a bound parameter cannot change the statement's structure.
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
- key: READ_ITEM
|
|
78
|
+
displayType: SQL
|
|
79
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
80
|
+
arguments: # optional; no default arguments besides profile_id
|
|
81
|
+
wanted: '42' # literal
|
|
82
|
+
since: '{{ _outputs.SEED.since }}' # expression, resolved before the query
|
|
83
|
+
data:
|
|
84
|
+
sql: select id from items where id = @wanted and updated_at >= @since
|
|
85
|
+
responseFilters:
|
|
86
|
+
- key: item
|
|
87
|
+
type: Row
|
|
88
|
+
next: null
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The values arrive as strings. Cast them in SQL when the column type requires it (for example `cast(@wanted as int)`).
|
|
92
|
+
|
|
93
|
+
### `data.sql`
|
|
94
|
+
|
|
95
|
+
Syntax: `sql: <string>`. Required; no default.
|
|
96
|
+
|
|
97
|
+
Meaning: the statement text, or the stored-procedure name when `commandType: sp`. It is rendered with [Scriban](hexasync://docs/expressions/CONTEXT-AND-IO/scriban-default-and-host-custom-builtins) against the step's parameters before execution. A missing `sql` fails the step. Statements containing the restricted uppercase DDL phrases (see [Contract](#contract)) are rejected before execution.
|
|
98
|
+
|
|
99
|
+
Variants:
|
|
100
|
+
|
|
101
|
+
- **Plain statement with parameters** (preferred): values are bound, the text is static.
|
|
102
|
+
- **Scriban-rendered text**: use it only for trusted structural parts that parameters cannot express, such as a sort column picked from a fixed set. Never use it for data values.
|
|
103
|
+
- **Procedure name**: together with `commandType: sp`.
|
|
104
|
+
|
|
105
|
+
```yaml
|
|
106
|
+
- key: READ_ITEMS
|
|
107
|
+
displayType: SQL
|
|
108
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
109
|
+
arguments:
|
|
110
|
+
since: '2024-01-01'
|
|
111
|
+
data:
|
|
112
|
+
sql: select id, name from items where updated_at >= @since order by id # required; no default
|
|
113
|
+
responseFilters:
|
|
114
|
+
- key: items
|
|
115
|
+
next: null
|
|
116
|
+
---
|
|
117
|
+
- key: READ_SORTED
|
|
118
|
+
displayType: SQL
|
|
119
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
120
|
+
arguments:
|
|
121
|
+
sort: name
|
|
122
|
+
data:
|
|
123
|
+
# Scriban picks a trusted column from a fixed set; values still go through parameters
|
|
124
|
+
sql: select id, name from items order by {{ if sort == "name" }}name{{ else }}id{{ end }}
|
|
125
|
+
responseFilters:
|
|
126
|
+
- key: items
|
|
127
|
+
next: null
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### `data.timeout`
|
|
131
|
+
|
|
132
|
+
Syntax: `timeout: <integer seconds | numeric string>`. Defaults to `60`.
|
|
133
|
+
|
|
134
|
+
Meaning: the database command timeout in seconds. A statement that runs longer is cancelled and the step fails. A numeric string such as `'120'` is accepted. Non-numeric text fails the step. No minimum, maximum or automatic retry applies.
|
|
135
|
+
|
|
136
|
+
```yaml
|
|
137
|
+
- key: HEAVY_REPORT
|
|
138
|
+
displayType: SQL
|
|
139
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
140
|
+
data:
|
|
141
|
+
sql: select region, count(*) as total from items group by region
|
|
142
|
+
timeout: 180 # defaults to 60
|
|
143
|
+
responseFilters:
|
|
144
|
+
- key: totals
|
|
145
|
+
next: null
|
|
146
|
+
---
|
|
147
|
+
- key: HEAVY_REPORT_TEXT
|
|
148
|
+
displayType: SQL
|
|
149
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
150
|
+
data:
|
|
151
|
+
sql: select region, count(*) as total from items group by region
|
|
152
|
+
timeout: '180' # numeric string form; same effect
|
|
153
|
+
responseFilters:
|
|
154
|
+
- key: totals
|
|
155
|
+
next: null
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Choose the value from the statement's expected worst case plus a margin. Too low cuts off a statement that would have succeeded. Too high lets a runaway query hold a worker.
|
|
159
|
+
|
|
160
|
+
### `data.commandType`
|
|
161
|
+
|
|
162
|
+
Syntax: `commandType: sp | <anything else>`. Defaults to text.
|
|
163
|
+
|
|
164
|
+
Meaning: exactly `sp` (lowercase) runs `data.sql` as a stored-procedure name. Any other value, or omitting the field, runs it as SQL text. `SP` and `storedProcedure` therefore run as text. In stored-procedure mode every parameter is passed, including the automatic `profile_id`, so the procedure must accept all of them, and it must return the result sets your selectors expect.
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
- key: RUN_PROC
|
|
168
|
+
displayType: SQL
|
|
169
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
170
|
+
arguments:
|
|
171
|
+
since: '2024-01-01'
|
|
172
|
+
data:
|
|
173
|
+
sql: get_changed_items # procedure name
|
|
174
|
+
commandType: sp # defaults to text (any value other than sp)
|
|
175
|
+
responseFilters:
|
|
176
|
+
- key: items
|
|
177
|
+
next: null
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### `data.responseFilters`
|
|
181
|
+
|
|
182
|
+
Syntax: `responseFilters: [ { key: <string>, type: List | Row | Field | 0 | 1 | 2 } ]`. Defaults to `[]`. `key` is required. `type` defaults to `List`.
|
|
183
|
+
|
|
184
|
+
Meaning: an **ordered** list of selectors. Entry *n* consumes result set *n* and publishes it under `key`:
|
|
185
|
+
|
|
186
|
+
| `type` | Publishes | Zero rows |
|
|
187
|
+
| --- | --- | --- |
|
|
188
|
+
| `List` / `0` (default) | array of row objects, plus `__firstKeys`/`__lastKeys` (first/last row) | `[]`, with `__firstKeys`/`__lastKeys` null |
|
|
189
|
+
| `Row` / `1` | first row object | `null` |
|
|
190
|
+
| `Field` / `2` | first column of the first row (so column order matters) | `null` |
|
|
191
|
+
|
|
192
|
+
Text and numeric forms are equivalent. Prefer the text names because they are readable. An unknown number consumes its result set but publishes nothing. Selectors are matched by position, not by name. Having more selectors than result sets, or duplicate keys, fails the step. This array is not the HTTP parser map of [response filters](hexasync://docs/responseFilters/RESPONSE-FILTERS/exact-authored-shape).
|
|
193
|
+
|
|
194
|
+
```yaml
|
|
195
|
+
- key: READ_SUMMARY
|
|
196
|
+
displayType: SQL
|
|
197
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
198
|
+
data:
|
|
199
|
+
sql: |
|
|
200
|
+
select id, name from items order by id limit 100;
|
|
201
|
+
select count(*) as total from items;
|
|
202
|
+
responseFilters: # defaults to []
|
|
203
|
+
- key: items # result set 1
|
|
204
|
+
type: List # defaults to List
|
|
205
|
+
- key: total # result set 2
|
|
206
|
+
type: Field
|
|
207
|
+
next: null
|
|
208
|
+
---
|
|
209
|
+
- key: READ_FIRST
|
|
210
|
+
displayType: SQL
|
|
211
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
212
|
+
data:
|
|
213
|
+
sql: select id, name from items order by id limit 1
|
|
214
|
+
responseFilters:
|
|
215
|
+
- key: item
|
|
216
|
+
type: 1 # numeric form of Row
|
|
217
|
+
next: null
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Use at most one `List` selector per step: every list writes the same `__firstKeys`/`__lastKeys` names, so a second list collides and fails the step. Do not use the result names `hasNextPage`, `__firstKeys`, `__lastKeys`, `outputs`, `input`, `logOutputs`, `error` or `next`. The connector or the workflow reserves these names (a returned `next` overrides routing; see [routing](hexasync://docs/routing/NEXT#worker-contract)).
|
|
221
|
+
|
|
222
|
+
### `data.hasNextPage`
|
|
223
|
+
|
|
224
|
+
Syntax: `hasNextPage: <result key name> | null`. Omitted or blank publishes `hasNextPage: false`.
|
|
225
|
+
|
|
226
|
+
Meaning: the **name** of a selected result, not a condition or expression. The connector publishes `hasNextPage: true` when that result is a non-empty list, and `false` otherwise (empty list, row, field). An unknown name fails the step. It does not fetch another page by itself: a loop or a paging host has to act on it.
|
|
227
|
+
|
|
228
|
+
```yaml
|
|
229
|
+
- key: READ_PAGE
|
|
230
|
+
displayType: SQL
|
|
231
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
232
|
+
arguments:
|
|
233
|
+
after_id: '{{ _outputs.CURSOR.after_id }}' # cursor from an earlier step, e.g. the previous page's __lastKeys.id
|
|
234
|
+
data:
|
|
235
|
+
sql: select id, name from items where id > cast(@after_id as int) order by id limit 500
|
|
236
|
+
responseFilters:
|
|
237
|
+
- key: items
|
|
238
|
+
hasNextPage: items # optional; no default — omitted publishes false
|
|
239
|
+
next: null
|
|
240
|
+
---
|
|
241
|
+
- key: READ_ONCE
|
|
242
|
+
displayType: SQL
|
|
243
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
244
|
+
data:
|
|
245
|
+
sql: select id from items order by id limit 500
|
|
246
|
+
responseFilters:
|
|
247
|
+
- key: items
|
|
248
|
+
hasNextPage: null # same as omitting it: publishes false
|
|
249
|
+
next: null
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Because the value only means "the selected list was non-empty", a page loop stops one round after the last full page, when it gets an empty page. That is the expected cost of this detection.
|
|
253
|
+
|
|
254
|
+
### `data.hasError`
|
|
255
|
+
|
|
256
|
+
Syntax: `hasError: <Scriban string>`. No default; omitted or blank skips the check.
|
|
257
|
+
|
|
258
|
+
Meaning: rendered after the query has run. If the result is `true` (any casing), the step fails with a message that includes the selected results. It renders against the step's **parameters** (arguments and `profile_id`), not against the query results. The statement has already run, so nothing is rolled back.
|
|
259
|
+
|
|
260
|
+
Variants: a literal (`'false'`) or an expression over arguments.
|
|
261
|
+
|
|
262
|
+
```yaml
|
|
263
|
+
- key: READ_FOR_BATCH
|
|
264
|
+
displayType: SQL
|
|
265
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
266
|
+
arguments:
|
|
267
|
+
batch: '{{ _outputs.INPUT.items[0].batch }}'
|
|
268
|
+
data:
|
|
269
|
+
sql: select id from items where batch = @batch
|
|
270
|
+
responseFilters:
|
|
271
|
+
- key: items
|
|
272
|
+
hasError: '{{ batch == "" }}' # no default; omitted = no check
|
|
273
|
+
next: null
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Since it cannot see the results and fires only after execution, prefer validating prerequisites with [IF](hexasync://docs/steps/IF) before the query, and checking results with `IF` after it.
|
|
277
|
+
|
|
278
|
+
### `data.logOutput`
|
|
279
|
+
|
|
280
|
+
Syntax: `logOutput: <boolean | "true" | "false">`. Defaults to `false`.
|
|
281
|
+
|
|
282
|
+
Meaning: `true` (any casing, boolean or string) adds the full serialized list results to the step log. Row and Field values and list counts are logged whatever this flag says, so `false` is **not** redaction. The flag never changes the returned data. The shared flag semantics are in [cross-cutting step flags](hexasync://docs/steps/STEP-ENVELOPE/cross-cutting-step-flags).
|
|
283
|
+
|
|
284
|
+
```yaml
|
|
285
|
+
- key: READ_DEBUG
|
|
286
|
+
displayType: SQL
|
|
287
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
288
|
+
data:
|
|
289
|
+
sql: select id from items order by id limit 10
|
|
290
|
+
responseFilters:
|
|
291
|
+
- key: items
|
|
292
|
+
logOutput: true # defaults to false; 'true' string form also accepted
|
|
293
|
+
next: null
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Turn it on only while diagnosing a small result. Avoid it for large or sensitive lists.
|
|
297
|
+
|
|
298
|
+
### `data.resultSets`
|
|
299
|
+
|
|
300
|
+
Syntax: `resultSets: { <output key>: list | single | eval }`. Legacy; defaults to `{}`.
|
|
301
|
+
|
|
302
|
+
Meaning: used **only when `responseFilters` is empty**. If both are present, `responseFilters` wins and the map is ignored. Each key consumes the next result set in order: `single` or `eval` publishes the first column of the first row, and any other value publishes the row list. Lists here get `__firstKeys`/`__lastKeys` only through `keySets`.
|
|
303
|
+
|
|
304
|
+
```yaml
|
|
305
|
+
- key: LEGACY_READ
|
|
306
|
+
displayType: SQL
|
|
307
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
308
|
+
data:
|
|
309
|
+
sql: |
|
|
310
|
+
select id, name from items order by id limit 100;
|
|
311
|
+
select count(*) from items;
|
|
312
|
+
resultSets: # legacy; defaults to {}
|
|
313
|
+
items: list
|
|
314
|
+
total: single
|
|
315
|
+
next: null
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
New configuration should use `responseFilters`, which is explicit about each selector type.
|
|
319
|
+
|
|
320
|
+
### `data.keySets`
|
|
321
|
+
|
|
322
|
+
Syntax: `keySets: { <list key>: { <alias>: <source column> } }`. Legacy; defaults to `{}`. Read only with `resultSets`.
|
|
323
|
+
|
|
324
|
+
Meaning: for the named list result, publishes copies of its first and last rows as `__firstKeys`/`__lastKeys`, adding each `<alias>` from `<source column>` when the row does not already have that column. A missing source column gives a `null` alias. An empty list adds nothing. An outer key that names no result fails the step, and two non-empty key sets collide on the shared names.
|
|
325
|
+
|
|
326
|
+
```yaml
|
|
327
|
+
- key: LEGACY_PAGE
|
|
328
|
+
displayType: SQL
|
|
329
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
330
|
+
data:
|
|
331
|
+
sql: select id, name from items order by id limit 100
|
|
332
|
+
resultSets:
|
|
333
|
+
items: list
|
|
334
|
+
keySets: # legacy; defaults to {}
|
|
335
|
+
items:
|
|
336
|
+
cursor: id # __lastKeys.cursor = last row's id
|
|
337
|
+
next: null
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
## Best practices
|
|
341
|
+
|
|
342
|
+
- **Parameterize, never concatenate.** Pass every value through `arguments` and reference it as a parameter. Building SQL text from values via Scriban invites injection and quoting bugs. Reserve Scriban for trusted structural choices taken from a fixed set.
|
|
343
|
+
- **Page large reads.** Use a stable `order by` on a unique key, a `limit`, and a keyset cursor (`where id > @after_id`, fed from `__lastKeys`) rather than a growing `offset`. Use `hasNextPage` to decide whether to loop, and persist each page explicitly.
|
|
344
|
+
- **Set `timeout` deliberately** for each statement's expected cost, instead of relying on the 60-second default for heavy reports or very quick lookups.
|
|
345
|
+
- **Prefer the typed query steps** ([QUERY_SINGLE](steps.QUERY_SINGLE.md), [QUERY_MANY](steps.QUERY_MANY.md)) for profile task data. Use raw SQL only for what they cannot express.
|
|
346
|
+
- **Least privilege.** Give the connection a database account limited to what the step needs. The connector's DDL text check is not an authorization control.
|
|
347
|
+
- **One list per step, explicit names.** Name each selector, keep one `List`, and avoid reserved output names.
|
|
348
|
+
|
|
349
|
+
## Boundary and failure cases
|
|
350
|
+
|
|
351
|
+
- Missing `sql`, an unresolved connection, a restricted DDL phrase, a non-numeric `timeout`, more selectors than result sets, duplicate keys, an unknown `hasNextPage` name, or two list selectors: the step fails. Database errors and timeouts also fail it. Failures go to the shared [error routing](hexasync://docs/steps/STEP-ENVELOPE/payload-selection-and-thrown-error-routing). The step has no graceful-failure mode of its own.
|
|
352
|
+
- A blank `sql` is not caught locally; the database rejects it.
|
|
353
|
+
- `hasError` fires after execution, so side effects of the statement remain.
|
|
354
|
+
- Rejected form (non-copyable): `hasNextPage: '{{ more }}'` is looked up as a result named `{{ more }}` and fails. Write the selected list key instead, for example `hasNextPage: items`.
|
|
355
|
+
- With neither `responseFilters` nor `resultSets`, no rows are published. Only `hasNextPage: false` is returned.
|
|
356
|
+
|
|
357
|
+
## Related
|
|
358
|
+
|
|
359
|
+
- [Step catalog](hexasync://docs/steps/INDEX)
|
|
360
|
+
- [SQL_PROXY](steps.SQL_PROXY.md#contract): the same delegation through a proxy-service connection.
|
|
361
|
+
- [Query DSL](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md): typed queries differ from connector SQL.
|
|
362
|
+
- [Workflow and the step envelope](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component)
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
# `SQL_PROXY` — SQL_PROXY
|
|
2
|
+
|
|
3
|
+
> Addressable through MCP as **`hexasync://docs/steps/SQL_PROXY`**.
|
|
4
|
+
|
|
5
|
+
## Contract
|
|
6
|
+
|
|
7
|
+
`SQL_PROXY` hands its whole payload to the connector of the step's connection and publishes the connector's result dictionary unchanged as `_outputs.<key>`. The step does not parse SQL. It gives no guarantees about transactions, cross-database queries, routing or pagination: whatever happens is the selected connector's behavior. Two connectors are relevant:
|
|
8
|
+
|
|
9
|
+
- **RDBMS connection**: the payload and output are exactly those of [SQL's RDBMS fields and results](steps.SQL.md#rdbms-fields-and-results).
|
|
10
|
+
- **SQL-proxy service connection**: the connector sends a batch of named SQL commands to a remote proxy service over HTTP and publishes the response through [response filters](hexasync://docs/responseFilters/RESPONSE-FILTERS/exact-authored-shape). The fields are listed [below](#fields).
|
|
11
|
+
|
|
12
|
+
The connection is bound through the shared envelope: the step-level `connectorId` (profile connection UUID) wins, otherwise `data.connectionId`. An invalid UUID does not fall back to a name lookup; the step fails to resolve a connector. See [how a step finds its connection](hexasync://docs/connections/CONNECTIONS/how-a-step-finds-its-connection).
|
|
13
|
+
|
|
14
|
+
## Data contract absence
|
|
15
|
+
|
|
16
|
+
The editor declares **no data schema** for `SQL_PROXY`, because the payload depends on the connector the connection selects. That absence does not make the payload optional: an RDBMS connection still requires `sql`, and a proxy-service connection still requires `sqlCommands`. Do not expect completions, and do not invent fields such as `database`, `parameters` or `proxyId`. Use the per-connector fields documented here.
|
|
17
|
+
|
|
18
|
+
## When to use
|
|
19
|
+
|
|
20
|
+
- Use `SQL_PROXY` when the database is reachable only through a SQL-proxy service connection, for example a database inside a private network that the workers cannot reach directly.
|
|
21
|
+
- For a directly reachable database, prefer [SQL](steps.SQL.md): same RDBMS behavior, plus an editor schema with completions and validation.
|
|
22
|
+
- For profile task data, prefer [QUERY_SINGLE](steps.QUERY_SINGLE.md) or [QUERY_MANY](steps.QUERY_MANY.md). For HTTP endpoints use [API](hexasync://docs/steps/API).
|
|
23
|
+
|
|
24
|
+
## Syntax
|
|
25
|
+
|
|
26
|
+
Proxy-service connection:
|
|
27
|
+
|
|
28
|
+
```yaml
|
|
29
|
+
- key: PROXY_READ
|
|
30
|
+
displayType: SQL_PROXY
|
|
31
|
+
connectorId: 11111111-1111-4111-8111-111111111111 # SQL-proxy service connection UUID
|
|
32
|
+
arguments:
|
|
33
|
+
since: '2024-01-01' # added to data.arguments when that map is present
|
|
34
|
+
data:
|
|
35
|
+
sqlCommands: # required; map of command id -> {sql, type}
|
|
36
|
+
read_items:
|
|
37
|
+
sql: select id, name from items where updated_at >= @since
|
|
38
|
+
type: Query # Query | Execute (or "0" | "1"); no local default
|
|
39
|
+
arguments: {} # string map of SQL parameters; see precedence below
|
|
40
|
+
timeout: 60 # seconds; defaults to 60
|
|
41
|
+
useSingleTransaction: false # defaults to false
|
|
42
|
+
responseFilters: # parser id -> output name -> {expression}
|
|
43
|
+
raw_text:
|
|
44
|
+
response: {expression: ignored}
|
|
45
|
+
next: null
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
RDBMS connection: use the [SQL syntax](steps.SQL.md#syntax) with `displayType: SQL_PROXY`.
|
|
49
|
+
|
|
50
|
+
## Sensible configuration
|
|
51
|
+
|
|
52
|
+
```yaml
|
|
53
|
+
- key: PROXY_READ
|
|
54
|
+
displayType: SQL_PROXY
|
|
55
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
56
|
+
arguments:
|
|
57
|
+
since: '{{ _outputs.CURSOR.since }}'
|
|
58
|
+
data:
|
|
59
|
+
sqlCommands:
|
|
60
|
+
read_items:
|
|
61
|
+
sql: select id, name from items where updated_at >= @since order by id limit 500
|
|
62
|
+
type: Query
|
|
63
|
+
arguments: {}
|
|
64
|
+
timeout: 60
|
|
65
|
+
responseFilters:
|
|
66
|
+
raw_text:
|
|
67
|
+
response: {expression: ignored}
|
|
68
|
+
next: null
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Why: a single read command. The value comes from a step argument bound as a parameter. The explicit `arguments: {}` is what makes the step-level arguments get forwarded. The timeout is stated. The raw response text is kept until the service's response layout is confirmed; after that, replace `raw_text` with a structured parser.
|
|
72
|
+
|
|
73
|
+
## Fields
|
|
74
|
+
|
|
75
|
+
### RDBMS connection fields
|
|
76
|
+
|
|
77
|
+
With an RDBMS connection the step reads `sql`, `timeout`, `commandType`, `responseFilters` (ordered array), `hasNextPage`, `hasError`, `logOutput`, `resultSets` and `keySets` with exactly the meanings, defaults and failure cases of [SQL's RDBMS fields and results](steps.SQL.md#rdbms-fields-and-results). Step arguments become SQL parameters.
|
|
78
|
+
|
|
79
|
+
```yaml
|
|
80
|
+
- key: PROXY_CALL
|
|
81
|
+
displayType: SQL_PROXY
|
|
82
|
+
connectorId: 11111111-1111-4111-8111-111111111111 # RDBMS connection
|
|
83
|
+
arguments:
|
|
84
|
+
wanted: '42'
|
|
85
|
+
data:
|
|
86
|
+
sql: select id from items where id = @wanted # required; no default
|
|
87
|
+
responseFilters:
|
|
88
|
+
- key: item
|
|
89
|
+
type: Row
|
|
90
|
+
next: null
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Result: `_outputs.PROXY_CALL = {item: {id: 42}, hasNextPage: false}`, or `item: null` when no row matches.
|
|
94
|
+
|
|
95
|
+
The fields below apply to a **SQL-proxy service connection** only. That connector ignores `sql`, `resultSets`, `logOutput` and `gracefulException`.
|
|
96
|
+
|
|
97
|
+
### `data.sqlCommands`
|
|
98
|
+
|
|
99
|
+
Syntax: `sqlCommands: { <command id>: { sql: <string>, type: <Query|Execute> } }`, or the same object written as a JSON string. Required; no default.
|
|
100
|
+
|
|
101
|
+
Meaning: the batch of commands sent to the proxy service, keyed by an identifier you choose. The whole value is rendered with Scriban first and then parsed as JSON. A missing, null or malformed value fails the step before any request is sent. `{}` sends an empty batch, and the service decides what that means. Command order and parallelism are not guaranteed by the step.
|
|
102
|
+
|
|
103
|
+
Variants: a YAML object (preferred, readable) or a JSON string (useful when the batch is produced by an expression).
|
|
104
|
+
|
|
105
|
+
```yaml
|
|
106
|
+
- key: PROXY_BATCH
|
|
107
|
+
displayType: SQL_PROXY
|
|
108
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
109
|
+
data:
|
|
110
|
+
sqlCommands: # required; no default
|
|
111
|
+
read_items:
|
|
112
|
+
sql: select id from items order by id limit 100
|
|
113
|
+
type: Query
|
|
114
|
+
mark_read:
|
|
115
|
+
sql: update items set read_at = now() where read_at is null
|
|
116
|
+
type: Execute
|
|
117
|
+
arguments: {}
|
|
118
|
+
next: null
|
|
119
|
+
---
|
|
120
|
+
- key: PROXY_BATCH_JSON
|
|
121
|
+
displayType: SQL_PROXY
|
|
122
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
123
|
+
data:
|
|
124
|
+
sqlCommands: '{"read_items": {"sql": "select id from items order by id limit 100", "type": "Query"}}'
|
|
125
|
+
next: null
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### `data.sqlCommands.<command>.sql`
|
|
129
|
+
|
|
130
|
+
Syntax: `sql: <string>`. Required for a usable command; no default.
|
|
131
|
+
|
|
132
|
+
Meaning: the SQL text the service runs for this command. The proxy-service connector does **not** apply the RDBMS DDL text check and does not validate it locally, so a missing or wrong statement surfaces as a service or database error. Values belong in `arguments` and are referenced as parameters.
|
|
133
|
+
|
|
134
|
+
```yaml
|
|
135
|
+
- key: PROXY_ONE
|
|
136
|
+
displayType: SQL_PROXY
|
|
137
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
138
|
+
arguments:
|
|
139
|
+
wanted: '42'
|
|
140
|
+
data:
|
|
141
|
+
sqlCommands:
|
|
142
|
+
read_one:
|
|
143
|
+
sql: select id, name from items where id = @wanted # required; no default
|
|
144
|
+
type: Query
|
|
145
|
+
arguments: {}
|
|
146
|
+
next: null
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### `data.sqlCommands.<command>.type`
|
|
150
|
+
|
|
151
|
+
Syntax: `type: Query | Execute | "0" | "1"`. No local default.
|
|
152
|
+
|
|
153
|
+
Meaning: `Query` (`"0"`) returns rows. `Execute` (`"1"`) runs a statement that changes data. Text and numeric forms are equivalent; prefer the text names. Other values are not rejected locally, and the service may refuse them.
|
|
154
|
+
|
|
155
|
+
```yaml
|
|
156
|
+
- key: PROXY_WRITE
|
|
157
|
+
displayType: SQL_PROXY
|
|
158
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
159
|
+
arguments:
|
|
160
|
+
wanted: '42'
|
|
161
|
+
data:
|
|
162
|
+
sqlCommands:
|
|
163
|
+
touch:
|
|
164
|
+
sql: update items set touched_at = now() where id = @wanted
|
|
165
|
+
type: Execute # no local default; "1" is equivalent
|
|
166
|
+
arguments: {}
|
|
167
|
+
next: null
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### `data.arguments`
|
|
171
|
+
|
|
172
|
+
Syntax: `arguments: { <name>: <string> }`, or the same map written as a JSON string. Optional.
|
|
173
|
+
|
|
174
|
+
Meaning: the SQL parameters sent with the batch. The value is rendered with Scriban, then parsed as a map of strings. Precedence with the step-level `arguments`:
|
|
175
|
+
|
|
176
|
+
| `data.arguments` | Parameters sent |
|
|
177
|
+
| --- | --- |
|
|
178
|
+
| absent or blank | **none**: step-level arguments are *not* forwarded |
|
|
179
|
+
| `{}` | all step-level arguments |
|
|
180
|
+
| non-empty map | its entries, plus step-level arguments whose names it lacks (payload entries win) |
|
|
181
|
+
|
|
182
|
+
Non-string or `null` values and malformed JSON fail the step.
|
|
183
|
+
|
|
184
|
+
```yaml
|
|
185
|
+
- key: PROXY_PARAMS
|
|
186
|
+
displayType: SQL_PROXY
|
|
187
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
188
|
+
arguments:
|
|
189
|
+
since: '2024-01-01' # forwarded because data.arguments is present
|
|
190
|
+
data:
|
|
191
|
+
sqlCommands:
|
|
192
|
+
read_items:
|
|
193
|
+
sql: select id from items where updated_at >= @since and region = @region
|
|
194
|
+
type: Query
|
|
195
|
+
arguments: # absent = step arguments NOT forwarded
|
|
196
|
+
region: north
|
|
197
|
+
next: null
|
|
198
|
+
---
|
|
199
|
+
- key: PROXY_PARAMS_JSON
|
|
200
|
+
displayType: SQL_PROXY
|
|
201
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
202
|
+
data:
|
|
203
|
+
sqlCommands:
|
|
204
|
+
read_items:
|
|
205
|
+
sql: select id from items where region = @region
|
|
206
|
+
type: Query
|
|
207
|
+
arguments: '{"region": "north"}' # JSON string form
|
|
208
|
+
next: null
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### `data.timeout`
|
|
212
|
+
|
|
213
|
+
Syntax: `timeout: <integer seconds | numeric string>`. Defaults to `60`.
|
|
214
|
+
|
|
215
|
+
Meaning: the timeout, in seconds, that the proxy service is asked to apply to the batch. Non-numeric text fails the step. There is no step-level retry.
|
|
216
|
+
|
|
217
|
+
```yaml
|
|
218
|
+
- key: PROXY_REPORT
|
|
219
|
+
displayType: SQL_PROXY
|
|
220
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
221
|
+
data:
|
|
222
|
+
sqlCommands:
|
|
223
|
+
totals:
|
|
224
|
+
sql: select region, count(*) as total from items group by region
|
|
225
|
+
type: Query
|
|
226
|
+
timeout: 180 # defaults to 60; '180' string form also accepted
|
|
227
|
+
next: null
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### `data.useSingleTransaction`
|
|
231
|
+
|
|
232
|
+
Syntax: `useSingleTransaction: <boolean | "true" | "false">`. Defaults to `false`.
|
|
233
|
+
|
|
234
|
+
Meaning: `true` (any casing) asks the service to run all commands of the batch in one transaction. Any other value, or omitting the field, does not ask for it. The step itself opens no transaction, so atomicity depends on the service honoring the request.
|
|
235
|
+
|
|
236
|
+
```yaml
|
|
237
|
+
- key: PROXY_ATOMIC
|
|
238
|
+
displayType: SQL_PROXY
|
|
239
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
240
|
+
arguments:
|
|
241
|
+
wanted: '42'
|
|
242
|
+
data:
|
|
243
|
+
sqlCommands:
|
|
244
|
+
archive:
|
|
245
|
+
sql: insert into items_archive select * from items where id = @wanted
|
|
246
|
+
type: Execute
|
|
247
|
+
remove:
|
|
248
|
+
sql: delete from items where id = @wanted
|
|
249
|
+
type: Execute
|
|
250
|
+
arguments: {}
|
|
251
|
+
useSingleTransaction: true # defaults to false
|
|
252
|
+
next: null
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### `data.responseFilters`
|
|
256
|
+
|
|
257
|
+
Syntax: `responseFilters: { <parser id>: { <output name>: { expression: <string> } } }`. Optional; no default outputs.
|
|
258
|
+
|
|
259
|
+
Meaning: the shared [response-filter engine](hexasync://docs/responseFilters/RESPONSE-FILTERS/exact-authored-shape) applied to the service's response body. Each named result becomes a key of `_outputs.<key>`. It is **not** the RDBMS ordered array. Without filters, nothing is published (no rows, no `items`, no `hasNextPage`). HTTP status narrowing (`acceptHttpStatuses`) does not apply here: a non-success response fails the step.
|
|
260
|
+
|
|
261
|
+
Variants: [`raw_text`](hexasync://docs/responseFilters/RESPONSE-FILTERS/the-eight-parser-ids) keeps the response text as-is (safe while the layout is unknown). A structured parser such as `jsonata` extracts fields once the service's response layout is confirmed.
|
|
262
|
+
|
|
263
|
+
```yaml
|
|
264
|
+
- key: PROXY_RAW
|
|
265
|
+
displayType: SQL_PROXY
|
|
266
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
267
|
+
data:
|
|
268
|
+
sqlCommands:
|
|
269
|
+
read_one:
|
|
270
|
+
sql: select 1 as value
|
|
271
|
+
type: Query
|
|
272
|
+
responseFilters: # no default outputs
|
|
273
|
+
raw_text:
|
|
274
|
+
response: {expression: ignored}
|
|
275
|
+
next: null
|
|
276
|
+
---
|
|
277
|
+
- key: PROXY_PARSED
|
|
278
|
+
displayType: SQL_PROXY
|
|
279
|
+
connectorId: 11111111-1111-4111-8111-111111111111
|
|
280
|
+
data:
|
|
281
|
+
sqlCommands:
|
|
282
|
+
read_one:
|
|
283
|
+
sql: select 1 as value
|
|
284
|
+
type: Query
|
|
285
|
+
responseFilters:
|
|
286
|
+
jsonata:
|
|
287
|
+
body: {expression: '$'} # whole parsed JSON body; narrow once the layout is known
|
|
288
|
+
next: null
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Best practices
|
|
292
|
+
|
|
293
|
+
- **Parameterize, never concatenate.** Put values in step or `data.arguments` and reference them as parameters. Do not render values into `sql` or `sqlCommands` with Scriban: the whole command text is rendered and then parsed as JSON, so injected text can break both the SQL and the JSON.
|
|
294
|
+
- **Forward step arguments on purpose.** Write `arguments: {}` (or a map) when you rely on step-level arguments, because leaving it out sends no parameters.
|
|
295
|
+
- **Page large reads** with a stable `order by`, a `limit` and a keyset cursor carried between iterations, instead of one unbounded query.
|
|
296
|
+
- **Set `timeout` deliberately** for the batch's expected cost.
|
|
297
|
+
- **Ask for a transaction only when commands must succeed or fail together**, and confirm the service honors it. Keep batches small so a failure is easy to locate.
|
|
298
|
+
- **Keep the raw response until its layout is confirmed**, then switch to a structured filter.
|
|
299
|
+
|
|
300
|
+
## Boundary and failure cases
|
|
301
|
+
|
|
302
|
+
- Unresolved connection: the step fails before execution. The `SQL_PROXY` name alone does not select a proxy service.
|
|
303
|
+
- Proxy-service connection: a missing or malformed `sqlCommands`, malformed `arguments`, or a non-numeric `timeout` fails locally before any request. A non-success HTTP response fails the step, with the service's error text when it provides one. A successful response can still fail during filtering. A successful HTTP transport does not prove that every command succeeded.
|
|
304
|
+
- RDBMS connection: an empty payload fails because `sql` is required, even though the editor shows no schema.
|
|
305
|
+
- Rejected form (non-copyable): `data: {sql: 'select 1', parameters: {id: 42}, proxyId: example}` is neither connector's contract. A proxy-service connection fails because `sqlCommands` is missing.
|
|
306
|
+
- The step has no graceful-failure mode. Failures go to shared [error routing](hexasync://docs/steps/STEP-ENVELOPE/payload-selection-and-thrown-error-routing).
|
|
307
|
+
- Do not name results `outputs`, `input`, `logOutputs`, `error` or `next`; the workflow interprets those names.
|
|
308
|
+
|
|
309
|
+
## Related
|
|
310
|
+
|
|
311
|
+
- [Step catalog](hexasync://docs/steps/INDEX)
|
|
312
|
+
- [SQL](steps.SQL.md#contract): direct RDBMS execution with an editor schema.
|
|
313
|
+
- [Response filters](hexasync://docs/responseFilters/RESPONSE-FILTERS)
|
|
314
|
+
- [Query DSL](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md): typed queries differ from connector SQL.
|
|
315
|
+
- [Workflow and the step envelope](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component)
|