@integrity-labs/agt-cli 0.28.771 → 0.28.772

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/dist/bin/agt.js CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  success,
42
42
  table,
43
43
  warn
44
- } from "../chunk-BOYUCA64.js";
44
+ } from "../chunk-SBAX57SN.js";
45
45
  import {
46
46
  getProjectDir,
47
47
  isSessionResumeDisabled,
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.771" : "dev";
5470
+ var cliVersion = true ? "0.28.772" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6658,7 +6658,7 @@ function handleError(err) {
6658
6658
  }
6659
6659
 
6660
6660
  // src/bin/agt.ts
6661
- var cliVersion2 = true ? "0.28.771" : "dev";
6661
+ var cliVersion2 = true ? "0.28.772" : "dev";
6662
6662
  var program = new Command();
6663
6663
  program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
6664
6664
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -6452,7 +6452,7 @@ function exchangeFailureKind(err) {
6452
6452
  }
6453
6453
 
6454
6454
  // src/lib/api-client.ts
6455
- var agtCliVersion = true ? "0.28.771" : "dev";
6455
+ var agtCliVersion = true ? "0.28.772" : "dev";
6456
6456
  var lastConfigHash = null;
6457
6457
  function setConfigHash(hash) {
6458
6458
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -10655,4 +10655,4 @@ export {
10655
10655
  managerInstallSystemUnitCommand,
10656
10656
  managerUninstallSystemUnitCommand
10657
10657
  };
10658
- //# sourceMappingURL=chunk-BOYUCA64.js.map
10658
+ //# sourceMappingURL=chunk-SBAX57SN.js.map
@@ -58,7 +58,7 @@ import {
58
58
  safeWriteJsonAtomic,
59
59
  setConfigHash,
60
60
  tripClass
61
- } from "../chunk-BOYUCA64.js";
61
+ } from "../chunk-SBAX57SN.js";
62
62
  import {
63
63
  getProjectDir as getProjectDir2,
64
64
  getReadyTasks,
@@ -13530,7 +13530,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
13530
13530
  var lastVersionCheckAt = 0;
13531
13531
  var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
13532
13532
  var lastResponsivenessProbeAt = 0;
13533
- var agtCliVersion = true ? "0.28.771" : "dev";
13533
+ var agtCliVersion = true ? "0.28.772" : "dev";
13534
13534
  function resolveBrewPath(execFileSync2) {
13535
13535
  try {
13536
13536
  const out = execFileSync2("which", ["brew"], { timeout: 5e3 }).toString().trim();
package/dist/mcp/xero.js CHANGED
@@ -116864,6 +116864,15 @@ async function listXeroAgedPayablesByContact(contactId, reportDate, invoicesFrom
116864
116864
  }
116865
116865
  }
116866
116866
 
116867
+ // src/helpers/unreconciled-blind-spot.ts
116868
+ var UNRECONCILED_BLIND_SPOT_NOTE = "INCOMPLETE BY DESIGN \u2014 read before quoting any figure from this result.\nXero's Accounting API exposes LEDGER records. Bank STATEMENT LINES that have never been matched into the ledger are not exposed at all, and neither are any notes left on them. Money can therefore be in the bank account and absent from this data.\nSo any receivables, payables, cashflow or aged-debtors figure derived from this may be INCOMPLETE OR INACCURATE, and THE SIZE AND DIRECTION OF THE ERROR CANNOT BE DETERMINED FROM THIS RESPONSE \u2014 an unmatched line might be a customer receipt, a supplier payment or a bank fee, and nothing here says which, or how many there are. An invoice can read AUTHORISED and fully unpaid while the customer's payment is already sitting in the bank account.\nWhen reporting a figure from this data, say that unmatched bank activity is not included and that you cannot see it. Do not describe a customer as overdue, and do not request or draft a payment chase, on this evidence alone: check the Xero bank reconciliation screen, or ask a human to. (CS-1638)";
116869
+ function unreconciledBlindSpotBlock() {
116870
+ return { type: "text", text: UNRECONCILED_BLIND_SPOT_NOTE };
116871
+ }
116872
+ function withUnreconciledBlindSpotNote(result) {
116873
+ return { ...result, content: [...result.content, unreconciledBlindSpotBlock()] };
116874
+ }
116875
+
116867
116876
  // src/tools/list/list-aged-payables-by-contact.tool.ts
116868
116877
  var ListAgedPayablesByContact = CreateXeroTool(
116869
116878
  "list-aged-payables-by-contact",
@@ -116889,7 +116898,7 @@ var ListAgedPayablesByContact = CreateXeroTool(
116889
116898
  }
116890
116899
  const agedPayablesReport = response.result;
116891
116900
  const filter2 = formatAgedReportFilter(invoicesFromDate, invoicesToDate);
116892
- return {
116901
+ return withUnreconciledBlindSpotNote({
116893
116902
  content: [
116894
116903
  {
116895
116904
  type: "text",
@@ -116908,7 +116917,7 @@ var ListAgedPayablesByContact = CreateXeroTool(
116908
116917
  text: JSON.stringify(agedPayablesReport.rows, null, 2)
116909
116918
  }
116910
116919
  ]
116911
- };
116920
+ });
116912
116921
  }
116913
116922
  );
116914
116923
  var list_aged_payables_by_contact_tool_default = ListAgedPayablesByContact;
@@ -116980,7 +116989,7 @@ var ListAgedReceivablesByContact = CreateXeroTool(
116980
116989
  }
116981
116990
  const agedReceivablesReport = response.result;
116982
116991
  const filter2 = formatAgedReportFilter(invoicesFromDate, invoicesToDate);
116983
- return {
116992
+ return withUnreconciledBlindSpotNote({
116984
116993
  content: [
116985
116994
  {
116986
116995
  type: "text",
@@ -116999,7 +117008,7 @@ var ListAgedReceivablesByContact = CreateXeroTool(
116999
117008
  text: JSON.stringify(agedReceivablesReport.rows, null, 2)
117000
117009
  }
117001
117010
  ]
117002
- };
117011
+ });
117003
117012
  }
117004
117013
  );
117005
117014
  var list_aged_receivables_by_contact_tool_default = ListAgedReceivablesByContact;
@@ -117060,7 +117069,14 @@ var formatLineItem = (lineItem) => {
117060
117069
  // src/tools/list/list-bank-transactions.tool.ts
117061
117070
  var ListBankTransactionsTool = CreateXeroTool(
117062
117071
  "list-bank-transactions",
117063
- `List all bank transactions in Xero.
117072
+ `List Xero BankTransaction LEDGER records (spend-money / receive-money), each
117073
+ flagged Reconciled or Unreconciled.
117074
+ This is NOT the bank account, and the distinction is the point. Xero's
117075
+ Accounting API exposes BankTransaction records only. Bank STATEMENT LINES that
117076
+ have never been matched into the ledger are not exposed at all, so money can be
117077
+ in the bank account and absent from this list entirely. A balance, receivables
117078
+ or cashflow figure derived from this may be incomplete, and nothing here reveals
117079
+ by how much. (CS-1638)
117064
117080
  Ask the user if they want to see bank transactions for a specific bank account,
117065
117081
  or to see all bank transactions before running.
117066
117082
  Ask the user if they want the next page of quotes after running this tool if
@@ -117084,7 +117100,7 @@ var ListBankTransactionsTool = CreateXeroTool(
117084
117100
  };
117085
117101
  }
117086
117102
  const bankTransactions = response.result;
117087
- return {
117103
+ return withUnreconciledBlindSpotNote({
117088
117104
  content: [
117089
117105
  {
117090
117106
  type: "text",
@@ -117110,7 +117126,7 @@ var ListBankTransactionsTool = CreateXeroTool(
117110
117126
  ].filter(Boolean).join("\n")
117111
117127
  })) || []
117112
117128
  ]
117113
- };
117129
+ });
117114
117130
  }
117115
117131
  );
117116
117132
  var list_bank_transactions_tool_default = ListBankTransactionsTool;
@@ -117367,7 +117383,7 @@ async function listXeroInvoices(page = 1, contactIds, invoiceNumbers) {
117367
117383
  // src/tools/list/list-invoices.tool.ts
117368
117384
  var ListInvoicesTool = CreateXeroTool(
117369
117385
  "list-invoices",
117370
- "List invoices in Xero. This includes Draft, Submitted, and Paid invoices. Ask the user if they want to see invoices for a specific contact, invoice number, or to see all invoices before running. Ask the user if they want the next page of invoices after running this tool if 10 invoices are returned. If they want the next page, call this tool again with the next page number and the contact or invoice number if one was provided in the previous call.",
117386
+ `List invoices in Xero. This includes Draft, Submitted, and Paid invoices. CS-1638: an invoice reads AUTHORISED and fully unpaid until the customer's payment is RECONCILED, so "unpaid" here means "not yet matched in Xero", not "the money has not arrived". Do not chase on this evidence alone. Ask the user if they want to see invoices for a specific contact, invoice number, or to see all invoices before running. Ask the user if they want the next page of invoices after running this tool if 10 invoices are returned. If they want the next page, call this tool again with the next page number and the contact or invoice number if one was provided in the previous call.`,
117371
117387
  {
117372
117388
  page: external_exports.number(),
117373
117389
  contactIds: external_exports.array(external_exports.string()).optional(),
@@ -117387,7 +117403,7 @@ var ListInvoicesTool = CreateXeroTool(
117387
117403
  }
117388
117404
  const invoices = response.result;
117389
117405
  const returnLineItems = (invoiceNumbers?.length ?? 0) > 0;
117390
- return {
117406
+ return withUnreconciledBlindSpotNote({
117391
117407
  content: [
117392
117408
  {
117393
117409
  type: "text",
@@ -117422,7 +117438,7 @@ var ListInvoicesTool = CreateXeroTool(
117422
117438
  ].filter(Boolean).join("\n")
117423
117439
  })) || []
117424
117440
  ]
117425
- };
117441
+ });
117426
117442
  }
117427
117443
  );
117428
117444
  var list_invoices_tool_default = ListInvoicesTool;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.771",
3
+ "version": "0.28.772",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {