@integrity-labs/agt-cli 0.21.0 → 0.21.2

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
@@ -50,7 +50,7 @@ import {
50
50
  success,
51
51
  table,
52
52
  warn
53
- } from "../chunk-NANARUEF.js";
53
+ } from "../chunk-HPL4HOZ5.js";
54
54
 
55
55
  // src/bin/agt.ts
56
56
  import { join as join10 } from "path";
@@ -3734,7 +3734,7 @@ import { execFileSync, execSync } from "child_process";
3734
3734
  import { existsSync as existsSync5, realpathSync } from "fs";
3735
3735
  import chalk17 from "chalk";
3736
3736
  import ora15 from "ora";
3737
- var cliVersion = true ? "0.21.0" : "dev";
3737
+ var cliVersion = true ? "0.21.2" : "dev";
3738
3738
  async function fetchLatestVersion() {
3739
3739
  const host2 = getHost();
3740
3740
  if (!host2) return null;
@@ -4266,7 +4266,7 @@ function handleError(err) {
4266
4266
  }
4267
4267
 
4268
4268
  // src/bin/agt.ts
4269
- var cliVersion2 = true ? "0.21.0" : "dev";
4269
+ var cliVersion2 = true ? "0.21.2" : "dev";
4270
4270
  var program = new Command();
4271
4271
  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");
4272
4272
  program.hook("preAction", (thisCommand) => {
@@ -4553,17 +4553,18 @@ function buildMcpJson(input) {
4553
4553
  }
4554
4554
  const xeroIntegration = input.integrations?.find((i) => i.definition_id === "xero");
4555
4555
  if (xeroIntegration) {
4556
+ const brokerMode = Boolean(xeroIntegration.id);
4556
4557
  mcpServers["xero"] = {
4557
4558
  command: "npx",
4558
4559
  args: ["-y", "@integrity-labs/xero-mcp-server@latest"],
4559
4560
  env: {
4560
- XERO_CLIENT_BEARER_TOKEN: "${XERO_ACCESS_TOKEN}",
4561
+ ...brokerMode ? {} : { XERO_CLIENT_BEARER_TOKEN: "${XERO_ACCESS_TOKEN}" },
4561
4562
  XERO_TENANT_ID: "${XERO_TENANT_ID}",
4562
4563
  AGT_HOST: "${AGT_HOST}",
4563
4564
  AGT_TOKEN: "${AGT_TOKEN}",
4564
4565
  AGT_API_KEY: "${AGT_API_KEY}",
4565
4566
  AGT_AGENT_ID: input.agent.agent_id,
4566
- ...xeroIntegration.id ? { AGT_INTEGRATION_ID: xeroIntegration.id } : {},
4567
+ ...brokerMode ? { AGT_INTEGRATION_ID: xeroIntegration.id } : {},
4567
4568
  PATH: process.env["PATH"] ?? "",
4568
4569
  HOME: process.env["HOME"] ?? ""
4569
4570
  }
@@ -5239,13 +5240,14 @@ ${sections}`
5239
5240
  }
5240
5241
  const xeroIntegration = integrations.find((i) => i.definition_id === "xero");
5241
5242
  if (xeroIntegration) {
5243
+ const brokerMode = Boolean(agentId && xeroIntegration.id);
5242
5244
  const xeroEnv = {
5243
- XERO_CLIENT_BEARER_TOKEN: "${XERO_ACCESS_TOKEN}",
5245
+ ...brokerMode ? {} : { XERO_CLIENT_BEARER_TOKEN: "${XERO_ACCESS_TOKEN}" },
5244
5246
  XERO_TENANT_ID: "${XERO_TENANT_ID}",
5245
5247
  PATH: process.env["PATH"] ?? "",
5246
5248
  HOME: process.env["HOME"] ?? ""
5247
5249
  };
5248
- if (agentId && xeroIntegration.id) {
5250
+ if (brokerMode) {
5249
5251
  xeroEnv.AGT_HOST = "${AGT_HOST}";
5250
5252
  xeroEnv.AGT_TOKEN = "${AGT_TOKEN}";
5251
5253
  xeroEnv.AGT_API_KEY = "${AGT_API_KEY}";
@@ -9500,4 +9502,4 @@ export {
9500
9502
  managerInstallSystemUnitCommand,
9501
9503
  managerUninstallSystemUnitCommand
9502
9504
  };
9503
- //# sourceMappingURL=chunk-NANARUEF.js.map
9505
+ //# sourceMappingURL=chunk-HPL4HOZ5.js.map