@integrity-labs/agt-cli 0.28.48 → 0.28.50

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
@@ -37,7 +37,7 @@ import {
37
37
  success,
38
38
  table,
39
39
  warn
40
- } from "../chunk-A5V5GSWV.js";
40
+ } from "../chunk-ZBQ4C6EA.js";
41
41
  import {
42
42
  CHANNEL_REGISTRY,
43
43
  DEPLOYMENT_TEMPLATES,
@@ -64,7 +64,7 @@ import {
64
64
  renderTemplate,
65
65
  resolveChannels,
66
66
  serializeManifestForSlackCli
67
- } from "../chunk-5CO27R3F.js";
67
+ } from "../chunk-MJKGJXKV.js";
68
68
 
69
69
  // src/bin/agt.ts
70
70
  import { join as join22 } from "path";
@@ -4777,7 +4777,7 @@ import { execFileSync, execSync } from "child_process";
4777
4777
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4778
4778
  import chalk18 from "chalk";
4779
4779
  import ora16 from "ora";
4780
- var cliVersion = true ? "0.28.48" : "dev";
4780
+ var cliVersion = true ? "0.28.50" : "dev";
4781
4781
  async function fetchLatestVersion() {
4782
4782
  const host2 = getHost();
4783
4783
  if (!host2) return null;
@@ -5404,6 +5404,10 @@ import { homedir as homedir10 } from "os";
5404
5404
  import { join as join21 } from "path";
5405
5405
  import chalk19 from "chalk";
5406
5406
  import ora17 from "ora";
5407
+ async function fetchAgents() {
5408
+ const body = await api.get("/agents");
5409
+ return Array.isArray(body?.agents) ? body.agents : [];
5410
+ }
5407
5411
  async function integrationListCommand() {
5408
5412
  const json = isJsonMode();
5409
5413
  const spinner = ora17({ text: "Fetching integrations\u2026", isSilent: json }).start();
@@ -5477,7 +5481,7 @@ async function integrationProbeCommand(agentCodeName, slug) {
5477
5481
  const json = isJsonMode();
5478
5482
  const spinner = ora17({ text: `Probing ${slug} on ${agentCodeName}\u2026`, isSilent: json }).start();
5479
5483
  try {
5480
- const agents = await api.get("/agents");
5484
+ const agents = await fetchAgents();
5481
5485
  const agent2 = agents.find((a) => a.code_name === agentCodeName);
5482
5486
  if (!agent2) {
5483
5487
  spinner.stop();
@@ -5570,7 +5574,7 @@ async function integrationInstallCommand(slug, options) {
5570
5574
  process.exitCode = 1;
5571
5575
  return;
5572
5576
  }
5573
- const agents = await api.get("/agents");
5577
+ const agents = await fetchAgents();
5574
5578
  const agent2 = agents.find((a) => a.code_name === options.agent);
5575
5579
  if (!agent2) {
5576
5580
  spinner.stop();
@@ -5620,7 +5624,7 @@ async function integrationUninstallCommand(slug, options) {
5620
5624
  process.exitCode = 1;
5621
5625
  return;
5622
5626
  }
5623
- const agents = await api.get("/agents");
5627
+ const agents = await fetchAgents();
5624
5628
  const agent2 = agents.find((a) => a.code_name === options.agent);
5625
5629
  if (!agent2) {
5626
5630
  spinner.stop();
@@ -5738,7 +5742,7 @@ async function integrationEnrolCommand(options) {
5738
5742
  process.exitCode = 1;
5739
5743
  return;
5740
5744
  }
5741
- const agents = await api.get("/agents");
5745
+ const agents = await fetchAgents();
5742
5746
  const found = agents.find((a) => a.code_name === options.agent);
5743
5747
  if (!found) {
5744
5748
  spinner.stop();
@@ -5787,7 +5791,7 @@ function handleError(err) {
5787
5791
  }
5788
5792
 
5789
5793
  // src/bin/agt.ts
5790
- var cliVersion2 = true ? "0.28.48" : "dev";
5794
+ var cliVersion2 = true ? "0.28.50" : "dev";
5791
5795
  var program = new Command();
5792
5796
  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");
5793
5797
  program.hook("preAction", async (thisCommand, actionCommand) => {