@talonic/mcp 0.1.108 → 0.1.109
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/CHANGELOG.md +7 -0
- package/dist/content.js +200 -0
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +52 -1
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +52 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +52 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/http-server.js
CHANGED
|
@@ -8142,6 +8142,10 @@ var CHECK_DESCRIPTION = "What a draft still needs before it can go live (`stillN
|
|
|
8142
8142
|
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.";
|
|
8143
8143
|
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.";
|
|
8144
8144
|
var VERSIONS_DESCRIPTION = "The published versions of a process, newest first, with who published and why.";
|
|
8145
|
+
var PUBLISH_APPROVAL_DESCRIPTION = "Where a change to a process stands before it goes live: whether the process needs an approver, who the approvers are, who asked, what was decided, and the change in plain lines (`changes`). It always speaks of exactly what talonic_process_publish would make live now. `state` is not_needed, nothing_to_publish, not_requested, waiting, approved or rejected. Call after talonic_process_publish answered that the change needs approval, or to see what waits for the user's decision (`canDecide`).";
|
|
8146
|
+
var DECIDE_CHANGE_DESCRIPTION = "Approve or turn down the change to a process that is waiting for approval, as the user. Only one of the process's approvers may answer, and never the person who asked for the change. Call talonic_process_publish_approval first, show the user `changes` and who asked, and call this only after the user said which. A rejection needs the user's reason. The answer counts for exactly the waiting content: an edit afterwards needs a new approval. Approving does not publish; talonic_process_publish does.";
|
|
8147
|
+
var HAND_IN_PLACES_DESCRIPTION = "Where the user hands documents in: the live processes whose start names them, each with what it asks with a document (`fields`, keyed q1, q2, \u2026) and what the user handed in lately with its state (reading, started, failed). Handing a file in happens on the Hand in page of the app; this tool only lists the places.";
|
|
8148
|
+
var COPY_DESCRIPTION = "Copy a process as a new DRAFT in the same workspace, with the same steps, rules, people, destinations and approvers. Nothing runs until the copy is published. Use it for the same process at another site, team or document type, then change the copy with talonic_process_change.";
|
|
8145
8149
|
var ROLLBACK_DESCRIPTION = "Make an earlier published version live again. Changes what runs for real: call only when the user asks for it.";
|
|
8146
8150
|
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.";
|
|
8147
8151
|
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.";
|
|
@@ -8378,6 +8382,53 @@ function registerProcessesTools(server, getToken, baseUrl) {
|
|
|
8378
8382
|
readOnly9,
|
|
8379
8383
|
(a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/versions`))
|
|
8380
8384
|
],
|
|
8385
|
+
[
|
|
8386
|
+
"talonic_process_publish_approval",
|
|
8387
|
+
"Where a process change stands",
|
|
8388
|
+
PUBLISH_APPROVAL_DESCRIPTION,
|
|
8389
|
+
{ process_id: zUuid() },
|
|
8390
|
+
readOnly9,
|
|
8391
|
+
(a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/publish-approval`))
|
|
8392
|
+
],
|
|
8393
|
+
[
|
|
8394
|
+
"talonic_process_decide_change",
|
|
8395
|
+
"Approve or turn down a process change",
|
|
8396
|
+
DECIDE_CHANGE_DESCRIPTION,
|
|
8397
|
+
{
|
|
8398
|
+
process_id: zUuid(),
|
|
8399
|
+
decision: z.enum(["approved", "rejected"]).describe("The user's decision"),
|
|
8400
|
+
reason: z.string().max(2e3).optional().describe("Why; required when the decision is rejected")
|
|
8401
|
+
},
|
|
8402
|
+
destructive,
|
|
8403
|
+
(a) => runTool(
|
|
8404
|
+
() => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/publish-approval`, {
|
|
8405
|
+
body: a.reason ? { decision: a.decision, reason: a.reason } : { decision: a.decision }
|
|
8406
|
+
})
|
|
8407
|
+
)
|
|
8408
|
+
],
|
|
8409
|
+
[
|
|
8410
|
+
"talonic_process_hand_in_places",
|
|
8411
|
+
"Where I hand documents in",
|
|
8412
|
+
HAND_IN_PLACES_DESCRIPTION,
|
|
8413
|
+
{},
|
|
8414
|
+
readOnly9,
|
|
8415
|
+
() => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/hand-ins`))
|
|
8416
|
+
],
|
|
8417
|
+
[
|
|
8418
|
+
"talonic_process_copy",
|
|
8419
|
+
"Copy a process",
|
|
8420
|
+
COPY_DESCRIPTION,
|
|
8421
|
+
{
|
|
8422
|
+
process_id: zUuid(),
|
|
8423
|
+
name: z.string().min(1).max(200).optional().describe("What the copy is called")
|
|
8424
|
+
},
|
|
8425
|
+
write9,
|
|
8426
|
+
(a) => runTool(
|
|
8427
|
+
() => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/copy`, {
|
|
8428
|
+
body: a.name ? { name: a.name } : {}
|
|
8429
|
+
})
|
|
8430
|
+
)
|
|
8431
|
+
],
|
|
8381
8432
|
[
|
|
8382
8433
|
"talonic_process_rollback",
|
|
8383
8434
|
"Roll a process back",
|
|
@@ -18128,7 +18179,7 @@ function registerOperationsTools(server, getToken, baseUrl, families) {
|
|
|
18128
18179
|
|
|
18129
18180
|
// package.json
|
|
18130
18181
|
var package_default = {
|
|
18131
|
-
version: "0.1.
|
|
18182
|
+
version: "0.1.109"};
|
|
18132
18183
|
|
|
18133
18184
|
// src/version.ts
|
|
18134
18185
|
var VERSION = package_default.version;
|