@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/index.js
CHANGED
|
@@ -4358,7 +4358,8 @@ var outputValue = z.object({
|
|
|
4358
4358
|
var outputs = z.record(z.string().min(1), outputValue).describe(
|
|
4359
4359
|
"Output field key to { value, confidence?, reasoning?, escalate?, quote?, document_id? }. Use only declared fields."
|
|
4360
4360
|
);
|
|
4361
|
-
var
|
|
4361
|
+
var pipelineId = z.string().uuid().optional().describe("Optional pipeline (run) UUID: only that pipeline's tasks.");
|
|
4362
|
+
var listInput = { status, limit, cursor, pipeline_id: pipelineId };
|
|
4362
4363
|
var idInput = { task_id: taskId };
|
|
4363
4364
|
var heartbeatInput = { task_id: taskId, execution_epoch: executionEpoch };
|
|
4364
4365
|
var submitInput = {
|
|
@@ -4407,7 +4408,12 @@ async function agentTaskRequest(getToken, baseUrl, request) {
|
|
|
4407
4408
|
}
|
|
4408
4409
|
}
|
|
4409
4410
|
function listQuery(args) {
|
|
4410
|
-
return {
|
|
4411
|
+
return {
|
|
4412
|
+
status: args.status,
|
|
4413
|
+
limit: args.limit,
|
|
4414
|
+
cursor: args.cursor,
|
|
4415
|
+
pipeline_id: args.pipeline_id
|
|
4416
|
+
};
|
|
4411
4417
|
}
|
|
4412
4418
|
function adminHeaders(args) {
|
|
4413
4419
|
return {
|
|
@@ -4507,9 +4513,9 @@ var DESCRIPTIONS = {
|
|
|
4507
4513
|
list: [
|
|
4508
4514
|
"List Agent-stage tasks visible to this Talonic workspace credential.",
|
|
4509
4515
|
"",
|
|
4510
|
-
"USE WHEN: looking for external-agent work to process; begin with status 'available'.",
|
|
4516
|
+
"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.",
|
|
4511
4517
|
"NOT FOR: reading the immutable task payload (use talonic_get_agent_task) or taking a lease (use talonic_claim_agent_task).",
|
|
4512
|
-
"ARGS: optional status, limit, and cursor. RETURNS: metadata only plus pagination.next_cursor."
|
|
4518
|
+
"ARGS: optional status, pipeline_id, limit, and cursor. RETURNS: metadata only plus pagination.next_cursor."
|
|
4513
4519
|
].join("\n"),
|
|
4514
4520
|
get: [
|
|
4515
4521
|
"Fetch one Agent-stage task's immutable input snapshot, instructions, and declared output contract. This disclosure is audited.",
|
|
@@ -4523,7 +4529,7 @@ var DESCRIPTIONS = {
|
|
|
4523
4529
|
"",
|
|
4524
4530
|
"USE WHEN: ready to process a task. Save the returned execution_epoch and lease_expires_at.",
|
|
4525
4531
|
"NOT FOR: merely inspecting work (use talonic_get_agent_task) or extending an active lease (use talonic_heartbeat_agent_task).",
|
|
4526
|
-
"A conflicting live claim returns HTTP 409. A successful claim returns the task payload."
|
|
4532
|
+
"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."
|
|
4527
4533
|
].join("\n"),
|
|
4528
4534
|
heartbeat: [
|
|
4529
4535
|
"Extend the lease on a claimed Agent-stage task.",
|
|
@@ -5865,7 +5871,7 @@ function registerAskTools(server, getToken, baseUrl) {
|
|
|
5865
5871
|
|
|
5866
5872
|
// package.json
|
|
5867
5873
|
var package_default = {
|
|
5868
|
-
version: "0.1.
|
|
5874
|
+
version: "0.1.88"};
|
|
5869
5875
|
|
|
5870
5876
|
// src/version.ts
|
|
5871
5877
|
var VERSION = package_default.version;
|