@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.
@@ -3700,9 +3700,9 @@ var readOnly = {
3700
3700
  idempotentHint: true,
3701
3701
  openWorldHint: false
3702
3702
  };
3703
- var write = (idempotent, destructive = false) => ({
3703
+ var write = (idempotent, destructive2 = false) => ({
3704
3704
  readOnlyHint: false,
3705
- destructiveHint: destructive,
3705
+ destructiveHint: destructive2,
3706
3706
  idempotentHint: idempotent,
3707
3707
  openWorldHint: false
3708
3708
  });
@@ -4205,9 +4205,9 @@ var readOnly2 = {
4205
4205
  idempotentHint: true,
4206
4206
  openWorldHint: false
4207
4207
  };
4208
- var write2 = (idempotent, destructive = false) => ({
4208
+ var write2 = (idempotent, destructive2 = false) => ({
4209
4209
  readOnlyHint: false,
4210
- destructiveHint: destructive,
4210
+ destructiveHint: destructive2,
4211
4211
  idempotentHint: idempotent,
4212
4212
  openWorldHint: false
4213
4213
  });
@@ -4435,9 +4435,9 @@ var readOnly3 = {
4435
4435
  idempotentHint: true,
4436
4436
  openWorldHint: false
4437
4437
  };
4438
- var write3 = (idempotent, destructive = false) => ({
4438
+ var write3 = (idempotent, destructive2 = false) => ({
4439
4439
  readOnlyHint: false,
4440
- destructiveHint: destructive,
4440
+ destructiveHint: destructive2,
4441
4441
  idempotentHint: idempotent,
4442
4442
  openWorldHint: false
4443
4443
  });
@@ -5142,9 +5142,9 @@ var readOnly4 = {
5142
5142
  idempotentHint: true,
5143
5143
  openWorldHint: false
5144
5144
  };
5145
- var write4 = (idempotent, destructive = false) => ({
5145
+ var write4 = (idempotent, destructive2 = false) => ({
5146
5146
  readOnlyHint: false,
5147
- destructiveHint: destructive,
5147
+ destructiveHint: destructive2,
5148
5148
  idempotentHint: idempotent,
5149
5149
  openWorldHint: false
5150
5150
  });
@@ -5762,9 +5762,403 @@ var readOnly6 = {
5762
5762
  idempotentHint: true,
5763
5763
  openWorldHint: false
5764
5764
  };
5765
- var write6 = (idempotent, destructive = false) => ({
5765
+ var write6 = {
5766
5766
  readOnlyHint: false,
5767
- destructiveHint: destructive,
5767
+ destructiveHint: false,
5768
+ idempotentHint: false,
5769
+ openWorldHint: false
5770
+ };
5771
+ var destructive = {
5772
+ readOnlyHint: false,
5773
+ destructiveHint: true,
5774
+ idempotentHint: false,
5775
+ openWorldHint: false
5776
+ };
5777
+ var BASE = "/v1/processes";
5778
+ var pid = (a) => encodeURIComponent(a.process_id);
5779
+ 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.";
5780
+ 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.`;
5781
+ 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.";
5782
+ 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.";
5783
+ 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.";
5784
+ 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.";
5785
+ 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.";
5786
+ 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`.";
5787
+ 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.";
5788
+ 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.";
5789
+ 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.";
5790
+ 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.";
5791
+ var VERSIONS_DESCRIPTION = "The published versions of a process, newest first, with who published and why.";
5792
+ var ROLLBACK_DESCRIPTION = "Make an earlier published version live again. Changes what runs for real: call only when the user asks for it.";
5793
+ 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.";
5794
+ 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.";
5795
+ 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.";
5796
+ 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.";
5797
+ 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.";
5798
+ 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.";
5799
+ 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.";
5800
+ function registerProcessesTools(server, getToken, baseUrl) {
5801
+ const tools = [
5802
+ [
5803
+ "talonic_process_list",
5804
+ "Processes",
5805
+ LIST_DESCRIPTION2,
5806
+ {},
5807
+ readOnly6,
5808
+ () => runTool(() => apiJson(getToken, baseUrl, "GET", "/v1/processes"))
5809
+ ],
5810
+ [
5811
+ "talonic_process_run",
5812
+ "Start a process for one item",
5813
+ RUN_DESCRIPTION,
5814
+ {
5815
+ process_id: zUuid().describe("The process id from talonic_process_list"),
5816
+ values: z.record(z.string(), z.unknown()).describe("Values by field name")
5817
+ },
5818
+ write6,
5819
+ (a) => runTool(
5820
+ () => apiJson(
5821
+ getToken,
5822
+ baseUrl,
5823
+ "POST",
5824
+ `/v1/processes/${encodeURIComponent(a.process_id)}/items`,
5825
+ { body: { values: a.values ?? {} } }
5826
+ )
5827
+ )
5828
+ ],
5829
+ [
5830
+ "talonic_process_status",
5831
+ "Process run status",
5832
+ STATUS_DESCRIPTION4,
5833
+ {
5834
+ process_id: zUuid().describe("The process id"),
5835
+ run_id: zUuid().optional().describe("A run id; default the latest run")
5836
+ },
5837
+ readOnly6,
5838
+ async (a) => runTool(async () => {
5839
+ const q = a.run_id ? `?run=${encodeURIComponent(a.run_id)}` : "";
5840
+ const id = encodeURIComponent(a.process_id);
5841
+ const [status3, items] = await Promise.all([
5842
+ apiJson(getToken, baseUrl, "GET", `/v1/processes/${id}/status${q}`),
5843
+ apiJson(getToken, baseUrl, "GET", `/v1/processes/${id}/items${q}`)
5844
+ ]);
5845
+ return { status: status3, items };
5846
+ })
5847
+ ],
5848
+ [
5849
+ "talonic_process_runs",
5850
+ "Process runs",
5851
+ RUNS_DESCRIPTION2,
5852
+ {
5853
+ state: z.enum(["running", "completed", "failed", "stuck"]).optional(),
5854
+ process_id: zUuid().optional(),
5855
+ waiting_for_me: z.boolean().optional(),
5856
+ page: z.number().int().min(0).optional()
5857
+ },
5858
+ readOnly6,
5859
+ (a) => {
5860
+ const q = new URLSearchParams();
5861
+ if (a.state) q.set("state", a.state);
5862
+ if (a.process_id) q.set("process", a.process_id);
5863
+ if (a.waiting_for_me) q.set("waitingForMe", "1");
5864
+ if (a.page) q.set("page", String(a.page));
5865
+ const qs = q.toString();
5866
+ return runTool(
5867
+ () => apiJson(getToken, baseUrl, "GET", `/v1/processes/runs${qs ? `?${qs}` : ""}`)
5868
+ );
5869
+ }
5870
+ ],
5871
+ [
5872
+ "talonic_process_waiting_for_me",
5873
+ "Waiting for me",
5874
+ WAITING_DESCRIPTION,
5875
+ {},
5876
+ readOnly6,
5877
+ () => runTool(() => apiJson(getToken, baseUrl, "GET", "/v1/processes/waiting"))
5878
+ ],
5879
+ [
5880
+ "talonic_process_sign",
5881
+ "Sign a process step",
5882
+ SIGN_DESCRIPTION,
5883
+ {
5884
+ process_id: zUuid(),
5885
+ run_id: zUuid(),
5886
+ step_id: z.string().min(1).max(64).describe("The sign-off step's id (stepId from talonic_process_waiting_for_me)"),
5887
+ items: z.array(z.string().min(1).max(200)).max(200).optional().describe("Item keys; default every waiting item"),
5888
+ decision: z.string().min(1).max(60).optional().describe("One of the step's choices, when it offers any")
5889
+ },
5890
+ write6,
5891
+ (a) => runTool(
5892
+ () => apiJson(
5893
+ getToken,
5894
+ baseUrl,
5895
+ "POST",
5896
+ `/v1/processes/${encodeURIComponent(a.process_id)}/runs/${encodeURIComponent(a.run_id)}/holds/${encodeURIComponent(a.step_id)}/release`,
5897
+ {
5898
+ body: {
5899
+ ...a.items ? { items: a.items } : {},
5900
+ ...a.decision ? { decision: a.decision } : {}
5901
+ }
5902
+ }
5903
+ )
5904
+ )
5905
+ ],
5906
+ [
5907
+ "talonic_process_get",
5908
+ "One process",
5909
+ GET_DESCRIPTION2,
5910
+ { process_id: zUuid().describe("The process id from talonic_process_list") },
5911
+ readOnly6,
5912
+ (a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}`))
5913
+ ],
5914
+ [
5915
+ "talonic_process_create",
5916
+ "New process draft",
5917
+ CREATE_DESCRIPTION2,
5918
+ {
5919
+ description: z.string().min(10).max(2e3).optional().describe("What the process should do, complete and in the user's words"),
5920
+ workflow_json: z.string().min(2).max(4e5).optional().describe("An exported n8n workflow as JSON text, instead of description")
5921
+ },
5922
+ write6,
5923
+ (a) => runTool(() => {
5924
+ if (a.workflow_json) {
5925
+ let workflow;
5926
+ try {
5927
+ workflow = JSON.parse(a.workflow_json);
5928
+ } catch {
5929
+ throw new Error("workflow_json is not valid JSON.");
5930
+ }
5931
+ return apiJson(getToken, baseUrl, "POST", BASE, { body: { workflow } });
5932
+ }
5933
+ if (!a.description) throw new Error("Pass description or workflow_json.");
5934
+ return apiJson(getToken, baseUrl, "POST", BASE, { body: { description: a.description } });
5935
+ })
5936
+ ],
5937
+ [
5938
+ "talonic_process_change",
5939
+ "Change a process draft",
5940
+ CHANGE_DESCRIPTION,
5941
+ {
5942
+ process_id: zUuid(),
5943
+ change: z.string().min(1).max(2e3).describe("What should change, in plain words"),
5944
+ step_id: z.string().min(1).max(80).optional().describe("Only this step's settings (id from talonic_process_get)"),
5945
+ confirmed: z.boolean().optional().describe(
5946
+ "Leave out. true only after needs_confirmation was shown to the user and they agreed"
5947
+ )
5948
+ },
5949
+ write6,
5950
+ (a) => runTool(
5951
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/change`, {
5952
+ body: {
5953
+ change: a.change,
5954
+ ...a.step_id ? { stepId: a.step_id } : {},
5955
+ ...a.confirmed === true ? { confirmed: true } : {}
5956
+ }
5957
+ })
5958
+ )
5959
+ ],
5960
+ [
5961
+ "talonic_process_check",
5962
+ "Check a process draft",
5963
+ CHECK_DESCRIPTION,
5964
+ { process_id: zUuid() },
5965
+ readOnly6,
5966
+ async (a) => runTool(async () => {
5967
+ const [check, changes] = await Promise.all([
5968
+ apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/check`),
5969
+ apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/changes`)
5970
+ ]);
5971
+ return { check, changes };
5972
+ })
5973
+ ],
5974
+ [
5975
+ "talonic_process_test_run",
5976
+ "Test a process draft",
5977
+ TEST_RUN_DESCRIPTION,
5978
+ {
5979
+ process_id: zUuid(),
5980
+ document_ids: z.array(zUuid()).min(1).max(100).describe("Documents to run the draft on")
5981
+ },
5982
+ write6,
5983
+ (a) => runTool(
5984
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/test-run`, {
5985
+ body: { documentIds: a.document_ids }
5986
+ })
5987
+ )
5988
+ ],
5989
+ [
5990
+ "talonic_process_publish",
5991
+ "Publish a process",
5992
+ PUBLISH_DESCRIPTION,
5993
+ {
5994
+ process_id: zUuid(),
5995
+ reason: z.string().max(2e3).optional().describe("Why this change, for the record")
5996
+ },
5997
+ destructive,
5998
+ (a) => runTool(
5999
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/publish`, {
6000
+ body: a.reason ? { reason: a.reason } : {}
6001
+ })
6002
+ )
6003
+ ],
6004
+ [
6005
+ "talonic_process_versions",
6006
+ "Process versions",
6007
+ VERSIONS_DESCRIPTION,
6008
+ { process_id: zUuid() },
6009
+ readOnly6,
6010
+ (a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/versions`))
6011
+ ],
6012
+ [
6013
+ "talonic_process_rollback",
6014
+ "Roll a process back",
6015
+ ROLLBACK_DESCRIPTION,
6016
+ {
6017
+ process_id: zUuid(),
6018
+ version: z.number().int().min(1).describe("The version number to make live again")
6019
+ },
6020
+ destructive,
6021
+ (a) => runTool(
6022
+ () => apiJson(
6023
+ getToken,
6024
+ baseUrl,
6025
+ "POST",
6026
+ `${BASE}/${pid(a)}/versions/${encodeURIComponent(String(a.version))}/rollback`
6027
+ )
6028
+ )
6029
+ ],
6030
+ [
6031
+ "talonic_process_delete",
6032
+ "Delete a process",
6033
+ DELETE_DESCRIPTION2,
6034
+ { process_id: zUuid() },
6035
+ destructive,
6036
+ (a) => runTool(() => apiJson(getToken, baseUrl, "DELETE", `${BASE}/${pid(a)}`))
6037
+ ],
6038
+ [
6039
+ "talonic_process_item",
6040
+ "One item of a run",
6041
+ ITEM_DESCRIPTION,
6042
+ {
6043
+ process_id: zUuid(),
6044
+ run_id: zUuid(),
6045
+ item_key: z.string().min(1).max(200).describe("The item's key (documentId) from the run")
6046
+ },
6047
+ readOnly6,
6048
+ (a) => runTool(
6049
+ () => apiJson(
6050
+ getToken,
6051
+ baseUrl,
6052
+ "GET",
6053
+ `${BASE}/${pid(a)}/runs/${encodeURIComponent(a.run_id)}/items/${encodeURIComponent(a.item_key)}`
6054
+ )
6055
+ )
6056
+ ],
6057
+ [
6058
+ "talonic_process_retry",
6059
+ "Retry a run's failed steps",
6060
+ RETRY_DESCRIPTION,
6061
+ { run_id: zUuid() },
6062
+ write6,
6063
+ (a) => runTool(
6064
+ () => apiJson(getToken, baseUrl, "POST", `${BASE}/runs/${encodeURIComponent(a.run_id)}/retry`)
6065
+ )
6066
+ ],
6067
+ [
6068
+ "talonic_process_send_back",
6069
+ "Send items back from a sign-off",
6070
+ SEND_BACK_DESCRIPTION,
6071
+ {
6072
+ process_id: zUuid(),
6073
+ run_id: zUuid(),
6074
+ step_id: z.string().min(1).max(64),
6075
+ items: z.array(z.string().min(1).max(200)).min(1).max(200).describe("Item keys"),
6076
+ reason: z.string().min(1).max(2e3).describe("Why they go back, in the user's words")
6077
+ },
6078
+ write6,
6079
+ (a) => runTool(
6080
+ () => apiJson(
6081
+ getToken,
6082
+ baseUrl,
6083
+ "POST",
6084
+ `${BASE}/${pid(a)}/runs/${encodeURIComponent(a.run_id)}/holds/${encodeURIComponent(a.step_id)}/send-back`,
6085
+ { body: { items: a.items, reason: a.reason } }
6086
+ )
6087
+ )
6088
+ ],
6089
+ [
6090
+ "talonic_process_setup",
6091
+ "What processes can use",
6092
+ SETUP_DESCRIPTION,
6093
+ {},
6094
+ readOnly6,
6095
+ async () => runTool(async () => {
6096
+ const [people, mailboxes, secrets, lookupData] = await Promise.all([
6097
+ apiJson(getToken, baseUrl, "GET", `${BASE}/people`),
6098
+ apiJson(getToken, baseUrl, "GET", `${BASE}/mailboxes`),
6099
+ apiJson(getToken, baseUrl, "GET", `${BASE}/secrets`),
6100
+ apiJson(getToken, baseUrl, "GET", `${BASE}/lookup-data`)
6101
+ ]);
6102
+ return { people, mailboxes, secrets, lookupData };
6103
+ })
6104
+ ],
6105
+ [
6106
+ "talonic_process_mailbox_ownership",
6107
+ "Say whose a mailbox is",
6108
+ MAILBOX_OWNERSHIP_DESCRIPTION,
6109
+ {
6110
+ mailbox_id: zUuid().describe("The mailbox id from talonic_process_setup"),
6111
+ ownership: z.enum(["individual", "company"])
6112
+ },
6113
+ write6,
6114
+ (a) => runTool(
6115
+ () => apiJson(
6116
+ getToken,
6117
+ baseUrl,
6118
+ "PUT",
6119
+ `${BASE}/mailboxes/${encodeURIComponent(a.mailbox_id)}/ownership`,
6120
+ { body: { ownership: a.ownership } }
6121
+ )
6122
+ )
6123
+ ],
6124
+ [
6125
+ "talonic_process_address",
6126
+ "A process's address for other systems",
6127
+ ADDRESS_DESCRIPTION,
6128
+ {
6129
+ process_id: zUuid(),
6130
+ make: z.boolean().optional().describe("true: make the address. Default: only say whether one exists"),
6131
+ test: z.boolean().optional().describe("The address of the test copy"),
6132
+ replace: z.boolean().optional().describe("true only after the user agreed to switch the existing address off")
6133
+ },
6134
+ destructive,
6135
+ (a) => runTool(
6136
+ () => a.make === true ? apiJson(getToken, baseUrl, "PUT", `${BASE}/${pid(a)}/address`, {
6137
+ body: {
6138
+ ...a.test === true ? { test: true } : {},
6139
+ ...a.replace === true ? { replace: true } : {}
6140
+ }
6141
+ }) : apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/address`)
6142
+ )
6143
+ ]
6144
+ ];
6145
+ for (const [name, title, description, inputSchema11, annotations, handler] of tools) {
6146
+ server.registerTool(
6147
+ name,
6148
+ { title, description, inputSchema: inputSchema11, annotations: { title, ...annotations } },
6149
+ async (args) => handler(args)
6150
+ );
6151
+ }
6152
+ }
6153
+ var readOnly7 = {
6154
+ readOnlyHint: true,
6155
+ destructiveHint: false,
6156
+ idempotentHint: true,
6157
+ openWorldHint: false
6158
+ };
6159
+ var write7 = (idempotent, destructive2 = false) => ({
6160
+ readOnlyHint: false,
6161
+ destructiveHint: destructive2,
5768
6162
  idempotentHint: idempotent,
5769
6163
  openWorldHint: false
5770
6164
  });
@@ -5800,7 +6194,7 @@ function handleSaveConfig2(getToken, baseUrl, args) {
5800
6194
  })
5801
6195
  );
5802
6196
  }
5803
- var RUN_DESCRIPTION = [
6197
+ var RUN_DESCRIPTION2 = [
5804
6198
  "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.",
5805
6199
  "USE WHEN: the sources changed, or the domain has never been resolved.",
5806
6200
  "NOT FOR: reading the result (talonic_master_records_overview).",
@@ -5918,7 +6312,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5918
6312
  "Read the Master Records configuration",
5919
6313
  CONFIG_DESCRIPTION2,
5920
6314
  {},
5921
- readOnly6,
6315
+ readOnly7,
5922
6316
  () => handleConfig2(getToken, baseUrl)
5923
6317
  ],
5924
6318
  [
@@ -5926,15 +6320,15 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5926
6320
  "Save the Master Records configuration",
5927
6321
  SAVE_CONFIG_DESCRIPTION2,
5928
6322
  saveConfigInputSchema2,
5929
- write6(true, true),
6323
+ write7(true, true),
5930
6324
  (a) => handleSaveConfig2(getToken, baseUrl, a)
5931
6325
  ],
5932
6326
  [
5933
6327
  "talonic_master_records_run",
5934
6328
  "Resolve master records",
5935
- RUN_DESCRIPTION,
6329
+ RUN_DESCRIPTION2,
5936
6330
  runInputSchema,
5937
- write6(true),
6331
+ write7(true),
5938
6332
  (a) => handleRun(getToken, baseUrl, a)
5939
6333
  ],
5940
6334
  [
@@ -5942,7 +6336,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5942
6336
  "Master records overview",
5943
6337
  OVERVIEW_DESCRIPTION2,
5944
6338
  overviewInputSchema,
5945
- readOnly6,
6339
+ readOnly7,
5946
6340
  (a) => handleOverview2(getToken, baseUrl, a)
5947
6341
  ],
5948
6342
  [
@@ -5950,7 +6344,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5950
6344
  "One golden record",
5951
6345
  RECORD_DESCRIPTION,
5952
6346
  recordInputSchema,
5953
- readOnly6,
6347
+ readOnly7,
5954
6348
  (a) => handleGetRecord(getToken, baseUrl, a)
5955
6349
  ],
5956
6350
  [
@@ -5958,7 +6352,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5958
6352
  "Accept or split a golden record",
5959
6353
  DECIDE_DESCRIPTION2,
5960
6354
  decideInputSchema2,
5961
- write6(true),
6355
+ write7(true),
5962
6356
  (a) => handleDecide2(getToken, baseUrl, a)
5963
6357
  ],
5964
6358
  [
@@ -5966,7 +6360,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5966
6360
  "Master data changes checked against documents",
5967
6361
  CHANGES_DESCRIPTION,
5968
6362
  changesInputSchema,
5969
- readOnly6,
6363
+ readOnly7,
5970
6364
  (a) => handleChanges(getToken, baseUrl, a)
5971
6365
  ],
5972
6366
  [
@@ -5974,7 +6368,7 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5974
6368
  "Source id to golden record crosswalk",
5975
6369
  CROSSWALK_DESCRIPTION,
5976
6370
  crosswalkInputSchema,
5977
- readOnly6,
6371
+ readOnly7,
5978
6372
  (a) => handleCrosswalk(getToken, baseUrl, a)
5979
6373
  ]
5980
6374
  ];
@@ -5986,15 +6380,15 @@ function registerMasterRecordsTools(server, getToken, baseUrl) {
5986
6380
  );
5987
6381
  }
5988
6382
  }
5989
- var readOnly7 = {
6383
+ var readOnly8 = {
5990
6384
  readOnlyHint: true,
5991
6385
  destructiveHint: false,
5992
6386
  idempotentHint: true,
5993
6387
  openWorldHint: false
5994
6388
  };
5995
- var write7 = (idempotent, destructive = false) => ({
6389
+ var write8 = (idempotent, destructive2 = false) => ({
5996
6390
  readOnlyHint: false,
5997
- destructiveHint: destructive,
6391
+ destructiveHint: destructive2,
5998
6392
  idempotentHint: idempotent,
5999
6393
  openWorldHint: false
6000
6394
  });
@@ -6012,7 +6406,7 @@ var SPECS_DESCRIPTION = [
6012
6406
  function handleSpecs(getToken, baseUrl) {
6013
6407
  return runTool(() => apiJson(getToken, baseUrl, "GET", "/v1/submissions/specs"));
6014
6408
  }
6015
- var LIST_DESCRIPTION2 = [
6409
+ var LIST_DESCRIPTION3 = [
6016
6410
  "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.",
6017
6411
  'USE WHEN: the headline ("which submissions are in, which are mapped, which have problems") or finding a submission by file name.',
6018
6412
  "NOT FOR: what to fix (talonic_submissions_issues); the facts (talonic_submissions_export).",
@@ -6238,15 +6632,15 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6238
6632
  "Submission target structures",
6239
6633
  SPECS_DESCRIPTION,
6240
6634
  {},
6241
- readOnly7,
6635
+ readOnly8,
6242
6636
  () => handleSpecs(getToken, baseUrl)
6243
6637
  ],
6244
6638
  [
6245
6639
  "talonic_submissions_list",
6246
6640
  "Submissions inbox",
6247
- LIST_DESCRIPTION2,
6641
+ LIST_DESCRIPTION3,
6248
6642
  listInputSchema,
6249
- readOnly7,
6643
+ readOnly8,
6250
6644
  (a) => handleList(getToken, baseUrl, a)
6251
6645
  ],
6252
6646
  [
@@ -6254,7 +6648,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6254
6648
  "Submissions worklist",
6255
6649
  ISSUES_DESCRIPTION5,
6256
6650
  issuesInputSchema3,
6257
- readOnly7,
6651
+ readOnly8,
6258
6652
  (a) => handleIssues5(getToken, baseUrl, a)
6259
6653
  ],
6260
6654
  [
@@ -6262,7 +6656,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6262
6656
  "Capture and map submissions",
6263
6657
  PROCESS_DESCRIPTION2,
6264
6658
  processInputSchema2,
6265
- write7(true),
6659
+ write8(true),
6266
6660
  (a) => handleProcess2(getToken, baseUrl, a)
6267
6661
  ],
6268
6662
  [
@@ -6270,7 +6664,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6270
6664
  "Submission completeness",
6271
6665
  COMPLETENESS_DESCRIPTION,
6272
6666
  completenessInputSchema,
6273
- readOnly7,
6667
+ readOnly8,
6274
6668
  (a) => handleCompleteness(getToken, baseUrl, a)
6275
6669
  ],
6276
6670
  [
@@ -6278,7 +6672,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6278
6672
  "Submission facts by metric and year",
6279
6673
  MATRIX_DESCRIPTION,
6280
6674
  matrixInputSchema,
6281
- readOnly7,
6675
+ readOnly8,
6282
6676
  (a) => handleMatrix(getToken, baseUrl, a)
6283
6677
  ],
6284
6678
  [
@@ -6286,7 +6680,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6286
6680
  "Submission figures",
6287
6681
  FACTS_DESCRIPTION,
6288
6682
  factsInputSchema,
6289
- readOnly7,
6683
+ readOnly8,
6290
6684
  (a) => handleFacts(getToken, baseUrl, a)
6291
6685
  ],
6292
6686
  [
@@ -6294,7 +6688,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6294
6688
  "Submission checks",
6295
6689
  CHECKS_DESCRIPTION,
6296
6690
  checksInputSchema,
6297
- readOnly7,
6691
+ readOnly8,
6298
6692
  (a) => handleChecks(getToken, baseUrl, a)
6299
6693
  ],
6300
6694
  [
@@ -6302,7 +6696,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6302
6696
  "Review label mappings",
6303
6697
  REVIEW_DESCRIPTION,
6304
6698
  reviewInputSchema,
6305
- write7(true),
6699
+ write8(true),
6306
6700
  (a) => handleReview(getToken, baseUrl, a)
6307
6701
  ],
6308
6702
  [
@@ -6310,7 +6704,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6310
6704
  "Questions for the client's experts",
6311
6705
  QUESTIONS_DESCRIPTION,
6312
6706
  questionsInputSchema,
6313
- write7(true),
6707
+ write8(true),
6314
6708
  (a) => handleQuestions(getToken, baseUrl, a)
6315
6709
  ],
6316
6710
  [
@@ -6318,7 +6712,7 @@ function registerSubmissionsTools(server, getToken, baseUrl) {
6318
6712
  "Export submission facts",
6319
6713
  EXPORT_DESCRIPTION,
6320
6714
  exportInputSchema,
6321
- readOnly7,
6715
+ readOnly8,
6322
6716
  (a) => handleExport(getToken, baseUrl, a)
6323
6717
  ]
6324
6718
  ];
@@ -6335,7 +6729,7 @@ var INDEX_PERIOD_RE = /^\d{4}(-\d{2}|-Q[1-4]|-H[12])?$/;
6335
6729
  var modelIdArg = zUuid().describe("Price model id (from talonic_price_baseline_models).");
6336
6730
  var fromArg = z.string().regex(MONTH_RE).describe("First month of the evaluation window, `YYYY-MM`.");
6337
6731
  var toArg = z.string().regex(MONTH_RE).describe("Last month of the evaluation window, `YYYY-MM`.");
6338
- var readOnly8 = {
6732
+ var readOnly9 = {
6339
6733
  readOnlyHint: true,
6340
6734
  destructiveHint: false,
6341
6735
  idempotentHint: true,
@@ -6942,7 +7336,7 @@ function handleImport2(getToken, baseUrl, args) {
6942
7336
  );
6943
7337
  }
6944
7338
  function registerPriceBaselineTools(server, getToken, baseUrl) {
6945
- const write8 = (idempotent) => ({
7339
+ const write9 = (idempotent) => ({
6946
7340
  readOnlyHint: false,
6947
7341
  destructiveHint: false,
6948
7342
  idempotentHint: idempotent,
@@ -6954,7 +7348,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
6954
7348
  title: "Find contracts and invoices",
6955
7349
  description: DOCUMENTS_DESCRIPTION,
6956
7350
  inputSchema: documentsInputSchema,
6957
- annotations: readOnly8
7351
+ annotations: readOnly9
6958
7352
  },
6959
7353
  async (args) => handleDocuments(getToken, baseUrl, args)
6960
7354
  );
@@ -6964,7 +7358,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
6964
7358
  title: "Build or enrich a price model from a contract",
6965
7359
  description: EXTRACT_DESCRIPTION,
6966
7360
  inputSchema: extractInputSchema,
6967
- annotations: write8(false)
7361
+ annotations: write9(false)
6968
7362
  },
6969
7363
  async (args) => handleExtract2(getToken, baseUrl, args)
6970
7364
  );
@@ -6974,7 +7368,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
6974
7368
  title: "List or read price models",
6975
7369
  description: MODELS_DESCRIPTION,
6976
7370
  inputSchema: modelsInputSchema,
6977
- annotations: readOnly8
7371
+ annotations: readOnly9
6978
7372
  },
6979
7373
  async (args) => handleModels(getToken, baseUrl, args)
6980
7374
  );
@@ -6984,7 +7378,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
6984
7378
  title: "Edit or confirm a price model",
6985
7379
  description: UPDATE_DESCRIPTION,
6986
7380
  inputSchema: updateInputSchema,
6987
- annotations: write8(true)
7381
+ annotations: write9(true)
6988
7382
  },
6989
7383
  async (args) => handleUpdate(getToken, baseUrl, args)
6990
7384
  );
@@ -6994,7 +7388,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
6994
7388
  title: "Recompute contract prices",
6995
7389
  description: PRICES_DESCRIPTION,
6996
7390
  inputSchema: pricesInputSchema,
6997
- annotations: readOnly8
7391
+ annotations: readOnly9
6998
7392
  },
6999
7393
  async (args) => handlePrices(getToken, baseUrl, args)
7000
7394
  );
@@ -7004,7 +7398,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7004
7398
  title: "Download the price baseline workbook",
7005
7399
  description: WORKBOOK_DESCRIPTION,
7006
7400
  inputSchema: workbookInputSchema,
7007
- annotations: readOnly8
7401
+ annotations: readOnly9
7008
7402
  },
7009
7403
  async (args) => handleWorkbook(getToken, baseUrl, args)
7010
7404
  );
@@ -7014,7 +7408,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7014
7408
  title: "Check an invoice against the contract",
7015
7409
  description: COMPARE_DESCRIPTION,
7016
7410
  inputSchema: compareInputSchema,
7017
- annotations: write8(false)
7411
+ annotations: write9(false)
7018
7412
  },
7019
7413
  async (args) => handleCompare(getToken, baseUrl, args)
7020
7414
  );
@@ -7024,7 +7418,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7024
7418
  title: "Audit-proof invoice",
7025
7419
  description: PROOF_INVOICE_DESCRIPTION,
7026
7420
  inputSchema: proofInvoiceInputSchema,
7027
- annotations: readOnly8
7421
+ annotations: readOnly9
7028
7422
  },
7029
7423
  async (args) => handleProofInvoice(getToken, baseUrl, args)
7030
7424
  );
@@ -7034,7 +7428,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7034
7428
  title: "Index catalog and values",
7035
7429
  description: INDICES_DESCRIPTION,
7036
7430
  inputSchema: indicesInputSchema,
7037
- annotations: readOnly8
7431
+ annotations: readOnly9
7038
7432
  },
7039
7433
  async (args) => handleIndices(getToken, baseUrl, args)
7040
7434
  );
@@ -7044,7 +7438,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7044
7438
  title: "Fetch public index values",
7045
7439
  description: REFRESH_DESCRIPTION2,
7046
7440
  inputSchema: refreshInputSchema,
7047
- annotations: { ...write8(true), openWorldHint: true }
7441
+ annotations: { ...write9(true), openWorldHint: true }
7048
7442
  },
7049
7443
  async (args) => handleRefresh(getToken, baseUrl, args)
7050
7444
  );
@@ -7054,7 +7448,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7054
7448
  title: "Enter sourced index values",
7055
7449
  description: MANUAL_DESCRIPTION,
7056
7450
  inputSchema: manualInputSchema,
7057
- annotations: write8(true)
7451
+ annotations: write9(true)
7058
7452
  },
7059
7453
  async (args) => handleManual(getToken, baseUrl, args)
7060
7454
  );
@@ -7064,7 +7458,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7064
7458
  title: "Contract register and expected invoices",
7065
7459
  description: REGISTER_DESCRIPTION2,
7066
7460
  inputSchema: registerInputSchema2,
7067
- annotations: readOnly8
7461
+ annotations: readOnly9
7068
7462
  },
7069
7463
  async (args) => handleRegister2(getToken, baseUrl, args)
7070
7464
  );
@@ -7074,7 +7468,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7074
7468
  title: "Contract workbook and open inputs",
7075
7469
  description: CONTRACT_DESCRIPTION3,
7076
7470
  inputSchema: contractInputSchema3,
7077
- annotations: readOnly8
7471
+ annotations: readOnly9
7078
7472
  },
7079
7473
  async (args) => handleContract3(getToken, baseUrl, args)
7080
7474
  );
@@ -7084,7 +7478,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7084
7478
  title: "Answer an open contract input",
7085
7479
  description: ANSWER_DESCRIPTION,
7086
7480
  inputSchema: answerInputSchema,
7087
- annotations: write8(true)
7481
+ annotations: write9(true)
7088
7482
  },
7089
7483
  async (args) => handleAnswer(getToken, baseUrl, args)
7090
7484
  );
@@ -7094,7 +7488,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7094
7488
  title: "List assumptions",
7095
7489
  description: ASSUMPTIONS_DESCRIPTION,
7096
7490
  inputSchema: assumptionsInputSchema,
7097
- annotations: readOnly8
7491
+ annotations: readOnly9
7098
7492
  },
7099
7493
  async (args) => handleAssumptions(getToken, baseUrl, args)
7100
7494
  );
@@ -7104,7 +7498,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7104
7498
  title: "Make, replace or withdraw an assumption",
7105
7499
  description: ASSUME_DESCRIPTION,
7106
7500
  inputSchema: assumeInputSchema,
7107
- annotations: { ...write8(false), destructiveHint: true }
7501
+ annotations: { ...write9(false), destructiveHint: true }
7108
7502
  },
7109
7503
  async (args) => handleAssume(getToken, baseUrl, args)
7110
7504
  );
@@ -7114,7 +7508,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7114
7508
  title: "Sync external price data",
7115
7509
  description: SYNC_DESCRIPTION,
7116
7510
  inputSchema: syncInputSchema,
7117
- annotations: { ...write8(true), openWorldHint: true }
7511
+ annotations: { ...write9(true), openWorldHint: true }
7118
7512
  },
7119
7513
  async (args) => handleSync(getToken, baseUrl, args)
7120
7514
  );
@@ -7124,7 +7518,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7124
7518
  title: "Import candidates and status",
7125
7519
  description: IMPORTS_DESCRIPTION,
7126
7520
  inputSchema: importsInputSchema,
7127
- annotations: readOnly8
7521
+ annotations: readOnly9
7128
7522
  },
7129
7523
  async (args) => handleImports(getToken, baseUrl, args)
7130
7524
  );
@@ -7134,7 +7528,7 @@ function registerPriceBaselineTools(server, getToken, baseUrl) {
7134
7528
  title: "Import contracts from data capture",
7135
7529
  description: IMPORT_DESCRIPTION2,
7136
7530
  inputSchema: importInputSchema2,
7137
- annotations: write8(true)
7531
+ annotations: write9(true)
7138
7532
  },
7139
7533
  async (args) => handleImport2(getToken, baseUrl, args)
7140
7534
  );
@@ -7945,7 +8339,7 @@ async function resolveFieldId(getToken, baseUrl, args) {
7945
8339
  resolution: { matched_by: resolved.matched_by, redirected_from: resolved.redirected_from }
7946
8340
  };
7947
8341
  }
7948
- var LIST_DESCRIPTION3 = [
8342
+ var LIST_DESCRIPTION4 = [
7949
8343
  "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.",
7950
8344
  "",
7951
8345
  "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.",
@@ -7974,7 +8368,7 @@ async function handleListFields(getToken, baseUrl, args) {
7974
8368
  })
7975
8369
  );
7976
8370
  }
7977
- var GET_DESCRIPTION2 = [
8371
+ var GET_DESCRIPTION3 = [
7978
8372
  "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).",
7979
8373
  "",
7980
8374
  "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.",
@@ -8059,7 +8453,7 @@ function registerFieldTools(server, getToken, baseUrl) {
8059
8453
  "talonic_list_fields",
8060
8454
  {
8061
8455
  title: "List fields",
8062
- description: LIST_DESCRIPTION3,
8456
+ description: LIST_DESCRIPTION4,
8063
8457
  inputSchema: listFieldsInputSchema,
8064
8458
  annotations: {
8065
8459
  title: "List fields",
@@ -8076,7 +8470,7 @@ function registerFieldTools(server, getToken, baseUrl) {
8076
8470
  "talonic_get_field",
8077
8471
  {
8078
8472
  title: "Look up a field",
8079
- description: GET_DESCRIPTION2,
8473
+ description: GET_DESCRIPTION3,
8080
8474
  inputSchema: getFieldInputSchema,
8081
8475
  annotations: {
8082
8476
  title: "Look up a field",
@@ -8309,7 +8703,7 @@ function registerAgentRegistryTools(server, getToken, baseUrl, opts = {}) {
8309
8703
  async (args) => handleInvokeAgentTool(getToken, baseUrl, args)
8310
8704
  );
8311
8705
  }
8312
- var LIST_DESCRIPTION4 = [
8706
+ var LIST_DESCRIPTION5 = [
8313
8707
  "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.",
8314
8708
  "",
8315
8709
  "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.",
@@ -8317,7 +8711,7 @@ var LIST_DESCRIPTION4 = [
8317
8711
  "ARGS: optional `search` (name contains, case-insensitive), `limit` (1\u2013100, default 20), `cursor` (from pagination.next_cursor), `order` (asc|desc by updated_at).",
8318
8712
  "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 } }."
8319
8713
  ].join("\n");
8320
- var GET_DESCRIPTION3 = [
8714
+ var GET_DESCRIPTION4 = [
8321
8715
  "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).",
8322
8716
  "",
8323
8717
  "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.",
@@ -8369,7 +8763,7 @@ function registerSpecTools(server, getToken, baseUrl) {
8369
8763
  "talonic_list_specs",
8370
8764
  {
8371
8765
  title: "List pipelines",
8372
- description: LIST_DESCRIPTION4,
8766
+ description: LIST_DESCRIPTION5,
8373
8767
  inputSchema: listSpecsInputSchema,
8374
8768
  annotations: { title: "List pipelines", ...READ_ONLY4 },
8375
8769
  _meta: widgetToolMeta("listSpecs")
@@ -8380,7 +8774,7 @@ function registerSpecTools(server, getToken, baseUrl) {
8380
8774
  "talonic_get_spec",
8381
8775
  {
8382
8776
  title: "Look up a pipeline",
8383
- description: GET_DESCRIPTION3,
8777
+ description: GET_DESCRIPTION4,
8384
8778
  inputSchema: getSpecInputSchema,
8385
8779
  annotations: { title: "Look up a pipeline", ...READ_ONLY4 },
8386
8780
  _meta: widgetToolMeta("getSpec")
@@ -8394,7 +8788,7 @@ function mapRunStatus(raw) {
8394
8788
  return "failed";
8395
8789
  return "processing";
8396
8790
  }
8397
- var RUN_DESCRIPTION2 = [
8791
+ var RUN_DESCRIPTION3 = [
8398
8792
  "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.",
8399
8793
  "",
8400
8794
  "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.",
@@ -8609,7 +9003,7 @@ function registerRunTools(server, getToken, baseUrl) {
8609
9003
  "talonic_run_spec",
8610
9004
  {
8611
9005
  title: "Run a pipeline",
8612
- description: RUN_DESCRIPTION2,
9006
+ description: RUN_DESCRIPTION3,
8613
9007
  inputSchema: runSpecInputSchema,
8614
9008
  annotations: {
8615
9009
  title: "Run a pipeline",
@@ -8785,7 +9179,7 @@ function registerAskTools(server, getToken, baseUrl) {
8785
9179
 
8786
9180
  // package.json
8787
9181
  var package_default = {
8788
- version: "0.1.101"};
9182
+ version: "0.1.103"};
8789
9183
 
8790
9184
  // src/version.ts
8791
9185
  var VERSION = package_default.version;
@@ -8974,6 +9368,9 @@ function createServer(options) {
8974
9368
  if (options.includePortfolioTools) {
8975
9369
  registerPortfolioTools(server, rawToken, baseUrl);
8976
9370
  }
9371
+ if (options.includeProcessesTools) {
9372
+ registerProcessesTools(server, rawToken, baseUrl);
9373
+ }
8977
9374
  if (options.includeMasterRecordsTools) {
8978
9375
  registerMasterRecordsTools(server, rawToken, baseUrl);
8979
9376
  }
@@ -9043,6 +9440,7 @@ var submissionsAccessCached = makeAccessCache(pathProbe("/v1/submissions/specs")
9043
9440
  var priceBaselineAccessCached = makeAccessCache(pathProbe("/v1/price-baseline/indices"));
9044
9441
  var docGenAccessCached = makeAccessCache(pathProbe("/v1/doc-gen/status"));
9045
9442
  var portfolioAccessCached = makeAccessCache(pathProbe("/v1/portfolio"));
9443
+ var processesAccessCached = makeAccessCache(pathProbe("/v1/processes"));
9046
9444
  var partiesAccessCached = makeAccessCache(pathProbe("/v1/parties/status"));
9047
9445
  var growthAccessCached = makeAccessCache(pathProbe("/v1/growth/access"));
9048
9446
  var adminAgentTaskAccessCached = makeAccessCache(pathProbe("/v1/agent-tasks/admin/access"));
@@ -9340,6 +9738,7 @@ function createRequestHandler(options = {}) {
9340
9738
  includeSubmissionsTools,
9341
9739
  includePriceBaselineTools,
9342
9740
  includePortfolioTools,
9741
+ includeProcessesTools,
9343
9742
  includeAgentTaskTools,
9344
9743
  includeDecisionTaskTools
9345
9744
  ] = await Promise.all([
@@ -9353,6 +9752,7 @@ function createRequestHandler(options = {}) {
9353
9752
  (options.submissionsAccess ?? submissionsAccessCached)(token),
9354
9753
  (options.priceBaselineAccess ?? priceBaselineAccessCached)(token),
9355
9754
  (options.portfolioAccess ?? portfolioAccessCached)(token),
9755
+ (options.processesAccess ?? processesAccessCached)(token),
9356
9756
  (options.agentTasksAccess ?? agentTasksAccessCached)(token),
9357
9757
  (options.decisionTasksAccess ?? decisionTasksAccessCached)(token)
9358
9758
  ]);
@@ -9368,6 +9768,7 @@ function createRequestHandler(options = {}) {
9368
9768
  includeSubmissionsTools,
9369
9769
  includePriceBaselineTools,
9370
9770
  includePortfolioTools,
9771
+ includeProcessesTools,
9371
9772
  includeAgentTaskTools,
9372
9773
  includeDecisionTaskTools,
9373
9774
  ...process.env["TALONIC_BASE_URL"] ? { baseUrl: process.env["TALONIC_BASE_URL"] } : {},
@@ -9417,6 +9818,6 @@ if (isDirectInvocation()) {
9417
9818
  });
9418
9819
  }
9419
9820
 
9420
- export { adminAgentTaskAccessCached, agentTasksAccessCached, apAccessCached, contractsAccessCached, createRequestHandler, decisionTasksAccessCached, docGenAccessCached, growthAccessCached, isOpenAiClient, masterRecordsAccessCached, partiesAccessCached, portfolioAccessCached, priceBaselineAccessCached, submissionsAccessCached, tokenAcceptedCached };
9821
+ export { adminAgentTaskAccessCached, agentTasksAccessCached, apAccessCached, contractsAccessCached, createRequestHandler, decisionTasksAccessCached, docGenAccessCached, growthAccessCached, isOpenAiClient, masterRecordsAccessCached, partiesAccessCached, portfolioAccessCached, priceBaselineAccessCached, processesAccessCached, submissionsAccessCached, tokenAcceptedCached };
9421
9822
  //# sourceMappingURL=http-server.js.map
9422
9823
  //# sourceMappingURL=http-server.js.map