@swmansion/argent 0.34.1-next.31 → 0.34.1-next.32
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 +5 -2
- package/dist/installer.mjs +1 -1
- package/dist/tool-args.generated.d.ts +3 -3
- package/dist/tool-server.cjs +8 -4
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -36256,7 +36256,7 @@ function isCi(env = process.env) {
|
|
|
36256
36256
|
var SESSION_ID2 = randomUUID5();
|
|
36257
36257
|
function readCliVersion() {
|
|
36258
36258
|
if (true) {
|
|
36259
|
-
return "0.34.1-next.
|
|
36259
|
+
return "0.34.1-next.32";
|
|
36260
36260
|
}
|
|
36261
36261
|
return "0.0.0";
|
|
36262
36262
|
}
|
|
@@ -36886,6 +36886,9 @@ function booleanLiteral(raw) {
|
|
|
36886
36886
|
return void 0;
|
|
36887
36887
|
}
|
|
36888
36888
|
function coerceScalar(raw, type, field) {
|
|
36889
|
+
if (Array.isArray(type) && type.length === 2 && type.includes("null")) {
|
|
36890
|
+
type = type.find((member) => member === "integer" || member === "number");
|
|
36891
|
+
}
|
|
36889
36892
|
if (type === "number") {
|
|
36890
36893
|
if (raw.trim() === "")
|
|
36891
36894
|
throw new FlagParseException(`--${field} expected a number, got "${raw}"`);
|
|
@@ -37094,7 +37097,7 @@ function renderType(prop) {
|
|
|
37094
37097
|
const suffix = isScalarType(prop.items?.type) ? " (repeatable)" : "";
|
|
37095
37098
|
return `array<${item}>${suffix}`;
|
|
37096
37099
|
}
|
|
37097
|
-
return prop.type ?? "any";
|
|
37100
|
+
return Array.isArray(prop.type) ? prop.type.join(" | ") : prop.type ?? "any";
|
|
37098
37101
|
}
|
|
37099
37102
|
|
|
37100
37103
|
// ../argent-cli/src/run-validation.ts
|
package/dist/installer.mjs
CHANGED
|
@@ -16942,7 +16942,7 @@ function isCi(env = process.env) {
|
|
|
16942
16942
|
var SESSION_ID = randomUUID4();
|
|
16943
16943
|
function readCliVersion() {
|
|
16944
16944
|
if (true) {
|
|
16945
|
-
return "0.34.1-next.
|
|
16945
|
+
return "0.34.1-next.32";
|
|
16946
16946
|
}
|
|
16947
16947
|
return "0.0.0";
|
|
16948
16948
|
}
|
|
@@ -668,7 +668,7 @@ export interface ArgentToolArgs {
|
|
|
668
668
|
end: number;
|
|
669
669
|
};
|
|
670
670
|
/** Commit index */
|
|
671
|
-
commit_index?: number;
|
|
671
|
+
commit_index?: number | null;
|
|
672
672
|
/** Max results to return. Defaults to 20 for by_component / by_time_range, which count commits, and render_counts, which counts components. by_index counts individual fibers and returns all of them unless this is set; a small cap there can show less than the analyze report it is meant to expand on. */
|
|
673
673
|
top_n?: number;
|
|
674
674
|
};
|
|
@@ -715,7 +715,7 @@ export interface ArgentToolArgs {
|
|
|
715
715
|
/** Query mode; see Modes in the tool description. */
|
|
716
716
|
mode: "hang_stacks" | "function_callers" | "thread_breakdown" | "leak_stacks";
|
|
717
717
|
/** 0-based index into the hang list */
|
|
718
|
-
hang_index?: number;
|
|
718
|
+
hang_index?: number | null;
|
|
719
719
|
/** Native function name */
|
|
720
720
|
function_name?: string;
|
|
721
721
|
/** Thread filter. thread_breakdown: case-insensitive substring match. function_callers: exact raw thread name (e.g. ".blueskyweb.app"), or "main" for the UI thread; omit to search ALL threads (each result is tagged with its thread). Run thread_breakdown first to see the exact raw names. */
|
|
@@ -970,7 +970,7 @@ export interface ArgentToolArgs {
|
|
|
970
970
|
/** Device id from list-devices (iOS simulator UDID or Android serial), the same id used with debugger-connect. */
|
|
971
971
|
device_id: string;
|
|
972
972
|
/** Page index (0-based) or "latest" for the most recent page. Each page contains up to 50 entries. */
|
|
973
|
-
pageIndex?: number | "latest";
|
|
973
|
+
pageIndex?: number | "latest" | null;
|
|
974
974
|
};
|
|
975
975
|
"view-network-request-details": {
|
|
976
976
|
/** Metro port. Omit it to use this device's port (8081 by default). Ignored for Chromium, whose CDP port is in device_id. */
|
package/dist/tool-server.cjs
CHANGED
|
@@ -101440,7 +101440,7 @@ function isCi(env = process.env) {
|
|
|
101440
101440
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
101441
101441
|
function readCliVersion() {
|
|
101442
101442
|
if (true) {
|
|
101443
|
-
return "0.34.1-next.
|
|
101443
|
+
return "0.34.1-next.32";
|
|
101444
101444
|
}
|
|
101445
101445
|
return "0.0.0";
|
|
101446
101446
|
}
|
|
@@ -161880,7 +161880,9 @@ var zodSchema38 = external_exports.object({
|
|
|
161880
161880
|
device_id: external_exports.string().describe(
|
|
161881
161881
|
"Device id from list-devices (iOS simulator UDID or Android serial), the same id used with debugger-connect."
|
|
161882
161882
|
),
|
|
161883
|
-
|
|
161883
|
+
// `.default` covers only an omitted param, and `z.coerce.number()` reads null as 0, so
|
|
161884
|
+
// null would return the oldest page. Agents send null for "not set": read it as "latest".
|
|
161885
|
+
pageIndex: external_exports.union([external_exports.coerce.number().int().nonnegative(), external_exports.literal("latest")]).nullable().default("latest").transform((value) => value ?? "latest").describe(
|
|
161884
161886
|
'Page index (0-based) or "latest" for the most recent page. Each page contains up to 50 entries.'
|
|
161885
161887
|
)
|
|
161886
161888
|
});
|
|
@@ -176401,7 +176403,8 @@ var zodSchema60 = external_exports.object({
|
|
|
176401
176403
|
mode: external_exports.enum(["by_component", "by_time_range", "by_index", "cascade_tree", "render_counts"]).describe("Query mode; see Modes in the tool description."),
|
|
176402
176404
|
component_name: external_exports.string().optional().describe("Component name; optional for render_counts, which it narrows to one component"),
|
|
176403
176405
|
time_range_ms: timeRangeSchema.optional().describe("Time range in ms since profiling started, the clock this tool prints"),
|
|
176404
|
-
|
|
176406
|
+
// Without `.nullable()`, `z.coerce.number()` reads null as commit 0.
|
|
176407
|
+
commit_index: external_exports.coerce.number().int().nullable().transform((value) => value ?? void 0).optional().describe("Commit index"),
|
|
176405
176408
|
top_n: external_exports.coerce.number().int().positive().optional().describe(
|
|
176406
176409
|
"Max results to return. Defaults to 20 for by_component / by_time_range, which count commits, and render_counts, which counts components. by_index counts individual fibers and returns all of them unless this is set; a small cap there can show less than the analyze report it is meant to expand on."
|
|
176407
176410
|
)
|
|
@@ -177212,7 +177215,8 @@ var zodSchema62 = external_exports.object({
|
|
|
177212
177215
|
"Target device id from `list-devices` (iOS UDID<flag:macos-apps>, Mac app id</flag:macos-apps> or Android serial)."
|
|
177213
177216
|
),
|
|
177214
177217
|
mode: external_exports.enum(["hang_stacks", "function_callers", "thread_breakdown", "leak_stacks"]).describe("Query mode; see Modes in the tool description."),
|
|
177215
|
-
|
|
177218
|
+
// Without `.nullable()`, `z.coerce.number()` reads null as hang 0.
|
|
177219
|
+
hang_index: external_exports.coerce.number().int().nullable().transform((value) => value ?? void 0).optional().describe("0-based index into the hang list"),
|
|
177216
177220
|
function_name: external_exports.string().optional().describe("Native function name"),
|
|
177217
177221
|
thread: external_exports.string().optional().describe(
|
|
177218
177222
|
'Thread filter. thread_breakdown: case-insensitive substring match. function_callers: exact raw thread name (e.g. ".blueskyweb.app"), or "main" for the UI thread; omit to search ALL threads (each result is tagged with its thread). Run thread_breakdown first to see the exact raw names.'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.34.1-next.
|
|
3
|
+
"version": "0.34.1-next.32",
|
|
4
4
|
"mcpName": "io.github.software-mansion/argent",
|
|
5
5
|
"description": "MCP server for iOS Simulator, Android Emulator, Chromium app and Mac app control",
|
|
6
6
|
"license": "Apache-2.0",
|