@agentconnect.md/daemon 1.0.0-rc.55 → 1.0.0-rc.56
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/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -80832,9 +80832,13 @@ function splitIntoSections(text, maxLen = SLACK_SECTION_LIMIT) {
|
|
|
80832
80832
|
const THINKING = "is thinking…";
|
|
80833
80833
|
const MAX_ACTIVITY = 10;
|
|
80834
80834
|
const MAX_LABEL = 100;
|
|
80835
|
-
|
|
80835
|
+
const MAX_STATUS = 50;
|
|
80836
|
+
function clampTo(s, max) {
|
|
80836
80837
|
const t = s.trim();
|
|
80837
|
-
return t.length >
|
|
80838
|
+
return t.length > max ? `${t.slice(0, max - 1)}…` : t;
|
|
80839
|
+
}
|
|
80840
|
+
function clampLabel(s) {
|
|
80841
|
+
return clampTo(s, MAX_LABEL);
|
|
80838
80842
|
}
|
|
80839
80843
|
function planIcon(status) {
|
|
80840
80844
|
if (status === "completed") return ":white_check_mark:";
|
|
@@ -80878,7 +80882,7 @@ var OutputConverger = class {
|
|
|
80878
80882
|
* which throttles streamed thought chunks down to one status update per thinking run.
|
|
80879
80883
|
*/
|
|
80880
80884
|
pushActivity(raw) {
|
|
80881
|
-
const label =
|
|
80885
|
+
const label = clampTo(raw, MAX_STATUS);
|
|
80882
80886
|
if (this.activity[this.activity.length - 1] === label) return [];
|
|
80883
80887
|
this.activity.push(label);
|
|
80884
80888
|
if (this.activity.length > MAX_ACTIVITY) this.activity.shift();
|