@myagentroam/node 0.11.62 → 0.11.64

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.
@@ -12,6 +12,7 @@ const runtimeCredentialCapability = () => ({
12
12
  namespacedTools: true,
13
13
  responsesOptionalParameters: true,
14
14
  responsesHttpContinuation: true,
15
+ contextGcControl: true,
15
16
  conversationModels: true,
16
17
  resourceInput: true,
17
18
  httpVersions: ['1.1', '2']
@@ -938,6 +938,7 @@ function modelSummary(model, index) {
938
938
  defaultReasoningEffort: resolveMarAgentDefaultReasoningEffort(model.defaultReasoningEffort, model.reasoningEfforts),
939
939
  titleGeneration: model.titleGeneration,
940
940
  codeMode: model.codeMode,
941
+ gcEnabled: model.gcEnabled ?? true,
941
942
  ...(model.serviceTier === undefined ? {} : { serviceTier: model.serviceTier }),
942
943
  hostedWebSearch: model.hostedWebSearch,
943
944
  ...(model.responsesTransport === undefined
@@ -24,7 +24,9 @@ export class ClaudeUsageNormalizer {
24
24
  ...(previous?.id === id ? previous.values : {}),
25
25
  purpose: 'conversation',
26
26
  agentRole: parent ? 'subagent' : 'root',
27
- ...(typeof message?.model === 'string' ? { actualModel: message.model } : {})
27
+ ...(typeof message?.model === 'string'
28
+ ? { actualModel: message.model, modelConfigurationId: message.model }
29
+ : {})
28
30
  };
29
31
  if (usage) {
30
32
  const input = usageToken(usage.input_tokens), read = usageToken(usage.cache_read_input_tokens), write = usageToken(usage.cache_creation_input_tokens), output = usageToken(usage.output_tokens);
@@ -115,6 +115,9 @@ export class CodexUsageNormalizer {
115
115
  purpose: compact ? 'compact' : 'conversation',
116
116
  agentRole: 'root',
117
117
  ...(this.requestedModel ? { requestedModel: this.requestedModel } : {}),
118
+ ...(this.requestedModel || typeof params.model === 'string'
119
+ ? { modelConfigurationId: this.requestedModel || params.model }
120
+ : {}),
118
121
  ...(typeof params.model === 'string' ? { actualModel: params.model } : {}),
119
122
  responseId: params.responseId,
120
123
  ...(inputTokens === undefined ? {} : { inputTokens }),
@@ -66,6 +66,7 @@ export class MarAgentRuntimeModelFactory {
66
66
  subagentModel: configuration.subagentModel ?? false,
67
67
  titleGeneration: configuration.titleGeneration,
68
68
  codeMode: configuration.codeMode,
69
+ gcEnabled: configuration.gcEnabled ?? true,
69
70
  ...(configuration.serviceTier === undefined
70
71
  ? {}
71
72
  : { serviceTier: configuration.serviceTier }),
@@ -37,7 +37,7 @@ export class OpenCodeUsageNormalizer {
37
37
  this.tracker.snapshot(part.id, {
38
38
  purpose: 'conversation',
39
39
  agentRole: 'root',
40
- ...(model.model ? { actualModel: model.model } : {}),
40
+ ...(model.model ? { actualModel: model.model, modelConfigurationId: model.model } : {}),
41
41
  ...(model.provider ? { provider: model.provider } : {}),
42
42
  ...(inputTokens === undefined ? {} : { inputTokens }),
43
43
  ...(outputTokens === undefined ? {} : { outputTokens }),
@@ -29,6 +29,10 @@ export class RunnerUsageTracker {
29
29
  const record = {
30
30
  ...previous,
31
31
  ...values,
32
+ // Identity is immutable once the first snapshot has been published.
33
+ ...(previous
34
+ ? { modelConfigurationId: previous.modelConfigurationId, provider: previous.provider }
35
+ : {}),
32
36
  schemaVersion: 1,
33
37
  recordId,
34
38
  requestId: recordId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.11.62",
3
+ "version": "0.11.64",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -40,10 +40,10 @@
40
40
  "turndown-plugin-gfm": "^1.0.2",
41
41
  "ws": "^8.21.3",
42
42
  "zod": "4.4.3",
43
- "@myagentroam/agent": "0.11.62",
43
+ "@myagentroam/agent": "0.11.64",
44
44
  "@myagentroam/code-navigation": "0.11.1",
45
45
  "@myagentroam/marctl": "0.11.11",
46
- "@myagentroam/protocol": "0.11.62"
46
+ "@myagentroam/protocol": "0.11.64"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/turndown": "^5.0.6",