@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.
@@ -4420,7 +4420,8 @@ var outputValue = z.object({
4420
4420
  var outputs = z.record(z.string().min(1), outputValue).describe(
4421
4421
  "Output field key to { value, confidence?, reasoning?, escalate?, quote?, document_id? }. Use only declared fields."
4422
4422
  );
4423
- var listInput = { status, limit, cursor };
4423
+ var pipelineId = z.string().uuid().optional().describe("Optional pipeline (run) UUID: only that pipeline's tasks.");
4424
+ var listInput = { status, limit, cursor, pipeline_id: pipelineId };
4424
4425
  var idInput = { task_id: taskId };
4425
4426
  var heartbeatInput = { task_id: taskId, execution_epoch: executionEpoch };
4426
4427
  var submitInput = {
@@ -4469,7 +4470,12 @@ async function agentTaskRequest(getToken, baseUrl, request) {
4469
4470
  }
4470
4471
  }
4471
4472
  function listQuery(args) {
4472
- return { status: args.status, limit: args.limit, cursor: args.cursor };
4473
+ return {
4474
+ status: args.status,
4475
+ limit: args.limit,
4476
+ cursor: args.cursor,
4477
+ pipeline_id: args.pipeline_id
4478
+ };
4473
4479
  }
4474
4480
  function adminHeaders(args) {
4475
4481
  return {
@@ -4580,9 +4586,9 @@ var DESCRIPTIONS = {
4580
4586
  list: [
4581
4587
  "List Agent-stage tasks visible to this Talonic workspace credential.",
4582
4588
  "",
4583
- "USE WHEN: looking for external-agent work to process; begin with status 'available'.",
4589
+ "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.",
4584
4590
  "NOT FOR: reading the immutable task payload (use talonic_get_agent_task) or taking a lease (use talonic_claim_agent_task).",
4585
- "ARGS: optional status, limit, and cursor. RETURNS: metadata only plus pagination.next_cursor."
4591
+ "ARGS: optional status, pipeline_id, limit, and cursor. RETURNS: metadata only plus pagination.next_cursor."
4586
4592
  ].join("\n"),
4587
4593
  get: [
4588
4594
  "Fetch one Agent-stage task's immutable input snapshot, instructions, and declared output contract. This disclosure is audited.",
@@ -4596,7 +4602,7 @@ var DESCRIPTIONS = {
4596
4602
  "",
4597
4603
  "USE WHEN: ready to process a task. Save the returned execution_epoch and lease_expires_at.",
4598
4604
  "NOT FOR: merely inspecting work (use talonic_get_agent_task) or extending an active lease (use talonic_heartbeat_agent_task).",
4599
- "A conflicting live claim returns HTTP 409. A successful claim returns the task payload."
4605
+ "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."
4600
4606
  ].join("\n"),
4601
4607
  heartbeat: [
4602
4608
  "Extend the lease on a claimed Agent-stage task.",
@@ -5950,7 +5956,7 @@ function registerAskTools(server, getToken, baseUrl) {
5950
5956
 
5951
5957
  // package.json
5952
5958
  var package_default = {
5953
- version: "0.1.87"};
5959
+ version: "0.1.88"};
5954
5960
 
5955
5961
  // src/version.ts
5956
5962
  var VERSION = package_default.version;