@swmansion/argent 0.34.1-next.93 → 0.34.1-next.95
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 +23088 -15868
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/installer.mjs +46 -1
- package/dist/mcp-server.mjs +219 -4
- package/dist/tool-server.cjs +53 -23
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -44,6 +44,7 @@ Commands:
|
|
|
44
44
|
update ${installerHelpEntry("update")}
|
|
45
45
|
uninstall ${installerHelpEntry("uninstall")}
|
|
46
46
|
remove ${installerHelpEntry("remove")}
|
|
47
|
+
doctor Check the install, editor MCP entries, skills and device toolchains
|
|
47
48
|
tools List tools exposed by the tool-server
|
|
48
49
|
run Invoke a tool by name (use \`argent run <tool> --help\` for flags)
|
|
49
50
|
e2e Run an e2e test by name or YAML path (use \`argent e2e --help\` for options)
|
|
@@ -117,6 +118,8 @@ async function main() {
|
|
|
117
118
|
case "uninstall":
|
|
118
119
|
case "remove":
|
|
119
120
|
return (await loadInstaller()).uninstall(rest);
|
|
121
|
+
case "doctor":
|
|
122
|
+
return (await loadCli()).doctor(rest, { paths: BUNDLED_RUNTIME_PATHS });
|
|
120
123
|
case "tools":
|
|
121
124
|
return (await loadCli()).tools(rest, { paths: BUNDLED_RUNTIME_PATHS });
|
|
122
125
|
case "run":
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EACL,sB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,CAAC;QACzC,KAAK,WAAW;YACd,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,KAAK,WAAW;YACd,OAAO,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC3C,KAAK,WAAW,CAAC;QACjB,KAAK,IAAI;YACP,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,SAAS,CAAC,CAAC;YAChD,OAAO;QACT,KAAK,QAAQ,CAAC;QACd,KAAK,IAAI,CAAC;QACV;YACE,SAAS,EAAE,CAAC;YACZ,IAAI,OAAO,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;gBACxD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClB,CAAC;IACL,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/dist/installer.mjs
CHANGED
|
@@ -16998,7 +16998,7 @@ function isCi(env = process.env) {
|
|
|
16998
16998
|
var SESSION_ID = randomUUID4();
|
|
16999
16999
|
function readCliVersion() {
|
|
17000
17000
|
if (true) {
|
|
17001
|
-
return "0.34.1-next.
|
|
17001
|
+
return "0.34.1-next.94";
|
|
17002
17002
|
}
|
|
17003
17003
|
return "0.0.0";
|
|
17004
17004
|
}
|
|
@@ -20746,6 +20746,34 @@ function readJsonc(filePath) {
|
|
|
20746
20746
|
const parsed = parse3(raw, [], { allowTrailingComma: true });
|
|
20747
20747
|
return parsed ?? {};
|
|
20748
20748
|
}
|
|
20749
|
+
function tomlSyntaxErrorLine(raw) {
|
|
20750
|
+
try {
|
|
20751
|
+
parse(raw);
|
|
20752
|
+
return null;
|
|
20753
|
+
} catch (err) {
|
|
20754
|
+
return err.line ?? 1;
|
|
20755
|
+
}
|
|
20756
|
+
}
|
|
20757
|
+
function yamlSyntaxErrorLine(raw) {
|
|
20758
|
+
const first = (0, import_yaml.parseDocument)(raw, { uniqueKeys: false }).errors[0];
|
|
20759
|
+
return first ? first.linePos?.[0].line ?? 1 : null;
|
|
20760
|
+
}
|
|
20761
|
+
function findConfigSyntaxErrorLine(filePath, jsonOptions) {
|
|
20762
|
+
let raw;
|
|
20763
|
+
try {
|
|
20764
|
+
raw = fs17.readFileSync(filePath, "utf8");
|
|
20765
|
+
} catch {
|
|
20766
|
+
return null;
|
|
20767
|
+
}
|
|
20768
|
+
if (raw.charCodeAt(0) === 65279) raw = raw.slice(1);
|
|
20769
|
+
if (raw.trim() === "") return null;
|
|
20770
|
+
if (filePath.endsWith(".toml")) return tomlSyntaxErrorLine(raw);
|
|
20771
|
+
if (/\.ya?ml$/.test(filePath)) return yamlSyntaxErrorLine(raw);
|
|
20772
|
+
const errors = [];
|
|
20773
|
+
parse3(raw, errors, jsonOptions);
|
|
20774
|
+
const first = errors[0];
|
|
20775
|
+
return first ? raw.slice(0, first.offset).split("\n").length : null;
|
|
20776
|
+
}
|
|
20749
20777
|
function editJsoncFile(filePath, jsonPath, value) {
|
|
20750
20778
|
const { text: initial, hadBom, wasEmpty } = readJsoncFileRaw(filePath);
|
|
20751
20779
|
let text2 = setJsoncIn(initial, jsonPath, value);
|
|
@@ -25655,13 +25683,30 @@ async function uninstall(args) {
|
|
|
25655
25683
|
}
|
|
25656
25684
|
}
|
|
25657
25685
|
export {
|
|
25686
|
+
ALL_ADAPTERS,
|
|
25658
25687
|
MCP_BINARY_NAME,
|
|
25659
25688
|
MCP_SERVER_KEY,
|
|
25660
25689
|
PACKAGE_NAME,
|
|
25690
|
+
RULES_DIR,
|
|
25691
|
+
detectAdapters,
|
|
25692
|
+
detectGlobalPackageManager,
|
|
25693
|
+
detectProjectPackageManager,
|
|
25694
|
+
findConfigSyntaxErrorLine,
|
|
25695
|
+
findConfiguredAdapterScopes,
|
|
25696
|
+
formatShellCommand,
|
|
25661
25697
|
getGloballyInstalledVersion,
|
|
25662
25698
|
getInstalledVersion,
|
|
25699
|
+
getManagedContentTargets,
|
|
25700
|
+
globalInstallCommand,
|
|
25663
25701
|
healCliRecord,
|
|
25664
25702
|
init2 as init,
|
|
25703
|
+
isGloballyInstalled,
|
|
25704
|
+
isPinnedGlobalEntry,
|
|
25705
|
+
listBundledSkills,
|
|
25706
|
+
probeLocalInstall,
|
|
25707
|
+
projectInstallCommand,
|
|
25708
|
+
resolveInstallMode,
|
|
25709
|
+
resolveProjectRoot2 as resolveProjectRoot,
|
|
25665
25710
|
uninstall,
|
|
25666
25711
|
update
|
|
25667
25712
|
};
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -37080,6 +37080,220 @@ ${STOPPED_SIMULATORS_HEADER}
|
|
|
37080
37080
|
${stopped.join("\n")}`;
|
|
37081
37081
|
}
|
|
37082
37082
|
|
|
37083
|
+
// ../argent-mcp/src/native-network-logs-text.ts
|
|
37084
|
+
var KNOWN_TOP_KEYS = /* @__PURE__ */ new Set([
|
|
37085
|
+
"status",
|
|
37086
|
+
"header",
|
|
37087
|
+
"armed",
|
|
37088
|
+
"started",
|
|
37089
|
+
"stopped",
|
|
37090
|
+
"capture",
|
|
37091
|
+
"captureDetail",
|
|
37092
|
+
"count",
|
|
37093
|
+
"total",
|
|
37094
|
+
"requests"
|
|
37095
|
+
]);
|
|
37096
|
+
var KNOWN_REQUEST_KEYS = /* @__PURE__ */ new Set([
|
|
37097
|
+
"id",
|
|
37098
|
+
"method",
|
|
37099
|
+
"url",
|
|
37100
|
+
"state",
|
|
37101
|
+
"status",
|
|
37102
|
+
"mimeType",
|
|
37103
|
+
"durationMs",
|
|
37104
|
+
"errorText",
|
|
37105
|
+
"rnRequestId"
|
|
37106
|
+
]);
|
|
37107
|
+
function isRecord5(value) {
|
|
37108
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
37109
|
+
}
|
|
37110
|
+
function isRequestLine(value) {
|
|
37111
|
+
return isRecord5(value) && typeof value.id === "string" && typeof value.method === "string" && typeof value.url === "string" && typeof value.state === "string";
|
|
37112
|
+
}
|
|
37113
|
+
function quoteIfNeeded2(value) {
|
|
37114
|
+
return value === "" || /[\s"\\]/.test(value) ? JSON.stringify(value) : value;
|
|
37115
|
+
}
|
|
37116
|
+
function extraFields(record2, known) {
|
|
37117
|
+
const parts = [];
|
|
37118
|
+
for (const [key, value] of Object.entries(record2)) {
|
|
37119
|
+
if (known.has(key) || value === void 0 || value === null) continue;
|
|
37120
|
+
if (value === true) parts.push(key);
|
|
37121
|
+
else if (typeof value === "string" || typeof value === "number") {
|
|
37122
|
+
parts.push(`${key}=${quoteIfNeeded2(String(value))}`);
|
|
37123
|
+
} else {
|
|
37124
|
+
parts.push(`${key}=${JSON.stringify(value)}`);
|
|
37125
|
+
}
|
|
37126
|
+
}
|
|
37127
|
+
return parts;
|
|
37128
|
+
}
|
|
37129
|
+
function formatRequestLine(req) {
|
|
37130
|
+
const id = req.id;
|
|
37131
|
+
const method = req.method;
|
|
37132
|
+
const url = req.url;
|
|
37133
|
+
const state = req.state;
|
|
37134
|
+
const status = typeof req.status === "number" ? req.status : void 0;
|
|
37135
|
+
const mimeType = typeof req.mimeType === "string" && req.mimeType ? req.mimeType : void 0;
|
|
37136
|
+
const durationMs = typeof req.durationMs === "number" ? req.durationMs : void 0;
|
|
37137
|
+
const errorText = typeof req.errorText === "string" && req.errorText ? req.errorText : void 0;
|
|
37138
|
+
const rnRequestId = typeof req.rnRequestId === "number" ? req.rnRequestId : void 0;
|
|
37139
|
+
let outcome;
|
|
37140
|
+
if (state === "failed") {
|
|
37141
|
+
outcome = [
|
|
37142
|
+
"failed",
|
|
37143
|
+
status !== void 0 ? String(status) : "",
|
|
37144
|
+
errorText ? JSON.stringify(errorText) : ""
|
|
37145
|
+
].filter(Boolean).join(" ");
|
|
37146
|
+
} else if (status !== void 0) {
|
|
37147
|
+
outcome = state === "complete" ? String(status) : `${status} (${state})`;
|
|
37148
|
+
} else {
|
|
37149
|
+
outcome = state;
|
|
37150
|
+
}
|
|
37151
|
+
const parts = [
|
|
37152
|
+
`{id: ${id}}`,
|
|
37153
|
+
JSON.stringify(`${method} ${url}`),
|
|
37154
|
+
outcome,
|
|
37155
|
+
mimeType ?? "",
|
|
37156
|
+
durationMs !== void 0 ? `${durationMs}ms` : "",
|
|
37157
|
+
rnRequestId !== void 0 ? `rnRequestId=${rnRequestId}` : "",
|
|
37158
|
+
...extraFields(req, KNOWN_REQUEST_KEYS)
|
|
37159
|
+
].filter(Boolean);
|
|
37160
|
+
return parts.join(" ");
|
|
37161
|
+
}
|
|
37162
|
+
function nativeNetworkLogsText(result) {
|
|
37163
|
+
if (!isRecord5(result) || result.status !== "ok" || typeof result.header !== "string" || typeof result.armed !== "boolean" || typeof result.count !== "number" || typeof result.total !== "number" || !Array.isArray(result.requests) || !result.requests.every(isRequestLine)) {
|
|
37164
|
+
return void 0;
|
|
37165
|
+
}
|
|
37166
|
+
const lines = [result.header];
|
|
37167
|
+
if (typeof result.capture === "string" && !result.header.includes(`capture ${result.capture}`)) {
|
|
37168
|
+
const detail = typeof result.captureDetail === "string" && result.captureDetail ? ` (${result.captureDetail})` : "";
|
|
37169
|
+
lines.push(`Capture: ${result.capture}${detail}`);
|
|
37170
|
+
}
|
|
37171
|
+
if (result.count < result.total) {
|
|
37172
|
+
lines.push(
|
|
37173
|
+
`Showing ${result.count === 0 ? "0" : `last ${result.count}`} of ${result.total} requests.`
|
|
37174
|
+
);
|
|
37175
|
+
}
|
|
37176
|
+
const extras = extraFields(result, KNOWN_TOP_KEYS);
|
|
37177
|
+
if (extras.length > 0) lines.push(extras.join(" "));
|
|
37178
|
+
for (const req of result.requests) {
|
|
37179
|
+
lines.push(formatRequestLine(req));
|
|
37180
|
+
}
|
|
37181
|
+
return lines.join("\n");
|
|
37182
|
+
}
|
|
37183
|
+
|
|
37184
|
+
// ../argent-mcp/src/debugger-log-registry-text.ts
|
|
37185
|
+
var KNOWN_TOP_KEYS2 = /* @__PURE__ */ new Set([
|
|
37186
|
+
"status",
|
|
37187
|
+
"file",
|
|
37188
|
+
"totalEntries",
|
|
37189
|
+
"byLevel",
|
|
37190
|
+
"fileSizeBytes",
|
|
37191
|
+
"clusters",
|
|
37192
|
+
"entries",
|
|
37193
|
+
"deviceName",
|
|
37194
|
+
"appName",
|
|
37195
|
+
"logicalDeviceId",
|
|
37196
|
+
"note"
|
|
37197
|
+
]);
|
|
37198
|
+
function isRecord6(value) {
|
|
37199
|
+
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
37200
|
+
}
|
|
37201
|
+
function isCluster(value) {
|
|
37202
|
+
return isRecord6(value) && typeof value.message === "string" && typeof value.count === "number" && typeof value.level === "string" && typeof value.firstId === "number" && typeof value.lastId === "number";
|
|
37203
|
+
}
|
|
37204
|
+
function isRecentEntry(value) {
|
|
37205
|
+
return isRecord6(value) && typeof value.id === "number" && typeof value.timestamp === "string" && typeof value.level === "string" && typeof value.message === "string";
|
|
37206
|
+
}
|
|
37207
|
+
function quoteIfNeeded3(value) {
|
|
37208
|
+
return value === "" || /[\s"\\]/.test(value) ? JSON.stringify(value) : value;
|
|
37209
|
+
}
|
|
37210
|
+
function formatBytes(bytes) {
|
|
37211
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
37212
|
+
const kb = bytes / 1024;
|
|
37213
|
+
if (kb < 1024) return `${kb.toFixed(1)} KB`;
|
|
37214
|
+
const mb = kb / 1024;
|
|
37215
|
+
return `${mb.toFixed(1)} MB`;
|
|
37216
|
+
}
|
|
37217
|
+
function formatMessage(message) {
|
|
37218
|
+
return message.includes("\n") ? message.replace(/\r?\n/g, "\n ") : message;
|
|
37219
|
+
}
|
|
37220
|
+
function extraFields2(record2) {
|
|
37221
|
+
const parts = [];
|
|
37222
|
+
for (const [key, value] of Object.entries(record2)) {
|
|
37223
|
+
if (KNOWN_TOP_KEYS2.has(key) || value === void 0 || value === null) continue;
|
|
37224
|
+
if (value === true) parts.push(key);
|
|
37225
|
+
else if (typeof value === "string" || typeof value === "number") {
|
|
37226
|
+
parts.push(`${key}=${quoteIfNeeded3(String(value))}`);
|
|
37227
|
+
} else {
|
|
37228
|
+
parts.push(`${key}=${JSON.stringify(value)}`);
|
|
37229
|
+
}
|
|
37230
|
+
}
|
|
37231
|
+
return parts;
|
|
37232
|
+
}
|
|
37233
|
+
function formatClusterLine(cluster) {
|
|
37234
|
+
const count = cluster.count;
|
|
37235
|
+
const level = cluster.level;
|
|
37236
|
+
const firstId = cluster.firstId;
|
|
37237
|
+
const lastId = cluster.lastId;
|
|
37238
|
+
const message = cluster.message;
|
|
37239
|
+
const idRange = firstId === lastId ? `#${firstId}` : `#${firstId}..#${lastId}`;
|
|
37240
|
+
const sourceFile = typeof cluster.sourceFile === "string" && cluster.sourceFile ? cluster.sourceFile : void 0;
|
|
37241
|
+
const sourceLine = typeof cluster.sourceLine === "number" ? cluster.sourceLine : void 0;
|
|
37242
|
+
const source = sourceFile ? ` ${sourceFile}${sourceLine !== void 0 ? `:${sourceLine}` : ""}` : "";
|
|
37243
|
+
return `[x${count}] ${level} ${idRange}${source} | ${formatMessage(message)}`;
|
|
37244
|
+
}
|
|
37245
|
+
function formatEntryLine(entry) {
|
|
37246
|
+
const id = entry.id;
|
|
37247
|
+
const timestamp = entry.timestamp;
|
|
37248
|
+
const level = entry.level;
|
|
37249
|
+
const message = entry.message;
|
|
37250
|
+
return `[L:${id}] ${timestamp} ${level} | ${formatMessage(message)}`;
|
|
37251
|
+
}
|
|
37252
|
+
function debuggerLogRegistryText(result) {
|
|
37253
|
+
if (!isRecord6(result) || result.status !== "connected" || typeof result.file !== "string" || typeof result.totalEntries !== "number" || !isRecord6(result.byLevel) || typeof result.fileSizeBytes !== "number" || !Array.isArray(result.clusters) || !result.clusters.every(isCluster) || !Array.isArray(result.entries) || !result.entries.every(isRecentEntry)) {
|
|
37254
|
+
return void 0;
|
|
37255
|
+
}
|
|
37256
|
+
const total = result.totalEntries;
|
|
37257
|
+
const noun = total === 1 ? "entry" : "entries";
|
|
37258
|
+
const levelParts = Object.entries(result.byLevel).filter(([, count]) => typeof count === "number" && count > 0).map(([level, count]) => `${level}=${count}`);
|
|
37259
|
+
const levelsSuffix = levelParts.length > 0 ? ` (${levelParts.join(", ")})` : "";
|
|
37260
|
+
const metaParts = [];
|
|
37261
|
+
if (typeof result.appName === "string" && result.appName) {
|
|
37262
|
+
metaParts.push(`app=${quoteIfNeeded3(result.appName)}`);
|
|
37263
|
+
}
|
|
37264
|
+
if (typeof result.deviceName === "string" && result.deviceName) {
|
|
37265
|
+
metaParts.push(`device=${quoteIfNeeded3(result.deviceName)}`);
|
|
37266
|
+
}
|
|
37267
|
+
if (typeof result.logicalDeviceId === "string" && result.logicalDeviceId) {
|
|
37268
|
+
metaParts.push(`id=${quoteIfNeeded3(result.logicalDeviceId)}`);
|
|
37269
|
+
}
|
|
37270
|
+
const metaSuffix = metaParts.length > 0 ? ` | ${metaParts.join(" ")}` : "";
|
|
37271
|
+
const lines = [
|
|
37272
|
+
`JS console logs (connected): ${total} ${noun}${levelsSuffix}${metaSuffix}`,
|
|
37273
|
+
`File: ${result.file} (${formatBytes(result.fileSizeBytes)})`
|
|
37274
|
+
];
|
|
37275
|
+
if (typeof result.note === "string" && result.note) {
|
|
37276
|
+
lines.push(`Note: ${result.note}`);
|
|
37277
|
+
}
|
|
37278
|
+
const extras = extraFields2(result);
|
|
37279
|
+
if (extras.length > 0) lines.push(extras.join(" "));
|
|
37280
|
+
if (result.clusters.length > 0) {
|
|
37281
|
+
lines.push("", `Clusters (${result.clusters.length}):`);
|
|
37282
|
+
for (const cluster of result.clusters) {
|
|
37283
|
+
lines.push(formatClusterLine(cluster));
|
|
37284
|
+
}
|
|
37285
|
+
}
|
|
37286
|
+
if (result.entries.length > 0) {
|
|
37287
|
+
lines.push("", `Recent entries (${result.entries.length}, oldest first):`);
|
|
37288
|
+
for (const entry of result.entries) {
|
|
37289
|
+
lines.push(formatEntryLine(entry));
|
|
37290
|
+
}
|
|
37291
|
+
} else if (total > 0) {
|
|
37292
|
+
lines.push("", "Recent entries: none");
|
|
37293
|
+
}
|
|
37294
|
+
return lines.join("\n");
|
|
37295
|
+
}
|
|
37296
|
+
|
|
37083
37297
|
// ../argent-mcp/src/instructions.ts
|
|
37084
37298
|
var SERVER_INSTRUCTIONS = "Argent \u2014 iOS Simulator, Android Emulator, and Chromium app control for interacting, testing, profiling and debugging mobile and Chromium applications. Use the platform the user named; otherwise prefer a device list-devices shows already running, and do not default to iOS. In a single-platform project, boot that platform. Prefer these tools over raw xcrun or adb commands, which are a fallback. Prefer launch-app or open-url over tapping home-screen icons. If the task may need a saved e2e test, load the argent-create-e2e skill (argent-qa-e2e for acceptance tests) before the first launch or in-app action: recording is not retroactive. Load the matching argent-* skill before React Native build or debug work, profiling, a physical phone, a Mac app or a TV. Interaction tools return the screen after the action: a screenshot plus the accessibility element tree with normalized tap frames. Take coordinates from that tree; call describe only when no fresh tree is available \u2014 never guess coordinates from pixels. A result names an identical earlier tree by its tree id in place of repeating it. If a tap fails twice, stop retrying and call a discovery tool again. Use await-ui-element to wait for the UI instead of polling with screenshots. Do not stop simulator servers when a task finishes: the next task reuses them. Call stop-all-simulator-servers when the user asks to clean up or ends the session, or when a skill tells you to recycle a device's services, always with devices: [...] naming the devices this session used. Never stop a Metro the user started unless they ask. One tool-server is shared by every agent using this argent install, so an unscoped call tears down their devices too \u2014 reserve it for a deliberate machine-wide cleanup. The argent CLI manages the toolkit: argent --help lists its commands.";
|
|
37085
37299
|
|
|
@@ -37473,11 +37687,12 @@ ${shown.text}` }];
|
|
|
37473
37687
|
deviceId: getDeviceIdFromArgs(params.arguments),
|
|
37474
37688
|
signal: callSignal
|
|
37475
37689
|
};
|
|
37476
|
-
const
|
|
37690
|
+
const toolId = canonicalToolId(params.name);
|
|
37691
|
+
const compactText = toolId === "list-devices" ? listDevicesText(result) : toolId === "native-network-logs" ? nativeNetworkLogsText(result) : toolId === "debugger-log-registry" ? debuggerLogRegistryText(result) : void 0;
|
|
37477
37692
|
let content;
|
|
37478
|
-
if (
|
|
37479
|
-
content = [{ type: "text", text:
|
|
37480
|
-
} else if (
|
|
37693
|
+
if (compactText !== void 0) {
|
|
37694
|
+
content = [{ type: "text", text: compactText }];
|
|
37695
|
+
} else if (toolId === "e2e-execute" && result && typeof result === "object" && ("e2eTest" in result || "flow" in result) && "steps" in result) {
|
|
37481
37696
|
content = await flowRunToMcpContent(result, ctx);
|
|
37482
37697
|
} else if (params.name === "screenshot-diff" && isScreenshotDiffResult(result)) {
|
|
37483
37698
|
content = await screenshotDiffToMcpContent(result, ctx);
|
package/dist/tool-server.cjs
CHANGED
|
@@ -43177,7 +43177,7 @@ var require_view = __commonJS({
|
|
|
43177
43177
|
var dirname27 = path73.dirname;
|
|
43178
43178
|
var basename22 = path73.basename;
|
|
43179
43179
|
var extname7 = path73.extname;
|
|
43180
|
-
var
|
|
43180
|
+
var join77 = path73.join;
|
|
43181
43181
|
var resolve21 = path73.resolve;
|
|
43182
43182
|
module2.exports = View;
|
|
43183
43183
|
function View(name, options) {
|
|
@@ -43239,12 +43239,12 @@ var require_view = __commonJS({
|
|
|
43239
43239
|
};
|
|
43240
43240
|
View.prototype.resolve = function resolve22(dir, file2) {
|
|
43241
43241
|
var ext = this.ext;
|
|
43242
|
-
var path74 =
|
|
43242
|
+
var path74 = join77(dir, file2);
|
|
43243
43243
|
var stat12 = tryStat(path74);
|
|
43244
43244
|
if (stat12 && stat12.isFile()) {
|
|
43245
43245
|
return path74;
|
|
43246
43246
|
}
|
|
43247
|
-
path74 =
|
|
43247
|
+
path74 = join77(dir, basename22(file2, ext), "index" + ext);
|
|
43248
43248
|
stat12 = tryStat(path74);
|
|
43249
43249
|
if (stat12 && stat12.isFile()) {
|
|
43250
43250
|
return path74;
|
|
@@ -47184,7 +47184,7 @@ var require_send = __commonJS({
|
|
|
47184
47184
|
var Stream2 = require("stream");
|
|
47185
47185
|
var util = require("util");
|
|
47186
47186
|
var extname7 = path73.extname;
|
|
47187
|
-
var
|
|
47187
|
+
var join77 = path73.join;
|
|
47188
47188
|
var normalize = path73.normalize;
|
|
47189
47189
|
var resolve21 = path73.resolve;
|
|
47190
47190
|
var sep11 = path73.sep;
|
|
@@ -47356,7 +47356,7 @@ var require_send = __commonJS({
|
|
|
47356
47356
|
return res;
|
|
47357
47357
|
}
|
|
47358
47358
|
parts2 = path74.split(sep11);
|
|
47359
|
-
path74 = normalize(
|
|
47359
|
+
path74 = normalize(join77(root, path74));
|
|
47360
47360
|
} else {
|
|
47361
47361
|
if (UP_PATH_REGEXP.test(path74)) {
|
|
47362
47362
|
debug('malicious path "%s"', path74);
|
|
@@ -47489,7 +47489,7 @@ var require_send = __commonJS({
|
|
|
47489
47489
|
if (err) return self2.onStatError(err);
|
|
47490
47490
|
return self2.error(404);
|
|
47491
47491
|
}
|
|
47492
|
-
var p =
|
|
47492
|
+
var p = join77(path74, self2._index[i]);
|
|
47493
47493
|
debug('stat "%s"', p);
|
|
47494
47494
|
fs88.stat(p, function(err2, stat12) {
|
|
47495
47495
|
if (err2) return next(err2);
|
|
@@ -72948,7 +72948,7 @@ function isCi(env = process.env) {
|
|
|
72948
72948
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
72949
72949
|
function readCliVersion() {
|
|
72950
72950
|
if (true) {
|
|
72951
|
-
return "0.34.1-next.
|
|
72951
|
+
return "0.34.1-next.94";
|
|
72952
72952
|
}
|
|
72953
72953
|
return "0.0.0";
|
|
72954
72954
|
}
|
|
@@ -141992,21 +141992,18 @@ function formatDescribeTree(root, opts) {
|
|
|
141992
141992
|
isMacos2 ? "nested" : "flat";
|
|
141993
141993
|
const isVega = opts.source === "vega-automation";
|
|
141994
141994
|
const header = [];
|
|
141995
|
-
header.push(`Source: ${opts.source}`);
|
|
141996
|
-
header.push(`Mode: ${mode}`);
|
|
141997
|
-
header.push(
|
|
141998
|
-
isMacos2 ? "Coordinates are normalized [0,1] fractions of the app window, title bar included, grown to hold sheets, alerts and menus past it (x, y, width, height), not pixels." : "Coordinates are normalized [0,1] fractions of the screen (x, y, width, height), not pixels."
|
|
141999
|
-
);
|
|
141995
|
+
header.push(`Source: ${opts.source} | Mode: ${mode}`);
|
|
142000
141996
|
if (isVega) {
|
|
142001
141997
|
header.push(
|
|
142002
|
-
'
|
|
141998
|
+
'Coordinates: normalized [0,1] screen (x,y,w,h), not pixels. Vega is remote-driven (no tap): use frames to plan D-pad moves via `tv-remote` from `[focused]` (or `[selected]` when none reports `[focused]`), counting rows/columns (e.g. ["down","right","right","select"]).'
|
|
142003
141999
|
);
|
|
142004
|
-
} else {
|
|
142000
|
+
} else if (isMacos2) {
|
|
142005
142001
|
header.push(
|
|
142006
|
-
|
|
142002
|
+
"Coordinates: normalized [0,1] app window (title bar + overhanging sheets/alerts/menus; x,y,w,h), not pixels. Mouse input only: pass to gesture-tap / gesture-drag / gesture-scroll; tap centre = (x+w/2, y+h/2). Menu bar not in tree: use menu-bar."
|
|
142007
142003
|
);
|
|
142004
|
+
} else {
|
|
142008
142005
|
header.push(
|
|
142009
|
-
"
|
|
142006
|
+
"Coordinates: normalized [0,1] screen (x,y,w,h), not pixels; pass to gesture-tap / gesture-swipe / gesture-pinch; tap centre = (x+w/2, y+h/2)."
|
|
142010
142007
|
);
|
|
142011
142008
|
}
|
|
142012
142009
|
header.push("");
|
|
@@ -148246,8 +148243,8 @@ var import_util14 = require("util");
|
|
|
148246
148243
|
var DEFAULT_EXEC_TIMEOUT_MS = 6e4;
|
|
148247
148244
|
var DEFAULT_EXEC_MAX_BUFFER = 256 * 1024 * 1024;
|
|
148248
148245
|
async function execFileAsyncWithTimeout(file2, args, options = {}) {
|
|
148249
|
-
const
|
|
148250
|
-
const { stdout, stderr } = await
|
|
148246
|
+
const execFileAsync48 = (0, import_util14.promisify)(import_child_process2.execFile);
|
|
148247
|
+
const { stdout, stderr } = await execFileAsync48(file2, args, {
|
|
148251
148248
|
encoding: "utf-8",
|
|
148252
148249
|
...options,
|
|
148253
148250
|
// Applied after ...options so a caller cannot weaken the guards; maxBuffer
|
|
@@ -172954,6 +172951,33 @@ function createLensTools(registry2) {
|
|
|
172954
172951
|
return [createProposeVariantTool(registry2), awaitUserSelectionTool];
|
|
172955
172952
|
}
|
|
172956
172953
|
|
|
172954
|
+
// ../tool-server/src/utils/host-deps-report.ts
|
|
172955
|
+
var import_node_child_process57 = require("node:child_process");
|
|
172956
|
+
var import_node_fs24 = require("node:fs");
|
|
172957
|
+
var import_node_path33 = require("node:path");
|
|
172958
|
+
var import_node_util43 = require("node:util");
|
|
172959
|
+
init_android_binary();
|
|
172960
|
+
var execFileAsync47 = (0, import_node_util43.promisify)(import_node_child_process57.execFile);
|
|
172961
|
+
async function activeDeveloperDir2() {
|
|
172962
|
+
try {
|
|
172963
|
+
const { stdout } = await execFileAsync47("xcode-select", ["-p"], { timeout: 5e3 });
|
|
172964
|
+
return stdout.trim() || null;
|
|
172965
|
+
} catch {
|
|
172966
|
+
return null;
|
|
172967
|
+
}
|
|
172968
|
+
}
|
|
172969
|
+
async function probeXcode() {
|
|
172970
|
+
if (process.platform !== "darwin") return null;
|
|
172971
|
+
const developerDir2 = await activeDeveloperDir2();
|
|
172972
|
+
const simctl = developerDir2 !== null && (0, import_node_fs24.existsSync)((0, import_node_path33.join)(developerDir2, "usr", "bin", "simctl"));
|
|
172973
|
+
const firstLaunch = simctl && xcodeFirstLaunchPending("simctl") ? xcodeInstallInstruction() : null;
|
|
172974
|
+
return { developerDir: developerDir2, simctl, firstLaunch };
|
|
172975
|
+
}
|
|
172976
|
+
async function collectHostDepsReport() {
|
|
172977
|
+
const [adb, xcode] = await Promise.all([resolveAndroidBinary("adb"), probeXcode()]);
|
|
172978
|
+
return { adb, xcode };
|
|
172979
|
+
}
|
|
172980
|
+
|
|
172957
172981
|
// ../tool-server/src/utils/probe-argent-tool-server.ts
|
|
172958
172982
|
var http6 = __toESM(require("node:http"));
|
|
172959
172983
|
function probeArgentToolServer(host, port, timeoutMs = 500) {
|
|
@@ -172976,7 +173000,7 @@ function probeArgentToolServer(host, port, timeoutMs = 500) {
|
|
|
172976
173000
|
}
|
|
172977
173001
|
|
|
172978
173002
|
// ../tool-server/src/utils/preview-window.ts
|
|
172979
|
-
var
|
|
173003
|
+
var import_node_child_process58 = require("node:child_process");
|
|
172980
173004
|
var fs87 = __toESM(require("node:fs"));
|
|
172981
173005
|
var os30 = __toESM(require("node:os"));
|
|
172982
173006
|
var path71 = __toESM(require("node:path"));
|
|
@@ -173008,10 +173032,10 @@ function ensureLensAppBundle(electronBin) {
|
|
|
173008
173032
|
fs87.copyFileSync(path71.join(realContents, "Info.plist"), plist);
|
|
173009
173033
|
const setPlist = (entry, value) => {
|
|
173010
173034
|
try {
|
|
173011
|
-
(0,
|
|
173035
|
+
(0, import_node_child_process58.execFileSync)("/usr/libexec/PlistBuddy", ["-c", `Set :${entry} ${value}`, plist]);
|
|
173012
173036
|
} catch {
|
|
173013
173037
|
try {
|
|
173014
|
-
(0,
|
|
173038
|
+
(0, import_node_child_process58.execFileSync)("/usr/libexec/PlistBuddy", ["-c", `Add :${entry} string ${value}`, plist]);
|
|
173015
173039
|
} catch {
|
|
173016
173040
|
}
|
|
173017
173041
|
}
|
|
@@ -173070,7 +173094,7 @@ function createPreviewWindowManager(opts = {}) {
|
|
|
173070
173094
|
const wrapperBin = ensureLensAppBundle(electronBin);
|
|
173071
173095
|
const launchBin = wrapperBin ?? electronBin;
|
|
173072
173096
|
const launchArgs = wrapperBin ? ["--no-sandbox", mainScript] : [mainScript];
|
|
173073
|
-
const next = (0,
|
|
173097
|
+
const next = (0, import_node_child_process58.spawn)(launchBin, launchArgs, {
|
|
173074
173098
|
// Strips ELECTRON_RUN_AS_NODE, which an Electron-based MCP host leaves in
|
|
173075
173099
|
// our env, so the child boots as a GUI app instead of bare Node.
|
|
173076
173100
|
env: electronGuiChildEnv({ ARGENT_PREVIEW_URL: url2 }),
|
|
@@ -173506,7 +173530,7 @@ function getAvailableTools() {
|
|
|
173506
173530
|
});
|
|
173507
173531
|
}
|
|
173508
173532
|
function usageText() {
|
|
173509
|
-
return "Usage: tool-server <command>\n\nCommands:\n start Start the tool server\n -t, --get-available-tools Print available tools as JSON and exit\n -h, --help Show this menu\n";
|
|
173533
|
+
return "Usage: tool-server <command>\n\nCommands:\n start Start the tool server\n -t, --get-available-tools Print available tools as JSON and exit\n --check-deps Print host toolchain status as JSON and exit\n -h, --help Show this menu\n";
|
|
173510
173534
|
}
|
|
173511
173535
|
function writeAndExit(stream, chunk, code) {
|
|
173512
173536
|
stream.write(chunk, () => process.exit(code));
|
|
@@ -173517,6 +173541,12 @@ if (require.main === module) {
|
|
|
173517
173541
|
start();
|
|
173518
173542
|
} else if (cmd === "-t" || cmd === "--get-available-tools") {
|
|
173519
173543
|
writeAndExit(process.stdout, JSON.stringify(getAvailableTools(), null, 2) + "\n", 0);
|
|
173544
|
+
} else if (cmd === "--check-deps") {
|
|
173545
|
+
void collectHostDepsReport().then(
|
|
173546
|
+
(report) => writeAndExit(process.stdout, JSON.stringify(report) + "\n", 0),
|
|
173547
|
+
(err) => writeAndExit(process.stderr, `${String(err)}
|
|
173548
|
+
`, 1)
|
|
173549
|
+
);
|
|
173520
173550
|
} else if (cmd === "-h" || cmd === "--help") {
|
|
173521
173551
|
writeAndExit(process.stdout, usageText(), 0);
|
|
173522
173552
|
} else {
|
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.95",
|
|
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",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"vitest": "^5.0.5",
|
|
99
99
|
"yaml": "^2.9.1"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "8d1ae61f2e6fdf7191b6159bd089520aa8ab38e0"
|
|
102
102
|
}
|