eve-hub 0.6.26 → 0.6.27
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/world.mjs +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eve-hub",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.27",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Bot-side code shared by every hub agent: registry tools, the roster hook, the eve channel, the host sandbox and browser, and model helpers.",
|
|
6
6
|
"type": "module",
|
package/world.mjs
CHANGED
|
@@ -100,8 +100,8 @@ function briefLabel(text, { strict = false } = {}) {
|
|
|
100
100
|
}
|
|
101
101
|
function title(action, label) {
|
|
102
102
|
const name = action.toolName ?? action.name ?? "task";
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
103
|
+
const labelled2 = label ? briefLabel(clean(label), { strict: true }) : void 0;
|
|
104
|
+
if (labelled2) return truncate(labelled2, MAX_TITLE);
|
|
105
105
|
const asked = briefLabel(agentBrief(action.input));
|
|
106
106
|
return asked ? truncate(asked, MAX_TITLE) : name;
|
|
107
107
|
}
|