@saltcorn/agents 0.6.10 → 0.6.11
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/common.js +5 -4
- package/package.json +1 -1
- package/skills/GenerateAndRunJsCode.js +3 -0
package/common.js
CHANGED
|
@@ -326,9 +326,10 @@ const process_interaction = async (
|
|
|
326
326
|
let stop = false,
|
|
327
327
|
myHasResult = false;
|
|
328
328
|
if (stream && viewname) {
|
|
329
|
-
let content =
|
|
330
|
-
|
|
331
|
-
tool.skill.constructor.skill_name
|
|
329
|
+
let content = span(
|
|
330
|
+
{ class: "badge text-bg-secondary me-1" },
|
|
331
|
+
tool.skill.skill_label || tool.skill.constructor.skill_name,
|
|
332
|
+
);
|
|
332
333
|
const view = View.findOne({ name: viewname });
|
|
333
334
|
const pageLoadTag = req.body.page_load_tag;
|
|
334
335
|
view.emitRealTimeEvent(
|
|
@@ -425,7 +426,7 @@ const process_interaction = async (
|
|
|
425
426
|
view.emitRealTimeEvent(
|
|
426
427
|
`STREAM_CHUNK?page_load_tag=${pageLoadTag}`,
|
|
427
428
|
{
|
|
428
|
-
content: s,
|
|
429
|
+
content: span({ class: "badge text-bg-secondary me-1" }, s),
|
|
429
430
|
},
|
|
430
431
|
);
|
|
431
432
|
},
|
package/package.json
CHANGED