@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 CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  success,
29
29
  table,
30
30
  warn
31
- } from "../chunk-QHEAAPEG.js";
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-WOOYOAPG.js";
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.16" : "dev";
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.16" : "dev";
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) => {