@myagentroam/node 0.13.14 → 0.13.15
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/marctl/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"0.13.
|
|
1
|
+
{"type":"module","version":"0.13.15"}
|
|
@@ -27,13 +27,7 @@ export function validateServerUrl(value, translate = createTranslator()) {
|
|
|
27
27
|
throw new MarctlError(translate('errors.serverUrlInvalid'));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
url.protocol === 'http:' &&
|
|
32
|
-
(url.hostname === 'localhost' ||
|
|
33
|
-
url.hostname === '127.0.0.1' ||
|
|
34
|
-
url.hostname === '::1' ||
|
|
35
|
-
url.hostname === '[::1]');
|
|
36
|
-
if (url.protocol !== 'https:' && !isLoopbackHttp)
|
|
30
|
+
if (url.protocol !== 'https:' && url.protocol !== 'http:')
|
|
37
31
|
throw new MarctlError(translate('errors.serverUrlTransport'));
|
|
38
32
|
if (url.username || url.password || url.search || url.hash || url.pathname !== '/')
|
|
39
33
|
throw new MarctlError(translate('errors.serverUrlOrigin'));
|
|
@@ -234,7 +234,7 @@ No configuration, authorization, or Server connection is required.`
|
|
|
234
234
|
userContextUnavailable: 'This Node session has no valid marctl user authorization.',
|
|
235
235
|
sessionContextRequired: 'No current Session is available; specify a Session ID explicitly.',
|
|
236
236
|
serverUrlInvalid: 'MAR_CTL_SERVER_URL is invalid.',
|
|
237
|
-
serverUrlTransport: 'MAR_CTL_SERVER_URL must use
|
|
237
|
+
serverUrlTransport: 'MAR_CTL_SERVER_URL must use HTTP or HTTPS.',
|
|
238
238
|
serverUrlOrigin: 'MAR_CTL_SERVER_URL must be an origin without credentials or query data.',
|
|
239
239
|
fetchUnavailable: 'Fetch is unavailable in this Node.js runtime.',
|
|
240
240
|
serverInvalidNodes: 'The server returned an invalid node list.',
|
|
@@ -220,7 +220,7 @@ ${configurationHelp}`,
|
|
|
220
220
|
userContextUnavailable: '此 Node 会话没有有效的 marctl 用户授权。',
|
|
221
221
|
sessionContextRequired: '当前上下文没有会话,请显式指定会话 ID。',
|
|
222
222
|
serverUrlInvalid: 'MAR_CTL_SERVER_URL 无效。',
|
|
223
|
-
serverUrlTransport: 'MAR_CTL_SERVER_URL 必须使用
|
|
223
|
+
serverUrlTransport: 'MAR_CTL_SERVER_URL 必须使用 HTTP 或 HTTPS。',
|
|
224
224
|
serverUrlOrigin: 'MAR_CTL_SERVER_URL 必须是不含凭据或查询参数的 Origin。',
|
|
225
225
|
fetchUnavailable: '当前 Node.js 运行时没有 Fetch。',
|
|
226
226
|
serverInvalidNodes: 'Server 返回的节点列表无效。',
|
|
@@ -18,11 +18,7 @@ export class NodeUpgradeReporter {
|
|
|
18
18
|
endpoint.protocol = 'http:';
|
|
19
19
|
if (endpoint.protocol === 'wss:')
|
|
20
20
|
endpoint.protocol = 'https:';
|
|
21
|
-
if (endpoint.username ||
|
|
22
|
-
endpoint.password ||
|
|
23
|
-
(endpoint.protocol !== 'https:' &&
|
|
24
|
-
!(endpoint.protocol === 'http:' &&
|
|
25
|
-
['localhost', '127.0.0.1', '[::1]'].includes(endpoint.hostname))))
|
|
21
|
+
if (endpoint.username || endpoint.password || !['http:', 'https:'].includes(endpoint.protocol))
|
|
26
22
|
throw new Error('NODE_UPGRADE_REPORT_ORIGIN_INVALID');
|
|
27
23
|
endpoint.pathname = `/api/nodes/${encodeURIComponent(nodeId)}/upgrade/report`;
|
|
28
24
|
endpoint.search = '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/myagentroam/mar.git",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"turndown-plugin-gfm": "^1.0.2",
|
|
50
50
|
"ws": "^8.21.3",
|
|
51
51
|
"zod": "4.4.3",
|
|
52
|
-
"@myagentroam/
|
|
53
|
-
"@myagentroam/
|
|
52
|
+
"@myagentroam/agent": "0.13.15",
|
|
53
|
+
"@myagentroam/protocol": "0.13.15"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/turndown": "^5.0.6",
|
|
57
57
|
"@types/ws": "^8.18.1",
|
|
58
|
-
"@myagentroam/
|
|
59
|
-
"@myagentroam/
|
|
58
|
+
"@myagentroam/marctl": "0.13.15",
|
|
59
|
+
"@myagentroam/code-navigation": "0.11.1"
|
|
60
60
|
},
|
|
61
61
|
"exports": {
|
|
62
62
|
"./config": {
|