@axonity-ai/mcp 0.9.0 → 0.11.0

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/README.md CHANGED
@@ -284,6 +284,24 @@ trigger must exist in the **published** document. Rule shapes come from
284
284
  `get_workflow_authoring_spec` → `scheduleRuleKinds`; this connector names none
285
285
  of its own.
286
286
 
287
+ **A conditional trigger without a check starts the workflow every beat.** It
288
+ wakes on its interval and, with nothing set, runs whether or not there was
289
+ anything to do — a mailbox on fifteen minutes makes ninety-six empty runs a
290
+ day. `checkKind` decides instead, and it is a gate ahead of the run being
291
+ created: `"automatic"` is one tool call plus one rule on its answer, no model.
292
+ Its `checkConfig` is `{ toolId, inputs?, rule: { field, op, value } }`, where
293
+ `field` names a key of the *tool's* answer. `"agent"` is reserved for a model
294
+ judging the condition and is refused today.
295
+
296
+ Set it on `create_conditional_trigger` or on an existing trigger with
297
+ `update_conditional_trigger` — everything authored before checks existed has
298
+ none, which `list_conditional_triggers` shows as `checkKind: null`. **To take a
299
+ check off, send `checkKind: ""`**: the empty string clears the kind and its
300
+ config together, where omitting the field leaves it standing. The connector
301
+ does not judge a check — the backend validates it with the same function the
302
+ dispatcher runs when the trigger fires, so a setting that saves is one that
303
+ runs, and a bad one comes back as a refusal naming what to fix.
304
+
287
305
  ### Runs — evaluating what you built
288
306
 
289
307
  `start_workflow_run` (test a workflow you built — it runs the **published**
@@ -455,40 +473,52 @@ npm run build # emits dist/
455
473
 
456
474
  ## Releasing
457
475
 
458
- Publishing runs from a maintainer's machine, not from CI. npm restricts tokens
459
- that bypass 2FA for direct publishing, so a stored `NPM_TOKEN` cannot ship this
460
- package; `npm login` is the supported path.
461
-
462
- **Check the contract first.** Shipping with a stale snapshot is how the
463
- connector fell nine operations behind the backend without any test noticing:
476
+ **One command.**
464
477
 
465
478
  ```bash
466
- npm run check:contract # expects ../axonity-flow; override with AXONITY_FLOW_PATH
479
+ npm run release:minor # or release:patch / release:major
467
480
  ```
468
481
 
469
- It dumps the schema from a local `axonity-flow` checkout and diffs it against
470
- `test/fixtures/openapi.snapshot.json`, naming every operation that moved. It
471
- runs here rather than in the release workflow because the publish itself runs
472
- here — a gate in CI cannot stop a local `npm publish`.
482
+ That is the whole procedure. It refuses to start unless you are on `main` with
483
+ nothing uncommitted, resets `main` to exactly what is on GitHub, then installs,
484
+ tests and builds *before* touching the version — so anything that can fail,
485
+ fails while there is still nothing to undo. Only then does it bump, push, tag,
486
+ publish, and read the version back from npm to confirm it landed.
473
487
 
474
- Run `npm login` in a real terminal — it prints a URL and waits for you to finish
475
- in the browser, so it needs a session that stays attached (an editor's 2-minute
476
- command timeout will kill it mid-flow).
488
+ You need to be logged in first, once per machine. Run it in a real terminal:
489
+ `npm login` prints a URL and waits for the browser, so an editor's two-minute
490
+ command timeout will kill it mid-flow.
477
491
 
478
492
  ```bash
479
- npm login # browser flow; must complete in an attached terminal
493
+ npm login
480
494
  npm whoami # confirm the account
495
+ ```
496
+
497
+ **Why a script and not a list of steps.** The list used to live here, and the
498
+ ORDER was load-bearing: sync first, or the version bump lands on a stale
499
+ checkout. That went wrong twice in one week, identically both times — the bump
500
+ was made on a tree missing the last merge, the branch push was refused, and the
501
+ tag went up anyway. Recovering meant deleting a published tag and hard-resetting,
502
+ which is not something a release should ever require. The script pushes the
503
+ branch *before* the tag for the same reason: a refused push then leaves nothing
504
+ behind.
481
505
 
482
- git checkout main && git pull
483
- npm version <x.y.z> -m "%s" # commits + tags, so the tag matches the tarball
484
- git push origin main --follow-tags
485
- npm publish # prepublishOnly builds dist/ fresh
486
- npm view @axonity-ai/mcp version # confirm
506
+ **Check the contract before a release that matters.** Shipping with a stale
507
+ snapshot is how the connector fell nine operations behind the backend without
508
+ any test noticing:
509
+
510
+ ```bash
511
+ npm run check:contract # expects ../axonity-flow; override with AXONITY_FLOW_PATH
487
512
  ```
488
513
 
489
- Then cut a GitHub release for the tag. That triggers `Verify release`, which
490
- rebuilds and packs the tagged commit without publishing — it catches a tag that
491
- was cut from a state CI cannot install.
514
+ It dumps the schema from a local `axonity-flow` checkout and diffs it against
515
+ `test/fixtures/openapi.snapshot.json`, naming every operation that moved. It
516
+ runs here rather than in CI because the publish runs here — a gate in CI cannot
517
+ stop a local `npm publish`.
518
+
519
+ After releasing, optionally cut a GitHub release for the tag. That triggers
520
+ `Verify release`, which rebuilds and packs the tagged commit without publishing
521
+ — it catches a tag cut from a state CI cannot install.
492
522
 
493
523
  Keep npm 11 locally: Node 20 bundles npm 10, whose resolver writes an
494
524
  incompatible lockfile tree. CI pins npm 11 for the same reason.
package/dist/contract.js CHANGED
@@ -125,7 +125,25 @@ export async function collectCalledRoutes(register) {
125
125
  }
126
126
  }
127
127
  }
128
- return calls;
128
+ // DEDUPLICATED, because every consumer of this list is a SET question —
129
+ // "which routes does this build call" — and the replay above asks it once per
130
+ // probe variant. Fourteen variants over three hundred handlers is ~4,400
131
+ // observations of a few hundred distinct routes, and both readers then match
132
+ // each one against the whole route surface: 2.2M comparisons where 150k
133
+ // would do. `missingFromContract` already collapses the duplicates into a
134
+ // Set, and the completeness sweep does the same, so nothing downstream can
135
+ // tell the difference — it was paying for repetition it then discarded.
136
+ //
137
+ // It is not only a test cost. This runs at connector STARTUP, ahead of the
138
+ // transport, on any deploy whose contract hash has changed.
139
+ const seen = new Set();
140
+ return calls.filter((call) => {
141
+ const key = `${call.method} ${call.path}`;
142
+ if (seen.has(key))
143
+ return false;
144
+ seen.add(key);
145
+ return true;
146
+ });
129
147
  }
130
148
  /** Split a path into segments, dropping any query string. */
131
149
  function segments(path) {
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,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E9E,GAAG,CACD,uCAAuC,OAAO,CAAC,MAAM,iBAAiB;QACpE,oBAAoB;QACpB,cAAc,KAAK,KAAK,WAAW,QAAQ,OAAO,CAAC,MAAM,IAAI;QAC7D,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5D,0EAA0E;QAC1E,kEAAkE;QAClE,8DAA8D,CACjE,CAAC;IACF,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/dist/index.js CHANGED
@@ -28,6 +28,7 @@ import { assertPlaceholderCredentials } from "./tools/credentials.js";
28
28
  import { registerAttachTools, registerCatalogTools, registerConnectorTools, registerDependencyTools, registerPersonaTools, } from "./tools/extras.js";
29
29
  import { registerAuthoringSpecTools } from "./tools/authoringSpec.js";
30
30
  import { registerCompanyTools } from "./tools/company.js";
31
+ import { registerComponentTools } from "./tools/components.js";
31
32
  import { registerOperationsTools } from "./tools/operations.js";
32
33
  import { registerPromptPlacementTools } from "./tools/promptPlacement.js";
33
34
  import { LIST_FILTERS } from "./generated/listFilters.js";
@@ -216,6 +217,7 @@ export function registerAll(server, client) {
216
217
  registerToolboxTools(server, client);
217
218
  registerOperationsTools(server, client);
218
219
  registerDataTableTools(server, client);
220
+ registerComponentTools(server, client);
219
221
  }
220
222
  export function buildServer(client) {
221
223
  const server = new McpServer({ name: "axonity", version: "0.1.0" });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAA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AAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,iEAAiE;IACjE,OAAO,CAAC,KAAK,CAAC,gCAAgC,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;AACnE,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,YAAY,CAAC,SAAiB,EAAE,KAAyB;IACvE,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACzB,IAAI,CAAC;QACH,OAAO,SAAS,KAAK,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/D,CAAC;IAAC,MAAM,CAAC;QACP,2EAA2E;QAC3E,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAc;IACnD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAC9B,MAAM,IAAI,KAAK,CACb;QACE,yDAAyD;QACzD,QAAQ;QACR,eAAe;QACf,EAAE;QACF,2DAA2D;QAC3D,gDAAgD;QAChD,6CAA6C;QAC7C,EAAE;QACF,uBAAuB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;KACxC,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;AACJ,CAAC;AAED,gEAAgE;AAChE,IAAI,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnD,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,OAAO,CAAC,KAAK,CAAC,wCAAwC,EAAE,GAAG,CAAC,CAAC;QAC7D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -2,17 +2,26 @@
2
2
  * The company entity — a tenant's single company document (mission, value
3
3
  * streams, org structure). Unlike the other authored entities it is a
4
4
  * SINGLETON: one per tenant, addressed at `/api/v1/company` with no id, so it
5
- * has no list / create / delete / restore / discard routes. It is
6
- * version-controlled like the memory entities, and editable two ways: command
7
- * mutations (`apply_company_mutation`, preferred — the backend validates each
8
- * and threads the version) or a whole-document PUT (`update_company`). Workflow
9
- * has had both for a long time; company was whole-document-only here even
10
- * though `POST /api/v1/company/mutations` existed.
5
+ * has no list / create / delete routes. It is version-controlled like the
6
+ * memory entities, and editable two ways: command mutations
7
+ * (`apply_company_mutation`, preferred — the backend validates each and threads
8
+ * the version) or a whole-document PUT (`update_company`). Workflow has had
9
+ * both for a long time; company was whole-document-only here even though
10
+ * `POST /api/v1/company/mutations` existed.
11
11
  *
12
- * Publishing: company is currently NOT a publish-approval entity type on the
13
- * backend, so there is no request_publish_company — a company change is
14
- * published directly by a human/admin in Axonity. (Tracked in axonity-flow: the
15
- * decision on whether company joins the approval queue.)
12
+ * Publishing goes through the approval queue like everything else
13
+ * (`request_publish_company`, no id — the server resolves the singleton). The
14
+ * comment here used to say the opposite: that company was NOT a publish-approval
15
+ * entity type and that a human published it directly. The backend's approval
16
+ * enum names `company`, and the tool below has always posted it, so the prose
17
+ * was describing a state of the world that had moved on. Corrected rather than
18
+ * left, because a wrong comment about the publish gate is the wrong comment to
19
+ * have.
20
+ *
21
+ * `discard_company_draft` is newer. Company was the twelfth versioned entity
22
+ * and the last one without a discard route — axonity-flow#1388 added it because
23
+ * the Company page's own Discard button had nothing to call — so until now a
24
+ * company draft was the one draft in the tenant you could not walk back.
16
25
  */
17
26
  import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
18
27
  import type { AxonityClient } from "../client.js";
@@ -2,17 +2,26 @@
2
2
  * The company entity — a tenant's single company document (mission, value
3
3
  * streams, org structure). Unlike the other authored entities it is a
4
4
  * SINGLETON: one per tenant, addressed at `/api/v1/company` with no id, so it
5
- * has no list / create / delete / restore / discard routes. It is
6
- * version-controlled like the memory entities, and editable two ways: command
7
- * mutations (`apply_company_mutation`, preferred — the backend validates each
8
- * and threads the version) or a whole-document PUT (`update_company`). Workflow
9
- * has had both for a long time; company was whole-document-only here even
10
- * though `POST /api/v1/company/mutations` existed.
5
+ * has no list / create / delete routes. It is version-controlled like the
6
+ * memory entities, and editable two ways: command mutations
7
+ * (`apply_company_mutation`, preferred — the backend validates each and threads
8
+ * the version) or a whole-document PUT (`update_company`). Workflow has had
9
+ * both for a long time; company was whole-document-only here even though
10
+ * `POST /api/v1/company/mutations` existed.
11
11
  *
12
- * Publishing: company is currently NOT a publish-approval entity type on the
13
- * backend, so there is no request_publish_company — a company change is
14
- * published directly by a human/admin in Axonity. (Tracked in axonity-flow: the
15
- * decision on whether company joins the approval queue.)
12
+ * Publishing goes through the approval queue like everything else
13
+ * (`request_publish_company`, no id — the server resolves the singleton). The
14
+ * comment here used to say the opposite: that company was NOT a publish-approval
15
+ * entity type and that a human published it directly. The backend's approval
16
+ * enum names `company`, and the tool below has always posted it, so the prose
17
+ * was describing a state of the world that had moved on. Corrected rather than
18
+ * left, because a wrong comment about the publish gate is the wrong comment to
19
+ * have.
20
+ *
21
+ * `discard_company_draft` is newer. Company was the twelfth versioned entity
22
+ * and the last one without a discard route — axonity-flow#1388 added it because
23
+ * the Company page's own Discard button had nothing to call — so until now a
24
+ * company draft was the one draft in the tenant you could not walk back.
16
25
  */
17
26
  import { z } from "zod";
18
27
  import { guard, jsonResult } from "./result.js";
@@ -20,6 +29,15 @@ export function registerCompanyTools(server, client) {
20
29
  server.tool("read_company", "Read this tenant's company document (its current draft and version). There " +
21
30
  "is one company per tenant — no id. Read it before you update, to get the " +
22
31
  "version for optimistic locking.", {}, async () => guard(async () => jsonResult(await client.get("/api/v1/company"))));
32
+ server.tool("discard_company_draft", "Throw away the company DRAFT and reset it to what is published — the " +
33
+ "recovery action when a run of edits went wrong and you want the live " +
34
+ "document back. What is live is not touched; only the draft is. " +
35
+ "\n\nTakes no expectedVersion, on purpose: a discard acts on whatever " +
36
+ "the draft currently holds, so a stale version number must not be able " +
37
+ "to block a recovery. " +
38
+ "\n\nREFUSED (422) WHEN THE COMPANY HAS NEVER BEEN PUBLISHED. There is " +
39
+ "then nothing to reset to and the draft is the only copy of that work — " +
40
+ "the refusal says so. Read the message rather than retrying.", {}, async () => guard(async () => jsonResult(await client.post("/api/v1/company/discard-draft"))));
23
41
  server.tool("create_company_from_template", "Create this tenant's company document from a template — how a tenant that " +
24
42
  "has none gets one. Pick the template with list_templates({ kind: " +
25
43
  "\"all\" }) and read it with read_template first: the template decides the " +
@@ -47,8 +65,9 @@ export function registerCompanyTools(server, client) {
47
65
  "to the draft read_company returns. Diff the two to see what a publish would change.", {}, async () => guard(async () => jsonResult(await client.get("/api/v1/company/published"))));
48
66
  server.tool("update_company", "Save the company draft as a WHOLE document (full-document PUT, not a field " +
49
67
  "merge). Read it first for its version; on a 409 conflict re-read and retry. " +
50
- "This writes the draft only — a human publishes it in Axonity (company is " +
51
- "not part of the request_publish_* approval flow).", {
68
+ "This writes the draft only — propose it with request_publish_company and " +
69
+ "a human approves. To walk the draft back to what is live, " +
70
+ "discard_company_draft.", {
52
71
  expectedVersion: z
53
72
  .number()
54
73
  .int()
@@ -1 +1 @@
1
- {"version":3,"file":"company.js","sourceRoot":"","sources":["../../src/tools/company.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,oBAAoB,CAClC,MAAiB,EACjB,MAAqB;IAErB,MAAM,CAAC,IAAI,CACT,cAAc,EACd,6EAA6E;QAC3E,2EAA2E;QAC3E,iCAAiC,EACnC,EAAE,EACF,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAC/E,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,8BAA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,CACR,MAAM,MAAM,CAAC,IAAI,CAAC,2BAA2B,EAAE;QAC7C,UAAU,EAAE,SAAS;QACrB,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC5C,CAAC,CACH,CACF,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * What a workflow is MADE OF, and how to make one part of it its own
3
+ * (axonity-flow#1369 / #1371).
4
+ *
5
+ * The connector could already answer the reverse question. `list_workflows_using`
6
+ * says which workflows reference an entity — read it before you change something
7
+ * shared. Nothing answered the forward one: given this workflow, what does it
8
+ * depend on? The guide's own "Reproducing a setup" section tells an agent to
9
+ * work it out by hand — read the steps, follow each to its agent, follow that to
10
+ * its tools, follow those to the tables behind them, and remember the lot. That
11
+ * is a walk with no natural end and one an agent gets partly wrong.
12
+ *
13
+ * It is not the same question with the arrow reversed, either. The reverse
14
+ * reader looks at workflow DOCUMENTS. This one composes two hops: which entities
15
+ * the document names, and then what each agent actually receives and each tool
16
+ * actually reaches — because "what is attached" and "what the agent gets" have
17
+ * different answers, and only the second one explains a run.
18
+ *
19
+ * Every row carries WHY it is there. An entity reached twice is one dependency
20
+ * with two reasons, and "in these two steps" is something an author can act on
21
+ * where a bare "used" is not.
22
+ *
23
+ * `duplicate_workflow_component` is the other half, and it exists because
24
+ * sharing is the default: an agent used by three processes is ONE agent, so
25
+ * editing it from inside one of them changes the two nobody opened. The copy
26
+ * belongs to this workflow, the original is not touched, and every other
27
+ * workflow stays on the original.
28
+ *
29
+ * That is not the "recreate, never copy ids" rule breaking. That rule is about
30
+ * carrying an id ACROSS TENANTS, where it points at nothing or at the wrong
31
+ * thing. This is one tenant, and the backend rewrites the references itself.
32
+ */
33
+ import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
34
+ import type { AxonityClient } from "../client.js";
35
+ export declare function registerComponentTools(server: McpServer, client: AxonityClient): void;
@@ -0,0 +1,89 @@
1
+ /**
2
+ * What a workflow is MADE OF, and how to make one part of it its own
3
+ * (axonity-flow#1369 / #1371).
4
+ *
5
+ * The connector could already answer the reverse question. `list_workflows_using`
6
+ * says which workflows reference an entity — read it before you change something
7
+ * shared. Nothing answered the forward one: given this workflow, what does it
8
+ * depend on? The guide's own "Reproducing a setup" section tells an agent to
9
+ * work it out by hand — read the steps, follow each to its agent, follow that to
10
+ * its tools, follow those to the tables behind them, and remember the lot. That
11
+ * is a walk with no natural end and one an agent gets partly wrong.
12
+ *
13
+ * It is not the same question with the arrow reversed, either. The reverse
14
+ * reader looks at workflow DOCUMENTS. This one composes two hops: which entities
15
+ * the document names, and then what each agent actually receives and each tool
16
+ * actually reaches — because "what is attached" and "what the agent gets" have
17
+ * different answers, and only the second one explains a run.
18
+ *
19
+ * Every row carries WHY it is there. An entity reached twice is one dependency
20
+ * with two reasons, and "in these two steps" is something an author can act on
21
+ * where a bare "used" is not.
22
+ *
23
+ * `duplicate_workflow_component` is the other half, and it exists because
24
+ * sharing is the default: an agent used by three processes is ONE agent, so
25
+ * editing it from inside one of them changes the two nobody opened. The copy
26
+ * belongs to this workflow, the original is not touched, and every other
27
+ * workflow stays on the original.
28
+ *
29
+ * That is not the "recreate, never copy ids" rule breaking. That rule is about
30
+ * carrying an id ACROSS TENANTS, where it points at nothing or at the wrong
31
+ * thing. This is one tenant, and the backend rewrites the references itself.
32
+ */
33
+ import { z } from "zod";
34
+ import { guard, jsonResult } from "./result.js";
35
+ export function registerComponentTools(server, client) {
36
+ server.tool("list_workflow_components", "Everything this workflow is made of, in ONE call: the agents and flows " +
37
+ "that run its steps, the workflows it calls, the tools those agents " +
38
+ "reach, the tables behind those tools, and the knowledge attached to " +
39
+ "them. Read-only. " +
40
+ "\n\nUSE THIS BEFORE REPRODUCING OR AUDITING A SETUP. The alternative is " +
41
+ "walking the document step by step and following each entity outward by " +
42
+ "hand, which is where a recreated workflow quietly loses a tool nobody " +
43
+ "noticed was attached. " +
44
+ "\n\nEach row carries `section` (agents / called / tools / tables / " +
45
+ "knowledge), `kind`, `entityId`, `name`, and `sources` — the steps that " +
46
+ "are the REASON it is here. One entity reached twice is one row with two " +
47
+ "sources, not two rows. " +
48
+ "\n\nREAD `publicationState`: it says whether the RUNTIME can see this " +
49
+ "component at all. `live` is published and unchanged; `edited` is " +
50
+ "published with newer changes the runtime has NOT got; `not_published` " +
51
+ "has never gone live and reaches nobody; `missing` was deleted out from " +
52
+ "under the workflow while still referenced; `not_versioned` is a kind " +
53
+ "with no publish lifecycle. A workflow whose components are `edited` or " +
54
+ "`not_published` runs on something other than what you just read. " +
55
+ "\n\n`reach` counts the workflows in the tenant that name this component " +
56
+ "directly, INCLUDING this one — so 1 means it is yours alone and 3 means " +
57
+ "changing it changes two other processes. That is the number to look at " +
58
+ "before you edit something, and duplicate_workflow_component is the way " +
59
+ "out when it is higher than you want. " +
60
+ "\n\nAn unknown workflow id is a 404, not an empty list: a workflow that " +
61
+ "names nothing and a workflow that does not exist are different answers.", { workflowId: z.string().describe("The workflow's id.") }, async ({ workflowId }) => guard(async () => jsonResult(await client.get(`/api/v1/workflows/${workflowId}/components`))));
62
+ server.tool("duplicate_workflow_component", "Copy a SHARED component and point THIS workflow at the copy — the way to " +
63
+ "make one process's agent its own without disturbing the processes that " +
64
+ "share it. The original is not modified and every other workflow stays " +
65
+ "on it. " +
66
+ "\n\nWHY YOU WOULD: list_workflow_components gives each row a `reach`. " +
67
+ "When that is greater than 1, editing the component edits processes you " +
68
+ "did not open. Duplicating first turns an edit that reaches three " +
69
+ "processes into one that reaches this one. " +
70
+ "\n\nTHE ANSWER IS THE WHOLE DOCUMENT, NOT A PATCH: { newEntityId, name, " +
71
+ "version, document }. The repoint rewrites EVERY site the component was " +
72
+ "named in, so a caller that applied only part of the answer would keep a " +
73
+ "stale reference on the sites it did not hear about. Take the document " +
74
+ "and the version as your new baseline. " +
75
+ "\n\nAGENTS ONLY today — `kind` accepts nothing else, and the backend " +
76
+ "refuses anything else rather than half-doing it.", {
77
+ workflowId: z.string().describe("The workflow that should get its own copy."),
78
+ kind: z
79
+ .literal("agent")
80
+ .describe("What is being duplicated. Only `agent` is supported; the route " +
81
+ "declares it as a constant, not as an open vocabulary."),
82
+ entityId: z
83
+ .string()
84
+ .min(1)
85
+ .max(200)
86
+ .describe("The shared component's id, from list_workflow_components."),
87
+ }, async ({ workflowId, kind, entityId }) => guard(async () => jsonResult(await client.post(`/api/v1/workflows/${workflowId}/components/duplicate`, { kind, entityId }))));
88
+ }
89
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/tools/components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,UAAU,sBAAsB,CACpC,MAAiB,EACjB,MAAqB;IAErB,MAAM,CAAC,IAAI,CACT,0BAA0B,EAC1B,yEAAyE;QACvE,qEAAqE;QACrE,sEAAsE;QACtE,mBAAmB;QACnB,0EAA0E;QAC1E,yEAAyE;QACzE,wEAAwE;QACxE,wBAAwB;QACxB,qEAAqE;QACrE,yEAAyE;QACzE,0EAA0E;QAC1E,yBAAyB;QACzB,wEAAwE;QACxE,mEAAmE;QACnE,wEAAwE;QACxE,yEAAyE;QACzE,uEAAuE;QACvE,yEAAyE;QACzE,mEAAmE;QACnE,0EAA0E;QAC1E,0EAA0E;QAC1E,yEAAyE;QACzE,yEAAyE;QACzE,uCAAuC;QACvC,0EAA0E;QAC1E,yEAAyE,EAC3E,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,EACzD,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,CACvB,KAAK,CAAC,KAAK,IAAI,EAAE,CACf,UAAU,CACR,MAAM,MAAM,CAAC,GAAG,CAAC,qBAAqB,UAAU,aAAa,CAAC,CAC/D,CACF,CACJ,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,8BAA8B,EAC9B,2EAA2E;QACzE,yEAAyE;QACzE,wEAAwE;QACxE,SAAS;QACT,wEAAwE;QACxE,yEAAyE;QACzE,mEAAmE;QACnE,4CAA4C;QAC5C,0EAA0E;QAC1E,yEAAyE;QACzE,0EAA0E;QAC1E,wEAAwE;QACxE,wCAAwC;QACxC,uEAAuE;QACvE,kDAAkD,EACpD;QACE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;QAC7E,IAAI,EAAE,CAAC;aACJ,OAAO,CAAC,OAAO,CAAC;aAChB,QAAQ,CACP,iEAAiE;YAC/D,uDAAuD,CAC1D;QACH,QAAQ,EAAE,CAAC;aACR,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,GAAG,CAAC;aACR,QAAQ,CAAC,2DAA2D,CAAC;KACzE,EACD,KAAK,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CACvC,KAAK,CAAC,KAAK,IAAI,EAAE,CACf,UAAU,CACR,MAAM,MAAM,CAAC,IAAI,CACf,qBAAqB,UAAU,uBAAuB,EACtD,EAAE,IAAI,EAAE,QAAQ,EAAE,CACnB,CACF,CACF,CACJ,CAAC;AACJ,CAAC"}
@@ -142,9 +142,11 @@ has run cleanly once, at its current version.
142
142
  - All fields are camelCase JSON (e.g. \`capabilityTier\`, not \`capability_tier\`).
143
143
  ONE documented exception: validator specs (\`permissions.outputValidators\`,
144
144
  \`permissions.exposedValidatorTools\`) use snake_case keys (\`function\`,
145
- \`target\`, \`args\`, \`error_message\`, \`tool_name\`, \`validator_name\`) — they are
146
- the same shape at every level and are stored verbatim, so they are NOT
147
- camel-aliased. Send them in snake_case.
145
+ \`target\`, \`args\`, \`when_present\`, \`inputs\`, \`error_message\`,
146
+ \`tool_name\`, \`validator_name\`) — they are the same shape at every level and
147
+ are stored verbatim, so they are NOT camel-aliased. Send them in snake_case.
148
+ What those keys MEAN, and how a validator is bound to what it judges, is the
149
+ Validators section.
148
150
  - \`update_*\` is a partial change for agents/tools and a partial patch for
149
151
  workflows: send only the fields you are changing (plus \`expectedVersion\`).
150
152
  - The backend validates fields; a 422 error names the offending field and why
@@ -251,10 +253,15 @@ made any time before you attach them.
251
253
  or ""); a human fills the secret in Axonity. Test with
252
254
  \`execute_stored_connector\` (uses the real, server-side-decrypted secret;
253
255
  you see only the result).
254
- - **validator / evaluator** — a constrained kind that wraps a builtin;
255
- \`implementation\` names the builtin registry key plus its args. Look at the
256
- tenant's existing validator/evaluator tools (\`list_tools\`) for the keys in
257
- use rather than inventing one.
256
+ - **validator / evaluator** — a constrained kind, and \`implementation\` takes
257
+ ONE OF TWO shapes. Either \`{"builtin": "validators.<name>"}\`, naming a
258
+ house predicate — look at the tenant's existing validator/evaluator tools
259
+ (\`list_tools\`) for the keys in use rather than inventing one. Or authored
260
+ Python, like a function tool, whose \`run\` returns a VERDICT: \`True\` /
261
+ \`False\` / a fail-detail object. A \`run\` that returns a string, a number
262
+ or nothing at all declares no verdict and is REFUSED on save, so that a
263
+ misconfigured gate cannot silently pass everything at run time. Authored
264
+ code takes the standard call — see Validators.
258
265
  - Complete check: the tool has the I/O schemas its callers need AND a non-empty
259
266
  implementation of the right shape for its type.
260
267
  - \`toolboxId\` files the tool in a toolbox on creation. Read \`list_toolboxes\`
@@ -270,8 +277,9 @@ made any time before you attach them.
270
277
  shape), \`canOwnProcess\` (bool; must be true for an agent to own a
271
278
  workflow step's flow), \`episodicMemoryEnabled\` (bool).
272
279
  - \`permissions\` (object): \`planning\`, \`delegation\`, \`verboseOutput\` (bools);
273
- \`outputValidators\` / \`exposedValidatorTools\` (snake_case specs, see Field
274
- shape); \`expectedOutputSchemaId\` (an output_schema id — MANDATORY whenever you
280
+ \`outputValidators\` / \`exposedValidatorTools\` (snake_case specs — see Field
281
+ shape for the casing, Validators for what they say);
282
+ \`expectedOutputSchemaId\` (an output_schema id — MANDATORY whenever you
275
283
  attach validators here).
276
284
  - Wiring fields — see the Wiring section: \`toolIds\`, \`systemToolIds\`,
277
285
  \`delegationTargetIds\`.
@@ -310,6 +318,10 @@ made any time before you attach them.
310
318
  - A reusable output contract, versioned and publishable. Referenced BY id from a
311
319
  tool's validators or an agent's \`permissions.expectedOutputSchemaId\` — so
312
320
  create it first, then point things at the id the create call returns.
321
+ - \`schemaBody\` is a JSON Schema document (\`type\`, \`properties\`,
322
+ \`required\`) PLUS one key that is not JSON Schema: \`validators\`, the gates
323
+ run against a submitted output. This is the place a validator can be STEERED
324
+ at part of the output — see Validators.
313
325
 
314
326
  ### skill / policy / reference_doc
315
327
  - Memory entities attached to agents (and skills also to workflows). Create them,
@@ -341,6 +353,89 @@ made any time before you attach them.
341
353
  company). Direct company publish is closed to machine tokens, so the approval
342
354
  queue is the only path.
343
355
 
356
+ ## Validators — one shape, one call
357
+ A validator is a GATE on a submitted output: it runs after an agent produces a
358
+ result and can refuse it. Specs are written in two places and carry the same
359
+ key names in both — \`permissions.outputValidators\` on an agent, and
360
+ \`validators\` inside an output_schema's \`schemaBody\`. The backend's OpenAPI
361
+ description of \`schemaBody\` is the source for the full contract; what follows
362
+ is the part you cannot author without.
363
+
364
+ - A spec names its check in ONE of two ways, and each brings its own binding:
365
+ - \`function\` — a shipped predicate (e.g. \`validators.min_length\`), bound
366
+ by \`target\` (the field it judges; omit it to judge the whole output) and
367
+ \`args\`.
368
+ - \`tool\` — a validator TOOL in this tenant's library, by name or id.
369
+ Exactly one of the two. Naming both leaves it unsaid which one runs, naming
370
+ neither leaves nothing to run, and a gate does not get to be ambiguous — both
371
+ are refused. The binding keys do not mix either: \`target\`/\`args\` belong to
372
+ the \`function\` form and are refused on a \`tool\` spec, because a key the
373
+ runtime ignores is worse stored than rejected.
374
+ - \`error_message\` is what the agent is told on refusal, and the one key both
375
+ forms share. \`{value}\` in it is replaced by what the validator reported.
376
+ - \`when_present\` runs the check only when the target field is actually in the
377
+ payload. Off by default, deliberately: a blanket skip turns a mistyped
378
+ \`target\` into a gate that passes everything. Set it where a field is
379
+ genuinely optional.
380
+
381
+ ### The standard call
382
+ EVERY authored validator is invoked the same way. The signature does not vary
383
+ per tool, and that is the whole point: a screen cannot offer inputs it does not
384
+ know, and a spec served to an agent cannot describe a shape that differs per
385
+ tool. Bespoke parameters push the contract into prose that goes stale.
386
+
387
+ \`\`\`
388
+ run(data, slots, binding)
389
+ \`\`\`
390
+
391
+ - \`data\` — what the validator is pointed at, UNTOUCHED. The whole submitted
392
+ output, or the field named by \`field\`.
393
+ - \`slots\` — every declared session-memory reference found in \`data\`, with its
394
+ text, indexed by the reference itself. The platform resolves them because code
395
+ in the sandbox is never handed a lookup callable — a validator may be foreign
396
+ code.
397
+ - \`binding\` — what you declared, verbatim, so the validator knows which values
398
+ in \`data\` are references to look up rather than text to read. Without it it
399
+ would have to guess, and guessing is how a check reads a key as though it were
400
+ the body.
401
+
402
+ Two keys on the spec steer that call: \`field\` names the part of the output to
403
+ hand over (leave it out for the whole output), and \`slots\` lists the fields
404
+ that hold references.
405
+
406
+ \`\`\`json
407
+ { "tool": "my.freshness.check",
408
+ "field": "units",
409
+ "slots": ["key", "source_key"],
410
+ "error_message": "REJECTED: {value}" }
411
+ \`\`\`
412
+
413
+ BOTH ARE CHECKED WHEN YOU SAVE the output schema, and a refusal names the
414
+ fields that do exist: a \`field\` that is not a property, or a \`slots\` name the
415
+ rows do not carry. That check is there because either mistake fails SILENTLY at
416
+ run time — a name that is not there is never looked up, so the gate runs on
417
+ unresolved values and nothing says so. (Rows whose schema declares no shape are
418
+ left alone: there is nothing to check against, and guessing would refuse correct
419
+ configurations.)
420
+
421
+ WHERE \`field\` AND \`slots\` ARE ACCEPTED: inside an output_schema's
422
+ \`schemaBody\`, which is stored verbatim. An agent's
423
+ \`permissions.outputValidators\` is a STRICT body — an undeclared key is a 422 —
424
+ so a spec written THERE takes neither, and its validator gets the whole output
425
+ and no slots. Steer a validator from the output_schema.
426
+
427
+ ### The older, explicit binding
428
+ A tool spec MAY declare \`inputs\` instead, and a spec with \`inputs\` does NOT
429
+ get the standard call. That is the way for a validator tool backed by a shipped
430
+ predicate, which receives \`value\` plus its own arguments — its \`run\` would
431
+ not accept \`data\`/\`slots\`/\`binding\`. Each entry is
432
+ \`{"source": "field"|"const", "field": <name>, "as": "slot"?}\`; with
433
+ \`as: "slot"\` the field's value is read as a reference and its TEXT is passed.
434
+ \`field\` takes a path, so a binding can point INTO a list: \`units[].key\` is,
435
+ from every row in \`units\`, the \`key\` field.
436
+
437
+ Writing a NEW validator: take the standard call and leave \`inputs\` out.
438
+
344
439
  ## Wiring — how the pieces connect
345
440
  There are THREE mechanisms, and using the wrong one silently no-ops. Know which
346
441
  each link uses.
@@ -398,6 +493,15 @@ get "into" a workflow — there is no attach route for it):
398
493
  validates each edit. Read the returned document to see the exact shape it
399
494
  produced, then adjust.
400
495
 
496
+ ### Which way you are asking
497
+ - \`list_workflow_components\` — what does THIS workflow depend on. Two hops:
498
+ what the document names, and what each agent then actually receives.
499
+ - \`list_workflows_using\` / \`list_dependent_agents\` — who depends on THIS
500
+ entity. Ask before you edit or delete anything shared.
501
+ - A component's \`reach\` is how many workflows name it, this one included. Above
502
+ 1, an edit reaches processes you did not open; \`duplicate_workflow_component\`
503
+ gives this workflow its own copy and leaves the others on the original.
504
+
401
505
  ## Prompt elements & placement (Memory V2)
402
506
  A prompt snippet is a LIBRARY item — creating it changes nothing on its own. It
403
507
  only shapes a run once it is PLACED into a flow step's prompt stack. Placement is
@@ -439,10 +543,16 @@ meaningful only in the tenant it came from; sending it back in a create/update
439
543
  elsewhere points at nothing. Do this instead:
440
544
  1. Read the source graph (in the session pointed at it) for its SHAPE: names,
441
545
  field values, which tools each agent lists, which agents/tools each workflow
442
- step references. For each source agent also read its LINKS —
443
- \`list_agent_skills\`, \`list_agent_policies\`, \`list_agent_reference_docs\` —
444
- they are not in the agent body, so a plain \`read_agent\` misses them and you
445
- would rebuild an agent that quietly lost its skills and guardrails.
546
+ step references. START WITH \`list_workflow_components\`: it answers what the
547
+ workflow is made of in one call — agents and flows, the workflows it calls,
548
+ the tools those agents reach, the tables behind those tools, the knowledge
549
+ attached — each row naming the STEPS that are the reason it is there. Walking
550
+ that outward by hand is how a rebuild quietly loses a tool nobody noticed was
551
+ attached. Then read each entity for its field values. For each source agent
552
+ also read its LINKS — \`list_agent_skills\`, \`list_agent_policies\`,
553
+ \`list_agent_reference_docs\` — they are not in the agent body, so a plain
554
+ \`read_agent\` misses them and you would rebuild an agent that quietly lost
555
+ its skills and guardrails.
446
556
  2. Create the leaf dependencies first (tools, output_schemas). Keep a map from
447
557
  each OLD id to the NEW id the create call returns.
448
558
  3. Create agents, translating every referenced id through your map:
@@ -621,6 +731,26 @@ a document to find out what the platform did.
621
731
  - \`list_all_cron_schedules\` answers "what runs tonight?" across the tenant;
622
732
  \`reconcile_cron_schedules\` answers "is that actually what runs?". The second
623
733
  reports rather than tidying silently and never arms something switched off.
734
+ - **A conditional trigger without a CHECK starts the workflow every beat.** It
735
+ wakes on its interval and, with nothing set, runs regardless of whether there
736
+ was anything to do — a mailbox on fifteen minutes then makes ninety-six empty
737
+ runs a day. Set \`checkKind\` on \`create_conditional_trigger\`, or on an
738
+ existing one with \`update_conditional_trigger\`; every trigger authored
739
+ before checks existed has none, so read \`checkKind\` in
740
+ \`list_conditional_triggers\` before assuming otherwise.
741
+ - \`checkKind: "automatic"\` is ONE tool call and one rule on its answer — no
742
+ model, so it is the cheap way to ask "is there anything there?". Its
743
+ \`checkConfig\` is \`{ toolId, inputs?, rule: { field, op, value } }\`, where
744
+ \`field\` names a key OF THE TOOL'S ANSWER. A rule pointing at a field the
745
+ tool never returns is reported as a broken setup, not as "condition not met".
746
+ \`"agent"\` is reserved for a model judging the condition and is refused
747
+ today. Do not pre-validate a check here — the backend judges it with the same
748
+ function the dispatcher runs when the trigger fires, and its refusal says
749
+ what to change.
750
+ - **To take a check off again, send \`checkKind: ""\`** — the empty string. It
751
+ clears the kind and its config together and returns the trigger to starting
752
+ every beat. Omitting the field leaves the check standing, which is why the
753
+ empty string exists at all.
624
754
 
625
755
  ## Evaluating what you built
626
756
  - There is no findings endpoint and no evaluator entity. To judge a run, read it:
@@ -1 +1 @@
1
- {"version":3,"file":"conventions.js","sourceRoot":"","sources":["../../src/tools/conventions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAIH,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA86BnB,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAC,MAAiB;IACnD,MAAM,CAAC,IAAI,CACT,qBAAqB,EACrB,2EAA2E;QACzE,2EAA2E;QAC3E,2EAA2E;QAC3E,4EAA4E;QAC5E,uEAAuE;QACvE,kBAAkB,EACpB,EAAE,EACF,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,CAC1E,CAAC;AACJ,CAAC"}
@@ -24,7 +24,16 @@
24
24
  * `update_data_table` to base itself on. Adding a version argument here would
25
25
  * invent a check the route does not make.
26
26
  *
27
- * **2. Which tools a table yields.** A published table mints its own CRUD tools,
27
+ * **2. Reading the rows without reading the whole table.** `read_data_table`
28
+ * answers with the table AND every row it holds, which is right for a library
29
+ * element and wrong for DATA: the reasoning that put `listPaging` on
30
+ * `list_data_tables` — a library grows by deliberate authoring, a tenant's
31
+ * reference data has no ceiling — applies harder one level down, where the rows
32
+ * are. `list_data_table_rows` (axonity-flow#1372) is the paged, filtered reader,
33
+ * and the filter runs over the WHOLE table before the page is cut, so a match
34
+ * below the window is still found.
35
+ *
36
+ * **3. Which tools a table yields.** A published table mints its own CRUD tools,
28
37
  * so granting an agent access to a table is ordinary tool granting rather than a
29
38
  * second permission vocabulary. Their names follow a convention, which used to
30
39
  * mean the only way to find them was to fetch the whole tool library and match
@@ -24,7 +24,16 @@
24
24
  * `update_data_table` to base itself on. Adding a version argument here would
25
25
  * invent a check the route does not make.
26
26
  *
27
- * **2. Which tools a table yields.** A published table mints its own CRUD tools,
27
+ * **2. Reading the rows without reading the whole table.** `read_data_table`
28
+ * answers with the table AND every row it holds, which is right for a library
29
+ * element and wrong for DATA: the reasoning that put `listPaging` on
30
+ * `list_data_tables` — a library grows by deliberate authoring, a tenant's
31
+ * reference data has no ceiling — applies harder one level down, where the rows
32
+ * are. `list_data_table_rows` (axonity-flow#1372) is the paged, filtered reader,
33
+ * and the filter runs over the WHOLE table before the page is cut, so a match
34
+ * below the window is still found.
35
+ *
36
+ * **3. Which tools a table yields.** A published table mints its own CRUD tools,
28
37
  * so granting an agent access to a table is ordinary tool granting rather than a
29
38
  * second permission vocabulary. Their names follow a convention, which used to
30
39
  * mean the only way to find them was to fetch the whole tool library and match
@@ -110,6 +119,46 @@ export function registerDataTableTools(server, client) {
110
119
  match_column: matchColumn,
111
120
  match_value: matchValue,
112
121
  }))));
122
+ server.tool("list_data_table_rows", "Read a table's rows ONE PAGE at a time, optionally filtered. Read-only. " +
123
+ "\n\nPREFER THIS OVER read_data_table WHEN YOU WANT THE CONTENT. " +
124
+ "read_data_table answers with the table and ALL of its rows, which is " +
125
+ "fine for a small lookup table and is not what a tenant's reference data " +
126
+ "looks like — thousands of rows arrive as one response nobody asked for. " +
127
+ "\n\nTHE RESPONSE IS ONE PAGE: { items, nextCursor, pageSize, hasMore }. " +
128
+ "Each item is `{ cells }`, keyed by column name exactly as the table " +
129
+ "stores them — not reshaped, because you are looking at the author's own " +
130
+ "data. While hasMore is true you have NOT seen every row; pass nextCursor " +
131
+ "back as cursor and repeat until it is null. " +
132
+ "\n\nFILTER RATHER THAN WALK: `q` matches any cell containing that text " +
133
+ "and is applied to the whole table before the page is cut, so \"is there " +
134
+ "a row for X\" is one call. " +
135
+ "\n\nA CURSOR GOES STALE ON PURPOSE. It carries a fingerprint of the " +
136
+ "table's version and your filter, so a table edited while you were " +
137
+ "paging REFUSES the cursor with a 422 instead of quietly continuing " +
138
+ "through a different set of rows. Start again from the first page — that " +
139
+ "is the correct response, not an error to work around.", {
140
+ tableId: z.string().describe("The table's id."),
141
+ q: z
142
+ .string()
143
+ .optional()
144
+ .describe("Keep only rows with a cell containing this text. Applied across " +
145
+ "the whole table, not just the page you are on."),
146
+ limit: z
147
+ .number()
148
+ .int()
149
+ .optional()
150
+ .describe("Page size. Defaults to 20, clamped to 200 — asking for more is not " +
151
+ "an error and does not get you more."),
152
+ cursor: z
153
+ .string()
154
+ .optional()
155
+ .describe("Opaque continuation cursor from the previous response's " +
156
+ "nextCursor. Omit for the first page. Do not parse or construct " +
157
+ "one, and do not reuse one from before the table changed."),
158
+ }, async ({ tableId, q, limit, cursor }) => guard(async () =>
159
+ // The page envelope is forwarded WHOLE — unwrapping to `items` would
160
+ // rebuild the silent truncation this tool exists to avoid.
161
+ jsonResult(await client.get(`${BASE}/${tableId}/rows`, { q, limit, cursor }))));
113
162
  server.tool("list_data_table_tools", "Which tools this table yields, and which of them a RUN can actually " +
114
163
  "reach. Read-only. " +
115
164
  "\n\nA published table mints its own CRUD tools, so giving an agent " +
@@ -1 +1 @@
1
- {"version":3,"file":"dataTables.js","sourceRoot":"","sources":["../../src/tools/dataTables.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,IAAI,GAAG,qBAAqB,CAAC;AAEn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A0D,CAC7D;KACJ,EACD,KAAK,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CACtC,KAAK,CAAC,KAAK,IAAI,EAAE;IACf,qEAAqE;IACrE,2DAA2D;IAC3D,UAAU,CACR,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,IAAI,OAAO,OAAO,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAClE,CACF,CACJ,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,uBAAuB,EACvB,sEAAsE;QACpE,oBAAoB;QACpB,qEAAqE;QACrE,yEAAyE;QACzE,oEAAoE;QACpE,qEAAqE;QACrE,0EAA0E;QAC1E,2DAA2D;QAC3D,mEAAmE;QACnE,sEAAsE;QACtE,wEAAwE;QACxE,wEAAwE;QACxE,4DAA4D;QAC5D,mEAAmE;QACnE,qCAAqC,EACvC,EAAE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,EAC9C,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CACf,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,UAAU,CAAC,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,CACzE,CAAC;AACJ,CAAC"}
@@ -135,20 +135,91 @@ export function registerTriggerTools(server, client) {
135
135
  return jsonResult({ deleted: true, scheduleId });
136
136
  }));
137
137
  // ---- Conditional triggers ---------------------------------------------
138
- server.tool("list_conditional_triggers", "List a workflow's conditional triggers — an agent evaluates a condition " +
139
- "on an interval and starts the workflow when it holds.", { workflowId: z.string().describe("The workflow's id.") }, async ({ workflowId }) => guard(async () => jsonResult(await client.get(`/api/v1/workflows/${workflowId}/conditional-triggers`))));
140
- server.tool("create_conditional_trigger", "Create a conditional trigger on a workflow: an agent checks `conditionText` " +
141
- "every `repeatIntervalMinutes` and fires the workflow when it is met.", {
138
+ /**
139
+ * The condition CHECK (axonity-flow#1354/#1356/#1363).
140
+ *
141
+ * A conditional trigger wakes on its interval; the check decides whether that
142
+ * beat becomes a run at all. It is a gate in the dispatch loop, ahead of the
143
+ * run being created — so a miss costs one tool call instead of a whole empty
144
+ * run, and the next beat is planted as usual.
145
+ *
146
+ * WITHOUT A CHECK (`checkKind: null`) EVERY BEAT STARTS THE WORKFLOW. That is
147
+ * what every trigger authored before this did, and it is why a mailbox on a
148
+ * fifteen-minute interval produces ninety-six empty runs a day.
149
+ *
150
+ * Both fields are FORWARDED, NOT VALIDATED HERE. The backend judges a check
151
+ * with the same function the dispatcher uses when the trigger fires
152
+ * (`validate_check`), so a setting that saves is a setting that runs. A second
153
+ * list of rules in this connector would drift from that one, and the drift is
154
+ * the invisible kind: something passes here and fails at three in the morning,
155
+ * on the beat it was supposed to catch. So a bad `op`, a missing `toolId` or a
156
+ * kind the backend will not accept comes back as its 422 — which names what to
157
+ * fix — rather than as a Zod error phrased by us.
158
+ *
159
+ * That is also why the operators are described rather than listed. They are
160
+ * the decision-rule vocabulary, which no route serves and which this
161
+ * repository has been burned by hand-keeping before (#32): the refusal names
162
+ * the usable set, and a list here could only ever go stale against it.
163
+ */
164
+ const CHECK_KIND_DESCRIPTION = 'How this start decides. Omit to leave it as it is. `"automatic"` runs ONE ' +
165
+ "tool and holds its answer against one rule — no model, so it is the cheap " +
166
+ "way to ask \"is there anything there?\". `\"agent\"` is reserved for a " +
167
+ "model judging the condition; the backend REFUSES it today because that " +
168
+ "judgement is not built yet, and says so. With no check at all the workflow " +
169
+ "starts EVERY beat.";
170
+ const CHECK_CONFIG_DESCRIPTION = "The check's settings, shaped by `checkKind`. For `automatic`: " +
171
+ '`{ toolId, inputs?, rule: { field, op, value } }` — `toolId` is the tool ' +
172
+ "that looks, `inputs` is what it is called with, and `rule` says which " +
173
+ "field OF THE TOOL'S ANSWER counts, how it is compared, and to what. The " +
174
+ "comparisons are the same ones a decision rule uses; send a wrong one and " +
175
+ "the refusal names the usable set. " +
176
+ "\n\nA rule naming a field the tool never returns is a FAULT, not a " +
177
+ 'quiet "condition not met" — the trigger reports a broken setup rather ' +
178
+ "than silently never firing.";
179
+ server.tool("list_conditional_triggers", "List a workflow's conditional triggers — a start that wakes on an " +
180
+ "interval and decides whether there is anything to do. " +
181
+ "\n\nREAD `checkKind` ON EACH ROW: `null` means the trigger has no check " +
182
+ "and every beat becomes a run, whether or not there was work. " +
183
+ "`\"automatic\"` means one tool call decides. `checkConfig` carries that " +
184
+ "setting. Set them with create_/update_conditional_trigger.", { workflowId: z.string().describe("The workflow's id.") }, async ({ workflowId }) => guard(async () => jsonResult(await client.get(`/api/v1/workflows/${workflowId}/conditional-triggers`))));
185
+ server.tool("list_tenant_conditional_triggers", "Every conditional start in the TENANT, not one workflow's — the answer to " +
186
+ "\"what is scheduled to run here at all\", which list_conditional_triggers " +
187
+ "cannot give you without walking every workflow. Read-only. " +
188
+ "\n\nEach row names the workflow it starts, so a tenant-wide list is " +
189
+ "readable, and DISABLED triggers are included on purpose: a schedule " +
190
+ "somebody switched off is the one you go looking for to switch back on. " +
191
+ "\n\nREAD `pendingTasks`. It should be 1. More than one means the " +
192
+ "schedule FORKED and the workflow is starting several times an interval " +
193
+ "— a fault that otherwise shows up only as a surprising number of runs. " +
194
+ "`nextScheduledFor` says when the next beat is due, and " +
195
+ "`schedulePausedAt` is set when the whole workflow's schedule is paused, " +
196
+ "which makes a trigger that looks enabled do nothing. " +
197
+ "\n\nRicher rows than list_conditional_triggers, which answers with the " +
198
+ "trigger records themselves — use that one when you are editing a " +
199
+ "specific workflow's starts.", {}, async () => guard(async () => jsonResult(await client.get("/api/v1/conditional-triggers"))));
200
+ server.tool("create_conditional_trigger", "Create a conditional trigger on a workflow: it wakes every " +
201
+ "`repeatIntervalMinutes` and starts the workflow when there is something " +
202
+ "to do. " +
203
+ "\n\nSET `checkKind` UNLESS YOU MEAN EVERY BEAT TO START A RUN. Without " +
204
+ "it the trigger has no check and fires on the interval regardless — a " +
205
+ "mailbox at fifteen minutes then makes ninety-six empty runs a day. " +
206
+ '`checkKind: "automatic"` with a `checkConfig` is one tool call and one ' +
207
+ "rule, no model, deciding before a run exists.", {
142
208
  workflowId: z.string().describe("The workflow's id."),
143
209
  triggerId: z
144
210
  .string()
145
211
  .describe("The id of the trigger node in the workflow document."),
146
- agentId: z.string().describe("The agent that evaluates the condition."),
212
+ agentId: z
213
+ .string()
214
+ .describe("The agent this start belongs to. Note it is NOT what decides " +
215
+ "whether the beat fires — `checkKind` is."),
147
216
  conditionText: z
148
217
  .string()
149
218
  .min(1)
150
219
  .max(2000)
151
- .describe("The condition, in plain language."),
220
+ .describe("The condition, in plain language: what a person would say this " +
221
+ "start is waiting for. It records the intent; `checkKind` is what " +
222
+ "actually judges it."),
152
223
  repeatIntervalMinutes: z
153
224
  .number()
154
225
  .int()
@@ -156,20 +227,39 @@ export function registerTriggerTools(server, client) {
156
227
  .max(10080)
157
228
  .describe("How often to re-check, in minutes (5 to 10080)."),
158
229
  enabled: z.boolean().optional().describe("Defaults to true."),
159
- }, async ({ workflowId, triggerId, agentId, conditionText, repeatIntervalMinutes, enabled }) => guard(async () => jsonResult(await client.post(`/api/v1/workflows/${workflowId}/conditional-triggers`, {
230
+ checkKind: z.string().optional().describe(CHECK_KIND_DESCRIPTION),
231
+ checkConfig: z.record(z.unknown()).optional().describe(CHECK_CONFIG_DESCRIPTION),
232
+ }, async ({ workflowId, triggerId, agentId, conditionText, repeatIntervalMinutes, enabled, checkKind, checkConfig, }) => guard(async () => jsonResult(await client.post(`/api/v1/workflows/${workflowId}/conditional-triggers`, {
160
233
  triggerId,
161
234
  agentId,
162
235
  conditionText,
163
236
  repeatIntervalMinutes,
164
237
  ...(enabled === undefined ? {} : { enabled }),
238
+ ...(checkKind === undefined ? {} : { checkKind }),
239
+ ...(checkConfig === undefined ? {} : { checkConfig }),
165
240
  }))));
166
- server.tool("update_conditional_trigger", "Change a conditional trigger's condition, interval, agent, or enabled flag. " +
167
- "Send only what you are changing.", {
241
+ server.tool("update_conditional_trigger", "Change a conditional trigger's condition, interval, agent, enabled flag, " +
242
+ "or its CHECK. Send only what you are changing — an omitted field is " +
243
+ "left as it was. " +
244
+ "\n\nTHIS IS HOW YOU PUT A CHECK ON AN EXISTING START: pass `checkKind` " +
245
+ "and `checkConfig` together. An existing trigger has no check (that is " +
246
+ "what everything authored before checks existed looks like), so it fires " +
247
+ "every beat until you set one. " +
248
+ '\n\nTO CLEAR A CHECK, PASS `checkKind: ""` — the empty string, which ' +
249
+ "means \"start every beat again\" and drops the config with it. Omitting " +
250
+ "the field leaves the check standing; only the empty string removes it. " +
251
+ "Without that distinction a check could be switched on and never off.", {
168
252
  triggerId: z.string().describe("The conditional trigger's id."),
169
253
  conditionText: z.string().min(1).max(2000).optional(),
170
254
  repeatIntervalMinutes: z.number().int().min(5).max(10080).optional(),
171
255
  agentId: z.string().optional(),
172
256
  enabled: z.boolean().optional(),
257
+ checkKind: z
258
+ .string()
259
+ .optional()
260
+ .describe(`${CHECK_KIND_DESCRIPTION} Pass "" (empty string) to CLEAR the ` +
261
+ "check, which is a different intention from omitting the field."),
262
+ checkConfig: z.record(z.unknown()).optional().describe(CHECK_CONFIG_DESCRIPTION),
173
263
  }, async ({ triggerId, ...fields }) => guard(async () => {
174
264
  const body = Object.fromEntries(Object.entries(fields).filter(([, v]) => v !== undefined));
175
265
  return jsonResult(await client.patch(`/api/v1/conditional-triggers/${triggerId}`, body));
@@ -1 +1 @@
1
- {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../src/tools/triggers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEhD,+EAA+E;AAC/E,MAAM,OAAO,GAAG,CAAC;KACd,OAAO,CAAC,IAAI,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AAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,CAAC,CAC1D,CAAC;QACF,OAAO,UAAU,CACf,MAAM,MAAM,CAAC,KAAK,CAAC,gCAAgC,SAAS,EAAE,EAAE,IAAI,CAAC,CACtE,CAAC;IACJ,CAAC,CAAC,CACL,CAAC;IAEF,MAAM,CAAC,IAAI,CACT,4BAA4B,EAC5B,4EAA4E;QAC1E,cAAc,EAChB;QACE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;QAC/D,OAAO,EAAE,OAAO;KACjB,EACD,KAAK,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,CACtB,KAAK,CAAC,KAAK,IAAI,EAAE;QACf,MAAM,MAAM,CAAC,GAAG,CAAC,gCAAgC,SAAS,EAAE,CAAC,CAAC;QAC9D,OAAO,UAAU,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IAClD,CAAC,CAAC,CACL,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axonity-ai/mcp",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "Model Context Protocol server for Axonity Flow — lets an external agent (e.g. Claude Code) read, draft, and update workflows, agents and tools in an Axonity tenant.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,6 +40,9 @@
40
40
  "test:watch": "vitest",
41
41
  "check:contract": "node scripts/check-contract-drift.mjs --flow \"${AXONITY_FLOW_PATH:-../axonity-flow}\"",
42
42
  "generate:filters": "node scripts/generate-list-filters.mjs",
43
+ "release:patch": "bash scripts/release.sh patch",
44
+ "release:minor": "bash scripts/release.sh minor",
45
+ "release:major": "bash scripts/release.sh major",
43
46
  "prepublishOnly": "npm run build"
44
47
  },
45
48
  "dependencies": {