@integrity-labs/agt-cli 0.28.613 → 0.28.615
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 +5 -5
- package/dist/{chunk-JRL7754L.js → chunk-6SJJM4FT.js} +2 -2
- package/dist/{chunk-D7EV77TB.js → chunk-T5ATAUEE.js} +4 -4
- package/dist/{chunk-ZQXXK7JC.js → chunk-TYVQNCBU.js} +51 -8
- package/dist/{chunk-ZQXXK7JC.js.map → chunk-TYVQNCBU.js.map} +1 -1
- package/dist/{claude-pair-runtime-3UQ63455.js → claude-pair-runtime-QCL2TB6N.js} +2 -2
- package/dist/lib/manager-worker.js +18 -13
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/direct-chat-channel.js +50 -7
- package/dist/mcp/origami.js +21 -1
- package/dist/mcp/slack-channel.js +52 -8
- package/dist/mcp/telegram-channel.js +50 -7
- package/dist/{persistent-session-U7PE7ZDB.js → persistent-session-GM3EH2ZU.js} +3 -3
- package/dist/{responsiveness-probe-K6DGNTXA.js → responsiveness-probe-VSSJC3MN.js} +3 -3
- package/dist/{session-auth-dead-RPMWBVBH.js → session-auth-dead-KOKVXPPQ.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-JRL7754L.js.map → chunk-6SJJM4FT.js.map} +0 -0
- /package/dist/{chunk-D7EV77TB.js.map → chunk-T5ATAUEE.js.map} +0 -0
- /package/dist/{claude-pair-runtime-3UQ63455.js.map → claude-pair-runtime-QCL2TB6N.js.map} +0 -0
- /package/dist/{persistent-session-U7PE7ZDB.js.map → persistent-session-GM3EH2ZU.js.map} +0 -0
- /package/dist/{responsiveness-probe-K6DGNTXA.js.map → responsiveness-probe-VSSJC3MN.js.map} +0 -0
- /package/dist/{session-auth-dead-RPMWBVBH.js.map → session-auth-dead-KOKVXPPQ.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,10 +40,10 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-T5ATAUEE.js";
|
|
44
44
|
import {
|
|
45
45
|
readDirectChatSessionState
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-6SJJM4FT.js";
|
|
47
47
|
import {
|
|
48
48
|
AnchorSessionClient,
|
|
49
49
|
CHANNEL_REGISTRY,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
requiredMcpWildcard,
|
|
74
74
|
resolveChannels,
|
|
75
75
|
serializeManifestForSlackCli
|
|
76
|
-
} from "../chunk-
|
|
76
|
+
} from "../chunk-TYVQNCBU.js";
|
|
77
77
|
import "../chunk-XWVM4KPK.js";
|
|
78
78
|
|
|
79
79
|
// src/bin/agt.ts
|
|
@@ -4909,7 +4909,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
4909
4909
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
4910
4910
|
import chalk18 from "chalk";
|
|
4911
4911
|
import ora16 from "ora";
|
|
4912
|
-
var cliVersion = true ? "0.28.
|
|
4912
|
+
var cliVersion = true ? "0.28.615" : "dev";
|
|
4913
4913
|
async function fetchLatestVersion() {
|
|
4914
4914
|
const host2 = getHost();
|
|
4915
4915
|
if (!host2) return null;
|
|
@@ -6089,7 +6089,7 @@ function handleError(err) {
|
|
|
6089
6089
|
}
|
|
6090
6090
|
|
|
6091
6091
|
// src/bin/agt.ts
|
|
6092
|
-
var cliVersion2 = true ? "0.28.
|
|
6092
|
+
var cliVersion2 = true ? "0.28.615" : "dev";
|
|
6093
6093
|
var program = new Command();
|
|
6094
6094
|
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");
|
|
6095
6095
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
rotateDailySession,
|
|
17
17
|
sessionFileExists,
|
|
18
18
|
todayLocalIso
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TYVQNCBU.js";
|
|
20
20
|
import {
|
|
21
21
|
reapOrphanChannelMcps
|
|
22
22
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -4349,4 +4349,4 @@ export {
|
|
|
4349
4349
|
stopAllSessionsAndWait,
|
|
4350
4350
|
getProjectDir
|
|
4351
4351
|
};
|
|
4352
|
-
//# sourceMappingURL=chunk-
|
|
4352
|
+
//# sourceMappingURL=chunk-6SJJM4FT.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
expandTemplateVars,
|
|
8
8
|
isolationMode,
|
|
9
9
|
parseEnvIntegrations
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6SJJM4FT.js";
|
|
11
11
|
import {
|
|
12
12
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
13
13
|
INTEGRATIONS_SECTION_END,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
resolveConnectivityProbe,
|
|
49
49
|
worseConnectivityOutcome,
|
|
50
50
|
wrapScheduledTaskPrompt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-TYVQNCBU.js";
|
|
52
52
|
import {
|
|
53
53
|
parsePsRows
|
|
54
54
|
} from "./chunk-XWVM4KPK.js";
|
|
@@ -6030,7 +6030,7 @@ function exchangeFailureKind(err) {
|
|
|
6030
6030
|
}
|
|
6031
6031
|
|
|
6032
6032
|
// src/lib/api-client.ts
|
|
6033
|
-
var agtCliVersion = true ? "0.28.
|
|
6033
|
+
var agtCliVersion = true ? "0.28.615" : "dev";
|
|
6034
6034
|
var lastConfigHash = null;
|
|
6035
6035
|
function setConfigHash(hash) {
|
|
6036
6036
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -9505,4 +9505,4 @@ export {
|
|
|
9505
9505
|
managerInstallSystemUnitCommand,
|
|
9506
9506
|
managerUninstallSystemUnitCommand
|
|
9507
9507
|
};
|
|
9508
|
-
//# sourceMappingURL=chunk-
|
|
9508
|
+
//# sourceMappingURL=chunk-T5ATAUEE.js.map
|
|
@@ -10622,6 +10622,17 @@ var SCHEDULED_TURN_MARKER_FILENAME = ".current-scheduled-turn.json";
|
|
|
10622
10622
|
var FRESH_HEARTBEAT_THRESHOLD_MS = 2 * 60 * 1e3;
|
|
10623
10623
|
|
|
10624
10624
|
// ../../packages/core/dist/claude-code-usage/banner-parser.js
|
|
10625
|
+
var SESSION_QUALIFIER = /^(?:session|\d{1,2}\s*-?\s*hours?|\d{1,2}h)$/i;
|
|
10626
|
+
function classifyLimitScope(qualifier) {
|
|
10627
|
+
const q = (qualifier ?? "").trim();
|
|
10628
|
+
if (!q)
|
|
10629
|
+
return "weekly";
|
|
10630
|
+
if (SESSION_QUALIFIER.test(q))
|
|
10631
|
+
return "session";
|
|
10632
|
+
if (/^weekly$/i.test(q))
|
|
10633
|
+
return "weekly";
|
|
10634
|
+
return "unknown";
|
|
10635
|
+
}
|
|
10625
10636
|
var SEP = /[\s·\-–—]+/.source;
|
|
10626
10637
|
var SUBJECT = /(?:You(?:['’]ve|\s+have)?\s+)?/.source;
|
|
10627
10638
|
var TIME_OF_DAY = /\d{1,2}(?::\d{2})?\s*(?:am|pm)(?:\s*\(?UTC\)?)?/.source;
|
|
@@ -10635,7 +10646,27 @@ var BANNER_PATTERNS = [
|
|
|
10635
10646
|
// Wrapped to keep the per-pattern shape consistent with the percentage form:
|
|
10636
10647
|
// the parser checks group 1 for a digit string and treats a missing one as
|
|
10637
10648
|
// pct=100.
|
|
10638
|
-
|
|
10649
|
+
// ENG-9007: the qualifier is CAPTURED now, by name. It used to be
|
|
10650
|
+
// `(?:[a-z0-9-]+\s+)?` - permissive and non-capturing - so the parser
|
|
10651
|
+
// recognised "session" and "5-hour", matched on them, and threw the word away.
|
|
10652
|
+
// Named groups keep the numbered capture indices stable for the percentage
|
|
10653
|
+
// form above, which still reads groups 1 and 2 positionally.
|
|
10654
|
+
new RegExp(
|
|
10655
|
+
// CodeRabbit on #4621: the qualifier was ONE token, so `classifyLimitScope`
|
|
10656
|
+
// accepted "5 hours" while this pattern could never deliver it — the whole
|
|
10657
|
+
// banner failed to match, no observation was recorded, and the agent went
|
|
10658
|
+
// dark rather than merely being misclassified. Multi-token qualifiers now
|
|
10659
|
+
// match the duration shapes SESSION_QUALIFIER already accepts.
|
|
10660
|
+
//
|
|
10661
|
+
// Deliberately NOT the naive `[a-z0-9]+(?:\s*-?\s*[a-z0-9]+)*`: the
|
|
10662
|
+
// separator there can match empty, which reduces to `(a+)+` and backtracks
|
|
10663
|
+
// catastrophically on a long alphanumeric run that is never followed by
|
|
10664
|
+
// "limit". This parser runs over agent-produced pane.log tails, so that is
|
|
10665
|
+
// reachable input. Requiring at least one separator per extra token, and
|
|
10666
|
+
// bounding the count, keeps it linear.
|
|
10667
|
+
`${SUBJECT}hit\\s+your\\s+(?<qualifier>[a-z0-9]+(?:[\\s-]+[a-z0-9]+){0,3}\\s+)?limit${SEP}resets\\s+(?<reset>${RESET_DATE})`,
|
|
10668
|
+
"i"
|
|
10669
|
+
)
|
|
10639
10670
|
];
|
|
10640
10671
|
function parseUsageBanner(text, now = /* @__PURE__ */ new Date()) {
|
|
10641
10672
|
let bestIndex = -1;
|
|
@@ -10648,24 +10679,33 @@ function parseUsageBanner(text, now = /* @__PURE__ */ new Date()) {
|
|
|
10648
10679
|
pattern.lastIndex++;
|
|
10649
10680
|
let pct;
|
|
10650
10681
|
let resetStr;
|
|
10682
|
+
let qualifier;
|
|
10651
10683
|
if (i === 0) {
|
|
10652
10684
|
pct = Number.parseInt(match[1], 10);
|
|
10653
10685
|
resetStr = match[2];
|
|
10686
|
+
qualifier = "weekly";
|
|
10654
10687
|
} else {
|
|
10655
10688
|
pct = 100;
|
|
10656
|
-
resetStr = match[
|
|
10689
|
+
resetStr = match.groups?.["reset"] ?? "";
|
|
10690
|
+
qualifier = match.groups?.["qualifier"]?.trim() || null;
|
|
10657
10691
|
}
|
|
10658
10692
|
if (!Number.isFinite(pct) || pct < 0 || pct > 100)
|
|
10659
10693
|
continue;
|
|
10660
10694
|
const nextChar = text[match.index + match[0].length];
|
|
10661
10695
|
if (nextChar !== void 0 && /[A-Za-z0-9]/.test(nextChar))
|
|
10662
10696
|
continue;
|
|
10663
|
-
const
|
|
10664
|
-
if (!
|
|
10697
|
+
const reset = parseResetDateTime(resetStr, now);
|
|
10698
|
+
if (!reset)
|
|
10665
10699
|
continue;
|
|
10666
10700
|
if (match.index >= bestIndex) {
|
|
10667
10701
|
bestIndex = match.index;
|
|
10668
|
-
best = {
|
|
10702
|
+
best = {
|
|
10703
|
+
pct,
|
|
10704
|
+
weekResetsAt: reset.at,
|
|
10705
|
+
resetPrecision: reset.precision,
|
|
10706
|
+
limitScope: classifyLimitScope(qualifier),
|
|
10707
|
+
limitQualifier: qualifier
|
|
10708
|
+
};
|
|
10669
10709
|
}
|
|
10670
10710
|
}
|
|
10671
10711
|
}
|
|
@@ -10709,7 +10749,10 @@ function parseResetDateTime(humanDate, now) {
|
|
|
10709
10749
|
if (!hm)
|
|
10710
10750
|
return null;
|
|
10711
10751
|
const todayAt = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(), hm.hour, hm.minute);
|
|
10712
|
-
return
|
|
10752
|
+
return {
|
|
10753
|
+
at: new Date(todayAt <= now.getTime() ? todayAt + MS_PER_DAY : todayAt),
|
|
10754
|
+
precision: "hour_only"
|
|
10755
|
+
};
|
|
10713
10756
|
}
|
|
10714
10757
|
const timeMatch = trimmed.match(TIME_TAIL);
|
|
10715
10758
|
const dateOnly = timeMatch ? trimmed.slice(0, timeMatch.index).trim() : trimmed;
|
|
@@ -10742,7 +10785,7 @@ function parseResetDateTime(humanDate, now) {
|
|
|
10742
10785
|
resolved = candidate;
|
|
10743
10786
|
}
|
|
10744
10787
|
}
|
|
10745
|
-
return resolved;
|
|
10788
|
+
return resolved ? { at: resolved, precision: "dated" } : null;
|
|
10746
10789
|
}
|
|
10747
10790
|
|
|
10748
10791
|
// ../../packages/core/dist/claude-code-usage/transcript-parser.js
|
|
@@ -11964,4 +12007,4 @@ export {
|
|
|
11964
12007
|
minutesSinceLocalMidnight,
|
|
11965
12008
|
peekCurrentSession
|
|
11966
12009
|
};
|
|
11967
|
-
//# sourceMappingURL=chunk-
|
|
12010
|
+
//# sourceMappingURL=chunk-TYVQNCBU.js.map
|