@integrity-labs/agt-cli 0.27.1 → 0.27.3
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 +11 -6
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-UVPB6TSJ.js → chunk-AFRYJUBD.js} +5 -4
- package/dist/{chunk-UVPB6TSJ.js.map → chunk-AFRYJUBD.js.map} +1 -1
- package/dist/{chunk-WDCSMDQ4.js → chunk-CSDKWI5V.js} +42 -5
- package/dist/chunk-CSDKWI5V.js.map +1 -0
- package/dist/{chunk-CTWY2X4S.js → chunk-JTZZ6YB2.js} +7 -1
- package/dist/chunk-JTZZ6YB2.js.map +1 -0
- package/dist/{claude-pair-runtime-YRPKT45R.js → claude-pair-runtime-O6ZAT7MQ.js} +2 -2
- package/dist/lib/manager-worker.js +7 -7
- package/dist/mcp/index.js +45 -6
- package/dist/{persistent-session-QJT7JE5P.js → persistent-session-3MXZBC5W.js} +3 -3
- package/dist/{responsiveness-probe-ZERSZOZ2.js → responsiveness-probe-37336LTO.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-CTWY2X4S.js.map +0 -1
- package/dist/chunk-WDCSMDQ4.js.map +0 -1
- /package/dist/{claude-pair-runtime-YRPKT45R.js.map → claude-pair-runtime-O6ZAT7MQ.js.map} +0 -0
- /package/dist/{persistent-session-QJT7JE5P.js.map → persistent-session-3MXZBC5W.js.map} +0 -0
- /package/dist/{responsiveness-probe-ZERSZOZ2.js.map → responsiveness-probe-37336LTO.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
ApiError,
|
|
4
|
+
DEFAULT_AGT_HOST,
|
|
4
5
|
api,
|
|
5
6
|
error,
|
|
6
7
|
exchangeApiKey,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
success,
|
|
27
28
|
table,
|
|
28
29
|
warn
|
|
29
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-AFRYJUBD.js";
|
|
30
31
|
import {
|
|
31
32
|
CHANNEL_REGISTRY,
|
|
32
33
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -52,7 +53,7 @@ import {
|
|
|
52
53
|
renderTemplate,
|
|
53
54
|
resolveChannels,
|
|
54
55
|
serializeManifestForSlackCli
|
|
55
|
-
} from "../chunk-
|
|
56
|
+
} from "../chunk-JTZZ6YB2.js";
|
|
56
57
|
|
|
57
58
|
// src/bin/agt.ts
|
|
58
59
|
import { join as join14 } from "path";
|
|
@@ -1922,7 +1923,7 @@ async function impersonateConnectCommand(token, options = {}) {
|
|
|
1922
1923
|
isSilent: json
|
|
1923
1924
|
});
|
|
1924
1925
|
spinner.start();
|
|
1925
|
-
const host2 =
|
|
1926
|
+
const host2 = (options.apiHost ?? DEFAULT_AGT_HOST).replace(/\/+$/, "");
|
|
1926
1927
|
let bundle;
|
|
1927
1928
|
try {
|
|
1928
1929
|
const res = await fetch(`${host2}/impersonate/agent/redeem`, {
|
|
@@ -4393,7 +4394,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4393
4394
|
import { existsSync as existsSync8, realpathSync as realpathSync2 } from "fs";
|
|
4394
4395
|
import chalk18 from "chalk";
|
|
4395
4396
|
import ora16 from "ora";
|
|
4396
|
-
var cliVersion = true ? "0.27.
|
|
4397
|
+
var cliVersion = true ? "0.27.3" : "dev";
|
|
4397
4398
|
async function fetchLatestVersion() {
|
|
4398
4399
|
const host2 = getHost();
|
|
4399
4400
|
if (!host2) return null;
|
|
@@ -4925,7 +4926,7 @@ function handleError(err) {
|
|
|
4925
4926
|
}
|
|
4926
4927
|
|
|
4927
4928
|
// src/bin/agt.ts
|
|
4928
|
-
var cliVersion2 = true ? "0.27.
|
|
4929
|
+
var cliVersion2 = true ? "0.27.3" : "dev";
|
|
4929
4930
|
var program = new Command();
|
|
4930
4931
|
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");
|
|
4931
4932
|
program.hook("preAction", (thisCommand) => {
|
|
@@ -4951,6 +4952,9 @@ impersonate.command("connect <token>").description(
|
|
|
4951
4952
|
).option(
|
|
4952
4953
|
"--workdir",
|
|
4953
4954
|
"Swap into an auto-provisioned dedicated directory (~/.augmented-impersonate/<agent>/workdir) instead of the current directory \u2014 required when the current directory is inside a git repo"
|
|
4955
|
+
).option(
|
|
4956
|
+
"--api-host <url>",
|
|
4957
|
+
"Override the API host used to redeem the token. Defaults to https://api.augmented.team \u2014 AGT_HOST is intentionally ignored so a dev/Tailscale AGT_HOST doesn't accidentally 502 against a token minted on prod."
|
|
4954
4958
|
).action(
|
|
4955
4959
|
(token, opts) => (
|
|
4956
4960
|
// Commander negates --no-FLAG into opts.flag, so --no-launch arrives
|
|
@@ -4958,7 +4962,8 @@ impersonate.command("connect <token>").description(
|
|
|
4958
4962
|
// option, defaulting to launching when the flag isn't passed.
|
|
4959
4963
|
impersonateConnectCommand(token, {
|
|
4960
4964
|
noLaunch: opts.launch === false,
|
|
4961
|
-
workdir: opts.workdir === true
|
|
4965
|
+
workdir: opts.workdir === true,
|
|
4966
|
+
apiHost: opts.apiHost
|
|
4962
4967
|
})
|
|
4963
4968
|
)
|
|
4964
4969
|
);
|