@swmansion/argent 0.31.1-next.2 → 0.31.1-next.3
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 +13 -1
- package/dist/client.js +12 -0
- package/dist/installer.mjs +13 -1
- package/dist/mcp-server.mjs +12 -0
- package/dist/tool-server.cjs +29 -2
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -31617,6 +31617,18 @@ var CONFIG_SCHEMA = [
|
|
|
31617
31617
|
merge: "prioritize-local",
|
|
31618
31618
|
example: "~/Library/Android/sdk"
|
|
31619
31619
|
},
|
|
31620
|
+
{
|
|
31621
|
+
key: "android.adbServerPort",
|
|
31622
|
+
description: "Port of the adb server argent uses, for hosts that run Android devices on a server other than the default 5037 (a device pool with its own server, for example). Applies when the tool-server starts, to the tool-server and every adb and simulator-server it runs. `ANDROID_ADB_SERVER_PORT` or `ADB_SERVER_SOCKET` in the tool-server's environment still wins, as it does for adb itself.",
|
|
31623
|
+
scopes: ["project", "global"],
|
|
31624
|
+
parse: (raw) => {
|
|
31625
|
+
const value = asPositiveInteger(raw);
|
|
31626
|
+
return value !== void 0 && value < 65536 ? value : void 0;
|
|
31627
|
+
},
|
|
31628
|
+
expected: "a TCP port, 1-65535",
|
|
31629
|
+
merge: "prioritize-local",
|
|
31630
|
+
example: "5038"
|
|
31631
|
+
},
|
|
31620
31632
|
{
|
|
31621
31633
|
key: "recordings.directory",
|
|
31622
31634
|
description: "Directory where finished screen recordings (mp4) are saved on the client host. Absolute, `~`-prefixed, or relative to the project root (home dir when not in a project). Unset \u21D2 `.argent/recordings` under the project root.",
|
|
@@ -35594,7 +35606,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
35594
35606
|
var SESSION_ID2 = randomUUID5();
|
|
35595
35607
|
function readCliVersion() {
|
|
35596
35608
|
if (true) {
|
|
35597
|
-
return "0.31.1-next.
|
|
35609
|
+
return "0.31.1-next.3";
|
|
35598
35610
|
}
|
|
35599
35611
|
return "0.0.0";
|
|
35600
35612
|
}
|
package/dist/client.js
CHANGED
|
@@ -8064,6 +8064,18 @@ var CONFIG_SCHEMA = [
|
|
|
8064
8064
|
merge: "prioritize-local",
|
|
8065
8065
|
example: "~/Library/Android/sdk"
|
|
8066
8066
|
},
|
|
8067
|
+
{
|
|
8068
|
+
key: "android.adbServerPort",
|
|
8069
|
+
description: "Port of the adb server argent uses, for hosts that run Android devices on a server other than the default 5037 (a device pool with its own server, for example). Applies when the tool-server starts, to the tool-server and every adb and simulator-server it runs. `ANDROID_ADB_SERVER_PORT` or `ADB_SERVER_SOCKET` in the tool-server's environment still wins, as it does for adb itself.",
|
|
8070
|
+
scopes: ["project", "global"],
|
|
8071
|
+
parse: (raw) => {
|
|
8072
|
+
const value = asPositiveInteger(raw);
|
|
8073
|
+
return value !== void 0 && value < 65536 ? value : void 0;
|
|
8074
|
+
},
|
|
8075
|
+
expected: "a TCP port, 1-65535",
|
|
8076
|
+
merge: "prioritize-local",
|
|
8077
|
+
example: "5038"
|
|
8078
|
+
},
|
|
8067
8079
|
{
|
|
8068
8080
|
key: "recordings.directory",
|
|
8069
8081
|
description: "Directory where finished screen recordings (mp4) are saved on the client host. Absolute, `~`-prefixed, or relative to the project root (home dir when not in a project). Unset \u21D2 `.argent/recordings` under the project root.",
|
package/dist/installer.mjs
CHANGED
|
@@ -15432,6 +15432,18 @@ var CONFIG_SCHEMA = [
|
|
|
15432
15432
|
merge: "prioritize-local",
|
|
15433
15433
|
example: "~/Library/Android/sdk"
|
|
15434
15434
|
},
|
|
15435
|
+
{
|
|
15436
|
+
key: "android.adbServerPort",
|
|
15437
|
+
description: "Port of the adb server argent uses, for hosts that run Android devices on a server other than the default 5037 (a device pool with its own server, for example). Applies when the tool-server starts, to the tool-server and every adb and simulator-server it runs. `ANDROID_ADB_SERVER_PORT` or `ADB_SERVER_SOCKET` in the tool-server's environment still wins, as it does for adb itself.",
|
|
15438
|
+
scopes: ["project", "global"],
|
|
15439
|
+
parse: (raw) => {
|
|
15440
|
+
const value = asPositiveInteger(raw);
|
|
15441
|
+
return value !== void 0 && value < 65536 ? value : void 0;
|
|
15442
|
+
},
|
|
15443
|
+
expected: "a TCP port, 1-65535",
|
|
15444
|
+
merge: "prioritize-local",
|
|
15445
|
+
example: "5038"
|
|
15446
|
+
},
|
|
15435
15447
|
{
|
|
15436
15448
|
key: "recordings.directory",
|
|
15437
15449
|
description: "Directory where finished screen recordings (mp4) are saved on the client host. Absolute, `~`-prefixed, or relative to the project root (home dir when not in a project). Unset \u21D2 `.argent/recordings` under the project root.",
|
|
@@ -16900,7 +16912,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16900
16912
|
var SESSION_ID = randomUUID4();
|
|
16901
16913
|
function readCliVersion() {
|
|
16902
16914
|
if (true) {
|
|
16903
|
-
return "0.31.1-next.
|
|
16915
|
+
return "0.31.1-next.3";
|
|
16904
16916
|
}
|
|
16905
16917
|
return "0.0.0";
|
|
16906
16918
|
}
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -27090,6 +27090,18 @@ var CONFIG_SCHEMA = [
|
|
|
27090
27090
|
merge: "prioritize-local",
|
|
27091
27091
|
example: "~/Library/Android/sdk"
|
|
27092
27092
|
},
|
|
27093
|
+
{
|
|
27094
|
+
key: "android.adbServerPort",
|
|
27095
|
+
description: "Port of the adb server argent uses, for hosts that run Android devices on a server other than the default 5037 (a device pool with its own server, for example). Applies when the tool-server starts, to the tool-server and every adb and simulator-server it runs. `ANDROID_ADB_SERVER_PORT` or `ADB_SERVER_SOCKET` in the tool-server's environment still wins, as it does for adb itself.",
|
|
27096
|
+
scopes: ["project", "global"],
|
|
27097
|
+
parse: (raw) => {
|
|
27098
|
+
const value = asPositiveInteger(raw);
|
|
27099
|
+
return value !== void 0 && value < 65536 ? value : void 0;
|
|
27100
|
+
},
|
|
27101
|
+
expected: "a TCP port, 1-65535",
|
|
27102
|
+
merge: "prioritize-local",
|
|
27103
|
+
example: "5038"
|
|
27104
|
+
},
|
|
27093
27105
|
{
|
|
27094
27106
|
key: "recordings.directory",
|
|
27095
27107
|
description: "Directory where finished screen recordings (mp4) are saved on the client host. Absolute, `~`-prefixed, or relative to the project root (home dir when not in a project). Unset \u21D2 `.argent/recordings` under the project root.",
|
package/dist/tool-server.cjs
CHANGED
|
@@ -887,6 +887,18 @@ var init_config_schema = __esm({
|
|
|
887
887
|
merge: "prioritize-local",
|
|
888
888
|
example: "~/Library/Android/sdk"
|
|
889
889
|
},
|
|
890
|
+
{
|
|
891
|
+
key: "android.adbServerPort",
|
|
892
|
+
description: "Port of the adb server argent uses, for hosts that run Android devices on a server other than the default 5037 (a device pool with its own server, for example). Applies when the tool-server starts, to the tool-server and every adb and simulator-server it runs. `ANDROID_ADB_SERVER_PORT` or `ADB_SERVER_SOCKET` in the tool-server's environment still wins, as it does for adb itself.",
|
|
893
|
+
scopes: ["project", "global"],
|
|
894
|
+
parse: (raw) => {
|
|
895
|
+
const value = asPositiveInteger(raw);
|
|
896
|
+
return value !== void 0 && value < 65536 ? value : void 0;
|
|
897
|
+
},
|
|
898
|
+
expected: "a TCP port, 1-65535",
|
|
899
|
+
merge: "prioritize-local",
|
|
900
|
+
example: "5038"
|
|
901
|
+
},
|
|
890
902
|
{
|
|
891
903
|
key: "recordings.directory",
|
|
892
904
|
description: "Directory where finished screen recordings (mp4) are saved on the client host. Absolute, `~`-prefixed, or relative to the project root (home dir when not in a project). Unset \u21D2 `.argent/recordings` under the project root.",
|
|
@@ -961,6 +973,10 @@ function getAndroidSdkRoot(options = {}) {
|
|
|
961
973
|
if (value.startsWith("~/")) return path4.resolve(home, value.slice(2));
|
|
962
974
|
return path4.resolve(value);
|
|
963
975
|
}
|
|
976
|
+
function getAndroidAdbServerPort(options = {}) {
|
|
977
|
+
const value = getConfigValueByKey(ANDROID_ADB_SERVER_PORT_KEY, options);
|
|
978
|
+
return typeof value === "number" ? value : null;
|
|
979
|
+
}
|
|
964
980
|
function getAdditionalIosDeviceSets(options = {}) {
|
|
965
981
|
const def = requireDefinition(IOS_ADDITIONAL_DEVICE_SETS_KEY);
|
|
966
982
|
if (def.merge !== "union") {
|
|
@@ -985,7 +1001,7 @@ function resolveDeviceSetEntries(entries, baseDir, home) {
|
|
|
985
1001
|
return path4.resolve(baseDir, entry);
|
|
986
1002
|
});
|
|
987
1003
|
}
|
|
988
|
-
var path4, UnknownConfigKeyError, ANDROID_SDK_ROOT_KEY, IOS_ADDITIONAL_DEVICE_SETS_KEY;
|
|
1004
|
+
var path4, UnknownConfigKeyError, ANDROID_SDK_ROOT_KEY, ANDROID_ADB_SERVER_PORT_KEY, IOS_ADDITIONAL_DEVICE_SETS_KEY;
|
|
989
1005
|
var init_config_access = __esm({
|
|
990
1006
|
"../configuration-core/src/config-access.ts"() {
|
|
991
1007
|
"use strict";
|
|
@@ -1004,6 +1020,7 @@ var init_config_access = __esm({
|
|
|
1004
1020
|
key;
|
|
1005
1021
|
};
|
|
1006
1022
|
ANDROID_SDK_ROOT_KEY = "android.sdkRoot";
|
|
1023
|
+
ANDROID_ADB_SERVER_PORT_KEY = "android.adbServerPort";
|
|
1007
1024
|
IOS_ADDITIONAL_DEVICE_SETS_KEY = "ios.additionalDeviceSets";
|
|
1008
1025
|
}
|
|
1009
1026
|
});
|
|
@@ -100961,7 +100978,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
100961
100978
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
100962
100979
|
function readCliVersion() {
|
|
100963
100980
|
if (true) {
|
|
100964
|
-
return "0.31.1-next.
|
|
100981
|
+
return "0.31.1-next.3";
|
|
100965
100982
|
}
|
|
100966
100983
|
return "0.0.0";
|
|
100967
100984
|
}
|
|
@@ -141108,6 +141125,10 @@ async function adbServerShell(serial, shellCommand, options = {}) {
|
|
|
141108
141125
|
});
|
|
141109
141126
|
});
|
|
141110
141127
|
}
|
|
141128
|
+
function configuredAdbServerPort(env, configured) {
|
|
141129
|
+
if (configured === null || env.ADB_SERVER_SOCKET || env.ANDROID_ADB_SERVER_PORT) return null;
|
|
141130
|
+
return String(configured);
|
|
141131
|
+
}
|
|
141111
141132
|
function adbServerAddress(env) {
|
|
141112
141133
|
const socketSpec = env.ADB_SERVER_SOCKET;
|
|
141113
141134
|
if (socketSpec) {
|
|
@@ -178549,6 +178570,12 @@ function initializeStdioTimestampWrapper() {
|
|
|
178549
178570
|
}
|
|
178550
178571
|
function start() {
|
|
178551
178572
|
initializeStdioTimestampWrapper();
|
|
178573
|
+
const adbServerPort = configuredAdbServerPort(process.env, getAndroidAdbServerPort());
|
|
178574
|
+
if (adbServerPort !== null) {
|
|
178575
|
+
process.env.ANDROID_ADB_SERVER_PORT = adbServerPort;
|
|
178576
|
+
process.stderr.write(`android.adbServerPort \u2192 ANDROID_ADB_SERVER_PORT=${adbServerPort}
|
|
178577
|
+
`);
|
|
178578
|
+
}
|
|
178552
178579
|
let shuttingDown = false;
|
|
178553
178580
|
let crashing = false;
|
|
178554
178581
|
let finalExitCode = 0;
|
package/package.json
CHANGED