@talonic/mcp 0.1.101 → 0.1.103

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/dist/server.js CHANGED
@@ -3681,9 +3681,9 @@ var readOnly = {
3681
3681
  idempotentHint: true,
3682
3682
  openWorldHint: false
3683
3683
  };
3684
- var write = (idempotent, destructive = false) => ({
3684
+ var write = (idempotent, destructive2 = false) => ({
3685
3685
  readOnlyHint: false,
3686
- destructiveHint: destructive,
3686
+ destructiveHint: destructive2,
3687
3687
  idempotentHint: idempotent,
3688
3688
  openWorldHint: false
3689
3689
  });
@@ -4197,9 +4197,9 @@ var readOnly2 = {
4197
4197
  idempotentHint: true,
4198
4198
  openWorldHint: false
4199
4199
  };
4200
- var write2 = (idempotent, destructive = false) => ({
4200
+ var write2 = (idempotent, destructive2 = false) => ({
4201
4201
  readOnlyHint: false,
4202
- destructiveHint: destructive,
4202
+ destructiveHint: destructive2,
4203
4203
  idempotentHint: idempotent,
4204
4204
  openWorldHint: false
4205
4205
  });
@@ -4438,9 +4438,9 @@ var readOnly3 = {
4438
4438
  idempotentHint: true,
4439
4439
  openWorldHint: false
4440
4440
  };
4441
- var write3 = (idempotent, destructive = false) => ({
4441
+ var write3 = (idempotent, destructive2 = false) => ({
4442
4442
  readOnlyHint: false,
4443
- destructiveHint: destructive,
4443
+ destructiveHint: destructive2,
4444
4444
  idempotentHint: idempotent,
4445
4445
  openWorldHint: false
4446
4446
  });
@@ -5156,9 +5156,9 @@ var readOnly4 = {
5156
5156
  idempotentHint: true,
5157
5157
  openWorldHint: false
5158
5158
  };
5159
- var write4 = (idempotent, destructive = false) => ({
5159
+ var write4 = (idempotent, destructive2 = false) => ({
5160
5160
  readOnlyHint: false,
5161
- destructiveHint: destructive,
5161
+ destructiveHint: destructive2,
5162
5162
  idempotentHint: idempotent,
5163
5163
  openWorldHint: false
5164
5164
  });
@@ -5798,9 +5798,414 @@ var readOnly6 = {
5798
5798
  idempotentHint: true,
5799
5799
  openWorldHint: false
5800
5800
  };
5801
- var write6 = (idempotent, destructive = false) => ({
5801
+ var write6 = {
5802
5802
  readOnlyHint: false,
5803
- destructiveHint: destructive,
5803
+ destructiveHint: false,
5804
+ idempotentHint: false,
5805
+ openWorldHint: false
5806
+ };
5807
+ var destructive = {
5808
+ readOnlyHint: false,
5809
+ destructiveHint: true,
5810
+ idempotentHint: false,
5811
+ openWorldHint: false
5812
+ };
5813
+ var BASE = "/v1/processes";
5814
+ var pid = (a) => encodeURIComponent(a.process_id);
5815
+ async function probeProcessesAccess(token, baseUrl) {
5816
+ try {
5817
+ const res = await fetch(buildUrl(baseUrl, "/v1/processes"), {
5818
+ headers: { Authorization: `Bearer ${token}`, Accept: "application/json" },
5819
+ signal: AbortSignal.timeout(5e3)
5820
+ });
5821
+ return res.ok;
5822
+ } catch {
5823
+ return false;
5824
+ }
5825
+ }
5826
+ var LIST_DESCRIPTION2 = "List the workspace's processes: name, live version (null = draft only), folder, tags and number of steps. Start here; use the id with the other talonic_process_* tools.";
5827
+ var RUN_DESCRIPTION = `Start a published process for one item with values by field name, e.g. {"Vendor": "Acme", "Amount": 1200}. Only for processes whose items are posted (started by hand, by another system or by a form). Returns the run id, and the process's reply when it has a reply step. Starting a process can send mail, call other systems and ask people to sign: call only when the user asks for it.`;
5828
+ var STATUS_DESCRIPTION4 = "Where a process run stands: per step, how many items are waiting, done or failed, and each item's state. Without run_id, the latest run.";
5829
+ var RUNS_DESCRIPTION2 = "Runs across all processes, newest first: state (running, completed, failed, stuck = open with a failed item), items done, waiting and failed. Filter by process or by runs waiting for the caller.";
5830
+ var WAITING_DESCRIPTION = "Sign-offs and forms waiting for the caller (the person behind the key): per process and step, how many items wait. Use talonic_process_status to see the items, then talonic_process_sign.";
5831
+ var SIGN_DESCRIPTION = "Sign a sign-off step of a run for the caller: approve all waiting items, or only `items`. A step that offers choices needs `decision` (one of its choices). Allowed only where the caller is assigned to the step. Signing moves real work on: call only when the user decides.";
5832
+ var GET_DESCRIPTION2 = "One process with its draft: fields, steps (id, kind, name, settings) and the arrows between them. Use it to see step ids before talonic_process_change with step_id, or to read what a process does.";
5833
+ var CREATE_DESCRIPTION2 = "Set up a new process as a DRAFT. Pass `description` in the user's own words (what comes in, what is read or checked, who decides, what goes out), or `workflow_json` with an exported n8n workflow to take it over. Nothing runs and nothing is sent until talonic_process_publish. The answer names what a person still has to choose (`stillOpen`, `questions`): tell the user those. Uses a model call for `description`.";
5834
+ var CHANGE_DESCRIPTION = "Change a process draft from an instruction in plain words: add, remove or reorder steps, change who decides, what is sent, any setting. With `step_id` only that step's settings change. Touches the draft only; the live version stays until talonic_process_publish. If the answer is `needs_confirmation`, NOTHING was saved: the change means fewer people or checks look at items. Tell the user exactly those points and ask; call again with `confirmed: true` only after they said yes, never on a first call.";
5835
+ var CHECK_DESCRIPTION = "What a draft still needs before it can go live (`stillNeeded`, per step), every problem the check finds, and what publishing would change against the live version. Call before talonic_process_publish and tell the user what is open.";
5836
+ var TEST_RUN_DESCRIPTION = "Run the DRAFT on real documents in a test copy: nothing is delivered, emailed or called. Steps not set up yet end the test (`endsAt`). Returns `processId` of the test copy and `runId`; follow with talonic_process_status on that processId.";
5837
+ var PUBLISH_DESCRIPTION = "Make the draft the LIVE version. From then on the process runs for real: it starts on what its start says (arriving documents, mail, another system), sends its mail and calls its systems. Refused while talonic_process_check finds an error. Call only when the user said to publish; show them talonic_process_check first.";
5838
+ var VERSIONS_DESCRIPTION = "The published versions of a process, newest first, with who published and why.";
5839
+ var ROLLBACK_DESCRIPTION = "Make an earlier published version live again. Changes what runs for real: call only when the user asks for it.";
5840
+ var DELETE_DESCRIPTION2 = "Delete a process. Not possible while a run is open. Cannot be undone: call only when the user asked to delete this process by name.";
5841
+ var ITEM_DESCRIPTION = "One item's way through a run, step by step (status, time, note such as why it stopped or where a mail went), and its values now. Item keys come from talonic_process_status.";
5842
+ var RETRY_DESCRIPTION = "Try every failed step of a run again. Steps that send or call will send or call again: use when the cause of the failure is fixed.";
5843
+ var SEND_BACK_DESCRIPTION = "Send items back from a sign-off step with a reason, for the caller: the opposite of talonic_process_sign. Allowed only where the caller is assigned. Moves real work: call only when the user decides.";
5844
+ var SETUP_DESCRIPTION = "What processes of this workspace can use: who a step can wait for (roles, groups), the connected mailboxes and whether each may send, the names of stored secrets (never values), and the shared data a look-up step can read. Connecting a mailbox and storing a secret happen in the Talonic web app, not here.";
5845
+ var MAILBOX_OWNERSHIP_DESCRIPTION = "Say whether a connected mailbox is one person's own (`individual`: only that person may put it on a process) or the company's (`company`: everyone who builds processes may). A governance decision: call only when the user asks.";
5846
+ var ADDRESS_DESCRIPTION = "The address other systems send items to (a webhook). Without `make` it only says whether one exists; the address itself is shown once, when made. With `make: true` it makes one and returns `path` to post to. An existing address is replaced only with `replace: true`: the old one stops working AT ONCE and whatever sends to it stops getting through, so ask the user first. `test: true` is the address of the test copy.";
5847
+ function registerProcessesTools(server, getToken, baseUrl) {
5848
+ const tools = [
5849
+ [
5850
+ "talonic_process_list",
5851
+ "Processes",
5852
+ LIST_DESCRIPTION2,
5853
+ {},
5854
+ readOnly6,
5855
+ () => runTool(() => apiJson(getToken, baseUrl, "GET", "/v1/processes"))
5856
+ ],
5857
+ [
5858
+ "talonic_process_run",
5859
+ "Start a process for one item",
5860
+ RUN_DESCRIPTION,
5861
+ {
5862
+ process_id: zUuid().describe("The process id from talonic_process_list"),
5863
+ values: z.record(z.string(), z.unknown()).describe("Values by field name")
5864
+ },
5865
+ write6,
5866
+ (a) => runTool(
5867
+ () => apiJson(
5868
+ getToken,
5869
+ baseUrl,
5870
+ "POST",
5871
+ `/v1/processes/${encodeURIComponent(a.process_id)}/items`,
5872
+ { body: { values: a.values ?? {} } }
5873
+ )
5874
+ )
5875
+ ],
5876
+ [
5877
+ "talonic_process_status",
5878
+ "Process run status",
5879
+ STATUS_DESCRIPTION4,
5880
+ {
5881
+ process_id: zUuid().describe("The process id"),
5882
+ run_id: zUuid().optional().describe("A run id; default the latest run")
5883
+ },
5884
+ readOnly6,
5885
+ async (a) => runTool(async () => {
5886
+ const q = a.run_id ? `?run=${encodeURIComponent(a.run_id)}` : "";
5887
+ const id = encodeURIComponent(a.process_id);
5888
+ const [status3, items] = await Promise.all([
5889
+ apiJson(getToken, baseUrl, "GET", `/v1/processes/${id}/status${q}`),
5890
+ apiJson(getToken, baseUrl, "GET", `/v1/processes/${id}/items${q}`)
5891
+ ]);
5892
+ return { status: status3, items };
5893
+ })
5894
+ ],
5895
+ [
5896
+ "talonic_process_runs",
5897
+ "Process runs",
5898
+ RUNS_DESCRIPTION2,
5899
+ {
5900
+ state: z.enum(["running", "completed", "failed", "stuck"]).optional(),
5901
+ process_id: zUuid().optional(),
5902
+ waiting_for_me: z.boolean().optional(),
5903
+ page: z.number().int().min(0).optional()
5904
+ },
5905
+ readOnly6,
5906
+ (a) => {
5907
+ const q = new URLSearchParams();
5908
+ if (a.state) q.set("state", a.state);
5909
+ if (a.process_id) q.set("process", a.process_id);
5910
+ if (a.waiting_for_me) q.set("waitingForMe", "1");
5911
+ if (a.page) q.set("page", String(a.page));
5912
+ const qs = q.toString();
5913
+ return runTool(
5914
+ () => apiJson(getToken, baseUrl, "GET", `/v1/processes/runs${qs ? `?${qs}` : ""}`)
5915
+ );
5916
+ }
5917
+ ],
5918
+ [
5919
+ "talonic_process_waiting_for_me",
5920
+ "Waiting for me",
5921
+ WAITING_DESCRIPTION,
5922
+ {},
5923
+ readOnly6,
5924
+ () => runTool(() => apiJson(getToken, baseUrl, "GET", "/v1/processes/waiting"))
5925
+ ],
5926
+ [
5927
+ "talonic_process_sign",
5928
+ "Sign a process step",
5929
+ SIGN_DESCRIPTION,
5930
+ {
5931
+ process_id: zUuid(),
5932
+ run_id: zUuid(),
5933
+ step_id: z.string().min(1).max(64).describe("The sign-off step's id (stepId from talonic_process_waiting_for_me)"),
5934
+ items: z.array(z.string().min(1).max(200)).max(200).optional().describe("Item keys; default every waiting item"),
5935
+ decision: z.string().min(1).max(60).optional().describe("One of the step's choices, when it offers any")
5936
+ },
5937
+ write6,
5938
+ (a) => runTool(
5939
+ () => apiJson(
5940
+ getToken,
5941
+ baseUrl,
5942
+ "POST",
5943
+ `/v1/processes/${encodeURIComponent(a.process_id)}/runs/${encodeURIComponent(a.run_id)}/holds/${encodeURIComponent(a.step_id)}/release`,
5944
+ {
5945
+ body: {
5946
+ ...a.items ? { items: a.items } : {},
5947
+ ...a.decision ? { decision: a.decision } : {}
5948
+ }
5949
+ }
5950
+ )
5951
+ )
5952
+ ],
5953
+ [
5954
+ "talonic_process_get",
5955
+ "One process",
5956
+ GET_DESCRIPTION2,
5957
+ { process_id: zUuid().describe("The process id from talonic_process_list") },
5958
+ readOnly6,
5959
+ (a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}`))
5960
+ ],
5961
+ [
5962
+ "talonic_process_create",
5963
+ "New process draft",
5964
+ CREATE_DESCRIPTION2,
5965
+ {
5966
+ description: z.string().min(10).max(2e3).optional().describe("What the process should do, complete and in the user's words"),
5967
+ workflow_json: z.string().min(2).max(4e5).optional().describe("An exported n8n workflow as JSON text, instead of description")
5968
+ },
5969
+ write6,
5970
+ (a) => runTool(() => {
5971
+ if (a.workflow_json) {
5972
+ let workflow;
5973
+ try {
5974
+ workflow = JSON.parse(a.workflow_json);
5975
+ } catch {
5976
+ throw new Error("workflow_json is not valid JSON.");
5977
+ }
5978
+ return apiJson(getToken, baseUrl, "POST", BASE, { body: { workflow } });
5979
+ }
5980
+ if (!a.description) throw new Error("Pass description or workflow_json.");
5981
+ return apiJson(getToken, baseUrl, "POST", BASE, { body: { description: a.description } });
5982
+ })
5983
+ ],
5984
+ [
5985
+ "talonic_process_change",
5986
+ "Change a process draft",
5987
+ CHANGE_DESCRIPTION,
5988
+ {
5989
+ process_id: zUuid(),
5990
+ change: z.string().min(1).max(2e3).describe("What should change, in plain words"),
5991
+ step_id: z.string().min(1).max(80).optional().describe("Only this step's settings (id from talonic_process_get)"),
5992
+ confirmed: z.boolean().optional().describe(
5993
+ "Leave out. true only after needs_confirmation was shown to the user and they agreed"
5994
+ )
5995
+ },
5996
+ write6,
5997
+ (a) => runTool(
5998
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/change`, {
5999
+ body: {
6000
+ change: a.change,
6001
+ ...a.step_id ? { stepId: a.step_id } : {},
6002
+ ...a.confirmed === true ? { confirmed: true } : {}
6003
+ }
6004
+ })
6005
+ )
6006
+ ],
6007
+ [
6008
+ "talonic_process_check",
6009
+ "Check a process draft",
6010
+ CHECK_DESCRIPTION,
6011
+ { process_id: zUuid() },
6012
+ readOnly6,
6013
+ async (a) => runTool(async () => {
6014
+ const [check, changes] = await Promise.all([
6015
+ apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/check`),
6016
+ apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/changes`)
6017
+ ]);
6018
+ return { check, changes };
6019
+ })
6020
+ ],
6021
+ [
6022
+ "talonic_process_test_run",
6023
+ "Test a process draft",
6024
+ TEST_RUN_DESCRIPTION,
6025
+ {
6026
+ process_id: zUuid(),
6027
+ document_ids: z.array(zUuid()).min(1).max(100).describe("Documents to run the draft on")
6028
+ },
6029
+ write6,
6030
+ (a) => runTool(
6031
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/test-run`, {
6032
+ body: { documentIds: a.document_ids }
6033
+ })
6034
+ )
6035
+ ],
6036
+ [
6037
+ "talonic_process_publish",
6038
+ "Publish a process",
6039
+ PUBLISH_DESCRIPTION,
6040
+ {
6041
+ process_id: zUuid(),
6042
+ reason: z.string().max(2e3).optional().describe("Why this change, for the record")
6043
+ },
6044
+ destructive,
6045
+ (a) => runTool(
6046
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/publish`, {
6047
+ body: a.reason ? { reason: a.reason } : {}
6048
+ })
6049
+ )
6050
+ ],
6051
+ [
6052
+ "talonic_process_versions",
6053
+ "Process versions",
6054
+ VERSIONS_DESCRIPTION,
6055
+ { process_id: zUuid() },
6056
+ readOnly6,
6057
+ (a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/versions`))
6058
+ ],
6059
+ [
6060
+ "talonic_process_rollback",
6061
+ "Roll a process back",
6062
+ ROLLBACK_DESCRIPTION,
6063
+ {
6064
+ process_id: zUuid(),
6065
+ version: z.number().int().min(1).describe("The version number to make live again")
6066
+ },
6067
+ destructive,
6068
+ (a) => runTool(
6069
+ () => apiJson(
6070
+ getToken,
6071
+ baseUrl,
6072
+ "POST",
6073
+ `${BASE}/${pid(a)}/versions/${encodeURIComponent(String(a.version))}/rollback`
6074
+ )
6075
+ )
6076
+ ],
6077
+ [
6078
+ "talonic_process_delete",
6079
+ "Delete a process",
6080
+ DELETE_DESCRIPTION2,
6081
+ { process_id: zUuid() },
6082
+ destructive,
6083
+ (a) => runTool(() => apiJson(getToken, baseUrl, "DELETE", `${BASE}/${pid(a)}`))
6084
+ ],
6085
+ [
6086
+ "talonic_process_item",
6087
+ "One item of a run",
6088
+ ITEM_DESCRIPTION,
6089
+ {
6090
+ process_id: zUuid(),
6091
+ run_id: zUuid(),
6092
+ item_key: z.string().min(1).max(200).describe("The item's key (documentId) from the run")
6093
+ },
6094
+ readOnly6,
6095
+ (a) => runTool(
6096
+ () => apiJson(
6097
+ getToken,
6098
+ baseUrl,
6099
+ "GET",
6100
+ `${BASE}/${pid(a)}/runs/${encodeURIComponent(a.run_id)}/items/${encodeURIComponent(a.item_key)}`
6101
+ )
6102
+ )
6103
+ ],
6104
+ [
6105
+ "talonic_process_retry",
6106
+ "Retry a run's failed steps",
6107
+ RETRY_DESCRIPTION,
6108
+ { run_id: zUuid() },
6109
+ write6,
6110
+ (a) => runTool(
6111
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/runs/${encodeURIComponent(a.run_id)}/retry`)
6112
+ )
6113
+ ],
6114
+ [
6115
+ "talonic_process_send_back",
6116
+ "Send items back from a sign-off",
6117
+ SEND_BACK_DESCRIPTION,
6118
+ {
6119
+ process_id: zUuid(),
6120
+ run_id: zUuid(),
6121
+ step_id: z.string().min(1).max(64),
6122
+ items: z.array(z.string().min(1).max(200)).min(1).max(200).describe("Item keys"),
6123
+ reason: z.string().min(1).max(2e3).describe("Why they go back, in the user's words")
6124
+ },
6125
+ write6,
6126
+ (a) => runTool(
6127
+ () => apiJson(
6128
+ getToken,
6129
+ baseUrl,
6130
+ "POST",
6131
+ `${BASE}/${pid(a)}/runs/${encodeURIComponent(a.run_id)}/holds/${encodeURIComponent(a.step_id)}/send-back`,
6132
+ { body: { items: a.items, reason: a.reason } }
6133
+ )
6134
+ )
6135
+ ],
6136
+ [
6137
+ "talonic_process_setup",
6138
+ "What processes can use",
6139
+ SETUP_DESCRIPTION,
6140
+ {},
6141
+ readOnly6,
6142
+ async () => runTool(async () => {
6143
+ const [people, mailboxes, secrets, lookupData] = await Promise.all([
6144
+ apiJson(getToken, baseUrl, "GET", `${BASE}/people`),
6145
+ apiJson(getToken, baseUrl, "GET", `${BASE}/mailboxes`),
6146
+ apiJson(getToken, baseUrl, "GET", `${BASE}/secrets`),
6147
+ apiJson(getToken, baseUrl, "GET", `${BASE}/lookup-data`)
6148
+ ]);
6149
+ return { people, mailboxes, secrets, lookupData };
6150
+ })
6151
+ ],
6152
+ [
6153
+ "talonic_process_mailbox_ownership",
6154
+ "Say whose a mailbox is",
6155
+ MAILBOX_OWNERSHIP_DESCRIPTION,
6156
+ {
6157
+ mailbox_id: zUuid().describe("The mailbox id from talonic_process_setup"),
6158
+ ownership: z.enum(["individual", "company"])
6159
+ },
6160
+ write6,
6161
+ (a) => runTool(
6162
+ () => apiJson(
6163
+ getToken,
6164
+ baseUrl,
6165
+ "PUT",
6166
+ `${BASE}/mailboxes/${encodeURIComponent(a.mailbox_id)}/ownership`,
6167
+ { body: { ownership: a.ownership } }
6168
+ )
6169
+ )
6170
+ ],
6171
+ [
6172
+ "talonic_process_address",
6173
+ "A process's address for other systems",
6174
+ ADDRESS_DESCRIPTION,
6175
+ {
6176
+ process_id: zUuid(),
6177
+ make: z.boolean().optional().describe("true: make the address. Default: only say whether one exists"),
6178
+ test: z.boolean().optional().describe("The address of the test copy"),
6179
+ replace: z.boolean().optional().describe("true only after the user agreed to switch the existing address off")
6180
+ },
6181
+ destructive,
6182
+ (a) => runTool(
6183
+ () => a.make === true ? apiJson(getToken, baseUrl, "PUT", `${BASE}/${pid(a)}/address`, {
6184
+ body: {
6185
+ ...a.test === true ? { test: true } : {},
6186
+ ...a.replace === true ? { replace: true } : {}
6187
+ }
6188
+ }) : apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/address`)
6189
+ )
6190
+ ]
6191
+ ];
6192
+ for (const [name, title, description, inputSchema11, annotations, handler] of tools) {
6193
+ server.registerTool(
6194
+ name,
6195
+ { title, description, inputSchema: inputSchema11, annotations: { title, ...annotations } },
6196
+ async (args) => handler(args)
6197
+ );
6198
+ }
6199
+ }
6200
+ var readOnly7 = {
6201
+ readOnlyHint: true,
6202
+ destructiveHint: false,
6203
+ idempotentHint: true,
6204
+ openWorldHint: false
6205
+ };
6206
+ var write7 = (idempotent, destructive2 = false) => ({
6207
+ readOnlyHint: false,
6208
+ destructiveHint: destructive2,
5804
6209
  idempotentHint: idempotent,
5805
6210
  openWorldHint: false
5806
6211
  });
@@ -5836,7 +6241,7 @@ function handleSaveConfig2(getToken, baseUrl, args) {
5836
6241
  })
5837
6242
  );
5838
6243
  }
5839
- var RUN_DESCRIPTION = [
6244
+ var RUN_DESCRIPTION2 = [
5840
6245
  "Resolve a domain now: read every configured source, match rows across systems, and replace the domain's golden records. Earlier accept / split decisions are kept. Deterministic; running it again on the same data gives the same records.",
5841
6246
  "USE WHEN: the sources changed, or the domain has never been resolved.",
5842
6247
  "NOT FOR: reading the result (talonic_master_records_overview).",
@@ -5965,7 +6370,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5965
6370
  "Read the Master Records configuration",
5966
6371
  CONFIG_DESCRIPTION2,
5967
6372
  {},
5968
- readOnly6,
6373
+ readOnly7,
5969
6374
  () => handleConfig2(getToken, baseUrl)
5970
6375
  ],
5971
6376
  [
@@ -5973,15 +6378,15 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5973
6378
  "Save the Master Records configuration",
5974
6379
  SAVE_CONFIG_DESCRIPTION2,
5975
6380
  saveConfigInputSchema2,
5976
- write6(true, true),
6381
+ write7(true, true),
5977
6382
  (a) => handleSaveConfig2(getToken, baseUrl, a)
5978
6383
  ],
5979
6384
  [
5980
6385
  "talonic_master_records_run",
5981
6386
  "Resolve master records",
5982
- RUN_DESCRIPTION,
6387
+ RUN_DESCRIPTION2,
5983
6388
  runInputSchema,
5984
- write6(true),
6389
+ write7(true),
5985
6390
  (a) => handleRun(getToken, baseUrl, a)
5986
6391
  ],
5987
6392
  [
@@ -5989,7 +6394,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5989
6394
  "Master records overview",
5990
6395
  OVERVIEW_DESCRIPTION2,
5991
6396
  overviewInputSchema,
5992
- readOnly6,
6397
+ readOnly7,
5993
6398
  (a) => handleOverview2(getToken, baseUrl, a)
5994
6399
  ],
5995
6400
  [
@@ -5997,7 +6402,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5997
6402
  "One golden record",
5998
6403
  RECORD_DESCRIPTION,
5999
6404
  recordInputSchema,
6000
- readOnly6,
6405
+ readOnly7,
6001
6406
  (a) => handleGetRecord(getToken, baseUrl, a)
6002
6407
  ],
6003
6408
  [
@@ -6005,7 +6410,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
6005
6410
  "Accept or split a golden record",
6006
6411
  DECIDE_DESCRIPTION2,
6007
6412
  decideInputSchema2,
6008
- write6(true),
6413
+ write7(true),
6009
6414
  (a) => handleDecide2(getToken, baseUrl, a)
6010
6415
  ],
6011
6416
  [
@@ -6013,7 +6418,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
6013
6418
  "Master data changes checked against documents",
6014
6419
  CHANGES_DESCRIPTION,
6015
6420
  changesInputSchema,
6016
- readOnly6,
6421
+ readOnly7,
6017
6422
  (a) => handleChanges(getToken, baseUrl, a)
6018
6423
  ],
6019
6424
  [
@@ -6021,7 +6426,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
6021
6426
  "Source id to golden record crosswalk",
6022
6427
  CROSSWALK_DESCRIPTION,
6023
6428
  crosswalkInputSchema,
6024
- readOnly6,
6429
+ readOnly7,
6025
6430
  (a) => handleCrosswalk(getToken, baseUrl, a)
6026
6431
  ]
6027
6432
  ];
@@ -6033,15 +6438,15 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
6033
6438
  );
6034
6439
  }
6035
6440
  }
6036
- var readOnly7 = {
6441
+ var readOnly8 = {
6037
6442
  readOnlyHint: true,
6038
6443
  destructiveHint: false,
6039
6444
  idempotentHint: true,
6040
6445
  openWorldHint: false
6041
6446
  };
6042
- var write7 = (idempotent, destructive = false) => ({
6447
+ var write8 = (idempotent, destructive2 = false) => ({
6043
6448
  readOnlyHint: false,
6044
- destructiveHint: destructive,
6449
+ destructiveHint: destructive2,
6045
6450
  idempotentHint: idempotent,
6046
6451
  openWorldHint: false
6047
6452
  });
@@ -6059,7 +6464,7 @@ var SPECS_DESCRIPTION = [
6059
6464
  function handleSpecs(getToken, baseUrl) {
6060
6465
  return runTool(() => apiJson(getToken, baseUrl, "GET", "/v1/submissions/specs"));
6061
6466
  }
6062
- var LIST_DESCRIPTION2 = [
6467
+ var LIST_DESCRIPTION3 = [
6063
6468
  "The inbox: every submission workbook of the workspace with its cedent, status (not_captured, captured, mapped, failed), captured values, facts and metrics under a target structure, and failed / warned checks.",
6064
6469
  'USE WHEN: the headline ("which submissions are in, which are mapped, which have problems") or finding a submission by file name.',
6065
6470
  "NOT FOR: what to fix (talonic_submissions_issues); the facts (talonic_submissions_export).",
@@ -6296,15 +6701,15 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6296
6701
  "Submission target structures",
6297
6702
  SPECS_DESCRIPTION,
6298
6703
  {},
6299
- readOnly7,
6704
+ readOnly8,
6300
6705
  () => handleSpecs(getToken, baseUrl)
6301
6706
  ],
6302
6707
  [
6303
6708
  "talonic_submissions_list",
6304
6709
  "Submissions inbox",
6305
- LIST_DESCRIPTION2,
6710
+ LIST_DESCRIPTION3,
6306
6711
  listInputSchema,
6307
- readOnly7,
6712
+ readOnly8,
6308
6713
  (a) => handleList(getToken, baseUrl, a)
6309
6714
  ],
6310
6715
  [
@@ -6312,7 +6717,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6312
6717
  "Submissions worklist",
6313
6718
  ISSUES_DESCRIPTION5,
6314
6719
  issuesInputSchema3,
6315
- readOnly7,
6720
+ readOnly8,
6316
6721
  (a) => handleIssues5(getToken, baseUrl, a)
6317
6722
  ],
6318
6723
  [
@@ -6320,7 +6725,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6320
6725
  "Capture and map submissions",
6321
6726
  PROCESS_DESCRIPTION2,
6322
6727
  processInputSchema2,
6323
- write7(true),
6728
+ write8(true),
6324
6729
  (a) => handleProcess2(getToken, baseUrl, a)
6325
6730
  ],
6326
6731
  [
@@ -6328,7 +6733,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6328
6733
  "Submission completeness",
6329
6734
  COMPLETENESS_DESCRIPTION,
6330
6735
  completenessInputSchema,
6331
- readOnly7,
6736
+ readOnly8,
6332
6737
  (a) => handleCompleteness(getToken, baseUrl, a)
6333
6738
  ],
6334
6739
  [
@@ -6336,7 +6741,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6336
6741
  "Submission facts by metric and year",
6337
6742
  MATRIX_DESCRIPTION,
6338
6743
  matrixInputSchema,
6339
- readOnly7,
6744
+ readOnly8,
6340
6745
  (a) => handleMatrix(getToken, baseUrl, a)
6341
6746
  ],
6342
6747
  [
@@ -6344,7 +6749,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6344
6749
  "Submission figures",
6345
6750
  FACTS_DESCRIPTION,
6346
6751
  factsInputSchema,
6347
- readOnly7,
6752
+ readOnly8,
6348
6753
  (a) => handleFacts(getToken, baseUrl, a)
6349
6754
  ],
6350
6755
  [
@@ -6352,7 +6757,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6352
6757
  "Submission checks",
6353
6758
  CHECKS_DESCRIPTION,
6354
6759
  checksInputSchema,
6355
- readOnly7,
6760
+ readOnly8,
6356
6761
  (a) => handleChecks(getToken, baseUrl, a)
6357
6762
  ],
6358
6763
  [
@@ -6360,7 +6765,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6360
6765
  "Review label mappings",
6361
6766
  REVIEW_DESCRIPTION,
6362
6767
  reviewInputSchema,
6363
- write7(true),
6768
+ write8(true),
6364
6769
  (a) => handleReview(getToken, baseUrl, a)
6365
6770
  ],
6366
6771
  [
@@ -6368,7 +6773,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6368
6773
  "Questions for the client's experts",
6369
6774
  QUESTIONS_DESCRIPTION,
6370
6775
  questionsInputSchema,
6371
- write7(true),
6776
+ write8(true),
6372
6777
  (a) => handleQuestions(getToken, baseUrl, a)
6373
6778
  ],
6374
6779
  [
@@ -6376,7 +6781,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6376
6781
  "Export submission facts",
6377
6782
  EXPORT_DESCRIPTION,
6378
6783
  exportInputSchema,
6379
- readOnly7,
6784
+ readOnly8,
6380
6785
  (a) => handleExport(getToken, baseUrl, a)
6381
6786
  ]
6382
6787
  ];
@@ -6393,7 +6798,7 @@ var INDEX_PERIOD_RE = /^\d{4}(-\d{2}|-Q[1-4]|-H[12])?$/;
6393
6798
  var modelIdArg = zUuid().describe("Price model id (from talonic_price_baseline_models).");
6394
6799
  var fromArg = z.string().regex(MONTH_RE).describe("First month of the evaluation window, `YYYY-MM`.");
6395
6800
  var toArg = z.string().regex(MONTH_RE).describe("Last month of the evaluation window, `YYYY-MM`.");
6396
- var readOnly8 = {
6801
+ var readOnly9 = {
6397
6802
  readOnlyHint: true,
6398
6803
  destructiveHint: false,
6399
6804
  idempotentHint: true,
@@ -7011,7 +7416,7 @@ async function probePriceBaselineAccess(token, baseUrl) {
7011
7416
  }
7012
7417
  }
7013
7418
  function registerPriceBaselineTools(server, getToken, baseUrl) {
7014
- const write8 = (idempotent) => ({
7419
+ const write9 = (idempotent) => ({
7015
7420
  readOnlyHint: false,
7016
7421
  destructiveHint: false,
7017
7422
  idempotentHint: idempotent,
@@ -7023,7 +7428,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7023
7428
  title: "Find contracts and invoices",
7024
7429
  description: DOCUMENTS_DESCRIPTION,
7025
7430
  inputSchema: documentsInputSchema,
7026
- annotations: readOnly8
7431
+ annotations: readOnly9
7027
7432
  },
7028
7433
  async (args) => handleDocuments(getToken, baseUrl, args)
7029
7434
  );
@@ -7033,7 +7438,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7033
7438
  title: "Build or enrich a price model from a contract",
7034
7439
  description: EXTRACT_DESCRIPTION,
7035
7440
  inputSchema: extractInputSchema,
7036
- annotations: write8(false)
7441
+ annotations: write9(false)
7037
7442
  },
7038
7443
  async (args) => handleExtract2(getToken, baseUrl, args)
7039
7444
  );
@@ -7043,7 +7448,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7043
7448
  title: "List or read price models",
7044
7449
  description: MODELS_DESCRIPTION,
7045
7450
  inputSchema: modelsInputSchema,
7046
- annotations: readOnly8
7451
+ annotations: readOnly9
7047
7452
  },
7048
7453
  async (args) => handleModels(getToken, baseUrl, args)
7049
7454
  );
@@ -7053,7 +7458,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7053
7458
  title: "Edit or confirm a price model",
7054
7459
  description: UPDATE_DESCRIPTION,
7055
7460
  inputSchema: updateInputSchema,
7056
- annotations: write8(true)
7461
+ annotations: write9(true)
7057
7462
  },
7058
7463
  async (args) => handleUpdate(getToken, baseUrl, args)
7059
7464
  );
@@ -7063,7 +7468,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7063
7468
  title: "Recompute contract prices",
7064
7469
  description: PRICES_DESCRIPTION,
7065
7470
  inputSchema: pricesInputSchema,
7066
- annotations: readOnly8
7471
+ annotations: readOnly9
7067
7472
  },
7068
7473
  async (args) => handlePrices(getToken, baseUrl, args)
7069
7474
  );
@@ -7073,7 +7478,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7073
7478
  title: "Download the price baseline workbook",
7074
7479
  description: WORKBOOK_DESCRIPTION,
7075
7480
  inputSchema: workbookInputSchema,
7076
- annotations: readOnly8
7481
+ annotations: readOnly9
7077
7482
  },
7078
7483
  async (args) => handleWorkbook(getToken, baseUrl, args)
7079
7484
  );
@@ -7083,7 +7488,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7083
7488
  title: "Check an invoice against the contract",
7084
7489
  description: COMPARE_DESCRIPTION,
7085
7490
  inputSchema: compareInputSchema,
7086
- annotations: write8(false)
7491
+ annotations: write9(false)
7087
7492
  },
7088
7493
  async (args) => handleCompare(getToken, baseUrl, args)
7089
7494
  );
@@ -7093,7 +7498,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7093
7498
  title: "Audit-proof invoice",
7094
7499
  description: PROOF_INVOICE_DESCRIPTION,
7095
7500
  inputSchema: proofInvoiceInputSchema,
7096
- annotations: readOnly8
7501
+ annotations: readOnly9
7097
7502
  },
7098
7503
  async (args) => handleProofInvoice(getToken, baseUrl, args)
7099
7504
  );
@@ -7103,7 +7508,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7103
7508
  title: "Index catalog and values",
7104
7509
  description: INDICES_DESCRIPTION,
7105
7510
  inputSchema: indicesInputSchema,
7106
- annotations: readOnly8
7511
+ annotations: readOnly9
7107
7512
  },
7108
7513
  async (args) => handleIndices(getToken, baseUrl, args)
7109
7514
  );
@@ -7113,7 +7518,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7113
7518
  title: "Fetch public index values",
7114
7519
  description: REFRESH_DESCRIPTION2,
7115
7520
  inputSchema: refreshInputSchema,
7116
- annotations: { ...write8(true), openWorldHint: true }
7521
+ annotations: { ...write9(true), openWorldHint: true }
7117
7522
  },
7118
7523
  async (args) => handleRefresh(getToken, baseUrl, args)
7119
7524
  );
@@ -7123,7 +7528,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7123
7528
  title: "Enter sourced index values",
7124
7529
  description: MANUAL_DESCRIPTION,
7125
7530
  inputSchema: manualInputSchema,
7126
- annotations: write8(true)
7531
+ annotations: write9(true)
7127
7532
  },
7128
7533
  async (args) => handleManual(getToken, baseUrl, args)
7129
7534
  );
@@ -7133,7 +7538,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7133
7538
  title: "Contract register and expected invoices",
7134
7539
  description: REGISTER_DESCRIPTION2,
7135
7540
  inputSchema: registerInputSchema2,
7136
- annotations: readOnly8
7541
+ annotations: readOnly9
7137
7542
  },
7138
7543
  async (args) => handleRegister2(getToken, baseUrl, args)
7139
7544
  );
@@ -7143,7 +7548,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7143
7548
  title: "Contract workbook and open inputs",
7144
7549
  description: CONTRACT_DESCRIPTION3,
7145
7550
  inputSchema: contractInputSchema3,
7146
- annotations: readOnly8
7551
+ annotations: readOnly9
7147
7552
  },
7148
7553
  async (args) => handleContract3(getToken, baseUrl, args)
7149
7554
  );
@@ -7153,7 +7558,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7153
7558
  title: "Answer an open contract input",
7154
7559
  description: ANSWER_DESCRIPTION,
7155
7560
  inputSchema: answerInputSchema,
7156
- annotations: write8(true)
7561
+ annotations: write9(true)
7157
7562
  },
7158
7563
  async (args) => handleAnswer(getToken, baseUrl, args)
7159
7564
  );
@@ -7163,7 +7568,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7163
7568
  title: "List assumptions",
7164
7569
  description: ASSUMPTIONS_DESCRIPTION,
7165
7570
  inputSchema: assumptionsInputSchema,
7166
- annotations: readOnly8
7571
+ annotations: readOnly9
7167
7572
  },
7168
7573
  async (args) => handleAssumptions(getToken, baseUrl, args)
7169
7574
  );
@@ -7173,7 +7578,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7173
7578
  title: "Make, replace or withdraw an assumption",
7174
7579
  description: ASSUME_DESCRIPTION,
7175
7580
  inputSchema: assumeInputSchema,
7176
- annotations: { ...write8(false), destructiveHint: true }
7581
+ annotations: { ...write9(false), destructiveHint: true }
7177
7582
  },
7178
7583
  async (args) => handleAssume(getToken, baseUrl, args)
7179
7584
  );
@@ -7183,7 +7588,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7183
7588
  title: "Sync external price data",
7184
7589
  description: SYNC_DESCRIPTION,
7185
7590
  inputSchema: syncInputSchema,
7186
- annotations: { ...write8(true), openWorldHint: true }
7591
+ annotations: { ...write9(true), openWorldHint: true }
7187
7592
  },
7188
7593
  async (args) => handleSync(getToken, baseUrl, args)
7189
7594
  );
@@ -7193,7 +7598,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7193
7598
  title: "Import candidates and status",
7194
7599
  description: IMPORTS_DESCRIPTION,
7195
7600
  inputSchema: importsInputSchema,
7196
- annotations: readOnly8
7601
+ annotations: readOnly9
7197
7602
  },
7198
7603
  async (args) => handleImports(getToken, baseUrl, args)
7199
7604
  );
@@ -7203,7 +7608,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7203
7608
  title: "Import contracts from data capture",
7204
7609
  description: IMPORT_DESCRIPTION2,
7205
7610
  inputSchema: importInputSchema2,
7206
- annotations: write8(true)
7611
+ annotations: write9(true)
7207
7612
  },
7208
7613
  async (args) => handleImport2(getToken, baseUrl, args)
7209
7614
  );
@@ -7995,7 +8400,7 @@ async function resolveFieldId(getToken, baseUrl, args) {
7995
8400
  resolution: { matched_by: resolved.matched_by, redirected_from: resolved.redirected_from }
7996
8401
  };
7997
8402
  }
7998
- var LIST_DESCRIPTION3 = [
8403
+ var LIST_DESCRIPTION4 = [
7999
8404
  "List the workspace's Field Registry \u2014 the canonical concepts Talonic has discovered across every ingested document, each with a stable id, maturity level, data type, synonyms and occurrence count.",
8000
8405
  "",
8001
8406
  "USE WHEN: you need to know WHAT data exists before querying it, want to pick the right concept for a question, or need the exact field id for talonic_get_field / talonic_field_values.",
@@ -8024,7 +8429,7 @@ async function handleListFields(getToken, baseUrl, args) {
8024
8429
  })
8025
8430
  );
8026
8431
  }
8027
- var GET_DESCRIPTION2 = [
8432
+ var GET_DESCRIPTION3 = [
8028
8433
  "Get the CONCEPT CARD for one Field Registry field: what it means (curated description + extraction instruction), its synonyms and aliases, maturity, where it occurs (document/occurrence counts, first/last seen, document-type spread), its value distribution (top values with counts, distinct count, examples), schema usage, and identity links (superseded_by, absorbed concepts).",
8029
8434
  "",
8030
8435
  "USE WHEN: you must decide whether a field is the right concept for a question, need example values or the value shape before writing a filter, or hold a field NAME from the user and need the live concept behind it.",
@@ -8109,7 +8514,7 @@ function registerFieldTools(server, getToken, baseUrl) {
8109
8514
  "talonic_list_fields",
8110
8515
  {
8111
8516
  title: "List fields",
8112
- description: LIST_DESCRIPTION3,
8517
+ description: LIST_DESCRIPTION4,
8113
8518
  inputSchema: listFieldsInputSchema,
8114
8519
  annotations: {
8115
8520
  title: "List fields",
@@ -8126,7 +8531,7 @@ function registerFieldTools(server, getToken, baseUrl) {
8126
8531
  "talonic_get_field",
8127
8532
  {
8128
8533
  title: "Look up a field",
8129
- description: GET_DESCRIPTION2,
8534
+ description: GET_DESCRIPTION3,
8130
8535
  inputSchema: getFieldInputSchema,
8131
8536
  annotations: {
8132
8537
  title: "Look up a field",
@@ -8359,7 +8764,7 @@ function registerAgentRegistryTools(server, getToken, baseUrl, opts = {}) {
8359
8764
  async (args) => handleInvokeAgentTool(getToken, baseUrl, args)
8360
8765
  );
8361
8766
  }
8362
- var LIST_DESCRIPTION4 = [
8767
+ var LIST_DESCRIPTION5 = [
8363
8768
  "List the workspace's Specs. A Spec is a saved extraction pipeline: an ordered list of processing steps plus the fields it produces; talonic_run_spec runs it over documents. Each row: id, name, description, schema_id (the schema the run's output rows follow \u2014 a DIFFERENT id from the Spec's), version / materialized_version (the published version runs use; null = never published), field_count, node_count, timestamps.",
8364
8769
  "",
8365
8770
  "USE WHEN: the user wants to run 'their pipeline' / 'the invoice Spec', or you need a spec_id for talonic_run_spec / talonic_get_spec.",
@@ -8367,7 +8772,7 @@ var LIST_DESCRIPTION4 = [
8367
8772
  "ARGS: optional `search` (name contains, case-insensitive), `limit` (1\u2013100, default 20), `cursor` (from pagination.next_cursor), `order` (asc|desc by updated_at).",
8368
8773
  "RETURNS: { data[] of { id, name, description, schema_id, version, materialized_version, materialized_at, field_count, node_count, created_at, updated_at, links }, pagination { total, limit, has_more, next_cursor } }."
8369
8774
  ].join("\n");
8370
- var GET_DESCRIPTION3 = [
8775
+ var GET_DESCRIPTION4 = [
8371
8776
  "Get one Spec's structure: identity and version state, the schema its output rows follow, `nodes[]` (the processing steps as the user configured them, in editing order), `phases[]` (the steps as they actually run, in run order; one configured validation step can run as several phases, so the two lists can differ), and `fields[]` (Spec field \u2194 schema field).",
8372
8777
  "",
8373
8778
  "USE WHEN: you need to explain what a run will do, confirm a Spec is published (`version` non-null) before talonic_run_spec, or map field names to keys.",
@@ -8419,7 +8824,7 @@ function registerSpecTools(server, getToken, baseUrl) {
8419
8824
  "talonic_list_specs",
8420
8825
  {
8421
8826
  title: "List pipelines",
8422
- description: LIST_DESCRIPTION4,
8827
+ description: LIST_DESCRIPTION5,
8423
8828
  inputSchema: listSpecsInputSchema,
8424
8829
  annotations: { title: "List pipelines", ...READ_ONLY4 },
8425
8830
  _meta: widgetToolMeta("listSpecs")
@@ -8430,7 +8835,7 @@ function registerSpecTools(server, getToken, baseUrl) {
8430
8835
  "talonic_get_spec",
8431
8836
  {
8432
8837
  title: "Look up a pipeline",
8433
- description: GET_DESCRIPTION3,
8838
+ description: GET_DESCRIPTION4,
8434
8839
  inputSchema: getSpecInputSchema,
8435
8840
  annotations: { title: "Look up a pipeline", ...READ_ONLY4 },
8436
8841
  _meta: widgetToolMeta("getSpec")
@@ -8444,7 +8849,7 @@ function mapRunStatus(raw) {
8444
8849
  return "failed";
8445
8850
  return "processing";
8446
8851
  }
8447
- var RUN_DESCRIPTION2 = [
8852
+ var RUN_DESCRIPTION3 = [
8448
8853
  "Run a Spec \u2014 the customer's configured pipeline \u2014 over documents, in one call. Two inputs: `document_ids` (documents already in the workspace; for a new file, first talonic_request_upload \u2192 poll talonic_get_document until completed) OR `file_urls` (public https files, max 20; Talonic ingests them first). Consumes credits.",
8449
8854
  "",
8450
8855
  "USE WHEN: the user wants to 'run the invoice pipeline on these documents', process files through their Spec, or produce the Spec's structured rows.",
@@ -8659,7 +9064,7 @@ function registerRunTools(server, getToken, baseUrl) {
8659
9064
  "talonic_run_spec",
8660
9065
  {
8661
9066
  title: "Run a pipeline",
8662
- description: RUN_DESCRIPTION2,
9067
+ description: RUN_DESCRIPTION3,
8663
9068
  inputSchema: runSpecInputSchema,
8664
9069
  annotations: {
8665
9070
  title: "Run a pipeline",
@@ -8835,7 +9240,7 @@ function registerAskTools(server, getToken, baseUrl) {
8835
9240
 
8836
9241
  // package.json
8837
9242
  var package_default = {
8838
- version: "0.1.101"};
9243
+ version: "0.1.103"};
8839
9244
 
8840
9245
  // src/version.ts
8841
9246
  var VERSION = package_default.version;
@@ -9024,6 +9429,9 @@ function createServer(options) {
9024
9429
  if (options.includePortfolioTools) {
9025
9430
  registerPortfolioTools(server, rawToken, baseUrl);
9026
9431
  }
9432
+ if (options.includeProcessesTools) {
9433
+ registerProcessesTools(server, rawToken, baseUrl);
9434
+ }
9027
9435
  if (options.includeMasterRecordsTools) {
9028
9436
  registerMasterRecordsTools(server, rawToken, baseUrl);
9029
9437
  }
@@ -9095,7 +9503,8 @@ async function main(argv = process.argv.slice(2), env = process.env, out = (line
9095
9503
  includeMasterRecordsTools,
9096
9504
  includeSubmissionsTools,
9097
9505
  includePriceBaselineTools,
9098
- includePortfolioTools
9506
+ includePortfolioTools,
9507
+ includeProcessesTools
9099
9508
  ] = await Promise.all([
9100
9509
  probeGrowthAccess(apiKey, baseUrl),
9101
9510
  probeAgentTaskAdminAccess(apiKey, baseUrl),
@@ -9106,7 +9515,8 @@ async function main(argv = process.argv.slice(2), env = process.env, out = (line
9106
9515
  probeMasterRecordsAccess(apiKey, baseUrl),
9107
9516
  probeSubmissionsAccess(apiKey, baseUrl),
9108
9517
  probePriceBaselineAccess(apiKey, baseUrl),
9109
- probePortfolioAccess(apiKey, baseUrl)
9518
+ probePortfolioAccess(apiKey, baseUrl),
9519
+ probeProcessesAccess(apiKey, baseUrl)
9110
9520
  ]);
9111
9521
  const server = createServer({
9112
9522
  apiKey,
@@ -9120,7 +9530,8 @@ async function main(argv = process.argv.slice(2), env = process.env, out = (line
9120
9530
  includeMasterRecordsTools,
9121
9531
  includeSubmissionsTools,
9122
9532
  includePriceBaselineTools,
9123
- includePortfolioTools
9533
+ includePortfolioTools,
9534
+ includeProcessesTools
9124
9535
  });
9125
9536
  const transport = new StdioServerTransport();
9126
9537
  await server.connect(transport);