@integrity-labs/agt-cli 0.27.38 → 0.27.40
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 +7 -3
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-NX5MXIFQ.js → chunk-YYUWW6CQ.js} +90 -1
- package/dist/chunk-YYUWW6CQ.js.map +1 -0
- package/dist/lib/manager-worker.js +2 -2
- package/dist/mcp/index.js +12 -3
- package/package.json +1 -1
- package/dist/chunk-NX5MXIFQ.js.map +0 -1
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-YYUWW6CQ.js";
|
|
31
31
|
import {
|
|
32
32
|
CHANNEL_REGISTRY,
|
|
33
33
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -2043,6 +2043,9 @@ function rewriteServerEntry(raw, ctx) {
|
|
|
2043
2043
|
const env = isPlainObject(raw["env"]) ? { ...raw["env"] } : {};
|
|
2044
2044
|
fillIfEmpty(env, "AGT_HOST", ctx.apiHost);
|
|
2045
2045
|
fillIfEmpty(env, "AGT_API_KEY", ctx.impersonationToken);
|
|
2046
|
+
if (ctx.agentSessionToken) {
|
|
2047
|
+
fillIfEmpty(env, "AGT_AGENT_SESSION_TOKEN", ctx.agentSessionToken);
|
|
2048
|
+
}
|
|
2046
2049
|
fillIfEmpty(env, "HOME", ctx.operatorHome);
|
|
2047
2050
|
fillIfEmpty(env, "AGT_AGENT_ID", ctx.agentId);
|
|
2048
2051
|
fillIfEmpty(env, "AGT_AGENT_CODE_NAME", ctx.agentCodeName);
|
|
@@ -2138,6 +2141,7 @@ async function impersonateConnectCommand(token, options = {}) {
|
|
|
2138
2141
|
operatorPath: resolveOperatorPath(),
|
|
2139
2142
|
cliMcpBundleDir: resolveCliMcpBundleDir(),
|
|
2140
2143
|
impersonationToken: bundle.token,
|
|
2144
|
+
agentSessionToken: bundle.agent_session_token ?? null,
|
|
2141
2145
|
apiHost: host2,
|
|
2142
2146
|
agentId: bundle.agent.agent_id,
|
|
2143
2147
|
agentCodeName: bundle.agent.code_name
|
|
@@ -4658,7 +4662,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4658
4662
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4659
4663
|
import chalk18 from "chalk";
|
|
4660
4664
|
import ora16 from "ora";
|
|
4661
|
-
var cliVersion = true ? "0.27.
|
|
4665
|
+
var cliVersion = true ? "0.27.40" : "dev";
|
|
4662
4666
|
async function fetchLatestVersion() {
|
|
4663
4667
|
const host2 = getHost();
|
|
4664
4668
|
if (!host2) return null;
|
|
@@ -5331,7 +5335,7 @@ function handleError(err) {
|
|
|
5331
5335
|
}
|
|
5332
5336
|
|
|
5333
5337
|
// src/bin/agt.ts
|
|
5334
|
-
var cliVersion2 = true ? "0.27.
|
|
5338
|
+
var cliVersion2 = true ? "0.27.40" : "dev";
|
|
5335
5339
|
var program = new Command();
|
|
5336
5340
|
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");
|
|
5337
5341
|
program.hook("preAction", (thisCommand) => {
|