@extension.dev/mcp 3.17.0-canary.1779905934.1151df3
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/CHANGELOG.md +36 -0
- package/README.md +101 -0
- package/bin/extension-mcp.js +3 -0
- package/claude/ARCHITECTURE.md +161 -0
- package/claude/CLAUDE.md +264 -0
- package/claude/README.md +72 -0
- package/claude/commands/extension-add.md +63 -0
- package/claude/commands/extension-debug.md +43 -0
- package/claude/commands/extension-publish.md +62 -0
- package/claude/commands/extension.md +76 -0
- package/claude/examples/add-sidebar.md +56 -0
- package/claude/examples/create-extension.md +49 -0
- package/claude/rules/cross-browser.md +84 -0
- package/claude/rules/extension-dev.md +83 -0
- package/claude/rules/mcp-tools.md +889 -0
- package/dist/module.cjs +2979 -0
- package/dist/module.d.ts +1 -0
- package/dist/rslib.config.d.ts +2 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/lib/act.d.ts +21 -0
- package/dist/src/lib/cdp.d.ts +48 -0
- package/dist/src/lib/exec.d.ts +13 -0
- package/dist/src/lib/process-manager.d.ts +5 -0
- package/dist/src/lib/templates-cache.d.ts +11 -0
- package/dist/src/lib/types.d.ts +68 -0
- package/dist/src/tools/add-feature.d.ts +29 -0
- package/dist/src/tools/build.d.ts +36 -0
- package/dist/src/tools/create.d.ts +29 -0
- package/dist/src/tools/detect-browsers.d.ts +20 -0
- package/dist/src/tools/dev.d.ts +34 -0
- package/dist/src/tools/dom-inspect.d.ts +56 -0
- package/dist/src/tools/eval.d.ts +44 -0
- package/dist/src/tools/get-template-source.d.ts +25 -0
- package/dist/src/tools/inspect.d.ts +29 -0
- package/dist/src/tools/install-browser.d.ts +18 -0
- package/dist/src/tools/list-browsers.d.ts +9 -0
- package/dist/src/tools/list-templates.d.ts +41 -0
- package/dist/src/tools/logs.d.ts +80 -0
- package/dist/src/tools/manifest-validate.d.ts +26 -0
- package/dist/src/tools/open.d.ts +31 -0
- package/dist/src/tools/preview.d.ts +23 -0
- package/dist/src/tools/publish.d.ts +32 -0
- package/dist/src/tools/reload.d.ts +33 -0
- package/dist/src/tools/source-inspect.d.ts +57 -0
- package/dist/src/tools/start.d.ts +29 -0
- package/dist/src/tools/storage.d.ts +51 -0
- package/dist/src/tools/wait.d.ts +29 -0
- package/dist/vitest.config.d.ts +3 -0
- package/package.json +84 -0
package/dist/module.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { startServer } from "./src/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function startServer(): Promise<void>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run an `extension <verb> … --output json` act command and return its result
|
|
3
|
+
* JSON as a string (the MCP tool payload). The CLI prints the control-channel
|
|
4
|
+
* result frame to stdout (for ok and !ok alike); connection/no-session failures
|
|
5
|
+
* go to stderr with a non-zero exit. Either way we return a JSON object.
|
|
6
|
+
*
|
|
7
|
+
* Per lockstep invariant #1 the act tools wrap the CLI verb rather than talking
|
|
8
|
+
* to the control WS directly — so MCP behavior can never drift from the CLI.
|
|
9
|
+
*/
|
|
10
|
+
export declare function runActVerb(args: string[], projectPath: string, timeoutMs?: number): Promise<string>;
|
|
11
|
+
/** Shared input fields for act tools. */
|
|
12
|
+
export interface ActArgs {
|
|
13
|
+
projectPath: string;
|
|
14
|
+
browser?: string;
|
|
15
|
+
context?: string;
|
|
16
|
+
url?: string;
|
|
17
|
+
tab?: number;
|
|
18
|
+
timeout?: number;
|
|
19
|
+
}
|
|
20
|
+
/** Build the trailing CLI flags common to act verbs. */
|
|
21
|
+
export declare function commonFlags(args: ActArgs): string[];
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare class CDPClient {
|
|
2
|
+
private ws;
|
|
3
|
+
private messageId;
|
|
4
|
+
private eventListeners;
|
|
5
|
+
private pendingRequests;
|
|
6
|
+
private consoleMessages;
|
|
7
|
+
connect(wsUrl: string): Promise<void>;
|
|
8
|
+
disconnect(): void;
|
|
9
|
+
private handleMessage;
|
|
10
|
+
private rejectAllPending;
|
|
11
|
+
sendCommand(method: string, params?: Record<string, unknown>, sessionId?: string): Promise<unknown>;
|
|
12
|
+
static discoverBrowserWsUrl(port: number, host?: string): Promise<string>;
|
|
13
|
+
static discoverTargets(port: number, host?: string): Promise<Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
type: string;
|
|
16
|
+
url: string;
|
|
17
|
+
title: string;
|
|
18
|
+
webSocketDebuggerUrl: string;
|
|
19
|
+
}>>;
|
|
20
|
+
getTargets(): Promise<Array<Record<string, unknown>>>;
|
|
21
|
+
attachToTarget(targetId: string): Promise<string>;
|
|
22
|
+
enableDomains(sessionId: string): Promise<void>;
|
|
23
|
+
navigate(sessionId: string, url: string): Promise<void>;
|
|
24
|
+
evaluate(sessionId: string, expression: string): Promise<unknown>;
|
|
25
|
+
getPageHTML(sessionId: string): Promise<string>;
|
|
26
|
+
getClosedShadowRoots(sessionId: string, maxBytes?: number): Promise<Array<{
|
|
27
|
+
host: string;
|
|
28
|
+
type: string;
|
|
29
|
+
html: string;
|
|
30
|
+
truncated?: boolean;
|
|
31
|
+
}>>;
|
|
32
|
+
getPageMeta(sessionId: string): Promise<Record<string, unknown>>;
|
|
33
|
+
probeSelectors(sessionId: string, selectors: string[]): Promise<Array<{
|
|
34
|
+
selector: string;
|
|
35
|
+
count: number;
|
|
36
|
+
samples: Array<Record<string, unknown>>;
|
|
37
|
+
}>>;
|
|
38
|
+
getDomSnapshot(sessionId: string, maxNodes?: number): Promise<Array<Record<string, unknown>>>;
|
|
39
|
+
getExtensionRootMeta(sessionId: string): Promise<Record<string, unknown> | null>;
|
|
40
|
+
getConsoleMessages(): Array<{
|
|
41
|
+
level: string;
|
|
42
|
+
text: string;
|
|
43
|
+
source: string;
|
|
44
|
+
timestamp: number;
|
|
45
|
+
}>;
|
|
46
|
+
getConsoleSummary(): Record<string, unknown>;
|
|
47
|
+
private onEvent;
|
|
48
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ChildProcess } from "node:child_process";
|
|
2
|
+
export interface CliResult {
|
|
3
|
+
code: number | null;
|
|
4
|
+
stdout: string;
|
|
5
|
+
stderr: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function runExtensionCli(args: string[], options?: {
|
|
8
|
+
cwd?: string;
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
}): Promise<CliResult>;
|
|
11
|
+
export declare function spawnExtensionCli(args: string[], options?: {
|
|
12
|
+
cwd?: string;
|
|
13
|
+
}): ChildProcess;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProcessInfo } from "./types";
|
|
2
|
+
export declare function registerSession(info: ProcessInfo): void;
|
|
3
|
+
export declare function getSession(projectPath: string, browser: string): ProcessInfo | undefined;
|
|
4
|
+
export declare function removeSession(projectPath: string, browser: string): void;
|
|
5
|
+
export declare function listSessions(): ProcessInfo[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TemplatesMetaV2, TemplateMeta } from "./types";
|
|
2
|
+
export declare function fetchTemplatesMeta(): Promise<TemplatesMetaV2>;
|
|
3
|
+
export interface TemplateFilters {
|
|
4
|
+
surface?: string;
|
|
5
|
+
framework?: string;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
featured?: boolean;
|
|
8
|
+
query?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function listTemplates(filters?: TemplateFilters): Promise<TemplateMeta[]>;
|
|
11
|
+
export declare function getTemplateBySlug(slug: string): Promise<TemplateMeta | undefined>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface TemplateMeta {
|
|
2
|
+
slug: string;
|
|
3
|
+
name: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
version: string;
|
|
6
|
+
manifest_version: number;
|
|
7
|
+
description: string;
|
|
8
|
+
uiContext: string[];
|
|
9
|
+
surfaces: string[];
|
|
10
|
+
entrypoints: string[];
|
|
11
|
+
uiFramework: string;
|
|
12
|
+
css: string;
|
|
13
|
+
configFiles: string[];
|
|
14
|
+
hasBackground: boolean;
|
|
15
|
+
hasEnv: boolean;
|
|
16
|
+
permissions: string[];
|
|
17
|
+
host_permissions: string[];
|
|
18
|
+
optional_permissions: string[];
|
|
19
|
+
featured: boolean;
|
|
20
|
+
tags?: string[];
|
|
21
|
+
difficulty?: "beginner" | "intermediate" | "advanced";
|
|
22
|
+
timeToFirstSuccessMinutes?: number;
|
|
23
|
+
firstSteps?: string[];
|
|
24
|
+
useCases?: string[];
|
|
25
|
+
docsUrl?: string;
|
|
26
|
+
files: string[];
|
|
27
|
+
browsers: string[];
|
|
28
|
+
screenshot: string | null;
|
|
29
|
+
icon: string | null;
|
|
30
|
+
downloads?: Record<string, string>;
|
|
31
|
+
repositoryUrl?: string;
|
|
32
|
+
aiPromptExamples?: string[];
|
|
33
|
+
aiRecommendFor?: string[];
|
|
34
|
+
patternExplanation?: string;
|
|
35
|
+
keyFiles?: string[];
|
|
36
|
+
}
|
|
37
|
+
export interface TemplatesMetaV2 {
|
|
38
|
+
version: "2";
|
|
39
|
+
sourceRepo: string;
|
|
40
|
+
generatorVersion: string;
|
|
41
|
+
commit: string;
|
|
42
|
+
generatedAt: string;
|
|
43
|
+
templates: TemplateMeta[];
|
|
44
|
+
}
|
|
45
|
+
export interface ReadyContract {
|
|
46
|
+
status: "ready" | "error";
|
|
47
|
+
message?: string;
|
|
48
|
+
errors?: string[];
|
|
49
|
+
code?: string;
|
|
50
|
+
command: "dev" | "start";
|
|
51
|
+
browser: string;
|
|
52
|
+
runId?: string;
|
|
53
|
+
startedAt?: string;
|
|
54
|
+
distPath?: string;
|
|
55
|
+
manifestPath?: string;
|
|
56
|
+
port?: number | null;
|
|
57
|
+
pid?: number;
|
|
58
|
+
ts?: string;
|
|
59
|
+
compiledAt?: string | null;
|
|
60
|
+
}
|
|
61
|
+
export interface ProcessInfo {
|
|
62
|
+
pid: number;
|
|
63
|
+
browser: string;
|
|
64
|
+
port?: number;
|
|
65
|
+
projectPath: string;
|
|
66
|
+
command: "dev" | "start";
|
|
67
|
+
}
|
|
68
|
+
export type BrowserType = "chrome" | "edge" | "firefox" | "chromium-based" | "gecko-based";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
projectPath: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
feature: {
|
|
12
|
+
type: string;
|
|
13
|
+
enum: string[];
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
framework: {
|
|
17
|
+
type: string;
|
|
18
|
+
enum: string[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
required: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function handler(args: {
|
|
26
|
+
projectPath: string;
|
|
27
|
+
feature: string;
|
|
28
|
+
framework?: string;
|
|
29
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
projectPath: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
browser: {
|
|
12
|
+
type: string;
|
|
13
|
+
enum: string[];
|
|
14
|
+
default: string;
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
zip: {
|
|
18
|
+
type: string;
|
|
19
|
+
default: boolean;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
zipSource: {
|
|
23
|
+
type: string;
|
|
24
|
+
default: boolean;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
required: string[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare function handler(args: {
|
|
32
|
+
projectPath: string;
|
|
33
|
+
browser?: string;
|
|
34
|
+
zip?: boolean;
|
|
35
|
+
zipSource?: boolean;
|
|
36
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
projectName: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
template: {
|
|
12
|
+
type: string;
|
|
13
|
+
default: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
install: {
|
|
17
|
+
type: string;
|
|
18
|
+
default: boolean;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
required: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function handler(args: {
|
|
26
|
+
projectName: string;
|
|
27
|
+
template?: string;
|
|
28
|
+
install?: boolean;
|
|
29
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
browsers: {
|
|
8
|
+
type: string;
|
|
9
|
+
items: {
|
|
10
|
+
type: string;
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export declare function handler(args: {
|
|
19
|
+
browsers?: string[];
|
|
20
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
projectPath: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
browser: {
|
|
12
|
+
type: string;
|
|
13
|
+
enum: string[];
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
port: {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
noBrowser: {
|
|
21
|
+
type: string;
|
|
22
|
+
default: boolean;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
required: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare function handler(args: {
|
|
30
|
+
projectPath: string;
|
|
31
|
+
browser?: string;
|
|
32
|
+
port?: number;
|
|
33
|
+
noBrowser?: boolean;
|
|
34
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type ActArgs } from "../lib/act";
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: "object";
|
|
7
|
+
properties: {
|
|
8
|
+
projectPath: {
|
|
9
|
+
type: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
tab: {
|
|
13
|
+
type: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
context: {
|
|
17
|
+
type: string;
|
|
18
|
+
enum: string[];
|
|
19
|
+
default: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
include: {
|
|
23
|
+
type: string;
|
|
24
|
+
items: {
|
|
25
|
+
type: string;
|
|
26
|
+
enum: string[];
|
|
27
|
+
};
|
|
28
|
+
default: string[];
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
maxBytes: {
|
|
32
|
+
type: string;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
withConsole: {
|
|
36
|
+
type: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
browser: {
|
|
40
|
+
type: string;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
timeout: {
|
|
44
|
+
type: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
required: string[];
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export declare function handler(args: ActArgs & {
|
|
52
|
+
tab?: number;
|
|
53
|
+
include?: string[];
|
|
54
|
+
maxBytes?: number;
|
|
55
|
+
withConsole?: number;
|
|
56
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type ActArgs } from "../lib/act";
|
|
2
|
+
export declare const schema: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
inputSchema: {
|
|
6
|
+
type: "object";
|
|
7
|
+
properties: {
|
|
8
|
+
projectPath: {
|
|
9
|
+
type: string;
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
expression: {
|
|
13
|
+
type: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
context: {
|
|
17
|
+
type: string;
|
|
18
|
+
enum: string[];
|
|
19
|
+
default: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
url: {
|
|
23
|
+
type: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
tab: {
|
|
27
|
+
type: string;
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
browser: {
|
|
31
|
+
type: string;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
timeout: {
|
|
35
|
+
type: string;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
required: string[];
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare function handler(args: ActArgs & {
|
|
43
|
+
expression: string;
|
|
44
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
slug: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
files: {
|
|
12
|
+
type: string;
|
|
13
|
+
items: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
required: string[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export declare function handler(args: {
|
|
23
|
+
slug: string;
|
|
24
|
+
files?: string[];
|
|
25
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
projectPath: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
browser: {
|
|
12
|
+
type: string;
|
|
13
|
+
default: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
format: {
|
|
17
|
+
type: string;
|
|
18
|
+
enum: string[];
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
required: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare function handler(args: {
|
|
26
|
+
projectPath: string;
|
|
27
|
+
browser?: string;
|
|
28
|
+
format?: string;
|
|
29
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
browser: {
|
|
8
|
+
type: string;
|
|
9
|
+
enum: string[];
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
required: string[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare function handler(args: {
|
|
17
|
+
browser: string;
|
|
18
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
surface: {
|
|
8
|
+
type: string;
|
|
9
|
+
enum: string[];
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
framework: {
|
|
13
|
+
type: string;
|
|
14
|
+
enum: string[];
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
tags: {
|
|
18
|
+
type: string;
|
|
19
|
+
items: {
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
featured: {
|
|
25
|
+
type: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
query: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export declare function handler(args: {
|
|
36
|
+
surface?: string;
|
|
37
|
+
framework?: string;
|
|
38
|
+
tags?: string[];
|
|
39
|
+
featured?: boolean;
|
|
40
|
+
query?: string;
|
|
41
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
projectPath: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
browser: {
|
|
12
|
+
type: string;
|
|
13
|
+
default: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
level: {
|
|
17
|
+
type: string;
|
|
18
|
+
enum: string[];
|
|
19
|
+
default: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
context: {
|
|
23
|
+
type: string;
|
|
24
|
+
items: {
|
|
25
|
+
type: string;
|
|
26
|
+
enum: string[];
|
|
27
|
+
};
|
|
28
|
+
description: string;
|
|
29
|
+
};
|
|
30
|
+
signalsOnly: {
|
|
31
|
+
type: string;
|
|
32
|
+
default: boolean;
|
|
33
|
+
description: string;
|
|
34
|
+
};
|
|
35
|
+
since: {
|
|
36
|
+
type: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
url: {
|
|
40
|
+
type: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
tab: {
|
|
44
|
+
type: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
follow: {
|
|
48
|
+
type: string;
|
|
49
|
+
default: boolean;
|
|
50
|
+
description: string;
|
|
51
|
+
};
|
|
52
|
+
followMs: {
|
|
53
|
+
type: string;
|
|
54
|
+
default: number;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
limit: {
|
|
58
|
+
type: string;
|
|
59
|
+
default: number;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
required: string[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
interface LogsArgs {
|
|
67
|
+
projectPath: string;
|
|
68
|
+
browser?: string;
|
|
69
|
+
level?: string;
|
|
70
|
+
context?: string[] | string;
|
|
71
|
+
signalsOnly?: boolean;
|
|
72
|
+
since?: number;
|
|
73
|
+
url?: string;
|
|
74
|
+
tab?: number;
|
|
75
|
+
follow?: boolean;
|
|
76
|
+
followMs?: number;
|
|
77
|
+
limit?: number;
|
|
78
|
+
}
|
|
79
|
+
export declare function handler(args: LogsArgs): Promise<string>;
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
manifestPath: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
browsers: {
|
|
12
|
+
type: string;
|
|
13
|
+
items: {
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
default: string[];
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
required: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare function handler(args: {
|
|
24
|
+
manifestPath: string;
|
|
25
|
+
browsers?: string[];
|
|
26
|
+
}): Promise<string>;
|