@integrity-labs/agt-cli 0.28.1032 → 0.28.1034

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.
Files changed (25) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-OGITTSBM.js → chunk-6AEWTLG7.js} +4 -4
  3. package/dist/{chunk-NCIGLRCL.js → chunk-H54FYWAK.js} +34 -5
  4. package/dist/chunk-H54FYWAK.js.map +1 -0
  5. package/dist/{chunk-GLOCISGD.js → chunk-V74YKGXU.js} +2 -2
  6. package/dist/{claude-pair-runtime-KQDXWMWB.js → claude-pair-runtime-I4XYDZWO.js} +2 -2
  7. package/dist/lib/manager-worker.js +19 -15
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +11 -1
  10. package/dist/mcp/index.js +11 -1
  11. package/dist/mcp/origami.js +11 -1
  12. package/dist/mcp/slack-channel.js +11 -1
  13. package/dist/mcp/telegram-channel.js +11 -1
  14. package/dist/mcp/xero.js +20 -9
  15. package/dist/{persistent-session-TOIMQIAU.js → persistent-session-MUY7PVLJ.js} +3 -3
  16. package/dist/{responsiveness-probe-VJOXOK66.js → responsiveness-probe-MPL5PM33.js} +3 -3
  17. package/dist/{session-auth-dead-T5EZNDRO.js → session-auth-dead-5ECPRU2V.js} +2 -2
  18. package/package.json +1 -1
  19. package/dist/chunk-NCIGLRCL.js.map +0 -1
  20. /package/dist/{chunk-OGITTSBM.js.map → chunk-6AEWTLG7.js.map} +0 -0
  21. /package/dist/{chunk-GLOCISGD.js.map → chunk-V74YKGXU.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-KQDXWMWB.js.map → claude-pair-runtime-I4XYDZWO.js.map} +0 -0
  23. /package/dist/{persistent-session-TOIMQIAU.js.map → persistent-session-MUY7PVLJ.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-VJOXOK66.js.map → responsiveness-probe-MPL5PM33.js.map} +0 -0
  25. /package/dist/{session-auth-dead-T5EZNDRO.js.map → session-auth-dead-5ECPRU2V.js.map} +0 -0
@@ -32945,7 +32945,17 @@ var OAUTH_PROVIDERS = {
32945
32945
  // do NOT revert to the broad `accounting.transactions` /
32946
32946
  // `accounting.contacts` scopes, Xero rejects the manifest).
32947
32947
  // The variant *without* `.read` is the read+write granular scope.
32948
- "accounting.settings.read",
32948
+ // settings: write (CS-1829) enables the xero-broker to create and edit
32949
+ // inventory ITEMS on approval. Xero files the Items endpoint under
32950
+ // accounting.settings (per Xero's own OpenAPI spec, XeroAPI/Xero-OpenAPI
32951
+ // xero_accounting.yaml: PUT/POST /Items require `accounting.settings`,
32952
+ // GET accepts `.read`), and there is no narrower items scope. The same
32953
+ // scope also covers accounts, tax rates and tracking categories; the
32954
+ // vendor server's write tools for those stay stripped in broker mode
32955
+ // (XERO_WRITES_VIA_BROKER), so the broker remains the only write path.
32956
+ // An existing install must RECONNECT for its token to carry this, same as
32957
+ // CS-1439's manualjournals.
32958
+ "accounting.settings",
32949
32959
  // contacts: write enables agent-driven supplier/customer creation
32950
32960
  // (required for bill creation since a bill must reference a contact).
32951
32961
  "accounting.contacts",
package/dist/mcp/index.js CHANGED
@@ -25527,7 +25527,17 @@ var OAUTH_PROVIDERS = {
25527
25527
  // do NOT revert to the broad `accounting.transactions` /
25528
25528
  // `accounting.contacts` scopes, Xero rejects the manifest).
25529
25529
  // The variant *without* `.read` is the read+write granular scope.
25530
- "accounting.settings.read",
25530
+ // settings: write (CS-1829) enables the xero-broker to create and edit
25531
+ // inventory ITEMS on approval. Xero files the Items endpoint under
25532
+ // accounting.settings (per Xero's own OpenAPI spec, XeroAPI/Xero-OpenAPI
25533
+ // xero_accounting.yaml: PUT/POST /Items require `accounting.settings`,
25534
+ // GET accepts `.read`), and there is no narrower items scope. The same
25535
+ // scope also covers accounts, tax rates and tracking categories; the
25536
+ // vendor server's write tools for those stay stripped in broker mode
25537
+ // (XERO_WRITES_VIA_BROKER), so the broker remains the only write path.
25538
+ // An existing install must RECONNECT for its token to carry this, same as
25539
+ // CS-1439's manualjournals.
25540
+ "accounting.settings",
25531
25541
  // contacts: write enables agent-driven supplier/customer creation
25532
25542
  // (required for bill creation since a bill must reference a contact).
25533
25543
  "accounting.contacts",
@@ -39678,7 +39678,17 @@ var OAUTH_PROVIDERS = {
39678
39678
  // do NOT revert to the broad `accounting.transactions` /
39679
39679
  // `accounting.contacts` scopes, Xero rejects the manifest).
39680
39680
  // The variant *without* `.read` is the read+write granular scope.
39681
- "accounting.settings.read",
39681
+ // settings: write (CS-1829) enables the xero-broker to create and edit
39682
+ // inventory ITEMS on approval. Xero files the Items endpoint under
39683
+ // accounting.settings (per Xero's own OpenAPI spec, XeroAPI/Xero-OpenAPI
39684
+ // xero_accounting.yaml: PUT/POST /Items require `accounting.settings`,
39685
+ // GET accepts `.read`), and there is no narrower items scope. The same
39686
+ // scope also covers accounts, tax rates and tracking categories; the
39687
+ // vendor server's write tools for those stay stripped in broker mode
39688
+ // (XERO_WRITES_VIA_BROKER), so the broker remains the only write path.
39689
+ // An existing install must RECONNECT for its token to carry this, same as
39690
+ // CS-1439's manualjournals.
39691
+ "accounting.settings",
39682
39692
  // contacts: write enables agent-driven supplier/customer creation
39683
39693
  // (required for bill creation since a bill must reference a contact).
39684
39694
  "accounting.contacts",
@@ -33895,7 +33895,17 @@ var OAUTH_PROVIDERS = {
33895
33895
  // do NOT revert to the broad `accounting.transactions` /
33896
33896
  // `accounting.contacts` scopes, Xero rejects the manifest).
33897
33897
  // The variant *without* `.read` is the read+write granular scope.
33898
- "accounting.settings.read",
33898
+ // settings: write (CS-1829) enables the xero-broker to create and edit
33899
+ // inventory ITEMS on approval. Xero files the Items endpoint under
33900
+ // accounting.settings (per Xero's own OpenAPI spec, XeroAPI/Xero-OpenAPI
33901
+ // xero_accounting.yaml: PUT/POST /Items require `accounting.settings`,
33902
+ // GET accepts `.read`), and there is no narrower items scope. The same
33903
+ // scope also covers accounts, tax rates and tracking categories; the
33904
+ // vendor server's write tools for those stay stripped in broker mode
33905
+ // (XERO_WRITES_VIA_BROKER), so the broker remains the only write path.
33906
+ // An existing install must RECONNECT for its token to carry this, same as
33907
+ // CS-1439's manualjournals.
33908
+ "accounting.settings",
33899
33909
  // contacts: write enables agent-driven supplier/customer creation
33900
33910
  // (required for bill creation since a bill must reference a contact).
33901
33911
  "accounting.contacts",
@@ -34007,7 +34007,17 @@ var OAUTH_PROVIDERS = {
34007
34007
  // do NOT revert to the broad `accounting.transactions` /
34008
34008
  // `accounting.contacts` scopes, Xero rejects the manifest).
34009
34009
  // The variant *without* `.read` is the read+write granular scope.
34010
- "accounting.settings.read",
34010
+ // settings: write (CS-1829) enables the xero-broker to create and edit
34011
+ // inventory ITEMS on approval. Xero files the Items endpoint under
34012
+ // accounting.settings (per Xero's own OpenAPI spec, XeroAPI/Xero-OpenAPI
34013
+ // xero_accounting.yaml: PUT/POST /Items require `accounting.settings`,
34014
+ // GET accepts `.read`), and there is no narrower items scope. The same
34015
+ // scope also covers accounts, tax rates and tracking categories; the
34016
+ // vendor server's write tools for those stay stripped in broker mode
34017
+ // (XERO_WRITES_VIA_BROKER), so the broker remains the only write path.
34018
+ // An existing install must RECONNECT for its token to carry this, same as
34019
+ // CS-1439's manualjournals.
34020
+ "accounting.settings",
34011
34021
  // contacts: write enables agent-driven supplier/customer creation
34012
34022
  // (required for bill creation since a bill must reference a contact).
34013
34023
  "accounting.contacts",
package/dist/mcp/xero.js CHANGED
@@ -117492,7 +117492,8 @@ var ListInvoicesTool = CreateXeroTool(
117492
117492
  var list_invoices_tool_default = ListInvoicesTool;
117493
117493
 
117494
117494
  // src/handlers/list-xero-items.handler.ts
117495
- async function getItems(page) {
117495
+ var UNIT_DECIMAL_PLACES = 4;
117496
+ async function getItems() {
117496
117497
  await xeroClient.authenticate();
117497
117498
  const items = await xeroClient.accountingApi.getItems(
117498
117499
  xeroClient.tenantId,
@@ -117502,15 +117503,15 @@ async function getItems(page) {
117502
117503
  // where
117503
117504
  void 0,
117504
117505
  // order
117505
- page,
117506
- // page
117506
+ UNIT_DECIMAL_PLACES,
117507
+ // unitdp - NOT a page number; this endpoint does not paginate
117507
117508
  getClientHeaders()
117508
117509
  );
117509
117510
  return items.body.items ?? [];
117510
117511
  }
117511
- async function listXeroItems(page = 1) {
117512
+ async function listXeroItems() {
117512
117513
  try {
117513
- const items = await getItems(page);
117514
+ const items = await getItems();
117514
117515
  return {
117515
117516
  result: items,
117516
117517
  isError: false,
@@ -117528,12 +117529,14 @@ async function listXeroItems(page = 1) {
117528
117529
  // src/tools/list/list-items.tool.ts
117529
117530
  var ListItemsTool = CreateXeroTool(
117530
117531
  "list-items",
117531
- "Lists all items in Xero. Use this tool to get the item codes and descriptions to be used when creating invoices in Xero",
117532
+ "Lists every item in the Xero catalogue in ONE call (Xero does not paginate items, so there is no page to request). Use it to get the item codes, descriptions and prices to use on invoice and bill lines. For items tracked as inventory it also returns Quantity On Hand and Total Cost Pool, so check Quantity On Hand before invoicing a tracked item. Note: Xero's API does not expose whether an item is archived, so an archived item can still appear here.",
117532
117533
  {
117533
- page: external_exports.number()
117534
+ // Kept, and optional, so an agent that still sends `page` is not refused by
117535
+ // the schema. It is IGNORED: Xero returns the whole catalogue regardless.
117536
+ page: external_exports.number().optional().describe("Ignored. Xero returns the whole item catalogue in one response; there are no pages.")
117534
117537
  },
117535
- async ({ page }) => {
117536
- const response = await listXeroItems(page);
117538
+ async () => {
117539
+ const response = await listXeroItems();
117537
117540
  if (response.isError) {
117538
117541
  return {
117539
117542
  content: [
@@ -117564,6 +117567,14 @@ var ListItemsTool = CreateXeroTool(
117564
117567
  item.salesDetails?.accountCode ? `Sales Account: ${item.salesDetails.accountCode}` : null,
117565
117568
  item.purchaseDetails?.accountCode ? `Purchase Account: ${item.purchaseDetails.accountCode}` : null,
117566
117569
  item.isTrackedAsInventory !== void 0 ? `Tracked as Inventory: ${item.isTrackedAsInventory ? "Yes" : "No"}` : null,
117570
+ // CS-1829: stock is only meaningful on a tracked item. Xero reports
117571
+ // 0 rather than omitting the field on an untracked one, and
117572
+ // "Quantity On Hand: 0" beside a service item reads as "out of
117573
+ // stock", which is a different and wrong claim.
117574
+ item.isTrackedAsInventory && item.quantityOnHand !== void 0 ? `Quantity On Hand: ${item.quantityOnHand}` : null,
117575
+ item.isTrackedAsInventory && item.totalCostPool !== void 0 ? `Total Cost Pool: ${item.totalCostPool}` : null,
117576
+ item.isTrackedAsInventory && item.inventoryAssetAccountCode ? `Inventory Asset Account: ${item.inventoryAssetAccountCode}` : null,
117577
+ item.purchaseDetails?.cOGSAccountCode ? `COGS Account: ${item.purchaseDetails.cOGSAccountCode}` : null,
117567
117578
  item.isSold !== void 0 ? `Is Sold: ${item.isSold ? "Yes" : "No"}` : null,
117568
117579
  item.isPurchased !== void 0 ? `Is Purchased: ${item.isPurchased ? "Yes" : "No"}` : null,
117569
117580
  item.updatedDateUTC ? `Last Updated: ${item.updatedDateUTC}` : null,
@@ -65,8 +65,8 @@ import {
65
65
  writeDirectChatSessionState,
66
66
  writeEgressAllowlist,
67
67
  writePersistentClaudeWrapper
68
- } from "./chunk-GLOCISGD.js";
69
- import "./chunk-NCIGLRCL.js";
68
+ } from "./chunk-V74YKGXU.js";
69
+ import "./chunk-H54FYWAK.js";
70
70
  import "./chunk-TQDIIS3X.js";
71
71
  import "./chunk-XWVM4KPK.js";
72
72
  import "./chunk-EL5MWGGH.js";
@@ -139,4 +139,4 @@ export {
139
139
  writeEgressAllowlist,
140
140
  writePersistentClaudeWrapper
141
141
  };
142
- //# sourceMappingURL=persistent-session-TOIMQIAU.js.map
142
+ //# sourceMappingURL=persistent-session-MUY7PVLJ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paneLogPath
3
- } from "./chunk-GLOCISGD.js";
4
- import "./chunk-NCIGLRCL.js";
3
+ } from "./chunk-V74YKGXU.js";
4
+ import "./chunk-H54FYWAK.js";
5
5
  import "./chunk-TQDIIS3X.js";
6
6
  import "./chunk-XWVM4KPK.js";
7
7
  import "./chunk-EL5MWGGH.js";
@@ -802,4 +802,4 @@ export {
802
802
  readAndResetSlackReplyBindingClassifications,
803
803
  readAndResetSlackReplyTargetClassifications
804
804
  };
805
- //# sourceMappingURL=responsiveness-probe-VJOXOK66.js.map
805
+ //# sourceMappingURL=responsiveness-probe-MPL5PM33.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  sessionTranscriptDir
3
- } from "./chunk-NCIGLRCL.js";
3
+ } from "./chunk-H54FYWAK.js";
4
4
  import "./chunk-DGUM43GV.js";
5
5
 
6
6
  // src/lib/session-auth-dead.ts
@@ -204,4 +204,4 @@ export {
204
204
  decideSessionAuthState,
205
205
  probeSessionAuth
206
206
  };
207
- //# sourceMappingURL=session-auth-dead-T5EZNDRO.js.map
207
+ //# sourceMappingURL=session-auth-dead-5ECPRU2V.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/agt-cli",
3
- "version": "0.28.1032",
3
+ "version": "0.28.1034",
4
4
  "description": "Augmented Team CLI — agent provisioning and management",
5
5
  "type": "module",
6
6
  "engines": {