@integrity-labs/agt-cli 0.28.632 → 0.28.633
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 +4 -4
- package/dist/{chunk-IT2WYXBM.js → chunk-GNTCOXZG.js} +164 -18
- package/dist/{chunk-IT2WYXBM.js.map → chunk-GNTCOXZG.js.map} +1 -1
- package/dist/{chunk-QDIF33SF.js → chunk-IDERROFJ.js} +3 -3
- package/dist/{claude-pair-runtime-JYRAP5M3.js → claude-pair-runtime-DWNJWCSU.js} +2 -2
- package/dist/lib/manager-worker.js +36 -11
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/mcp/slack-channel.js +11 -5
- package/dist/mcp/telegram-channel.js +10 -5
- package/dist/{persistent-session-YER3H6R6.js → persistent-session-ORYBOIBQ.js} +2 -2
- package/dist/{responsiveness-probe-MWZBEJOS.js → responsiveness-probe-WYCKY2BJ.js} +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-QDIF33SF.js.map → chunk-IDERROFJ.js.map} +0 -0
- /package/dist/{claude-pair-runtime-JYRAP5M3.js.map → claude-pair-runtime-DWNJWCSU.js.map} +0 -0
- /package/dist/{persistent-session-YER3H6R6.js.map → persistent-session-ORYBOIBQ.js.map} +0 -0
- /package/dist/{responsiveness-probe-MWZBEJOS.js.map → responsiveness-probe-WYCKY2BJ.js.map} +0 -0
|
@@ -37085,7 +37085,9 @@ function readGiveUpSignal(path, now = Date.now()) {
|
|
|
37085
37085
|
if (typeof raw.gave_up_at !== "string") return null;
|
|
37086
37086
|
const t = Date.parse(raw.gave_up_at);
|
|
37087
37087
|
if (!Number.isFinite(t) || t > now) return null;
|
|
37088
|
-
|
|
37088
|
+
const reason = raw.reason === "transient_overload" ? "transient_overload" : raw.reason === "usage_limit" ? "usage_limit" : null;
|
|
37089
|
+
const hint = typeof raw.resets_hint === "string" && raw.resets_hint.trim().length > 0 ? raw.resets_hint.trim().slice(0, 40) : null;
|
|
37090
|
+
return { atMs: t, reason, resetsHint: hint };
|
|
37089
37091
|
} catch {
|
|
37090
37092
|
return null;
|
|
37091
37093
|
}
|
|
@@ -37097,7 +37099,10 @@ function decideGiveUpNotice(input) {
|
|
|
37097
37099
|
if (input.lastHandledAtMs != null && input.signalAtMs <= input.lastHandledAtMs) return false;
|
|
37098
37100
|
return true;
|
|
37099
37101
|
}
|
|
37100
|
-
function giveUpNoticeText(reason = null) {
|
|
37102
|
+
function giveUpNoticeText(reason = null, resetsHint = null) {
|
|
37103
|
+
if (reason === "usage_limit") {
|
|
37104
|
+
return resetsHint ? `\u23F3 I've reached my usage limit for now, so I can't reply until ${resetsHint}. Your message is queued \u2014 I'll pick it up then, no need to resend.` : "\u23F3 I've reached my usage limit for now, so I can't reply just yet. Your message is queued \u2014 I'll pick it up as soon as it lifts, no need to resend.";
|
|
37105
|
+
}
|
|
37101
37106
|
if (reason === "transient_overload") {
|
|
37102
37107
|
return "\u26A0\uFE0F I hit a brief overload and couldn\u2019t finish your last message \u2014 please resend it in a moment.";
|
|
37103
37108
|
}
|
|
@@ -42980,7 +42985,7 @@ function armSlackTurnFailureWatch(args) {
|
|
|
42980
42985
|
}
|
|
42981
42986
|
})();
|
|
42982
42987
|
}
|
|
42983
|
-
function postSlackWatchdogGiveUpNotice(channel, threadTs, isThreadReply, reason) {
|
|
42988
|
+
function postSlackWatchdogGiveUpNotice(channel, threadTs, isThreadReply, reason, resetsHint = null) {
|
|
42984
42989
|
if (!BOT_TOKEN || !channel) return;
|
|
42985
42990
|
const now = Date.now();
|
|
42986
42991
|
const conversationKey = isThreadReply ? `${channel}:${threadTs}` : channel;
|
|
@@ -42997,7 +43002,7 @@ function postSlackWatchdogGiveUpNotice(channel, threadTs, isThreadReply, reason)
|
|
|
42997
43002
|
},
|
|
42998
43003
|
body: JSON.stringify({
|
|
42999
43004
|
channel,
|
|
43000
|
-
text: giveUpNoticeText(reason),
|
|
43005
|
+
text: giveUpNoticeText(reason, resetsHint),
|
|
43001
43006
|
// CR on PR #1824: anchor to the originating message even for root
|
|
43002
43007
|
// messages (threadTs === messageTs is still the conversation target) —
|
|
43003
43008
|
// a channel-root notice diverges from postUndeliverableNotice and
|
|
@@ -43026,7 +43031,8 @@ function checkSlackWatchdogGiveUpNotice() {
|
|
|
43026
43031
|
convo.channel,
|
|
43027
43032
|
convo.threadTs,
|
|
43028
43033
|
convo.isThreadReply,
|
|
43029
|
-
signal?.reason ?? null
|
|
43034
|
+
signal?.reason ?? null,
|
|
43035
|
+
signal?.resetsHint ?? null
|
|
43030
43036
|
);
|
|
43031
43037
|
}
|
|
43032
43038
|
}
|
|
@@ -39674,7 +39674,9 @@ function readGiveUpSignal(path, now = Date.now()) {
|
|
|
39674
39674
|
if (typeof raw.gave_up_at !== "string") return null;
|
|
39675
39675
|
const t = Date.parse(raw.gave_up_at);
|
|
39676
39676
|
if (!Number.isFinite(t) || t > now) return null;
|
|
39677
|
-
|
|
39677
|
+
const reason = raw.reason === "transient_overload" ? "transient_overload" : raw.reason === "usage_limit" ? "usage_limit" : null;
|
|
39678
|
+
const hint = typeof raw.resets_hint === "string" && raw.resets_hint.trim().length > 0 ? raw.resets_hint.trim().slice(0, 40) : null;
|
|
39679
|
+
return { atMs: t, reason, resetsHint: hint };
|
|
39678
39680
|
} catch {
|
|
39679
39681
|
return null;
|
|
39680
39682
|
}
|
|
@@ -39686,7 +39688,10 @@ function decideGiveUpNotice(input) {
|
|
|
39686
39688
|
if (input.lastHandledAtMs != null && input.signalAtMs <= input.lastHandledAtMs) return false;
|
|
39687
39689
|
return true;
|
|
39688
39690
|
}
|
|
39689
|
-
function giveUpNoticeText(reason = null) {
|
|
39691
|
+
function giveUpNoticeText(reason = null, resetsHint = null) {
|
|
39692
|
+
if (reason === "usage_limit") {
|
|
39693
|
+
return resetsHint ? `\u23F3 I've reached my usage limit for now, so I can't reply until ${resetsHint}. Your message is queued \u2014 I'll pick it up then, no need to resend.` : "\u23F3 I've reached my usage limit for now, so I can't reply just yet. Your message is queued \u2014 I'll pick it up as soon as it lifts, no need to resend.";
|
|
39694
|
+
}
|
|
39690
39695
|
if (reason === "transient_overload") {
|
|
39691
39696
|
return "\u26A0\uFE0F I hit a brief overload and couldn\u2019t finish your last message \u2014 please resend it in a moment.";
|
|
39692
39697
|
}
|
|
@@ -42133,13 +42138,13 @@ function armTelegramTurnFailureWatch(args) {
|
|
|
42133
42138
|
}
|
|
42134
42139
|
})();
|
|
42135
42140
|
}
|
|
42136
|
-
async function notifyWatchdogGiveUp(chatId, reason) {
|
|
42141
|
+
async function notifyWatchdogGiveUp(chatId, reason, resetsHint = null) {
|
|
42137
42142
|
const now = Date.now();
|
|
42138
42143
|
if (!telegramUndeliverableNotices.claimThrottleSlot(chatId, now)) return;
|
|
42139
42144
|
try {
|
|
42140
42145
|
const resp = await telegramApiCall(
|
|
42141
42146
|
"sendMessage",
|
|
42142
|
-
{ chat_id: chatId, text: giveUpNoticeText(reason) },
|
|
42147
|
+
{ chat_id: chatId, text: giveUpNoticeText(reason, resetsHint) },
|
|
42143
42148
|
1e4
|
|
42144
42149
|
);
|
|
42145
42150
|
if (!resp.ok) {
|
|
@@ -42182,7 +42187,7 @@ function checkWatchdogGiveUpNotice() {
|
|
|
42182
42187
|
return;
|
|
42183
42188
|
}
|
|
42184
42189
|
for (const chatId of chats) {
|
|
42185
|
-
void notifyWatchdogGiveUp(chatId, signal?.reason ?? null);
|
|
42190
|
+
void notifyWatchdogGiveUp(chatId, signal?.reason ?? null, signal?.resetsHint ?? null);
|
|
42186
42191
|
}
|
|
42187
42192
|
}
|
|
42188
42193
|
function __resetGiveUpNoticeStateForTests() {
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
writeDirectChatSessionState,
|
|
44
44
|
writeEgressAllowlist,
|
|
45
45
|
writePersistentClaudeWrapper
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GNTCOXZG.js";
|
|
47
47
|
import "./chunk-FKG7DIE2.js";
|
|
48
48
|
import "./chunk-XWVM4KPK.js";
|
|
49
49
|
export {
|
|
@@ -92,4 +92,4 @@ export {
|
|
|
92
92
|
writeEgressAllowlist,
|
|
93
93
|
writePersistentClaudeWrapper
|
|
94
94
|
};
|
|
95
|
-
//# sourceMappingURL=persistent-session-
|
|
95
|
+
//# sourceMappingURL=persistent-session-ORYBOIBQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
paneLogPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GNTCOXZG.js";
|
|
4
4
|
import "./chunk-FKG7DIE2.js";
|
|
5
5
|
import "./chunk-XWVM4KPK.js";
|
|
6
6
|
|
|
@@ -712,4 +712,4 @@ export {
|
|
|
712
712
|
readAndResetSlackReplyBindingClassifications,
|
|
713
713
|
readAndResetSlackReplyTargetClassifications
|
|
714
714
|
};
|
|
715
|
-
//# sourceMappingURL=responsiveness-probe-
|
|
715
|
+
//# sourceMappingURL=responsiveness-probe-WYCKY2BJ.js.map
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|