@beehexa/hexasync-ai-toolkit 0.0.0-stage → 2610.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +31 -0
- package/.claude-plugin/plugin.json +19 -0
- package/.codex-plugin/plugin.json +37 -0
- package/.cursor-plugin/mcp.json +12 -0
- package/.cursor-plugin/plugin.json +20 -0
- package/.mcp.json +11 -0
- package/README.md +46 -2
- package/dist/cli.js +2922 -0
- package/gemini-extension.json +14 -0
- package/openclaw.extension.mjs +9 -0
- package/openclaw.plugin.json +14 -0
- package/package.json +69 -3
- package/plugin.json +21 -0
- package/skills/hexasync-connections/SKILL.md +36 -0
- package/skills/hexasync-connections/references/INDEX.md +33 -0
- package/skills/hexasync-connections/references/INSTALL.md +35 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.api-recovery.md +17 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.authentication-and-setup-steps.md +64 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.captured-call-and-authenticated-composition.md +96 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.compiled-connector-hooks.md +23 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.connection-authentication.md +36 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.connection-rate-limiting.md +17 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.fields.md +225 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.framework-understood-connection-option-catalogue.md +225 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.how-a-step-finds-its-connection.md +54 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.md +84 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.never-invent-a-systemcode.md +6 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.one-connection-one-credential-scope.md +16 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.related.md +9 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.resolution-and-transport-scope.md +8 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.the-self-connector.md +22 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.two-spellings-of-the-collection-both-accepted.md +6 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.two-spellings-of-the-provider-with-defined-precedence.md +6 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.unsupported-authentication.md +26 -0
- package/skills/hexasync-connections/references/connections.CONNECTIONS.untyped-options-generic-validity-is-not-provider-completeness.md +192 -0
- package/skills/hexasync-error-handling/SKILL.md +47 -0
- package/skills/hexasync-error-handling/references/INDEX.md +22 -0
- package/skills/hexasync-error-handling/references/INSTALL.md +35 -0
- package/skills/hexasync-error-handling/references/routing.NEXT.md +246 -0
- package/skills/hexasync-error-handling/references/steps.EXCEPTION.md +139 -0
- package/skills/hexasync-error-handling/references/steps.Error.md +296 -0
- package/skills/hexasync-expressions/SKILL.md +53 -0
- package/skills/hexasync-expressions/references/INDEX.md +45 -0
- package/skills/hexasync-expressions/references/INSTALL.md +35 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.arguments--computed-before-the-step-runs.md +6 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.dialect-classification-and-silent-scriban-fallback.md +32 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.exact-mutation-timeline.md +41 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.executor-results-are-not-downstream-values.md +10 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.graceful-failures-and-run-errors.md +6 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-call-site-scope-and-bindings.md +89 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-engine-pinned-version-and-restrictions.md +28 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonpath-expressions.md +47 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.md +21 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.quick-reference-the-three-expression-dialects.md +44 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.related.md +5 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +110 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-array-enum-item-and-numeric-functions.md +17 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-date-functions.md +19 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-object-functions.md +13 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-string-functions.md +45 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.host-qualified-authoring-examples.md +27 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.md +15 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.standard-engine-versus-host-custom-functions.md +32 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.visibility-and-call-site-constraints.md +8 -0
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.shared-stepiterator-roots.md +23 -0
- package/skills/hexasync-expressions/references/steps.JSONata.md +200 -0
- package/skills/hexasync-expressions/references/steps.Liquid.md +95 -0
- package/skills/hexasync-expressions/references/steps.Scriban.md +156 -0
- package/skills/hexasync-field-mapping/SKILL.md +60 -0
- package/skills/hexasync-field-mapping/references/INDEX.md +54 -0
- package/skills/hexasync-field-mapping/references/INSTALL.md +35 -0
- package/skills/hexasync-field-mapping/references/steps.SAVE_TASK_DATA.md +318 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.best-practices.md +11 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.fields.md +518 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.md +62 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.minimal-declaration-and-composed-usage.md +49 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.related.md +10 -0
- package/skills/hexasync-field-mapping/references/tables.TABLES.the-system-columns-are-not-declared-here.md +6 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.best-practices.md +21 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.contract.md +12 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.envelope-fields.md +115 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.example-enrich-an-item-with-a-structured-lookup.md +36 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +37 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.md +20 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.none--disabled-versus-absent-discriminator.md +17 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +37 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.related.md +10 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +18 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.sensible-configuration.md +23 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.syntax.md +30 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-chain-contract.md +43 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.bulkclone--clone-many.md +24 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.bulkrename--rename-many.md +27 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.clone--copy-one-field-to-several-names.md +47 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +120 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.md +18 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.nested_sql--legacy-raw-sql-producing-a-nested-list.md +64 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +88 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_many--the-dsl-replacement-for-nested_sql.md +172 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +220 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.rename--rename-one-field.md +45 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.resolve_raw_data--lift-a-value-out-of-the-raw-payload.md +86 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +49 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.sql--legacy-raw-sql.md +73 -0
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.when-to-use.md +9 -0
- package/skills/hexasync-metrics-reports/SKILL.md +55 -0
- package/skills/hexasync-metrics-reports/references/INDEX.md +41 -0
- package/skills/hexasync-metrics-reports/references/INSTALL.md +35 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.best-practices.md +13 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.choosing-a-scoremode.md +44 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.common-metadata-properties.md +35 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.contract.md +6 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.digest-message-templates.md +31 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.facet-properties.md +6 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.fields.md +551 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.health-scores.md +69 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.md +20 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-configuration.md +57 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-kinds-reference.md +574 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.related.md +9 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.sensible-configuration.md +30 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.severity-scoring.md +89 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.syntax.md +18 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.when-to-use.md +6 -0
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.worked-example-from-rows-to-health-score.md +108 -0
- package/skills/hexasync-metrics-reports/references/reports.REPORTS.md +460 -0
- package/skills/hexasync-metrics-reports/references/steps.METRIC_QUERY.md +171 -0
- package/skills/hexasync-metrics-reports/references/steps.QUERY_METRICS.md +400 -0
- package/skills/hexasync-pullers/SKILL.md +44 -0
- package/skills/hexasync-pullers/references/INDEX.md +50 -0
- package/skills/hexasync-pullers/references/INSTALL.md +35 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.api-error-classification.md +26 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.entity-classification.md +52 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.entry-context-and-transitions.md +12 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.error-and-final-handling.md +10 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.generalisation.md +17 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.md +36 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.overview.md +77 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.page-termination-and-the-four-platform-guards.md +49 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.paging-is-the-authors-job.md +8 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.persistence-and-safe-full-pull-removal.md +23 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-afterpullsteps.md +56 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-beforepullsteps.md +43 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-contracts.md +6 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-finalsteps.md +48 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-onerrorsteps.md +38 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-pullsteps.md +66 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-steps.md +46 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.probe-discipline.md +13 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.property-reference.md +561 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.puller-completeness-contract.md +88 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.related.md +11 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.stamp--sweep.md +21 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.symptom--cause--rule.md +24 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-resume-computation.md +19 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-six-slot-specificity-checklist--once-per-endpoint.md +28 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-webhook-vs-puller-division.md +8 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.two-puller-host-modes-not-two-workflow-constructs.md +24 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.watermark-trustworthiness.md +15 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-legacy-paged-pull.md +38 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-new-kind-snapshot-pull.md +74 -0
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-opaque-token-api.md +14 -0
- package/skills/hexasync-pullers/references/steps.PULLER.md +187 -0
- package/skills/hexasync-pushers/SKILL.md +60 -0
- package/skills/hexasync-pushers/references/INDEX.md +47 -0
- package/skills/hexasync-pushers/references/INSTALL.md +35 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.association-transform-routing.md +38 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.best-practices.md +38 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.expression-roots-differ-from-a-puller.md +27 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.fields.md +332 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.four-step-phases.md +17 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.indirect-pushers.md +36 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.md +85 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.minimal-configuration.md +45 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.ordinary-result-contract.md +136 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-afterpushsteps.md +34 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-beforepushsteps.md +33 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-afterpushsteps.md +8 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-beforepushsteps.md +46 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-pushsteps.md +8 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-contracts.md +10 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-finalsteps.md +99 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-pushsteps.md +50 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.related.md +10 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.resolution-ordering-locks-and-retries.md +56 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.the-two-identities-a-push-step-reads-off-the-item.md +18 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.troubleshooting.md +16 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-direct-push-with-dependency.md +66 -0
- package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-indirect-push.md +35 -0
- package/skills/hexasync-pushers/references/steps.PUSHER.md +238 -0
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_STATUS.md +201 -0
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +359 -0
- package/skills/hexasync-query-dsl/SKILL.md +67 -0
- package/skills/hexasync-query-dsl/references/INDEX.md +60 -0
- package/skills/hexasync-query-dsl/references/INSTALL.md +35 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.best-practice.md +6 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md +48 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md +51 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md +51 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-quick-reference.md +67 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +123 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +61 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.md +25 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.md +61 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md +80 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md +54 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md +52 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md +60 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md +92 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.md +16 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md +44 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md +67 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.regex-predicates-complete-scalar-postgresql-patterns.md +87 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md +85 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.verbatim-scalar-comparisons.md +92 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.property-reference.md +428 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md +363 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md +104 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.sensible-configuration.md +24 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md +57 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md +102 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.join-types.md +91 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.md +10 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +95 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +39 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.when-to-use.md +9 -0
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.where-it-is-used.md +141 -0
- package/skills/hexasync-query-dsl/references/steps.QUERY_MANY.md +510 -0
- package/skills/hexasync-query-dsl/references/steps.QUERY_SINGLE.md +491 -0
- package/skills/hexasync-query-dsl/references/steps.SQL.md +362 -0
- package/skills/hexasync-query-dsl/references/steps.SQL_PROXY.md +315 -0
- package/skills/hexasync-startup-tasks-scheduling/SKILL.md +44 -0
- package/skills/hexasync-startup-tasks-scheduling/references/INDEX.md +28 -0
- package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +35 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.contract.md +6 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.legacy-target-tasks.md +124 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.md +15 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.metric-defaults.md +73 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.related.md +9 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.scheduler-metadata.md +324 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.sensible-configuration.md +28 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.shape.md +108 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.syntax.md +33 -0
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.when-to-use.md +10 -0
- package/skills/hexasync-startup-tasks-scheduling/references/steps.ENQUEUER.md +234 -0
- package/skills/hexasync-steps-api-http/SKILL.md +61 -0
- package/skills/hexasync-steps-api-http/references/INDEX.md +73 -0
- package/skills/hexasync-steps-api-http/references/INSTALL.md +35 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.best-practices.md +11 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.exact-authored-shape.md +37 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.execution-order-and-shared-values.md +13 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.field-contract.md +60 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.md +49 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.members-encoded-inside-yaml-expression-strings.md +18 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parsejson-boundary.md +14 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parser-examples.md +77 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parser-groups.md +203 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.related.md +5 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.same-name-different-placement-grammars.md +80 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.status-narrowing.md +29 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.the-eight-parser-ids.md +17 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.troubleshooting.md +13 -0
- package/skills/hexasync-steps-api-http/references/routing.NEXT.md +246 -0
- package/skills/hexasync-steps-api-http/references/steps.API.api-pagination.md +44 -0
- package/skills/hexasync-steps-api-http/references/steps.API.api-response-parsing-and-outputs.md +43 -0
- package/skills/hexasync-steps-api-http/references/steps.API.api-response-status.md +37 -0
- package/skills/hexasync-steps-api-http/references/steps.API.best-practices.md +14 -0
- package/skills/hexasync-steps-api-http/references/steps.API.contract.md +64 -0
- package/skills/hexasync-steps-api-http/references/steps.API.curl-request-intake.md +31 -0
- package/skills/hexasync-steps-api-http/references/steps.API.failure-handling.md +18 -0
- package/skills/hexasync-steps-api-http/references/steps.API.fields.md +457 -0
- package/skills/hexasync-steps-api-http/references/steps.API.md +21 -0
- package/skills/hexasync-steps-api-http/references/steps.API.public-webhook-binding.md +17 -0
- package/skills/hexasync-steps-api-http/references/steps.API.related.md +12 -0
- package/skills/hexasync-steps-api-http/references/steps.API.request-builders.md +206 -0
- package/skills/hexasync-steps-api-http/references/steps.API.request-pipeline-and-precedence.md +13 -0
- package/skills/hexasync-steps-api-http/references/steps.API.sensitive-headers-and-diagnostic-trail.md +25 -0
- package/skills/hexasync-steps-api-http/references/steps.INDEX.md +137 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE._history--the-per-step-occurrence-ring.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.arguments-and-routing.md +103 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.best-practices.md +11 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.connection-binding.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.cross-cutting-step-flags.md +76 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.execution-budgets.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-results-graceful-returns-and-run-error-data.md +18 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +21 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.flow-entry.md +8 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.md +22 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.one-canonical-workflow-component.md +79 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.payload-selection-and-thrown-error-routing.md +19 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.recovery-bypasses-and-connector-restart.md +11 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.related.md +5 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.shape.md +300 -0
- package/skills/hexasync-steps-control-data/SKILL.md +59 -0
- package/skills/hexasync-steps-control-data/references/INDEX.md +133 -0
- package/skills/hexasync-steps-control-data/references/INSTALL.md +35 -0
- package/skills/hexasync-steps-control-data/references/steps.BASE64_TO_MIME_TYPE.md +101 -0
- package/skills/hexasync-steps-control-data/references/steps.Begin.md +80 -0
- package/skills/hexasync-steps-control-data/references/steps.CACHE.md +221 -0
- package/skills/hexasync-steps-control-data/references/steps.Composite.md +87 -0
- package/skills/hexasync-steps-control-data/references/steps.DIRECT_INDEX.md +303 -0
- package/skills/hexasync-steps-control-data/references/steps.DOWNLOAD_CSV.md +475 -0
- package/skills/hexasync-steps-control-data/references/steps.EXCEL_READER.md +323 -0
- package/skills/hexasync-steps-control-data/references/steps.End.md +100 -0
- package/skills/hexasync-steps-control-data/references/steps.GET_KEY_VALUE.md +167 -0
- package/skills/hexasync-steps-control-data/references/steps.GraphQL.md +88 -0
- package/skills/hexasync-steps-control-data/references/steps.IF.md +284 -0
- package/skills/hexasync-steps-control-data/references/steps.IGNORE_ITEM.md +170 -0
- package/skills/hexasync-steps-control-data/references/steps.INDEX.md +137 -0
- package/skills/hexasync-steps-control-data/references/steps.INVALIDATE_CACHE.md +175 -0
- package/skills/hexasync-steps-control-data/references/steps.LOOKUP_STEP.md +146 -0
- package/skills/hexasync-steps-control-data/references/steps.OData.md +133 -0
- package/skills/hexasync-steps-control-data/references/steps.PUBLISH_EVENT.md +274 -0
- package/skills/hexasync-steps-control-data/references/steps.QueryDSL.md +126 -0
- package/skills/hexasync-steps-control-data/references/steps.REMOVE_DATA.md +264 -0
- package/skills/hexasync-steps-control-data/references/steps.RESET_ITEM.md +164 -0
- package/skills/hexasync-steps-control-data/references/steps.RESOLVE_RAW_DATA.md +180 -0
- package/skills/hexasync-steps-control-data/references/steps.Restful.md +124 -0
- package/skills/hexasync-steps-control-data/references/steps.SEED_DATA.md +255 -0
- package/skills/hexasync-steps-control-data/references/steps.SET_KEY_VALUE.md +168 -0
- package/skills/hexasync-steps-control-data/references/steps.SLEEP.md +207 -0
- package/skills/hexasync-steps-control-data/references/steps.SWITCH.md +194 -0
- package/skills/hexasync-steps-control-data/references/steps.TRACK_FOR_REMOVAL.md +253 -0
- package/skills/hexasync-steps-control-data/references/steps.UPDATE_TASK_DATA_STATUS.md +247 -0
- package/skills/hexasync-steps-control-data/references/steps.VALUES.md +149 -0
- package/skills/hexasync-steps-control-data/references/steps.VERIFY_CACHED.md +172 -0
- package/skills/hexasync-steps-control-data/references/steps.cURL.md +78 -0
- package/skills/hexasync-tables-tasks-objects/SKILL.md +57 -0
- package/skills/hexasync-tables-tasks-objects/references/INDEX.md +78 -0
- package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +35 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.authoring-dependencies.md +80 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.best-practices-and-pitfalls.md +22 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.fields.md +430 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.md +57 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.related.md +6 -0
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.using-resolved-prerequisite-data.md +12 -0
- package/skills/hexasync-tables-tasks-objects/references/objectAssociations.OBJECT-ASSOCIATIONS.md +340 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.best-practices-and-pitfalls.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dataprocessing.md +88 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dependencies.md +27 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.description.md +37 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.enqueue.md +179 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.fromconnectionid.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.id.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignorechange.md +31 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignoreremoval.md +25 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.integrationtype.md +26 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.isdirtyremovable.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.md +52 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metricgroups.md +28 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metrics.md +25 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.name.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.newtablename.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.oldtablename.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.priority.md +20 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.puller.md +55 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.pusher.md +24 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.queuer.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.toconnectionid.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.type.md +35 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.valuetablename.md +25 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.viewname.md +23 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.visible.md +21 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.md +64 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.minimal-declaration.md +32 -0
- package/skills/hexasync-tables-tasks-objects/references/objects.object.related.md +8 -0
- package/skills/hexasync-tables-tasks-objects/references/steps.SAVE_TASK_DATA.md +318 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.best-practices.md +11 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.fields.md +518 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.md +62 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.minimal-declaration-and-composed-usage.md +49 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.related.md +10 -0
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.the-system-columns-are-not-declared-here.md +6 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.best-practices.md +11 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.fields.md +357 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.md +14 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.related.md +12 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.status-and-row-clocks.md +28 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.system-column-contract.md +44 -0
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.systemcolumns-presentation.md +99 -0
- package/skills/hexasync-templates/SKILL.md +67 -0
- package/skills/hexasync-templates/references/AI-INDEX.md +125 -0
- package/skills/hexasync-templates/references/INDEX.md +73 -0
- package/skills/hexasync-templates/references/INSTALL.md +35 -0
- package/skills/hexasync-templates/references/KB-INDEX.md +128 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.composed-and-render-only-metadata.md +30 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.composition-fields.md +44 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.deployment-descriptor-retirement-and-current-composition.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.md +32 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.minimal-worker-facing-profile.md +34 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-references.md +54 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.author.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connector-definition-document.md +356 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connectors.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.contributors.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.creationsteps.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.databasename.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.dependencies.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.description.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.externals.md +14 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +33 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.browser.md +101 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form-field-fields.md +238 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form.md +65 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.get_local_storage--set_local_storage.md +114 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.health_check_worker.md +33 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.if--switch.md +148 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.integration_app_management.md +115 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.jsonata--liquid.md +47 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +109 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.nextbranch-fields.md +93 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.output-fields.md +82 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.read_queries.md +30 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.redirect.md +80 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.select_google_drive.md +47 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.show_info.md +65 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.single_choice_form--multiple_choice_form.md +47 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +233 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.wait.md +79 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.id.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.legacy-roots--do-not-author.md +30 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.md +36 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.metricgroups.md +14 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.name.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.noschedules.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objectassociations.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objects.md +23 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pullers.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pushers.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.recommendations.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.reports.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.startuptasks.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.tables.md +15 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.thumbnail.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.transformations.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.validations.md +13 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.variables.md +16 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.webhooks.md +12 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.recommendation-selection.md +36 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.reference-composition-across-run-and-render-scope.md +29 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md +21 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.related.md +5 -0
- package/skills/hexasync-transformations/SKILL.md +51 -0
- package/skills/hexasync-transformations/references/INDEX.md +40 -0
- package/skills/hexasync-transformations/references/INSTALL.md +35 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.best-practices.md +21 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.contract.md +12 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.envelope-fields.md +115 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.example-enrich-an-item-with-a-structured-lookup.md +36 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +37 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.md +20 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.none--disabled-versus-absent-discriminator.md +17 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +37 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.related.md +10 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +18 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.sensible-configuration.md +23 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.syntax.md +30 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-chain-contract.md +43 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.bulkclone--clone-many.md +24 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.bulkrename--rename-many.md +27 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.clone--copy-one-field-to-several-names.md +47 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +120 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.md +18 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.nested_sql--legacy-raw-sql-producing-a-nested-list.md +64 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +88 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_many--the-dsl-replacement-for-nested_sql.md +172 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +220 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.rename--rename-one-field.md +45 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.resolve_raw_data--lift-a-value-out-of-the-raw-payload.md +86 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +49 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.sql--legacy-raw-sql.md +73 -0
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.when-to-use.md +9 -0
- package/skills/hexasync-validations/SKILL.md +52 -0
- package/skills/hexasync-validations/references/INDEX.md +27 -0
- package/skills/hexasync-validations/references/INSTALL.md +35 -0
- package/skills/hexasync-validations/references/steps.CHECK_FORMAT.md +196 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.authoring-validations.md +5 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.best-practices.md +15 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.composing-rules.md +37 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.example-required-text-plus-a-numeric-range.md +33 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.fields.md +118 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.how-validations-behave.md +27 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.md +57 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.metadata-members.md +134 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.not-the-query-dsl.md +15 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.operators.md +406 -0
- package/skills/hexasync-validations/references/validations.VALIDATIONS.troubleshooting.md +13 -0
- package/skills/hexasync-webhooks/SKILL.md +62 -0
- package/skills/hexasync-webhooks/references/INDEX.md +46 -0
- package/skills/hexasync-webhooks/references/INSTALL.md +35 -0
- package/skills/hexasync-webhooks/references/steps.FORWARD.md +130 -0
- package/skills/hexasync-webhooks/references/steps.WEBHOOK_FORWARD.md +259 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.best-practices.md +31 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.gateway-mcp-webhook-workflow.md +206 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.md +62 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.message-shape.md +29 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-finalsteps.md +59 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-pullsteps.md +72 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.related.md +10 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.routing-and-boundary-ownership.md +30 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.shape.md +37 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.autoenqueue.md +66 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.datafilter.md +68 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.dataparser.md +268 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.id-target.md +21 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.matchfilter-and-matchpattern.md +77 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.matchremovefilter-and-matchremovepattern.md +41 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.md +20 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.objectid-deprecated.md +25 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.objectids.md +66 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.options.md +67 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.pullsteps.md +31 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.rejected-target-fields-finalsteps-and-responsefilters.md +8 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.troubleshooting.md +17 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.webhook-properties.md +117 -0
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.worked-example-webhook-direct-index-plus-steps.md +71 -0
package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.severity-scoring.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
> Part of [Metrics Configuration Reference](metrics.METRICS_REFERENCE.md).
|
|
2
|
+
|
|
3
|
+
## Severity scoring
|
|
4
|
+
|
|
5
|
+
A severity is **derived**, not chosen, so two authors scoring the same defect get the same number and the reason is auditable.
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
severityScore = impact × reversibility × certainty (rounded to the nearest integer)
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
#### Factor 1 — Consequence: what is lost when it's wrong?
|
|
12
|
+
|
|
13
|
+
| Level | Points | Definition |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| Direct money loss | **100** | Lost revenue or a penalty |
|
|
16
|
+
| Operations blocked | **70** | Fulfilment, processing or syncing gets stuck |
|
|
17
|
+
| Degraded service | **40** | Still works, but service quality drops |
|
|
18
|
+
| Missed opportunity | **20** | Not an error — limits potential |
|
|
19
|
+
|
|
20
|
+
#### Factor 2 — Reversibility: how hard is it to undo?
|
|
21
|
+
|
|
22
|
+
| Level | Factor | Definition |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| Irreversible | **×1.0** | Past the point of no return (document issued, period closed) |
|
|
25
|
+
| Costly | **×0.9** | Fixable, but needs reconciliation or contacting third parties |
|
|
26
|
+
| Easy | **×0.8** | Correct the value in the source system and it is fixed |
|
|
27
|
+
|
|
28
|
+
#### Factor 3 — Certainty: is it always actually wrong?
|
|
29
|
+
|
|
30
|
+
| Level | Factor | Definition |
|
|
31
|
+
|---|---|---|
|
|
32
|
+
| Always wrong | **×1.0** | Wrong in every circumstance |
|
|
33
|
+
| Usually wrong | **×0.85** | Rare legitimate exceptions exist |
|
|
34
|
+
| Context-dependent | **×0.7** | Depends on the business model |
|
|
35
|
+
|
|
36
|
+
### Worked severity illustrations
|
|
37
|
+
|
|
38
|
+
| Defect pattern | Consequence | Reversibility | Certainty | **Score** |
|
|
39
|
+
|---|---|---|---|---|
|
|
40
|
+
| Tax category mismatch | Direct money loss (100) | Irreversible (×1.0) | Always wrong (×1.0) | **100** |
|
|
41
|
+
| Negative price | Direct money loss (100) | Costly (×0.9) | Always wrong (×1.0) | **90** |
|
|
42
|
+
| Missing price | Direct money loss (100) | Easy (×0.8) | Always wrong (×1.0) | **80** |
|
|
43
|
+
| Parent record without child lines | Operations blocked (70) | Costly (×0.9) | Always wrong (×1.0) | **63** |
|
|
44
|
+
| Duplicate identifier | Operations blocked (70) | Easy (×0.8) | Always wrong (×1.0) | **56** |
|
|
45
|
+
| Missing contact field | Degraded service (40) | Costly (×0.9) | Usually wrong (×0.85) | **31** |
|
|
46
|
+
| Empty optional descriptive field | Missed opportunity (20) | Easy (×0.8) | Usually wrong (×0.85) | **14** |
|
|
47
|
+
|
|
48
|
+
Reversibility separates otherwise equal defects: a missing price (easy to set) scores below a negative price (which usually needs reconciliation).
|
|
49
|
+
|
|
50
|
+
### How to write `scoreReason`
|
|
51
|
+
|
|
52
|
+
Syntax: `scoreReason: <string>`
|
|
53
|
+
|
|
54
|
+
Line 1 is the rubric calculation, using the level names above; line 2 is the plain-language impact.
|
|
55
|
+
|
|
56
|
+
```yaml
|
|
57
|
+
id: 00000000-0000-4000-8000-000000000016
|
|
58
|
+
kind: AVAILABILITY
|
|
59
|
+
metadata:
|
|
60
|
+
field: price
|
|
61
|
+
facets:
|
|
62
|
+
missing:
|
|
63
|
+
name: Missing price
|
|
64
|
+
kind: ERROR
|
|
65
|
+
description: Rows without a price cannot be sold; set the price in the source system.
|
|
66
|
+
severityScore: 80
|
|
67
|
+
scoreReason: | # required on scored ERROR/WARNING; at least 40 characters
|
|
68
|
+
Direct money loss (100) × Easy (×0.8) × Always wrong (×1.0) = 80
|
|
69
|
+
A row with no price cannot be purchased.
|
|
70
|
+
scoreMode: SIBLING_SUM
|
|
71
|
+
dimension: COMPLETENESS
|
|
72
|
+
available: {name: Price present, kind: SUCCESS}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Counterexample (do not copy) — each line is a separate wrong `scoreReason`: missing the calculation; restating the error (that belongs in `description`); restating the fix (also `description`).
|
|
76
|
+
|
|
77
|
+
```yaml
|
|
78
|
+
- "A row with no price cannot be purchased."
|
|
79
|
+
- "The price is empty."
|
|
80
|
+
- "Open the source system and set a price."
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Rules of thumb
|
|
84
|
+
|
|
85
|
+
- Derive severity from the rubric; `0` deliberately excludes a facet from scoring without hiding its count.
|
|
86
|
+
- Keep SIBLING_SUM partitions disjoint; overlapping predicates or timeline keys are not a population.
|
|
87
|
+
- Use a signal, not a defect, for valid business states that need attention.
|
|
88
|
+
- Undeclared data-driven keys (AGGREGATION) are unscored until you declare them.
|
|
89
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
> Part of [Metrics Configuration Reference](metrics.METRICS_REFERENCE.md).
|
|
2
|
+
|
|
3
|
+
## Syntax
|
|
4
|
+
|
|
5
|
+
```yaml
|
|
6
|
+
objects:
|
|
7
|
+
- metrics:
|
|
8
|
+
- id: <uuid> # <uuid string>; required; no default
|
|
9
|
+
kind: <metric kind> # <COUNT | SUM | QUERY | NOT_SYNCED | REGEX | AVAILABILITY | DUPLICATE | NUMBER | AGGREGATION | LOW_NUMBER>; required; no default
|
|
10
|
+
name: <string> # <string | null>; optional; no default
|
|
11
|
+
groups: [<group key>] # <list of group keys>; optional; omitted = ungrouped
|
|
12
|
+
position: <number> # <number>; optional; omitted = after positioned metrics
|
|
13
|
+
format: NUMBER # <NUMBER | DATETIME | DURATION | null>; optional; omitted = numeric display
|
|
14
|
+
metadata: # <object>; required; {} when the kind needs no arguments
|
|
15
|
+
facets: # <map emittedKey → facet>; optional
|
|
16
|
+
<emittedKey>: { name: <string>, kind: <SUCCESS | ERROR | WARNING | INFO> }
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
> Part of [Metrics Configuration Reference](metrics.METRICS_REFERENCE.md).
|
|
2
|
+
|
|
3
|
+
## When to use
|
|
4
|
+
|
|
5
|
+
**Use a metric when** you want a recurring count, sum or quality check over stored task rows (for example: how many rows are missing a value, how many fail a format, how many are stale). **Do not use a metric** to transform or move data; use workflow steps or [transformations](hexasync://docs/transformations/TRANSFORMATIONS) for that. To block bad rows from being pushed rather than count them, use [validations](hexasync://docs/validations/VALIDATIONS).
|
|
6
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
> Part of [Metrics Configuration Reference](metrics.METRICS_REFERENCE.md).
|
|
2
|
+
|
|
3
|
+
## Worked example: from rows to health score
|
|
4
|
+
|
|
5
|
+
A task has these stored rows (`email` and `amount` are text):
|
|
6
|
+
|
|
7
|
+
| Row | `__status` | `email` | `amount` |
|
|
8
|
+
|---|---:|---|---|
|
|
9
|
+
| A | 0 | `a@b.com` | `"10"` |
|
|
10
|
+
| B | 0 | `bad` | `"-2"` |
|
|
11
|
+
| C | 0 | NULL | `"0"` |
|
|
12
|
+
| D | 4 (ignored) | spaces only | `"20"` |
|
|
13
|
+
| E | 2 (removed) | `e@b.com` | `"100"` |
|
|
14
|
+
|
|
15
|
+
Profile group and the task's metrics:
|
|
16
|
+
|
|
17
|
+
```yaml
|
|
18
|
+
metricGroups:
|
|
19
|
+
- key: ANALYTICS
|
|
20
|
+
name: Data quality walkthrough
|
|
21
|
+
position: 8
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```yaml
|
|
25
|
+
metrics:
|
|
26
|
+
- id: 00000000-0000-4000-8000-000000000801
|
|
27
|
+
kind: COUNT
|
|
28
|
+
groups: [ANALYTICS]
|
|
29
|
+
position: 1
|
|
30
|
+
metadata:
|
|
31
|
+
facets:
|
|
32
|
+
total: {name: Population, kind: INFO}
|
|
33
|
+
- id: 00000000-0000-4000-8000-000000000802
|
|
34
|
+
kind: SUM
|
|
35
|
+
groups: [ANALYTICS]
|
|
36
|
+
position: 2
|
|
37
|
+
metadata:
|
|
38
|
+
field: amount
|
|
39
|
+
facets:
|
|
40
|
+
total: {name: Amount total, kind: INFO}
|
|
41
|
+
- id: 00000000-0000-4000-8000-000000000803
|
|
42
|
+
kind: AVAILABILITY
|
|
43
|
+
groups: [ANALYTICS]
|
|
44
|
+
position: 3
|
|
45
|
+
metadata:
|
|
46
|
+
field: email
|
|
47
|
+
facets:
|
|
48
|
+
missing:
|
|
49
|
+
name: Missing email
|
|
50
|
+
kind: ERROR
|
|
51
|
+
description: Missing contact email prevents reliable follow-up and review.
|
|
52
|
+
severityScore: 31
|
|
53
|
+
scoreReason: |
|
|
54
|
+
Degraded service (40) × Costly (×0.9) × Usually wrong (×0.85) = 31
|
|
55
|
+
Missing email makes follow-up unreliable.
|
|
56
|
+
scoreMode: SIBLING_SUM
|
|
57
|
+
dimension: COMPLETENESS
|
|
58
|
+
available: {name: Email present, kind: SUCCESS}
|
|
59
|
+
- id: 00000000-0000-4000-8000-000000000804
|
|
60
|
+
kind: REGEX
|
|
61
|
+
groups: [ANALYTICS]
|
|
62
|
+
position: 4
|
|
63
|
+
metadata:
|
|
64
|
+
field: email
|
|
65
|
+
regex: '^[a-z]+@[a-z]+[.]com$'
|
|
66
|
+
facets:
|
|
67
|
+
matched: {name: Email format accepted, kind: SUCCESS}
|
|
68
|
+
unmatched:
|
|
69
|
+
name: Email format invalid
|
|
70
|
+
kind: ERROR
|
|
71
|
+
description: Present email must match the expected contact format before follow-up.
|
|
72
|
+
severityScore: 31
|
|
73
|
+
scoreReason: |
|
|
74
|
+
Degraded service (40) × Costly (×0.9) × Usually wrong (×0.85) = 31
|
|
75
|
+
Invalid email makes follow-up unreliable.
|
|
76
|
+
scoreMode: SIBLING_SUM
|
|
77
|
+
dimension: VALIDITY
|
|
78
|
+
- id: 00000000-0000-4000-8000-000000000805
|
|
79
|
+
kind: NUMBER
|
|
80
|
+
groups: [ANALYTICS]
|
|
81
|
+
position: 5
|
|
82
|
+
metadata:
|
|
83
|
+
field: amount
|
|
84
|
+
facets:
|
|
85
|
+
positive: {name: Positive amount, kind: INFO}
|
|
86
|
+
equals: {name: Zero amount, kind: INFO}
|
|
87
|
+
negative:
|
|
88
|
+
name: Negative amount
|
|
89
|
+
kind: WARNING
|
|
90
|
+
description: Negative amounts may represent valid refunds; inspect their business context.
|
|
91
|
+
signal: true
|
|
92
|
+
scoreMode: BINARY
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Results (E is removed and excluded everywhere; D is ignored but still counted):
|
|
96
|
+
|
|
97
|
+
| Metric | Emitted totals | Why |
|
|
98
|
+
|---|---|---|
|
|
99
|
+
| COUNT | `total: 4` | A–D |
|
|
100
|
+
| SUM | `total: 28` | 10 − 2 + 0 + 20 |
|
|
101
|
+
| AVAILABILITY | `missing: 2`, `available: 2` | C, D missing; declared `missing` selects the two-way shape |
|
|
102
|
+
| REGEX | `matched: 1`, `unmatched: 1` | A matches, B does not; C, D are not present values |
|
|
103
|
+
| NUMBER | `positive: 2`, `equals: 1`, `negative: 1` | A, D / C / B |
|
|
104
|
+
|
|
105
|
+
Score: missing email rate 2/4 = 0.5 → 15.5 of 31 kept; invalid email rate 1/2 = 0.5 → 15.5 of 31 kept. `overall` 50.0, COMPLETENESS 50.0, VALIDITY 50.0, `dimensionMean` 50.0, band critical. The negative-amount signal is listed separately and deducts nothing. Do not add totals across metrics: they measure different things.
|
|
106
|
+
|
|
107
|
+
To stop counting D, add `NOT_HAS_BITS` on `_.__status` with value 4 to each metric's `where` (see [where](metrics.METRICS_REFERENCE.common-metadata-properties.md#where)).
|
|
108
|
+
|
|
@@ -0,0 +1,460 @@
|
|
|
1
|
+
# Reports
|
|
2
|
+
|
|
3
|
+
> Addressable through the MCP as **`hexasync://docs/reports/REPORTS`**.
|
|
4
|
+
|
|
5
|
+
**Syntax**
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
reports:
|
|
9
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa # <uuid>; required; no default
|
|
10
|
+
name: Orders without customer # <string>; required; no default
|
|
11
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb # <tables[].id uuid>; required; columns of the report table
|
|
12
|
+
tableName: __hsr_orders_without_customer # <string>; required; physical report table
|
|
13
|
+
reportSql: SELECT order_number FROM __hss_orders ORDER BY order_number LIMIT @__limit # <SQL string>; required; Scriban-rendered, paged
|
|
14
|
+
type: Negative # <Negative | Positive | Information | Summary>; defaults to Negative
|
|
15
|
+
mode: Incremental # <Incremental | Full>; defaults to Incremental
|
|
16
|
+
index: 9999 # <integer>; defaults to 9999
|
|
17
|
+
description: Full explanation # <string | null>; optional; no default
|
|
18
|
+
shortDescription: One-line summary # <string | null>; optional; no default
|
|
19
|
+
recommendation: Suggested remedy # <string | null>; optional; no default
|
|
20
|
+
arguments: { order_number: null } # <map name → value | null>; optional; no default
|
|
21
|
+
preparationStatements: {} # <map key → { index, sql, arguments } | null>; optional; no default
|
|
22
|
+
cleanupScripts: [] # <list of { sql, index, description } | null>; optional; no default
|
|
23
|
+
metadata: {} # <any JSON>; optional; no default
|
|
24
|
+
relatedEntities: [] # <list of { entityType, entityId, index, description } | null>; optional; no default
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Purpose.** A report runs SQL over stored task data and keeps the result in its own table — for example, orders without a customer, or a daily volume summary. Each run reconciles the new result with the stored rows, so rows persist between runs and can be resolved.
|
|
28
|
+
|
|
29
|
+
**When to use.** Use a report for a cross-row or cross-task finding that should be stored and reviewed. Use [metrics](metrics.METRICS_REFERENCE.md) for counts and scores on one task, and [validations](hexasync://docs/validations/VALIDATIONS) for per-row rules that block pushing. A task with `type: REPORT` is not a report; reports live only in `reports[]`.
|
|
30
|
+
|
|
31
|
+
**Sensible configuration.**
|
|
32
|
+
|
|
33
|
+
```yaml
|
|
34
|
+
reports:
|
|
35
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
36
|
+
name: Orders without customer
|
|
37
|
+
shortDescription: Orders whose customer code is empty.
|
|
38
|
+
type: Negative
|
|
39
|
+
mode: Full
|
|
40
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
41
|
+
tableName: __hsr_orders_without_customer
|
|
42
|
+
arguments:
|
|
43
|
+
order_number: null
|
|
44
|
+
reportSql: |-
|
|
45
|
+
SELECT order_number, total
|
|
46
|
+
FROM __hss_orders
|
|
47
|
+
WHERE customer_code IS NULL
|
|
48
|
+
AND (@order_number IS NULL OR order_number > @order_number)
|
|
49
|
+
ORDER BY order_number
|
|
50
|
+
LIMIT @__limit
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Declare a dedicated table for the report columns, with the report's business key in `KEYS`. Write `reportSql` with stable keyset paging on that key. Set `type` to describe the finding and `mode: Full` when the query returns the complete current result. Schedule it with a REPORTER job or run it explicitly; declaring it does not run it.
|
|
54
|
+
|
|
55
|
+
## Fields
|
|
56
|
+
|
|
57
|
+
| Path | Syntax | Required | Default |
|
|
58
|
+
| --- | --- | --- | --- |
|
|
59
|
+
| `id` | `id: <uuid>` | yes | — |
|
|
60
|
+
| `name` | `name: <string>` | yes | — |
|
|
61
|
+
| `tableId` | `tableId: <tables[].id>` | yes | — |
|
|
62
|
+
| `tableName` | `tableName: <string>` | yes | — |
|
|
63
|
+
| `reportSql` | `reportSql: <SQL>` | yes | — |
|
|
64
|
+
| `type` | `type: Negative \| Positive \| Information \| Summary` | no | `Negative` |
|
|
65
|
+
| `mode` | `mode: Incremental \| Full` | no | `Incremental` |
|
|
66
|
+
| `index` | `index: <integer>` | no | `9999` |
|
|
67
|
+
| `description`, `shortDescription`, `recommendation` | `<string \| null>` | no | — |
|
|
68
|
+
| `arguments` | `arguments: { <name>: <value>, … } \| null` | no | none |
|
|
69
|
+
| `preparationStatements` | `preparationStatements: { <key>: { index, sql, arguments } } \| null` | no | none |
|
|
70
|
+
| `cleanupScripts` | `cleanupScripts: [{ sql, index, description }] \| null` | no | none |
|
|
71
|
+
| `metadata` | any JSON | no | — |
|
|
72
|
+
| `relatedEntities` | `relatedEntities: [{ entityType, entityId, index, description }] \| null` | no | none |
|
|
73
|
+
|
|
74
|
+
Optional integers and enums have defaults; omit them rather than writing `null`.
|
|
75
|
+
|
|
76
|
+
### id
|
|
77
|
+
|
|
78
|
+
Syntax: `id: <GUID string>`
|
|
79
|
+
|
|
80
|
+
`id: <uuid>` — required, unique in `reports[]`. Identifies the report for schedules and explicit runs. Use canonical lowercase hyphenated UUID text; neither `name` nor `tableName` is an identity.
|
|
81
|
+
|
|
82
|
+
```yaml
|
|
83
|
+
reports:
|
|
84
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa # required; no default
|
|
85
|
+
name: Orders without customer
|
|
86
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
87
|
+
tableName: __hsr_orders_without_customer
|
|
88
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### name
|
|
92
|
+
|
|
93
|
+
Syntax: `name: <string>`
|
|
94
|
+
|
|
95
|
+
`name: <string>` — required display label, also used for schedule labels and notifications.
|
|
96
|
+
|
|
97
|
+
```yaml
|
|
98
|
+
reports:
|
|
99
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
100
|
+
name: Orders without customer # required
|
|
101
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
102
|
+
tableName: __hsr_orders_without_customer
|
|
103
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### description, shortDescription and recommendation
|
|
107
|
+
|
|
108
|
+
Syntax: `description: <string | null>`
|
|
109
|
+
|
|
110
|
+
Syntax: `shortDescription: <string | null>`
|
|
111
|
+
|
|
112
|
+
Syntax: `recommendation: <string | null>`
|
|
113
|
+
|
|
114
|
+
`description`, `shortDescription`, `recommendation: <string | null>` — optional text for readers: a full explanation, a one-line summary, and the suggested remedy. Descriptive only; nothing executes the recommendation. Absent or `null` shows no text. Use `shortDescription` for list views, `description` for the detail view and `recommendation` for the fix.
|
|
115
|
+
|
|
116
|
+
```yaml
|
|
117
|
+
reports:
|
|
118
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
119
|
+
name: Orders without customer
|
|
120
|
+
shortDescription: Orders whose customer code is empty. # optional; no default
|
|
121
|
+
description: Lists stored orders that cannot be delivered because no customer is linked. # optional; no default
|
|
122
|
+
recommendation: Fix the customer mapping in the source system, then re-pull. # optional; no default; text only
|
|
123
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
124
|
+
tableName: __hsr_orders_without_customer
|
|
125
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### index
|
|
129
|
+
|
|
130
|
+
Syntax: `index: <integer>`
|
|
131
|
+
|
|
132
|
+
`index: <integer>` — ordering hint among reports. It does not control execution order.
|
|
133
|
+
|
|
134
|
+
```yaml
|
|
135
|
+
reports:
|
|
136
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
137
|
+
name: Orders without customer
|
|
138
|
+
index: 10 # defaults to 9999
|
|
139
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
140
|
+
tableName: __hsr_orders_without_customer
|
|
141
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### type
|
|
145
|
+
|
|
146
|
+
Syntax: `type: <Negative | Positive | Information | Summary>`
|
|
147
|
+
|
|
148
|
+
`type: Negative | Positive | Information | Summary` — classifies the finding.
|
|
149
|
+
|
|
150
|
+
- `Negative` (default) — a problem list. Issue notifications include Negative reports that have unresolved rows.
|
|
151
|
+
- `Positive` — a list of things that are right (for example confirmations).
|
|
152
|
+
- `Information` — neutral detail.
|
|
153
|
+
- `Summary` — aggregated overview.
|
|
154
|
+
|
|
155
|
+
Only `Negative` drives issue notifications; the type does not change the SQL or set row severity.
|
|
156
|
+
|
|
157
|
+
```yaml
|
|
158
|
+
reports:
|
|
159
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
160
|
+
name: Order volume by day
|
|
161
|
+
type: Summary # defaults to Negative
|
|
162
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
163
|
+
tableName: __hsr_order_volume
|
|
164
|
+
reportSql: SELECT order_day, order_count FROM __hss_order_volume_view ORDER BY order_day LIMIT @__limit
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### mode
|
|
168
|
+
|
|
169
|
+
Syntax: `mode: <Full | Incremental>`
|
|
170
|
+
|
|
171
|
+
`mode: Incremental | Full` — how a run reconciles with stored rows.
|
|
172
|
+
|
|
173
|
+
- `Incremental` (default) — new and changed rows are written; stored rows the query no longer returns are **kept**. Choose it when the query returns only a slice (for example, recent changes).
|
|
174
|
+
- `Full` — stored rows the query no longer returns are **deleted**. Choose it when the query returns the complete current result.
|
|
175
|
+
|
|
176
|
+
Neither mode filters `reportSql`; the query decides which rows are read. An argument `__is_full_pull` authored literally as `true` or `1` forces Full for that report (a Scriban expression that renders `true` does not).
|
|
177
|
+
|
|
178
|
+
```yaml
|
|
179
|
+
reports:
|
|
180
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
181
|
+
name: Orders without customer
|
|
182
|
+
mode: Full # defaults to Incremental
|
|
183
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
184
|
+
tableName: __hsr_orders_without_customer
|
|
185
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### tableId
|
|
189
|
+
|
|
190
|
+
Syntax: `tableId: <GUID string>`
|
|
191
|
+
|
|
192
|
+
`tableId: <tables[].id>` — required. The [table definition](hexasync://docs/tables/TABLES/fields) whose columns the report stores. Its `KEYS` columns form the report row's business key. The table must exist; an unknown id fails before the query runs.
|
|
193
|
+
|
|
194
|
+
```yaml
|
|
195
|
+
tables:
|
|
196
|
+
- id: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
197
|
+
columns:
|
|
198
|
+
order_number: { name: Order number, dbType: varchar(64), indexGroups: [KEYS] }
|
|
199
|
+
total: { name: Total, dataType: Numeric, dbType: 'numeric(12,2)' }
|
|
200
|
+
reports:
|
|
201
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
202
|
+
name: Orders without customer
|
|
203
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb # required; must match a tables[].id
|
|
204
|
+
tableName: __hsr_orders_without_customer
|
|
205
|
+
reportSql: SELECT order_number, total FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### tableName
|
|
209
|
+
|
|
210
|
+
Syntax: `tableName: <string>`
|
|
211
|
+
|
|
212
|
+
`tableName: <string>` — required physical name of the report table, independent of `tableId`. The platform creates it (and a `<tableName>_n` staging table) when report storage is initialized; a run does not create missing storage. Use a distinct name per report, under 63 characters (a `__hsr` prefix keeps reports recognizable).
|
|
213
|
+
|
|
214
|
+
```yaml
|
|
215
|
+
reports:
|
|
216
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
217
|
+
name: Orders without customer
|
|
218
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
219
|
+
tableName: __hsr_orders_without_customer # required; physical storage
|
|
220
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### reportSql
|
|
224
|
+
|
|
225
|
+
Syntax: `reportSql: <string>`
|
|
226
|
+
|
|
227
|
+
`reportSql: <SQL>` — required. A PostgreSQL query rendered with [Scriban](hexasync://docs/expressions/CONTEXT-AND-IO/scriban-default-and-host-custom-builtins), then executed repeatedly page by page:
|
|
228
|
+
|
|
229
|
+
- `@__limit` is always bound to `10000`;
|
|
230
|
+
- after each page, the last row's column values are bound to parameters of the same name (`@order_number` receives the last `order_number`), so `WHERE (@order_number IS NULL OR order_number > @order_number)` advances the page;
|
|
231
|
+
- an empty page ends the run; a page that starts with the same row as the previous one stops the run as a safety guard;
|
|
232
|
+
- returned columns are matched to the table's columns; undeclared columns are dropped, missing ones stored as `NULL`.
|
|
233
|
+
|
|
234
|
+
Choose a stable, unique, non-null paging key (normally the report key) and order by it. Bind values with `@parameters` rather than interpolating them into SQL text.
|
|
235
|
+
|
|
236
|
+
```yaml
|
|
237
|
+
reports:
|
|
238
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
239
|
+
name: Orders without customer
|
|
240
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
241
|
+
tableName: __hsr_orders_without_customer
|
|
242
|
+
arguments:
|
|
243
|
+
order_number: null # first page starts with no lower bound
|
|
244
|
+
reportSql: |- # required; keyset-paged on order_number
|
|
245
|
+
SELECT order_number, total
|
|
246
|
+
FROM __hss_orders
|
|
247
|
+
WHERE customer_code IS NULL
|
|
248
|
+
AND (@order_number IS NULL OR order_number > @order_number)
|
|
249
|
+
ORDER BY order_number
|
|
250
|
+
LIMIT @__limit
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
### arguments
|
|
254
|
+
|
|
255
|
+
Syntax: `arguments: <object | null>`
|
|
256
|
+
|
|
257
|
+
`arguments: { <name>: <value>, … } | null` — named SQL parameters for `reportSql`. Each non-null value is converted to text and rendered with Scriban against the invocation and [preparation](#preparationstatements) context, then bound as `@name`; `null` stays `NULL`. `__limit` is always 10000. Parameters used in the SQL but not declared here are bound as `NULL`, but declaring them makes the paging start explicit. Cast text parameters in SQL when a typed comparison is needed (`@min_total::numeric`).
|
|
258
|
+
|
|
259
|
+
```yaml
|
|
260
|
+
reports:
|
|
261
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
262
|
+
name: Large orders without customer
|
|
263
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
264
|
+
tableName: __hsr_large_orders_without_customer
|
|
265
|
+
arguments: # optional; defaults to none
|
|
266
|
+
order_number: null
|
|
267
|
+
min_total: "1000"
|
|
268
|
+
reportSql: |-
|
|
269
|
+
SELECT order_number, total
|
|
270
|
+
FROM __hss_orders
|
|
271
|
+
WHERE customer_code IS NULL AND total >= @min_total::numeric
|
|
272
|
+
AND (@order_number IS NULL OR order_number > @order_number)
|
|
273
|
+
ORDER BY order_number
|
|
274
|
+
LIMIT @__limit
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### preparationStatements
|
|
278
|
+
|
|
279
|
+
Syntax: `preparationStatements: <map of name → object | null>`
|
|
280
|
+
|
|
281
|
+
`preparationStatements: { <key>: { index, sql, arguments } } | null` — statements that run before `reportSql`, in ascending `index` order. The first row each returns is stored in the rendering context under its key (an empty result stores `{}`), so later statements, `arguments` and `reportSql` can use `{{ <key>.<column> }}`.
|
|
282
|
+
|
|
283
|
+
| Field | Syntax | Default | Meaning |
|
|
284
|
+
| --- | --- | --- | --- |
|
|
285
|
+
| `index` | `index: <integer>` | `0` | Execution order; give dependent statements distinct, increasing values |
|
|
286
|
+
| `sql` | `sql: <SQL \| null>` | — | Scriban-rendered SQL; a blank result is skipped |
|
|
287
|
+
| `arguments` | `arguments: { <name>: <value> } \| null` | none | Parameters for this statement, rendered like report `arguments` (no automatic `__limit`, undeclared parameters are not filled) |
|
|
288
|
+
|
|
289
|
+
```yaml
|
|
290
|
+
reports:
|
|
291
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
292
|
+
name: Orders without customer
|
|
293
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
294
|
+
tableName: __hsr_orders_without_customer
|
|
295
|
+
preparationStatements: # optional; no default
|
|
296
|
+
sourceSummary:
|
|
297
|
+
index: 0 # defaults to 0
|
|
298
|
+
sql: SELECT count(*) AS total FROM __hss_orders
|
|
299
|
+
arguments: {} # defaults to none
|
|
300
|
+
arguments:
|
|
301
|
+
order_number: null
|
|
302
|
+
source_count: "{{ sourceSummary.total }}"
|
|
303
|
+
reportSql: |-
|
|
304
|
+
SELECT order_number, total
|
|
305
|
+
FROM __hss_orders
|
|
306
|
+
WHERE @source_count::bigint > 0 AND customer_code IS NULL
|
|
307
|
+
AND (@order_number IS NULL OR order_number > @order_number)
|
|
308
|
+
ORDER BY order_number
|
|
309
|
+
LIMIT @__limit
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
Preparation runs in separate statements, not one snapshot; concurrent data changes can make the count differ from the rows read.
|
|
313
|
+
|
|
314
|
+
### cleanupScripts
|
|
315
|
+
|
|
316
|
+
Syntax: `cleanupScripts: <list of object | null>`
|
|
317
|
+
|
|
318
|
+
`cleanupScripts: [{ sql, index, description }] | null` — subqueries that select report `__id` values to mark resolved **before** the report query runs. Entries run in array order.
|
|
319
|
+
|
|
320
|
+
| Field | Syntax | Default | Meaning |
|
|
321
|
+
| --- | --- | --- | --- |
|
|
322
|
+
| `sql` | `sql: <SQL>` | required | Subquery returning report `__id` values; inserted as written (not Scriban-rendered) |
|
|
323
|
+
| `index` | `index: <integer>` | `9999` | Ordering metadata only; array order is used |
|
|
324
|
+
| `description` | `description: <string \| null>` | — | What the script resolves |
|
|
325
|
+
|
|
326
|
+
Known limitation: cleanup scripts can currently fail before the report runs. Prefer `mode: Full` to remove rows that no longer apply, and verify a cleanup script in a test environment before relying on it.
|
|
327
|
+
|
|
328
|
+
```yaml
|
|
329
|
+
reports:
|
|
330
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
331
|
+
name: Orders without customer
|
|
332
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
333
|
+
tableName: __hsr_orders_without_customer
|
|
334
|
+
cleanupScripts: # optional; no default
|
|
335
|
+
- sql: SELECT __id FROM __hsr_orders_without_customer WHERE __created_at < (extract(epoch from now()) * 1000 - 2592000000)
|
|
336
|
+
description: Resolve findings older than 30 days.
|
|
337
|
+
index: 1 # defaults to 9999; not used for ordering
|
|
338
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
### metadata
|
|
342
|
+
|
|
343
|
+
Syntax: `metadata: <any>`
|
|
344
|
+
|
|
345
|
+
`metadata: <any JSON>` — free-form data kept with the report definition and returned by the report-definition API. Nothing interprets nested members.
|
|
346
|
+
|
|
347
|
+
```yaml
|
|
348
|
+
reports:
|
|
349
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
350
|
+
name: Orders without customer
|
|
351
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
352
|
+
tableName: __hsr_orders_without_customer
|
|
353
|
+
metadata: # optional; free-form
|
|
354
|
+
owner: integration-team
|
|
355
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
### relatedEntities
|
|
359
|
+
|
|
360
|
+
Syntax: `relatedEntities: <list of object | null>`
|
|
361
|
+
|
|
362
|
+
`relatedEntities: [{ entityType, entityId, index, description }] | null` — documents which entities the report is about. Descriptive only: it does not schedule, validate or link to the entity.
|
|
363
|
+
|
|
364
|
+
| Field | Syntax | Default | Meaning |
|
|
365
|
+
| --- | --- | --- | --- |
|
|
366
|
+
| `entityType` | `entityType: <string \| null>` | — | Kind of entity, e.g. `TASK` |
|
|
367
|
+
| `entityId` | `entityId: <uuid>` | — | Id of that entity (e.g. an `objects[].id`) |
|
|
368
|
+
| `index` | `index: <integer>` | `0` | Ordering metadata |
|
|
369
|
+
| `description` | `description: <string \| null>` | — | Why it is related |
|
|
370
|
+
|
|
371
|
+
```yaml
|
|
372
|
+
reports:
|
|
373
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
374
|
+
name: Orders without customer
|
|
375
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
376
|
+
tableName: __hsr_orders_without_customer
|
|
377
|
+
relatedEntities: # optional; no default
|
|
378
|
+
- entityType: TASK
|
|
379
|
+
entityId: 11111111-1111-4111-8111-111111111111
|
|
380
|
+
index: 0 # defaults to 0
|
|
381
|
+
description: Source orders task
|
|
382
|
+
reportSql: SELECT order_number FROM __hss_orders WHERE customer_code IS NULL ORDER BY order_number LIMIT @__limit
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
## Execution phases and outputs
|
|
386
|
+
|
|
387
|
+
1. Resolve `tableId`, load its columns and add the report-owned columns below. Business key = the table's `KEYS` columns.
|
|
388
|
+
2. Run `cleanupScripts`, then `preparationStatements` in index order.
|
|
389
|
+
3. Render `arguments` and `reportSql`; page through the query into `<tableName>_n`.
|
|
390
|
+
4. Reconcile `_n` with `<tableName>`: insert new keys, update changed rows (keeping `__id`, `__created_at` and status), and in `Full` mode delete keys no longer returned.
|
|
391
|
+
|
|
392
|
+
A run produces stored rows, not a workflow output. Read them through the report data views or APIs.
|
|
393
|
+
|
|
394
|
+
### Report-owned columns
|
|
395
|
+
|
|
396
|
+
| Column | Type / default | Meaning |
|
|
397
|
+
| --- | --- | --- |
|
|
398
|
+
| `__id` | uuid, generated | Report row id; kept when the row's data changes |
|
|
399
|
+
| `__status` | int8, `0` | Row status; preserved on update |
|
|
400
|
+
| `__is_resolved` | boolean, `false` | Set when a cleanup script resolves the row |
|
|
401
|
+
| `__severity` | int8, `0` | Row severity; not set from `type` |
|
|
402
|
+
| `__hashed_keys`, `__hashed_values` | bytea | Hashes of key and non-key values used for reconciliation |
|
|
403
|
+
| `__created_at`, `__updated_at` | int8 epoch ms | Creation and last change time |
|
|
404
|
+
|
|
405
|
+
Do not declare these names in the report table's columns.
|
|
406
|
+
|
|
407
|
+
## Minimal declared report
|
|
408
|
+
|
|
409
|
+
```yaml
|
|
410
|
+
tables:
|
|
411
|
+
- id: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
412
|
+
columns:
|
|
413
|
+
product_id: { name: Product ID, dbType: varchar(64), indexGroups: [KEYS] }
|
|
414
|
+
name: { name: Product name, dbType: varchar(255) }
|
|
415
|
+
reports:
|
|
416
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
417
|
+
name: Product listing
|
|
418
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
419
|
+
tableName: __hsr_products
|
|
420
|
+
type: Summary
|
|
421
|
+
mode: Full
|
|
422
|
+
arguments:
|
|
423
|
+
product_id: null
|
|
424
|
+
reportSql: |-
|
|
425
|
+
SELECT product_id, name
|
|
426
|
+
FROM __hss_products
|
|
427
|
+
WHERE (@product_id IS NULL OR product_id > @product_id)
|
|
428
|
+
ORDER BY product_id
|
|
429
|
+
LIMIT @__limit
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
With products A and B, page 1 returns A and B, page 2 (after `product_id > 'B'`) is empty and the run ends. `Full` keeps exactly A and B; with `Incremental`, previously stored products that disappeared would remain.
|
|
433
|
+
|
|
434
|
+
**Do not copy — rejected forms:**
|
|
435
|
+
|
|
436
|
+
```yaml
|
|
437
|
+
reports:
|
|
438
|
+
- id: aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa
|
|
439
|
+
name: Product listing
|
|
440
|
+
tableId: bbbbbbbb-bbbb-4bbb-8bbb-bbbbbbbbbbbb
|
|
441
|
+
tableName: __hsr_products
|
|
442
|
+
mode: Delta # not a mode; use Incremental or Full
|
|
443
|
+
reportSql: SELECT product_id, name FROM __hss_products # no ORDER BY / paging
|
|
444
|
+
objects:
|
|
445
|
+
- id: cccccccc-cccc-4ccc-8ccc-cccccccccccc
|
|
446
|
+
type: REPORT # not a task type; reports belong in reports[]
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
## Best practices and pitfalls
|
|
450
|
+
|
|
451
|
+
- **Page on a stable key.** Prefer `ORDER BY <unique key>` with `> @key` paging; avoid nullable, duplicate or frequently changing paging columns, which skip or repeat rows.
|
|
452
|
+
- **Prefer `Full` for complete results.** It removes findings that no longer apply. Use `Incremental` only when the query deliberately returns a slice — and make sure a query that stops early (paging bug) is fixed before choosing `Full`, or uncaptured rows are deleted.
|
|
453
|
+
- **Bind, don't interpolate.** Pass values as `@parameters`; avoid rendering untrusted text into SQL structure.
|
|
454
|
+
- **Keep report tables separate.** Prefer a dedicated `tables[]` entry and `tableName` per report; avoid reusing a task's table or storage.
|
|
455
|
+
- **Initialize storage first.** A report run does not create its table.
|
|
456
|
+
- **Avoid reserved names.** Do not declare report-owned columns in the report table.
|
|
457
|
+
|
|
458
|
+
## Related
|
|
459
|
+
|
|
460
|
+
[Tables and columns](hexasync://docs/tables/TABLES/fields), [Metrics](metrics.METRICS_REFERENCE.fields.md), [Task data](hexasync://docs/tasks/TASKS-AND-TABLES/fields), [Query rules](hexasync://docs/query-dsl/QUERY-DSL/runtime-rules-and-authoring-shape), [Profile root](hexasync://docs/PROFILE-ROOT#profile-root-fields).
|