clisbot 0.1.45-beta.1 → 0.1.45-beta.2
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/main.js +11 -7
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -67743,7 +67743,7 @@ function collapseBlankLines(lines) {
|
|
|
67743
67743
|
return collapsed;
|
|
67744
67744
|
}
|
|
67745
67745
|
var DURATION_STATUS_PATTERN = String.raw`(?:\d+(?:h|m|s))(?:\s+\d+(?:h|m|s)){0,2}`;
|
|
67746
|
-
var CODEX_WORKING_STATUS_PATTERN = new RegExp(String.raw`^(
|
|
67746
|
+
var CODEX_WORKING_STATUS_PATTERN = new RegExp(String.raw`^(?=.*\b${DURATION_STATUS_PATTERN}\b)(?=.*(?:esc\s+to\s+(?:interrupt|cancel)|interrupt|cancel|ctrl\+c))(?:[•◦·✻✽*]\s*)?Working(?:\.{3}|…)?\s*.*\)?$`, "i");
|
|
67747
67747
|
var CODEX_INTERRUPT_FOOTER_PATTERN = new RegExp(String.raw`^(?:[•◦·]\s*)?${DURATION_STATUS_PATTERN}\s*[•◦·]?\s*esc to interrupt\)?$`, "i");
|
|
67748
67748
|
var GEMINI_THINKING_STATUS_PATTERN = new RegExp(String.raw`^Thinking\.\.\. \(esc to cancel,\s*${DURATION_STATUS_PATTERN}\)$`, "i");
|
|
67749
67749
|
var CLAUDE_WORKED_STATUS_PATTERN = new RegExp(String.raw`^(?:[✻✽*]\s*)?(?:Worked|Cooked) for ${DURATION_STATUS_PATTERN}$`, "i");
|
|
@@ -68407,16 +68407,20 @@ function renderErrorInteractionBody(body, footer) {
|
|
|
68407
68407
|
${footer}`;
|
|
68408
68408
|
}
|
|
68409
68409
|
function renderSlackRunningInteraction(body, note) {
|
|
68410
|
-
|
|
68411
|
-
|
|
68410
|
+
if (note) {
|
|
68411
|
+
return body ? `${body}
|
|
68412
68412
|
|
|
68413
|
-
${
|
|
68413
|
+
_${note}_` : `_${note}_`;
|
|
68414
|
+
}
|
|
68415
|
+
return body || "_Working..._";
|
|
68414
68416
|
}
|
|
68415
68417
|
function renderTelegramRunningInteraction(body, note) {
|
|
68416
|
-
|
|
68417
|
-
|
|
68418
|
+
if (note) {
|
|
68419
|
+
return body ? `${body}
|
|
68418
68420
|
|
|
68419
|
-
${
|
|
68421
|
+
${note}` : note;
|
|
68422
|
+
}
|
|
68423
|
+
return body || "Working...";
|
|
68420
68424
|
}
|
|
68421
68425
|
function renderSlackInteraction(params) {
|
|
68422
68426
|
const body = renderInteractionBody(params);
|