@integrity-labs/agt-cli 0.28.1189 → 0.28.1190

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.
Files changed (25) hide show
  1. package/dist/bin/agt.js +6 -6
  2. package/dist/{chunk-BG7IPLTE.js → chunk-55M26Q4M.js} +2 -2
  3. package/dist/{chunk-M5QY6SXB.js → chunk-7GZKHF45.js} +9 -4
  4. package/dist/{chunk-M5QY6SXB.js.map → chunk-7GZKHF45.js.map} +1 -1
  5. package/dist/{chunk-CJ3KE25W.js → chunk-EFTLDAKN.js} +3 -3
  6. package/dist/{chunk-GYY5LC6U.js → chunk-KV6ZNGTG.js} +2 -2
  7. package/dist/{chunk-6C22ELAZ.js → chunk-NVLV6XHL.js} +54 -21
  8. package/dist/chunk-NVLV6XHL.js.map +1 -0
  9. package/dist/{claude-code-updater-CQ2SWFEJ.js → claude-code-updater-IU23JJZI.js} +3 -3
  10. package/dist/{claude-pair-runtime-N54HX4ZR.js → claude-pair-runtime-GMXVV5AJ.js} +3 -3
  11. package/dist/lib/manager-worker.js +28 -21
  12. package/dist/lib/manager-worker.js.map +1 -1
  13. package/dist/{persistent-session-NL7N3MA4.js → persistent-session-7PBVDLFI.js} +4 -4
  14. package/dist/{responsiveness-probe-BMLAPOIY.js → responsiveness-probe-RSH4EMQP.js} +4 -4
  15. package/dist/{session-auth-dead-PTHDHHK4.js → session-auth-dead-M2YABEQU.js} +3 -3
  16. package/package.json +1 -1
  17. package/dist/chunk-6C22ELAZ.js.map +0 -1
  18. /package/dist/{chunk-BG7IPLTE.js.map → chunk-55M26Q4M.js.map} +0 -0
  19. /package/dist/{chunk-CJ3KE25W.js.map → chunk-EFTLDAKN.js.map} +0 -0
  20. /package/dist/{chunk-GYY5LC6U.js.map → chunk-KV6ZNGTG.js.map} +0 -0
  21. /package/dist/{claude-code-updater-CQ2SWFEJ.js.map → claude-code-updater-IU23JJZI.js.map} +0 -0
  22. /package/dist/{claude-pair-runtime-N54HX4ZR.js.map → claude-pair-runtime-GMXVV5AJ.js.map} +0 -0
  23. /package/dist/{persistent-session-NL7N3MA4.js.map → persistent-session-7PBVDLFI.js.map} +0 -0
  24. /package/dist/{responsiveness-probe-BMLAPOIY.js.map → responsiveness-probe-RSH4EMQP.js.map} +0 -0
  25. /package/dist/{session-auth-dead-PTHDHHK4.js.map → session-auth-dead-M2YABEQU.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,17 +40,17 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-6C22ELAZ.js";
43
+ } from "../chunk-NVLV6XHL.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-CJ3KE25W.js";
48
+ } from "../chunk-EFTLDAKN.js";
49
49
  import {
50
50
  markDailySessionSpawn,
51
51
  sessionFileExists,
52
52
  sessionTranscriptDir
53
- } from "../chunk-GYY5LC6U.js";
53
+ } from "../chunk-KV6ZNGTG.js";
54
54
  import "../chunk-OO36JBFI.js";
55
55
  import "../chunk-6HBXEJHO.js";
56
56
  import "../chunk-XWVM4KPK.js";
@@ -83,7 +83,7 @@ import {
83
83
  requiredMcpWildcard,
84
84
  resolveChannels,
85
85
  serializeManifestForSlackCli
86
- } from "../chunk-M5QY6SXB.js";
86
+ } from "../chunk-7GZKHF45.js";
87
87
  import "../chunk-AIUIMEUS.js";
88
88
  import "../chunk-DGUM43GV.js";
89
89
 
@@ -5200,7 +5200,7 @@ import { execFileSync, execSync } from "child_process";
5200
5200
  import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
5201
5201
  import chalk17 from "chalk";
5202
5202
  import ora15 from "ora";
5203
- var cliVersion = true ? "0.28.1189" : "dev";
5203
+ var cliVersion = true ? "0.28.1190" : "dev";
5204
5204
  async function fetchLatestVersion() {
5205
5205
  const host2 = getHost();
5206
5206
  if (!host2) return null;
@@ -6460,7 +6460,7 @@ function handleError(err) {
6460
6460
  }
6461
6461
 
6462
6462
  // src/bin/agt.ts
6463
- var cliVersion2 = true ? "0.28.1189" : "dev";
6463
+ var cliVersion2 = true ? "0.28.1190" : "dev";
6464
6464
  var program = new Command();
6465
6465
  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");
6466
6466
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-XWVM4KPK.js";
5
5
  import {
6
6
  FORCED_UPDATE_HARD_DEADLINE_MS
7
- } from "./chunk-M5QY6SXB.js";
7
+ } from "./chunk-7GZKHF45.js";
8
8
  import {
9
9
  effectiveClaudeJsonPath
10
10
  } from "./chunk-AIUIMEUS.js";
@@ -722,4 +722,4 @@ export {
722
722
  probeClaudeInstalls,
723
723
  maybeUpdateClaudeCode
724
724
  };
725
- //# sourceMappingURL=chunk-BG7IPLTE.js.map
725
+ //# sourceMappingURL=chunk-55M26Q4M.js.map
@@ -14366,6 +14366,9 @@ async function parseRpc2(res, expectedId) {
14366
14366
  return msg;
14367
14367
  return null;
14368
14368
  }
14369
+ function redactSentHeaders(text, headers) {
14370
+ return Object.values(headers ?? {}).filter((value) => value.length >= 8).reduce((out, value) => out.split(value).join("[redacted]"), text);
14371
+ }
14369
14372
  async function probeComposioMcpToolCall(config, fetchImpl = fetch) {
14370
14373
  const timeoutMs = config.timeoutMs ?? DEFAULT_TIMEOUT_MS2;
14371
14374
  const baseHeaders = {
@@ -14440,8 +14443,9 @@ async function probeComposioMcpToolCall(config, fetchImpl = fetch) {
14440
14443
  const errText = callRpc?.["error"]?.message;
14441
14444
  const resContent = callRpc?.["result"]?.content;
14442
14445
  const raw = errText ?? (resContent ?? []).map((c) => c.text ?? "").join(" ").trim();
14443
- if (raw)
14444
- baseDetails.response = raw.length > 2e3 ? `${raw.slice(0, 2e3)}\u2026` : raw;
14446
+ const response = redactSentHeaders(raw, config.headers);
14447
+ if (response)
14448
+ baseDetails.response = response.length > 2e3 ? `${response.slice(0, 2e3)}\u2026` : response;
14445
14449
  }
14446
14450
  const rpcErrMsg = callRpc && "error" in callRpc ? callRpc["error"]?.message ?? "" : "";
14447
14451
  const result = callRpc?.["result"];
@@ -14449,7 +14453,8 @@ async function probeComposioMcpToolCall(config, fetchImpl = fetch) {
14449
14453
  const failed = Boolean(rpcErrMsg) || Boolean(result?.isError) || isComposioFailureEnvelope(contentText2);
14450
14454
  if (failed) {
14451
14455
  const failureText = [rpcErrMsg, contentText2].filter(Boolean).join(" ");
14452
- const snippet = failureText.length > 200 ? `${failureText.slice(0, 200)}\u2026` : failureText;
14456
+ const redactedFailure = redactSentHeaders(failureText, config.headers);
14457
+ const snippet = redactedFailure.length > 200 ? `${redactedFailure.slice(0, 200)}\u2026` : redactedFailure;
14453
14458
  const kind = classifyToolCallFailure(failureText);
14454
14459
  if (kind === "account") {
14455
14460
  return {
@@ -17585,4 +17590,4 @@ export {
17585
17590
  isForcedUpdatePastDeadline,
17586
17591
  shouldMintReplacementKey
17587
17592
  };
17588
- //# sourceMappingURL=chunk-M5QY6SXB.js.map
17593
+ //# sourceMappingURL=chunk-7GZKHF45.js.map