@beehexa/hexasync-ai-toolkit 2611.8.2 → 2611.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.cursor-plugin/mcp.json +1 -1
  5. package/.cursor-plugin/plugin.json +1 -1
  6. package/.mcp.json +1 -1
  7. package/README.md +27 -8
  8. package/dist/cli.js +7 -3
  9. package/gemini-extension.json +2 -2
  10. package/openclaw.plugin.json +1 -1
  11. package/package.json +2 -2
  12. package/plugin.json +1 -1
  13. package/skills/hexasync-connections/SKILL.md +20 -8
  14. package/skills/hexasync-connections/references/INDEX.md +18 -0
  15. package/skills/hexasync-connections/references/INSTALL.md +22 -6
  16. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  17. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  18. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  19. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  20. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.md +16 -0
  21. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  22. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  23. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  24. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  25. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  26. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  27. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  28. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  29. package/skills/hexasync-error-handling/SKILL.md +9 -7
  30. package/skills/hexasync-error-handling/references/INSTALL.md +22 -6
  31. package/skills/hexasync-expressions/SKILL.md +21 -9
  32. package/skills/hexasync-expressions/references/INDEX.md +18 -0
  33. package/skills/hexasync-expressions/references/INSTALL.md +22 -6
  34. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.md +1 -1
  35. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.quick-reference-the-three-expression-dialects.md +1 -1
  36. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +20 -1
  37. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  38. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  39. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  40. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  41. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +16 -0
  42. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  43. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  44. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  45. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  46. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  47. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  48. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  49. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  50. package/skills/hexasync-field-mapping/SKILL.md +10 -9
  51. package/skills/hexasync-field-mapping/references/INSTALL.md +22 -6
  52. package/skills/hexasync-metrics-reports/SKILL.md +9 -7
  53. package/skills/hexasync-metrics-reports/references/INSTALL.md +22 -6
  54. package/skills/hexasync-pullers/SKILL.md +9 -7
  55. package/skills/hexasync-pullers/references/INSTALL.md +22 -6
  56. package/skills/hexasync-pushers/SKILL.md +10 -10
  57. package/skills/hexasync-pushers/references/INSTALL.md +22 -6
  58. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +35 -8
  59. package/skills/hexasync-query-dsl/SKILL.md +10 -10
  60. package/skills/hexasync-query-dsl/references/INDEX.md +1 -1
  61. package/skills/hexasync-query-dsl/references/INSTALL.md +22 -6
  62. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +16 -8
  63. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +1 -1
  64. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +1 -1
  65. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +1 -1
  66. package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -7
  67. package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +22 -6
  68. package/skills/hexasync-steps-api-http/SKILL.md +22 -17
  69. package/skills/hexasync-steps-api-http/references/INDEX.md +18 -0
  70. package/skills/hexasync-steps-api-http/references/INSTALL.md +22 -6
  71. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  72. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  73. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  74. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  75. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +16 -0
  76. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  77. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  78. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  79. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  80. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  81. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  82. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  83. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  84. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +6 -0
  85. package/skills/hexasync-steps-control-data/SKILL.md +22 -18
  86. package/skills/hexasync-steps-control-data/references/INDEX.md +18 -0
  87. package/skills/hexasync-steps-control-data/references/INSTALL.md +22 -6
  88. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  89. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  90. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  91. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  92. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +16 -0
  93. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  94. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  95. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  96. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  97. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  98. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  99. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  100. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  101. package/skills/hexasync-tables-tasks-objects/SKILL.md +9 -7
  102. package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +22 -6
  103. package/skills/hexasync-templates/SKILL.md +22 -9
  104. package/skills/hexasync-templates/references/AI-INDEX.md +10 -7
  105. package/skills/hexasync-templates/references/INDEX.md +19 -0
  106. package/skills/hexasync-templates/references/INSTALL.md +22 -6
  107. package/skills/hexasync-templates/references/KB-INDEX.md +5 -0
  108. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +13 -2
  109. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md +76 -0
  110. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +6 -4
  111. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +205 -0
  112. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +11 -9
  113. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +31 -0
  114. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.md +2 -1
  115. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
  116. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
  117. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
  118. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
  119. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +16 -0
  120. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
  121. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +44 -0
  122. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
  123. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
  124. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
  125. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
  126. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.return.md +84 -0
  127. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
  128. package/skills/hexasync-transformations/SKILL.md +9 -7
  129. package/skills/hexasync-transformations/references/INSTALL.md +22 -6
  130. package/skills/hexasync-validations/SKILL.md +9 -7
  131. package/skills/hexasync-validations/references/INSTALL.md +22 -6
  132. package/skills/hexasync-webhooks/SKILL.md +9 -7
  133. package/skills/hexasync-webhooks/references/INSTALL.md +22 -6
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: hexasync-pullers
3
3
  description: "HexaSync pullers: pullSteps, beforePullSteps, afterPullSteps, finalSteps, new-kind steps/onErrorSteps hosts, paging, watermarks and incremental vs full pull, resume, checkpoints, deletion reconciliation (stamp & sweep), API error classification and rate limits. Use when writing, reviewing or debugging a puller."
4
- compatibility: "Any agent that reads Agent Skills. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@latest), which needs Node.js >= 22.13; without it, read references/."
4
+ compatibility: "Loaded conditionally by Agent Skills hosts. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1), which needs Node.js >= 22.13; without it, read references/."
5
5
  metadata:
6
6
  author: BeeHexa
7
- version: "2611.8.2"
8
- kb-bundle: "103"
7
+ version: "2611.14.1"
8
+ kb-bundle: "113"
9
9
  mcp-server: "hexasync-template-ide"
10
10
  ---
11
11
 
@@ -13,15 +13,17 @@ metadata:
13
13
 
14
14
  A **puller** reads records from a source system and writes them into task tables. It is a host for the [canonical Workflow](hexasync://docs/steps/STEP-ENVELOPE#one-canonical-workflow-component): every phase is an array of ordinary steps, and the puller decides which phases run, what context they receive and who persists the rows.
15
15
 
16
- > Generated from the HexaSync knowledge base (asset bundle 103) by @beehexa/hexasync-ai-toolkit 2611.8.2.
16
+ > Generated from the HexaSync knowledge base (asset bundle 113) by @beehexa/hexasync-ai-toolkit 2611.14.1.
17
17
 
18
18
  ## How to work
19
19
 
20
+ The host loads this skill conditionally; installing it does not inject instructions into every conversation.
21
+ Choose worker or frontend from the owning collection before applying guidance.
20
22
  When the HexaSync MCP tools (`hexasync_*`) are available, use them in this order:
21
23
 
22
24
  1. `hexasync_orientation` once per session: what a template is, the two runtimes that must never be mixed, and the lookup order.
23
- 2. `hexasync_explain_type` before writing any field, e.g. `pullers`, `PULLER`. It returns the authoritative syntax, meaning, default and a YAML example.
24
- 3. `hexasync_search_examples` for complete, schema-valid examples (e.g. query `puller paged incremental pull`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
25
+ 2. `hexasync_explain_type` before writing any field. Worker/data lookups for this family: `hexasync_explain_type({"name":"pullers","runtime":"worker"})`, `hexasync_explain_type({"name":"PULLER","runtime":"worker"})`. Omitted runtime also means worker, never frontend.
26
+ 3. `hexasync_search_examples` for complete, schema-valid worker/data examples (e.g. query `puller paged incremental pull`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
25
27
  4. `hexasync_explain_position` before writing an expression: each authoring position has its own roots.
26
28
  5. `hexasync_validate` on the project before claiming the YAML is correct; explain any rule id with `hexasync_explain_rule`.
27
29
 
@@ -41,4 +43,4 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
41
43
 
42
44
  ## Installing the MCP server
43
45
 
44
- If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@latest`).
46
+ If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`). The matching published server is required; absence blocks registry-backed activation, with no fallback.
@@ -3,19 +3,19 @@
3
3
  If the `hexasync_*` tools are not available, install the server (and these skills) for every client at once:
4
4
 
5
5
  ```sh
6
- npx -y @beehexa/hexasync-ai-toolkit install --client all --scope user
6
+ npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all --scope user
7
7
  ```
8
8
 
9
- Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@latest`):
9
+ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`):
10
10
 
11
11
  | Client | Registration |
12
12
  | --- | --- |
13
- | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@latest` |
13
+ | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1` |
14
14
  | Codex | `mcp_servers` in `~/.codex/config.toml` |
15
15
  | Cursor | `mcpServers` in `~/.cursor/mcp.json` |
16
16
  | Antigravity | `mcpServers` in `~/.gemini/config/mcp_config.json` |
17
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@latest"]}'` |
18
+ | OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.14.1"]}'` |
19
19
  | VS Code | `servers` in the user `mcp.json` |
20
20
 
21
21
  ```json
@@ -25,11 +25,27 @@ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@l
25
25
  "command": "npx",
26
26
  "args": [
27
27
  "-y",
28
- "@beehexa/hexasync-template-ide-mcp@latest"
28
+ "@beehexa/hexasync-template-ide-mcp@2611.14.1"
29
29
  ]
30
30
  }
31
31
  }
32
32
  }
33
33
  ```
34
34
 
35
- On native Windows use `"command": "cmd", "args": ["/c", "npx", "-y", "@beehexa/hexasync-template-ide-mcp@latest"]`. 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.
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.14.1"
45
+ ]
46
+ }
47
+ ```
48
+
49
+ The standalone server must match toolkit 2611.14.1. 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.
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: hexasync-pushers
3
3
  description: "HexaSync pushers: push workflows, item selection, destination request bodies, update vs create, sync status and item status updates, retries and failure handling when sending task rows to a destination API. Use when writing, reviewing or debugging a pusher."
4
- compatibility: "Any agent that reads Agent Skills. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@latest), which needs Node.js >= 22.13; without it, read references/."
4
+ compatibility: "Loaded conditionally by Agent Skills hosts. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1), which needs Node.js >= 22.13; without it, read references/."
5
5
  metadata:
6
6
  author: BeeHexa
7
- version: "2611.8.2"
8
- kb-bundle: "103"
7
+ version: "2611.14.1"
8
+ kb-bundle: "113"
9
9
  mcp-server: "hexasync-template-ide"
10
10
  ---
11
11
 
@@ -16,15 +16,17 @@ destination ID and whether the destination accepted the write. Its step lists ar
16
16
  [one canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE#one-canonical-workflow-component),
17
17
  not a separate step grammar.
18
18
 
19
- > Generated from the HexaSync knowledge base (asset bundle 103) by @beehexa/hexasync-ai-toolkit 2611.8.2.
19
+ > Generated from the HexaSync knowledge base (asset bundle 113) by @beehexa/hexasync-ai-toolkit 2611.14.1.
20
20
 
21
21
  ## How to work
22
22
 
23
+ The host loads this skill conditionally; installing it does not inject instructions into every conversation.
24
+ Choose worker or frontend from the owning collection before applying guidance.
23
25
  When the HexaSync MCP tools (`hexasync_*`) are available, use them in this order:
24
26
 
25
27
  1. `hexasync_orientation` once per session: what a template is, the two runtimes that must never be mixed, and the lookup order.
26
- 2. `hexasync_explain_type` before writing any field, e.g. `pushers`, `PUSHER`. It returns the authoritative syntax, meaning, default and a YAML example.
27
- 3. `hexasync_search_examples` for complete, schema-valid examples (e.g. query `pusher create update destination`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
28
+ 2. `hexasync_explain_type` before writing any field. Worker/data lookups for this family: `hexasync_explain_type({"name":"pushers","runtime":"worker"})`, `hexasync_explain_type({"name":"PUSHER","runtime":"worker"})`. Omitted runtime also means worker, never frontend.
29
+ 3. `hexasync_search_examples` for complete, schema-valid worker/data examples (e.g. query `pusher create update destination`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
28
30
  4. `hexasync_explain_position` before writing an expression: each authoring position has its own roots.
29
31
  5. `hexasync_validate` on the project before claiming the YAML is correct; explain any rule id with `hexasync_explain_rule`.
30
32
 
@@ -47,9 +49,7 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
47
49
  - Keep `force_push` off by default; turning it on overrides an operator's decision to stop pushing. _([PUSHER — push one stored item now](references/steps.PUSHER.md#best-practices))_
48
50
  - Avoid pushing the item that is currently being pushed (from its own pusher flow): the lock makes it a silent no-op. _([PUSHER — push one stored item now](references/steps.PUSHER.md#best-practices))_
49
51
  - Prefer status names over integer masks because names are self-describing and an unknown name fails loudly instead of setting an unintended bit. _([UPDATE_ITEM_STATUS — Update Item Status](references/steps.UPDATE_ITEM_STATUS.md#best-practices))_
50
- - Prefer an array-constructor expression (`'[path.__id]'`) over a bare path because a single match otherwise evaluates to a scalar and fails. _([UPDATE_ITEM_STATUS — Update Item Status](references/steps.UPDATE_ITEM_STATUS.md#best-practices))_
51
- - Prefer this step over a broad predicate update when you already know the ids, because it cannot touch unselected rows. _([UPDATE_ITEM_STATUS — Update Item Status](references/steps.UPDATE_ITEM_STATUS.md#best-practices))_
52
- - 10 more of 27: every page's own *Best practices* section is in [`references/`](references/INDEX.md).
52
+ - 12 more of 27: every page's own *Best practices* section is in [`references/`](references/INDEX.md).
53
53
 
54
54
  ## References
55
55
 
@@ -57,4 +57,4 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
57
57
 
58
58
  ## Installing the MCP server
59
59
 
60
- If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@latest`).
60
+ If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`). The matching published server is required; absence blocks registry-backed activation, with no fallback.
@@ -3,19 +3,19 @@
3
3
  If the `hexasync_*` tools are not available, install the server (and these skills) for every client at once:
4
4
 
5
5
  ```sh
6
- npx -y @beehexa/hexasync-ai-toolkit install --client all --scope user
6
+ npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all --scope user
7
7
  ```
8
8
 
9
- Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@latest`):
9
+ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`):
10
10
 
11
11
  | Client | Registration |
12
12
  | --- | --- |
13
- | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@latest` |
13
+ | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1` |
14
14
  | Codex | `mcp_servers` in `~/.codex/config.toml` |
15
15
  | Cursor | `mcpServers` in `~/.cursor/mcp.json` |
16
16
  | Antigravity | `mcpServers` in `~/.gemini/config/mcp_config.json` |
17
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@latest"]}'` |
18
+ | OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.14.1"]}'` |
19
19
  | VS Code | `servers` in the user `mcp.json` |
20
20
 
21
21
  ```json
@@ -25,11 +25,27 @@ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@l
25
25
  "command": "npx",
26
26
  "args": [
27
27
  "-y",
28
- "@beehexa/hexasync-template-ide-mcp@latest"
28
+ "@beehexa/hexasync-template-ide-mcp@2611.14.1"
29
29
  ]
30
30
  }
31
31
  }
32
32
  }
33
33
  ```
34
34
 
35
- On native Windows use `"command": "cmd", "args": ["/c", "npx", "-y", "@beehexa/hexasync-template-ide-mcp@latest"]`. 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.
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.14.1"
45
+ ]
46
+ }
47
+ ```
48
+
49
+ The standalone server must match toolkit 2611.14.1. 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.
@@ -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
- Writes the row's push notes. Omitting it (or `null`) leaves the notes untouched. Present with `{}` appends empty text, which still counts as a change.
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 stored notes. Any other value, including omission, **appends** the content directly to the existing notes with no separator. Not template-rendered. Prefer one of the two canonical values.
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: ' | retried' # include your own separator
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 existing notes
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 note text; template-rendered (`{{ ... }}`) before writing. When appending, include any separator yourself. To blank the notes, use `mode: OVERWRITE` with `content: ''`.
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
- How many update objects are applied per database transaction. It is not a row limit — every update is applied. A failing batch is rolled back; earlier batches stay committed. `0` or a negative value fails as soon as there is something to update.
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` (or a stable, idempotent note) over `APPEND` when a step may be replayed, because each replay appends the text again.
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,6 +368,7 @@ 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
373
  - `logOutput`, `gracefulException` and `responseFilters` have no effect on this step. Use `onError` for deliberate recovery; see [thrown-error routing](hexasync://docs/steps/STEP-ENVELOPE/payload-selection-and-thrown-error-routing).
347
374
 
@@ -1,11 +1,11 @@
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: "Any agent that reads Agent Skills. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@latest), which needs Node.js >= 22.13; without it, read references/."
4
+ compatibility: "Loaded conditionally by Agent Skills hosts. Live lookups and validation use the HexaSync Template IDE MCP server (npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1), which needs Node.js >= 22.13; without it, read references/."
5
5
  metadata:
6
6
  author: BeeHexa
7
- version: "2611.8.2"
8
- kb-bundle: "103"
7
+ version: "2611.14.1"
8
+ kb-bundle: "113"
9
9
  mcp-server: "hexasync-template-ide"
10
10
  ---
11
11
 
@@ -16,15 +16,17 @@ 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 103) by @beehexa/hexasync-ai-toolkit 2611.8.2.
19
+ > Generated from the HexaSync knowledge base (asset bundle 113) by @beehexa/hexasync-ai-toolkit 2611.14.1.
20
20
 
21
21
  ## How to work
22
22
 
23
+ The host loads this skill conditionally; installing it does not inject instructions into every conversation.
24
+ Choose worker or frontend from the owning collection before applying guidance.
23
25
  When the HexaSync MCP tools (`hexasync_*`) are available, use them in this order:
24
26
 
25
27
  1. `hexasync_orientation` once per session: what a template is, the two runtimes that must never be mixed, and the lookup order.
26
- 2. `hexasync_explain_type` before writing any field, e.g. `where`, `QUERY_SINGLE.where`, `QUERY_MANY`. It returns the authoritative syntax, meaning, default and a YAML example.
27
- 3. `hexasync_search_examples` for complete, schema-valid examples (e.g. query `QueryDSL where join select`). Adapt them; never copy example identities (UUIDs, connector ids) into a real project.
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.
28
30
  4. `hexasync_explain_position` before writing an expression: each authoring position has its own roots.
29
31
  5. `hexasync_validate` on the project before claiming the YAML is correct; explain any rule id with `hexasync_explain_rule`.
30
32
 
@@ -54,9 +56,7 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
54
56
  - **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))_
55
57
  - **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))_
56
58
  - **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))_
57
- - **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))_
58
- - **Set `timeout` deliberately** for the batch's expected cost. _([SQL_PROXY — SQL_PROXY](references/steps.SQL_PROXY.md#best-practices))_
59
- - 2 more of 26: every page's own *Best practices* section is in [`references/`](references/INDEX.md).
59
+ - 4 more of 26: every page's own *Best practices* section is in [`references/`](references/INDEX.md).
60
60
 
61
61
  ## References
62
62
 
@@ -64,4 +64,4 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
64
64
 
65
65
  ## Installing the MCP server
66
66
 
67
- If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@latest`).
67
+ If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`). The matching published server is required; absence blocks registry-backed activation, with no fallback.
@@ -4,7 +4,7 @@ Each file is one knowledge-base section of at most 25 KB, the same split the MCP
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
 
@@ -3,19 +3,19 @@
3
3
  If the `hexasync_*` tools are not available, install the server (and these skills) for every client at once:
4
4
 
5
5
  ```sh
6
- npx -y @beehexa/hexasync-ai-toolkit install --client all --scope user
6
+ npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all --scope user
7
7
  ```
8
8
 
9
- Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@latest`):
9
+ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`):
10
10
 
11
11
  | Client | Registration |
12
12
  | --- | --- |
13
- | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@latest` |
13
+ | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1` |
14
14
  | Codex | `mcp_servers` in `~/.codex/config.toml` |
15
15
  | Cursor | `mcpServers` in `~/.cursor/mcp.json` |
16
16
  | Antigravity | `mcpServers` in `~/.gemini/config/mcp_config.json` |
17
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@latest"]}'` |
18
+ | OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.14.1"]}'` |
19
19
  | VS Code | `servers` in the user `mcp.json` |
20
20
 
21
21
  ```json
@@ -25,11 +25,27 @@ Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@l
25
25
  "command": "npx",
26
26
  "args": [
27
27
  "-y",
28
- "@beehexa/hexasync-template-ide-mcp@latest"
28
+ "@beehexa/hexasync-template-ide-mcp@2611.14.1"
29
29
  ]
30
30
  }
31
31
  }
32
32
  }
33
33
  ```
34
34
 
35
- On native Windows use `"command": "cmd", "args": ["/c", "npx", "-y", "@beehexa/hexasync-template-ide-mcp@latest"]`. 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.
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.14.1"
45
+ ]
46
+ }
47
+ ```
48
+
49
+ The standalone server must match toolkit 2611.14.1. 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.
@@ -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 bounded continuation
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; not a nested query field. The cursor WHERE helper expects raw JSON tuple text and catches decode failures. |
58
- | `rel` | String, default next; validation accepts next/prev case-insensitively, but ordering/execution checks exact lowercase next. Send lowercase. |
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`), DESC for exact next and ASC otherwise. 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. All these V2 callers fetch limit+1 then trim to the requested page before constructing their response.
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 actual V2 response is `items`, `next`, `prev`, not the job response's nextCursor/prevCursor.** The shared result constructor rechecks whether its already-trimmed items exceed limit, so `next` is not populated on these callers, even when an extra row existed. An extra row can cause `prev` to contain Base64 JSON of the first returned row (the internal lastCursor is used only as a nonblank flag). The computed internal token uses a Brotli tuple serializer, but the cursor predicate helper attempts unencoded raw JSON tuple decoding and silently ignores failures; returned row-encoded prev is not that raw tuple either. Do not claim a working subsequent V2 cursor page, handcraft a workaround token or label the internal nextCursor variable a returned member. Use the supported offset POST search when reliable authored page advancement is required.
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](hexasync://docs/frontend/FRONTEND-FLOWS/task-and-reference-data-changes#availability-of-the-data-routes). 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; cursor ordering here is unqualified, not `_`-prefixed.
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, unlike the V2 raw-tuple helper; malformed compressed tokens propagate serializer errors. |
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; preserve the V2 cursor limitation 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.
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
 
@@ -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 limits remain at the [request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md).
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
 
@@ -89,7 +89,7 @@ These expected values follow fixed ascending unique sku order and the filtered c
89
89
 
90
90
  With those same four unchanged qualifying rows, a third offset request at offset4 returns items:[] and totalCount4; there is no generated next token. A first request without ordering does not promise A1/B2, and a nonunique sort key does not guarantee stable page boundaries. A request at offset0 with limit2 still does not add automatic looping to a QUERY_MANY step. Keep the next request's filter and fixed ordering unchanged; do not advance using totalCount alone during concurrent changes.
91
91
 
92
- **Unsupported subsequent-page boundary:** the V2 flat body uses cursor/rel and system tuple ordering, not the offset example. Its callers trim an extra row before the response constructor rechecks has-more, leaving next unset even when more rows existed; the internal compressed tuple and returned row-encoded prev also do not match the raw tuple parser. Consequently there is no honest copyable successful subsequent V2 cursor example here. Use the supported offset route above where available, and read the exact [Entity V2 continuation limits](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md#entity-v2-flat-fields-and-bounded-continuation) before relying on a token. External connector/API pagination is independently authored through [API requests and response-derived continuation](hexasync://docs/steps/API/api-pagination#complete-response-derived-cursor-loop), not through Builder fields.
92
+ **V2 cursor pages use a different envelope:** the flat body uses cursor/rel and system tuple ordering, not the offset example. On the containing worker.proxy feature build, send the returned next/prev token unchanged with the matching direction; see [Entity V2 cursors](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md#entity-v2-flat-fields-and-working-cursors) for availability, errors and the single-page VALUE MAX/MIN exception. External connector/API pagination is independently authored through [API requests and response-derived continuation](hexasync://docs/steps/API/api-pagination#complete-response-derived-cursor-loop), not through Builder fields.
93
93
 
94
94
 
95
95
 
@@ -10,7 +10,7 @@
10
10
  | QUERY transformation undeclared ARG / reserved key / list only valid with IN/NOT_IN | Transform validation runs before query; declaration/type misuse. | Correct [query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md); do not substitute unchecked raw SQL. |
11
11
  | select must contain at least one column / select identifier invalid | Required projection absent or raw expression attempted. | Use structured [projection](query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md#select-projection). |
12
12
  | Invalid query field name / not in allowed field set | Filter name grammar or endpoint allowlist. | Correct [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md), never drop the condition as recovery. |
13
- | Missing V2 next / repeated cursor page | Already-trimmed items prevent the response constructor setting next; returned prev encoding also mismatches the raw tuple cursor decoder and can silently omit its predicate. | Treat continuation as a bounded limitation; use supported offset POST paging rather than claiming returned V2 cursor advancement. |
13
+ | V2 cursor refused or no continuation | On a paged search, unreadable tokens give `invalid_cursor`; a cursor page with an unpositioned required boundary gives `row_without_position`. VALUE MAX/MIN intentionally return one page, ignoring supplied cursors including malformed input. | Use returned tokens unchanged with the matching direction and a containing worker.proxy build. Correct missing position data or adjust the limit deliberately; do not manufacture a token or retry the first page as a continuation. |
14
14
 
15
15
  ### Select projection
16
16