@integrity-labs/agt-cli 0.27.76 → 0.27.77

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
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-NANSSDFG.js";
31
+ } from "../chunk-CMOPDYMM.js";
32
32
  import {
33
33
  CHANNEL_REGISTRY,
34
34
  DEPLOYMENT_TEMPLATES,
@@ -4930,7 +4930,7 @@ import { execFileSync, execSync } from "child_process";
4930
4930
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
4931
4931
  import chalk18 from "chalk";
4932
4932
  import ora16 from "ora";
4933
- var cliVersion = true ? "0.27.76" : "dev";
4933
+ var cliVersion = true ? "0.27.77" : "dev";
4934
4934
  async function fetchLatestVersion() {
4935
4935
  const host2 = getHost();
4936
4936
  if (!host2) return null;
@@ -5559,7 +5559,7 @@ async function integrationListCommand() {
5559
5559
  const json = isJsonMode();
5560
5560
  const spinner = ora17({ text: "Fetching integrations\u2026", isSilent: json }).start();
5561
5561
  try {
5562
- const data = await api.get("/integrations/bindings");
5562
+ const data = await api.get("/integrations/installs");
5563
5563
  spinner.stop();
5564
5564
  if (json) {
5565
5565
  jsonOutput({ integrations: data });
@@ -5586,7 +5586,7 @@ async function integrationShowCommand(slug) {
5586
5586
  const json = isJsonMode();
5587
5587
  const spinner = ora17({ text: "Fetching integration\u2026", isSilent: json }).start();
5588
5588
  try {
5589
- const all = await api.get("/integrations/bindings");
5589
+ const all = await api.get("/integrations/installs");
5590
5590
  const integration2 = all.find((p) => p.slug === slug);
5591
5591
  if (!integration2) {
5592
5592
  spinner.stop();
@@ -5594,7 +5594,7 @@ async function integrationShowCommand(slug) {
5594
5594
  process.exitCode = 1;
5595
5595
  return;
5596
5596
  }
5597
- const scopes = await api.get(`/integrations/bindings/${integration2.id}/scopes`);
5597
+ const scopes = await api.get(`/integrations/installs/${integration2.id}/scopes`);
5598
5598
  spinner.stop();
5599
5599
  if (json) {
5600
5600
  jsonOutput({ integration: integration2, scopes });
@@ -5628,7 +5628,7 @@ async function integrationInstallCommand(slug, options) {
5628
5628
  const json = isJsonMode();
5629
5629
  const spinner = ora17({ text: "Installing integration\u2026", isSilent: json }).start();
5630
5630
  try {
5631
- const all = await api.get("/integrations/bindings");
5631
+ const all = await api.get("/integrations/installs");
5632
5632
  const integration2 = all.find((p) => p.slug === slug);
5633
5633
  if (!integration2) {
5634
5634
  spinner.stop();
@@ -5645,7 +5645,7 @@ async function integrationInstallCommand(slug, options) {
5645
5645
  return;
5646
5646
  }
5647
5647
  const scopes = options.scopes?.split(",").map((s) => s.trim()).filter(Boolean) ?? [];
5648
- const result = await api.post("/integrations/bindings/install", {
5648
+ const result = await api.post("/integrations/installs/install", {
5649
5649
  agent_id: agent2.agent_id,
5650
5650
  plugin_id: integration2.id,
5651
5651
  scopes
@@ -5678,7 +5678,7 @@ async function integrationUninstallCommand(slug, options) {
5678
5678
  const json = isJsonMode();
5679
5679
  const spinner = ora17({ text: "Uninstalling integration\u2026", isSilent: json }).start();
5680
5680
  try {
5681
- const all = await api.get("/integrations/bindings");
5681
+ const all = await api.get("/integrations/installs");
5682
5682
  const integration2 = all.find((p) => p.slug === slug);
5683
5683
  if (!integration2) {
5684
5684
  spinner.stop();
@@ -5694,7 +5694,7 @@ async function integrationUninstallCommand(slug, options) {
5694
5694
  process.exitCode = 1;
5695
5695
  return;
5696
5696
  }
5697
- await api.post("/integrations/bindings/uninstall", {
5697
+ await api.post("/integrations/installs/uninstall", {
5698
5698
  agent_id: agent2.agent_id,
5699
5699
  plugin_id: integration2.id
5700
5700
  });
@@ -5709,7 +5709,7 @@ async function integrationRequestsCommand() {
5709
5709
  const json = isJsonMode();
5710
5710
  const spinner = ora17({ text: "Fetching scope requests\u2026", isSilent: json }).start();
5711
5711
  try {
5712
- const requests = await api.get("/integrations/bindings/scope-requests");
5712
+ const requests = await api.get("/integrations/installs/scope-requests");
5713
5713
  spinner.stop();
5714
5714
  if (json) {
5715
5715
  jsonOutput({ requests });
@@ -5735,7 +5735,7 @@ async function integrationApproveCommand(requestId, options) {
5735
5735
  const json = isJsonMode();
5736
5736
  const spinner = ora17({ text: "Approving request\u2026", isSilent: json }).start();
5737
5737
  try {
5738
- const result = await api.put(`/integrations/bindings/scope-requests/${requestId}`, {
5738
+ const result = await api.put(`/integrations/installs/scope-requests/${requestId}`, {
5739
5739
  status: "approved",
5740
5740
  review_notes: options.notes
5741
5741
  });
@@ -5754,7 +5754,7 @@ async function integrationDenyCommand(requestId, options) {
5754
5754
  const json = isJsonMode();
5755
5755
  const spinner = ora17({ text: "Denying request\u2026", isSilent: json }).start();
5756
5756
  try {
5757
- const result = await api.put(`/integrations/bindings/scope-requests/${requestId}`, {
5757
+ const result = await api.put(`/integrations/installs/scope-requests/${requestId}`, {
5758
5758
  status: "denied",
5759
5759
  review_notes: options.reason
5760
5760
  });
@@ -5816,7 +5816,7 @@ async function integrationEnrolCommand(options) {
5816
5816
  }
5817
5817
  let displayName = options.displayName;
5818
5818
  if (!displayName) {
5819
- const defs = await api.get("/integrations/bindings");
5819
+ const defs = await api.get("/integrations/installs");
5820
5820
  const def = defs.find((d) => d.slug === options.def);
5821
5821
  displayName = def?.name ?? options.def;
5822
5822
  }
@@ -5853,7 +5853,7 @@ function handleError(err) {
5853
5853
  }
5854
5854
 
5855
5855
  // src/bin/agt.ts
5856
- var cliVersion2 = true ? "0.27.76" : "dev";
5856
+ var cliVersion2 = true ? "0.27.77" : "dev";
5857
5857
  var program = new Command();
5858
5858
  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");
5859
5859
  program.hook("preAction", async (thisCommand, actionCommand) => {