@integrity-labs/agt-cli 0.28.1048 → 0.28.1050

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
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-4BOPLS65.js";
43
+ } from "../chunk-GQYD3ESJ.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-QGGDQMWF.js";
48
+ } from "../chunk-FNUTMHWV.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,8 +79,8 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-APAEM42J.js";
83
- import "../chunk-TQDIIS3X.js";
82
+ } from "../chunk-MQ4COFCI.js";
83
+ import "../chunk-OCMJ5E6J.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
  import "../chunk-EL5MWGGH.js";
86
86
  import "../chunk-DGUM43GV.js";
@@ -5474,7 +5474,7 @@ import { execFileSync, execSync } from "child_process";
5474
5474
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5475
5475
  import chalk18 from "chalk";
5476
5476
  import ora16 from "ora";
5477
- var cliVersion = true ? "0.28.1048" : "dev";
5477
+ var cliVersion = true ? "0.28.1050" : "dev";
5478
5478
  async function fetchLatestVersion() {
5479
5479
  const host2 = getHost();
5480
5480
  if (!host2) return null;
@@ -6734,7 +6734,7 @@ function handleError(err) {
6734
6734
  }
6735
6735
 
6736
6736
  // src/bin/agt.ts
6737
- var cliVersion2 = true ? "0.28.1048" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1050" : "dev";
6738
6738
  var program = new Command();
6739
6739
  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");
6740
6740
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -23,7 +23,7 @@ import {
23
23
  rotateDailySession,
24
24
  sessionFileExists,
25
25
  todayLocalIso
26
- } from "./chunk-APAEM42J.js";
26
+ } from "./chunk-MQ4COFCI.js";
27
27
  import {
28
28
  classifyUnanswerablePane,
29
29
  findUsageLimitResetHint,
@@ -38,7 +38,7 @@ import {
38
38
  sendDialogKeys,
39
39
  simpleTextHash,
40
40
  sweepDialogs
41
- } from "./chunk-TQDIIS3X.js";
41
+ } from "./chunk-OCMJ5E6J.js";
42
42
  import {
43
43
  reapOrphanChannelMcps
44
44
  } from "./chunk-XWVM4KPK.js";
@@ -5984,4 +5984,4 @@ export {
5984
5984
  stopAllSessionsAndWait,
5985
5985
  getProjectDir
5986
5986
  };
5987
- //# sourceMappingURL=chunk-QGGDQMWF.js.map
5987
+ //# sourceMappingURL=chunk-FNUTMHWV.js.map
@@ -16,7 +16,7 @@ import {
16
16
  parseEnvFileEntries,
17
17
  parseEnvIntegrations,
18
18
  shellQuote
19
- } from "./chunk-QGGDQMWF.js";
19
+ } from "./chunk-FNUTMHWV.js";
20
20
  import {
21
21
  BIND_FAILURE_QUARANTINE_THRESHOLD,
22
22
  INTEGRATIONS_SECTION_END,
@@ -72,19 +72,20 @@ import {
72
72
  remoteMcpConnectionScopedEnvVar,
73
73
  remoteMcpEnvPrefix,
74
74
  remoteMcpServerKey,
75
+ resolveAgentConsoleUrl,
75
76
  resolveAvatarEnvUrl,
76
77
  resolveConnectivityProbe,
77
78
  scanConfigForLiteralSecrets,
78
79
  sessionTranscriptDir,
79
80
  worseConnectivityOutcome,
80
81
  wrapScheduledTaskPrompt
81
- } from "./chunk-APAEM42J.js";
82
+ } from "./chunk-MQ4COFCI.js";
82
83
  import {
83
84
  classifyUnanswerablePane,
84
85
  isConsumerTermsDialogVisible,
85
86
  paneRemedy,
86
87
  summarizeUnanswerablePane
87
- } from "./chunk-TQDIIS3X.js";
88
+ } from "./chunk-OCMJ5E6J.js";
88
89
  import {
89
90
  parsePsRows
90
91
  } from "./chunk-XWVM4KPK.js";
@@ -5034,7 +5035,8 @@ function buildMcpJson(input) {
5034
5035
  // Console origin so the MCP bridge can build absolute URLs (e.g.
5035
5036
  // dashboard links) in tool replies. Falls back to NEXT_PUBLIC_APP_URL
5036
5037
  // / AGT_CONSOLE_URL — same chain consoleUrl uses for kanban links.
5037
- AGT_APP_URL: process.env["AGT_APP_URL"] ?? process.env["NEXT_PUBLIC_APP_URL"] ?? process.env["AGT_CONSOLE_URL"] ?? "",
5038
+ // ENG-10421: the server-shipped console URL first (see agent-console-url.ts).
5039
+ AGT_APP_URL: resolveAgentConsoleUrl(input),
5038
5040
  // ENG-6229: arms the in-session `request_restart` self-restart tool.
5039
5041
  // Read at provision time from the manager's env (like AGT_HOST above),
5040
5042
  // NOT a per-spawn `${...}` template — it's a host-level gate. Empty by
@@ -5369,7 +5371,8 @@ var claudeCodeAdapter = {
5369
5371
  team: input.team,
5370
5372
  // ENG-5009: org context for the identity preamble.
5371
5373
  organization: input.organization,
5372
- consoleUrl: process.env["NEXT_PUBLIC_APP_URL"] || process.env["AGT_CONSOLE_URL"] || "https://app.augmented.team",
5374
+ // ENG-10421: follows the API's console URL, not the host's stale env.
5375
+ consoleUrl: resolveAgentConsoleUrl(input),
5373
5376
  // ENG-7831: the server includes `workflows` (possibly empty) only when
5374
5377
  // the dynamic-workflows feature is on for this agent, so field presence
5375
5378
  // is the render gate for the platform-storage section's workflow rows.
@@ -7119,7 +7122,7 @@ function exchangeFailureKind(err) {
7119
7122
  }
7120
7123
 
7121
7124
  // src/lib/api-client.ts
7122
- var agtCliVersion = true ? "0.28.1048" : "dev";
7125
+ var agtCliVersion = true ? "0.28.1050" : "dev";
7123
7126
  var lastConfigHash = null;
7124
7127
  function setConfigHash(hash) {
7125
7128
  lastConfigHash = hash && hash.length > 0 ? hash : null;
@@ -12076,4 +12079,4 @@ export {
12076
12079
  managerInstallSystemUnitCommand,
12077
12080
  managerUninstallSystemUnitCommand
12078
12081
  };
12079
- //# sourceMappingURL=chunk-4BOPLS65.js.map
12082
+ //# sourceMappingURL=chunk-GQYD3ESJ.js.map