@talonic/mcp 0.1.87 → 0.1.88
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 +1 -0
- package/dist/content.js +5 -0
- package/dist/content.js.map +1 -1
- package/dist/http-server.js +12 -6
- package/dist/http-server.js.map +1 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/dist/server.js +12 -6
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -4405,7 +4405,8 @@ var outputValue = z.object({
|
|
|
4405
4405
|
var outputs = z.record(z.string().min(1), outputValue).describe(
|
|
4406
4406
|
"Output field key to { value, confidence?, reasoning?, escalate?, quote?, document_id? }. Use only declared fields."
|
|
4407
4407
|
);
|
|
4408
|
-
var
|
|
4408
|
+
var pipelineId = z.string().uuid().optional().describe("Optional pipeline (run) UUID: only that pipeline's tasks.");
|
|
4409
|
+
var listInput = { status, limit, cursor, pipeline_id: pipelineId };
|
|
4409
4410
|
var idInput = { task_id: taskId };
|
|
4410
4411
|
var heartbeatInput = { task_id: taskId, execution_epoch: executionEpoch };
|
|
4411
4412
|
var submitInput = {
|
|
@@ -4454,7 +4455,12 @@ async function agentTaskRequest(getToken, baseUrl, request) {
|
|
|
4454
4455
|
}
|
|
4455
4456
|
}
|
|
4456
4457
|
function listQuery(args) {
|
|
4457
|
-
return {
|
|
4458
|
+
return {
|
|
4459
|
+
status: args.status,
|
|
4460
|
+
limit: args.limit,
|
|
4461
|
+
cursor: args.cursor,
|
|
4462
|
+
pipeline_id: args.pipeline_id
|
|
4463
|
+
};
|
|
4458
4464
|
}
|
|
4459
4465
|
function adminHeaders(args) {
|
|
4460
4466
|
return {
|
|
@@ -4565,9 +4571,9 @@ var DESCRIPTIONS = {
|
|
|
4565
4571
|
list: [
|
|
4566
4572
|
"List Agent-stage tasks visible to this Talonic workspace credential.",
|
|
4567
4573
|
"",
|
|
4568
|
-
"USE WHEN: looking for external-agent work to process; begin with status 'available'.",
|
|
4574
|
+
"USE WHEN: looking for external-agent work to process; begin with status 'available'. To take a batch of one pipeline (e.g. 'take 10 tasks of pipeline X'), list with pipeline_id and status 'available', then claim each with talonic_claim_agent_task; a task another agent took returns HTTP 409, so skip it and take the next.",
|
|
4569
4575
|
"NOT FOR: reading the immutable task payload (use talonic_get_agent_task) or taking a lease (use talonic_claim_agent_task).",
|
|
4570
|
-
"ARGS: optional status, limit, and cursor. RETURNS: metadata only plus pagination.next_cursor."
|
|
4576
|
+
"ARGS: optional status, pipeline_id, limit, and cursor. RETURNS: metadata only plus pagination.next_cursor."
|
|
4571
4577
|
].join("\n"),
|
|
4572
4578
|
get: [
|
|
4573
4579
|
"Fetch one Agent-stage task's immutable input snapshot, instructions, and declared output contract. This disclosure is audited.",
|
|
@@ -4581,7 +4587,7 @@ var DESCRIPTIONS = {
|
|
|
4581
4587
|
"",
|
|
4582
4588
|
"USE WHEN: ready to process a task. Save the returned execution_epoch and lease_expires_at.",
|
|
4583
4589
|
"NOT FOR: merely inspecting work (use talonic_get_agent_task) or extending an active lease (use talonic_heartbeat_agent_task).",
|
|
4584
|
-
"A conflicting live claim returns HTTP 409. A successful claim returns the task payload."
|
|
4590
|
+
"A conflicting live claim returns HTTP 409. A successful claim returns the task payload: input_snapshot, instructions, and output_contract, whose entries carry each field's Spec rules (description) and allowed codes (enumValues). Review the documents against those rules."
|
|
4585
4591
|
].join("\n"),
|
|
4586
4592
|
heartbeat: [
|
|
4587
4593
|
"Extend the lease on a claimed Agent-stage task.",
|
|
@@ -5923,7 +5929,7 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
5923
5929
|
|
|
5924
5930
|
// package.json
|
|
5925
5931
|
var package_default = {
|
|
5926
|
-
version: "0.1.
|
|
5932
|
+
version: "0.1.88"};
|
|
5927
5933
|
|
|
5928
5934
|
// src/version.ts
|
|
5929
5935
|
var VERSION = package_default.version;
|