@opentiny/next-sdk 0.3.2 → 0.3.3-alpha.1
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/WebMcp.ts +6 -0
- package/core.ts +1 -0
- package/dist/SimulatorMask-BHVXyogh-BFEGpD5S.js +1048 -0
- package/dist/SimulatorMask-BHVXyogh-CCYbrb84.js +801 -0
- package/dist/WebMcp.d.ts +3 -0
- package/dist/core.d.ts +1 -0
- package/dist/core.js +16 -15
- package/dist/index.d.ts +2 -1
- package/dist/index.es.dev.js +8201 -2640
- package/dist/index.es.js +21518 -16896
- package/dist/index.js +4033 -1847
- package/dist/index.umd.dev.js +9557 -3051
- package/dist/index.umd.js +500 -66
- package/dist/initialize-builtin-WebMCP-HgObT902.js +6279 -0
- package/dist/mcpsdk@1.25.3.dev.js +253 -94
- package/dist/mcpsdk@1.25.3.es.dev.js +253 -94
- package/dist/mcpsdk@1.25.3.es.js +5689 -5531
- package/dist/mcpsdk@1.25.3.js +32 -27
- package/dist/page-tools/a11y-tree.d.ts +103 -0
- package/dist/page-tools/bridge.d.ts +0 -6
- package/dist/page-tools/initialize-builtin-WebMCP.d.ts +1 -0
- package/dist/page-tools/page-agent-tool.d.ts +9 -0
- package/dist/page-tools/page-state-cache.d.ts +36 -0
- package/dist/webagent.dev.js +3614 -1880
- package/dist/webagent.es.dev.js +3370 -1532
- package/dist/webagent.es.js +15958 -14259
- package/dist/webagent.js +74 -66
- package/dist/webmcp-full.dev.js +7625 -719
- package/dist/webmcp-full.es.dev.js +6437 -580
- package/dist/webmcp-full.es.js +12146 -7590
- package/dist/webmcp-full.js +631 -29
- package/dist/webmcp.dev.js +8002 -25
- package/dist/webmcp.es.dev.js +6932 -3
- package/dist/webmcp.es.js +6180 -859
- package/dist/webmcp.js +602 -1
- package/index.ts +2 -14
- package/package.json +11 -4
- package/page-tools/a11y-tree.ts +532 -0
- package/page-tools/bridge.ts +48 -14
- package/page-tools/initialize-builtin-WebMCP.ts +20 -0
- package/page-tools/page-agent-prompt.md +123 -0
- package/page-tools/page-agent-tool.ts +223 -0
- package/page-tools/page-state-cache.ts +78 -0
- package/remoter/createRemoter.ts +2 -1
- package/remoter/svgs/logo.svg +45 -0
- package/vite-env.d.ts +5 -0
- package/dist/AgentModelProvider-t6BqhAGn.js +0 -4194
package/dist/WebMcp.d.ts
CHANGED
|
@@ -18,3 +18,6 @@ export type * from '@modelcontextprotocol/sdk/client/sse.js';
|
|
|
18
18
|
export type * from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
19
19
|
export type * from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
20
20
|
export * from './transport/ExtensionPageServerTransport';
|
|
21
|
+
export { initializeBuiltinWebMCP } from './page-tools/initialize-builtin-WebMCP';
|
|
22
|
+
export { setupModelContextBridge } from './page-tools/bridge';
|
|
23
|
+
export { registerPageAgentTool } from './page-tools/page-agent-tool';
|
package/dist/core.d.ts
CHANGED
|
@@ -22,3 +22,4 @@ export * from './transport/ExtensionClientTransport';
|
|
|
22
22
|
export { AgentModelProvider } from './agent/AgentModelProvider';
|
|
23
23
|
export { getAISDKTools } from './agent/utils/getAISDKTools';
|
|
24
24
|
export type * from './agent/type';
|
|
25
|
+
export { initializeBuiltinWebMCP } from './page-tools/initialize-builtin-WebMCP';
|
package/dist/core.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { default as a } from "ajv";
|
|
2
2
|
import { z as t } from "zod";
|
|
3
|
-
import { AuthClientProvider as
|
|
3
|
+
import { AuthClientProvider as o } from "@opentiny/next";
|
|
4
4
|
import { ResourceTemplate as l } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
5
5
|
import { UriTemplate as T } from "@modelcontextprotocol/sdk/shared/uriTemplate.js";
|
|
6
6
|
import { completable as C } from "@modelcontextprotocol/sdk/server/completable.js";
|
|
7
|
-
import { getDisplayName as
|
|
7
|
+
import { getDisplayName as M } from "@modelcontextprotocol/sdk/shared/metadataUtils.js";
|
|
8
8
|
import { InMemoryTransport as S } from "@modelcontextprotocol/sdk/inMemory.js";
|
|
9
|
-
import { A as g, E as
|
|
9
|
+
import { A as g, E as b, e as h, W as v, j as P, a as d, c as A, f as u, h as E, g as W, i as j, n as y, d as z, m as D, b as H, k as I, l as k } from "./initialize-builtin-WebMCP-HgObT902.js";
|
|
10
10
|
export {
|
|
11
11
|
g as AgentModelProvider,
|
|
12
12
|
a as Ajv,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
o as AuthClientProvider,
|
|
14
|
+
b as ExtensionClientTransport,
|
|
15
15
|
S as InMemoryTransport,
|
|
16
16
|
l as ResourceTemplate,
|
|
17
17
|
T as UriTemplate,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
h as WebMcpClient,
|
|
19
|
+
v as WebMcpServer,
|
|
20
20
|
C as completable,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
P as createMessageChannelClientTransport,
|
|
22
|
+
d as createMessageChannelPairTransport,
|
|
23
|
+
A as createMessageChannelServerTransport,
|
|
24
|
+
u as createSSEClientTransport,
|
|
25
|
+
E as createStreamableHTTPClientTransport,
|
|
26
26
|
W as getAISDKTools,
|
|
27
|
-
|
|
28
|
-
j as
|
|
29
|
-
y as
|
|
27
|
+
M as getDisplayName,
|
|
28
|
+
j as initializeBuiltinWebMCP,
|
|
29
|
+
y as isMcpClient,
|
|
30
|
+
z as isMcpServer,
|
|
30
31
|
D as isMessageChannelClientTransport,
|
|
31
32
|
H as isMessageChannelServerTransport,
|
|
32
33
|
I as isSSEClientTransport,
|
package/dist/index.d.ts
CHANGED
|
@@ -29,4 +29,5 @@ export type * from './agent/type';
|
|
|
29
29
|
export * from './page-tools/bridge';
|
|
30
30
|
export { getSkillOverviews, formatSkillsForSystemPrompt, getSkillMdContent, getMainSkillPaths, getMainSkillPathByName, parseSkillFrontMatter, createSkillTools, type SkillMeta, type SkillToolsSet } from './skills/index';
|
|
31
31
|
export * from '@mcp-b/webmcp-polyfill';
|
|
32
|
-
export
|
|
32
|
+
export { initializeBuiltinWebMCP } from './page-tools/initialize-builtin-WebMCP';
|
|
33
|
+
export { registerPageAgentTool } from './page-tools/page-agent-tool';
|