@swmansion/argent 0.25.1-next.35 → 0.25.1-next.37
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/bin/darwin/simulator-server +0 -0
- package/bin/linux/simulator-server +0 -0
- package/bin/linux-arm64/simulator-server +0 -0
- package/bin/win32/simulator-server.exe +0 -0
- package/dist/cli-cmds.mjs +16 -3
- package/dist/installer.mjs +15 -2
- package/dist/mcp-server.mjs +15 -2
- package/dist/tool-server.cjs +963 -816
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/cli-cmds.mjs
CHANGED
|
@@ -17370,7 +17370,7 @@ function createToolsClient(options = {}) {
|
|
|
17370
17370
|
import { copyFile, mkdir as mkdir4, readFile as readFile4, realpath, rm as rm3, stat as stat3, writeFile as writeFile4 } from "node:fs/promises";
|
|
17371
17371
|
import { constants as fsConstants } from "node:fs";
|
|
17372
17372
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
17373
|
-
import { basename as basename4, dirname as dirname5, extname as extname2, isAbsolute as
|
|
17373
|
+
import { basename as basename4, dirname as dirname5, extname as extname2, isAbsolute as isAbsolute4, join as join9, normalize, resolve as resolve6, sep as sep2 } from "node:path";
|
|
17374
17374
|
import { createHash as createHash3 } from "node:crypto";
|
|
17375
17375
|
|
|
17376
17376
|
// ../configuration-core/src/flags.ts
|
|
@@ -17814,6 +17814,7 @@ function applyMergePolicy(policy, local, global2) {
|
|
|
17814
17814
|
}
|
|
17815
17815
|
|
|
17816
17816
|
// ../configuration-core/src/config-schema.ts
|
|
17817
|
+
import { isAbsolute as isAbsolute3 } from "node:path";
|
|
17817
17818
|
function asBoolean(raw) {
|
|
17818
17819
|
return typeof raw === "boolean" ? raw : void 0;
|
|
17819
17820
|
}
|
|
@@ -17889,6 +17890,18 @@ var CONFIG_SCHEMA = [
|
|
|
17889
17890
|
merge: "union",
|
|
17890
17891
|
example: '["~/DeviceSets/ci"]'
|
|
17891
17892
|
},
|
|
17893
|
+
{
|
|
17894
|
+
key: "android.sdkRoot",
|
|
17895
|
+
description: "Android SDK root argent uses instead of `ANDROID_HOME`, for hosts whose SDK is not where the environment says (Nix, custom layouts). Absolute or `~/`-prefixed. Applies to the tool-server and to the simulator-server it starts. `adb` on PATH still wins, as it does with the environment variable.",
|
|
17896
|
+
scopes: ["project", "global"],
|
|
17897
|
+
parse: (raw) => {
|
|
17898
|
+
const value = asString(raw);
|
|
17899
|
+
return value !== void 0 && (value === "~" || value.startsWith("~/") || isAbsolute3(value)) ? value : void 0;
|
|
17900
|
+
},
|
|
17901
|
+
expected: "an absolute path, or one starting with `~/`",
|
|
17902
|
+
merge: "prioritize-local",
|
|
17903
|
+
example: "~/Library/Android/sdk"
|
|
17904
|
+
},
|
|
17892
17905
|
{
|
|
17893
17906
|
key: "recordings.directory",
|
|
17894
17907
|
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.",
|
|
@@ -18157,7 +18170,7 @@ async function writeDurableUnique(dir, filename, write) {
|
|
|
18157
18170
|
function durableSaveTarget(handle) {
|
|
18158
18171
|
if (typeof handle.saveDir !== "string" || !handle.saveDir || handle.archive) return null;
|
|
18159
18172
|
const rel = normalize(handle.saveDir);
|
|
18160
|
-
if (
|
|
18173
|
+
if (isAbsolute4(rel) || rel === ".." || rel.startsWith(`..${sep2}`) || rel.split(sep2).includes("..")) {
|
|
18161
18174
|
return null;
|
|
18162
18175
|
}
|
|
18163
18176
|
if (!ALLOWED_SAVE_DIRS.has(rel)) return null;
|
|
@@ -21859,7 +21872,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
21859
21872
|
var SESSION_ID2 = randomUUID5();
|
|
21860
21873
|
function readCliVersion() {
|
|
21861
21874
|
if (true) {
|
|
21862
|
-
return "0.25.1-next.
|
|
21875
|
+
return "0.25.1-next.37";
|
|
21863
21876
|
}
|
|
21864
21877
|
return "0.0.0";
|
|
21865
21878
|
}
|
package/dist/installer.mjs
CHANGED
|
@@ -15249,6 +15249,7 @@ function applyMergePolicy(policy, local, global2) {
|
|
|
15249
15249
|
}
|
|
15250
15250
|
|
|
15251
15251
|
// ../configuration-core/src/config-schema.ts
|
|
15252
|
+
import { isAbsolute } from "node:path";
|
|
15252
15253
|
function asBoolean(raw) {
|
|
15253
15254
|
return typeof raw === "boolean" ? raw : void 0;
|
|
15254
15255
|
}
|
|
@@ -15311,6 +15312,18 @@ var CONFIG_SCHEMA = [
|
|
|
15311
15312
|
merge: "union",
|
|
15312
15313
|
example: '["~/DeviceSets/ci"]'
|
|
15313
15314
|
},
|
|
15315
|
+
{
|
|
15316
|
+
key: "android.sdkRoot",
|
|
15317
|
+
description: "Android SDK root argent uses instead of `ANDROID_HOME`, for hosts whose SDK is not where the environment says (Nix, custom layouts). Absolute or `~/`-prefixed. Applies to the tool-server and to the simulator-server it starts. `adb` on PATH still wins, as it does with the environment variable.",
|
|
15318
|
+
scopes: ["project", "global"],
|
|
15319
|
+
parse: (raw) => {
|
|
15320
|
+
const value = asString(raw);
|
|
15321
|
+
return value !== void 0 && (value === "~" || value.startsWith("~/") || isAbsolute(value)) ? value : void 0;
|
|
15322
|
+
},
|
|
15323
|
+
expected: "an absolute path, or one starting with `~/`",
|
|
15324
|
+
merge: "prioritize-local",
|
|
15325
|
+
example: "~/Library/Android/sdk"
|
|
15326
|
+
},
|
|
15314
15327
|
{
|
|
15315
15328
|
key: "recordings.directory",
|
|
15316
15329
|
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.",
|
|
@@ -16712,7 +16725,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16712
16725
|
var SESSION_ID = randomUUID4();
|
|
16713
16726
|
function readCliVersion() {
|
|
16714
16727
|
if (true) {
|
|
16715
|
-
return "0.25.1-next.
|
|
16728
|
+
return "0.25.1-next.37";
|
|
16716
16729
|
}
|
|
16717
16730
|
return "0.0.0";
|
|
16718
16731
|
}
|
|
@@ -23304,7 +23317,7 @@ var MAX_CONTENT_BYTES = 32 * 1024 * 1024;
|
|
|
23304
23317
|
import { copyFile, mkdir as mkdir4, readFile as readFile4, realpath, rm as rm3, stat as stat3, writeFile as writeFile4 } from "node:fs/promises";
|
|
23305
23318
|
import { constants as fsConstants } from "node:fs";
|
|
23306
23319
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
23307
|
-
import { basename as basename4, dirname as dirname13, extname as extname2, isAbsolute as
|
|
23320
|
+
import { basename as basename4, dirname as dirname13, extname as extname2, isAbsolute as isAbsolute6, join as join21, normalize, resolve as resolve13, sep as sep4 } from "node:path";
|
|
23308
23321
|
import { createHash as createHash4 } from "node:crypto";
|
|
23309
23322
|
var ALLOWED_SAVE_DIRS = /* @__PURE__ */ new Set([normalize(".argent/recordings")]);
|
|
23310
23323
|
var RECORDINGS_SAVE_DIR = normalize(".argent/recordings");
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -16914,7 +16914,7 @@ function errorBodyMessage(body) {
|
|
|
16914
16914
|
import { copyFile, mkdir as mkdir4, readFile as readFile4, realpath, rm as rm3, stat as stat3, writeFile as writeFile4 } from "node:fs/promises";
|
|
16915
16915
|
import { constants as fsConstants } from "node:fs";
|
|
16916
16916
|
import { tmpdir as tmpdir2 } from "node:os";
|
|
16917
|
-
import { basename as basename4, dirname as dirname5, extname as extname2, isAbsolute as
|
|
16917
|
+
import { basename as basename4, dirname as dirname5, extname as extname2, isAbsolute as isAbsolute4, join as join9, normalize, resolve as resolve6, sep as sep2 } from "node:path";
|
|
16918
16918
|
import { createHash as createHash3 } from "node:crypto";
|
|
16919
16919
|
|
|
16920
16920
|
// ../configuration-core/src/flags.ts
|
|
@@ -17172,6 +17172,7 @@ function applyMergePolicy(policy, local, global) {
|
|
|
17172
17172
|
}
|
|
17173
17173
|
|
|
17174
17174
|
// ../configuration-core/src/config-schema.ts
|
|
17175
|
+
import { isAbsolute as isAbsolute3 } from "node:path";
|
|
17175
17176
|
function asBoolean(raw) {
|
|
17176
17177
|
return typeof raw === "boolean" ? raw : void 0;
|
|
17177
17178
|
}
|
|
@@ -17234,6 +17235,18 @@ var CONFIG_SCHEMA = [
|
|
|
17234
17235
|
merge: "union",
|
|
17235
17236
|
example: '["~/DeviceSets/ci"]'
|
|
17236
17237
|
},
|
|
17238
|
+
{
|
|
17239
|
+
key: "android.sdkRoot",
|
|
17240
|
+
description: "Android SDK root argent uses instead of `ANDROID_HOME`, for hosts whose SDK is not where the environment says (Nix, custom layouts). Absolute or `~/`-prefixed. Applies to the tool-server and to the simulator-server it starts. `adb` on PATH still wins, as it does with the environment variable.",
|
|
17241
|
+
scopes: ["project", "global"],
|
|
17242
|
+
parse: (raw) => {
|
|
17243
|
+
const value = asString(raw);
|
|
17244
|
+
return value !== void 0 && (value === "~" || value.startsWith("~/") || isAbsolute3(value)) ? value : void 0;
|
|
17245
|
+
},
|
|
17246
|
+
expected: "an absolute path, or one starting with `~/`",
|
|
17247
|
+
merge: "prioritize-local",
|
|
17248
|
+
example: "~/Library/Android/sdk"
|
|
17249
|
+
},
|
|
17237
17250
|
{
|
|
17238
17251
|
key: "recordings.directory",
|
|
17239
17252
|
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.",
|
|
@@ -17406,7 +17419,7 @@ async function writeDurableUnique(dir, filename, write) {
|
|
|
17406
17419
|
function durableSaveTarget(handle) {
|
|
17407
17420
|
if (typeof handle.saveDir !== "string" || !handle.saveDir || handle.archive) return null;
|
|
17408
17421
|
const rel = normalize(handle.saveDir);
|
|
17409
|
-
if (
|
|
17422
|
+
if (isAbsolute4(rel) || rel === ".." || rel.startsWith(`..${sep2}`) || rel.split(sep2).includes("..")) {
|
|
17410
17423
|
return null;
|
|
17411
17424
|
}
|
|
17412
17425
|
if (!ALLOWED_SAVE_DIRS.has(rel)) return null;
|