@integrity-labs/agt-cli 0.18.0 → 0.19.1
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-SYJNQ6X4.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.19.1" : "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.19.1" : "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) => {
|
|
@@ -3122,10 +3122,13 @@ var OAUTH_PROVIDERS = {
|
|
|
3122
3122
|
definitionId: "granola",
|
|
3123
3123
|
authorizeUrl: "https://mcp-auth.granola.ai/oauth2/authorize",
|
|
3124
3124
|
tokenUrl: "https://mcp-auth.granola.ai/oauth2/token",
|
|
3125
|
-
//
|
|
3126
|
-
//
|
|
3127
|
-
//
|
|
3128
|
-
|
|
3125
|
+
// Minimal scope set: `offline_access` earns the refresh_token so the
|
|
3126
|
+
// refresh cron can rotate the bearer without operator action; `openid`
|
|
3127
|
+
// is required for the OIDC code flow even when we don't request an
|
|
3128
|
+
// id_token. Profile/email are intentionally omitted — we have no
|
|
3129
|
+
// userInfoUrl wired up here, so requesting them would over-ask consent
|
|
3130
|
+
// for fields the callback can't read.
|
|
3131
|
+
defaultScopes: ["openid", "offline_access"],
|
|
3129
3132
|
supportsRefresh: true,
|
|
3130
3133
|
extraAuthorizeParams: {},
|
|
3131
3134
|
clientAuthMethod: "body",
|
|
@@ -3877,6 +3880,21 @@ function buildMcpJson(input) {
|
|
|
3877
3880
|
mcpServers[integration.definition_id] = entry;
|
|
3878
3881
|
}
|
|
3879
3882
|
}
|
|
3883
|
+
const hasCloudBroker = input.integrations?.some((i) => i.definition_id === "cloud-broker");
|
|
3884
|
+
if (hasCloudBroker) {
|
|
3885
|
+
mcpServers["cloud-broker"] = {
|
|
3886
|
+
command: "npx",
|
|
3887
|
+
args: ["-y", "@integrity-labs/cloud-broker@latest"],
|
|
3888
|
+
env: {
|
|
3889
|
+
AGT_HOST: "${AGT_HOST}",
|
|
3890
|
+
AGT_TEAM_SLUG: "${AGT_TEAM_SLUG}",
|
|
3891
|
+
AGT_TOKEN: "${AGT_TOKEN}",
|
|
3892
|
+
AGT_API_KEY: "${AGT_API_KEY}",
|
|
3893
|
+
PATH: process.env["PATH"] ?? "",
|
|
3894
|
+
HOME: process.env["HOME"] ?? ""
|
|
3895
|
+
}
|
|
3896
|
+
};
|
|
3897
|
+
}
|
|
3880
3898
|
return { mcpServers };
|
|
3881
3899
|
}
|
|
3882
3900
|
function parseIntervalMinutes(scheduleEvery) {
|
|
@@ -4380,6 +4398,21 @@ ${sections}`
|
|
|
4380
4398
|
this.writeMcpServer(codeName, integration.definition_id, entry);
|
|
4381
4399
|
}
|
|
4382
4400
|
}
|
|
4401
|
+
const hasCloudBroker = integrations.some((i) => i.definition_id === "cloud-broker");
|
|
4402
|
+
if (hasCloudBroker) {
|
|
4403
|
+
this.writeMcpServer(codeName, "cloud-broker", {
|
|
4404
|
+
command: "npx",
|
|
4405
|
+
args: ["-y", "@integrity-labs/cloud-broker@latest"],
|
|
4406
|
+
env: {
|
|
4407
|
+
AGT_HOST: "${AGT_HOST}",
|
|
4408
|
+
AGT_TEAM_SLUG: "${AGT_TEAM_SLUG}",
|
|
4409
|
+
AGT_TOKEN: "${AGT_TOKEN}",
|
|
4410
|
+
AGT_API_KEY: "${AGT_API_KEY}",
|
|
4411
|
+
PATH: process.env["PATH"] ?? "",
|
|
4412
|
+
HOME: process.env["HOME"] ?? ""
|
|
4413
|
+
}
|
|
4414
|
+
});
|
|
4415
|
+
}
|
|
4383
4416
|
const projectDir = getProjectDir(codeName);
|
|
4384
4417
|
const claudeMdPath = join4(projectDir, "CLAUDE.md");
|
|
4385
4418
|
try {
|
|
@@ -7967,4 +8000,4 @@ export {
|
|
|
7967
8000
|
managerInstallCommand,
|
|
7968
8001
|
managerUninstallCommand
|
|
7969
8002
|
};
|
|
7970
|
-
//# sourceMappingURL=chunk-
|
|
8003
|
+
//# sourceMappingURL=chunk-SYJNQ6X4.js.map
|