@myagentroam/node 0.11.40 → 0.11.42

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.
@@ -920,7 +920,7 @@ function genericToolItem(id, toolName, status, input, outputSummary = null, erro
920
920
  .join('\n');
921
921
  return commandItem({
922
922
  itemId: id,
923
- command: `${toolName} (${compactRunnerText(action, 128)})`,
923
+ command: toolName,
924
924
  cwd: null,
925
925
  outputPreview: status === 'IN_PROGRESS' && outputSummary !== null
926
926
  ? outputSummary
@@ -1,4 +1,9 @@
1
1
  const MAX_CONTENT_LENGTH = 20_000;
2
+ const RESOLVED_INSTRUCTIONS = Symbol('resolvedPersonalInstructions');
3
+ /** Carry Node-owned merged instructions across internal Session operations, never JSON input. */
4
+ export function resolvedPersonalInstructions(value) {
5
+ return { [RESOLVED_INSTRUCTIONS]: value };
6
+ }
2
7
  export function normalizeSessionPrompt(value) {
3
8
  if (value === null)
4
9
  return null;
@@ -15,6 +20,8 @@ export function personalInstructionsForRunner(value, runner) {
15
20
  return undefined;
16
21
  if (value === null || typeof value !== 'object' || Array.isArray(value))
17
22
  throw new Error('PERSONAL_INSTRUCTION_INVALID');
23
+ if (RESOLVED_INSTRUCTIONS in value && typeof value[RESOLVED_INSTRUCTIONS] === 'string')
24
+ return value[RESOLVED_INSTRUCTIONS] || undefined;
18
25
  const record = value;
19
26
  const instructions = {
20
27
  common: content(record['common']),
@@ -1,4 +1,5 @@
1
1
  import { auditConversationReceiptSchema, marAgentRuntimeModelConfigurationSchema } from '@myagentroam/protocol';
2
+ import { resolvedPersonalInstructions } from '../runner/personal-instructions.js';
2
3
  import { AgentNetworkService } from './agent-network-service.js';
3
4
  import { isPlainRecord } from '../util/records.js';
4
5
  import { safeErrorCode } from '../util/safe-error.js';
@@ -69,7 +70,7 @@ export function createNodeAgentNetwork(options) {
69
70
  secretEnvironment: childEnvironment(actor),
70
71
  ...(actor.personalInstructions === undefined
71
72
  ? {}
72
- : { personalInstructions: actor.personalInstructions }),
73
+ : { personalInstructions: resolvedPersonalInstructions(actor.personalInstructions) }),
73
74
  ...(actor.requestUserId === undefined ? {} : { __requestUserId: actor.requestUserId }),
74
75
  ...(actor.usageGrant === undefined ? {} : { __usageGrant: actor.usageGrant })
75
76
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.11.40",
3
+ "version": "0.11.42",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -38,10 +38,10 @@
38
38
  "sharp": "0.35.5",
39
39
  "ws": "^8.21.3",
40
40
  "zod": "4.4.3",
41
+ "@myagentroam/agent": "0.11.42",
41
42
  "@myagentroam/code-navigation": "0.11.1",
42
- "@myagentroam/agent": "0.11.40",
43
43
  "@myagentroam/marctl": "0.11.5",
44
- "@myagentroam/protocol": "0.11.40"
44
+ "@myagentroam/protocol": "0.11.42"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/ws": "^8.18.1"