@integrity-labs/agt-cli 0.27.150-test.16 → 0.27.150-test.17
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 -6
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-WOOYOAPG.js → chunk-FZTGR2AQ.js} +153 -20
- package/dist/chunk-FZTGR2AQ.js.map +1 -0
- package/dist/{chunk-7GKJZBTB.js → chunk-HXMLMIR4.js} +230 -53
- package/dist/chunk-HXMLMIR4.js.map +1 -0
- package/dist/{chunk-QHEAAPEG.js → chunk-L2JA4OHU.js} +108 -2
- package/dist/chunk-L2JA4OHU.js.map +1 -0
- package/dist/{claude-pair-runtime-GIUCD7IG.js → claude-pair-runtime-QYJUJUYY.js} +2 -2
- package/dist/lib/manager-worker.js +422 -165
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/augmented-admin.js +42 -4
- package/dist/{persistent-session-35PWSTLO.js → persistent-session-IKQLTZZ6.js} +3 -4
- package/dist/{responsiveness-probe-MA4M2QM4.js → responsiveness-probe-2K4QHOWW.js} +3 -4
- package/dist/{responsiveness-probe-MA4M2QM4.js.map → responsiveness-probe-2K4QHOWW.js.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-354FAVQR.js +0 -173
- package/dist/chunk-354FAVQR.js.map +0 -1
- package/dist/chunk-7GKJZBTB.js.map +0 -1
- package/dist/chunk-QHEAAPEG.js.map +0 -1
- package/dist/chunk-WOOYOAPG.js.map +0 -1
- package/dist/daily-session-PNQX5URX.js +0 -27
- package/dist/persistent-session-35PWSTLO.js.map +0 -1
- /package/dist/{claude-pair-runtime-GIUCD7IG.js.map → claude-pair-runtime-QYJUJUYY.js.map} +0 -0
- /package/dist/{daily-session-PNQX5URX.js.map → persistent-session-IKQLTZZ6.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
success,
|
|
29
29
|
table,
|
|
30
30
|
warn
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-L2JA4OHU.js";
|
|
32
32
|
import {
|
|
33
33
|
CHANNEL_REGISTRY,
|
|
34
34
|
DEPLOYMENT_TEMPLATES,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
renderTemplate,
|
|
55
55
|
resolveChannels,
|
|
56
56
|
serializeManifestForSlackCli
|
|
57
|
-
} from "../chunk-
|
|
57
|
+
} from "../chunk-FZTGR2AQ.js";
|
|
58
58
|
|
|
59
59
|
// src/bin/agt.ts
|
|
60
60
|
import { join as join20 } from "path";
|
|
@@ -2122,6 +2122,7 @@ function rewriteMcpJsonForImpersonation(mcpJson, ctx) {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
function rewriteServerEntry(serverName, raw, ctx) {
|
|
2124
2124
|
if (!isPlainObject(raw)) return raw;
|
|
2125
|
+
if ("url" in raw) return raw;
|
|
2125
2126
|
let args = raw["args"];
|
|
2126
2127
|
if (Array.isArray(args)) {
|
|
2127
2128
|
args = args.map((arg) => {
|
|
@@ -2346,7 +2347,8 @@ async function impersonateConnectCommand(token, options = {}) {
|
|
|
2346
2347
|
const launch = buildImpersonateClaudeLaunch(
|
|
2347
2348
|
projectCwd,
|
|
2348
2349
|
process.env,
|
|
2349
|
-
bundle.agent.agent_id
|
|
2350
|
+
bundle.agent.agent_id,
|
|
2351
|
+
bundle.integration_env ?? null
|
|
2350
2352
|
);
|
|
2351
2353
|
await new Promise((resolve2) => {
|
|
2352
2354
|
const child = spawn("claude", launch.args, {
|
|
@@ -2628,7 +2630,7 @@ function resolveOperatorPath(execPath = process.execPath, inheritedPath = proces
|
|
|
2628
2630
|
}
|
|
2629
2631
|
return segments.join(delimiter);
|
|
2630
2632
|
}
|
|
2631
|
-
function buildImpersonateClaudeLaunch(projectCwd, inheritEnv = process.env, agentId = null) {
|
|
2633
|
+
function buildImpersonateClaudeLaunch(projectCwd, inheritEnv = process.env, agentId = null, integrationEnv = null) {
|
|
2632
2634
|
const env = {
|
|
2633
2635
|
...inheritEnv,
|
|
2634
2636
|
ENABLE_CLAUDEAI_MCP_SERVERS: "false"
|
|
@@ -2636,6 +2638,11 @@ function buildImpersonateClaudeLaunch(projectCwd, inheritEnv = process.env, agen
|
|
|
2636
2638
|
if (agentId !== null && agentId.length > 0) {
|
|
2637
2639
|
env.AGT_ACT_AS_AGENT_ID = agentId;
|
|
2638
2640
|
}
|
|
2641
|
+
if (integrationEnv) {
|
|
2642
|
+
for (const [key, value] of Object.entries(integrationEnv)) {
|
|
2643
|
+
if (key && value) env[key] = value;
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2639
2646
|
return {
|
|
2640
2647
|
args: [
|
|
2641
2648
|
"--strict-mcp-config",
|
|
@@ -4934,7 +4941,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4934
4941
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4935
4942
|
import chalk18 from "chalk";
|
|
4936
4943
|
import ora16 from "ora";
|
|
4937
|
-
var cliVersion = true ? "0.27.150-test.
|
|
4944
|
+
var cliVersion = true ? "0.27.150-test.17" : "dev";
|
|
4938
4945
|
async function fetchLatestVersion() {
|
|
4939
4946
|
const host2 = getHost();
|
|
4940
4947
|
if (!host2) return null;
|
|
@@ -5857,7 +5864,7 @@ function handleError(err) {
|
|
|
5857
5864
|
}
|
|
5858
5865
|
|
|
5859
5866
|
// src/bin/agt.ts
|
|
5860
|
-
var cliVersion2 = true ? "0.27.150-test.
|
|
5867
|
+
var cliVersion2 = true ? "0.27.150-test.17" : "dev";
|
|
5861
5868
|
var program = new Command();
|
|
5862
5869
|
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");
|
|
5863
5870
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|