@ait-co/devtools 0.1.51 → 0.1.52
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/mcp/cli.d.ts +19 -1
- package/dist/mcp/cli.d.ts.map +1 -1
- package/dist/mcp/cli.js +463 -203
- package/dist/mcp/cli.js.map +1 -1
- package/dist/mcp/server.js +28 -2
- package/dist/mcp/server.js.map +1 -1
- package/dist/panel/index.js +2 -2
- package/package.json +1 -1
package/dist/mcp/cli.d.ts
CHANGED
|
@@ -17,8 +17,26 @@
|
|
|
17
17
|
* --mode=dev — dev mode — reads the live browser mock state from a running
|
|
18
18
|
* Vite dev server (the devtools#130 `devtools_get_mock_state` surface).
|
|
19
19
|
*
|
|
20
|
+
* Back-compat (issue #348): the legacy `--mode`/`--target` flags and `MCP_ENV`
|
|
21
|
+
* still work. `--target=relay`/`local` select the initial active connection;
|
|
22
|
+
* the in-session `start_debug(mode)` MCP tool can then flip between them with no
|
|
23
|
+
* restart. `MCP_ENV=relay-live` seeds LIVE intent at boot (deprecated alias);
|
|
24
|
+
* `MCP_ENV=mock|relay|relay-dev` are accepted and ignored for env derivation
|
|
25
|
+
* (the active connection's `kind` is authoritative).
|
|
26
|
+
*
|
|
20
27
|
* Node-only stdio process.
|
|
21
28
|
*/
|
|
29
|
+
/**
|
|
30
|
+
* Seeds the module-level `liveIntent` bit from the deprecated `MCP_ENV` alias
|
|
31
|
+
* (issue #348). `MCP_ENV=relay-live` is the only value that matters now — it
|
|
32
|
+
* arms LIVE intent at boot so a session launched straight into env 4 has the
|
|
33
|
+
* guard active without a `start_debug({ mode: 'relay-live' })` round-trip. All
|
|
34
|
+
* other `MCP_ENV` values (`mock`, `relay`, `relay-dev`) are accepted-and-ignored
|
|
35
|
+
* for env derivation — the active connection's `kind` is authoritative.
|
|
36
|
+
*
|
|
37
|
+
* SECRET-HANDLING: reads only the env-var string; never logs a secret.
|
|
38
|
+
*/
|
|
39
|
+
declare function seedLiveIntentFromEnv(env?: NodeJS.ProcessEnv): void;
|
|
22
40
|
type Mode = 'debug' | 'dev';
|
|
23
41
|
type Target = 'relay' | 'local';
|
|
24
42
|
/**
|
|
@@ -39,5 +57,5 @@ declare function parseMode(argv: readonly string[]): Mode;
|
|
|
39
57
|
*/
|
|
40
58
|
declare function parseTarget(argv: readonly string[]): Target;
|
|
41
59
|
//#endregion
|
|
42
|
-
export { parseForce, parseMode, parseTarget };
|
|
60
|
+
export { parseForce, parseMode, parseTarget, seedLiveIntentFromEnv };
|
|
43
61
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/mcp/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/mcp/cli.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/mcp/cli.ts"],"mappings":";;;AA4CA;;;;;;;;;AAEC;;;;;AAEQ;;;;;AAST;;;;;AAKA;;;;;AAyBA;;;;;;iBA3CgB,qBAAA,CAAsB,GAAA,GAAK,MAAA,CAAO,UAAA;AAAA,KAI7C,IAAA;AAAA,KACA,MAAA;;;;;;;iBAQW,UAAA,CAAW,IAAA;;iBAKX,SAAA,CAAU,IAAA,sBAA0B,IAAA;;;;;;;;iBAyBpC,WAAA,CAAY,IAAA,sBAA0B,MAAA"}
|