@beehexa/hexasync-ai-toolkit 2611.8.3 → 2612.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +3 -4
- package/.cursor-plugin/plugin.json +3 -4
- package/README.md +5 -74
- package/dist/cli.js +15 -2070
- package/gemini-extension.json +2 -11
- package/openclaw.extension.mjs +2 -3
- package/openclaw.plugin.json +2 -2
- package/package.json +3 -4
- package/plugin.json +3 -4
- package/skills/hexasync-connections/SKILL.md +11 -16
- package/skills/hexasync-connections/references/INDEX.md +20 -2
- package/skills/hexasync-connections/references/INSTALL.md +5 -48
- package/skills/hexasync-connections/references/connections.CONNECTIONS.api-recovery.md +1 -1
- package/skills/hexasync-connections/references/connections.CONNECTIONS.captured-call-and-authenticated-composition.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.framework-understood-connection-option-catalogue.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.how-a-step-finds-its-connection.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.md +1 -1
- package/skills/hexasync-connections/references/connections.CONNECTIONS.one-connection-one-credential-scope.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.related.md +5 -5
- package/skills/hexasync-connections/references/connections.CONNECTIONS.the-self-connector.md +1 -1
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.md +16 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-error-handling/SKILL.md +9 -16
- package/skills/hexasync-error-handling/references/INDEX.md +1 -1
- package/skills/hexasync-error-handling/references/INSTALL.md +5 -48
- package/skills/hexasync-error-handling/references/routing.NEXT.md +10 -10
- package/skills/hexasync-error-handling/references/steps.EXCEPTION.md +5 -5
- package/skills/hexasync-error-handling/references/steps.Error.md +8 -8
- package/skills/hexasync-expressions/SKILL.md +10 -24
- package/skills/hexasync-expressions/references/INDEX.md +8 -3
- package/skills/hexasync-expressions/references/INSTALL.md +5 -48
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.arguments--computed-before-the-step-runs.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.dialect-classification-and-silent-scriban-fallback.md +2 -2
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.exact-mutation-timeline.md +4 -4
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.executor-results-are-not-downstream-values.md +2 -2
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.graceful-failures-and-run-errors.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-call-site-scope-and-bindings.md +17 -17
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-engine-pinned-version-and-restrictions.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonpath-expressions.md +2 -2
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.related.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +12 -12
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.host-qualified-authoring-examples.md +2 -2
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-expressions/references/steps.JSONata.md +8 -8
- package/skills/hexasync-expressions/references/steps.Liquid.md +2 -2
- package/skills/hexasync-expressions/references/steps.Scriban.md +9 -9
- package/skills/hexasync-field-mapping/SKILL.md +13 -19
- package/skills/hexasync-field-mapping/references/INDEX.md +2 -2
- package/skills/hexasync-field-mapping/references/INSTALL.md +5 -48
- package/skills/hexasync-field-mapping/references/steps.SAVE_TASK_DATA.md +19 -19
- package/skills/hexasync-field-mapping/references/tables.TABLES.best-practices.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.fields.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.minimal-declaration-and-composed-usage.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.related.md +5 -5
- package/skills/hexasync-field-mapping/references/tables.TABLES.the-system-columns-are-not-declared-here.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.related.md +6 -6
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
- package/skills/hexasync-metrics-reports/SKILL.md +9 -16
- package/skills/hexasync-metrics-reports/references/INDEX.md +1 -1
- package/skills/hexasync-metrics-reports/references/INSTALL.md +5 -48
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.common-metadata-properties.md +1 -1
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-configuration.md +1 -1
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-kinds-reference.md +2 -2
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.related.md +4 -4
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.when-to-use.md +1 -1
- package/skills/hexasync-metrics-reports/references/reports.REPORTS.md +4 -4
- package/skills/hexasync-metrics-reports/references/steps.METRIC_QUERY.md +2 -2
- package/skills/hexasync-metrics-reports/references/steps.QUERY_METRICS.md +8 -8
- package/skills/hexasync-pullers/SKILL.md +11 -18
- package/skills/hexasync-pullers/references/INDEX.md +3 -3
- package/skills/hexasync-pullers/references/INSTALL.md +5 -48
- package/skills/hexasync-pullers/references/pullers.PULLERS.api-error-classification.md +3 -3
- package/skills/hexasync-pullers/references/pullers.PULLERS.entity-classification.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.entry-context-and-transitions.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.overview.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.page-termination-and-the-four-platform-guards.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.persistence-and-safe-full-pull-removal.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-afterpullsteps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-beforepullsteps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-contracts.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-onerrorsteps.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-pullsteps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-steps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.property-reference.md +6 -6
- package/skills/hexasync-pullers/references/pullers.PULLERS.puller-completeness-contract.md +6 -6
- package/skills/hexasync-pullers/references/pullers.PULLERS.related.md +7 -7
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-resume-computation.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-webhook-vs-puller-division.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.two-puller-host-modes-not-two-workflow-constructs.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.watermark-trustworthiness.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-new-kind-snapshot-pull.md +2 -2
- package/skills/hexasync-pullers/references/steps.PULLER.md +8 -8
- package/skills/hexasync-pushers/SKILL.md +20 -22
- package/skills/hexasync-pushers/references/INDEX.md +2 -2
- package/skills/hexasync-pushers/references/INSTALL.md +5 -48
- package/skills/hexasync-pushers/references/pushers.PUSHERS.association-transform-routing.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.best-practices.md +3 -3
- package/skills/hexasync-pushers/references/pushers.PUSHERS.expression-roots-differ-from-a-puller.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.fields.md +4 -4
- package/skills/hexasync-pushers/references/pushers.PUSHERS.four-step-phases.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.indirect-pushers.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.minimal-configuration.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-beforepushsteps.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-contracts.md +3 -3
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-finalsteps.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.related.md +6 -6
- package/skills/hexasync-pushers/references/pushers.PUSHERS.resolution-ordering-locks-and-retries.md +4 -4
- package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-direct-push-with-dependency.md +1 -1
- package/skills/hexasync-pushers/references/steps.PUSHER.md +8 -8
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_STATUS.md +14 -14
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +48 -21
- package/skills/hexasync-query-dsl/SKILL.md +13 -17
- package/skills/hexasync-query-dsl/references/INDEX.md +2 -2
- package/skills/hexasync-query-dsl/references/INSTALL.md +5 -48
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.best-practice.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +17 -9
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md +4 -4
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md +5 -5
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.regex-predicates-complete-scalar-postgresql-patterns.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.verbatim-scalar-comparisons.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md +4 -4
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.join-types.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.when-to-use.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.where-it-is-used.md +7 -7
- package/skills/hexasync-query-dsl/references/steps.QUERY_MANY.md +9 -9
- package/skills/hexasync-query-dsl/references/steps.QUERY_SINGLE.md +9 -9
- package/skills/hexasync-query-dsl/references/steps.SQL.md +12 -12
- package/skills/hexasync-query-dsl/references/steps.SQL_PROXY.md +9 -9
- package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -16
- package/skills/hexasync-startup-tasks-scheduling/references/INDEX.md +3 -3
- package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +5 -48
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.legacy-target-tasks.md +3 -3
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.metric-defaults.md +1 -1
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.related.md +5 -5
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.scheduler-metadata.md +6 -6
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.when-to-use.md +2 -2
- package/skills/hexasync-startup-tasks-scheduling/references/steps.ENQUEUER.md +9 -9
- package/skills/hexasync-steps-api-http/SKILL.md +19 -26
- package/skills/hexasync-steps-api-http/references/INDEX.md +9 -4
- package/skills/hexasync-steps-api-http/references/INSTALL.md +5 -48
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.best-practices.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.execution-order-and-shared-values.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parsejson-boundary.md +2 -2
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.related.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.same-name-different-placement-grammars.md +4 -4
- package/skills/hexasync-steps-api-http/references/routing.NEXT.md +7 -7
- package/skills/hexasync-steps-api-http/references/steps.API.api-pagination.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.API.contract.md +2 -2
- package/skills/hexasync-steps-api-http/references/steps.API.failure-handling.md +2 -2
- package/skills/hexasync-steps-api-http/references/steps.API.fields.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.API.related.md +4 -4
- package/skills/hexasync-steps-api-http/references/steps.INDEX.md +90 -90
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE._history--the-per-step-occurrence-ring.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.arguments-and-routing.md +2 -2
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.best-practices.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.one-canonical-workflow-component.md +16 -16
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.recovery-bypasses-and-connector-restart.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.related.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.shape.md +4 -4
- package/skills/hexasync-steps-control-data/SKILL.md +25 -31
- package/skills/hexasync-steps-control-data/references/INDEX.md +8 -3
- package/skills/hexasync-steps-control-data/references/INSTALL.md +5 -48
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-steps-control-data/references/steps.BASE64_TO_MIME_TYPE.md +3 -3
- package/skills/hexasync-steps-control-data/references/steps.Begin.md +3 -3
- package/skills/hexasync-steps-control-data/references/steps.CACHE.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.Composite.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.DIRECT_INDEX.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.DOWNLOAD_CSV.md +23 -23
- package/skills/hexasync-steps-control-data/references/steps.EXCEL_READER.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.End.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.GET_KEY_VALUE.md +6 -6
- package/skills/hexasync-steps-control-data/references/steps.GraphQL.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.IF.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.IGNORE_ITEM.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.INDEX.md +48 -48
- package/skills/hexasync-steps-control-data/references/steps.INVALIDATE_CACHE.md +2 -2
- package/skills/hexasync-steps-control-data/references/steps.LOOKUP_STEP.md +8 -8
- package/skills/hexasync-steps-control-data/references/steps.OData.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.PUBLISH_EVENT.md +5 -5
- package/skills/hexasync-steps-control-data/references/steps.QueryDSL.md +3 -3
- package/skills/hexasync-steps-control-data/references/steps.REMOVE_DATA.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.RESET_ITEM.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.RESOLVE_RAW_DATA.md +11 -11
- package/skills/hexasync-steps-control-data/references/steps.Restful.md +6 -6
- package/skills/hexasync-steps-control-data/references/steps.SEED_DATA.md +10 -10
- package/skills/hexasync-steps-control-data/references/steps.SET_KEY_VALUE.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.SLEEP.md +8 -8
- package/skills/hexasync-steps-control-data/references/steps.SWITCH.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.TRACK_FOR_REMOVAL.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.UPDATE_TASK_DATA_STATUS.md +13 -13
- package/skills/hexasync-steps-control-data/references/steps.VALUES.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.VERIFY_CACHED.md +5 -5
- package/skills/hexasync-steps-control-data/references/steps.cURL.md +8 -8
- package/skills/hexasync-tables-tasks-objects/SKILL.md +11 -18
- package/skills/hexasync-tables-tasks-objects/references/INDEX.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +5 -48
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.fields.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.related.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.using-resolved-prerequisite-data.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objectAssociations.OBJECT-ASSOCIATIONS.md +7 -7
- package/skills/hexasync-tables-tasks-objects/references/objects.object.best-practices-and-pitfalls.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dataprocessing.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dependencies.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.description.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.enqueue.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.fromconnectionid.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.id.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignorechange.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignoreremoval.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.integrationtype.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.isdirtyremovable.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metricgroups.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metrics.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.name.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.newtablename.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.oldtablename.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.priority.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.puller.md +4 -4
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.pusher.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.queuer.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.toconnectionid.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.type.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.valuetablename.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.viewname.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.visible.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.minimal-declaration.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.related.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/steps.SAVE_TASK_DATA.md +16 -16
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.best-practices.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.fields.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.related.md +3 -3
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.fields.md +5 -5
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.related.md +6 -6
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.status-and-row-clocks.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.system-column-contract.md +1 -1
- package/skills/hexasync-templates/SKILL.md +16 -30
- package/skills/hexasync-templates/references/AI-INDEX.md +36 -35
- package/skills/hexasync-templates/references/INDEX.md +9 -4
- package/skills/hexasync-templates/references/INSTALL.md +5 -48
- package/skills/hexasync-templates/references/KB-INDEX.md +98 -98
- package/skills/hexasync-templates/references/PROFILE-ROOT.composed-and-render-only-metadata.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.md +1 -2
- package/skills/hexasync-templates/references/PROFILE-ROOT.minimal-worker-facing-profile.md +2 -2
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-references.md +10 -10
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connectors.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.dependencies.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +14 -3
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api_proxy.md +69 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md +76 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +4 -2
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +7 -3
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +4 -4
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.legacy-roots--do-not-author.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.metricgroups.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objectassociations.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objects.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pullers.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pushers.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.reports.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.startuptasks.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.tables.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.transformations.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.validations.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.webhooks.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.recommendation-selection.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.reference-composition-across-run-and-render-scope.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.related.md +1 -1
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-transformations/SKILL.md +9 -16
- package/skills/hexasync-transformations/references/INDEX.md +2 -2
- package/skills/hexasync-transformations/references/INSTALL.md +5 -48
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.related.md +6 -6
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
- package/skills/hexasync-validations/SKILL.md +9 -16
- package/skills/hexasync-validations/references/INDEX.md +1 -1
- package/skills/hexasync-validations/references/INSTALL.md +5 -48
- package/skills/hexasync-validations/references/steps.CHECK_FORMAT.md +6 -6
- package/skills/hexasync-validations/references/validations.VALIDATIONS.fields.md +1 -1
- package/skills/hexasync-validations/references/validations.VALIDATIONS.how-validations-behave.md +2 -2
- package/skills/hexasync-validations/references/validations.VALIDATIONS.md +1 -1
- package/skills/hexasync-validations/references/validations.VALIDATIONS.not-the-query-dsl.md +1 -1
- package/skills/hexasync-webhooks/SKILL.md +12 -19
- package/skills/hexasync-webhooks/references/INDEX.md +2 -2
- package/skills/hexasync-webhooks/references/INSTALL.md +5 -48
- package/skills/hexasync-webhooks/references/steps.FORWARD.md +7 -7
- package/skills/hexasync-webhooks/references/steps.WEBHOOK_FORWARD.md +10 -10
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.best-practices.md +2 -2
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.gateway-mcp-webhook-workflow.md +1 -1
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.md +2 -2
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-finalsteps.md +1 -1
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-pullsteps.md +6 -6
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.related.md +6 -6
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.autoenqueue.md +2 -2
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.dataparser.md +3 -3
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.options.md +1 -1
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.pullsteps.md +1 -1
- package/.cursor-plugin/mcp.json +0 -12
- package/.mcp.json +0 -11
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
- package/skills/hexasync-templates/references/PROFILE-ROOT.getreadyflows-1.md +0 -33
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
## Contract
|
|
6
6
|
|
|
7
|
-
`PUSHER` immediately runs the pusher associated with a task for **one stored item** of that task, and waits for it. The task is chosen by `arguments.object_id` (or the older `data.objectId`); the item by `arguments.item_id` — the stored item's id, not a source or destination business id. The task-to-pusher binding comes from
|
|
7
|
+
`PUSHER` immediately runs the pusher associated with a task for **one stored item** of that task, and waits for it. The task is chosen by `arguments.object_id` (or the older `data.objectId`); the item by `arguments.item_id` — the stored item's id, not a source or destination business id. The task-to-pusher binding comes from object associations (search the standards MCP); the push itself (request, destination handling) is defined by the [pusher](pushers.PUSHERS.md).
|
|
8
8
|
|
|
9
9
|
**When to use:** Use it when a workflow must push a specific item right away instead of waiting for the task's queue schedule — e.g. push a just-saved item synchronously, then branch on the push result.
|
|
10
|
-
**Do not use it when** you want many items pushed: queue them with
|
|
10
|
+
**Do not use it when** you want many items pushed: queue them with ENQUEUER (search the standards MCP) instead. It does not save items, batch, retry, or define a request.
|
|
11
11
|
|
|
12
12
|
**Syntax** (annotated skeleton):
|
|
13
13
|
|
|
@@ -133,7 +133,7 @@ Syntax: `noError: <boolean | string | null>`
|
|
|
133
133
|
|
|
134
134
|
Syntax: `responseFilters: <object | null>`
|
|
135
135
|
|
|
136
|
-
`responseFilters: <parser → output → {expression}>` — selects named outputs from the push result context, using the shared
|
|
136
|
+
`responseFilters: <parser → output → {expression}>` — selects named outputs from the push result context, using the shared response-filter grammar (search the standards MCP). Without filters the step outputs `{}`. Child push context keys win over parent keys during evaluation. `acceptedStatuses` has no effect here.
|
|
137
137
|
|
|
138
138
|
```yaml
|
|
139
139
|
- key: PUSH_ITEM
|
|
@@ -180,7 +180,7 @@ Assumes the task and item exist and the scheduler is enabled. `_outputs.PUSH_ITE
|
|
|
180
180
|
|
|
181
181
|
### Composed: continue on failure and branch
|
|
182
182
|
|
|
183
|
-
|
|
183
|
+
VALUES (search the standards MCP) supplies the ids; IF (search the standards MCP) checks the failure sentinel and raises Error (search the standards MCP).
|
|
184
184
|
|
|
185
185
|
```yaml
|
|
186
186
|
- key: SELECT_ITEM
|
|
@@ -225,7 +225,7 @@ A skipped push (scheduler disabled, item locked) and an unfiltered success both
|
|
|
225
225
|
|
|
226
226
|
## Best practices
|
|
227
227
|
|
|
228
|
-
- Prefer
|
|
228
|
+
- Prefer ENQUEUER (search the standards MCP) for many items: queued pushes respect concurrency and scheduling; a synchronous `PUSHER` per item makes the parent flow as slow as all pushes combined.
|
|
229
229
|
- Use `noError: true` only together with an explicit `has_error` check; otherwise failures silently pass.
|
|
230
230
|
- Keep `force_push` off by default; turning it on overrides an operator's decision to stop pushing.
|
|
231
231
|
- Avoid pushing the item that is currently being pushed (from its own pusher flow): the lock makes it a silent no-op.
|
|
@@ -233,6 +233,6 @@ A skipped push (scheduler disabled, item locked) and an unfiltered success both
|
|
|
233
233
|
## Related
|
|
234
234
|
|
|
235
235
|
- [Pusher lifecycle](pushers.PUSHERS.md)
|
|
236
|
-
-
|
|
237
|
-
-
|
|
238
|
-
-
|
|
236
|
+
- Workflow and step envelope (search the standards MCP)
|
|
237
|
+
- Arguments and routing (search the standards MCP)
|
|
238
|
+
- Step catalog (search the standards MCP)
|
|
@@ -13,16 +13,16 @@ Output at `_outputs.<key>`:
|
|
|
13
13
|
- `{affected: N}` — `N` is the number of selected rows the update matched, **including rows whose status already had the requested bits**. Zero means no stored row had a selected id, not "already correct".
|
|
14
14
|
- `{}` — no-op: the resolved id list is empty, or both `includes` and `excludes` are empty. `_outputs.<key>.affected` is then absent, not `0`.
|
|
15
15
|
|
|
16
|
-
Failures (invalid task id, unresolved task, expression error, unknown status name, database error) fail the step; there is no step-local graceful branch. Route deliberately with `onError` — see
|
|
16
|
+
Failures (invalid task id, unresolved task, expression error, unknown status name, database error) fail the step; there is no step-local graceful branch. Route deliberately with `onError` — see thrown-error routing (search the standards MCP).
|
|
17
17
|
|
|
18
18
|
## When to use
|
|
19
19
|
|
|
20
|
-
- You already hold the row ids (`__id`) — for example from a preceding
|
|
21
|
-
- Pick
|
|
20
|
+
- You already hold the row ids (`__id`) — for example from a preceding QUERY_MANY (search the standards MCP) — and want to set or clear status flags on exactly those rows.
|
|
21
|
+
- Pick UPDATE_TASK_DATA_STATUS (search the standards MCP) when the rows are chosen by a predicate (e.g. "all rows where status has Changed") instead of by id.
|
|
22
22
|
- Pick [UPDATE_ITEM_SYNC_PROCESS](steps.UPDATE_ITEM_SYNC_PROCESS.md#contract) when rows are identified by business keys, or you also need to set the destination id or push notes.
|
|
23
|
-
- Pick
|
|
23
|
+
- Pick RESET_ITEM (search the standards MCP) or IGNORE_ITEM (search the standards MCP) for those dedicated lifecycle transitions.
|
|
24
24
|
|
|
25
|
-
Place it in a keyed step list (for example `pullers[].steps`), not in an item transformation list. Placement and roots are owned by
|
|
25
|
+
Place it in a keyed step list (for example `pullers[].steps`), not in an item transformation list. Placement and roots are owned by One canonical Workflow component (search the standards MCP). This step does **not** declare a puller/task association; author the object association (search the standards MCP) separately where the host needs one.
|
|
26
26
|
|
|
27
27
|
## Syntax
|
|
28
28
|
|
|
@@ -123,7 +123,7 @@ Choose the literal array for fixed ids; choose the expression when ids come from
|
|
|
123
123
|
|
|
124
124
|
Syntax: `includes: [<status name | 'Name, Name' | integer mask>, ...]` — defaults to `[]`.
|
|
125
125
|
|
|
126
|
-
Bits to **add**. All entries are OR-combined into one mask. Status bits: None=0, Changed=1, Removed=2, Ignore=4, Manual=8, Pushing=16, DependencyMismatch=32 (see
|
|
126
|
+
Bits to **add**. All entries are OR-combined into one mask. Status bits: None=0, Changed=1, Removed=2, Ignore=4, Manual=8, Pushing=16, DependencyMismatch=32 (see Status and row clocks (search the standards MCP)). Entry variants:
|
|
127
127
|
|
|
128
128
|
- **Status name** (`Changed`) — clearest; prefer it.
|
|
129
129
|
- **Comma-combined names** (`'Changed, Manual'`) or a numeric string (`'9'`) — equivalent to listing the bits.
|
|
@@ -191,11 +191,11 @@ Rejected forms (non-copyable): `itemIds: '$(_outputs.READ.rows.__id)'` — the `
|
|
|
191
191
|
|
|
192
192
|
## Related
|
|
193
193
|
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
201
|
-
-
|
|
194
|
+
- Step family (search the standards MCP)
|
|
195
|
+
- Workflow and the step envelope (search the standards MCP)
|
|
196
|
+
- Arguments and routing (search the standards MCP) · Cross-cutting step flags (search the standards MCP)
|
|
197
|
+
- Runtime context (search the standards MCP) · JSONata call sites (search the standards MCP)
|
|
198
|
+
- Status values (search the standards MCP)
|
|
199
|
+
- Predicate-scoped counterpart (search the standards MCP) · [Key-scoped sync update](steps.UPDATE_ITEM_SYNC_PROCESS.md#contract)
|
|
200
|
+
- Reset (search the standards MCP) · Ignore (search the standards MCP)
|
|
201
|
+
- Structured lookup (search the standards MCP)
|
|
@@ -16,10 +16,10 @@ An update object that misses one of the task's key columns, or that contains no
|
|
|
16
16
|
|
|
17
17
|
- You identify rows by their business keys and need to record a destination id, adjust status bits, or write push notes — typically after delivering items to a destination system.
|
|
18
18
|
- Pick [UPDATE_ITEM_STATUS](steps.UPDATE_ITEM_STATUS.md#contract) when you only change status bits and already hold the stored `__id`s; it accepts status names instead of numeric masks.
|
|
19
|
-
- Pick
|
|
20
|
-
- Pick
|
|
19
|
+
- Pick UPDATE_TASK_DATA_STATUS (search the standards MCP) to change status on all rows matching a predicate.
|
|
20
|
+
- Pick SAVE_TASK_DATA (search the standards MCP) to insert or update business data; this step never creates rows.
|
|
21
21
|
|
|
22
|
-
Place it in a keyed step list (puller, pusher or webhook steps); see
|
|
22
|
+
Place it in a keyed step list (puller, pusher or webhook steps); see One canonical Workflow component (search the standards MCP). The target task must have declared key columns. This step does not declare a puller/task association; author the object association (search the standards MCP) separately where the host needs one.
|
|
23
23
|
|
|
24
24
|
## Syntax
|
|
25
25
|
|
|
@@ -195,7 +195,7 @@ Status bit changes for the matched rows. Omitting it (or `null`) leaves status u
|
|
|
195
195
|
|
|
196
196
|
Syntax: `includes: [<integer mask>, ...]` — defaults to `[]`.
|
|
197
197
|
|
|
198
|
-
Bits to add, as integers (Changed=1, Removed=2, Ignore=4, Manual=8, Pushing=16, DependencyMismatch=32 — see
|
|
198
|
+
Bits to add, as integers (Changed=1, Removed=2, Ignore=4, Manual=8, Pushing=16, DependencyMismatch=32 — see Status and row clocks (search the standards MCP)). Status names are not accepted here. Values are not template-rendered.
|
|
199
199
|
|
|
200
200
|
```yaml
|
|
201
201
|
- key: UPDATE
|
|
@@ -229,7 +229,7 @@ Bits to remove, applied after `includes`; a bit in both lists ends up cleared. R
|
|
|
229
229
|
|
|
230
230
|
Syntax: `push_notes: {mode: <APPEND | OVERWRITE>, content: <string>}` — optional; omitted means notes unchanged.
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
The step writes a short `info` message into `__pushed_notes` to help users follow a row's sync progress. Useful messages use a bounded, newest-first JSON array. Omitting `push_notes` preserves the current field. Empty content with `APPEND` also preserves it; explicit `OVERWRITE` retains the older clearing behavior for null or empty content. Short whitespace-only overwrite content stays visually blank and is limited to 256 UTF-16 units.
|
|
233
233
|
|
|
234
234
|
```yaml
|
|
235
235
|
- key: UPDATE
|
|
@@ -241,11 +241,23 @@ Writes the row's push notes. Omitting it (or `null`) leaves the notes untouched.
|
|
|
241
241
|
push_notes: {mode: OVERWRITE, content: Delivered} # optional
|
|
242
242
|
```
|
|
243
243
|
|
|
244
|
+
The worker applies these fixed limits to keep note updates small:
|
|
245
|
+
|
|
246
|
+
| Rule | Stored behavior |
|
|
247
|
+
| --- | --- |
|
|
248
|
+
| New message | At most 256 UTF-16 units; an emoji can use two units. Surrogate pairs remain intact. |
|
|
249
|
+
| Repeated message group | At most three newest entries with the same fingerprint. |
|
|
250
|
+
| Whole stored array | At most 2,400 UTF-8 bytes; oldest entries are removed first. |
|
|
251
|
+
| Existing plain text, malformed JSON or unrelated JSON | Converted into a bounded legacy `info` entry when a useful new note is written. |
|
|
252
|
+
| Entry fields | Worker-written `dt`, `msg`, `fp` and `lvl`; author only `content`, not these stored fields. |
|
|
253
|
+
|
|
254
|
+
The worker writes UTC timestamps and message fingerprints to help users distinguish recent messages and repeated failures. Full sync logs retain the detailed failure information; push notes provide a short row-level summary.
|
|
255
|
+
|
|
244
256
|
### `data.items[].push_notes.mode`
|
|
245
257
|
|
|
246
258
|
Syntax: `mode: APPEND | OVERWRITE` — defaults to `APPEND`.
|
|
247
259
|
|
|
248
|
-
`OVERWRITE` (case-insensitive) replaces the
|
|
260
|
+
`OVERWRITE` (case-insensitive) replaces useful content with one `info` entry; null or empty overwrite content clears the field. Any other value, including omission, uses `APPEND` to place a useful new entry first while retaining older entries within the limits above. The worker does not template-render `mode`; use a canonical value to make the intended behavior clear.
|
|
249
261
|
|
|
250
262
|
```yaml
|
|
251
263
|
- key: UPDATE
|
|
@@ -256,7 +268,7 @@ Syntax: `mode: APPEND | OVERWRITE` — defaults to `APPEND`.
|
|
|
256
268
|
- keys: {sku: A1}
|
|
257
269
|
push_notes:
|
|
258
270
|
mode: APPEND # defaults to APPEND
|
|
259
|
-
content:
|
|
271
|
+
content: Retried # a separate recent info entry; no separator needed
|
|
260
272
|
---
|
|
261
273
|
- key: UPDATE
|
|
262
274
|
displayType: UPDATE_ITEM_SYNC_PROCESS
|
|
@@ -265,15 +277,15 @@ Syntax: `mode: APPEND | OVERWRITE` — defaults to `APPEND`.
|
|
|
265
277
|
items:
|
|
266
278
|
- keys: {sku: A1}
|
|
267
279
|
push_notes:
|
|
268
|
-
mode: OVERWRITE # replaces
|
|
280
|
+
mode: OVERWRITE # replaces the array with one info entry
|
|
269
281
|
content: Delivered
|
|
270
282
|
```
|
|
271
283
|
|
|
272
284
|
### `data.items[].push_notes.content`
|
|
273
285
|
|
|
274
|
-
Syntax: `content: <string>` — defaults to `""`.
|
|
286
|
+
Syntax: `content: <string | null>` — defaults to `""`.
|
|
275
287
|
|
|
276
|
-
The
|
|
288
|
+
The step renders `{{ ... }}` in string `content` before preparing the new message. The worker shortens and normalizes useful messages to keep note updates small. Empty or whitespace-only `APPEND` content preserves notes. Explicit `OVERWRITE` stores null as SQL NULL and `""` as empty text to clear earlier notes; short whitespace-only content remains blank within the 256-unit limit. Separate entries need no authored separator.
|
|
277
289
|
|
|
278
290
|
```yaml
|
|
279
291
|
- key: UPDATE
|
|
@@ -287,6 +299,20 @@ The note text; template-rendered (`{{ ... }}`) before writing. When appending, i
|
|
|
287
299
|
content: 'Delivered as {{ _outputs.PUSH.id }}' # defaults to ""
|
|
288
300
|
```
|
|
289
301
|
|
|
302
|
+
Use explicit `OVERWRITE` with the default empty content to clear an obsolete note:
|
|
303
|
+
|
|
304
|
+
```yaml
|
|
305
|
+
- key: CLEAR_NOTE
|
|
306
|
+
displayType: UPDATE_ITEM_SYNC_PROCESS
|
|
307
|
+
data:
|
|
308
|
+
objectId: 11111111-1111-4111-8111-111111111111
|
|
309
|
+
items:
|
|
310
|
+
- keys: {sku: A1}
|
|
311
|
+
push_notes:
|
|
312
|
+
mode: OVERWRITE
|
|
313
|
+
content: "" # default content; clears the earlier note
|
|
314
|
+
```
|
|
315
|
+
|
|
290
316
|
### `data.expression`
|
|
291
317
|
|
|
292
318
|
Syntax: `expression: '<JSONata program>'` — defaults to `""`; used only when `kind: JSONata`.
|
|
@@ -315,7 +341,7 @@ With two rows read, the expected output is `{affected: 2}`; with none, the array
|
|
|
315
341
|
|
|
316
342
|
Syntax: `batchSize: <integer ≥ 1>` — defaults to `5`.
|
|
317
343
|
|
|
318
|
-
|
|
344
|
+
The step groups update objects into database transactions of this size; the value is not a total row limit. A failing batch is rolled back, while earlier batches stay committed. The step checks cancellation before starting another batch or item and before committing, so stopped workflows do not begin later updates. Cancellation rolls back uncommitted work without undoing earlier committed batches. `0` or a negative value fails when there is something to update.
|
|
319
345
|
|
|
320
346
|
```yaml
|
|
321
347
|
- key: UPDATE
|
|
@@ -329,7 +355,7 @@ How many update objects are applied per database transaction. It is not a row li
|
|
|
329
355
|
|
|
330
356
|
## Best practices
|
|
331
357
|
|
|
332
|
-
- Prefer `OVERWRITE`
|
|
358
|
+
- Prefer `OVERWRITE` when a replay should replace the row's summary; `APPEND` keeps recent entries within the fixed size and repetition limits.
|
|
333
359
|
- Supply every declared key column in each update; prefer composing keys from the same source that produced the row, because a missing key silently skips the update.
|
|
334
360
|
- Prefer `RAW` for a fixed number of updates and `JSONata` for one-per-row updates; in `JSONata` always wrap the projection in `[ … ]` so zero or one result is still an array.
|
|
335
361
|
- Use the exact `destination_id` spelling and use `null` only when you intend to clear the destination.
|
|
@@ -342,18 +368,19 @@ How many update objects are applied per database transaction. It is not a row li
|
|
|
342
368
|
- Invalid JSONata, template error or update objects of the wrong shape → fails before any batch.
|
|
343
369
|
- `batchSize` ≤ 0 with at least one update → fails.
|
|
344
370
|
- Database failure → the current batch is rolled back and the step fails; previous batches remain.
|
|
371
|
+
- Cancellation → uncommitted work rolls back and later updates stop; earlier committed batches remain.
|
|
345
372
|
- Update without a declared key, or with no change fields → skipped, counts 0.
|
|
346
|
-
- `logOutput`, `gracefulException` and `responseFilters` have no effect on this step. Use `onError` for deliberate recovery; see
|
|
373
|
+
- `logOutput`, `gracefulException` and `responseFilters` have no effect on this step. Use `onError` for deliberate recovery; see thrown-error routing (search the standards MCP).
|
|
347
374
|
|
|
348
375
|
Rejected forms (non-copyable): `keys: {other: A1}` on a task keyed by `sku` — skipped, not "match all"; `destinationId: D-1` — not recognized, use `destination_id`; `expression: '{"keys": {"sku": "A1"}}'` — a single object, not an array; wrap it in `[ … ]`; `statuses: {includes: [Changed]}` — names are not accepted here, use `[1]`.
|
|
349
376
|
|
|
350
377
|
## Related
|
|
351
378
|
|
|
352
|
-
-
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
356
|
-
-
|
|
357
|
-
- [Item-id status update](steps.UPDATE_ITEM_STATUS.md#contract) ·
|
|
358
|
-
-
|
|
359
|
-
-
|
|
379
|
+
- Step family (search the standards MCP)
|
|
380
|
+
- Workflow and the step envelope (search the standards MCP)
|
|
381
|
+
- Arguments and routing (search the standards MCP) · Cross-cutting step flags (search the standards MCP)
|
|
382
|
+
- Runtime context (search the standards MCP) · JSONata call sites (search the standards MCP) · Template rendering (search the standards MCP)
|
|
383
|
+
- Tasks and tables (search the standards MCP) · Status values (search the standards MCP)
|
|
384
|
+
- [Item-id status update](steps.UPDATE_ITEM_STATUS.md#contract) · Predicate status update (search the standards MCP)
|
|
385
|
+
- Structured query step (search the standards MCP)
|
|
386
|
+
- Routing and restart behavior (search the standards MCP)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hexasync-query-dsl
|
|
3
3
|
description: "HexaSync Query DSL: Builder DSL {op, data} trees (where, joins, select, from, operators, operand kinds ARG/FIELD/PARAM/QUERY/VALUE) versus the API Filter DSL, QUERY_SINGLE and QUERY_MANY steps, SQL and SQL_PROXY steps, PostgreSQL compilation. Use when filtering, joining or selecting task data in a template."
|
|
4
|
-
compatibility: "Loaded conditionally by Agent Skills hosts.
|
|
4
|
+
compatibility: "Loaded conditionally by Agent Skills hosts. Connect HexaSync Template Development Standards on AI Gateway for current reference documents."
|
|
5
5
|
metadata:
|
|
6
6
|
author: BeeHexa
|
|
7
|
-
version: "
|
|
8
|
-
kb-bundle: "
|
|
9
|
-
mcp-server: "hexasync-template-
|
|
7
|
+
version: "2612.3.1"
|
|
8
|
+
kb-bundle: "115"
|
|
9
|
+
mcp-server: "hexasync-template-development-standards"
|
|
10
10
|
---
|
|
11
11
|
|
|
12
12
|
# QueryDSL, SQL and query steps
|
|
@@ -16,21 +16,14 @@ There are **two separate languages**, not one language with interchangeable host
|
|
|
16
16
|
- **Builder DSL** is a profile-authored JSON/YAML `{op, data}` tree with typed operand objects. Metrics, query transformations and query steps compile it to PostgreSQL.
|
|
17
17
|
- **Filter DSL** is an API-request `{condition, leftOp, rightOp}` tree that API clients send in search request bodies; it is not a Builder executor.
|
|
18
18
|
|
|
19
|
-
> Generated from the HexaSync knowledge base (asset bundle
|
|
19
|
+
> Generated from the HexaSync knowledge base (asset bundle 115) by @beehexa/hexasync-ai-toolkit 2612.3.1.
|
|
20
20
|
|
|
21
21
|
## How to work
|
|
22
22
|
|
|
23
|
-
The host loads this skill conditionally
|
|
24
|
-
|
|
25
|
-
When the HexaSync MCP tools (`hexasync_*`) are available, use them in this order:
|
|
23
|
+
The host loads this skill conditionally. Choose worker or frontend according to the owning collection.
|
|
24
|
+
Connect the HexaSync Template Development Standards MCP on AI Gateway and use its document search and read tools to look up the current reference before writing YAML. Search for where, QUERY_SINGLE.where, QUERY_MANY and relevant examples (QueryDSL where join select); follow related document references. Read the returned document sections and pagination as needed.
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
2. `hexasync_explain_type` before writing any field. Worker/data lookups for this family: `hexasync_explain_type({"name":"where","runtime":"worker"})`, `hexasync_explain_type({"name":"QUERY_SINGLE.where","runtime":"worker"})`, `hexasync_explain_type({"name":"QUERY_MANY","runtime":"worker"})`. Omitted runtime also means worker, never frontend.
|
|
29
|
-
3. `hexasync_search_examples` for complete, schema-valid worker/data examples (e.g. query `QueryDSL where join select`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
|
|
30
|
-
4. `hexasync_explain_position` before writing an expression: each authoring position has its own roots.
|
|
31
|
-
5. `hexasync_validate` on the project before claiming the YAML is correct; explain any rule id with `hexasync_explain_rule`.
|
|
32
|
-
|
|
33
|
-
Never infer syntax from YAML already in the workspace: it may be outdated or wrong. The knowledge base and the MCP tools are authoritative. Use actual identities from the workspace or `hexasync_list_connectors`; never invent one.
|
|
26
|
+
Do not assume the remote wiki provides the former local `hexasync_*` tools or workspace validation. Validate with the editor or an available project validation tool, and report when validation is unavailable. Never invent project identities or infer syntax solely from existing workspace YAML.
|
|
34
27
|
|
|
35
28
|
## Best practices (from the knowledge base)
|
|
36
29
|
|
|
@@ -56,7 +49,10 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
|
|
|
56
49
|
- **One list per step, explicit names.** Name each selector, keep one `List`, and avoid reserved output names. _([SQL — SQL](references/steps.SQL.md#best-practices))_
|
|
57
50
|
- **Parameterize, never concatenate.** Put values in step or `data.arguments` and reference them as parameters. Do not render values into `sql` or `sqlCommands` with Scriban: the whole command text is rendered and then parsed as JSON, so injected text can break both the SQL and the JSON. _([SQL_PROXY — SQL_PROXY](references/steps.SQL_PROXY.md#best-practices))_
|
|
58
51
|
- **Forward step arguments on purpose.** Write `arguments: {}` (or a map) when you rely on step-level arguments, because leaving it out sends no parameters. _([SQL_PROXY — SQL_PROXY](references/steps.SQL_PROXY.md#best-practices))_
|
|
59
|
-
-
|
|
52
|
+
- **Page large reads** with a stable `order by`, a `limit` and a keyset cursor carried between iterations, instead of one unbounded query. _([SQL_PROXY — SQL_PROXY](references/steps.SQL_PROXY.md#best-practices))_
|
|
53
|
+
- **Set `timeout` deliberately** for the batch's expected cost. _([SQL_PROXY — SQL_PROXY](references/steps.SQL_PROXY.md#best-practices))_
|
|
54
|
+
- **Ask for a transaction only when commands must succeed or fail together**, and confirm the service honors it. Keep batches small so a failure is easy to locate. _([SQL_PROXY — SQL_PROXY](references/steps.SQL_PROXY.md#best-practices))_
|
|
55
|
+
- **Keep the raw response until its layout is confirmed**, then switch to a structured filter. _([SQL_PROXY — SQL_PROXY](references/steps.SQL_PROXY.md#best-practices))_
|
|
60
56
|
|
|
61
57
|
## References
|
|
62
58
|
|
|
@@ -64,4 +60,4 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
|
|
|
64
60
|
|
|
65
61
|
## Installing the MCP server
|
|
66
62
|
|
|
67
|
-
|
|
63
|
+
Connect the remote standards MCP using [`references/INSTALL.md`](references/INSTALL.md).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# References — QueryDSL, SQL and query steps
|
|
2
2
|
|
|
3
|
-
Each file is one knowledge-base section of at most 25 KB, the same split the MCP server serves. Links between
|
|
3
|
+
Each file is one knowledge-base section of at most 25 KB, the same split the MCP server serves. Links between packaged sections are relative. For other references, search the connected standards MCP by document title.
|
|
4
4
|
|
|
5
5
|
## Questions this skill answers
|
|
6
6
|
|
|
7
|
-
- Builder DSL versus API Filter DSL → [QueryDSL](query-dsl.QUERY-DSL.md)
|
|
7
|
+
- Builder DSL versus API Filter DSL; v2 next/prev cursors, invalid_cursor and single-page VALUE MAX/MIN → [QueryDSL](query-dsl.QUERY-DSL.md), [Entity V2 cursors](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md#entity-v2-flat-fields-and-working-cursors)
|
|
8
8
|
|
|
9
9
|
## Sections
|
|
10
10
|
|
|
@@ -1,51 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Connect the HexaSync standards MCP
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The standards MCP runs on AI Gateway. Connect your AI client using the HexaSync Control Center connection instructions. The toolkit installs skills only and does not change MCP configuration.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
```
|
|
5
|
+
Server: `https://ai-gateway.hexasync.dev/mcp/wiki/hexasync-template-development-standards`
|
|
6
|
+
OAuth client ID: `hexasync-mcp`; leave the client secret empty and sign in with HexaSync IAM.
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
| Client | Registration |
|
|
12
|
-
| --- | --- |
|
|
13
|
-
| Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3` |
|
|
14
|
-
| Codex | `mcp_servers` in `~/.codex/config.toml` |
|
|
15
|
-
| Cursor | `mcpServers` in `~/.cursor/mcp.json` |
|
|
16
|
-
| Antigravity | `mcpServers` in `~/.gemini/config/mcp_config.json` |
|
|
17
|
-
| pi | `mcpServers` in `~/.pi/agent/mcp.json` |
|
|
18
|
-
| OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.8.3"]}'` |
|
|
19
|
-
| VS Code | `servers` in the user `mcp.json` |
|
|
20
|
-
|
|
21
|
-
```json
|
|
22
|
-
{
|
|
23
|
-
"mcpServers": {
|
|
24
|
-
"hexasync-template-ide": {
|
|
25
|
-
"command": "npx",
|
|
26
|
-
"args": [
|
|
27
|
-
"-y",
|
|
28
|
-
"@beehexa/hexasync-template-ide-mcp@2611.8.3"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
On native Windows use this launch:
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
{
|
|
39
|
-
"command": "cmd",
|
|
40
|
-
"args": [
|
|
41
|
-
"/c",
|
|
42
|
-
"npx",
|
|
43
|
-
"-y",
|
|
44
|
-
"@beehexa/hexasync-template-ide-mcp@2611.8.3"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
The standalone server must match toolkit 2611.8.3. If that exact published artifact is absent, registry-backed activation is blocked; do not substitute another release or publish automatically. Local verification uses the actual installed VSIX's `dist/mcp/server.js`, without registry fetching. Confirm its loaded path/version and callable behavior separately.
|
|
50
|
-
|
|
51
|
-
Validation needs the project folder: when the client does not send roots, add `--root <absolute project path>` to `args` or set `HEXASYNC_WORKSPACE_ROOTS`. Do not add the server to a VS Code that has the HexaSync Template IDE extension: the extension already provides it. Skills are loaded conditionally by the host, not globally injected.
|
|
8
|
+
In Control Center open **AI Gateway → MCP Servers → HexaSync Template Development Standards → Connection**. Each client configuration directory has its own server setup and sign-in.
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
|
|
3
3
|
## Best practice
|
|
4
4
|
|
|
5
|
-
The [Patterns and anti-patterns](query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md#patterns-and-anti-patterns) list in the quick reference is the canonical checklist. In short: use typed literals, real resolved sources, unique lowercase aliases and projection names, canonical uppercase Builder tokens and bare Filter fields. Keep query values separate from identifiers. Make SINGLE deterministic with a unique predicate rather than ordering. Handle null and empty lists intentionally, and keep mutation boundaries at their lifecycle owner. Validation names are another vocabulary:
|
|
5
|
+
The [Patterns and anti-patterns](query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md#patterns-and-anti-patterns) list in the quick reference is the canonical checklist. In short: use typed literals, real resolved sources, unique lowercase aliases and projection names, canonical uppercase Builder tokens and bare Filter fields. Keep query values separate from identifiers. Make SINGLE deterministic with a unique predicate rather than ordering. Handle null and empty lists intentionally, and keep mutation boundaries at their lifecycle owner. Validation names are another vocabulary: Validations (search the standards MCP) owns in-memory validation types, not Builder/Filter SQL predicates. See also Profile references (search the standards MCP), status and row clocks (search the standards MCP), metrics (search the standards MCP) and transformations (search the standards MCP).
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Filter composition
|
|
4
4
|
|
|
5
|
-
This request-side composition is the companion to the canonical [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md), not another profile predicate format. Place a Filter tree under request `filters`; put a Builder tree only at its host's profile `where`, `matchedWhere` or `unmatchedWhere` path. See [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for host capabilities,
|
|
5
|
+
This request-side composition is the companion to the canonical [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md), not another profile predicate format. Place a Filter tree under request `filters`; put a Builder tree only at its host's profile `where`, `matchedWhere` or `unmatchedWhere` path. See [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for host capabilities, One canonical Workflow component (search the standards MCP) for step placement and Runtime scope (search the standards MCP) for profile execution context; request Filter literals do not gain workflow ARG/PARAM bindings.
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -31,7 +31,7 @@ For an isolated unprefixed build of this request, the expected SQL fragment is `
|
|
|
31
31
|
|
|
32
32
|
At supported metric consumers, profile Builder rule `_.sku = A1` plus the composed request means **profile skuA1 AND (active AND (request skuA1 OR external_id IS NULL))**; a B2 row cannot pass merely because its external_id is null. The host wraps the profile predicate and the request group before AND-composing them, preserving OR precedence. Direct V2 QUERY-metric request filtering still needs an actual source alias `_`; Filter cannot select an arbitrary Builder join/source alias. The [request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md) explains that boundary and the GET statistic route that ignores ordinary wrapped user filters.
|
|
33
33
|
|
|
34
|
-
Concrete narrowing example: assume a supported metric detail POST exposes an existing source with sku, active and external_id columns, the configured facet is present, and the source is available under `_`. For an ordinary metric, author the following at `metadata.where`; a QUERY metric uses `metadata.sql.matchedWhere` for its configured matched facet instead, as owned by
|
|
34
|
+
Concrete narrowing example: assume a supported metric detail POST exposes an existing source with sku, active and external_id columns, the configured facet is present, and the source is available under `_`. For an ordinary metric, author the following at `metadata.where`; a QUERY metric uses `metadata.sql.matchedWhere` for its configured matched facet instead, as owned by Metrics (search the standards MCP):
|
|
35
35
|
|
|
36
36
|
```yaml
|
|
37
37
|
op: '='
|
|
@@ -47,5 +47,5 @@ where:
|
|
|
47
47
|
rightOp: { type: VALUE, val: A1 }
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Here Builder preserves `p.sku` and binds A1 as a value; a single assumed matching row produces row/found or rows/count according to [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). Do not copy the Filter condition object into data.where or add filters to claim a query step reads a request envelope. A direct request-consuming QUERY metric using only alias p instead has no `_` source for its Filter; bare sku can fail there. Use the supported `_` source or offset wrapper described in [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md), not leftOp p.sku. [Operands](query-dsl.QUERY-DSL.operands.md), [join types](query-dsl.QUERY-DSL.the-shape.join-types.md) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own Builder field/source validation.
|
|
50
|
+
Here Builder preserves `p.sku` and binds A1 as a value; a single assumed matching row produces row/found or rows/count according to [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). Do not copy the Filter condition object into data.where or add filters to claim a query step reads a request envelope. A direct request-consuming QUERY metric using only alias p instead has no `_` source for its Filter; bare sku can fail there. Use the supported `_` source or offset wrapper described in [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md), not leftOp p.sku. [Operands](query-dsl.QUERY-DSL.operands.md), [join types](query-dsl.QUERY-DSL.the-shape.join-types.md) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own Builder field/source validation. One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP) own step entry/context; Filter field strings do not perform lookup in that context or acquire ARG/PARAM semantics.
|
|
51
51
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Filter predicates
|
|
4
4
|
|
|
5
|
-
Condition dispatch lowercases names but does not trim whitespace. Listed aliases are complete; parenthesized aliases include literal `()` in the condition string, not an expression call syntax. At API request `filters`, binary comparisons/arithmetic take a left expression and one right scalar/expression; ordinary authored leaves use a bare field and literal. Text, membership and mask predicates require a field plus one meaningful right value/list; BETWEEN requires a field plus both `from` and `to`. Null predicates are unary and ignore rightOp; groups ignore leftOp and recursively read their rightOp child array. Nested binary expression support depends on deserialization, as explained in [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md); it is not a guarantee that an arbitrary object is an operand. Request literals are not evaluated against workflow/runtime roots:
|
|
5
|
+
Condition dispatch lowercases names but does not trim whitespace. Listed aliases are complete; parenthesized aliases include literal `()` in the condition string, not an expression call syntax. At API request `filters`, binary comparisons/arithmetic take a left expression and one right scalar/expression; ordinary authored leaves use a bare field and literal. Text, membership and mask predicates require a field plus one meaningful right value/list; BETWEEN requires a field plus both `from` and `to`. Null predicates are unary and ignore rightOp; groups ignore leftOp and recursively read their rightOp child array. Nested binary expression support depends on deserialization, as explained in [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md); it is not a guarantee that an arbitrary object is an operand. Request literals are not evaluated against workflow/runtime roots: One canonical Workflow component (search the standards MCP), Runtime scope (search the standards MCP), and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own those distinct placement contracts.
|
|
6
6
|
|
|
7
7
|
| Family | Recognized tokens/aliases | Right operand and SQL effect |
|
|
8
8
|
| --- | --- | --- |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Exact plural member is **filters**, not filter. Offset request body for entity data `POST /api/{entityType}/{entityId}/data/search` and metric detail `POST /api/tasks/{taskId}/metrics/{metricId}/key/{metricKey}/search` is a direct search request; dashboard sends it unchanged with profile identity header. Job-monitoring requests instead wrap it under `query`.
|
|
6
6
|
|
|
7
|
-
This is HTTP request authoring, not a
|
|
7
|
+
This is HTTP request authoring, not a Workflow component (search the standards MCP). The Runtime scope (search the standards MCP) available to a step or transformation is not injected into this body: request values are serialized literals, not expression wrappers or ARG declarations. [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) owns the separate profile Builder rule. A QUERY metric's authored branch is owned by QUERY metrics (search the standards MCP); [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md) and [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md) own the request node's dependencies.
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -48,14 +48,14 @@ On a fresh default Filter compiler dictionary, this active literal binds as `@p0
|
|
|
48
48
|
|
|
49
49
|
#### Cursor and job consumers are different envelopes
|
|
50
50
|
|
|
51
|
-
##### Entity V2: flat fields and
|
|
51
|
+
##### Entity V2: flat fields and working cursors
|
|
52
52
|
|
|
53
53
|
`POST /api/v2/{entityType}/{entityId}/data/search` takes a flat EntitySearchDslRequest, inheriting the offset model's fields/limit/offset/orderBy/filters but adding these members:
|
|
54
54
|
|
|
55
55
|
| Additional authored member | Type/default and actual read |
|
|
56
56
|
| --- | --- |
|
|
57
|
-
| `cursor` | Optional string, no model default;
|
|
58
|
-
| `rel` | String, default next
|
|
57
|
+
| `cursor` | Optional opaque string, no model default; send a returned `next` or `prev` exactly as received. Not a nested query field. An unreadable nonempty cursor is refused with HTTP400 `invalid_cursor`, never silently ignored on a paged search. |
|
|
58
|
+
| `rel` | String, default `next`; `next`/`prev` are read case-insensitively throughout paging. An empty value also means forward. Use `next` with a `next` cursor and `prev` with a `prev` cursor. |
|
|
59
59
|
| `encryptedFilter` | Optional string, no default; Base64 UTF-8 JSON for a Filter node, **not** encryption, integrity protection or an authorization credential. |
|
|
60
60
|
| `metricType` | Optional string; nonempty together with a nonnull metricId selects the metric route. It is a routing gate, not the handler kind: the stored metric's kind chooses the handler. |
|
|
61
61
|
| `metricId` | Optional UUID string deserialized to nullable Guid; malformed UUID fails model binding. Both metric routing fields are needed; a partial pair falls through to statistic/generic routing rather than guaranteeing a missing-id error. |
|
|
@@ -64,9 +64,17 @@ On a fresh default Filter compiler dictionary, this active literal binds as `@p0
|
|
|
64
64
|
|
|
65
65
|
Precedence is **complete metric gate → statisticType → generic entity search**. Metric/statistic routes require a TASK entity; wrong entity type gives metrics_not_supported/statistics_not_supported. Missing task/metric yields task_not_found/metric_not_found; missing stored metric kind gives invalid_metric and missing metric handler gives handler_not_found. Missing statistic builder gives HTTP500 builder_not_found. These endpoint errors differ from backend SQL/filter exceptions.
|
|
66
66
|
|
|
67
|
-
Generic V2 honors fields with raw-safe physical-column projection and recursive __raw/__raw_hashed scrubbing; it ignores authored orderBy/offset and fixes ordering to (`__updated_at`,`__created_at`,`__id`),
|
|
67
|
+
Generic V2 honors fields with raw-safe physical-column projection and recursive __raw/__raw_hashed scrubbing; it ignores authored orderBy/offset and fixes ordering to (`__updated_at`,`__created_at`,`__id`), newest first. Forward paging reads descending; backward paging reads ascending and restores the returned rows to the same newest-first order. Its limit is the inherited default100 when omitted, positive supplied value otherwise, or50 for nonpositive values, with no generic500 cap. Metric/statistic routes instead clamp positive limit to500 and use50 for nonpositive values. Paged consumers fetch one extra row to decide continuation before returning only the requested page. Selecting fields that omit the cursor columns does not break generic paging or add those internal columns to the response.
|
|
68
68
|
|
|
69
|
-
**The
|
|
69
|
+
**The V2 response is `items`, `next`, `prev`, not the job response's nextCursor/prevCursor.** Use the exact `next` token with `rel: next` to advance and `prev` with `rel: prev` to go back. Null means no continuation on that side for normally positioned rows. Retain the same entity, metric/statistic selection, filters, encryptedFilter and limit while walking. With unchanged data and nonnull position columns, a full forward walk returns each row once; tied timestamps are ordered by id, and backward traversal returns the same pages. Cursors are opaque: do not manufacture, decode, or substitute a job cursor.
|
|
70
|
+
|
|
71
|
+
The corrected behavior is **unreleased on worker.proxy `feats/task-flow`, PR #78**; no first published version containing it has been identified. Use it only with a deployed containing build, and record the actual published worker.proxy version when available. See the data-route availability note (search the standards MCP). No core.api version gate applies.
|
|
72
|
+
|
|
73
|
+
An unreadable cursor on a paged search gives HTTP400 `{error: "invalid_cursor", message}` rather than the first page. A page reached by a cursor whose required boundary row lacks `__updated_at`, `__created_at` or `__id` gives HTTP400 `{error: "row_without_position", message}`. Repair the data or deliberately choose a different limit. An initial request without a cursor preserves compatibility: if a needed boundary has no position, that side's cursor is null even when more rows exist; a larger initial limit can expose a valid boundary. Null position data is therefore outside the complete-walk guarantee.
|
|
74
|
+
|
|
75
|
+
**VALUE MAX/MIN exception:** these metric drill-downs order by the metric value and return one page with `next` and `prev` null. They ignore any supplied cursor, including malformed input, and still return HTTP200; there is no cursor refusal on this unpaged path. VALUE AVG/COUNT_DISTINCT and the other paged consumers use normal cursor paging. Do not infer a second MAX/MIN page from a full first page.
|
|
76
|
+
|
|
77
|
+
A top-level `or` Filter is grouped before the cursor and statistic predicates are combined. It applies to every page and to statistic counts, so a row cannot bypass the statistic or recur on a later page through one branch. Plain and successfully decoded encrypted filters keep their AND composition.
|
|
70
78
|
|
|
71
79
|
Entity encryptedFilter decoding failures, empty encoded input, JSON-null decoded nodes and invalid Base64/JSON are ignored rather than authenticated or rejected. A successfully decoded nonnull Filter is AND-merged with supplied filters (or becomes the sole filter when absent); blank condition is not a decode failure and can skip as a sole root or fail when nested in the merged group. Other malformed predicates can fail later compilation. Composed initial generic V2 body below assumes real sku/name columns:
|
|
72
80
|
|
|
@@ -79,7 +87,7 @@ encryptedFilter: 'eyJjb25kaXRpb24iOiJjdCIsImxlZnRPcCI6Im5hbWUiLCJyaWdodE9wIjoiQ2
|
|
|
79
87
|
|
|
80
88
|
The exact decoded JSON is `{"condition":"ct","leftOp":"name","rightOp":"Chair"}`. Source A1/Chair qualifies, A1/Sofa and B2/Chair do not: sku equality AND case-insensitive name containment. Invalid encoded input would leave only the explicit sku filter, not fail closed. Omitting filters and encoded input requests no user predicate at all.
|
|
81
89
|
|
|
82
|
-
**Direct QUERY-metric V2 alias boundary:** its request Filter is compiled inside Builder SQL and always prefixes fields `_`. If the only source is authored alias p, Filter leftOp sku emits _.sku and can fail for missing `_`; leftOp p.sku emits _.p.sku, not the remedy. Expose the intended source as `_` and update its Builder FIELD references consistently, or use the offset metric POST wrapper, which aliases the completed source SQL `_` and applies the request once. Empty Filter does not create this alias error
|
|
90
|
+
**Direct QUERY-metric V2 alias boundary:** its request Filter is compiled inside Builder SQL and always prefixes fields `_`. If the only source is authored alias p, Filter leftOp sku emits _.sku and can fail for missing `_`; leftOp p.sku emits _.p.sku, not the remedy. Expose the intended source as `_` and update its Builder FIELD references consistently, or use the offset metric POST wrapper, which aliases the completed source SQL `_` and applies the request once. Empty Filter does not create this alias error. Cursor comparison and ordering qualify the actual source table, so joined tables with their own position columns do not make later pages ambiguous.
|
|
83
91
|
|
|
84
92
|
##### Job details: nested query and opaque record cursors
|
|
85
93
|
|
|
@@ -90,7 +98,7 @@ The exact decoded JSON is `{"condition":"ct","leftOp":"name","rightOp":"Chair"}`
|
|
|
90
98
|
| `query` | Optional search request object; filters are read, but these details ignore nested fields/orderBy/offset. An absent query does not create a filter. |
|
|
91
99
|
| `limit` | Optional integer, details model range1–100. Effective limit is outer limit, else nested query.limit, else10. An explicitly empty nested query has its own100 limit default; range attributes on outer limit do not add nested limit range validation. |
|
|
92
100
|
| `rel` | String default next, next/prev case-insensitive model validation; concrete details compare exact lowercase for cursor direction. Send lowercase. |
|
|
93
|
-
| `cursor` | Optional byte[] represented as Base64 in JSON, carrying a Brotli-compressed typed record. Job serializers consume that format,
|
|
101
|
+
| `cursor` | Optional byte[] represented as Base64 in JSON, carrying a Brotli-compressed typed record. Job serializers consume that format, which is separate from Entity V2 cursor tokens; malformed compressed tokens propagate serializer errors. |
|
|
94
102
|
| `encryptedFilter` | Optional string admitted by the model; these four job detail endpoints do not consume it. Use nested query.filters, not an assumed decrypt hook. The separate task-statistic endpoint decodes Base64 UTF-8 Filter JSON, AND-appends valid SQL and ignores decode/compiler failures; this is not cryptography. |
|
|
95
103
|
|
|
96
104
|
Dashboard normally writes limit inside query and posts cursor at the outer level. Stats use a separate wrapper: outer limit range1–10000, effective outer/nested/default100, plus fromTs/taskIds where that statistic consumer reads them. Do not infer those stats fields are detail pagination inputs.
|
|
@@ -119,5 +127,5 @@ With matching queued rows at execute_at300/200/100, the initial page returns300/
|
|
|
119
127
|
|
|
120
128
|
`GET /api/tasks/{taskId}/data/details?metric=...&query=...` accepts the JSON search request text in query, plus separate encryptedFilter/cursor/rel/limit query parameters. Controller limit defaults50 and requires1–100, rel requires exact next/prev, and cursor must be valid Base64. Malformed query JSON produces invalid_query; invalid metric/limit/rel/cursor produces invalid_metric/invalid_limit/invalid_rel/invalid_cursor respectively.
|
|
121
129
|
|
|
122
|
-
The controller wraps required __metric/__task_id and optional user filters using binary-shaped AND nodes. Its task-statistic endpoint compiles ordinary user Filter only when the root leftOp is a string, so those wrapped user query.filters are ignored even when valid. Special selectors still traverse the tree (including kind-specific selectors such as retry threshold), and the separate encoded-filter path can still add predicates. Do not claim every accepted request narrows a profile/statistic rule on this GET path. Use the supported entity/metric POST or V2 statistic consumer for ordinary Filter composition;
|
|
130
|
+
The controller wraps required __metric/__task_id and optional user filters using binary-shaped AND nodes. Its task-statistic endpoint compiles ordinary user Filter only when the root leftOp is a string, so those wrapped user query.filters are ignored even when valid. Special selectors still traverse the tree (including kind-specific selectors such as retry threshold), and the separate encoded-filter path can still add predicates. Do not claim every accepted request narrows a profile/statistic rule on this GET path. Use the supported entity/metric POST or V2 statistic consumer for ordinary Filter composition; use the V2 cursor contract above. [Consumer matrix](query-dsl.QUERY-DSL.where-it-is-used.md), [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md) and [composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md) distinguish these contexts from Builder profile authoring.
|
|
123
131
|
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Filter DSL language contract
|
|
4
4
|
|
|
5
|
-
Filter is the separate language under API request **`filters`**, including dashboard entity/metric data search bodies. Profile-authored ordinary metric `metadata.where`, query transformation `metadata.where` and query step `data.where` are **Builder**, not Filter; a QUERY metric instead reads `metadata.sql.matchedWhere`/`unmatchedWhere`. The step's legacy `input` fallback is selected by
|
|
5
|
+
Filter is the separate language under API request **`filters`**, including dashboard entity/metric data search bodies. Profile-authored ordinary metric `metadata.where`, query transformation `metadata.where` and query step `data.where` are **Builder**, not Filter; a QUERY metric instead reads `metadata.sql.matchedWhere`/`unmatchedWhere`. The step's legacy `input` fallback is selected by One canonical Workflow component (search the standards MCP), not by the language. A request does not populate workflow/item bindings: availability and evaluation timing remain host-specific under Runtime scope (search the standards MCP). Filter has no typed FIELD/VALUE/PARAM/ARG/QUERY operand discriminators, authored `valueType` casts, `caseSensitive` switch, Builder LAST, general NOT or NOT_IN/ENDS_WITH family. See the [capability matrix](query-dsl.QUERY-DSL.where-it-is-used.md) for exact consumers rather than assuming every host combines both languages.
|
|
6
6
|
|
|
7
7
|
| Difference | Builder | Filter |
|
|
8
8
|
| --- | --- | --- |
|
|
@@ -35,7 +35,7 @@ where:
|
|
|
35
35
|
rightOp: { type: VALUE, val: A1 }
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
The handler compiles the typed FIELD/VALUE leaf, binds A1 and counts the two eligible A1 rows; the tree is not a row result. The
|
|
38
|
+
The handler compiles the typed FIELD/VALUE leaf, binds A1 and counts the two eligible A1 rows; the tree is not a row result. The COUNT metric owner (search the standards MCP) owns the metric envelope, eligibility guard and total facet. A query step/transformation can use this leaf at its own `where` path only with the required [query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md); it returns rows or changes an item rather than reporting the COUNT facet. A QUERY metric uses its matchedWhere/unmatchedWhere path instead.
|
|
39
39
|
|
|
40
40
|
Minimal Filter request, shown as YAML equivalent of the JSON HTTP body sent to `POST /api/tasks/{taskId}/data/search`:
|
|
41
41
|
|
|
@@ -48,7 +48,7 @@ filters:
|
|
|
48
48
|
|
|
49
49
|
The compiler validates the bare status field, targets `_.status`, and binds the literal ready. Standalone entity search retains `(A1,ready)` and `(B2,ready)` because the metric's sku rule is not automatically applied to that endpoint. `eq()` or `EQ` dispatches to the same equality branch; `eq(status,ready)` and `" eq "` are non-copyable unsupported tokens. These are condition aliases, not a string expression language.
|
|
50
50
|
|
|
51
|
-
**Composed profile-constrained query.** Send the same Filter body to `POST /api/tasks/{taskId}/metrics/{metricId}/key/total/search`, with the existing COUNT metric above. The inner source already contains the sku=A1 eligibility rule; the outer request filter adds status=ready exactly once. The returned `items` contain only `(A1,ready)` and the filtered `totalCount` is 1 for these assumptions. Request narrowing does not recompute or overwrite the metric's previously calculated total facet of 2. This result follows from filtering the profile-constrained source, not from an automatic conversion between languages. Missing `filters` leaves that source rule unchanged; missing an optional profile `where` does not create one from the request. Direct V2 QUERY-metric filtering additionally needs a real source alias `_`, and cursor transport
|
|
51
|
+
**Composed profile-constrained query.** Send the same Filter body to `POST /api/tasks/{taskId}/metrics/{metricId}/key/total/search`, with the existing COUNT metric above. The inner source already contains the sku=A1 eligibility rule; the outer request filter adds status=ready exactly once. The returned `items` contain only `(A1,ready)` and the filtered `totalCount` is 1 for these assumptions. Request narrowing does not recompute or overwrite the metric's previously calculated total facet of 2. This result follows from filtering the profile-constrained source, not from an automatic conversion between languages. Missing `filters` leaves that source rule unchanged; missing an optional profile `where` does not create one from the request. Direct V2 QUERY-metric filtering additionally needs a real source alias `_`, and cursor transport rules remain at the [request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md).
|
|
52
52
|
|
|
53
53
|
**Rejected cross-language forms.** A Builder `{op,data}` node pasted under request `filters` lacks `condition` and can be skipped, leaving no intended request narrowing; it is not fail-closed recovery. A Filter `{condition,leftOp,rightOp}` node under profile `where` does not become a typed Builder leaf. Rewrite with the correctly placed shape above rather than deleting the intended constraint. Filter rightOp `"@p0"` binds those literal characters, not a named variable; use an actual request literal or the host-specific [Builder binding contract](query-dsl.QUERY-DSL.operands.query-arguments.md), never generated parameter names. `valueType: NUMBER` is not an API Filter cast option: the [operand contract](query-dsl.QUERY-DSL.operands.md) owns Builder casts, while [Filter predicates](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md) explains automatic, serializer-sensitive casts. Nested request groups belong to [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md), not Builder data arrays.
|
|
54
54
|
|