@swmansion/argent 0.36.1-next.11 → 0.36.1-next.12
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/cli-cmds.mjs +1 -1
- package/dist/installer.mjs +1 -1
- package/dist/mcp-server.mjs +1 -1
- package/dist/tool-server.cjs +15 -2
- package/package.json +2 -2
package/dist/cli-cmds.mjs
CHANGED
|
@@ -39193,7 +39193,7 @@ function isCi(env = process.env) {
|
|
|
39193
39193
|
var SESSION_ID2 = randomUUID5();
|
|
39194
39194
|
function readCliVersion() {
|
|
39195
39195
|
if (true) {
|
|
39196
|
-
return "0.36.1-next.
|
|
39196
|
+
return "0.36.1-next.12";
|
|
39197
39197
|
}
|
|
39198
39198
|
return "0.0.0";
|
|
39199
39199
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -17199,7 +17199,7 @@ function isCi(env = process.env) {
|
|
|
17199
17199
|
var SESSION_ID = randomUUID4();
|
|
17200
17200
|
function readCliVersion() {
|
|
17201
17201
|
if (true) {
|
|
17202
|
-
return "0.36.1-next.
|
|
17202
|
+
return "0.36.1-next.12";
|
|
17203
17203
|
}
|
|
17204
17204
|
return "0.0.0";
|
|
17205
17205
|
}
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -38677,7 +38677,7 @@ async function startMcpServer(options) {
|
|
|
38677
38677
|
const autoDescribeOn = autoDescribeEnabled();
|
|
38678
38678
|
const whatsNewOn = whatsNewEnabled();
|
|
38679
38679
|
const installedVersion = getInstalledVersion();
|
|
38680
|
-
const highlightsVersion = true ? "0.36.1-next.
|
|
38680
|
+
const highlightsVersion = true ? "0.36.1-next.12" : installedVersion;
|
|
38681
38681
|
const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
|
|
38682
38682
|
const trees = createTreeMemory();
|
|
38683
38683
|
const screenshots = createScreenshotMemory();
|
package/dist/tool-server.cjs
CHANGED
|
@@ -73485,7 +73485,7 @@ function isCi(env = process.env) {
|
|
|
73485
73485
|
var SESSION_ID = (0, import_node_crypto4.randomUUID)();
|
|
73486
73486
|
function readCliVersion() {
|
|
73487
73487
|
if (true) {
|
|
73488
|
-
return "0.36.1-next.
|
|
73488
|
+
return "0.36.1-next.12";
|
|
73489
73489
|
}
|
|
73490
73490
|
return "0.0.0";
|
|
73491
73491
|
}
|
|
@@ -129617,6 +129617,16 @@ function checkTokenExemptAccess(req, policy) {
|
|
|
129617
129617
|
error: `This request came ${from2}. Without a token, the tool-server serves /preview and its WebSocket only to clients on its own machine. Send \`Authorization: Bearer <token>\`, or reach the server through an SSH tunnel to 127.0.0.1. \`argent server start\` prints the token and saves it to ${TOKEN_FILE_HINT}.`
|
|
129618
129618
|
};
|
|
129619
129619
|
}
|
|
129620
|
+
function checkChromiumWebsocketAccess(req, policy) {
|
|
129621
|
+
const denial = checkTokenExemptAccess(req, policy);
|
|
129622
|
+
if (denial || !policy.expectedToken) return denial;
|
|
129623
|
+
const provided = extractBearerToken(req.headers.authorization);
|
|
129624
|
+
if (provided && constantTimeEqual(provided, policy.expectedToken)) return null;
|
|
129625
|
+
return {
|
|
129626
|
+
status: 401,
|
|
129627
|
+
error: `Missing or invalid Authorization header. The Chromium WebSocket requires \`Authorization: Bearer <token>\` where <token> matches the value in ${TOKEN_FILE_HINT}.`
|
|
129628
|
+
};
|
|
129629
|
+
}
|
|
129620
129630
|
function interfaceAddresses() {
|
|
129621
129631
|
const out = [];
|
|
129622
129632
|
for (const list of Object.values((0, import_node_os13.networkInterfaces)())) {
|
|
@@ -130335,7 +130345,10 @@ function createHttpApp(registry2, options) {
|
|
|
130335
130345
|
if (!api) return null;
|
|
130336
130346
|
return api.server;
|
|
130337
130347
|
},
|
|
130338
|
-
(req) =>
|
|
130348
|
+
(req) => checkChromiumWebsocketAccess(req, {
|
|
130349
|
+
allowedHostnames: tokenExemptHostnames(),
|
|
130350
|
+
expectedToken
|
|
130351
|
+
})
|
|
130339
130352
|
);
|
|
130340
130353
|
}
|
|
130341
130354
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.36.1-next.
|
|
3
|
+
"version": "0.36.1-next.12",
|
|
4
4
|
"mcpName": "io.github.software-mansion/argent",
|
|
5
5
|
"description": "MCP server, CLI, and skills by Software Mansion that let AI coding agents control, test, debug, and profile apps on iOS simulators, Android emulators, physical devices, TVs, and desktop apps",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"vitest": "^5.0.5",
|
|
100
100
|
"yaml": "^2.9.1"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "bc85b71dc996faea55449af29a2020d03bbd6c4c"
|
|
103
103
|
}
|