@integrity-labs/agt-cli 0.15.15 → 0.15.16
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 +13 -13
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-XWZ6DB5U.js → chunk-EGXC323P.js} +2 -2
- package/dist/{chunk-XWZ6DB5U.js.map → chunk-EGXC323P.js.map} +1 -1
- package/dist/lib/manager-worker.js +14 -3
- package/dist/lib/manager-worker.js.map +1 -1
- package/package.json +1 -1
package/dist/bin/agt.js
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
success,
|
|
47
47
|
table,
|
|
48
48
|
warn
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-EGXC323P.js";
|
|
50
50
|
|
|
51
51
|
// src/bin/agt.ts
|
|
52
52
|
import { join as join10 } from "path";
|
|
@@ -3730,7 +3730,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
3730
3730
|
import { existsSync as existsSync5, realpathSync } from "fs";
|
|
3731
3731
|
import chalk17 from "chalk";
|
|
3732
3732
|
import ora15 from "ora";
|
|
3733
|
-
var cliVersion = true ? "0.15.
|
|
3733
|
+
var cliVersion = true ? "0.15.16" : "dev";
|
|
3734
3734
|
async function fetchLatestVersion() {
|
|
3735
3735
|
const host2 = getHost();
|
|
3736
3736
|
if (!host2) return null;
|
|
@@ -3959,7 +3959,7 @@ async function pluginListCommand() {
|
|
|
3959
3959
|
const json = isJsonMode();
|
|
3960
3960
|
const spinner = ora16({ text: "Fetching plugins\u2026", isSilent: json }).start();
|
|
3961
3961
|
try {
|
|
3962
|
-
const data = await api.get("/
|
|
3962
|
+
const data = await api.get("/integrations/bindings");
|
|
3963
3963
|
spinner.stop();
|
|
3964
3964
|
if (json) {
|
|
3965
3965
|
jsonOutput({ plugins: data });
|
|
@@ -3986,7 +3986,7 @@ async function pluginShowCommand(slug) {
|
|
|
3986
3986
|
const json = isJsonMode();
|
|
3987
3987
|
const spinner = ora16({ text: "Fetching plugin\u2026", isSilent: json }).start();
|
|
3988
3988
|
try {
|
|
3989
|
-
const all = await api.get("/
|
|
3989
|
+
const all = await api.get("/integrations/bindings");
|
|
3990
3990
|
const plugin2 = all.find((p) => p.slug === slug);
|
|
3991
3991
|
if (!plugin2) {
|
|
3992
3992
|
spinner.stop();
|
|
@@ -3994,7 +3994,7 @@ async function pluginShowCommand(slug) {
|
|
|
3994
3994
|
process.exitCode = 1;
|
|
3995
3995
|
return;
|
|
3996
3996
|
}
|
|
3997
|
-
const scopes = await api.get(`/
|
|
3997
|
+
const scopes = await api.get(`/integrations/bindings/${plugin2.id}/scopes`);
|
|
3998
3998
|
spinner.stop();
|
|
3999
3999
|
if (json) {
|
|
4000
4000
|
jsonOutput({ plugin: plugin2, scopes });
|
|
@@ -4028,7 +4028,7 @@ async function pluginInstallCommand(slug, options) {
|
|
|
4028
4028
|
const json = isJsonMode();
|
|
4029
4029
|
const spinner = ora16({ text: "Installing plugin\u2026", isSilent: json }).start();
|
|
4030
4030
|
try {
|
|
4031
|
-
const all = await api.get("/
|
|
4031
|
+
const all = await api.get("/integrations/bindings");
|
|
4032
4032
|
const plugin2 = all.find((p) => p.slug === slug);
|
|
4033
4033
|
if (!plugin2) {
|
|
4034
4034
|
spinner.stop();
|
|
@@ -4045,7 +4045,7 @@ async function pluginInstallCommand(slug, options) {
|
|
|
4045
4045
|
return;
|
|
4046
4046
|
}
|
|
4047
4047
|
const scopes = options.scopes?.split(",").map((s) => s.trim()).filter(Boolean) ?? [];
|
|
4048
|
-
const result = await api.post("/
|
|
4048
|
+
const result = await api.post("/integrations/bindings/install", {
|
|
4049
4049
|
agent_id: agent2.agent_id,
|
|
4050
4050
|
plugin_id: plugin2.id,
|
|
4051
4051
|
scopes
|
|
@@ -4078,7 +4078,7 @@ async function pluginUninstallCommand(slug, options) {
|
|
|
4078
4078
|
const json = isJsonMode();
|
|
4079
4079
|
const spinner = ora16({ text: "Uninstalling plugin\u2026", isSilent: json }).start();
|
|
4080
4080
|
try {
|
|
4081
|
-
const all = await api.get("/
|
|
4081
|
+
const all = await api.get("/integrations/bindings");
|
|
4082
4082
|
const plugin2 = all.find((p) => p.slug === slug);
|
|
4083
4083
|
if (!plugin2) {
|
|
4084
4084
|
spinner.stop();
|
|
@@ -4094,7 +4094,7 @@ async function pluginUninstallCommand(slug, options) {
|
|
|
4094
4094
|
process.exitCode = 1;
|
|
4095
4095
|
return;
|
|
4096
4096
|
}
|
|
4097
|
-
await api.post("/
|
|
4097
|
+
await api.post("/integrations/bindings/uninstall", {
|
|
4098
4098
|
agent_id: agent2.agent_id,
|
|
4099
4099
|
plugin_id: plugin2.id
|
|
4100
4100
|
});
|
|
@@ -4109,7 +4109,7 @@ async function pluginRequestsCommand() {
|
|
|
4109
4109
|
const json = isJsonMode();
|
|
4110
4110
|
const spinner = ora16({ text: "Fetching scope requests\u2026", isSilent: json }).start();
|
|
4111
4111
|
try {
|
|
4112
|
-
const requests = await api.get("/
|
|
4112
|
+
const requests = await api.get("/integrations/bindings/scope-requests");
|
|
4113
4113
|
spinner.stop();
|
|
4114
4114
|
if (json) {
|
|
4115
4115
|
jsonOutput({ requests });
|
|
@@ -4135,7 +4135,7 @@ async function pluginApproveCommand(requestId, options) {
|
|
|
4135
4135
|
const json = isJsonMode();
|
|
4136
4136
|
const spinner = ora16({ text: "Approving request\u2026", isSilent: json }).start();
|
|
4137
4137
|
try {
|
|
4138
|
-
const result = await api.put(`/
|
|
4138
|
+
const result = await api.put(`/integrations/bindings/scope-requests/${requestId}`, {
|
|
4139
4139
|
status: "approved",
|
|
4140
4140
|
review_notes: options.notes
|
|
4141
4141
|
});
|
|
@@ -4154,7 +4154,7 @@ async function pluginDenyCommand(requestId, options) {
|
|
|
4154
4154
|
const json = isJsonMode();
|
|
4155
4155
|
const spinner = ora16({ text: "Denying request\u2026", isSilent: json }).start();
|
|
4156
4156
|
try {
|
|
4157
|
-
const result = await api.put(`/
|
|
4157
|
+
const result = await api.put(`/integrations/bindings/scope-requests/${requestId}`, {
|
|
4158
4158
|
status: "denied",
|
|
4159
4159
|
review_notes: options.reason
|
|
4160
4160
|
});
|
|
@@ -4179,7 +4179,7 @@ function handleError(err) {
|
|
|
4179
4179
|
}
|
|
4180
4180
|
|
|
4181
4181
|
// src/bin/agt.ts
|
|
4182
|
-
var cliVersion2 = true ? "0.15.
|
|
4182
|
+
var cliVersion2 = true ? "0.15.16" : "dev";
|
|
4183
4183
|
var program = new Command();
|
|
4184
4184
|
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");
|
|
4185
4185
|
program.hook("preAction", (thisCommand) => {
|