@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,363 @@
|
|
|
1
|
+
> Part of [The Query DSL](query-dsl.QUERY-DSL.md).
|
|
2
|
+
|
|
3
|
+
## Quick reference: syntax, variants and how to choose
|
|
4
|
+
|
|
5
|
+
This section is the compact authoring contract for every Builder component and property. The sections after it explain host differences, SQL emission and edge cases in depth. Unless stated otherwise every example is a complete `QUERY_MANY` step at a workflow's `steps[]` entry, because that host is strict (it rejects raw SQL and validates identifiers) and therefore shows the safest form.
|
|
6
|
+
|
|
7
|
+
### Choosing the language
|
|
8
|
+
|
|
9
|
+
| You are writing… | Use | Why |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| A profile condition (`metadata.where`, query step `data.where`, query transformation `metadata.where`, join `where`, QUERY metric `matchedWhere`/`unmatchedWhere`, status/removal `data.where`) | **Builder** `{op, data}` | Typed operands, generated value bindings, named PARAM/ARG references. |
|
|
12
|
+
| An HTTP search request body against the platform API | **Filter** `{condition, leftOp, rightOp}` | Request-time narrowing of already-stored rows; see [Filter DSL language contract](query-dsl.QUERY-DSL.filter-dsl-language-contract.md). |
|
|
13
|
+
|
|
14
|
+
The two shapes never convert into each other: a Builder node pasted into request `filters` is skipped, and a Filter node under a profile `where` is not a Builder leaf.
|
|
15
|
+
|
|
16
|
+
### Query step envelope (`from`, `joins`, `select`, `where`)
|
|
17
|
+
|
|
18
|
+
Purpose: read rows from a stored task, reference or report table. Use `QUERY_SINGLE` when one row is expected (outputs `{row, found}`) and `QUERY_MANY` for a list (outputs `{rows, count}`). A sensible configuration names one concrete source, projects only the columns the next step needs, and filters with a unique or selective predicate whose values come from `arguments` rather than being hard-coded.
|
|
19
|
+
|
|
20
|
+
```yaml
|
|
21
|
+
steps:
|
|
22
|
+
- key: FIND_ROWS
|
|
23
|
+
displayType: QUERY_MANY
|
|
24
|
+
arguments:
|
|
25
|
+
wantedSku: '$(_inputs.sku)' # value from the workflow input; see CONTEXT-AND-IO for the roots of your placement
|
|
26
|
+
data:
|
|
27
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
28
|
+
joins: [] # optional; omitted means no joins
|
|
29
|
+
select:
|
|
30
|
+
- { alias: _, field: sku }
|
|
31
|
+
where: # optional; omitted means every row of the source
|
|
32
|
+
op: '='
|
|
33
|
+
data:
|
|
34
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
35
|
+
rightOp: { type: ARG, key: wantedSku }
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
#### `from`
|
|
39
|
+
|
|
40
|
+
Syntax: `from: { entityType: <TASK|REFERENCE|REPORT|SELF>, entityId: <uuid>, alias: <identifier> }`
|
|
41
|
+
|
|
42
|
+
- `entityType: <TASK|REFERENCE|REPORT|SELF>` — which kind of profile entity the source table belongs to. `TASK`/`REFERENCE`/`REPORT` need `entityId`. `SELF` means "the task table of the enclosing transformation" and is valid only in query transformations and QUERY metrics; query steps reject it. Author it explicitly (an omitted value is read as `TASK` only for compatibility).
|
|
43
|
+
- `entityId: <uuid>` — UUID of an existing profile entity (not a SQL table name). Required unless `SELF`; no default.
|
|
44
|
+
- `alias: <identifier>` — SQL alias every `FIELD` and `select` entry uses to reference this source, 1–63 of `a-z`, `0-9`, `_`. Author it explicitly (an omitted value is read as `_`); `_` is the conventional main-source alias.
|
|
45
|
+
|
|
46
|
+
```yaml
|
|
47
|
+
steps:
|
|
48
|
+
- key: FIND_ROWS
|
|
49
|
+
displayType: QUERY_MANY
|
|
50
|
+
data:
|
|
51
|
+
from:
|
|
52
|
+
entityType: TASK # explicit; read as TASK when omitted
|
|
53
|
+
entityId: '11111111-1111-4111-8111-111111111111'
|
|
54
|
+
alias: _ # explicit; read as _ when omitted
|
|
55
|
+
select:
|
|
56
|
+
- { alias: _, field: sku }
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Choose `SELF` inside a transformation that queries its own task (no hard-coded UUID to maintain); choose a concrete `TASK`/`REFERENCE`/`REPORT` everywhere else.
|
|
60
|
+
|
|
61
|
+
#### `joins[]`
|
|
62
|
+
|
|
63
|
+
Syntax: `joins: [ { entityType: <TASK|REFERENCE|REPORT>, entityId: <uuid>, alias: <identifier>, joinType: <type>, where: <condition> } ]`
|
|
64
|
+
|
|
65
|
+
- `entityType`, `entityId` — required concrete source; `SELF` is not a join source; no default.
|
|
66
|
+
- `alias` — required, unique among the source and all joins; reused aliases fail in SQL.
|
|
67
|
+
- `joinType: <INNER|LEFT|RIGHT|FULL|CROSS|LEFT OUTER|RIGHT OUTER|FULL OUTER>` — required, no default. `INNER` keeps only matched pairs; `LEFT` keeps every main row and fills unmatched join columns with null; `RIGHT` is the mirror; `FULL` keeps both sides; `CROSS` builds every combination. `LEFT OUTER`/`RIGHT OUTER`/`FULL OUTER` are the same joins spelled with `OUTER`.
|
|
68
|
+
- `where: <condition>` — the ON condition (a Builder tree, typically FIELD-to-FIELD). Required for every type except `CROSS`, which must omit it.
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
steps:
|
|
72
|
+
- key: ROWS_WITH_PARENT
|
|
73
|
+
displayType: QUERY_MANY
|
|
74
|
+
data:
|
|
75
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
76
|
+
joins:
|
|
77
|
+
- entityType: REFERENCE
|
|
78
|
+
entityId: '22222222-2222-4222-8222-222222222222'
|
|
79
|
+
alias: r
|
|
80
|
+
joinType: LEFT # no default; LEFT keeps rows without a match
|
|
81
|
+
where:
|
|
82
|
+
op: '='
|
|
83
|
+
data:
|
|
84
|
+
leftOp: { type: FIELD, field: _.parent_code }
|
|
85
|
+
rightOp: { type: FIELD, field: r.code }
|
|
86
|
+
select:
|
|
87
|
+
- { alias: _, field: sku }
|
|
88
|
+
- { alias: r, field: name, as: parent_name }
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Prefer `LEFT` when the joined data is optional enrichment (missing matches must not drop rows); `INNER` when rows without a match are meaningless; avoid `CROSS` and `FULL` unless the Cartesian or two-sided result is really intended, because they multiply row counts.
|
|
92
|
+
|
|
93
|
+
#### `select[]`
|
|
94
|
+
|
|
95
|
+
Syntax: `select: [ { alias: <identifier>, field: <column>, as: <identifier> } | { alias: <identifier>, star: true } ]`
|
|
96
|
+
|
|
97
|
+
- `alias` — source or join alias the column comes from; required.
|
|
98
|
+
- `field` — column name; required unless `star: true`.
|
|
99
|
+
- `as` — output key in the returned row; optional, defaults to the field name.
|
|
100
|
+
- `star: <boolean>` — `true` returns every column of that alias (`alias.*`) and excludes `field`/`as`; omitted/false uses the field form.
|
|
101
|
+
|
|
102
|
+
At least one entry is required. Prefer explicit fields over `star`: smaller rows and no accidental overwrite of system (`__`) keys when the row is merged into an item. Details: [Select projection](query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md#select-projection).
|
|
103
|
+
|
|
104
|
+
```yaml
|
|
105
|
+
steps:
|
|
106
|
+
- key: PROJECT
|
|
107
|
+
displayType: QUERY_MANY
|
|
108
|
+
data:
|
|
109
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
110
|
+
select:
|
|
111
|
+
- { alias: _, field: sku, as: item_sku } # as defaults to the field name
|
|
112
|
+
- { alias: _, field: title }
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Condition node (`op`, `data`)
|
|
116
|
+
|
|
117
|
+
Syntax: `{ op: <operator>, data: <group children | leaf payload> }`
|
|
118
|
+
|
|
119
|
+
- `op` — required operator token, no default. Author the uppercase spellings below.
|
|
120
|
+
- `data` — for `AND`/`OR` a non-empty array of child nodes; for every other operator an object with `leftOp`, usually `rightOp`, and optional `caseSensitive`.
|
|
121
|
+
- `data.leftOp`/`data.rightOp` — typed [operands](query-dsl.QUERY-DSL.operands.md).
|
|
122
|
+
- `data.caseSensitive: <boolean>` — defaults to `true`. `false` wraps FIELD operands in `lower(...)` and lowercases literal VALUE text before binding; PARAM/ARG bindings are **not** lowercased. Use it only with text operators on text columns; never with numeric, bitwise, null or time predicates.
|
|
123
|
+
|
|
124
|
+
#### Groups: `AND`, `OR`
|
|
125
|
+
|
|
126
|
+
`AND` matches when every child matches; `OR` when any child does. Nesting, not order, determines precedence. There is no `NOT`: use the negated token of a leaf (`!=`, `NOT_IN`, `IS_NOT_NULL`, `NOT_CONTAINS`, …). Never author an empty group; it compiles to invalid SQL.
|
|
127
|
+
|
|
128
|
+
```yaml
|
|
129
|
+
steps:
|
|
130
|
+
- key: ACTIVE_OR_UNARCHIVED
|
|
131
|
+
displayType: QUERY_MANY
|
|
132
|
+
data:
|
|
133
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
134
|
+
select:
|
|
135
|
+
- { alias: _, field: sku }
|
|
136
|
+
where:
|
|
137
|
+
op: AND
|
|
138
|
+
data:
|
|
139
|
+
- op: '='
|
|
140
|
+
data:
|
|
141
|
+
leftOp: { type: FIELD, field: _.active }
|
|
142
|
+
rightOp: { type: VALUE, val: true, valueType: BOOLEAN }
|
|
143
|
+
- op: OR
|
|
144
|
+
data:
|
|
145
|
+
- op: IS_NULL
|
|
146
|
+
data:
|
|
147
|
+
leftOp: { type: FIELD, field: _.archived_at }
|
|
148
|
+
- op: '='
|
|
149
|
+
data:
|
|
150
|
+
leftOp: { type: FIELD, field: _.status }
|
|
151
|
+
rightOp: { type: VALUE, val: open }
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
#### Operator families
|
|
155
|
+
|
|
156
|
+
| Family | Tokens | Meaning | `rightOp` | Choose when |
|
|
157
|
+
| --- | --- | --- | --- | --- |
|
|
158
|
+
| Comparison | `=`, `!=`, `<>`, `<`, `>`, `<=`, `>=` | SQL comparison; any comparison with NULL is not a match | one scalar operand | exact match or ordering of numbers, dates, text |
|
|
159
|
+
| Null test | `IS_NULL`, `IS_NOT_NULL` (aliases `NULL`, `NIL`, `ISNULL`, `ISNIL`, `IS_NIL`, `NOT_NULL`, `NNIL`, `NNULL`) | `IS NULL` / `IS NOT NULL` | none | presence/absence of a value; prefer the two canonical spellings |
|
|
160
|
+
| Text | `CONTAINS`, `NOT_CONTAINS`, `STARTS_WITH`, `NOT_STARTS_WITH`, `ENDS_WITH`, `NOT_ENDS_WITH` | `LIKE` (or `ILIKE` when `caseSensitive: false`) with `%` added around the pattern | scalar, or VALUE `vals` list (any / all) | substring, prefix, suffix searches without writing wildcards |
|
|
161
|
+
| Regex | `REGEX`, `NOT_REGEX` | PostgreSQL `~` / `!~` (`~*`/`!~*` when case-insensitive) | one scalar pattern | patterns the text family cannot express |
|
|
162
|
+
| Bitwise | `HAS_BITS`, `NOT_HAS_BITS`, `HAS_ALL_BITS`, `NOT_HAS_ALL_BITS` | any / none / all / not-all of the mask bits set | one integer mask | status/flag columns stored as bitfields |
|
|
163
|
+
| Membership | `IN`, `NOT_IN` | value is / is not in the list | VALUE `vals`, or a declared list ARG | a fixed or argument-supplied set of allowed values |
|
|
164
|
+
| Range | `BETWEEN` | `from <= value <= to`, both inclusive | `{ from: <operand>, to: <operand> }` | closed numeric or date ranges |
|
|
165
|
+
| Relative time | `LAST_<count>_<unit>` | value is at or after `now() - count unit` | none | "changed in the last N days/hours" windows |
|
|
166
|
+
|
|
167
|
+
Comparison:
|
|
168
|
+
|
|
169
|
+
```yaml
|
|
170
|
+
steps:
|
|
171
|
+
- key: IN_STOCK
|
|
172
|
+
displayType: QUERY_MANY
|
|
173
|
+
data:
|
|
174
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
175
|
+
select:
|
|
176
|
+
- { alias: _, field: sku }
|
|
177
|
+
where:
|
|
178
|
+
op: '>='
|
|
179
|
+
data:
|
|
180
|
+
leftOp: { type: FIELD, field: _.quantity }
|
|
181
|
+
rightOp: { type: VALUE, val: 1, valueType: INT8 } # valueType defaults to STRING (no cast)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Null test (no `rightOp`, no `caseSensitive`):
|
|
185
|
+
|
|
186
|
+
```yaml
|
|
187
|
+
steps:
|
|
188
|
+
- key: NEVER_EXPORTED
|
|
189
|
+
displayType: QUERY_MANY
|
|
190
|
+
data:
|
|
191
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
192
|
+
select:
|
|
193
|
+
- { alias: _, field: sku }
|
|
194
|
+
where:
|
|
195
|
+
op: IS_NULL
|
|
196
|
+
data:
|
|
197
|
+
leftOp: { type: FIELD, field: _.exported_at }
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Text, scalar pattern and list pattern:
|
|
201
|
+
|
|
202
|
+
```yaml
|
|
203
|
+
steps:
|
|
204
|
+
- key: NAME_SEARCH
|
|
205
|
+
displayType: QUERY_MANY
|
|
206
|
+
data:
|
|
207
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
208
|
+
select:
|
|
209
|
+
- { alias: _, field: sku }
|
|
210
|
+
where:
|
|
211
|
+
op: OR
|
|
212
|
+
data:
|
|
213
|
+
- op: CONTAINS
|
|
214
|
+
data:
|
|
215
|
+
caseSensitive: false # defaults to true (LIKE); false uses ILIKE
|
|
216
|
+
leftOp: { type: FIELD, field: _.title }
|
|
217
|
+
rightOp: { type: VALUE, val: blue }
|
|
218
|
+
- op: STARTS_WITH
|
|
219
|
+
data:
|
|
220
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
221
|
+
rightOp: { type: VALUE, vals: [TMP-, TEST-] } # list: matches any prefix
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Regex:
|
|
225
|
+
|
|
226
|
+
```yaml
|
|
227
|
+
steps:
|
|
228
|
+
- key: NUMERIC_CODES
|
|
229
|
+
displayType: QUERY_MANY
|
|
230
|
+
data:
|
|
231
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
232
|
+
select:
|
|
233
|
+
- { alias: _, field: sku }
|
|
234
|
+
where:
|
|
235
|
+
op: REGEX
|
|
236
|
+
data:
|
|
237
|
+
leftOp: { type: FIELD, field: _.code }
|
|
238
|
+
rightOp: { type: VALUE, val: '^[0-9]{6}$' } # complete pattern; no implicit anchors
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Bitwise:
|
|
242
|
+
|
|
243
|
+
```yaml
|
|
244
|
+
steps:
|
|
245
|
+
- key: NOT_YET_FLAGGED
|
|
246
|
+
displayType: QUERY_MANY
|
|
247
|
+
data:
|
|
248
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
249
|
+
select:
|
|
250
|
+
- { alias: _, field: sku }
|
|
251
|
+
where:
|
|
252
|
+
op: NOT_HAS_BITS
|
|
253
|
+
data:
|
|
254
|
+
leftOp: { type: FIELD, field: _.__status }
|
|
255
|
+
rightOp: { type: VALUE, val: 2 } # combined mask: 3 means bits 1 and 2
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Membership, literal list and argument list:
|
|
259
|
+
|
|
260
|
+
```yaml
|
|
261
|
+
steps:
|
|
262
|
+
- key: SELECTED_SKUS
|
|
263
|
+
displayType: QUERY_MANY
|
|
264
|
+
data:
|
|
265
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
266
|
+
select:
|
|
267
|
+
- { alias: _, field: sku }
|
|
268
|
+
where:
|
|
269
|
+
op: IN
|
|
270
|
+
data:
|
|
271
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
272
|
+
rightOp: { type: VALUE, vals: [A1, B2] } # never an empty list: IN () is invalid SQL
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
A list that comes from data belongs in a query **transformation** with an ordered argument declared `isList: true` and referenced as `{ type: ARG, key: <name> }`; see [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md).
|
|
276
|
+
|
|
277
|
+
Range:
|
|
278
|
+
|
|
279
|
+
```yaml
|
|
280
|
+
steps:
|
|
281
|
+
- key: MID_PRICED
|
|
282
|
+
displayType: QUERY_MANY
|
|
283
|
+
data:
|
|
284
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
285
|
+
select:
|
|
286
|
+
- { alias: _, field: sku }
|
|
287
|
+
where:
|
|
288
|
+
op: BETWEEN
|
|
289
|
+
data:
|
|
290
|
+
leftOp: { type: FIELD, field: _.price }
|
|
291
|
+
rightOp:
|
|
292
|
+
from: { type: VALUE, val: 10, valueType: DECIMAL } # inclusive
|
|
293
|
+
to: { type: VALUE, val: 50, valueType: DECIMAL } # inclusive
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Relative time (`format` on the left selects how the column is stored):
|
|
297
|
+
|
|
298
|
+
```yaml
|
|
299
|
+
steps:
|
|
300
|
+
- key: RECENTLY_CHANGED
|
|
301
|
+
displayType: QUERY_MANY
|
|
302
|
+
data:
|
|
303
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
304
|
+
select:
|
|
305
|
+
- { alias: _, field: sku }
|
|
306
|
+
where:
|
|
307
|
+
op: LAST_7_DAYS
|
|
308
|
+
data:
|
|
309
|
+
leftOp: { type: FIELD, field: _.__updated_at, format: UNIX_TIMESTAMP_MS } # no format = timestamptz column
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
`format` variants: omitted → the column is a timestamp; `UNIX_TIMESTAMP` → integer seconds; `UNIX_TIMESTAMP_MS` → integer milliseconds. `LAST` has no upper bound; for a closed window use `BETWEEN` or two comparisons against bound cutoffs.
|
|
313
|
+
|
|
314
|
+
### Operand (`type` and its members)
|
|
315
|
+
|
|
316
|
+
Syntax: `{ type: <FIELD|VALUE|PARAM|ARG>, … }` — `type` is required; each type owns its members.
|
|
317
|
+
|
|
318
|
+
| `type` | Members | Meaning | Choose when |
|
|
319
|
+
| --- | --- | --- | --- |
|
|
320
|
+
| `FIELD` | `field: <alias.column>`, optional `format`, `valueType` | a column of a source/join alias | the operand is stored data |
|
|
321
|
+
| `VALUE` | `val: <string\|number\|boolean>` or `vals: [ … ]`, optional `valueType` | literal(s), sent as generated bind parameters | the value is fixed in the profile |
|
|
322
|
+
| `PARAM` | `val: <name>` (or `vals: [<name>, …]`), optional `valueType` | named reference to a value the host already supplies (step `arguments`, transformation item fields + arguments, QUERY metric `params`) | the value is supplied by the host and no declaration check is wanted |
|
|
323
|
+
| `ARG` | `key: <name>`, optional `valueType` | named reference to an argument; transformations check it is declared and support typed lists | the value comes from `arguments`; preferred in transformations |
|
|
324
|
+
| `QUERY` | `sql` | **deprecated raw SQL**; rejected by query steps/transformations | never; migrate to FIELD/VALUE/PARAM/ARG |
|
|
325
|
+
|
|
326
|
+
- `valueType: <STRING|NUMBER|BOOLEAN|UUID|INT8|INT4|DECIMAL|VARCHAR|TEXT|DATETIME>` — SQL cast appended to the operand; defaults to `STRING`, which adds **no** cast. Set it when the bound value (step arguments are always strings) must compare as a number, boolean, UUID or timestamp (`DATETIME` casts to `timestamptz`). Ignored by bitwise and `LAST` predicates, which use fixed casts.
|
|
327
|
+
- `format: <string>` (FIELD only) — storage format for `LAST_*`: `UNIX_TIMESTAMP` or `UNIX_TIMESTAMP_MS`; no default (timestamp column).
|
|
328
|
+
|
|
329
|
+
```yaml
|
|
330
|
+
steps:
|
|
331
|
+
- key: BY_ARGUMENT
|
|
332
|
+
displayType: QUERY_SINGLE
|
|
333
|
+
arguments:
|
|
334
|
+
minQty: '5'
|
|
335
|
+
wantedSku: '$(_inputs.sku)'
|
|
336
|
+
data:
|
|
337
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
338
|
+
select:
|
|
339
|
+
- { alias: _, field: sku }
|
|
340
|
+
where:
|
|
341
|
+
op: AND
|
|
342
|
+
data:
|
|
343
|
+
- op: '='
|
|
344
|
+
data:
|
|
345
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
346
|
+
rightOp: { type: ARG, key: wantedSku }
|
|
347
|
+
- op: '>='
|
|
348
|
+
data:
|
|
349
|
+
leftOp: { type: FIELD, field: _.quantity }
|
|
350
|
+
rightOp: { type: PARAM, val: minQty, valueType: INT8 } # arguments are strings; cast for numeric comparison
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
### Patterns and anti-patterns
|
|
354
|
+
|
|
355
|
+
- **Parameterize values.** Put changing values in `arguments` and reference them with `ARG`/`PARAM`; never render them into a `FIELD` name or a literal pattern string. Literals and references are sent as bind parameters, so values cannot change the SQL structure.
|
|
356
|
+
- **Never use the raw `QUERY` operand.** It bypasses identifier validation and parameter binding; strict hosts reject it, and on permissive hosts it can inject SQL. Every legitimate use maps to FIELD (column), VALUE (literal) or PARAM/ARG (bound value).
|
|
357
|
+
- **Cast bound strings.** Step arguments are strings; add `valueType` (`INT8`, `DECIMAL`, `DATETIME`, `UUID`, `BOOLEAN`) when comparing them to non-text columns, or comparisons become text comparisons or fail.
|
|
358
|
+
- **Make `QUERY_SINGLE` deterministic.** It returns the first row and ignores ordering; filter on a unique key.
|
|
359
|
+
- **Handle null explicitly.** `!=`/`NOT_IN` never match NULL; add `OR IS_NULL` when missing values should be included.
|
|
360
|
+
- **Guard empty lists.** A literal `IN ()` is invalid SQL, and an empty argument list makes `NOT_IN` match everything; never rely on an empty exclusion list to protect an update or removal.
|
|
361
|
+
- **Prefer `LEFT` joins for optional enrichment** and select only needed columns.
|
|
362
|
+
- **Builder vs Filter.** Profile conditions are always Builder; Filter is only for API search requests. Do not try to emulate one with the other.
|
|
363
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
> Part of [The Query DSL](query-dsl.QUERY-DSL.md).
|
|
2
|
+
|
|
3
|
+
## Runtime rules and authoring shape
|
|
4
|
+
|
|
5
|
+
Builder strict mode is enabled by QUERY_SINGLE/QUERY_MANY steps and transformations, not by an authored `strict` option. It rejects raw QUERY operands, unknown leaf operators, FIELD identifiers outside its pattern, invalid PARAM/ARG names, invalid source/join aliases, unsupported join types and non-letter interval units. Ordinary and QUERY metrics, UPDATE_TASK_DATA_STATUS, TRACK_FOR_REMOVAL and the underlying status/indexing writer use permissive Builder paths. On permissive paths, FIELD text and obsolete QUERY operand SQL are emitted verbatim; an unknown binary operator falls through as uppercased SQL between the formatted operands. This is not an extension registry or a safety guarantee: an unknown token can fail SQL or change its meaning. Use documented typed operands and predicate tokens on every host. Strictness does **not** validate column existence, join uniqueness, all possible SQL type combinations or groupBy/orderBy pass-through strings.
|
|
6
|
+
|
|
7
|
+
Strict FIELD accepts bare `column` or `alias.column`, at most one dot; each part matches `^[a-z0-9_]{1,63}$`. Thus `_.id` is pattern-accepted but `V.id`, `_.name;delete` and `a.b.c` fail. Correct `V.id` to the actual lowercase alias, not a quoted SQL escape. **Pattern acceptance is not full PostgreSQL identifier validation:** numeric-leading parts also pass this regex and are emitted unquoted. Bare FIELD `"123"` becomes a numeric SQL expression rather than a column reference; digit-leading dotted parts/aliases may fail SQL. Choose actual unquoted lowercase physical identifiers beginning with a letter or underscore. A valid-looking misspelling such as `_.skuu` reaches SQL and can fail with column-not-found. Strict PARAM/ARG names strip leading `@` and match `^[A-Za-z_][A-Za-z0-9_]{0,62}$`; camelCase is allowed in parameter names, not FIELD identifiers.
|
|
8
|
+
|
|
9
|
+
**Migration, not runnable legacy example:** `{type: QUERY, sql: "..."}` can inject SQL on permissive hosts and is rejected by strict query hosts with “The raw 'QUERY' operand (verbatim SQL) is not allowed on the QUERY_SINGLE/QUERY_MANY path.” A column reference becomes FIELD; a literal becomes VALUE; a known host value becomes PARAM or declared transform ARG. Unknown raw expressions have no general typed replacement: do not label a guessed expression safe.
|
|
10
|
+
|
|
11
|
+
Unsafe interpolation such as `orderBy: ["{{ user_supplied_sql }}"]` or `groupBy: ["{{ user_supplied_sql }}"]` is non-copyable. The Builder joins configured grouping/ordering strings into SQL without strict identifier guards; binding a VALUE/PARAM cannot turn a value into a safe identifier or ordering clause. Use fixed application-owned grouping/ordering only at a consumer that actually reads it: QUERY metrics read `metadata.sql.groupBy`, while query steps/transforms do not read authored groupBy/orderBy/paging members. Adding them to a query step/transform cannot select a deterministic “first” row. See [Ordering and paging](query-dsl.QUERY-DSL.the-shape.query-envelope.md#ordering-and-paging) for consuming-site differences.
|
|
12
|
+
|
|
13
|
+
**Destructive boundary:** missing `UPDATE_TASK_DATA_STATUS.data.where` does not universally fail closed; it can update every eligible row. TRACK_FOR_REMOVAL adds a last-seen/runStart condition and excludes Removed, but still requires correct runStart, explicit save/seen accounting and a deliberately bounded author condition where needed. See [removal step](hexasync://docs/steps/TRACK_FOR_REMOVAL), [status step](hexasync://docs/steps/UPDATE_TASK_DATA_STATUS) and [pull lifecycle](hexasync://docs/pullers/PULLERS). Permissive recognition is never a safety certification.
|
|
14
|
+
|
|
15
|
+
Typed migration in two concrete contexts, assuming this static UUID resolves an existing task with a sku column: replace raw SQL `_.sku = 'A1'` with the equality leaf below. As an ordinary COUNT metric's `metadata.where`, it narrows counted eligible rows. As status step data, it narrows affected rows; it does not make the underlying mutation host strict.
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
taskId: '11111111-1111-4111-8111-111111111111'
|
|
19
|
+
statusToAdd: Changed
|
|
20
|
+
statusToRemove: 0
|
|
21
|
+
skipStatus: 0
|
|
22
|
+
where:
|
|
23
|
+
op: '='
|
|
24
|
+
data:
|
|
25
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
26
|
+
rightOp: { type: VALUE, val: A1 }
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Only existing matching sku rows become eligible for that status transition; rows with other sku values remain outside the author condition. `affected` is the count of rows actually changed, not a preview or selected row payload. Put this under `UPDATE_TASK_DATA_STATUS.data`; putting it under `metadata.where` would not supply that step's predicate. For TRACK_FOR_REMOVAL the same author `where` is additionally AND-composed with host-owned stale/not-Removed conditions. Do not remove those guards or replace the complete tree with an unchecked raw expression.
|
|
30
|
+
|
|
31
|
+
### Strict query versus permissive consumers: worked safety contrast
|
|
32
|
+
|
|
33
|
+
Assume the example task UUID resolves in the current profile, `sku` is a unique lowercase physical column and A1 has title `Alpha`. At a workflow's `steps[]` entry, this minimal strict read binds the root argument as a value, not SQL:
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
key: SAFE_READ
|
|
37
|
+
rootStep: true
|
|
38
|
+
displayType: QUERY_SINGLE
|
|
39
|
+
arguments: { wantedSku: A1 }
|
|
40
|
+
data:
|
|
41
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: v }
|
|
42
|
+
select: [{ alias: v, field: title }]
|
|
43
|
+
where:
|
|
44
|
+
op: '='
|
|
45
|
+
data:
|
|
46
|
+
leftOp: { type: FIELD, field: v.sku }
|
|
47
|
+
rightOp: { type: PARAM, val: wantedSku }
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The executor enables strict guards, compiles the selected identifier and binds `@wantedSku` from root arguments. Expected `_outputs.SAFE_READ` is `{row: {title: Alpha}, found: true}`; with no A1 row it is `{row: null, found: false}`. QUERY_MANY uses the same strict boundary but returns `{rows, count}`. The uppercase S in `wantedSku` is allowed by the parameter-name grammar; changing `v.sku` to `V.sku` fails FIELD validation, not parameter binding. A schema completion is not proof that the database column exists. See [QUERY_SINGLE](steps.QUERY_SINGLE.md#contract), [QUERY_MANY](steps.QUERY_MANY.md#contract), [source resolution](query-dsl.QUERY-DSL.the-shape.query-envelope.md), [projection](query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md#select-projection) and [query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md).
|
|
51
|
+
|
|
52
|
+
Composed transform usage belongs to the selected task's transformation array, not steps[]. Assume the enclosing task has the same sku/title table and item `{sku: A1, active: true}`; apply this QUERY_SINGLE envelope:
|
|
53
|
+
|
|
54
|
+
```yaml
|
|
55
|
+
type: QUERY_SINGLE
|
|
56
|
+
metadata:
|
|
57
|
+
from: { entityType: SELF, alias: v }
|
|
58
|
+
select: [{ alias: v, field: title, as: product_title }]
|
|
59
|
+
where:
|
|
60
|
+
op: AND
|
|
61
|
+
data:
|
|
62
|
+
- op: '='
|
|
63
|
+
data:
|
|
64
|
+
leftOp: { type: FIELD, field: v.sku }
|
|
65
|
+
rightOp: { type: PARAM, val: sku }
|
|
66
|
+
- op: '='
|
|
67
|
+
data:
|
|
68
|
+
leftOp: { type: FIELD, field: v.active }
|
|
69
|
+
rightOp: { type: VALUE, val: true }
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Assume the matching stored row is active=true. SELF resolves the enclosing table; item sku becomes the PARAM binding and true becomes a generated literal binding. Both AND children must hold, so expected enriched item is `{sku: A1, active: true, product_title: Alpha}`. No matching active row leaves the original item unchanged. SELF is available here but rejected in query steps. The [transformation chain](hexasync://docs/transformations/TRANSFORMATIONS/transformation-chain-contract) owns envelope placement, ordering and downstream item handling; [runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) and [workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) own their distinct context timing.
|
|
73
|
+
|
|
74
|
+
At an ordinary COUNT metric's `metadata.where`, use the same typed sku/active AND tree with alias `_` and VALUE A1 rather than item PARAM sku: this host supplies no generic item/argument bindings. The expected total is the count of otherwise eligible active A1 rows, not an enriched item. A QUERY metric may instead bind `metadata.params` and place this tree at `metadata.sql.matchedWhere`; see the [consumer matrix](query-dsl.QUERY-DSL.where-it-is-used.md) and [metrics owner](hexasync://docs/metrics/METRICS_REFERENCE). Neither metric route enables strict guards simply because the tree is typed.
|
|
75
|
+
|
|
76
|
+
For a composed removal step, assume a complete successful pull has explicitly saved its received rows with the same established unix-ms `runStart=1000` and positive run-cumulative seen count for this task. At TRACK_FOR_REMOVAL.data, add a business boundary:
|
|
77
|
+
|
|
78
|
+
```yaml
|
|
79
|
+
taskId: '11111111-1111-4111-8111-111111111111'
|
|
80
|
+
where:
|
|
81
|
+
op: AND
|
|
82
|
+
data:
|
|
83
|
+
- op: '='
|
|
84
|
+
data:
|
|
85
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
86
|
+
rightOp: { type: VALUE, val: A1 }
|
|
87
|
+
- op: '='
|
|
88
|
+
data:
|
|
89
|
+
leftOp: { type: FIELD, field: _.active }
|
|
90
|
+
rightOp: { type: VALUE, val: true }
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
For otherwise transition-eligible rows, an active A1 row with last-seen=999 is stale and receives the default Removed|Changed transition; an active A1 row with last-seen=1000, an inactive A1 row and a stale B2 row are excluded. Already Removed rows are excluded independently. The step AND-composes its last-seen and not-Removed guards with the complete author tree before passing it to the same permissive status/indexing writer used by UPDATE_TASK_DATA_STATUS. That writer generates VALUE bindings and returns the number actually transitioned, not rows. Internal status draining uses fixed __id keyset pages of 5000; it does not impose an author-filter requirement or make raw SQL safe. There is no extra public `indexing.where` envelope to author this internal call. Status clocks and mutation lifecycle details belong to [status and row clocks](hexasync://docs/tasks/TASKS-AND-TABLES/status-and-row-clocks), [SAVE_TASK_DATA](hexasync://docs/steps/SAVE_TASK_DATA), [TRACK_FOR_REMOVAL](hexasync://docs/steps/TRACK_FOR_REMOVAL) and [UPDATE_TASK_DATA_STATUS](hexasync://docs/steps/UPDATE_TASK_DATA_STATUS).
|
|
94
|
+
|
|
95
|
+
**Non-copyable boundaries and corrections:**
|
|
96
|
+
|
|
97
|
+
- `{type: QUERY, sql: "..."}` or an unknown leaf `op: CUSTOM_OP` is not a supported safety example. The strict query paths reject them; permissive compilation can pass their SQL text onward. Replace a raw column with FIELD, a raw literal with VALUE and a supplied value with host-supported PARAM/ARG. Use a documented operator with the intended semantics; there is no general safe rewrite for arbitrary SQL.
|
|
98
|
+
- FIELD `V.id`, `a.b.c` and a 64-character identifier part fail strict validation. Use the real lowercase alias/column with one or two parts of 1–63 characters. PARAM/ARG `orderId` is pattern-accepted, whereas `bad-name` fails strict parameter validation; grammar acceptance does not create a missing host binding.
|
|
99
|
+
- At UPDATE_TASK_DATA_STATUS, missing/null `where` or `{}` removes the author restriction, so a nonzero transition can affect all otherwise eligible rows. Do not demonstrate that as a safe broad update. Preserve an explicit typed business predicate; both transition masks zero is a separate noop, not validation of a supplied predicate.
|
|
100
|
+
- At TRACK_FOR_REMOVAL, missing/null/empty author `where` leaves only the host stale/not-Removed guards. Explicit seen<=0 or a recorded nonpositive per-task seen total skips; missing seen accounting does not automatically skip a standalone sweep. Missing/unparseable runStart fails before mutation. A wrong but parseable runStart or incomplete save accounting can still mark valid rows stale: correct the lifecycle inputs, not the predicate compiler.
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
Filter strict identifier validation is independent of Builder mode. The two languages combine at supported request-consuming sites as **profile Builder rule AND request Filter AND cursor condition**; request filtering narrows, never replaces, the authored rule.
|
|
104
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
> Part of [The Query DSL](query-dsl.QUERY-DSL.md).
|
|
2
|
+
|
|
3
|
+
## Sensible configuration
|
|
4
|
+
|
|
5
|
+
```yaml
|
|
6
|
+
steps:
|
|
7
|
+
- key: FIND_ITEM
|
|
8
|
+
displayType: QUERY_SINGLE
|
|
9
|
+
arguments:
|
|
10
|
+
wantedSku: '$(_inputs.sku)'
|
|
11
|
+
data:
|
|
12
|
+
from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
|
|
13
|
+
select:
|
|
14
|
+
- { alias: _, field: sku }
|
|
15
|
+
- { alias: _, field: title }
|
|
16
|
+
where:
|
|
17
|
+
op: '='
|
|
18
|
+
data:
|
|
19
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
20
|
+
rightOp: { type: ARG, key: wantedSku }
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
One explicit source with the conventional `_` alias, an explicit projection of only the needed columns, and a selective predicate whose value comes from `arguments` through `ARG` (bound as a parameter, never spliced into SQL). This is the shape strict hosts accept and the safest to maintain.
|
|
24
|
+
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
> Part of [The Query DSL](query-dsl.QUERY-DSL.md) › [The shape](query-dsl.QUERY-DSL.the-shape.md).
|
|
2
|
+
|
|
3
|
+
### Builder condition tree
|
|
4
|
+
|
|
5
|
+
Builder is parsed JSON/YAML, never a tokenized string expression. One node has the explanatory signature `op:string` plus `data:...` (a type signature, not a copyable payload); condition-node arrays occur only as logical group data (operand lists have their own contract). Tree nesting, not textual precedence, determines grouping. Authored field names are exactly `op`, `data`, `leftOp`, `rightOp` and `caseSensitive`; operator case normalization does not rename these fields. The profile reader materializes group arrays and leaf objects before compilation; an arbitrary in-memory object or JSON-deserialized payload is not automatically a compatible Builder input.
|
|
6
|
+
|
|
7
|
+
| Authored member | Type and requiredness | Default, applicability and effect |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `op` | Required string | Selects a group or predicate; no runtime default should be assumed from editor suggestion `=`. Canonical uppercase tokens are offered by IntelliSense. |
|
|
10
|
+
| `data` | Required object or child-node array | AND/OR uses an array; predicates use an operand record. No implicit text parsing. |
|
|
11
|
+
| `data[]` | One or more complete child `{op,data}` nodes in the authored contract | Children recursively compile in array order and receive parentheses. No declared maximum cardinality/depth. Empty arrays emit `()` and are not valid SQL predicates; runtime skips null child entries, which does not make null a supported authored child. |
|
|
12
|
+
| `data.leftOp` | Required operand object at every leaf | Operator-specific left value/field; operand default type FIELD is runtime compatibility, not a group field. See [Operands](query-dsl.QUERY-DSL.operands.md) for exact members, value types and binding precedence. |
|
|
13
|
+
| `data.rightOp` | Required operand at binary leaves; required range object at BETWEEN | Not read by null/LAST predicates; omit it there. No default comparison operand or implicit field/value conversion. |
|
|
14
|
+
| `data.rightOp.from`, `data.rightOp.to` | Both required operand objects for BETWEEN only | Inclusive lower/upper endpoints are formatted in that order using the same [operand contract](query-dsl.QUERY-DSL.operands.md), not bare scalar endpoints as in API Filter. No endpoint default or automatic swap. |
|
|
15
|
+
| `data.caseSensitive` | Optional boolean, default true | Leaf operand/text/regex formatting flag, not a universal database collation setting. Null/LAST should omit it unless intentionally applying operand formatting. |
|
|
16
|
+
|
|
17
|
+
An absent optional host `where` supplies no author predicate; it is not the same as a node missing required members. AND/OR with object `data` fails with “Expected array for logical operator”; a non-group array/string payload fails with “Unexpected data type for condition”. Missing/null required leaf operands fail during operand formatting rather than yielding a match-all or no-match predicate. A whole string supplied as `where` is not deserialized into a typed tree. Correct the shape, do not remove a failing predicate as recovery. Extra unrecognized members can be ignored by runtime readers, but the closed authored schema rejects them; adding `condition` to a Builder node does not switch languages. See [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for strict versus permissive execution.
|
|
18
|
+
|
|
19
|
+
Minimal profile condition, placed at an ordinary metric's `metadata.where`, query transformation's `metadata.where`, or query step's `data.where` (see [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md)). A QUERY metric instead uses `metadata.sql.matchedWhere`/`unmatchedWhere`, not top-level `metadata.where`.
|
|
20
|
+
|
|
21
|
+
```yaml
|
|
22
|
+
op: '='
|
|
23
|
+
data:
|
|
24
|
+
leftOp: { type: FIELD, field: _.sku }
|
|
25
|
+
rightOp: { type: VALUE, val: A1 }
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The same minimal condition serialized as JSON is `{"op":"=","data":{"leftOp":{"type":"FIELD","field":"_.sku"},"rightOp":{"type":"VALUE","val":"A1"}}}`. JSON versus YAML changes serialization only; neither representation is the string expression `_.sku = A1`, and neither is an API Filter node. The snippets are the predicate value, not complete profile, metric or step envelopes; keep the host's required source/projection and other members described by [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md).
|
|
29
|
+
|
|
30
|
+
Assume a real sku column and eligible rows with sku A1 and B2; the predicate binds A1 as a value and matches A1, not B2. A COUNT metric reports the matching count; a query step returns the matching row(s), not the tree itself. API request filtering instead uses `{ "condition":"eq", "leftOp":"sku", "rightOp":"A1" }` under **filters** in a [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md); ordinary entity offset search returns the matching items and filtered totalCount. Neither object is interchangeable with the other. A string `where: "_.sku = A1"` is a rejected authoring shape; use the tree above. Profile entry/context timing belongs to [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope); this literal condition needs no runtime argument binding.
|
|
31
|
+
|
|
32
|
+
Nested profile composition, at the same host paths, assuming real boolean active, nullable archived_at and text status columns:
|
|
33
|
+
|
|
34
|
+
```yaml
|
|
35
|
+
op: AND
|
|
36
|
+
data:
|
|
37
|
+
- op: '='
|
|
38
|
+
data:
|
|
39
|
+
leftOp: { type: FIELD, field: _.active }
|
|
40
|
+
rightOp: { type: VALUE, val: true }
|
|
41
|
+
- op: OR
|
|
42
|
+
data:
|
|
43
|
+
- op: IS_NULL
|
|
44
|
+
data:
|
|
45
|
+
leftOp: { type: FIELD, field: _.archived_at }
|
|
46
|
+
- op: '='
|
|
47
|
+
data:
|
|
48
|
+
leftOp: { type: FIELD, field: _.status }
|
|
49
|
+
rightOp: { type: VALUE, val: ready }
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
With active=true, either SQL NULL in archived_at or status=ready permits a row; active=false does not. An absent database column is an error, not IS_NULL. The inner OR cannot override the outer active requirement. Counts include only qualifying rows; row-returning queries exclude rows outside the complete tree. Filter composition has an independently authored [nested request example](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md): children move to group `rightOp`, fields become bare names, and literal right operands lose Builder wrappers; this is an explicit rewrite, not an automatic conversion. At a profile-constrained metric detail consumer, the request tree is AND-composed with the profile predicate, so it can narrow but not widen that profile result.
|
|
53
|
+
|
|
54
|
+
Worked composed input: take four distinct eligible rows `(active, archived_at, status)` of `(true, NULL, draft)`, `(true, non-null timestamp, ready)`, `(true, non-null timestamp, draft)` and `(false, NULL, ready)`. The inner OR admits the first, second and fourth rows; the outer AND removes the fourth, leaving only the first two. A COUNT metric therefore reports 2 for its total facet under those assumptions because it counts distinct matching IDs; a row-returning query selects those two before any consumer-specific single-row or paging restriction. At a metric detail endpoint that combines the profile rule with request filtering, an additional `filters: {condition: eq, leftOp: status, rightOp: ready}` narrows that result to the second row; it does not admit the inactive fourth row.
|
|
55
|
+
|
|
56
|
+
**Execution versus dashboard presentation:** the worker compiles the profile Builder tree into SQL predicates and generated bindings before database execution. The dashboard's filter editor groups request `condition`/`rightOp` nodes and renders their logical summary; it does not execute a profile Builder tree or translate `op`/`data`. Its shared Filter typing is narrower than the backend parser (for example, boolean literals are not represented in that type), so backend request examples are not promises of every editor control. Presentation-only row/group IDs do not define SQL grouping; the submitted nesting does.
|
|
57
|
+
|