@integrity-labs/agt-cli 0.28.1004 → 0.28.1006

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-HHBAQ6ZV.js → chunk-O6R6HS2Z.js} +2 -2
  3. package/dist/{chunk-532V7ZSC.js → chunk-XWMUQR65.js} +63 -7
  4. package/dist/chunk-XWMUQR65.js.map +1 -0
  5. package/dist/{chunk-N4PG4TAD.js → chunk-Z5UDL4AB.js} +35 -5
  6. package/dist/chunk-Z5UDL4AB.js.map +1 -0
  7. package/dist/{claude-pair-runtime-EUYI3B4I.js → claude-pair-runtime-AW4N6NEE.js} +157 -18
  8. package/dist/claude-pair-runtime-AW4N6NEE.js.map +1 -0
  9. package/dist/lib/manager-worker.js +609 -304
  10. package/dist/lib/manager-worker.js.map +1 -1
  11. package/dist/mcp/direct-chat-channel.js +57 -2
  12. package/dist/mcp/index.js +51 -0
  13. package/dist/mcp/origami.js +51 -0
  14. package/dist/mcp/slack-channel.js +57 -2
  15. package/dist/mcp/telegram-channel.js +57 -2
  16. package/dist/{persistent-session-JUGGNJSB.js → persistent-session-K4DLZ7KF.js} +3 -3
  17. package/dist/{responsiveness-probe-QLOVCTVA.js → responsiveness-probe-DXPEIUH6.js} +3 -3
  18. package/dist/{session-auth-dead-7F2QBEAZ.js → session-auth-dead-4SE5Q7MU.js} +2 -2
  19. package/package.json +1 -1
  20. package/dist/chunk-532V7ZSC.js.map +0 -1
  21. package/dist/chunk-N4PG4TAD.js.map +0 -1
  22. package/dist/claude-pair-runtime-EUYI3B4I.js.map +0 -1
  23. /package/dist/{chunk-HHBAQ6ZV.js.map → chunk-O6R6HS2Z.js.map} +0 -0
  24. /package/dist/{persistent-session-JUGGNJSB.js.map → persistent-session-K4DLZ7KF.js.map} +0 -0
  25. /package/dist/{responsiveness-probe-QLOVCTVA.js.map → responsiveness-probe-DXPEIUH6.js.map} +0 -0
  26. /package/dist/{session-auth-dead-7F2QBEAZ.js.map → session-auth-dead-4SE5Q7MU.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-N4PG4TAD.js";
43
+ } from "../chunk-Z5UDL4AB.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-HHBAQ6ZV.js";
48
+ } from "../chunk-O6R6HS2Z.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-532V7ZSC.js";
82
+ } from "../chunk-XWMUQR65.js";
83
83
  import "../chunk-DHWNVVX4.js";
84
84
  import "../chunk-XWVM4KPK.js";
85
85
  import "../chunk-DGUM43GV.js";
@@ -5473,7 +5473,7 @@ import { execFileSync, execSync } from "child_process";
5473
5473
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5474
5474
  import chalk18 from "chalk";
5475
5475
  import ora16 from "ora";
5476
- var cliVersion = true ? "0.28.1004" : "dev";
5476
+ var cliVersion = true ? "0.28.1006" : "dev";
5477
5477
  async function fetchLatestVersion() {
5478
5478
  const host2 = getHost();
5479
5479
  if (!host2) return null;
@@ -6733,7 +6733,7 @@ function handleError(err) {
6733
6733
  }
6734
6734
 
6735
6735
  // src/bin/agt.ts
6736
- var cliVersion2 = true ? "0.28.1004" : "dev";
6736
+ var cliVersion2 = true ? "0.28.1006" : "dev";
6737
6737
  var program = new Command();
6738
6738
  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");
6739
6739
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -23,7 +23,7 @@ import {
23
23
  rotateDailySession,
24
24
  sessionFileExists,
25
25
  todayLocalIso
26
- } from "./chunk-532V7ZSC.js";
26
+ } from "./chunk-XWMUQR65.js";
27
27
  import {
28
28
  classifyUnanswerablePane,
29
29
  findUsageLimitResetHint,
@@ -5776,4 +5776,4 @@ export {
5776
5776
  stopAllSessionsAndWait,
5777
5777
  getProjectDir
5778
5778
  };
5779
- //# sourceMappingURL=chunk-HHBAQ6ZV.js.map
5779
+ //# sourceMappingURL=chunk-O6R6HS2Z.js.map
@@ -756,7 +756,7 @@ Route durable work by what it is:
756
756
  | A one-shot reminder or single future run | Scheduled task | \`mcp__augmented__schedule_create\` |
757
757
  ${workflowRow}| A dashboard or refreshable report surface | Console dashboard | \`dashboards_upsert\` - see \xA7 Dashboards |
758
758
  | Facts, preferences, session context | Memory | your memory files - see \xA7 Memory (there, local files ARE the canonical store by design) |
759
- | Code in a cloned repository | Git | commit and push under \`~/code/\` - see \xA7 Development Workflow |
759
+ | Code in a cloned repository | Git | commit and push from \`../code/\` - see \xA7 Development Workflow |
760
760
 
761
761
  Boundaries, so this rule never blocks real work:
762
762
 
@@ -1623,10 +1623,11 @@ in \`project/\`, commit it, or publish it as an artefact.
1623
1623
 
1624
1624
  ## Development Workflow
1625
1625
 
1626
- Clone repositories under \`~/code/\`, keeping your workspace separate from agent
1627
- config files. For code tasks always use **git worktrees** rather than switching
1628
- branches, so parallel work never disrupts running services, other agents, or the
1629
- main checkout:
1626
+ Clone repositories in \`../code/\` (sibling of \`project/\`), **not \`~/code/\`**
1627
+ (destroyed on a container rebuild).
1628
+
1629
+ Always use **git worktrees** rather than switching branches, so parallel work
1630
+ never disrupts services, other agents, or the main checkout:
1630
1631
 
1631
1632
  1. \`git worktree add ../repo-issue-name -b feature/issue-name origin/main\`
1632
1633
  2. Work in the worktree \u2014 the main repo stays on its current branch.
@@ -6528,6 +6529,57 @@ var FLAG_REGISTRY = [
6528
6529
  sensitive: true
6529
6530
  // No envVar - net-new API-side control with no pre-flags env gate to migrate (ADR-0022).
6530
6531
  },
6532
+ {
6533
+ key: "channel-quarantine-auto-resume",
6534
+ description: "Time-based auto-resume of an ENG-5932 channel quarantine (ENG-10510): off = disabled, shadow = log the would-resume without acting, enforce = clear the local quarantine marker and re-add the channel for a TRIAL run, letting the reaper re-quarantine it if it is still dead. Backoff 2h doubling to a 24h cap, giving up after 5 attempts and leaving it for an operator; the manual Re-enable is unaffected and clears the strike count. DELIBERATELY NOT health-based: a quarantined channel is dropped from .mcp.json and the launch flags, so its process never spawns and its liveness is unobservable - unlike an ENG-7916 integration, which stays probeable via a reconstructed inline_server_entry, which is why mcp-auto-resume-mode can wait for healthy cycles and this cannot. A SEPARATE FLAG FROM channel-quarantine-mode ON PURPOSE: that one defaults to shadow, so giving it a resume meaning would arm auto-resume fleet-wide on the existing default. Declared safe value is off (fully dark): a flag-DB read error must never re-add a channel on its own, because a trial costs restarts against the breaker budget.",
6535
+ flagType: "enum",
6536
+ allowedValues: ["off", "shadow", "enforce"],
6537
+ // off = fully dark. See the description's fail-safe reasoning.
6538
+ defaultValue: "off",
6539
+ // Enforcement-mode control like its siblings channel-quarantine-mode and
6540
+ // mcp-auto-resume-mode: masked on public surfaces, mutations confirmed.
6541
+ sensitive: true,
6542
+ // ENG-10036: the reader lives in apps/cli (manager-worker), so an older
6543
+ // host has no code to honour a flip. Without `since`, classifyHostReach
6544
+ // reports 'honors' - full reach - which is the most confident thing the
6545
+ // field can say and would be a lie here.
6546
+ //
6547
+ // DELIBERATE UNREACHABLE PLACEHOLDER - NOT A REAL THRESHOLD YET.
6548
+ // Obi-Wan on #6313: the previous value here was '0.28.990', written before
6549
+ // merge and stated as though it were the reader's shipping version. It is
6550
+ // not knowable pre-merge. `since` is documented (types.ts) as "the agt-cli
6551
+ // version its reader lands in", and the bisected siblings in this registry
6552
+ // were all read off published dists AFTER their merge. The published line
6553
+ // is around 0.28.916-0.28.918, so that guess sat ~70 patch releases above
6554
+ // the build that will actually carry this reader - every host running the
6555
+ // release that DOES honour the flag would have classified `stale` until the
6556
+ // fleet passed a version that does not exist yet.
6557
+ //
6558
+ // So this follows the convention this registry already established for
6559
+ // exactly this situation - see `github-broker-credentials` below, whose
6560
+ // identical DELIBERATE UNREACHABLE PLACEHOLDER block and `since: '0.29.0'`
6561
+ // are the precedent: pinned ABOVE every published release ON PURPOSE,
6562
+ // labelled as a placeholder, and gated on a post-publish bisect.
6563
+ //
6564
+ // (This cited `claudecode-agt-bin-credential-helpers` until obi-wan
6565
+ // `8f9d3c43076c` pointed out no such key exists anywhere in the repo - the
6566
+ // only occurrence in the tree was this citation. The precedent was real and
6567
+ // the reasoning held, but the pointer could not be followed, so a reader
6568
+ // looking it up found nothing and had no way to tell whether the convention
6569
+ // was inherited or invented here. That is the one question a citation
6570
+ // exists to answer, and it is asked at exactly the moment someone is about
6571
+ // to do the post-publish bisect.) It classifies every host
6572
+ // as `stale`, which reports no reach rather than reach there is no basis
6573
+ // for - and unlike a plausible-looking number, it says out loud that it
6574
+ // must be re-bisected.
6575
+ //
6576
+ // BEFORE THIS FLAG IS FLIPPED ANYWHERE: bisect the published dist for the
6577
+ // first agt-cli whose manager-worker carries the auto-resume poll block,
6578
+ // and replace this with that exact version. Leaving the placeholder is safe
6579
+ // (defaultValue 'off', sensitive: true, nothing flips); shipping a guessed
6580
+ // number is not.
6581
+ since: "0.29.0"
6582
+ },
6531
6583
  {
6532
6584
  key: "mcp-auto-resume-mode",
6533
6585
  description: "MCP auto-resume of a bind-failure quarantine (ENG-8036, follow-up to ENG-7916): off = disabled, shadow = log only (would-resume without acting), enforce = flip an ENG-7916-quarantined integration (status=unhealthy) back to status=active after DEFAULT_AUTO_RESUME_OK_CYCLES consecutive healthy connectivity-probe cycles. Recovery is observed via the connectivity-probe path, not the session-tool-bind probe (a quarantined row is excluded from the bind probe by the ENG-5292 writer). Only rows this quarantine system marked are auto-resumed - the reaper/oauth-refresh error/unhealthy states are never stomped. Declared safe value is off (fully dark): a flag-DB read error must never auto-un-quarantine on its own. Flip to shadow to observe, then enforce once the cycle threshold is tuned.",
@@ -8620,7 +8672,11 @@ ${toolsList}
8620
8672
  ## Git Workflow
8621
8673
 
8622
8674
  Use **git worktrees** for all feature work. Do not switch branches on the main checkout.
8623
- Store repositories under \`~/code/\` and create worktrees alongside them for parallel tasks.
8675
+ Store repositories in \`../code/\` - the \`code/\` directory beside the agent's \`project/\` working
8676
+ directory, inside the agent's own tree - which is what makes it the agent's to keep. Where this
8677
+ host runs agents in containers that tree is bind-mounted and survives a rebuild, while \`~/code/\`
8678
+ is container-local and is destroyed by one. Create worktrees alongside the checkout for parallel
8679
+ tasks.
8624
8680
  `;
8625
8681
  }
8626
8682
 
@@ -15366,4 +15422,4 @@ export {
15366
15422
  peekCurrentSession,
15367
15423
  readDailySessionPin
15368
15424
  };
15369
- //# sourceMappingURL=chunk-532V7ZSC.js.map
15425
+ //# sourceMappingURL=chunk-XWMUQR65.js.map