@mcp-use/cli 3.6.5-canary.1 → 4.0.0-beta.0
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -10099
- package/package.json +11 -39
- package/LICENSE +0 -22
- package/README.md +0 -570
- package/dist/commands/auth.d.ts +0 -34
- package/dist/commands/auth.d.ts.map +0 -1
- package/dist/commands/client-auth.d.ts +0 -4
- package/dist/commands/client-auth.d.ts.map +0 -1
- package/dist/commands/client.d.ts +0 -29
- package/dist/commands/client.d.ts.map +0 -1
- package/dist/commands/deploy.d.ts +0 -83
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deployments.d.ts +0 -3
- package/dist/commands/deployments.d.ts.map +0 -1
- package/dist/commands/env.d.ts +0 -3
- package/dist/commands/env.d.ts.map +0 -1
- package/dist/commands/org.d.ts +0 -13
- package/dist/commands/org.d.ts.map +0 -1
- package/dist/commands/screenshot.d.ts +0 -99
- package/dist/commands/screenshot.d.ts.map +0 -1
- package/dist/commands/servers.d.ts +0 -3
- package/dist/commands/servers.d.ts.map +0 -1
- package/dist/commands/skills.d.ts +0 -3
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/index.cjs +0 -10118
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/shims/next-shims-cjs.cjs +0 -42
- package/dist/shims/next-shims-loader.mjs +0 -119
- package/dist/shims/next-shims-noop.cjs +0 -146
- package/dist/shims/next-shims-register.mjs +0 -14
- package/dist/shims/next-shims-registry.json +0 -11
- package/dist/utils/api.d.ts +0 -329
- package/dist/utils/api.d.ts.map +0 -1
- package/dist/utils/cdp-screenshot.d.ts +0 -68
- package/dist/utils/cdp-screenshot.d.ts.map +0 -1
- package/dist/utils/chrome-path.d.ts +0 -14
- package/dist/utils/chrome-path.d.ts.map +0 -1
- package/dist/utils/cloud-urls.d.ts +0 -13
- package/dist/utils/cloud-urls.d.ts.map +0 -1
- package/dist/utils/config.d.ts +0 -54
- package/dist/utils/config.d.ts.map +0 -1
- package/dist/utils/errors.d.ts +0 -6
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/format.d.ts +0 -94
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/git.d.ts +0 -56
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/next-shims.d.ts +0 -77
- package/dist/utils/next-shims.d.ts.map +0 -1
- package/dist/utils/oauth.d.ts +0 -22
- package/dist/utils/oauth.d.ts.map +0 -1
- package/dist/utils/parse-args.d.ts +0 -27
- package/dist/utils/parse-args.d.ts.map +0 -1
- package/dist/utils/project-link.d.ts +0 -11
- package/dist/utils/project-link.d.ts.map +0 -1
- package/dist/utils/session-storage.d.ts +0 -46
- package/dist/utils/session-storage.d.ts.map +0 -1
- package/dist/utils/session.d.ts +0 -39
- package/dist/utils/session.d.ts.map +0 -1
- package/dist/utils/tarball.d.ts +0 -13
- package/dist/utils/tarball.d.ts.map +0 -1
- package/dist/utils/update-check.d.ts +0 -6
- package/dist/utils/update-check.d.ts.map +0 -1
- package/dist/utils/widget-paths.d.ts +0 -2
- package/dist/utils/widget-paths.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/commands/auth.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAoB,OAAO,EAAE,MAAM,iBAAiB,CAAC;AA8FjE;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EAAE,EACf,UAAU,EAAE,MAAM,GACjB,OAAO,GAAG,IAAI,CAUhB;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,OAAO,EAAE,EACf,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAC3B,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CA2CzB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,CAAC,EAAE;IAC3C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2LhB;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAwBnD;AAED;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAqDnD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client-auth.d.ts","sourceRoot":"","sources":["../../src/commands/client-auth.ts"],"names":[],"mappings":"AAuDA,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwBnE;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA2BpE;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAcnE"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
/**
|
|
3
|
-
* Reserved top-level subcommands under `mcp-use client`. Any other token in
|
|
4
|
-
* that position is treated as a client name and routed via
|
|
5
|
-
* `createPerClientCommand`. Keep this in sync with the subcommands registered
|
|
6
|
-
* in `createClientCommand` below, plus commander's built-in help tokens.
|
|
7
|
-
*/
|
|
8
|
-
export declare const RESERVED_CLIENT_SUBCOMMANDS: Set<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Per-client scope tokens that live under `mcp-use client <name> ...`. When a
|
|
11
|
-
* user types one of these in the client-name slot (e.g.
|
|
12
|
-
* `mcp-use client tools call foo`), they almost certainly forgot the client
|
|
13
|
-
* name — route to a tailored error instead of "unknown command".
|
|
14
|
-
*/
|
|
15
|
-
export declare const PER_CLIENT_SCOPES: Set<string>;
|
|
16
|
-
/**
|
|
17
|
-
* Top-level `client` command. Exposes only commands that do not target an
|
|
18
|
-
* existing saved server: `connect` (which creates one) and `list`. Per-server
|
|
19
|
-
* operations live under `createPerClientCommand(<name>)` and are routed by
|
|
20
|
-
* `index.ts` based on the positional after `client`.
|
|
21
|
-
*/
|
|
22
|
-
export declare function createClientCommand(): Command;
|
|
23
|
-
/**
|
|
24
|
-
* Build the per-server command subtree for a given saved-server name. The
|
|
25
|
-
* name is captured in each action closure so subcommand definitions stay
|
|
26
|
-
* free of an extra positional argument.
|
|
27
|
-
*/
|
|
28
|
-
export declare function createPerClientCommand(name: string): Command;
|
|
29
|
-
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/commands/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqDpC;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,aAMtC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,aAQ5B,CAAC;AA8iCH;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAyC7C;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CA2H5D"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import type { EnvEnvironment } from "../utils/api.js";
|
|
2
|
-
import { McpUseAPI } from "../utils/api.js";
|
|
3
|
-
/**
|
|
4
|
-
* Upsert env vars onto an existing server via the env-variables API.
|
|
5
|
-
*
|
|
6
|
-
* The `--env`/`--env-file` flags are only honored on initial server creation
|
|
7
|
-
* (where `env` rides on the createServer body). On redeploys we have to call
|
|
8
|
-
* the dedicated env-variables endpoints, otherwise the values are silently
|
|
9
|
-
* dropped. Existing keys are updated; new keys are created. Keys not in the
|
|
10
|
-
* supplied set are left alone — clearing requires `mcp-use servers env rm`.
|
|
11
|
-
*/
|
|
12
|
-
export declare function syncEnvVarsToServer(api: McpUseAPI, serverId: string, envVars: Record<string, string>, opts?: {
|
|
13
|
-
branch?: string;
|
|
14
|
-
environments?: EnvEnvironment[];
|
|
15
|
-
}): Promise<{
|
|
16
|
-
created: number;
|
|
17
|
-
updated: number;
|
|
18
|
-
}>;
|
|
19
|
-
interface DeployOptions {
|
|
20
|
-
open?: boolean;
|
|
21
|
-
name?: string;
|
|
22
|
-
port?: number;
|
|
23
|
-
runtime?: "node" | "python";
|
|
24
|
-
new?: boolean;
|
|
25
|
-
env?: string[];
|
|
26
|
-
envFile?: string;
|
|
27
|
-
rootDir?: string;
|
|
28
|
-
org?: string;
|
|
29
|
-
yes?: boolean;
|
|
30
|
-
region?: "US" | "EU" | "APAC";
|
|
31
|
-
buildCommand?: string;
|
|
32
|
-
startCommand?: string;
|
|
33
|
-
/** Path to a non-default Dockerfile (relative to rootDir / repo root). */
|
|
34
|
-
dockerfile?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Glob patterns limiting which repo changes trigger auto-deploy (monorepos).
|
|
37
|
-
* Applied only when creating a new GitHub server.
|
|
38
|
-
*/
|
|
39
|
-
watchPaths?: string[];
|
|
40
|
-
/**
|
|
41
|
-
* Hold GitHub auto-deploys until other check runs pass. Applied only when
|
|
42
|
-
* creating a new GitHub server.
|
|
43
|
-
*/
|
|
44
|
-
waitForCi?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Deploy branch. Defaults to the current git branch (managed flow: "main").
|
|
47
|
-
* Also scopes env-var sync to that branch's preview env.
|
|
48
|
-
*/
|
|
49
|
-
branch?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Upload local source without connecting the user's GitHub. Uses the
|
|
52
|
-
* platform-managed org and a tarball instead of pushing to a user repo.
|
|
53
|
-
*/
|
|
54
|
-
noGithub?: boolean;
|
|
55
|
-
}
|
|
56
|
-
/** The GitHub App installation page for the given app slug. */
|
|
57
|
-
export declare function gitHubInstallUrl(appName: string): string;
|
|
58
|
-
/**
|
|
59
|
-
* How the GitHub App installation step should behave, given the `--yes` flag
|
|
60
|
-
* and whether stdin is an interactive TTY.
|
|
61
|
-
*
|
|
62
|
-
* - `auto`: caller passed `--yes`; open the browser and poll for completion.
|
|
63
|
-
* - `interactive`: a TTY is attached; ask the user before opening the browser.
|
|
64
|
-
* - `non-interactive`: no TTY and no `--yes` (an agent or CI). We can't block on
|
|
65
|
-
* a prompt that will never be answered, so the caller prints the install URL
|
|
66
|
-
* and bails cleanly instead of hanging.
|
|
67
|
-
*/
|
|
68
|
-
type InstallFlowMode = "auto" | "interactive" | "non-interactive";
|
|
69
|
-
export declare function resolveInstallFlowMode(opts: {
|
|
70
|
-
yes: boolean;
|
|
71
|
-
isTTY: boolean;
|
|
72
|
-
}): InstallFlowMode;
|
|
73
|
-
export declare function promptGitHubInstallation(api: McpUseAPI, reason: "not_connected" | "no_access", repoName?: string, opts?: {
|
|
74
|
-
yes?: boolean;
|
|
75
|
-
installationId?: string;
|
|
76
|
-
reauth: () => Promise<McpUseAPI>;
|
|
77
|
-
}): Promise<{
|
|
78
|
-
ok: boolean;
|
|
79
|
-
api: McpUseAPI;
|
|
80
|
-
}>;
|
|
81
|
-
export declare function deployCommand(options: DeployOptions): Promise<void>;
|
|
82
|
-
export {};
|
|
83
|
-
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,SAAS,EACV,MAAM,iBAAiB,CAAC;AAgGzB;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,SAAS,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM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,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,GAAG,eAAe,CAGlB;AAED,wBAAsB,wBAAwB,CAC5C,GAAG,EAAE,SAAS,EACd,MAAM,EAAE,eAAe,GAAG,WAAW,EACrC,QAAQ,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE;IACL,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC;CAClC,GACA,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,SAAS,CAAA;CAAE,CAAC,CA+I1C;AA6JD,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CA8xBzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../src/commands/deployments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6kBpC,wBAAgB,wBAAwB,IAAI,OAAO,CAgElD"}
|
package/dist/commands/env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/commands/env.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwRpC,wBAAgB,gBAAgB,IAAI,OAAO,CAmE1C"}
|
package/dist/commands/org.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List all organizations the user belongs to
|
|
3
|
-
*/
|
|
4
|
-
export declare function orgListCommand(): Promise<void>;
|
|
5
|
-
/**
|
|
6
|
-
* Switch the active organization
|
|
7
|
-
*/
|
|
8
|
-
export declare function orgSwitchCommand(): Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
* Show the currently active organization
|
|
11
|
-
*/
|
|
12
|
-
export declare function orgCurrentCommand(): Promise<void>;
|
|
13
|
-
//# sourceMappingURL=org.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"org.d.ts","sourceRoot":"","sources":["../../src/commands/org.ts"],"names":[],"mappings":"AAiBA;;GAEG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAmCpD;AAED;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAuDtD;AAED;;GAEG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,CA0BvD"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import type { MCPSession } from "mcp-use/client";
|
|
3
|
-
/**
|
|
4
|
-
* Curl-style `Key: Value` parser. Splits on the first `:` so values may
|
|
5
|
-
* contain colons, and trims both sides so `Authorization:Bearer xyz` and
|
|
6
|
-
* `Authorization: Bearer xyz` are equivalent.
|
|
7
|
-
*/
|
|
8
|
-
export declare function parseHeaderArg(raw: string): [string, string];
|
|
9
|
-
export declare function parseHeaderArgs(args: string[]): Record<string, string>;
|
|
10
|
-
/**
|
|
11
|
-
* Inspect a tool's `_meta` for the UI resource URI it renders, if any. Falls back
|
|
12
|
-
* to the OpenAI Apps `openai/outputTemplate` key for cross-ecosystem compatibility.
|
|
13
|
-
*/
|
|
14
|
-
export declare function detectToolResourceUri(tool: {
|
|
15
|
-
_meta?: Record<string, unknown>;
|
|
16
|
-
} | undefined | null): string | null;
|
|
17
|
-
interface CaptureToolScreenshotInputs {
|
|
18
|
-
session: MCPSession;
|
|
19
|
-
toolName: string;
|
|
20
|
-
toolArgs: Record<string, unknown>;
|
|
21
|
-
toolOutput: unknown;
|
|
22
|
-
resourceUri: string;
|
|
23
|
-
}
|
|
24
|
-
interface CaptureToolScreenshotOptions {
|
|
25
|
-
/**
|
|
26
|
-
* Desired output width in CSS pixels. When omitted, the screenshot fits the
|
|
27
|
-
* widget's natural rendered width. When set, also overrides the inline-mode
|
|
28
|
-
* 768px max-width cap so the widget renders at the requested width.
|
|
29
|
-
*/
|
|
30
|
-
width?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Desired output height in CSS pixels. When omitted, the screenshot fits the
|
|
33
|
-
* widget's natural rendered height.
|
|
34
|
-
*/
|
|
35
|
-
height?: number;
|
|
36
|
-
theme?: "light" | "dark";
|
|
37
|
-
output?: string;
|
|
38
|
-
waitFor?: string;
|
|
39
|
-
delayMs?: number;
|
|
40
|
-
timeoutMs?: number;
|
|
41
|
-
inspector?: string;
|
|
42
|
-
quiet?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Pre-existing CDP WebSocket URL. When set, the screenshot is captured via
|
|
45
|
-
* the remote browser instead of spawning a local Chrome. The inspector URL
|
|
46
|
-
* must be reachable from that remote browser.
|
|
47
|
-
*/
|
|
48
|
-
cdpUrl?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Device pixel ratio for rendering. Defaults to 1. With a value of 2 the
|
|
51
|
-
* resulting PNG is (width × 2) × (height × 2) device pixels (Retina-style
|
|
52
|
-
* capture). Forwarded to `Emulation.setDeviceMetricsOverride`.
|
|
53
|
-
*/
|
|
54
|
-
deviceScaleFactor?: number;
|
|
55
|
-
}
|
|
56
|
-
interface CaptureToolScreenshotResult {
|
|
57
|
-
outputPath: string;
|
|
58
|
-
/** Final clip width in CSS pixels (what the PNG visually represents). */
|
|
59
|
-
width: number;
|
|
60
|
-
/** Final clip height in CSS pixels. */
|
|
61
|
-
height: number;
|
|
62
|
-
view: string;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* End-to-end screenshot pipeline for a tool whose UI resource has already been
|
|
66
|
-
* resolved. Reuses the caller's existing tool result so we don't re-invoke the
|
|
67
|
-
* tool, ensures a dev server is running (spawning one if needed), reads the UI
|
|
68
|
-
* resource, and captures via CDP. Cleans up any spawned dev server before
|
|
69
|
-
* returning, even on failure.
|
|
70
|
-
*/
|
|
71
|
-
export declare function captureToolScreenshot(inputs: CaptureToolScreenshotInputs, options?: CaptureToolScreenshotOptions): Promise<CaptureToolScreenshotResult>;
|
|
72
|
-
/**
|
|
73
|
-
* Returns a filesystem-safe timestamp string: YYYY-MM-DD_HH-mm-ss
|
|
74
|
-
*/
|
|
75
|
-
export declare function timestampSuffix(date?: Date): string;
|
|
76
|
-
export declare function extractViewName(resourceUri: string): string;
|
|
77
|
-
export declare function parseDimension(raw: string, name: string): number;
|
|
78
|
-
/**
|
|
79
|
-
* Parse `--device-scale-factor <n>`. Allows fractional values (e.g. 1.5) and
|
|
80
|
-
* caps at 4 to avoid accidental 16x-pixel screenshots (memory + disk).
|
|
81
|
-
*/
|
|
82
|
-
export declare function parseDeviceScaleFactor(raw: string): number;
|
|
83
|
-
export declare function requiresArguments(inputSchema: unknown): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Top-level ad-hoc form: `mcp-use client screenshot --mcp <url> --tool <name>`.
|
|
86
|
-
*
|
|
87
|
-
* Doesn't take a saved-server positional. The MCP server is supplied inline
|
|
88
|
-
* via `--mcp`, and authenticated servers can be reached with repeatable
|
|
89
|
-
* `-H, --header` flags. This is the programmatic entry point for one-off or
|
|
90
|
-
* automated screenshot runs that don't want to first `mcp-use client connect`.
|
|
91
|
-
*/
|
|
92
|
-
export declare function createClientScreenshotCommand(): Command;
|
|
93
|
-
/**
|
|
94
|
-
* Per-server form: `mcp-use client <name> screenshot --tool <name>`. The saved
|
|
95
|
-
* server's auth (OAuth or bearer) is reused — no `--mcp`/`--header` flags.
|
|
96
|
-
*/
|
|
97
|
-
export declare function createPerClientScreenshotCommand(name: string): Command;
|
|
98
|
-
export {};
|
|
99
|
-
//# sourceMappingURL=screenshot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../src/commands/screenshot.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,O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yE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,2BAA2B,EACnC,OAAO,GAAE,4BAAiC,GACzC,OAAO,CAAC,2BAA2B,CAAC,CAmEtC;AAqLD;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,OAAa,GAAG,MAAM,CAKzD;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAO3D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAMhE;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAa1D;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAI/D;AAmRD;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,IAAI,OAAO,CAwBvD;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAetE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"servers.d.ts","sourceRoot":"","sources":["../../src/commands/servers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAygBpC,wBAAgB,oBAAoB,IAAI,OAAO,CA0E9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/commands/skills.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA2GpC,wBAAgB,mBAAmB,IAAI,OAAO,CA8D7C"}
|