@myagentroam/node 0.10.8 → 0.10.10
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/dist/capabilities.js
CHANGED
|
@@ -11,6 +11,7 @@ const runtimeCredentialCapability = () => ({
|
|
|
11
11
|
fastMode: true,
|
|
12
12
|
serviceTiers: ['auto', 'default', 'flex', 'priority', 'fast', 'ultrafast'],
|
|
13
13
|
namespacedTools: true,
|
|
14
|
+
responsesOptionalParameters: true,
|
|
14
15
|
httpVersions: ['1.1', '2']
|
|
15
16
|
});
|
|
16
17
|
const workspaceDirectTransferCapability = () => ({
|
|
@@ -76,6 +76,11 @@ export class MarAgentRuntimeModelFactory {
|
|
|
76
76
|
? {}
|
|
77
77
|
: { responsesTransport: configuration.responsesTransport }),
|
|
78
78
|
responsesToolNamespace: configuration.responsesToolNamespace,
|
|
79
|
+
...(configuration.responsesOptionalParameters === undefined
|
|
80
|
+
? {}
|
|
81
|
+
: {
|
|
82
|
+
responsesOptionalParameters: configuration.responsesOptionalParameters
|
|
83
|
+
}),
|
|
79
84
|
responsesPreviousResponseId: configuration.responsesPreviousResponseId,
|
|
80
85
|
enabled: configuration.enabled
|
|
81
86
|
};
|
|
@@ -61,11 +61,26 @@ function modelTestErrorProjection(error) {
|
|
|
61
61
|
if (typeof candidate.code !== 'string' || typeof candidate.message !== 'string')
|
|
62
62
|
return runnerErrorProjection(error, 'MAR_AGENT_MODEL_CONNECTION_FAILED');
|
|
63
63
|
const prefix = `${candidate.code}: `;
|
|
64
|
-
|
|
64
|
+
const projection = runnerErrorProjection({
|
|
65
65
|
code: candidate.code,
|
|
66
66
|
message: candidate.message.startsWith(prefix)
|
|
67
67
|
? candidate.message.slice(prefix.length)
|
|
68
68
|
: candidate.message,
|
|
69
69
|
status: candidate.details?.['status']
|
|
70
70
|
}, 'MAR_AGENT_MODEL_CONNECTION_FAILED');
|
|
71
|
+
const details = candidate.details;
|
|
72
|
+
return {
|
|
73
|
+
...projection,
|
|
74
|
+
...(typeof details?.['body'] === 'string' && typeof details['bodyTruncated'] === 'boolean'
|
|
75
|
+
? {
|
|
76
|
+
response: {
|
|
77
|
+
body: details['body'],
|
|
78
|
+
bodyTruncated: details['bodyTruncated'],
|
|
79
|
+
contentType: details['contentType'] ?? null,
|
|
80
|
+
requestId: details['requestId'] ?? null,
|
|
81
|
+
retryAfter: details['retryAfter'] ?? null
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
: {})
|
|
85
|
+
};
|
|
71
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"license": "Apache-2.0 AND GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"playwright": "1.62.1",
|
|
38
38
|
"ws": "^8.21.3",
|
|
39
39
|
"zod": "4.4.3",
|
|
40
|
-
"@myagentroam/agent": "0.10.
|
|
41
|
-
"@myagentroam/
|
|
42
|
-
"@myagentroam/protocol": "0.10.
|
|
43
|
-
"@myagentroam/
|
|
40
|
+
"@myagentroam/agent": "0.10.10",
|
|
41
|
+
"@myagentroam/code-navigation": "0.10.1",
|
|
42
|
+
"@myagentroam/protocol": "0.10.10",
|
|
43
|
+
"@myagentroam/marctl": "0.10.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/ws": "^8.18.1"
|