@swmansion/argent 0.35.1-next.62 → 0.35.1-next.63
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 +26 -13
- package/dist/cli.js +1 -1
- package/dist/fatal-handlers.d.ts +1 -0
- package/dist/fatal-handlers.js +2 -2
- package/dist/fatal-handlers.js.map +1 -1
- package/dist/installer-help.js +3 -2
- package/dist/installer-help.js.map +1 -1
- package/dist/installer.mjs +2 -2
- package/dist/mcp-server.mjs +1 -1
- package/dist/tool-server.cjs +52 -48
- package/package.json +2 -2
package/dist/cli-cmds.mjs
CHANGED
|
@@ -38696,7 +38696,7 @@ function isCi(env = process.env) {
|
|
|
38696
38696
|
var SESSION_ID2 = randomUUID5();
|
|
38697
38697
|
function readCliVersion() {
|
|
38698
38698
|
if (true) {
|
|
38699
|
-
return "0.35.1-next.
|
|
38699
|
+
return "0.35.1-next.63";
|
|
38700
38700
|
}
|
|
38701
38701
|
return "0.0.0";
|
|
38702
38702
|
}
|
|
@@ -43287,6 +43287,11 @@ import * as path24 from "node:path";
|
|
|
43287
43287
|
|
|
43288
43288
|
// ../argent-cli/src/secrets.ts
|
|
43289
43289
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
43290
|
+
|
|
43291
|
+
// ../argent-cli/src/argent-home-help.ts
|
|
43292
|
+
var ARGENT_HOME_LEGEND = "<argent-home> is ~/.argent, or ARGENT_HOME_DIR when set.";
|
|
43293
|
+
|
|
43294
|
+
// ../argent-cli/src/secrets.ts
|
|
43290
43295
|
var LIST_OPTIONS2 = {
|
|
43291
43296
|
"json": { kind: "boolean" },
|
|
43292
43297
|
"secrets-file": { kind: "value" }
|
|
@@ -43310,7 +43315,8 @@ For local calls, lookup uses the working directory and environment of the
|
|
|
43310
43315
|
1. ${SECRET_ENV_PREFIX}<NAME> in the environment
|
|
43311
43316
|
2. <project>/.argent/secrets.env every key (gitignore this file)
|
|
43312
43317
|
3. <project>/.env.local, then <project>/.env keys starting with ${SECRET_ENV_PREFIX}
|
|
43313
|
-
4.
|
|
43318
|
+
4. <argent-home>/secrets.env every key, any project
|
|
43319
|
+
${ARGENT_HOME_LEGEND}
|
|
43314
43320
|
|
|
43315
43321
|
Run this command from the project to check secret setup. File changes apply to
|
|
43316
43322
|
the next call. Restart the MCP server to pick up environment changes.
|
|
@@ -43323,8 +43329,8 @@ A linked tool-server uses its own sources by default. With
|
|
|
43323
43329
|
\`argent enable forward-secrets\`, client values take precedence.
|
|
43324
43330
|
|
|
43325
43331
|
Examples:
|
|
43326
|
-
echo 'APP_PASSWORD=\u2026' >>
|
|
43327
|
-
argent secrets
|
|
43332
|
+
echo 'APP_PASSWORD=\u2026' >> "\${ARGENT_HOME_DIR:-$HOME/.argent}/secrets.env" # available in every project
|
|
43333
|
+
argent secrets # check it is picked up`);
|
|
43328
43334
|
}
|
|
43329
43335
|
async function cmdList(argv, subcommandPending = false) {
|
|
43330
43336
|
if (argv.includes("--help") || argv.includes("-h")) return printUsage();
|
|
@@ -43426,7 +43432,9 @@ import * as path23 from "node:path";
|
|
|
43426
43432
|
function degenerateProjectScopeWarning(scope, file2) {
|
|
43427
43433
|
if (scope !== "project") return null;
|
|
43428
43434
|
if (isHomeDir(path23.dirname(path23.dirname(file2)))) {
|
|
43429
|
-
|
|
43435
|
+
const name = path23.basename(file2, ".json");
|
|
43436
|
+
const writes = canonicalPath(path23.dirname(file2)) === canonicalPath(argentHomeDir()) ? `the GLOBAL ${name} file (${file2})` : `${file2}, the global ${name} file of the default Argent home (the global one of ARGENT_HOME_DIR is ${path23.join(argentHomeDir(), path23.basename(file2))})`;
|
|
43437
|
+
return `WARNING: no project found between ${process.cwd()} and your home directory \u2014 "project" scope resolved to the home directory, so this writes ${writes}.`;
|
|
43430
43438
|
}
|
|
43431
43439
|
if (findProjectRoot(process.cwd()) === null) {
|
|
43432
43440
|
return `WARNING: no project markers (.argent, .git, package.json) found above ${process.cwd()} \u2014 treating it as the project root and creating ${file2}.`;
|
|
@@ -43475,8 +43483,9 @@ ${summary}
|
|
|
43475
43483
|
${formatAvailableFlags(registry2)}
|
|
43476
43484
|
|
|
43477
43485
|
Storage:
|
|
43478
|
-
|
|
43486
|
+
<argent-home>/flags.json (global, default)
|
|
43479
43487
|
<project-root>/.argent/flags.json (project, with --scope project)
|
|
43488
|
+
${ARGENT_HOME_LEGEND}
|
|
43480
43489
|
|
|
43481
43490
|
Options:
|
|
43482
43491
|
--scope <global|project> Where to write (default: global)
|
|
@@ -43891,8 +43900,9 @@ function printUsage2() {
|
|
|
43891
43900
|
|
|
43892
43901
|
Manage argent configuration. Values are stored at two scopes and merged per the
|
|
43893
43902
|
configuration's policy:
|
|
43894
|
-
|
|
43903
|
+
<argent-home>/config.json (global, default)
|
|
43895
43904
|
<project-root>/.argent/config.json (project, with --scope project)
|
|
43905
|
+
${ARGENT_HOME_LEGEND}
|
|
43896
43906
|
|
|
43897
43907
|
Commands:
|
|
43898
43908
|
list Show all configurations and their values
|
|
@@ -44641,7 +44651,7 @@ import { styleText as styleText2, stripVTControlCharacters } from "node:util";
|
|
|
44641
44651
|
import process$1 from "node:process";
|
|
44642
44652
|
var import_sisteransi2 = __toESM(require_src(), 1);
|
|
44643
44653
|
import { existsSync as existsSync8, lstatSync as lstatSync3, readdirSync as readdirSync3 } from "node:fs";
|
|
44644
|
-
import { dirname as dirname17, join as
|
|
44654
|
+
import { dirname as dirname17, join as join25 } from "node:path";
|
|
44645
44655
|
function isUnicodeSupported() {
|
|
44646
44656
|
if (process$1.platform !== "win32") {
|
|
44647
44657
|
return process$1.env.TERM !== "linux";
|
|
@@ -45177,7 +45187,7 @@ function printLinkHelp() {
|
|
|
45177
45187
|
console.log(`Usage: argent link [<target>] [flags]
|
|
45178
45188
|
|
|
45179
45189
|
Route argent client requests (argent tools / run / mcp) to a remote tool-server
|
|
45180
|
-
instead of auto-spawning a local one. The target is persisted to
|
|
45190
|
+
instead of auto-spawning a local one. The target is persisted to <argent-home>/link.json
|
|
45181
45191
|
and survives shell restarts.
|
|
45182
45192
|
|
|
45183
45193
|
<target> may be:
|
|
@@ -45194,8 +45204,9 @@ For a tunnel, point at its public URL and pass the server's token:
|
|
|
45194
45204
|
|
|
45195
45205
|
Resolution order for the tool-server URL:
|
|
45196
45206
|
1. ARGENT_TOOLS_URL environment variable (highest precedence)
|
|
45197
|
-
2.
|
|
45207
|
+
2. <argent-home>/link.json (this command)
|
|
45198
45208
|
3. Auto-spawn a local tool-server (default)
|
|
45209
|
+
${ARGENT_HOME_LEGEND}
|
|
45199
45210
|
|
|
45200
45211
|
Flags:
|
|
45201
45212
|
--host <h> Remote host or IP to connect to. Prompts interactively if
|
|
@@ -45239,8 +45250,9 @@ Notes:
|
|
|
45239
45250
|
function printUnlinkHelp() {
|
|
45240
45251
|
console.log(`Usage: argent unlink [flags]
|
|
45241
45252
|
|
|
45242
|
-
Remove the persisted remote tool-server link (
|
|
45253
|
+
Remove the persisted remote tool-server link (<argent-home>/link.json) and return
|
|
45243
45254
|
to default local auto-spawn behaviour.
|
|
45255
|
+
${ARGENT_HOME_LEGEND}
|
|
45244
45256
|
|
|
45245
45257
|
Flags:
|
|
45246
45258
|
--yes, -y Skip the confirmation prompt.
|
|
@@ -45592,9 +45604,10 @@ function printUsage3() {
|
|
|
45592
45604
|
argent telemetry enable [--scope global|project] Enable telemetry
|
|
45593
45605
|
argent telemetry disable [--scope global|project] Disable telemetry
|
|
45594
45606
|
|
|
45595
|
-
The default scope is global (
|
|
45607
|
+
The default scope is global (<argent-home>/config.json). \`--scope project\` writes
|
|
45596
45608
|
<project-root>/.argent/config.json instead \u2014 commit it and telemetry stays off
|
|
45597
45609
|
for everyone who clones the repository. \`false\` in either scope wins.
|
|
45610
|
+
${ARGENT_HOME_LEGEND}
|
|
45598
45611
|
`);
|
|
45599
45612
|
}
|
|
45600
45613
|
function scopeLabel2(scope) {
|
|
@@ -46623,7 +46636,7 @@ this build does not know pass through to the file untouched, so publishing
|
|
|
46623
46636
|
through an older install than the one reading loses nothing.
|
|
46624
46637
|
|
|
46625
46638
|
To spawn these commands without relying on PATH \u2014 which an editor extension
|
|
46626
|
-
host frequently cannot \u2014 read
|
|
46639
|
+
host frequently cannot \u2014 read ${path30.join(argentHomeDir(), "cli.json")}, written by \`argent init\`
|
|
46627
46640
|
and \`argent update\` and healed best-effort on every \`argent mcp\` start:
|
|
46628
46641
|
|
|
46629
46642
|
{ "node": "/abs/path/to/node", "cli": "/abs/path/to/dist/cli.js",
|
package/dist/cli.js
CHANGED
|
@@ -95,7 +95,7 @@ async function main() {
|
|
|
95
95
|
case "mcp": {
|
|
96
96
|
const mcp = await loadMcp();
|
|
97
97
|
/**
|
|
98
|
-
* Best-effort heal of
|
|
98
|
+
* Best-effort heal of `<argent-home>/cli.json`, off the startup path. A
|
|
99
99
|
* committed local install (`npm install` only) never runs
|
|
100
100
|
* `init`/`update` and device providers need the record to find a CLI. The
|
|
101
101
|
* CLI path comes from `bundlePath` so it stays on the version-stable
|
package/dist/fatal-handlers.d.ts
CHANGED
package/dist/fatal-handlers.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// the production trace pointed at.
|
|
15
15
|
//
|
|
16
16
|
// With stdio unusable we cannot report to the parent, so we leave a
|
|
17
|
-
// breadcrumb at
|
|
17
|
+
// breadcrumb at `<argent-home>/mcp-fatal.log`, next to the other persistent
|
|
18
18
|
// argent logs.
|
|
19
19
|
import * as fs from "node:fs";
|
|
20
20
|
import * as os from "node:os";
|
|
@@ -22,7 +22,7 @@ import * as path from "node:path";
|
|
|
22
22
|
let installed = false;
|
|
23
23
|
// A copy of `@argent/configuration-core`'s `argentHomeDir`: the dispatcher's
|
|
24
24
|
// runtime files import only node builtins.
|
|
25
|
-
function argentHomeDir() {
|
|
25
|
+
export function argentHomeDir() {
|
|
26
26
|
const override = process.env.ARGENT_HOME_DIR?.trim();
|
|
27
27
|
return override ? path.resolve(override) : path.join(os.homedir(), ".argent");
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fatal-handlers.js","sourceRoot":"","sources":["../src/fatal-handlers.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,EAAE;AACF,uEAAuE;AACvE,6EAA6E;AAC7E,6EAA6E;AAC7E,yEAAyE;AACzE,gEAAgE;AAChE,iEAAiE;AACjE,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,oEAAoE;AACpE,
|
|
1
|
+
{"version":3,"file":"fatal-handlers.js","sourceRoot":"","sources":["../src/fatal-handlers.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,EAAE;AACF,uEAAuE;AACvE,6EAA6E;AAC7E,6EAA6E;AAC7E,yEAAyE;AACzE,gEAAgE;AAChE,iEAAiE;AACjE,EAAE;AACF,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,oEAAoE;AACpE,4EAA4E;AAC5E,eAAe;AAEf,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,6EAA6E;AAC7E,2CAA2C;AAC3C,MAAM,UAAU,aAAa;IAC3B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,IAAI,EAAE,CAAC;IACrD,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,eAAe,CAAC,CAAC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C,MAAM,CAAC,KAAK,CAAC,YAAY,KAAK,KAAK,MAAM,IAAI,CAAC,CAAC;QACzD,CAAC;QAAC,MAAM,CAAC;YACP,cAAc,CAAC,KAAK,EAAE,MAAO,CAAC,CAAC;YAC/B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,GAAG,EAAE,EAAE;QACtC,WAAW,CAAC,oBAAoB,EAAE,GAAG,EAAE,CAAC,MAAM,CAAE,GAAa,EAAE,KAAK,IAAI,GAAG,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,EAAE;QAC1C,WAAW,CAAC,qBAAqB,EAAE,GAAG,EAAE,CACtC,MAAM,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAC5E,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/installer-help.js
CHANGED
|
@@ -176,10 +176,11 @@ export const INSTALLER_COMMAND_META = {
|
|
|
176
176
|
"hung; Ctrl-C to quit.",
|
|
177
177
|
"",
|
|
178
178
|
"It takes no options and owns stdout, so diagnostics go to stderr. Calls are",
|
|
179
|
-
"logged to
|
|
179
|
+
"logged to <argent-home>/mcp-calls.log (override with ARGENT_MCP_LOG), readable",
|
|
180
180
|
"only by you; at 10 MiB the log moves to mcp-calls.log.1. Tools are",
|
|
181
181
|
"served by the argent tool-server, spawned on demand unless ARGENT_TOOLS_URL",
|
|
182
|
-
"or `argent link` points at one already running.",
|
|
182
|
+
"or `argent link` points at one already running. <argent-home> is ~/.argent,",
|
|
183
|
+
"or ARGENT_HOME_DIR when set.",
|
|
183
184
|
"",
|
|
184
185
|
"To drive the same tools from a terminal, use `argent tools` and",
|
|
185
186
|
"`argent run <tool>`.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installer-help.js","sourceRoot":"","sources":["../src/installer-help.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,MAAM,UAAU,kBAAkB,CAAC,OAA2B;IAC5D,OAAO,kBAAkB,CAAC,QAAQ,CAAC,OAA2B,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;GAMG;AACH,SAAS,UAAU,CAAC,GAAW;IAC7B,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACvD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAClG,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAgD;IAC7E,IAAI,EAAE,CAAC,QAAQ,CAAC;IAChB,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,MAAM,EAAE,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACvC,SAAS,EAAE,EAAE;IACb,MAAM,EAAE,EAAE;IACV,gFAAgF;IAChF,GAAG,EAAE,EAAE;CACR,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CAAC,OAA2B,EAAE,IAAc;IAChF,IAAI,CAAC,kBAAkB,CAAC,OAAO,CAAC;QAAE,OAAO,KAAK,CAAC;IAC/C,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,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;QACD,KAAK,EAAE,yBAAyB;QAChC,OAAO,EAAE;YACP,sBAAsB;YACtB,mBAAmB;YACnB;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,WAAW,EAAE,qDAAqD;aACnE;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,2DAA2D;aACzE;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,2EAA2E;aACzF;SACF;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,wDAAwD;QACjE,OAAO,EAAE,CAAC,0DAA0D,EAAE,uBAAuB,CAAC;QAC9F,KAAK,EAAE,4BAA4B;QACnC,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,+BAA+B,EAAE;YACnE;gBACE,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,iEAAiE;aAC/E;YACD;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,iFAAiF;aACpF;SACF;KACF;IACD,MAAM,EAAE;QACN,OAAO,EAAE,qBAAqB;QAC9B,KAAK,EAAE,yBAAyB;QAChC,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,WAAW;KACrB;IACD,GAAG,EAAE;QACH,OAAO,EAAE,8CAA8C;QACvD,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE;YACL,2EAA2E;YAC3E,8EAA8E;YAC9E,4EAA4E;YAC5E,2EAA2E;YAC3E,uBAAuB;YACvB,EAAE;YACF,6EAA6E;YAC7E,
|
|
1
|
+
{"version":3,"file":"installer-help.js","sourceRoot":"","sources":["../src/installer-help.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM;IACN,SAAS;IACT,QAAQ;IACR,WAAW;IACX,QAAQ;IACR,KAAK;CACG,CAAC;AAIX,MAAM,UAAU,kBAAkB,CAAC,OAA2B;IAC5D,OAAO,kBAAkB,CAAC,QAAQ,CA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GAAG,CAAC,EAAE,CAAC;QACnC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAClE,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC3B,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,KAAK,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;QACtE,CAAC;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,oDAAoD,EAAE,EAAE,CAAC,CAAC;IACzE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AAChC,CAAC"}
|
package/dist/installer.mjs
CHANGED
|
@@ -17119,7 +17119,7 @@ function isCi(env = process.env) {
|
|
|
17119
17119
|
var SESSION_ID = randomUUID4();
|
|
17120
17120
|
function readCliVersion() {
|
|
17121
17121
|
if (true) {
|
|
17122
|
-
return "0.35.1-next.
|
|
17122
|
+
return "0.35.1-next.63";
|
|
17123
17123
|
}
|
|
17124
17124
|
return "0.0.0";
|
|
17125
17125
|
}
|
|
@@ -25998,7 +25998,7 @@ async function uninstall(args) {
|
|
|
25998
25998
|
const removed = !leftover || removable.installDir !== null && !fs26.existsSync(removable.installDir);
|
|
25999
25999
|
if (removed) hasUninstalledPackage = true;
|
|
26000
26000
|
if (removed && removeCliRecordFor(removable.installDir)) {
|
|
26001
|
-
log.info(import_picocolors13.default.dim(
|
|
26001
|
+
log.info(import_picocolors13.default.dim(`Removed ${cliRecordPath()} (provider CLI discovery record).`));
|
|
26002
26002
|
}
|
|
26003
26003
|
if (leftover) {
|
|
26004
26004
|
throw new Error(
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -38255,7 +38255,7 @@ async function startMcpServer(options) {
|
|
|
38255
38255
|
const autoDescribeOn = autoDescribeEnabled();
|
|
38256
38256
|
const whatsNewOn = whatsNewEnabled();
|
|
38257
38257
|
const installedVersion = getInstalledVersion();
|
|
38258
|
-
const highlightsVersion = true ? "0.35.1-next.
|
|
38258
|
+
const highlightsVersion = true ? "0.35.1-next.63" : installedVersion;
|
|
38259
38259
|
const captureTimeoutMs = options.captureTimeoutMs ?? CAPTURE_TIMEOUT_MS;
|
|
38260
38260
|
const trees = createTreeMemory();
|
|
38261
38261
|
const screenshots = createScreenshotMemory();
|
package/dist/tool-server.cjs
CHANGED
|
@@ -869,10 +869,10 @@ function secretPlacementAdvice(name, options = {}) {
|
|
|
869
869
|
return `To make it available, ask the user to add \`${name}=\u2026\` to ${globalFile} (or to \`.argent/${SECRETS_FILE_NAME}\` in the project), add \`${SECRET_ENV_PREFIX}${name}=\u2026\` to the project's .env / .env.local, or export ${SECRET_ENV_PREFIX}${name} in the tool-server's environment \u2014 never ask the user for the secret value itself. If this tool-server is reached through \`argent link\` or ARGENT_TOOLS_URL, the user can instead define it on the client's machine and run \`argent enable forward-secrets\` there; \`argent secrets\` there lists the sources the client reads, which this list leaves out.`;
|
|
870
870
|
}
|
|
871
871
|
function callerSecretPlacementAdvice(name) {
|
|
872
|
-
return `To make it available, ask the user to add \`${name}=\u2026\` to \`.argent/${SECRETS_FILE_NAME}\` in the project the call came from, or to
|
|
872
|
+
return `To make it available, ask the user to add \`${name}=\u2026\` to \`.argent/${SECRETS_FILE_NAME}\` in the project the call came from, or to ${SECRETS_FILE_NAME} in the Argent home (\`~/.argent\` unless ARGENT_HOME_DIR moves it), or \`${SECRET_ENV_PREFIX}${name}=\u2026\` to the project's .env / .env.local; a file applies to the next call. An environment variable ${SECRET_ENV_PREFIX}${name} must be set where the call starts: in the shell that runs \`argent\`, or in the environment of the editor or agent that starts the argent MCP server, which then needs a restart. \`argent secrets\`, run in the project, lists what a call there can resolve. Never ask the user for the secret value itself.`;
|
|
873
873
|
}
|
|
874
874
|
function clientSecretPlacementAdvice(name) {
|
|
875
|
-
return `To make it available, ask the user to add \`${name}=\u2026\` to
|
|
875
|
+
return `To make it available, ask the user to add \`${name}=\u2026\` to ${SECRETS_FILE_NAME} in the Argent home on the client's machine (\`~/.argent\` unless ARGENT_HOME_DIR moves it), to \`.argent/${SECRETS_FILE_NAME}\` in the project the client runs in, or to export ${SECRET_ENV_PREFIX}${name} before the client starts; \`argent secrets\` there lists the sources the client reads. Without \`forward-secrets\` on, the client sends only the file \`argent e2e run --secrets-file\` names, so add \`${SECRET_ENV_PREFIX}${name}=\u2026\` there. Never ask the user for the secret value itself.`;
|
|
876
876
|
}
|
|
877
877
|
var fs4, path4, import_dotenv, SECRET_ENV_PREFIX, SECRETS_FILE_NAME, SHARED_ENV_FILES, SECRET_NAME_RE, SUMMARY_KINDS, SECRET_PLACEHOLDER_RE, REDUNDANT_PREFIX_RE;
|
|
878
878
|
var init_secrets = __esm({
|
|
@@ -43269,7 +43269,7 @@ var require_view = __commonJS({
|
|
|
43269
43269
|
var dirname29 = path77.dirname;
|
|
43270
43270
|
var basename25 = path77.basename;
|
|
43271
43271
|
var extname7 = path77.extname;
|
|
43272
|
-
var
|
|
43272
|
+
var join81 = path77.join;
|
|
43273
43273
|
var resolve24 = path77.resolve;
|
|
43274
43274
|
module2.exports = View;
|
|
43275
43275
|
function View(name, options) {
|
|
@@ -43331,12 +43331,12 @@ var require_view = __commonJS({
|
|
|
43331
43331
|
};
|
|
43332
43332
|
View.prototype.resolve = function resolve25(dir, file2) {
|
|
43333
43333
|
var ext = this.ext;
|
|
43334
|
-
var path78 =
|
|
43334
|
+
var path78 = join81(dir, file2);
|
|
43335
43335
|
var stat11 = tryStat(path78);
|
|
43336
43336
|
if (stat11 && stat11.isFile()) {
|
|
43337
43337
|
return path78;
|
|
43338
43338
|
}
|
|
43339
|
-
path78 =
|
|
43339
|
+
path78 = join81(dir, basename25(file2, ext), "index" + ext);
|
|
43340
43340
|
stat11 = tryStat(path78);
|
|
43341
43341
|
if (stat11 && stat11.isFile()) {
|
|
43342
43342
|
return path78;
|
|
@@ -47276,7 +47276,7 @@ var require_send = __commonJS({
|
|
|
47276
47276
|
var Stream2 = require("stream");
|
|
47277
47277
|
var util = require("util");
|
|
47278
47278
|
var extname7 = path77.extname;
|
|
47279
|
-
var
|
|
47279
|
+
var join81 = path77.join;
|
|
47280
47280
|
var normalize = path77.normalize;
|
|
47281
47281
|
var resolve24 = path77.resolve;
|
|
47282
47282
|
var sep12 = path77.sep;
|
|
@@ -47448,7 +47448,7 @@ var require_send = __commonJS({
|
|
|
47448
47448
|
return res;
|
|
47449
47449
|
}
|
|
47450
47450
|
parts2 = path78.split(sep12);
|
|
47451
|
-
path78 = normalize(
|
|
47451
|
+
path78 = normalize(join81(root, path78));
|
|
47452
47452
|
} else {
|
|
47453
47453
|
if (UP_PATH_REGEXP.test(path78)) {
|
|
47454
47454
|
debug('malicious path "%s"', path78);
|
|
@@ -47581,7 +47581,7 @@ var require_send = __commonJS({
|
|
|
47581
47581
|
if (err) return self2.onStatError(err);
|
|
47582
47582
|
return self2.error(404);
|
|
47583
47583
|
}
|
|
47584
|
-
var p =
|
|
47584
|
+
var p = join81(path78, self2._index[i]);
|
|
47585
47585
|
debug('stat "%s"', p);
|
|
47586
47586
|
fs93.stat(p, function(err2, stat11) {
|
|
47587
47587
|
if (err2) return next(err2);
|
|
@@ -73041,7 +73041,7 @@ function isCi(env = process.env) {
|
|
|
73041
73041
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
73042
73042
|
function readCliVersion() {
|
|
73043
73043
|
if (true) {
|
|
73044
|
-
return "0.35.1-next.
|
|
73044
|
+
return "0.35.1-next.63";
|
|
73045
73045
|
}
|
|
73046
73046
|
return "0.0.0";
|
|
73047
73047
|
}
|
|
@@ -75699,7 +75699,7 @@ function unknownCallerSecret(rawName, name, client2) {
|
|
|
75699
75699
|
${describeSecretSources(sources)}
|
|
75700
75700
|
` : "";
|
|
75701
75701
|
return new InvalidToolInputError(
|
|
75702
|
-
`Unknown secret "${rawName}" \u2014 the argent client that sent this call (the \`argent\` command, or the MCP server of the agent's session) found no ${name} in its environment, its project or
|
|
75702
|
+
`Unknown secret "${rawName}" \u2014 the argent client that sent this call (the \`argent\` command, or the MCP server of the agent's session) found no ${name} in its environment, its project or the secrets.env of its Argent home. The tool-server does not read its own. Available secrets: ${names.length ? names.join(", ") : "(none)"}.
|
|
75703
75703
|
` + listed + callerSecretPlacementAdvice(name),
|
|
75704
75704
|
{
|
|
75705
75705
|
error_code: FAILURE_CODES.SECRET_PLACEHOLDER_UNKNOWN,
|
|
@@ -125290,7 +125290,7 @@ function describeReapedSession(entry, what) {
|
|
|
125290
125290
|
if (entry.connectionLost) {
|
|
125291
125291
|
return `The ${what} for device ${entry.deviceId} lost its connection ${secondsAgo}s ago \u2014 the app crashed or quit, or its debugger endpoint went away.${salvage}`;
|
|
125292
125292
|
}
|
|
125293
|
-
return `The ${what} for device ${entry.deviceId} was torn down ${secondsAgo}s ago \u2014 by a stop-all-simulator-servers, which reaps every service a device owns, or by another teardown that reaches the same services (a stop-simulator-server on Chromium or a Mac app, or a react-profiler-start reclaiming the session with force). One tool-server serves every agent using this
|
|
125293
|
+
return `The ${what} for device ${entry.deviceId} was torn down ${secondsAgo}s ago \u2014 by a stop-all-simulator-servers, which reaps every service a device owns, or by another teardown that reaches the same services (a stop-simulator-server on Chromium or a Mac app, or a react-profiler-start reclaiming the session with force). One tool-server serves every agent using this Argent install and home, so this may have been another agent rather than your own call. It was not a session that never started.${salvage}`;
|
|
125294
125294
|
}
|
|
125295
125295
|
|
|
125296
125296
|
// ../tool-server/src/blueprints/chromium-js-runtime-debugger.ts
|
|
@@ -125777,6 +125777,7 @@ var AUTO_SUPPRESS_MS = 30 * 60 * 1e3;
|
|
|
125777
125777
|
var AUTH_TOKEN_ENV = "ARGENT_AUTH_TOKEN";
|
|
125778
125778
|
var BEARER_PREFIX = "Bearer ";
|
|
125779
125779
|
var ARTIFACTS_LIST_ENDPOINT_FLAG = "artifacts-list-endpoint";
|
|
125780
|
+
var TOKEN_FILE_HINT = "tool-server-*.json in the Argent home of the server's machine (~/.argent unless ARGENT_HOME_DIR is set)";
|
|
125780
125781
|
function constantTimeEqual(a, b) {
|
|
125781
125782
|
if (a.length !== b.length) return false;
|
|
125782
125783
|
let diff = 0;
|
|
@@ -125966,7 +125967,7 @@ function checkTokenExemptAccess(req, policy) {
|
|
|
125966
125967
|
const from2 = forwarded ? "through a proxy" : `from ${req.socket.remoteAddress ?? "the network"}`;
|
|
125967
125968
|
return {
|
|
125968
125969
|
status: 401,
|
|
125969
|
-
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
|
|
125970
|
+
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}.`
|
|
125970
125971
|
};
|
|
125971
125972
|
}
|
|
125972
125973
|
function interfaceAddresses() {
|
|
@@ -126065,7 +126066,7 @@ function createHttpApp(registry2, options) {
|
|
|
126065
126066
|
const provided = extractBearerToken(req.headers.authorization);
|
|
126066
126067
|
if (!provided || !constantTimeEqual(provided, expectedToken)) {
|
|
126067
126068
|
res.status(401).json({
|
|
126068
|
-
error:
|
|
126069
|
+
error: `Missing or invalid Authorization header. Tool-server requires \`Authorization: Bearer <token>\` where <token> matches the value in ${TOKEN_FILE_HINT}.`
|
|
126069
126070
|
});
|
|
126070
126071
|
return;
|
|
126071
126072
|
}
|
|
@@ -134881,7 +134882,7 @@ async function openSimulatorWindow(udid) {
|
|
|
134881
134882
|
simulatorApp,
|
|
134882
134883
|
() => execFileAsync26("open", ["-a", simulatorApp], { timeout })
|
|
134883
134884
|
);
|
|
134884
|
-
return launched ? void 0 : `${simulatorApp} exits right after launch on this host, so Argent no longer opens it and the device runs without a window. Delete
|
|
134885
|
+
return launched ? void 0 : `${simulatorApp} exits right after launch on this host, so Argent no longer opens it and the device runs without a window. Delete ${verdictFilePath()} to try opening it again.`;
|
|
134885
134886
|
}
|
|
134886
134887
|
const deviceHubApp = (0, import_node_path20.join)(developerDir2, "..", "Applications", "DeviceHub.app");
|
|
134887
134888
|
if ((0, import_node_fs19.existsSync)(deviceHubApp)) {
|
|
@@ -145480,6 +145481,8 @@ Returns \`{ x, y, items, truncated?, hiddenCount? }\`. Fails if disconnected or
|
|
|
145480
145481
|
|
|
145481
145482
|
// ../tool-server/src/tools/debugger/debugger-log-registry.ts
|
|
145482
145483
|
init_zod();
|
|
145484
|
+
var import_node_path31 = require("node:path");
|
|
145485
|
+
init_src();
|
|
145483
145486
|
var DEFAULT_TAIL = 20;
|
|
145484
145487
|
var CONSOLE_LEVELS = [
|
|
145485
145488
|
"log",
|
|
@@ -145549,7 +145552,8 @@ Returns \`{ status: "connected", file, entries, clusters, note? }\` (\`note\` fl
|
|
|
145549
145552
|
]);
|
|
145550
145553
|
if (reaped2) response.note = describeReapedSession(reaped2, "JS-runtime debugger session");
|
|
145551
145554
|
const inFile = api.logWriter.getFileEntryCount();
|
|
145552
|
-
const
|
|
145555
|
+
const home = argentHomeDir();
|
|
145556
|
+
const fileNote = !api.logWriter.hasFile() ? `No log file exists at ${stats.file}, so there is nothing to grep: the counts, clusters and { entries } are all that was captured. Usually the disk was full or ${(0, import_node_path31.join)(home, "tmp")} was not writable when this session started (if root owns ${home}: sudo chown -R "$USER" "${home}"). Only a new debugger session gets a file: once that is fixed, call stop-all-simulator-servers with devices: ["${canonicalDeviceId(params.device_id)}"], then debugger-connect again.` : inFile === 0 && stats.totalEntries > 0 ? `The log file at ${stats.file} holds none of the ${stats.totalEntries} captured entries: every write to it failed (e.g. a full disk), so there is nothing to grep and the counts, clusters and { entries } are all that was captured. Entries logged once the disk has room are written to it.` : inFile < stats.totalEntries ? `The log file at ${stats.file} holds only ${inFile} of the ${stats.totalEntries} captured entries: the other writes to it failed (e.g. a full disk or a file-size limit), so byLevel and clusters count entries that grepping it will not find. Entries logged once the disk has room are written to it.` : void 0;
|
|
145553
145557
|
if (fileNote) response.note = response.note ? `${response.note} ${fileNote}` : fileNote;
|
|
145554
145558
|
return response;
|
|
145555
145559
|
} catch (err) {
|
|
@@ -149844,7 +149848,7 @@ Fails if Hermes or Metro CDP is unreachable.`,
|
|
|
149844
149848
|
await cdp.send("Profiler.stop").catch(ignore);
|
|
149845
149849
|
throw new FailureError(
|
|
149846
149850
|
withTakeover(
|
|
149847
|
-
`The React profiler session for ${api.deviceId} was torn down while the profiler was starting, so nothing is recorded. One tool-server serves every agent using this
|
|
149851
|
+
`The React profiler session for ${api.deviceId} was torn down while the profiler was starting, so nothing is recorded. One tool-server serves every agent using this Argent install and home, so another agent may have run stop-all-simulator-servers. Call react-profiler-start again.`
|
|
149848
149852
|
),
|
|
149849
149853
|
{
|
|
149850
149854
|
error_code: FAILURE_CODES.REACT_PROFILER_SESSION_TORN_DOWN,
|
|
@@ -150150,7 +150154,7 @@ function lostRunCauseText(cause, takenOverBy) {
|
|
|
150150
150154
|
case "cdp_disconnected":
|
|
150151
150155
|
return "the debugger connection dropped while it was recording: the app crashed or was killed, Metro restarted, or another debugger took the connection";
|
|
150152
150156
|
case "session_torn_down":
|
|
150153
|
-
return "its session was torn down mid-run, typically by stop-all-simulator-servers: the run rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this
|
|
150157
|
+
return "its session was torn down mid-run, typically by stop-all-simulator-servers: the run rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this Argent install and home";
|
|
150154
150158
|
case "taken_over":
|
|
150155
150159
|
return takenOverBy ? `session ${takenOverBy} took it over, which discarded its data` : "another session took it over, which discarded its data";
|
|
150156
150160
|
case "stop_failed":
|
|
@@ -150710,7 +150714,7 @@ Returns \`{ duration_ms, sample_count, fiber_renders_captured, total_react_commi
|
|
|
150710
150714
|
);
|
|
150711
150715
|
if (!entry || entry.state !== "RUNNING" /* RUNNING */) {
|
|
150712
150716
|
throw new FailureError(
|
|
150713
|
-
lastRun ? `No active profiling session. ${lastRun} Call react-profiler-start to begin a new session.` : "No active profiling session. The session may have been lost to a Metro reload, or torn down by a stop-all-simulator-servers \u2014 this session rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this
|
|
150717
|
+
lastRun ? `No active profiling session. ${lastRun} Call react-profiler-start to begin a new session.` : "No active profiling session. The session may have been lost to a Metro reload, or torn down by a stop-all-simulator-servers \u2014 this session rides on the device's JS-runtime debugger, which that teardown reaps, and one tool-server serves every agent using this Argent install and home. Call react-profiler-start to begin a new session.",
|
|
150714
150718
|
{
|
|
150715
150719
|
error_code: FAILURE_CODES.REACT_PROFILER_NO_ACTIVE_SESSION,
|
|
150716
150720
|
failure_stage: "react_profiler_stop_session_lookup",
|
|
@@ -155774,7 +155778,7 @@ function commitXctraceRecording(api, started, capture) {
|
|
|
155774
155778
|
}
|
|
155775
155779
|
resetStartState(api);
|
|
155776
155780
|
throw new FailureError(
|
|
155777
|
-
`The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while this start was waiting for xctrace to become ready, so nothing was recorded \u2014 one tool-server serves every agent using this
|
|
155781
|
+
`The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while this start was waiting for xctrace to become ready, so nothing was recorded \u2014 one tool-server serves every agent using this Argent install and home, so this may have been another agent ending its session. Call native-profiler-start again.`,
|
|
155778
155782
|
{
|
|
155779
155783
|
error_code: FAILURE_CODES.NATIVE_PROFILER_SESSION_TORN_DOWN,
|
|
155780
155784
|
failure_stage: "native_profiler_xctrace_start",
|
|
@@ -157573,7 +157577,7 @@ async function startNativeProfilerAndroid(api, params) {
|
|
|
157573
157577
|
await adbShell2(params.device_id, `rm -f ${onDeviceTracePath}`).catch(() => {
|
|
157574
157578
|
});
|
|
157575
157579
|
throw new FailureError(
|
|
157576
|
-
`The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while perfetto was starting, so nothing was recorded \u2014 one tool-server serves every agent using this
|
|
157580
|
+
`The native profiling session for ${api.deviceId} was torn down by a stop-all-simulator-servers while perfetto was starting, so nothing was recorded \u2014 one tool-server serves every agent using this Argent install and home, so this may have been another agent ending its session. Call native-profiler-start again.`,
|
|
157577
157581
|
{
|
|
157578
157582
|
error_code: FAILURE_CODES.NATIVE_PROFILER_SESSION_TORN_DOWN,
|
|
157579
157583
|
failure_stage: "android_native_profiler_start",
|
|
@@ -162210,7 +162214,7 @@ function makePointerControl(simulator) {
|
|
|
162210
162214
|
}
|
|
162211
162215
|
|
|
162212
162216
|
// ../tool-server/src/tools/screen-recording/screen-recording-stop.ts
|
|
162213
|
-
var
|
|
162217
|
+
var import_node_path32 = require("node:path");
|
|
162214
162218
|
init_zod();
|
|
162215
162219
|
init_device_info();
|
|
162216
162220
|
init_capability();
|
|
@@ -162256,7 +162260,7 @@ Check \`warning\` for capture problems, such as an undetected foldable panel.<fl
|
|
|
162256
162260
|
kind: "screen-recording",
|
|
162257
162261
|
mimeType: "video/mp4",
|
|
162258
162262
|
// Drop the internal `argent-` temp-file prefix from the saved name.
|
|
162259
|
-
filename: (0,
|
|
162263
|
+
filename: (0, import_node_path32.basename)(stopped.outputFile).replace(/^argent-/, ""),
|
|
162260
162264
|
saveDir: RECORDINGS_DIR
|
|
162261
162265
|
});
|
|
162262
162266
|
const result = { video, durationMs: stopped.durationMs };
|
|
@@ -175224,7 +175228,7 @@ init_zod();
|
|
|
175224
175228
|
|
|
175225
175229
|
// ../tool-server/src/utils/workspace-reader.ts
|
|
175226
175230
|
var import_promises22 = require("node:fs/promises");
|
|
175227
|
-
var
|
|
175231
|
+
var import_node_path33 = require("node:path");
|
|
175228
175232
|
var import_node_child_process56 = require("node:child_process");
|
|
175229
175233
|
var import_dotenv2 = __toESM(require_dist());
|
|
175230
175234
|
async function exists2(path77) {
|
|
@@ -175312,7 +175316,7 @@ async function detectLockfile(workspacePath) {
|
|
|
175312
175316
|
const checks = await Promise.all(
|
|
175313
175317
|
LOCKFILES.map(async (name) => ({
|
|
175314
175318
|
name,
|
|
175315
|
-
exists: await exists2((0,
|
|
175319
|
+
exists: await exists2((0, import_node_path33.join)(workspacePath, name))
|
|
175316
175320
|
}))
|
|
175317
175321
|
);
|
|
175318
175322
|
return checks.find((c) => c.exists)?.name ?? null;
|
|
@@ -175331,7 +175335,7 @@ var CI_CONFIGS = [
|
|
|
175331
175335
|
];
|
|
175332
175336
|
async function detectCiConfig(workspacePath) {
|
|
175333
175337
|
for (const ci of CI_CONFIGS) {
|
|
175334
|
-
if (await exists2((0,
|
|
175338
|
+
if (await exists2((0, import_node_path33.join)(workspacePath, ci.path))) return ci.label;
|
|
175335
175339
|
}
|
|
175336
175340
|
return null;
|
|
175337
175341
|
}
|
|
@@ -175352,7 +175356,7 @@ async function detectLintStagedConfig(workspacePath, packageJson) {
|
|
|
175352
175356
|
return packageJson["lint-staged"];
|
|
175353
175357
|
}
|
|
175354
175358
|
for (const file2 of LINT_STAGED_FILES) {
|
|
175355
|
-
const full = (0,
|
|
175359
|
+
const full = (0, import_node_path33.join)(workspacePath, file2);
|
|
175356
175360
|
if (await exists2(full)) {
|
|
175357
175361
|
if (file2.endsWith(".json") || file2 === ".lintstagedrc") {
|
|
175358
175362
|
return readJsonFile(full);
|
|
@@ -175394,7 +175398,7 @@ var CONFIG_FILES = [
|
|
|
175394
175398
|
async function detectConfigFiles(workspacePath) {
|
|
175395
175399
|
const results = await Promise.allSettled(
|
|
175396
175400
|
CONFIG_FILES.map(async (file2) => {
|
|
175397
|
-
if (await exists2((0,
|
|
175401
|
+
if (await exists2((0, import_node_path33.join)(workspacePath, file2))) return file2;
|
|
175398
175402
|
return null;
|
|
175399
175403
|
})
|
|
175400
175404
|
);
|
|
@@ -175433,7 +175437,7 @@ async function detectEnvFiles(workspacePath) {
|
|
|
175433
175437
|
const envFileNames = entries.filter((e) => e === ".env" || e.startsWith(".env."));
|
|
175434
175438
|
const results = await Promise.all(
|
|
175435
175439
|
envFileNames.map(async (name) => {
|
|
175436
|
-
const content = await readTextFile((0,
|
|
175440
|
+
const content = await readTextFile((0, import_node_path33.join)(workspacePath, name));
|
|
175437
175441
|
return {
|
|
175438
175442
|
name,
|
|
175439
175443
|
keys: content ? extractEnvKeys(content) : []
|
|
@@ -175460,34 +175464,34 @@ async function readWorkspaceSnapshot(workspacePath) {
|
|
|
175460
175464
|
ciConfig,
|
|
175461
175465
|
configFilesFound
|
|
175462
175466
|
] = await Promise.all([
|
|
175463
|
-
readJsonFile((0,
|
|
175464
|
-
readJsonFile((0,
|
|
175465
|
-
readJsonFile((0,
|
|
175466
|
-
readJsonFile((0,
|
|
175467
|
-
readTextFile((0,
|
|
175468
|
-
(r) => r ?? readTextFile((0,
|
|
175467
|
+
readJsonFile((0, import_node_path33.join)(workspacePath, "package.json")),
|
|
175468
|
+
readJsonFile((0, import_node_path33.join)(workspacePath, "app.json")),
|
|
175469
|
+
readJsonFile((0, import_node_path33.join)(workspacePath, "eas.json")),
|
|
175470
|
+
readJsonFile((0, import_node_path33.join)(workspacePath, "tsconfig.json")),
|
|
175471
|
+
readTextFile((0, import_node_path33.join)(workspacePath, "metro.config.js")).then(
|
|
175472
|
+
(r) => r ?? readTextFile((0, import_node_path33.join)(workspacePath, "metro.config.ts"))
|
|
175469
175473
|
),
|
|
175470
|
-
readTextFile((0,
|
|
175471
|
-
(r) => r ?? readTextFile((0,
|
|
175474
|
+
readTextFile((0, import_node_path33.join)(workspacePath, "babel.config.js")).then(
|
|
175475
|
+
(r) => r ?? readTextFile((0, import_node_path33.join)(workspacePath, "babel.config.cjs"))
|
|
175472
175476
|
),
|
|
175473
|
-
isDirectory2((0,
|
|
175474
|
-
isDirectory2((0,
|
|
175477
|
+
isDirectory2((0, import_node_path33.join)(workspacePath, "ios")),
|
|
175478
|
+
isDirectory2((0, import_node_path33.join)(workspacePath, "android")),
|
|
175475
175479
|
detectLockfile(workspacePath),
|
|
175476
175480
|
detectEnvFiles(workspacePath),
|
|
175477
175481
|
detectToolVersions(workspacePath),
|
|
175478
|
-
listDir((0,
|
|
175479
|
-
listDir((0,
|
|
175482
|
+
listDir((0, import_node_path33.join)(workspacePath, "scripts")),
|
|
175483
|
+
listDir((0, import_node_path33.join)(workspacePath, ".husky")),
|
|
175480
175484
|
detectCiConfig(workspacePath),
|
|
175481
175485
|
detectConfigFiles(workspacePath)
|
|
175482
175486
|
]);
|
|
175483
|
-
const iosDir = (0,
|
|
175484
|
-
const androidDir = (0,
|
|
175487
|
+
const iosDir = (0, import_node_path33.join)(workspacePath, "ios");
|
|
175488
|
+
const androidDir = (0, import_node_path33.join)(workspacePath, "android");
|
|
175485
175489
|
const [iosWorkspace, iosHasPodfile, makefileText, lintStagedConfig, androidHasGradle] = await Promise.all([
|
|
175486
175490
|
hasIosDir ? findIosWorkspace(iosDir) : Promise.resolve(null),
|
|
175487
|
-
exists2((0,
|
|
175488
|
-
readTextFile((0,
|
|
175491
|
+
exists2((0, import_node_path33.join)(workspacePath, "ios", "Podfile")),
|
|
175492
|
+
readTextFile((0, import_node_path33.join)(workspacePath, "Makefile")),
|
|
175489
175493
|
detectLintStagedConfig(workspacePath, packageJson),
|
|
175490
|
-
hasAndroidDir ? exists2((0,
|
|
175494
|
+
hasAndroidDir ? exists2((0, import_node_path33.join)(androidDir, "gradlew")) : Promise.resolve(false)
|
|
175491
175495
|
]);
|
|
175492
175496
|
const metroPort2 = metroConfigRaw ? extractMetroPort(metroConfigRaw) : null;
|
|
175493
175497
|
const makefileTargets = makefileText ? extractMakefileTargets(makefileText) : null;
|
|
@@ -175586,7 +175590,7 @@ var dismissUpdateTool = {
|
|
|
175586
175590
|
};
|
|
175587
175591
|
}
|
|
175588
175592
|
const pending = pendingVersion ? `v${pendingVersion} stays available and nothing was installed.` : `No update is pending right now; one that appears before then stays silent too.`;
|
|
175589
|
-
const scope = persisted ? `on every Argent tool-server
|
|
175593
|
+
const scope = persisted ? `on every Argent tool-server of this Argent home` : `in this tool-server only, and only until it restarts: the Argent home could not be written, so other tool-servers still show reminders`;
|
|
175590
175594
|
return {
|
|
175591
175595
|
message: `Update reminders are off until ${local} (${end.toISOString()}) ${scope}. ${pending} Tell the user when reminders resume. Remove any saved reminder about this update from your task list and do not bring it up again unless the user asks.`,
|
|
175592
175596
|
remindersResumeAt: end.toISOString(),
|
|
@@ -176958,7 +176962,7 @@ function createLensTools(registry2) {
|
|
|
176958
176962
|
// ../tool-server/src/utils/host-deps-report.ts
|
|
176959
176963
|
var import_node_child_process57 = require("node:child_process");
|
|
176960
176964
|
var import_node_fs24 = require("node:fs");
|
|
176961
|
-
var
|
|
176965
|
+
var import_node_path34 = require("node:path");
|
|
176962
176966
|
var import_node_util44 = require("node:util");
|
|
176963
176967
|
init_android_binary();
|
|
176964
176968
|
var execFileAsync47 = (0, import_node_util44.promisify)(import_node_child_process57.execFile);
|
|
@@ -176973,7 +176977,7 @@ async function activeDeveloperDir2() {
|
|
|
176973
176977
|
async function probeXcode() {
|
|
176974
176978
|
if (process.platform !== "darwin") return null;
|
|
176975
176979
|
const developerDir2 = await activeDeveloperDir2();
|
|
176976
|
-
const simctl = developerDir2 !== null && (0, import_node_fs24.existsSync)((0,
|
|
176980
|
+
const simctl = developerDir2 !== null && (0, import_node_fs24.existsSync)((0, import_node_path34.join)(developerDir2, "usr", "bin", "simctl"));
|
|
176977
176981
|
const firstLaunch = simctl && xcodeFirstLaunchPending("simctl") ? xcodeInstallInstruction() : null;
|
|
176978
176982
|
return { developerDir: developerDir2, simctl, firstLaunch };
|
|
176979
176983
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swmansion/argent",
|
|
3
|
-
"version": "0.35.1-next.
|
|
3
|
+
"version": "0.35.1-next.63",
|
|
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": "10b81d89cc1ff9a3f19068cc46ed5c004d0e56e9"
|
|
102
102
|
}
|