@integrity-labs/agt-cli 0.16.8 → 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) => {
|
|
@@ -393,6 +393,28 @@ var INTEGRATION_REGISTRY = [
|
|
|
393
393
|
installer: "npm"
|
|
394
394
|
}
|
|
395
395
|
},
|
|
396
|
+
{
|
|
397
|
+
id: "gcloud",
|
|
398
|
+
name: "Google Cloud SDK",
|
|
399
|
+
category: "infrastructure",
|
|
400
|
+
description: "Google Cloud Platform CLI \u2014 manage Compute Engine, Cloud Storage, IAM, Cloud Run, Cloud SQL, BigQuery, and Pub/Sub from a single binary",
|
|
401
|
+
supported_auth_types: ["oauth2", "managed"],
|
|
402
|
+
capabilities: [
|
|
403
|
+
{ id: "gcloud:read", name: "Read GCP Resources", description: "List and describe projects, instances, buckets, IAM, and service configs", access: "read" },
|
|
404
|
+
{ id: "gcloud:write", name: "Write GCP Resources", description: "Create and update GCP resources (compute, storage, IAM, run, etc.)", access: "write" },
|
|
405
|
+
{ id: "gcloud:admin", name: "Admin GCP Resources", description: "Destructive operations \u2014 delete projects, IAM bindings, instances. Pair with gcloud-no-destructive-ops guardrail.", access: "admin" }
|
|
406
|
+
],
|
|
407
|
+
cli_tool: {
|
|
408
|
+
package: "google-cloud-sdk",
|
|
409
|
+
binary: "gcloud",
|
|
410
|
+
env_key: "GOOGLE_APPLICATION_CREDENTIALS",
|
|
411
|
+
// gcloud ships as a homebrew cask on macOS (`brew install --cask google-cloud-sdk`)
|
|
412
|
+
// and via curl-installed tarball elsewhere. Neither matches the simple `brew install
|
|
413
|
+
// <package>` or `npm install -g <package>` shape, so leave install to the operator.
|
|
414
|
+
installer: "manual"
|
|
415
|
+
},
|
|
416
|
+
docs_url: "https://cloud.google.com/sdk"
|
|
417
|
+
},
|
|
396
418
|
{
|
|
397
419
|
id: "xero",
|
|
398
420
|
name: "Xero",
|
|
@@ -3593,6 +3615,18 @@ function buildMcpJson(input) {
|
|
|
3593
3615
|
args: ["mcp"]
|
|
3594
3616
|
};
|
|
3595
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
|
+
}
|
|
3596
3630
|
return { mcpServers };
|
|
3597
3631
|
}
|
|
3598
3632
|
function parseIntervalMinutes(scheduleEvery) {
|
|
@@ -4069,6 +4103,18 @@ ${sections}`
|
|
|
4069
4103
|
if (hasQmd) {
|
|
4070
4104
|
this.writeMcpServer(codeName, "qmd", { command: "qmd", args: ["mcp"] });
|
|
4071
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
|
+
}
|
|
4072
4118
|
const projectDir = getProjectDir(codeName);
|
|
4073
4119
|
const claudeMdPath = join4(projectDir, "CLAUDE.md");
|
|
4074
4120
|
try {
|
|
@@ -7651,4 +7697,4 @@ export {
|
|
|
7651
7697
|
managerInstallCommand,
|
|
7652
7698
|
managerUninstallCommand
|
|
7653
7699
|
};
|
|
7654
|
-
//# sourceMappingURL=chunk-
|
|
7700
|
+
//# sourceMappingURL=chunk-P52H3XS6.js.map
|