@integrity-labs/agt-cli 0.28.147 → 0.28.149

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.
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __augmentedCreateRequire } from 'module';
3
+ globalThis.require ??= __augmentedCreateRequire(import.meta.url);
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
4
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
package/dist/mcp/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __augmentedCreateRequire } from 'module';
3
+ globalThis.require ??= __augmentedCreateRequire(import.meta.url);
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
4
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -21810,7 +21812,16 @@ server.tool(
21810
21812
  id: external_exports.string().optional().describe("Item UUID (preferred)"),
21811
21813
  title: external_exports.string().optional().describe("Item title for fuzzy match (if no id)"),
21812
21814
  result: external_exports.string().optional().describe("What was produced/delivered"),
21813
- notes: external_exports.string().optional().describe("Completion notes")
21815
+ notes: external_exports.string().optional().describe("Completion notes"),
21816
+ // ENG-6094 / ENG-6839: conditional scheduled-task delivery assertion.
21817
+ // Ignored for normal cards; only meaningful on a scheduled routine whose
21818
+ // delivery_policy is 'conditional' ("only when it matters").
21819
+ suppress_delivery: external_exports.boolean().optional().describe(
21820
+ "Conditional scheduled tasks only. true = record the result on the card but do NOT message the user (the task's do-not-notify condition was not met this run). false = ASSERT delivery because a concrete trigger fired (pair with delivery_reason). Leave unset for normal tasks."
21821
+ ),
21822
+ delivery_reason: external_exports.string().optional().describe(
21823
+ "Conditional scheduled tasks only. When asserting delivery (suppress_delivery: false), name the concrete trigger that fired (e.g. 'urgent email from the CEO', 'CI failing on main'). A vacuous reason ('status check', 'all clear', 'no change') is rejected and the result stays silent."
21824
+ )
21814
21825
  },
21815
21826
  async (params) => {
21816
21827
  if (!params.id && !params.title) {
@@ -21827,16 +21838,19 @@ server.tool(
21827
21838
  title: params.title,
21828
21839
  status: "done",
21829
21840
  result: params.result,
21830
- notes: params.notes
21841
+ notes: params.notes,
21842
+ suppress_delivery: params.suppress_delivery,
21843
+ delivery_reason: params.delivery_reason
21831
21844
  }
21832
21845
  ]
21833
21846
  });
21834
21847
  const label = params.id ?? params.title;
21848
+ const deliveryNote = params.suppress_delivery === true ? " Delivery suppressed (recorded on the card only)." : params.suppress_delivery === false ? " Delivery asserted." : "";
21835
21849
  return {
21836
21850
  content: [
21837
21851
  {
21838
21852
  type: "text",
21839
- text: data.updated > 0 ? `Marked "${label}" as done.${params.result ? ` Result: ${params.result}` : ""}` : `Item "${label}" not found.`
21853
+ text: data.updated > 0 ? `Marked "${label}" as done.${params.result ? ` Result: ${params.result}` : ""}${deliveryNote}` : `Item "${label}" not found.`
21840
21854
  }
21841
21855
  ]
21842
21856
  };
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __augmentedCreateRequire } from 'module';
3
+ globalThis.require ??= __augmentedCreateRequire(import.meta.url);
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
4
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __augmentedCreateRequire } from 'module';
3
+ globalThis.require ??= __augmentedCreateRequire(import.meta.url);
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
4
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire as __augmentedCreateRequire } from 'module';
3
+ globalThis.require ??= __augmentedCreateRequire(import.meta.url);
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
4
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;