@integrity-labs/agt-cli 0.16.9 → 0.17.0
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
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
success,
|
|
49
49
|
table,
|
|
50
50
|
warn
|
|
51
|
-
} from "../chunk-
|
|
51
|
+
} from "../chunk-P52H3XS6.js";
|
|
52
52
|
|
|
53
53
|
// src/bin/agt.ts
|
|
54
54
|
import { join as join10 } from "path";
|
|
@@ -3732,7 +3732,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
3732
3732
|
import { existsSync as existsSync5, realpathSync } from "fs";
|
|
3733
3733
|
import chalk17 from "chalk";
|
|
3734
3734
|
import ora15 from "ora";
|
|
3735
|
-
var cliVersion = true ? "0.
|
|
3735
|
+
var cliVersion = true ? "0.17.0" : "dev";
|
|
3736
3736
|
async function fetchLatestVersion() {
|
|
3737
3737
|
const host2 = getHost();
|
|
3738
3738
|
if (!host2) return null;
|
|
@@ -4190,7 +4190,7 @@ function handleError(err) {
|
|
|
4190
4190
|
}
|
|
4191
4191
|
|
|
4192
4192
|
// src/bin/agt.ts
|
|
4193
|
-
var cliVersion2 = true ? "0.
|
|
4193
|
+
var cliVersion2 = true ? "0.17.0" : "dev";
|
|
4194
4194
|
var program = new Command();
|
|
4195
4195
|
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");
|
|
4196
4196
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -3615,6 +3615,18 @@ function buildMcpJson(input) {
|
|
|
3615
3615
|
args: ["mcp"]
|
|
3616
3616
|
};
|
|
3617
3617
|
}
|
|
3618
|
+
const hasXero = input.integrations?.some((i) => i.definition_id === "xero");
|
|
3619
|
+
if (hasXero) {
|
|
3620
|
+
mcpServers["xero"] = {
|
|
3621
|
+
command: "npx",
|
|
3622
|
+
args: ["-y", "@xeroapi/xero-mcp-server@latest"],
|
|
3623
|
+
env: {
|
|
3624
|
+
XERO_CLIENT_BEARER_TOKEN: "${XERO_ACCESS_TOKEN}",
|
|
3625
|
+
PATH: process.env["PATH"] ?? "",
|
|
3626
|
+
HOME: process.env["HOME"] ?? ""
|
|
3627
|
+
}
|
|
3628
|
+
};
|
|
3629
|
+
}
|
|
3618
3630
|
return { mcpServers };
|
|
3619
3631
|
}
|
|
3620
3632
|
function parseIntervalMinutes(scheduleEvery) {
|
|
@@ -4091,6 +4103,18 @@ ${sections}`
|
|
|
4091
4103
|
if (hasQmd) {
|
|
4092
4104
|
this.writeMcpServer(codeName, "qmd", { command: "qmd", args: ["mcp"] });
|
|
4093
4105
|
}
|
|
4106
|
+
const hasXero = integrations.some((i) => i.definition_id === "xero");
|
|
4107
|
+
if (hasXero) {
|
|
4108
|
+
this.writeMcpServer(codeName, "xero", {
|
|
4109
|
+
command: "npx",
|
|
4110
|
+
args: ["-y", "@xeroapi/xero-mcp-server@latest"],
|
|
4111
|
+
env: {
|
|
4112
|
+
XERO_CLIENT_BEARER_TOKEN: "${XERO_ACCESS_TOKEN}",
|
|
4113
|
+
PATH: process.env["PATH"] ?? "",
|
|
4114
|
+
HOME: process.env["HOME"] ?? ""
|
|
4115
|
+
}
|
|
4116
|
+
});
|
|
4117
|
+
}
|
|
4094
4118
|
const projectDir = getProjectDir(codeName);
|
|
4095
4119
|
const claudeMdPath = join4(projectDir, "CLAUDE.md");
|
|
4096
4120
|
try {
|
|
@@ -7673,4 +7697,4 @@ export {
|
|
|
7673
7697
|
managerInstallCommand,
|
|
7674
7698
|
managerUninstallCommand
|
|
7675
7699
|
};
|
|
7676
|
-
//# sourceMappingURL=chunk-
|
|
7700
|
+
//# sourceMappingURL=chunk-P52H3XS6.js.map
|