@beehexa/hexasync-ai-toolkit 2611.8.1 → 2611.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.cursor-plugin/mcp.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/README.md +27 -8
- package/dist/cli.js +7 -3
- package/gemini-extension.json +2 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -2
- package/plugin.json +1 -1
- package/skills/hexasync-connections/SKILL.md +9 -7
- package/skills/hexasync-connections/references/INSTALL.md +22 -6
- package/skills/hexasync-error-handling/SKILL.md +9 -7
- package/skills/hexasync-error-handling/references/INSTALL.md +22 -6
- package/skills/hexasync-expressions/SKILL.md +20 -9
- package/skills/hexasync-expressions/references/INDEX.md +13 -0
- package/skills/hexasync-expressions/references/INSTALL.md +22 -6
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.quick-reference-the-three-expression-dialects.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +20 -1
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +29 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +14 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +231 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-field-mapping/SKILL.md +10 -9
- package/skills/hexasync-field-mapping/references/INSTALL.md +22 -6
- package/skills/hexasync-metrics-reports/SKILL.md +9 -7
- package/skills/hexasync-metrics-reports/references/INSTALL.md +22 -6
- package/skills/hexasync-pullers/SKILL.md +9 -7
- package/skills/hexasync-pullers/references/INSTALL.md +22 -6
- package/skills/hexasync-pushers/SKILL.md +10 -10
- package/skills/hexasync-pushers/references/INSTALL.md +22 -6
- package/skills/hexasync-query-dsl/SKILL.md +10 -10
- package/skills/hexasync-query-dsl/references/INSTALL.md +22 -6
- package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -7
- package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +22 -6
- package/skills/hexasync-steps-api-http/SKILL.md +21 -16
- package/skills/hexasync-steps-api-http/references/INDEX.md +13 -0
- package/skills/hexasync-steps-api-http/references/INSTALL.md +22 -6
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +29 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +14 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +231 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-steps-control-data/SKILL.md +21 -17
- package/skills/hexasync-steps-control-data/references/INDEX.md +13 -0
- package/skills/hexasync-steps-control-data/references/INSTALL.md +22 -6
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +29 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +14 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +231 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-tables-tasks-objects/SKILL.md +9 -7
- package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +22 -6
- package/skills/hexasync-templates/SKILL.md +21 -9
- package/skills/hexasync-templates/references/AI-INDEX.md +8 -6
- package/skills/hexasync-templates/references/INDEX.md +15 -0
- package/skills/hexasync-templates/references/INSTALL.md +22 -6
- package/skills/hexasync-templates/references/KB-INDEX.md +5 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.getreadyflows-1.md +33 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.md +2 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +5 -4
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +201 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +10 -8
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +31 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.md +2 -1
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +29 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +14 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +16 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +42 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +231 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-transformations/SKILL.md +9 -7
- package/skills/hexasync-transformations/references/INSTALL.md +22 -6
- package/skills/hexasync-validations/SKILL.md +9 -7
- package/skills/hexasync-validations/references/INSTALL.md +22 -6
- package/skills/hexasync-webhooks/SKILL.md +9 -7
- package/skills/hexasync-webhooks/references/INSTALL.md +22 -6
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## Grouped readiness flows
|
|
4
|
+
|
|
5
|
+
`getReadyFlows` is the registered ordered group at the profile root. Omit it for no configured group; `[]` explicitly configures an empty, ready group. Null is invalid. Every declared member is required. Order controls display only; local `dependsOn` keys control prerequisites. Overrides of inherited keys update in place and do not reorder them.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
getReadyFlows:
|
|
9
|
+
- key: CONFIGURE
|
|
10
|
+
title: "Configure your **app**"
|
|
11
|
+
description: "Review the configuration before continuing."
|
|
12
|
+
action:
|
|
13
|
+
label: Configure
|
|
14
|
+
completedLabel: Configure again
|
|
15
|
+
completionVersion: "1"
|
|
16
|
+
dependsOn: []
|
|
17
|
+
steps:
|
|
18
|
+
- key: DONE
|
|
19
|
+
type: RETURN
|
|
20
|
+
root: true
|
|
21
|
+
metadata:
|
|
22
|
+
status: SUCCESS
|
|
23
|
+
outputs: {}
|
|
24
|
+
- key: VERIFY
|
|
25
|
+
title: Verify configuration
|
|
26
|
+
action:
|
|
27
|
+
label: Verify
|
|
28
|
+
completionVersion: "1"
|
|
29
|
+
dependsOn: [CONFIGURE]
|
|
30
|
+
steps:
|
|
31
|
+
- key: DONE
|
|
32
|
+
type: RETURN
|
|
33
|
+
root: "true"
|
|
34
|
+
metadata:
|
|
35
|
+
status: SUCCESS
|
|
36
|
+
outputs: { verified: true }
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### FrontendFlow fields
|
|
40
|
+
|
|
41
|
+
The complete example above supplies the context for each envelope field.
|
|
42
|
+
|
|
43
|
+
| Syntax | Meaning | Default and choice |
|
|
44
|
+
| --- | --- | --- |
|
|
45
|
+
| `key: CONFIGURE` | Stable identity matching `^[A-Z][A-Z0-9_]*$`; unique within the group. | Required. Never use an `id` alias or derive identity from title/order. |
|
|
46
|
+
| `title: "Configure your **app**"` | User-facing sanitized Markdown heading. | Required; no default. |
|
|
47
|
+
| `description: "Review the configuration before continuing."` | Optional sanitized Markdown explanation. | Absent means no description. |
|
|
48
|
+
| `action: {label: Configure, completedLabel: Configure again}` | Closed button-label object; no URL or executable action. | Required; no default. |
|
|
49
|
+
| `action.label: Configure` | Plain-text label before completion. | Required; no default. |
|
|
50
|
+
| `action.completedLabel: Configure again` | Plain-text label for an explicit rerun after completion. | Optional; absent uses `label`. |
|
|
51
|
+
| `completionVersion: "1"` | Nonempty string identifying the executable completion contract. | Required; no numeric coercion. Bump when external action meaning changes without a step edit. |
|
|
52
|
+
| `dependsOn: [CONFIGURE]` | Required prior completions in this same group. | Absent means no prerequisites. Reject duplicate, missing, self and cyclic references; no cross-group links. |
|
|
53
|
+
| `steps: [...]` | Nonempty list using the canonical frontend Step. | Required; exactly one true root and unique local step keys. Equal step keys in another flow are independent. |
|
|
54
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Frontend workflows
|
|
2
|
+
|
|
3
|
+
Frontend workflows guide a user through browser actions. They use `type`, `root` and `metadata`, not worker `displayType`, `rootStep` or `data`. Authoring support does not establish that a deployed dashboard supports these actions. Deploy compatible runtime and profile services before enabling grouped declarations.
|
|
4
|
+
|
|
5
|
+
This page is served as 8 separate resources. Read the one you need:
|
|
6
|
+
|
|
7
|
+
- [Grouped readiness flows](frontend.FRONTEND-FLOWS.grouped-readiness-flows.md) — getReadyFlows is the registered ordered group at the profile root.
|
|
8
|
+
- [Frontend Step fields](frontend.FRONTEND-FLOWS.frontend-step-fields.md) — The examples on this page are full root declarations; each step belongs inside its flow's steps array.
|
|
9
|
+
- [RETURN](frontend.FRONTEND-FLOWS.return.md) — RETURN terminates one invocation before ordinary output postprocessing or successor advancement.
|
|
10
|
+
- [PUBLISH_EVENT](frontend.FRONTEND-FLOWS.publish_event.md) — Frontend PUBLISH_EVENT performs one authenticated profiles-owned public event request.
|
|
11
|
+
- [RECORDS_FORM](frontend.FRONTEND-FLOWS.records_form.md) — RECORDS_FORM lets the user add, change and remove several records in one paged table, then hands the changes to the steps after it.
|
|
12
|
+
- [Rejected forms (non-copyable)](frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md) — These counterexamples are deliberately excluded from copyable example search.
|
|
13
|
+
- [Preview and source navigation](frontend.FRONTEND-FLOWS.preview-and-source-navigation.md) — Grouped declarations use the existing project/external/partial composition pipeline.
|
|
14
|
+
- [Expressions and tooling](frontend.FRONTEND-FLOWS.expressions-and-tooling.md) — Frontend position is frontend-step.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## Preview and source navigation
|
|
4
|
+
|
|
5
|
+
Grouped declarations use the existing project/external/partial composition pipeline. A group may exist only in a split YAML file; preview resolves the effective project, not only the literal `main.yaml`. Keyed overrides update an inherited flow or step in place; they do not reorder it or erase untouched envelope fields. The effective owning-level array controls display order.
|
|
6
|
+
|
|
7
|
+
Each `getReadyFlows` entry is a separate frontend graph with its authored title. Identity uses the flow key and step key, never title or array index. Equal step keys in different flows cannot form an edge or share a click target. RETURN is terminal and displays its declared SUCCESS, FAILED or CANCELLED status; an anonymous END is not a successful RETURN. Dynamic route destinations remain uncertain.
|
|
8
|
+
|
|
9
|
+
Missing, null or blank successors, omitted conditional arms and omitted SWITCH defaults are `MISSING_RETURN` boundaries in grouped graphs, located at the nearest authored field. Legacy direct arrays retain their implicit END behavior. `jsonata::`, `liquid::` and `${…}` destinations remain uncertain with their dialect preserved; previews never evaluate them or invent a target.
|
|
10
|
+
|
|
11
|
+
Duplicate flow keys decline every matching envelope, including malformed ones, rather than merging their nodes or choosing an occurrence. Both preview surfaces and Markdown output expose located `DUPLICATE_FRONTEND_FLOW_KEY` diagnostics. Unrelated valid scopes remain drawable.
|
|
12
|
+
|
|
13
|
+
Selected-flow previews admit the complete effective root before narrowing to a key, so an indexed duplicate cannot hide another envelope. Present but malformed groups, missing/invalid keys and non-array or empty executable step lists expose located admission diagnostics instead of masquerading as an unconfigured project. An omitted group is unconfigured; `[]` explicitly configures an empty, ready group. Neither group state contributes executable nodes.
|
|
14
|
+
|
|
15
|
+
Use **HexaSync IDE: Preview Creation Steps** on the project manifest (the existing command also previews grouped flows), or the existing component preview for a selected flow. Source clicks resolve the exact contributed field from the prefetched source snapshot: an inherited step may open one file while an overridden branch opens another. Ambiguous or unavailable source locations are reported; there is no first-matching-key fallback. These are frontend execution previews, not the worker component dependency graph.
|
|
16
|
+
|
package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## PUBLISH_EVENT
|
|
4
|
+
|
|
5
|
+
Frontend PUBLISH_EVENT performs one authenticated profiles-owned public event request. Metadata is closed: exactly `eventName` and `payload`. It cannot select URL, HTTP method, profile, producer/source, destination, connection, headers or credentials. Server authorization and a supported published binding remain runtime prerequisites; arbitrary names do not grant event authority.
|
|
6
|
+
|
|
7
|
+
| Syntax | Meaning | Default and choice |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| `eventName: PUBLIC_ACTION_REQUESTED` | Public event name after mapping. | Required string, nonempty after runtime mapping; no default. |
|
|
10
|
+
| `payload: {request: review}` | JSON-object public payload, recursively mapped. | Required object; no default. Only the selected profiles-owned event contract determines allowed payload fields. |
|
|
11
|
+
|
|
12
|
+
The following is a generic declaration example, not a supported live event registration or send demonstration:
|
|
13
|
+
|
|
14
|
+
```yaml
|
|
15
|
+
getReadyFlows:
|
|
16
|
+
- key: REQUEST_ACTION
|
|
17
|
+
title: Request an authorized action
|
|
18
|
+
action: { label: Request }
|
|
19
|
+
completionVersion: "1"
|
|
20
|
+
steps:
|
|
21
|
+
- key: PUBLISH
|
|
22
|
+
type: PUBLISH_EVENT
|
|
23
|
+
root: true
|
|
24
|
+
metadata:
|
|
25
|
+
eventName: PUBLIC_ACTION_REQUESTED
|
|
26
|
+
payload: { request: review }
|
|
27
|
+
next: DONE
|
|
28
|
+
- key: DONE
|
|
29
|
+
type: RETURN
|
|
30
|
+
metadata:
|
|
31
|
+
status: SUCCESS
|
|
32
|
+
outputs:
|
|
33
|
+
event_id: "{{ outputs.PUBLISH.eventId }}"
|
|
34
|
+
publish_status: "{{ outputs.PUBLISH.publishStatus }}"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Only HTTP 202 with a valid acceptance body exposes `outputs.PUBLISH.eventId`, `.eventName`, `.publishStatus` (`router_accepted`) and `._response` through the existing API envelope. This proves router acceptance, not worker/provider execution, delivery or user receipt. Non-2xx, malformed acceptance and network uncertainty take the handler failure path, do not advance normal `next`, and do not expose invented success. Abort is cancellation. Never automatically retry a possibly accepted publication; explicit rerun can duplicate external effects.
|
|
38
|
+
|
|
39
|
+
Required support before enabling declarations: a compatible grouped frontend runtime and profile-progress service; profiles-owned public event admission with PROFILE UPDATE authorization; and an unambiguous authorized binding in the published definition plus its existing transport/consumer. The example name/payload above are placeholders for an approved public contract, not a registration. Browser metadata cannot provision any prerequisite.
|
|
40
|
+
|
|
41
|
+
Router acceptance, downstream provider acceptance, delivery and user receipt are separate observations. This unit action never waits for a provider or asks for receipt. A flow needing affirmative receipt must author a separate user-confirmation step and make successful RETURN conditional on that evidence. No durable deduplication, exactly-once delivery, implicit retry or synchronous downstream status is promised.
|
|
42
|
+
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## RECORDS_FORM
|
|
4
|
+
|
|
5
|
+
RECORDS_FORM lets the user add, change and remove several records in one paged table, then hands the changes to the steps after it. It is a pause step like FORM. **It never writes anything**: saving is always your own explicit `API` step, so every request, its result and its read-back stay visible in the flow.
|
|
6
|
+
|
|
7
|
+
```mermaid
|
|
8
|
+
flowchart LR
|
|
9
|
+
READ[API: read rows] --> EDIT[RECORDS_FORM: edit] --> BUILD[JSONATA: map statuses] --> SAVE["API: import r=false"] --> CHECK[API: read back] --> VERIFY{IF: saved as intended?}
|
|
10
|
+
VERIFY -- yes --> OK[SHOW_INFO + RETURN SUCCESS]
|
|
11
|
+
VERIFY -- no --> KO[SHOW_INFO + RETURN FAILED]
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
| Syntax | Meaning | Default and choice |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| `target: {kind: TASK, taskId: "**Records_Task_Id**"}` | Where the rows belong: a task table (`TASK` + `taskId`, a UUID or `**Variable**`) or worker settings (`WORKER_SETTINGS`, no `taskId`). Declarative only. | Required; no default. Only `TASK` and `WORKER_SETTINGS`. Validation checks a TASK target's table (FFE-12). |
|
|
17
|
+
| `identity: [code]` | Column keys that identify a row: blocks duplicates, matches edits, reports removes. | Required, at least one key; each must be a `columns[].key`. Loaded identity values cannot be edited. |
|
|
18
|
+
| `initial: "jsonata:: outputs.READ_ROWS.items"` | Rows shown at start: an array of objects, or a Liquid / `jsonata::` expression of this workflow returning one. | Optional; absent means an empty table. A non-array or non-object row fails the step. |
|
|
19
|
+
| `columns: [{key, name, type, required?, readonly?, min?}]` | Hand-written editable columns. `type` is `TEXT`, `NUMBER` or `MULTILINE_TEXT`; `min` only on `NUMBER`. | Required, at least one; each `key` once. `required`/`readonly` default to false. Never generated from table metadata; keys must exist in the TASK table. |
|
|
20
|
+
| `allow: {add: true, edit: true, remove: true}` | Which changes the user may make. | Optional; absent means `{add: false, edit: true, remove: false}`; each omitted member keeps its own default. |
|
|
21
|
+
| `pageSize: 20` | Rows per table page. | Optional integer ≥ 1; defaults to 20. |
|
|
22
|
+
| `search: {request, items, label, fill}` | Optional entity search adding one row per selection. `request` is a Liquid cURL with `{{ search.text }}`; `items` is a `jsonata::` expression over the response only (shaped like an `API` result: body members plus `_response`); `label` and `fill` render with `{{ item }}`. | Optional; absent means no search. When present all four are required and `fill` maps at least one column key to a Liquid value. `fill` keys must be columns. Needs `allow.add: true`; with search, new rows come only from a selection. |
|
|
23
|
+
|
|
24
|
+
`search.text` exists only inside `search.request`, and `item` only inside `search.label` and `search.fill`. `search.items` sees only the search response, never `inputs`/`outputs`. `fill` also sees this workflow's context, so it can copy a value chosen in an earlier step. A failed search shows inline and is never retried automatically.
|
|
25
|
+
|
|
26
|
+
**Rows the user adds** carry only the declared columns and the `search.fill` values. A `readonly` cell takes its value only from `initial` or `search.fill`, so with `allow.add` a readonly column that is required or part of `identity` must be a `fill` key — otherwise an added row can never be submitted. Validation (FFE-12) reports both, plus a TASK table column an added row would lack.
|
|
27
|
+
|
|
28
|
+
**Output.** On submit the step stores, without spreading, `outputs.<KEY> = {rows, upserts, removes, unchanged}`:
|
|
29
|
+
|
|
30
|
+
- `rows` — the final active rows.
|
|
31
|
+
- `upserts` — added rows and changed loaded rows, as **full rows**: every declared column plus every key from `initial` that is not a column (including system keys such as `__status`), kept verbatim.
|
|
32
|
+
- `removes` — removed loaded rows, **full and unmodified**, identity unchanged.
|
|
33
|
+
- `unchanged` — the count of loaded rows neither changed nor removed. Editing a value back to its original leaves the row unchanged.
|
|
34
|
+
|
|
35
|
+
An identity never appears in both `upserts` and `removes`: re-adding a removed identity restores the loaded row. Cancel follows `onCancelled` and stores no output. Completion offers exactly these four members; row members are not inferred.
|
|
36
|
+
|
|
37
|
+
**Remove means disable, never delete.** Map `removes` to the target's disable representation in your import step:
|
|
38
|
+
|
|
39
|
+
- **TASK target** — send upserts with `__status: 1` and removes with `__status: 2` in ONE `POST /proxy/workers/api/tasks/<taskId>/data/import/data?r=false` call. Set `__status` explicitly on every row: a REFERENCE task imports a missing or blank status as Removed. Rows must be full because the import requires every table column and rejects unknown ones; with `allow.add`, declare every table column (readonly where users must not edit it), because added rows carry only declared columns. The import also needs a change note (`notes`): the dashboard's own import asks for at least 32 characters and a super-admin account is refused below 256, so ask the user for a real reason rather than sending fixed text. Then read back with `__status not_hbw 6` (active rows only): every upserted identity must be present with the intended values and every removed identity absent, matched on every identity key; otherwise the outcome is unverified, never success, and is never resent automatically.
|
|
40
|
+
- **Never** use `r=true` (it disables every row missing from the payload), a physical delete or `…/data/statuses` (an empty item list applies to every row).
|
|
41
|
+
- **WORKER_SETTINGS target** — persist with the existing `PUT …/worker-settings/` call carrying `{values: {…}}`. Worker settings have no disable status, so keep `allow.remove` false unless your `PUT` step defines what removing a setting means.
|
|
42
|
+
|
|
43
|
+
**Quoting and limits.** Values the user types can contain an apostrophe, which would end a single-quoted `--data '…'` body and make the request unreadable. Render JSON inside such a body as `{{ value | json | replace: "'", "\\u0027" }}`: `json` makes a JSON value and the replace turns each apostrophe into the JSON escape `\u0027`. A search request returns at most its `limit` rows: size the initial read above the largest table you expect, because rows that are not loaded cannot be edited or removed, and adding an identity that exists beyond the limit overwrites that row. A read-back can only confirm as many rows as its `limit`, so a save touching more identities than that is unverified.
|
|
44
|
+
|
|
45
|
+
The following is a complete generic declaration: the tasks and tables the form edits and searches, then the flow.
|
|
46
|
+
|
|
47
|
+
```yaml
|
|
48
|
+
objects:
|
|
49
|
+
- id: "**Example_Records_Task_Id**"
|
|
50
|
+
name: Example records
|
|
51
|
+
type: REFERENCE
|
|
52
|
+
priority: 1000
|
|
53
|
+
description: "!md[./tasks/example-records.md]"
|
|
54
|
+
valueTableName: __hsm_example_records
|
|
55
|
+
ignoreRemoval: true
|
|
56
|
+
ignoreChange: false
|
|
57
|
+
- id: "**Example_Catalog_Task_Id**"
|
|
58
|
+
name: Example catalog
|
|
59
|
+
type: REFERENCE
|
|
60
|
+
priority: 1000
|
|
61
|
+
description: "!md[./tasks/example-catalog.md]"
|
|
62
|
+
valueTableName: __hsm_example_catalog
|
|
63
|
+
ignoreRemoval: true
|
|
64
|
+
ignoreChange: false
|
|
65
|
+
objectAssociations:
|
|
66
|
+
"**Example_Records_Task_Id**":
|
|
67
|
+
table: { id: "**Example_Records_Table_Id**" }
|
|
68
|
+
"**Example_Catalog_Task_Id**":
|
|
69
|
+
table: { id: "**Example_Catalog_Table_Id**" }
|
|
70
|
+
tables:
|
|
71
|
+
- id: "**Example_Records_Table_Id**"
|
|
72
|
+
columns:
|
|
73
|
+
code: { name: Code }
|
|
74
|
+
name: { name: Name }
|
|
75
|
+
quantity: { name: Quantity, dataType: Numeric }
|
|
76
|
+
note: { name: Note }
|
|
77
|
+
- id: "**Example_Catalog_Table_Id**"
|
|
78
|
+
columns:
|
|
79
|
+
code: { name: Code }
|
|
80
|
+
name: { name: Name }
|
|
81
|
+
getReadyFlows:
|
|
82
|
+
- key: EDIT_RECORDS
|
|
83
|
+
title: Edit records
|
|
84
|
+
action: { label: Edit records }
|
|
85
|
+
completionVersion: "1"
|
|
86
|
+
steps:
|
|
87
|
+
- key: READ_RECORDS
|
|
88
|
+
type: API
|
|
89
|
+
root: true
|
|
90
|
+
name: Read the current records
|
|
91
|
+
metadata: |-
|
|
92
|
+
curl --location '/proxy/workers/api/tasks/**Example_Records_Task_Id**/data/search' --request POST \
|
|
93
|
+
--header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
|
|
94
|
+
--header 'Content-Type: application/json' \
|
|
95
|
+
--data '{"fields":[],"offset":0,"limit":500,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6}]}}'
|
|
96
|
+
next: EDIT
|
|
97
|
+
- key: EDIT
|
|
98
|
+
type: RECORDS_FORM
|
|
99
|
+
name: Edit records
|
|
100
|
+
description: Add, change or remove records. Nothing is saved until you confirm.
|
|
101
|
+
metadata:
|
|
102
|
+
target: { kind: TASK, taskId: "**Example_Records_Task_Id**" }
|
|
103
|
+
identity: [code]
|
|
104
|
+
initial: "jsonata:: outputs.READ_RECORDS.items"
|
|
105
|
+
columns:
|
|
106
|
+
- { key: code, name: Code, type: TEXT, required: true, readonly: true }
|
|
107
|
+
- { key: name, name: Name, type: TEXT, required: true }
|
|
108
|
+
- { key: quantity, name: Quantity, type: NUMBER, min: 0 }
|
|
109
|
+
- { key: note, name: Note, type: MULTILINE_TEXT }
|
|
110
|
+
allow: { add: true, edit: true, remove: true }
|
|
111
|
+
pageSize: 20
|
|
112
|
+
search:
|
|
113
|
+
request: |-
|
|
114
|
+
curl --location '/proxy/workers/api/tasks/**Example_Catalog_Task_Id**/data/search' --request POST \
|
|
115
|
+
--header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
|
|
116
|
+
--header 'Content-Type: application/json' \
|
|
117
|
+
--data '{"fields":[],"offset":0,"limit":20,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6},{"leftOp":"code","condition":"ct","rightOp":{{ search.text | json | replace: "'", "\\u0027" }}}]}}'
|
|
118
|
+
items: "jsonata:: items"
|
|
119
|
+
label: "{{ item.code }} — {{ item.name }}"
|
|
120
|
+
fill: { code: "{{ item.code }}", name: "{{ item.name }}" }
|
|
121
|
+
next: BUILD_IMPORT
|
|
122
|
+
onCancelled: CANCELLED
|
|
123
|
+
- key: BUILD_IMPORT
|
|
124
|
+
type: JSONATA
|
|
125
|
+
metadata:
|
|
126
|
+
expression: |-
|
|
127
|
+
{
|
|
128
|
+
"hasChanges": $count(outputs.EDIT.upserts) + $count(outputs.EDIT.removes) > 0,
|
|
129
|
+
"identities": [outputs.EDIT.upserts.code, outputs.EDIT.removes.code],
|
|
130
|
+
"items": [
|
|
131
|
+
outputs.EDIT.upserts.$merge([$, {"__status": 1}]),
|
|
132
|
+
outputs.EDIT.removes.$merge([$, {"__status": 2}])
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
next: HAS_CHANGES
|
|
136
|
+
- key: HAS_CHANGES
|
|
137
|
+
type: IF
|
|
138
|
+
metadata:
|
|
139
|
+
condition: "{{ outputs.BUILD_IMPORT.hasChanges }}"
|
|
140
|
+
then: CHANGE_NOTE
|
|
141
|
+
else: NO_CHANGES
|
|
142
|
+
- key: CHANGE_NOTE
|
|
143
|
+
type: FORM
|
|
144
|
+
name: Why are you changing these records?
|
|
145
|
+
metadata:
|
|
146
|
+
fields:
|
|
147
|
+
- key: REASON
|
|
148
|
+
type: MULTILINE_TEXT
|
|
149
|
+
name: Reason for this change (kept in the import history)
|
|
150
|
+
required: true
|
|
151
|
+
next: SAVE
|
|
152
|
+
onCancelled: CANCELLED
|
|
153
|
+
- key: SAVE
|
|
154
|
+
type: API
|
|
155
|
+
name: Save the changes
|
|
156
|
+
metadata: |-
|
|
157
|
+
curl --location '/proxy/workers/api/tasks/**Example_Records_Task_Id**/data/import/data?r=false' --request POST \
|
|
158
|
+
--header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
|
|
159
|
+
--header 'Content-Type: application/json' \
|
|
160
|
+
--data '{"notes":{{ outputs.CHANGE_NOTE.REASON | json | replace: "'", "\\u0027" }},"items":{{ outputs.BUILD_IMPORT.items | json | replace: "'", "\\u0027" }}}'
|
|
161
|
+
next: READ_BACK
|
|
162
|
+
- key: READ_BACK
|
|
163
|
+
type: API
|
|
164
|
+
name: Confirm what was saved
|
|
165
|
+
metadata: |-
|
|
166
|
+
curl --location '/proxy/workers/api/tasks/**Example_Records_Task_Id**/data/search' --request POST \
|
|
167
|
+
--header 'HSS-PROFILE-ID: {{ inputs.PROFILE_ID }}' \
|
|
168
|
+
--header 'Content-Type: application/json' \
|
|
169
|
+
--data '{"fields":[],"offset":0,"limit":500,"filters":{"condition":"AND","rightOp":[{"leftOp":"__status","condition":"not_hbw","rightOp":6},{"leftOp":"code","condition":"in","rightOp":{{ outputs.BUILD_IMPORT.identities | json | replace: "'", "\\u0027" }}}]}}'
|
|
170
|
+
next: VERIFY
|
|
171
|
+
- key: VERIFY
|
|
172
|
+
type: JSONATA
|
|
173
|
+
metadata:
|
|
174
|
+
expression: |-
|
|
175
|
+
(
|
|
176
|
+
$saved := [outputs.READ_BACK.items];
|
|
177
|
+
$removed := [outputs.EDIT.removes.code];
|
|
178
|
+
$columns := ["code", "name", "quantity", "note"];
|
|
179
|
+
$text := function($v) { $exists($v) and $v != null ? $string($v) : "" };
|
|
180
|
+
$isSaved := function($row) { (
|
|
181
|
+
$found := $saved[code = $row.code][0];
|
|
182
|
+
$exists($found) and $count($columns[$text($lookup($found, $)) != $text($lookup($row, $))]) = 0
|
|
183
|
+
) };
|
|
184
|
+
{
|
|
185
|
+
"verified": outputs.READ_BACK._response.statusCode = 200
|
|
186
|
+
and $count([outputs.BUILD_IMPORT.identities]) <= 500
|
|
187
|
+
and $count([outputs.EDIT.upserts][$not($isSaved($))]) = 0
|
|
188
|
+
and $count($saved[code in $removed]) = 0
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
next: CHECK_SAVED
|
|
192
|
+
- key: CHECK_SAVED
|
|
193
|
+
type: IF
|
|
194
|
+
metadata:
|
|
195
|
+
condition: "{{ outputs.VERIFY.verified }}"
|
|
196
|
+
then: SHOW_SAVED
|
|
197
|
+
else: SHOW_UNVERIFIED
|
|
198
|
+
- key: SHOW_SAVED
|
|
199
|
+
type: SHOW_INFO
|
|
200
|
+
msg: Your changes are saved.
|
|
201
|
+
metadata: { type: SUCCESS, button_title: Finish }
|
|
202
|
+
next: DONE
|
|
203
|
+
- key: SHOW_UNVERIFIED
|
|
204
|
+
type: SHOW_INFO
|
|
205
|
+
msg: The save could not be confirmed. Reopen the records and check them before trying again.
|
|
206
|
+
metadata: { type: WARNING, button_title: Close }
|
|
207
|
+
next: UNVERIFIED
|
|
208
|
+
- key: DONE
|
|
209
|
+
type: RETURN
|
|
210
|
+
metadata:
|
|
211
|
+
status: SUCCESS
|
|
212
|
+
outputs:
|
|
213
|
+
upserted: "jsonata:: $count(outputs.EDIT.upserts)"
|
|
214
|
+
removed: "jsonata:: $count(outputs.EDIT.removes)"
|
|
215
|
+
- key: NO_CHANGES
|
|
216
|
+
type: RETURN
|
|
217
|
+
metadata:
|
|
218
|
+
status: SUCCESS
|
|
219
|
+
outputs: { upserted: 0, removed: 0 }
|
|
220
|
+
- key: UNVERIFIED
|
|
221
|
+
type: RETURN
|
|
222
|
+
metadata:
|
|
223
|
+
status: FAILED
|
|
224
|
+
error: { code: SAVE_UNVERIFIED, message: The saved records could not be confirmed }
|
|
225
|
+
- key: CANCELLED
|
|
226
|
+
type: RETURN
|
|
227
|
+
metadata: { status: CANCELLED }
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
The JSONATA step after the form is where removes become disables: it is the only place `__status` is set, and the single import carries both lists. A failed import or read-back takes the handler failure path (it does not advance `next`); it never advances to success and is never resent automatically, because a lost response does not prove the rows were not saved.
|
|
231
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## Rejected forms (non-copyable)
|
|
4
|
+
|
|
5
|
+
These counterexamples are deliberately excluded from copyable example search. They are invalid declarations, not alternate spellings.
|
|
6
|
+
|
|
7
|
+
```yaml
|
|
8
|
+
getReadyFlows:
|
|
9
|
+
- key: WRONG
|
|
10
|
+
id: not-an-alias
|
|
11
|
+
title: Invalid declaration
|
|
12
|
+
action: { label: Do not copy }
|
|
13
|
+
completionVersion: 1
|
|
14
|
+
steps:
|
|
15
|
+
- key: DONE
|
|
16
|
+
type: RETURN
|
|
17
|
+
root: "True"
|
|
18
|
+
dryRun: null
|
|
19
|
+
metadata:
|
|
20
|
+
status: SUCCESS
|
|
21
|
+
outputs: { foreign: "{{ outputs.SIBLING_ONLY.value }}" }
|
|
22
|
+
```
|
|
23
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
> Part of [Frontend workflows](frontend.FRONTEND-FLOWS.md).
|
|
2
|
+
|
|
3
|
+
## RETURN
|
|
4
|
+
|
|
5
|
+
RETURN terminates one invocation before ordinary output postprocessing or successor advancement. It never creates `outputs.<RETURN_KEY>`. Grouped fall-through is `MISSING_RETURN`, not success. A dynamic route or loop remains statically uncertain even if the document contains a RETURN elsewhere.
|
|
6
|
+
|
|
7
|
+
`metadata.status` is required and exactly `SUCCESS`, `FAILED` or `CANCELLED`:
|
|
8
|
+
|
|
9
|
+
- SUCCESS requires `metadata.outputs`: a JSON object or `jsonata::` expression resolving to one. Nested values use pure existing Liquid/JSONata mapping and preserve JSON types. No `error` member.
|
|
10
|
+
- FAILED requires `metadata.error: {code,message}`. Both strings describe the failure; no `outputs` member.
|
|
11
|
+
- CANCELLED has neither outputs nor error.
|
|
12
|
+
- No `next`, `onCancelled`, top-level `outputs[]`, flow `successOutputs` alias or storage processor is accepted.
|
|
13
|
+
|
|
14
|
+
| Syntax | Meaning | Default / absence and choice |
|
|
15
|
+
| --- | --- | --- |
|
|
16
|
+
| `metadata.status: SUCCESS` | Closed terminal discriminator: SUCCESS, FAILED or CANCELLED. | Required, no default. Choose by the invocation outcome, not the visual style of a SHOW_INFO panel. |
|
|
17
|
+
| `metadata.outputs: {accepted: true}` | SUCCESS-only pure caller result. | Required for SUCCESS; forbidden otherwise. `{}` intentionally returns no values. Choose an object for explicit mappings, or `jsonata::` for a whole-object expression. |
|
|
18
|
+
| `metadata.error: {code: NOT_ACCEPTED, message: Configuration was not accepted}` | Closed FAILED-only error object. | Required for FAILED; forbidden otherwise. No default or success outputs. |
|
|
19
|
+
| `metadata.error.code: NOT_ACCEPTED` | Machine-readable error string. | Required inside error; no default. |
|
|
20
|
+
| `metadata.error.message: Configuration was not accepted` | Safe user-facing error string. | Required inside error; no default. Never include credentials/context dumps. |
|
|
21
|
+
|
|
22
|
+
The following complete declarations show all terminal variants, including typed nested values. Mapping must yield finite JSON only: undefined, nonfinite values, non-JSON values and a whole-map expression returning a nonobject fail evaluation. Literal booleans/numbers/null and pure JSONata values preserve their types; use Liquid for strings, not implicit typed coercion. RETURN cannot run local-storage processors or expose `_context`.
|
|
23
|
+
|
|
24
|
+
```yaml
|
|
25
|
+
getReadyFlows:
|
|
26
|
+
- key: REVIEW
|
|
27
|
+
title: Review configuration
|
|
28
|
+
action: { label: Review }
|
|
29
|
+
completionVersion: "1"
|
|
30
|
+
steps:
|
|
31
|
+
- key: DECIDE
|
|
32
|
+
type: IF
|
|
33
|
+
root: true
|
|
34
|
+
metadata:
|
|
35
|
+
condition: "{{ inputs.accepted }}"
|
|
36
|
+
then: DONE
|
|
37
|
+
else: REJECTED
|
|
38
|
+
- key: DONE
|
|
39
|
+
type: RETURN
|
|
40
|
+
metadata:
|
|
41
|
+
status: SUCCESS
|
|
42
|
+
outputs:
|
|
43
|
+
accepted: true
|
|
44
|
+
count: 1
|
|
45
|
+
optional: null
|
|
46
|
+
nested:
|
|
47
|
+
count: "jsonata::1"
|
|
48
|
+
values: [true, null, 2]
|
|
49
|
+
- key: REJECTED
|
|
50
|
+
type: RETURN
|
|
51
|
+
metadata:
|
|
52
|
+
status: FAILED
|
|
53
|
+
error: { code: NOT_ACCEPTED, message: Configuration was not accepted }
|
|
54
|
+
- key: CANCEL_REVIEW
|
|
55
|
+
title: Cancel review
|
|
56
|
+
action: { label: Cancel }
|
|
57
|
+
completionVersion: "1"
|
|
58
|
+
steps:
|
|
59
|
+
- key: CANCEL
|
|
60
|
+
type: RETURN
|
|
61
|
+
root: true
|
|
62
|
+
metadata: { status: CANCELLED }
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
For a computed whole-object success result, use this full-context variant; the expression must resolve to an object at runtime, not a serialized JSON string.
|
|
66
|
+
|
|
67
|
+
```yaml
|
|
68
|
+
getReadyFlows:
|
|
69
|
+
- key: COMPUTE_RESULT
|
|
70
|
+
title: Compute a result
|
|
71
|
+
action: { label: Compute }
|
|
72
|
+
completionVersion: "1"
|
|
73
|
+
steps:
|
|
74
|
+
- key: DONE
|
|
75
|
+
type: RETURN
|
|
76
|
+
root: "true"
|
|
77
|
+
dryRun: false
|
|
78
|
+
metadata:
|
|
79
|
+
status: SUCCESS
|
|
80
|
+
outputs: 'jsonata::{"accepted": true, "count": 1, "optional": null}'
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Returned JSON belongs only to the immediate caller. It is not persisted with completion, shared with dependants, restored after refresh or available to another flow. Completion acknowledgement and execution results are separate. Retrying a lost acknowledgement must not replay execution.
|
|
84
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hexasync-tables-tasks-objects
|
|
3
3
|
description: "HexaSync data model: objects (tasks), tables and columns, objectAssociations, dependencies and dependency gates, task binding, physical storage, SAVE_TASK_DATA and explicit field mapping into snake_case columns. Use when defining a dataset, its storage or how tasks relate."
|
|
4
|
-
compatibility: "
|
|
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.8.3), which needs Node.js >= 22.13; without it, read references/."
|
|
5
5
|
metadata:
|
|
6
6
|
author: BeeHexa
|
|
7
|
-
version: "2611.8.
|
|
8
|
-
kb-bundle: "
|
|
7
|
+
version: "2611.8.3"
|
|
8
|
+
kb-bundle: "106"
|
|
9
9
|
mcp-server: "hexasync-template-ide"
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -13,15 +13,17 @@ metadata:
|
|
|
13
13
|
|
|
14
14
|
This page explains how a task, its table definition and its stored rows fit together, and owns the task-level `enqueue` and `dataProcessing` settings, the system columns every task table carries, the `systemColumns` presentation block and the `__status` bitmask. Individual `objects[]` fields are documented once, in [Tasks (`objects[]`)](references/objects.object.fields.md); business columns and index groups in [Tables and columns](references/tables.TABLES.fields.md).
|
|
15
15
|
|
|
16
|
-
> Generated from the HexaSync knowledge base (asset bundle
|
|
16
|
+
> Generated from the HexaSync knowledge base (asset bundle 106) by @beehexa/hexasync-ai-toolkit 2611.8.3.
|
|
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
|
|
24
|
-
3. `hexasync_search_examples` for complete, schema-valid examples (e.g. query `table columns object task`). 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":"objects","runtime":"worker"})`, `hexasync_explain_type({"name":"tables","runtime":"worker"})`, `hexasync_explain_type({"name":"objectAssociations","runtime":"worker"})`. Omitted runtime also means worker, never frontend.
|
|
26
|
+
3. `hexasync_search_examples` for complete, schema-valid worker/data examples (e.g. query `table columns object task`). 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
|
|
|
@@ -54,4 +56,4 @@ Never infer syntax from YAML already in the workspace: it may be outdated or wro
|
|
|
54
56
|
|
|
55
57
|
## Installing the MCP server
|
|
56
58
|
|
|
57
|
-
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@
|
|
59
|
+
If the `hexasync_*` tools are missing, run `npx -y @beehexa/hexasync-ai-toolkit@2611.8.3 install --client all`, or follow [`references/INSTALL.md`](references/INSTALL.md) for one client (stdio launch `npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3`). 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.8.3 install --client all --scope user
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@
|
|
9
|
+
Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3`):
|
|
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@
|
|
13
|
+
| Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.8.3` |
|
|
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@
|
|
18
|
+
| OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.8.3"]}'` |
|
|
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@
|
|
28
|
+
"@beehexa/hexasync-template-ide-mcp@2611.8.3"
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
On native Windows use
|
|
35
|
+
On native Windows use this launch:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"command": "cmd",
|
|
40
|
+
"args": [
|
|
41
|
+
"/c",
|
|
42
|
+
"npx",
|
|
43
|
+
"-y",
|
|
44
|
+
"@beehexa/hexasync-template-ide-mcp@2611.8.3"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The standalone server must match toolkit 2611.8.3. If that exact published artifact is absent, registry-backed activation is blocked; do not substitute another release or publish automatically. Local verification uses the actual installed VSIX's `dist/mcp/server.js`, without registry fetching. Confirm its loaded path/version and callable behavior separately.
|
|
50
|
+
|
|
51
|
+
Validation needs the project folder: when the client does not send roots, add `--root <absolute project path>` to `args` or set `HEXASYNC_WORKSPACE_ROOTS`. Do not add the server to a VS Code that has the HexaSync Template IDE extension: the extension already provides it. Skills are loaded conditionally by the host, not globally injected.
|