@integrity-labs/agt-cli 0.27.49 → 0.27.51
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
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
success,
|
|
28
28
|
table,
|
|
29
29
|
warn
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-Y4KVZGPE.js";
|
|
31
31
|
import {
|
|
32
32
|
CHANNEL_REGISTRY,
|
|
33
33
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -1435,6 +1435,23 @@ async function provisionCommand(codeName, options) {
|
|
|
1435
1435
|
};
|
|
1436
1436
|
}
|
|
1437
1437
|
const resolvedChannels = resolveChannels(agentChannelPolicy, orgChannelPolicy);
|
|
1438
|
+
spinner.text = "Fetching integrations\u2026";
|
|
1439
|
+
const agentId = agentData.agent_id;
|
|
1440
|
+
let integrations = [];
|
|
1441
|
+
let integrationsError = null;
|
|
1442
|
+
try {
|
|
1443
|
+
const integrationsData = await api.post("/host/agent-integrations", { agent_id: agentId });
|
|
1444
|
+
integrations = integrationsData.integrations ?? [];
|
|
1445
|
+
} catch (err) {
|
|
1446
|
+
integrationsError = err.message;
|
|
1447
|
+
if (!json) {
|
|
1448
|
+
spinner.stop();
|
|
1449
|
+
warn(
|
|
1450
|
+
`Could not fetch integrations: ${integrationsError}. .mcp.json may be missing integration servers.`
|
|
1451
|
+
);
|
|
1452
|
+
spinner.start("Provisioning\u2026");
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1438
1455
|
const frameworkId = agentData.framework ?? "openclaw";
|
|
1439
1456
|
const adapter = getFramework(frameworkId);
|
|
1440
1457
|
spinner.text = `Building ${adapter.label} config\u2026`;
|
|
@@ -1445,6 +1462,7 @@ async function provisionCommand(codeName, options) {
|
|
|
1445
1462
|
toolsFrontmatter,
|
|
1446
1463
|
toolsContent,
|
|
1447
1464
|
resolvedChannels,
|
|
1465
|
+
integrations,
|
|
1448
1466
|
deploymentTarget: target,
|
|
1449
1467
|
gatewayPort: 9e3
|
|
1450
1468
|
};
|
|
@@ -1478,6 +1496,8 @@ async function provisionCommand(codeName, options) {
|
|
|
1478
1496
|
charter_hash: provisionOutput.charterHash,
|
|
1479
1497
|
tools_hash: provisionOutput.toolsHash,
|
|
1480
1498
|
channels: resolvedChannels.length,
|
|
1499
|
+
integrations: integrations.length,
|
|
1500
|
+
integrations_error: integrationsError,
|
|
1481
1501
|
artifacts: provisionOutput.artifacts.map((a) => ({
|
|
1482
1502
|
path: a.relativePath,
|
|
1483
1503
|
size: a.content.length
|
|
@@ -1534,6 +1554,8 @@ async function provisionCommand(codeName, options) {
|
|
|
1534
1554
|
charter_hash: provisionOutput.charterHash,
|
|
1535
1555
|
tools_hash: provisionOutput.toolsHash,
|
|
1536
1556
|
channels: resolvedChannels.length,
|
|
1557
|
+
integrations: integrations.length,
|
|
1558
|
+
integrations_error: integrationsError,
|
|
1537
1559
|
artifacts: provisionOutput.artifacts.map((a) => a.relativePath)
|
|
1538
1560
|
});
|
|
1539
1561
|
return;
|
|
@@ -1546,6 +1568,7 @@ async function provisionCommand(codeName, options) {
|
|
|
1546
1568
|
info(`CHARTER hash: ${provisionOutput.charterHash.slice(0, 12)}\u2026`);
|
|
1547
1569
|
info(`TOOLS hash: ${provisionOutput.toolsHash.slice(0, 12)}\u2026`);
|
|
1548
1570
|
info(`Channels: ${resolvedChannels.length} active`);
|
|
1571
|
+
info(`Integrations: ${integrations.length}${integrationsError ? " (fetch failed)" : ""}`);
|
|
1549
1572
|
info(`Artifacts: ${provisionOutput.artifacts.map((a) => a.relativePath).join(", ")}`);
|
|
1550
1573
|
console.log();
|
|
1551
1574
|
info("Next steps:");
|
|
@@ -4687,7 +4710,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4687
4710
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4688
4711
|
import chalk18 from "chalk";
|
|
4689
4712
|
import ora16 from "ora";
|
|
4690
|
-
var cliVersion = true ? "0.27.
|
|
4713
|
+
var cliVersion = true ? "0.27.51" : "dev";
|
|
4691
4714
|
async function fetchLatestVersion() {
|
|
4692
4715
|
const host2 = getHost();
|
|
4693
4716
|
if (!host2) return null;
|
|
@@ -5465,7 +5488,7 @@ function handleError(err) {
|
|
|
5465
5488
|
}
|
|
5466
5489
|
|
|
5467
5490
|
// src/bin/agt.ts
|
|
5468
|
-
var cliVersion2 = true ? "0.27.
|
|
5491
|
+
var cliVersion2 = true ? "0.27.51" : "dev";
|
|
5469
5492
|
var program = new Command();
|
|
5470
5493
|
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");
|
|
5471
5494
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|