@integrity-labs/agt-cli 0.28.929 → 0.28.930

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 (23) hide show
  1. package/dist/bin/agt.js +5 -5
  2. package/dist/{chunk-IIIMUCGD.js → chunk-7F32775G.js} +46 -1
  3. package/dist/{chunk-IIIMUCGD.js.map → chunk-7F32775G.js.map} +1 -1
  4. package/dist/{chunk-ZNVYUZSM.js → chunk-HC3EDWKC.js} +2 -2
  5. package/dist/{chunk-VZVCPJC7.js → chunk-NCNQFUNQ.js} +4 -4
  6. package/dist/{claude-pair-runtime-MA4CLC6B.js → claude-pair-runtime-TDP2NJTT.js} +2 -2
  7. package/dist/lib/manager-worker.js +26 -17
  8. package/dist/lib/manager-worker.js.map +1 -1
  9. package/dist/mcp/direct-chat-channel.js +4 -0
  10. package/dist/mcp/index.js +4 -0
  11. package/dist/mcp/origami.js +4 -0
  12. package/dist/mcp/slack-channel.js +4 -0
  13. package/dist/mcp/telegram-channel.js +4 -0
  14. package/dist/{persistent-session-PYQ5U6FU.js → persistent-session-Z7S2MMRH.js} +3 -3
  15. package/dist/{responsiveness-probe-T4LKSNFO.js → responsiveness-probe-SR62Y32C.js} +3 -3
  16. package/dist/{session-auth-dead-M5SFWTQH.js → session-auth-dead-25KP23AU.js} +2 -2
  17. package/package.json +1 -1
  18. /package/dist/{chunk-ZNVYUZSM.js.map → chunk-HC3EDWKC.js.map} +0 -0
  19. /package/dist/{chunk-VZVCPJC7.js.map → chunk-NCNQFUNQ.js.map} +0 -0
  20. /package/dist/{claude-pair-runtime-MA4CLC6B.js.map → claude-pair-runtime-TDP2NJTT.js.map} +0 -0
  21. /package/dist/{persistent-session-PYQ5U6FU.js.map → persistent-session-Z7S2MMRH.js.map} +0 -0
  22. /package/dist/{responsiveness-probe-T4LKSNFO.js.map → responsiveness-probe-SR62Y32C.js.map} +0 -0
  23. /package/dist/{session-auth-dead-M5SFWTQH.js.map → session-auth-dead-25KP23AU.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-VZVCPJC7.js";
43
+ } from "../chunk-NCNQFUNQ.js";
44
44
  import {
45
45
  getProjectDir,
46
46
  isSessionResumeDisabled,
47
47
  readDirectChatSessionState
48
- } from "../chunk-ZNVYUZSM.js";
48
+ } from "../chunk-HC3EDWKC.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-IIIMUCGD.js";
82
+ } from "../chunk-7F32775G.js";
83
83
  import "../chunk-XWVM4KPK.js";
84
84
 
85
85
  // src/bin/agt.ts
@@ -5467,7 +5467,7 @@ import { execFileSync, execSync } from "child_process";
5467
5467
  import { existsSync as existsSync11, realpathSync as realpathSync2 } from "fs";
5468
5468
  import chalk18 from "chalk";
5469
5469
  import ora16 from "ora";
5470
- var cliVersion = true ? "0.28.929" : "dev";
5470
+ var cliVersion = true ? "0.28.930" : "dev";
5471
5471
  async function fetchLatestVersion() {
5472
5472
  const host2 = getHost();
5473
5473
  if (!host2) return null;
@@ -6727,7 +6727,7 @@ function handleError(err) {
6727
6727
  }
6728
6728
 
6729
6729
  // src/bin/agt.ts
6730
- var cliVersion2 = true ? "0.28.929" : "dev";
6730
+ var cliVersion2 = true ? "0.28.930" : "dev";
6731
6731
  var program = new Command();
6732
6732
  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");
6733
6733
  program.hook("preAction", async (thisCommand, actionCommand) => {
@@ -13129,6 +13129,50 @@ function parseUsageBanner(text, now = /* @__PURE__ */ new Date()) {
13129
13129
  return best;
13130
13130
  }
13131
13131
 
13132
+ // ../../packages/core/dist/claude-code-usage/banner-remedy.js
13133
+ var BANNER_REMEDY_MAX_LENGTH = 200;
13134
+ var REMEDY_PATTERN = new RegExp("hit\\s+your\\s+(?:(?<qualifier>[a-z0-9'\u2019]+(?:[\\s-]+[a-z0-9'\u2019]+){0,3})\\s+)?limit\\s*\xB7\\s*(?<remedy>[^\xB7]{1," + String(BANNER_REMEDY_MAX_LENGTH * 2) + "}?)\\s*\xB7(?=[^\xB7]{0,80}?\\bresets\\b)", "giu");
13135
+ var STRIP = /[<>`"​-‏‪-‮⁦-⁩]/g;
13136
+ var CONTROL = /[\u0000-\u001f\u007f-\u009f]/g;
13137
+ function sanitizeBannerRemedy(raw) {
13138
+ if (typeof raw !== "string")
13139
+ return null;
13140
+ const cleaned = raw.replace(CONTROL, " ").replace(STRIP, "").replace(/\s+/g, " ").trim();
13141
+ if (!cleaned)
13142
+ return null;
13143
+ return cleaned.length > BANNER_REMEDY_MAX_LENGTH ? cleaned.slice(0, BANNER_REMEDY_MAX_LENGTH).trimEnd() : cleaned;
13144
+ }
13145
+ function remedyMatches(text) {
13146
+ const found = [];
13147
+ if (!text)
13148
+ return found;
13149
+ const pattern = new RegExp(REMEDY_PATTERN.source, REMEDY_PATTERN.flags);
13150
+ let match;
13151
+ while ((match = pattern.exec(text)) !== null) {
13152
+ if (match.index === pattern.lastIndex)
13153
+ pattern.lastIndex++;
13154
+ const remedy = sanitizeBannerRemedy(match.groups?.["remedy"]);
13155
+ if (!remedy)
13156
+ continue;
13157
+ const qualifier = match.groups?.["qualifier"]?.replace(/\s+/g, " ").trim() || null;
13158
+ found.push({ remedy, qualifier, start: match.index, end: match.index + match[0].length });
13159
+ }
13160
+ return found;
13161
+ }
13162
+ function bannerRemedyFor(text, observedQualifier, now = /* @__PURE__ */ new Date()) {
13163
+ const norm = (q) => (q ?? "").replace(/\s+/g, " ").trim().toLowerCase();
13164
+ const candidates = remedyMatches(text);
13165
+ for (let i = candidates.length - 1; i >= 0; i--) {
13166
+ const found = candidates[i];
13167
+ if (parseUsageBanner(text.slice(found.start), now) === null)
13168
+ continue;
13169
+ if (parseUsageBanner(text.slice(found.end), now) !== null)
13170
+ return null;
13171
+ return norm(found.qualifier) === norm(observedQualifier) ? found.remedy : null;
13172
+ }
13173
+ return null;
13174
+ }
13175
+
13132
13176
  // ../../packages/core/dist/claude-code-usage/transcript-parser.js
13133
13177
  function nonNegInt(value) {
13134
13178
  if (typeof value !== "number" || !Number.isFinite(value))
@@ -14570,6 +14614,7 @@ export {
14570
14614
  deriveConsoleUrl,
14571
14615
  SCHEDULED_TURN_MARKER_FILENAME,
14572
14616
  parseUsageBanner,
14617
+ bannerRemedyFor,
14573
14618
  formatRunMarker,
14574
14619
  findRunMarker,
14575
14620
  parseTranscriptUsage,
@@ -14635,4 +14680,4 @@ export {
14635
14680
  peekCurrentSession,
14636
14681
  readDailySessionPin
14637
14682
  };
14638
- //# sourceMappingURL=chunk-IIIMUCGD.js.map
14683
+ //# sourceMappingURL=chunk-7F32775G.js.map