@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.
Files changed (47) hide show
  1. package/WebMcp.ts +6 -0
  2. package/core.ts +1 -0
  3. package/dist/SimulatorMask-BHVXyogh-BFEGpD5S.js +1048 -0
  4. package/dist/SimulatorMask-BHVXyogh-CCYbrb84.js +801 -0
  5. package/dist/WebMcp.d.ts +3 -0
  6. package/dist/core.d.ts +1 -0
  7. package/dist/core.js +16 -15
  8. package/dist/index.d.ts +2 -1
  9. package/dist/index.es.dev.js +8201 -2640
  10. package/dist/index.es.js +21518 -16896
  11. package/dist/index.js +4033 -1847
  12. package/dist/index.umd.dev.js +9557 -3051
  13. package/dist/index.umd.js +500 -66
  14. package/dist/initialize-builtin-WebMCP-HgObT902.js +6279 -0
  15. package/dist/mcpsdk@1.25.3.dev.js +253 -94
  16. package/dist/mcpsdk@1.25.3.es.dev.js +253 -94
  17. package/dist/mcpsdk@1.25.3.es.js +5689 -5531
  18. package/dist/mcpsdk@1.25.3.js +32 -27
  19. package/dist/page-tools/a11y-tree.d.ts +103 -0
  20. package/dist/page-tools/bridge.d.ts +0 -6
  21. package/dist/page-tools/initialize-builtin-WebMCP.d.ts +1 -0
  22. package/dist/page-tools/page-agent-tool.d.ts +9 -0
  23. package/dist/page-tools/page-state-cache.d.ts +36 -0
  24. package/dist/webagent.dev.js +3614 -1880
  25. package/dist/webagent.es.dev.js +3370 -1532
  26. package/dist/webagent.es.js +15958 -14259
  27. package/dist/webagent.js +74 -66
  28. package/dist/webmcp-full.dev.js +7625 -719
  29. package/dist/webmcp-full.es.dev.js +6437 -580
  30. package/dist/webmcp-full.es.js +12146 -7590
  31. package/dist/webmcp-full.js +631 -29
  32. package/dist/webmcp.dev.js +8002 -25
  33. package/dist/webmcp.es.dev.js +6932 -3
  34. package/dist/webmcp.es.js +6180 -859
  35. package/dist/webmcp.js +602 -1
  36. package/index.ts +2 -14
  37. package/package.json +11 -4
  38. package/page-tools/a11y-tree.ts +532 -0
  39. package/page-tools/bridge.ts +48 -14
  40. package/page-tools/initialize-builtin-WebMCP.ts +20 -0
  41. package/page-tools/page-agent-prompt.md +123 -0
  42. package/page-tools/page-agent-tool.ts +223 -0
  43. package/page-tools/page-state-cache.ts +78 -0
  44. package/remoter/createRemoter.ts +2 -1
  45. package/remoter/svgs/logo.svg +45 -0
  46. package/vite-env.d.ts +5 -0
  47. 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 n } from "@opentiny/next";
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 f } from "@modelcontextprotocol/sdk/shared/metadataUtils.js";
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 h, d as v, W as b, h as d, a as A, c as P, e as E, f as u, g as W, m as j, b as y, l as D, i as H, j as I, k } from "./AgentModelProvider-t6BqhAGn.js";
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
- n as AuthClientProvider,
14
- h as ExtensionClientTransport,
13
+ o as AuthClientProvider,
14
+ b as ExtensionClientTransport,
15
15
  S as InMemoryTransport,
16
16
  l as ResourceTemplate,
17
17
  T as UriTemplate,
18
- v as WebMcpClient,
19
- b as WebMcpServer,
18
+ h as WebMcpClient,
19
+ v as WebMcpServer,
20
20
  C as completable,
21
- d as createMessageChannelClientTransport,
22
- A as createMessageChannelPairTransport,
23
- P as createMessageChannelServerTransport,
24
- E as createSSEClientTransport,
25
- u as createStreamableHTTPClientTransport,
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
- f as getDisplayName,
28
- j as isMcpClient,
29
- y as isMcpServer,
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 declare const initializeBuiltinWebMCP: () => void;
32
+ export { initializeBuiltinWebMCP } from './page-tools/initialize-builtin-WebMCP';
33
+ export { registerPageAgentTool } from './page-tools/page-agent-tool';