@saltcorn/agents 0.7.13 → 0.7.14
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/agent-view.js +8 -1
- package/common.js +6 -1
- package/package.json +1 -1
- package/skills/PlanApproval.js +0 -2
package/agent-view.js
CHANGED
|
@@ -1503,13 +1503,20 @@ const execute_user_action = async (
|
|
|
1503
1503
|
);
|
|
1504
1504
|
await run.update({ context: run.context });
|
|
1505
1505
|
}
|
|
1506
|
+
let row = {};
|
|
1507
|
+
if (run.context.triggering_row_id) {
|
|
1508
|
+
const table = Table.findOne(table_id);
|
|
1509
|
+
const pk = table?.pk_name;
|
|
1510
|
+
if (table)
|
|
1511
|
+
row = await table.getRow({ [pk]: run.context.triggering_row_id });
|
|
1512
|
+
}
|
|
1506
1513
|
await process_interaction(
|
|
1507
1514
|
run,
|
|
1508
1515
|
action.configuration,
|
|
1509
1516
|
req,
|
|
1510
1517
|
action.name,
|
|
1511
1518
|
[],
|
|
1512
|
-
|
|
1519
|
+
row,
|
|
1513
1520
|
config,
|
|
1514
1521
|
dyn_updates,
|
|
1515
1522
|
);
|
package/common.js
CHANGED
|
@@ -407,7 +407,12 @@ const process_interaction = async (
|
|
|
407
407
|
if (rendered)
|
|
408
408
|
add_response(
|
|
409
409
|
wrapSegment(
|
|
410
|
-
wrapCard(
|
|
410
|
+
wrapCard(
|
|
411
|
+
response_label,
|
|
412
|
+
typeof rendered === "string"
|
|
413
|
+
? md.render(rendered)
|
|
414
|
+
: rendered,
|
|
415
|
+
),
|
|
411
416
|
agent_label,
|
|
412
417
|
false,
|
|
413
418
|
layout,
|
package/package.json
CHANGED