@myagentroam/node 0.9.137 → 0.9.139

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.
@@ -355,6 +355,21 @@ function itemId(kind, value) {
355
355
  return boundedConversationItemId(`mar-agent-${kind}`, value);
356
356
  }
357
357
  function genericToolItem(id, toolName, status, input, outputSummary = null, errorCode = null, truncated = false, output, subagentTitle, knownSubagentDetails) {
358
+ if (toolName === 'code_exec') {
359
+ const code = typeof input === 'string' ? input : record(input)?.code;
360
+ const source = typeof code === 'string' ? code : compactRunnerValue(input, 10_000).text || toolName;
361
+ const output = errorCode === null
362
+ ? (outputSummary ?? '')
363
+ : [errorCode, outputSummary].filter(Boolean).join(': ');
364
+ return commandItem({
365
+ itemId: id,
366
+ command: compactRunnerText(source, 10_000),
367
+ cwd: null,
368
+ outputPreview: compactRunnerText(output, 10_000),
369
+ exitCode: null,
370
+ truncated: truncated || source.length > 10_000 || output.length > 10_000
371
+ }, status);
372
+ }
358
373
  const subagent = marAgentSubagentProjection(toolName, input, output, subagentTitle, knownSubagentDetails);
359
374
  const toolCategory = ['codex_image_gen', 'byted_ark_image_gen'].includes(toolName)
360
375
  ? 'IMAGE_GENERATION'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.9.137",
3
+ "version": "0.9.139",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  "ws": "^8.21.3",
36
36
  "zod": "4.4.3",
37
37
  "@myagentroam/marmgr": "0.9.119",
38
+ "@myagentroam/agent": "0.9.139",
38
39
  "@myagentroam/code-navigation": "0.9.129",
39
- "@myagentroam/protocol": "0.9.137",
40
- "@myagentroam/agent": "0.9.137"
40
+ "@myagentroam/protocol": "0.9.139"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/ws": "^8.18.1"