@talonic/mcp 0.1.108 → 0.1.110
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 +13 -0
- package/dist/content.js +201 -1
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +56 -3
- 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/server.js
CHANGED
|
@@ -8218,6 +8218,10 @@ var CHECK_DESCRIPTION = "What a draft still needs before it can go live (`stillN
|
|
|
8218
8218
|
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.";
|
|
8219
8219
|
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.";
|
|
8220
8220
|
var VERSIONS_DESCRIPTION = "The published versions of a process, newest first, with who published and why.";
|
|
8221
|
+
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`).";
|
|
8222
|
+
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.";
|
|
8223
|
+
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.";
|
|
8224
|
+
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.";
|
|
8221
8225
|
var ROLLBACK_DESCRIPTION = "Make an earlier published version live again. Changes what runs for real: call only when the user asks for it.";
|
|
8222
8226
|
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.";
|
|
8223
8227
|
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.";
|
|
@@ -8454,6 +8458,53 @@ function registerProcessesTools(server, getToken, baseUrl) {
|
|
|
8454
8458
|
readOnly9,
|
|
8455
8459
|
(a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/versions`))
|
|
8456
8460
|
],
|
|
8461
|
+
[
|
|
8462
|
+
"talonic_process_publish_approval",
|
|
8463
|
+
"Where a process change stands",
|
|
8464
|
+
PUBLISH_APPROVAL_DESCRIPTION,
|
|
8465
|
+
{ process_id: zUuid() },
|
|
8466
|
+
readOnly9,
|
|
8467
|
+
(a) => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/${pid(a)}/publish-approval`))
|
|
8468
|
+
],
|
|
8469
|
+
[
|
|
8470
|
+
"talonic_process_decide_change",
|
|
8471
|
+
"Approve or turn down a process change",
|
|
8472
|
+
DECIDE_CHANGE_DESCRIPTION,
|
|
8473
|
+
{
|
|
8474
|
+
process_id: zUuid(),
|
|
8475
|
+
decision: z.enum(["approved", "rejected"]).describe("The user's decision"),
|
|
8476
|
+
reason: z.string().max(2e3).optional().describe("Why; required when the decision is rejected")
|
|
8477
|
+
},
|
|
8478
|
+
destructive,
|
|
8479
|
+
(a) => runTool(
|
|
8480
|
+
() => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/publish-approval`, {
|
|
8481
|
+
body: a.reason ? { decision: a.decision, reason: a.reason } : { decision: a.decision }
|
|
8482
|
+
})
|
|
8483
|
+
)
|
|
8484
|
+
],
|
|
8485
|
+
[
|
|
8486
|
+
"talonic_process_hand_in_places",
|
|
8487
|
+
"Where I hand documents in",
|
|
8488
|
+
HAND_IN_PLACES_DESCRIPTION,
|
|
8489
|
+
{},
|
|
8490
|
+
readOnly9,
|
|
8491
|
+
() => runTool(() => apiJson(getToken, baseUrl, "GET", `${BASE}/hand-ins`))
|
|
8492
|
+
],
|
|
8493
|
+
[
|
|
8494
|
+
"talonic_process_copy",
|
|
8495
|
+
"Copy a process",
|
|
8496
|
+
COPY_DESCRIPTION,
|
|
8497
|
+
{
|
|
8498
|
+
process_id: zUuid(),
|
|
8499
|
+
name: z.string().min(1).max(200).optional().describe("What the copy is called")
|
|
8500
|
+
},
|
|
8501
|
+
write9,
|
|
8502
|
+
(a) => runTool(
|
|
8503
|
+
() => apiJson(getToken, baseUrl, "POST", `${BASE}/${pid(a)}/copy`, {
|
|
8504
|
+
body: a.name ? { name: a.name } : {}
|
|
8505
|
+
})
|
|
8506
|
+
)
|
|
8507
|
+
],
|
|
8457
8508
|
[
|
|
8458
8509
|
"talonic_process_rollback",
|
|
8459
8510
|
"Roll a process back",
|
|
@@ -18306,7 +18357,7 @@ function registerOperationsTools(server, getToken, baseUrl, families) {
|
|
|
18306
18357
|
|
|
18307
18358
|
// package.json
|
|
18308
18359
|
var package_default = {
|
|
18309
|
-
version: "0.1.
|
|
18360
|
+
version: "0.1.110"};
|
|
18310
18361
|
|
|
18311
18362
|
// src/version.ts
|
|
18312
18363
|
var VERSION = package_default.version;
|