@integrity-labs/agt-cli 0.28.1069 → 0.28.1070

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 (26) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-FHUYRSCF.js → chunk-3KVS22KX.js} +2 -2
  3. package/dist/{chunk-CFJONCHN.js → chunk-64DXAOQQ.js} +33 -1
  4. package/dist/{chunk-CFJONCHN.js.map → chunk-64DXAOQQ.js.map} +1 -1
  5. package/dist/{chunk-CO2ODT4I.js → chunk-XCGOVUGI.js} +4 -4
  6. package/dist/{claude-pair-runtime-Z7SMBMUG.js → claude-pair-runtime-B6DFCLT3.js} +2 -2
  7. package/dist/lib/manager-worker.js +46 -35
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +32 -0
  10. package/dist/mcp/index.js +32 -0
  11. package/dist/mcp/origami.js +32 -0
  12. package/dist/mcp/slack-channel.js +32 -0
  13. package/dist/mcp/telegram-channel.js +32 -0
  14. package/dist/{pane-fatal-error-EL336LRO.js → pane-fatal-error-JORQ5OPV.js} +58 -16
  15. package/dist/pane-fatal-error-JORQ5OPV.js.map +1 -0
  16. package/dist/{persistent-session-52A2G7D7.js → persistent-session-75DOT6JV.js} +3 -3
  17. package/dist/{responsiveness-probe-SJCP4V4X.js → responsiveness-probe-YFUIBZZV.js} +3 -3
  18. package/dist/{session-auth-dead-JJPNV3YQ.js → session-auth-dead-JN4EBUCN.js} +2 -2
  19. package/package.json +1 -1
  20. package/dist/pane-fatal-error-EL336LRO.js.map +0 -1
  21. /package/dist/{chunk-FHUYRSCF.js.map → chunk-3KVS22KX.js.map} +0 -0
  22. /package/dist/{chunk-CO2ODT4I.js.map → chunk-XCGOVUGI.js.map} +0 -0
  23. /package/dist/{claude-pair-runtime-Z7SMBMUG.js.map → claude-pair-runtime-B6DFCLT3.js.map} +0 -0
  24. /package/dist/{persistent-session-52A2G7D7.js.map → persistent-session-75DOT6JV.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-SJCP4V4X.js.map → responsiveness-probe-YFUIBZZV.js.map} +0 -0
  26. /package/dist/{session-auth-dead-JJPNV3YQ.js.map → session-auth-dead-JN4EBUCN.js.map} +0 -0
package/dist/bin/agt.js CHANGED
@@ -40,12 +40,12 @@ import {
40
40
  success,
41
41
  table,
42
42
  warn
43
- } from "../chunk-CO2ODT4I.js";
43
+ } from "../chunk-XCGOVUGI.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-FHUYRSCF.js";
48
+ } from "../chunk-3KVS22KX.js";
49
49
  import {
50
50
  AnchorSessionClient,
51
51
  CHANNEL_REGISTRY,
@@ -79,7 +79,7 @@ import {
79
79
  serializeManifestForSlackCli,
80
80
  sessionFileExists,
81
81
  sessionTranscriptDir
82
- } from "../chunk-CFJONCHN.js";
82
+ } from "../chunk-64DXAOQQ.js";
83
83
  import "../chunk-OCMJ5E6J.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
  import "../chunk-EL5MWGGH.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.1069" : "dev";
5477
+ var cliVersion = true ? "0.28.1070" : "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.1069" : "dev";
6737
+ var cliVersion2 = true ? "0.28.1070" : "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) => {
@@ -24,7 +24,7 @@ import {
24
24
  rotateDailySession,
25
25
  sessionFileExists,
26
26
  todayLocalIso
27
- } from "./chunk-CFJONCHN.js";
27
+ } from "./chunk-64DXAOQQ.js";
28
28
  import {
29
29
  classifyUnanswerablePane,
30
30
  findUsageLimitResetHint,
@@ -6113,4 +6113,4 @@ export {
6113
6113
  stopAllSessionsAndWait,
6114
6114
  getProjectDir
6115
6115
  };
6116
- //# sourceMappingURL=chunk-FHUYRSCF.js.map
6116
+ //# sourceMappingURL=chunk-3KVS22KX.js.map
@@ -6798,6 +6798,38 @@ var FLAG_REGISTRY = [
6798
6798
  // safety control, so mutations require explicit confirmation.
6799
6799
  sensitive: true
6800
6800
  },
6801
+ {
6802
+ key: "pane-fatal-restart-mode",
6803
+ description: `Pane fatal-error respawn (ENG-11278): the manager reads each claude-code agent pane and, when at least two consecutive most-recent turns ended in Claude Code's own "Prompt is too long \xB7 \u2026 \xB7 /clear to start fresh" / failed /compact result with no model output since, for two consecutive polls, treats the session as unable to answer. off = disabled, shadow = log "would force-fresh respawn" only, enforce = force a FRESH respawn (rotated session UUID, old transcript kept, inbound parked for replay) and raise a reaper_action alert, bounded by a per-agent budget (default 3 per 6h) after which it stops and raises a critical alert. The "Transcript writes are failing" status-bar banner alone only ever warns, in any mode but off. Declared safe value is shadow: observe-only, the absent-flag and flag-DB-error fallback. Flip to enforce centrally (stage or per org) to arm it.`,
6804
+ flagType: "enum",
6805
+ allowedValues: ["off", "shadow", "enforce"],
6806
+ // shadow, not enforce (Obi Wan c734a443aa3f on #6707). This is NEW
6807
+ // auto-respawn behaviour read host-side, and every sibling host-read mode
6808
+ // flag (channel-quarantine-mode, mcp-quarantine-mode, and the pre-flag
6809
+ // AGT_WEDGE_RESTART_MODE) ships shadow; ADR-0022's fail-safe direction is
6810
+ // dark. Enforce is a deliberate, audited central flip, effective within one
6811
+ // heartbeat with no manager restart. The case for enforce (it matches
6812
+ // Claude Code's own turn-error text, not a timing heuristic, and is
6813
+ // budget-bounded) is real, and is exactly what that flip is for.
6814
+ defaultValue: "shadow",
6815
+ // Operator escape hatch (highest precedence on the host). The reader is
6816
+ // hostFlagStore().getString('pane-fatal-restart-mode') in manager-worker;
6817
+ // there is no raw process.env read of it.
6818
+ envVar: "AGT_PANE_FATAL_RESTART_MODE",
6819
+ // Enforcement gate: weakening it (enforce -> shadow/off) drops a recovery
6820
+ // control, so mutations require explicit confirmation.
6821
+ sensitive: true,
6822
+ // DELIBERATE UNREACHABLE PLACEHOLDER - NOT A REAL THRESHOLD YET. Same
6823
+ // convention as `channel-quarantine-auto-resume` above: the reader lands in
6824
+ // apps/cli (manager-worker 1d-3), and the agt-cli version that first ships
6825
+ // it is not knowable before merge. Until bisected off the published dist,
6826
+ // the reach estimate reports every host `stale`, which says "unknown" out
6827
+ // loud instead of claiming reach. BEFORE relying on the reach modal for a
6828
+ // flip: bisect the first agt-cli whose manager-worker reads this key and
6829
+ // replace this value. Advisory only; a flip still takes effect on any host
6830
+ // that runs the reader.
6831
+ since: "0.29.0"
6832
+ },
6801
6833
  {
6802
6834
  key: "docker-hygiene",
6803
6835
  description: "Manager-side docker hygiene on Docker-isolated hosts (ENG-8401): off = no-op, reap-superseded = after a successful agt-runtime retag, remove the prior untagged agt-runtime images that retag orphaned (Layer 1), full = reap-superseded plus a daily dangling-only image+builder prune (Layer 2). agt-runtime:latest and the just-pulled image are never removed and -a/--volumes are never used. Read host-side via hostFlagStore (getString); ships dark.",
@@ -16024,4 +16056,4 @@ export {
16024
16056
  peekCurrentSession,
16025
16057
  readDailySessionPin
16026
16058
  };
16027
- //# sourceMappingURL=chunk-CFJONCHN.js.map
16059
+ //# sourceMappingURL=chunk-64DXAOQQ.js.map