managed-deepagents 0.5.3-dev.110 → 0.5.3-dev.112

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 (240) hide show
  1. package/README.md +1 -12
  2. package/dist/channels/slack/http.d.ts.map +1 -1
  3. package/dist/channels/slack/http.js +3 -48
  4. package/dist/channels/slack/http.js.map +1 -1
  5. package/dist/channels/slack/index.d.ts +2 -3
  6. package/dist/channels/slack/index.d.ts.map +1 -1
  7. package/dist/channels/slack/index.js +2 -3
  8. package/dist/channels/slack/index.js.map +1 -1
  9. package/dist/connectors/mcp/index.d.ts.map +1 -1
  10. package/dist/connectors/mcp/index.js +5 -1
  11. package/dist/connectors/mcp/index.js.map +1 -1
  12. package/dist/connectors/mcp/load.js +3 -0
  13. package/dist/connectors/mcp/load.js.map +1 -1
  14. package/dist/connectors/tool-selection.d.ts +13 -18
  15. package/dist/connectors/tool-selection.d.ts.map +1 -1
  16. package/dist/connectors/tool-selection.js +10 -13
  17. package/dist/connectors/tool-selection.js.map +1 -1
  18. package/dist/extension.d.ts +5 -5
  19. package/dist/extension.js +5 -5
  20. package/dist/identity/credential-resolvers.d.ts +1 -13
  21. package/dist/identity/credential-resolvers.d.ts.map +1 -1
  22. package/dist/identity/credential-resolvers.js +1 -32
  23. package/dist/identity/credential-resolvers.js.map +1 -1
  24. package/dist/identity/github/credentials-store.d.ts +3 -3
  25. package/dist/identity/github/credentials-store.js +4 -4
  26. package/dist/identity/github/credentials-store.js.map +1 -1
  27. package/dist/identity/github/credentials.d.ts +7 -9
  28. package/dist/identity/github/credentials.d.ts.map +1 -1
  29. package/dist/identity/github/credentials.js +4 -22
  30. package/dist/identity/github/credentials.js.map +1 -1
  31. package/dist/identity/github/index.d.ts +1 -3
  32. package/dist/identity/github/index.d.ts.map +1 -1
  33. package/dist/identity/github/index.js +1 -2
  34. package/dist/identity/github/index.js.map +1 -1
  35. package/dist/identity/index.d.ts +1 -8
  36. package/dist/identity/index.d.ts.map +1 -1
  37. package/dist/identity/index.js +0 -11
  38. package/dist/identity/index.js.map +1 -1
  39. package/dist/identity/options.d.ts +3 -3
  40. package/dist/identity/options.js +3 -9
  41. package/dist/identity/options.js.map +1 -1
  42. package/dist/identity/slack/links.d.ts +1 -2
  43. package/dist/identity/slack/links.d.ts.map +1 -1
  44. package/dist/identity/slack/links.js +1 -2
  45. package/dist/identity/slack/links.js.map +1 -1
  46. package/dist/identity/types.d.ts +8 -29
  47. package/dist/identity/types.d.ts.map +1 -1
  48. package/dist/index.d.ts +1 -4
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js.map +1 -1
  51. package/dist/namespaces.d.ts +5 -177
  52. package/dist/namespaces.d.ts.map +1 -1
  53. package/dist/namespaces.js +1 -57
  54. package/dist/namespaces.js.map +1 -1
  55. package/dist/runtime/auth.d.ts +1 -1
  56. package/dist/runtime/auth.js +1 -1
  57. package/dist/runtime/cors.d.ts +1 -0
  58. package/dist/runtime/cors.d.ts.map +1 -1
  59. package/dist/runtime/cors.js +1 -1
  60. package/dist/runtime/cors.js.map +1 -1
  61. package/dist/runtime/credentials.d.ts +1 -1
  62. package/dist/runtime/credentials.js +1 -1
  63. package/dist/runtime/identity-http.d.ts.map +1 -1
  64. package/dist/runtime/identity-http.js +0 -69
  65. package/dist/runtime/identity-http.js.map +1 -1
  66. package/dist/runtime/index.d.ts +0 -8
  67. package/dist/runtime/index.d.ts.map +1 -1
  68. package/dist/runtime/index.js +0 -35
  69. package/dist/runtime/index.js.map +1 -1
  70. package/package.json +12 -14
  71. package/dist/connectors/marketplace/catalog.d.ts +0 -96
  72. package/dist/connectors/marketplace/catalog.d.ts.map +0 -1
  73. package/dist/connectors/marketplace/catalog.js +0 -213
  74. package/dist/connectors/marketplace/catalog.js.map +0 -1
  75. package/dist/connectors/marketplace/fleet-mcp.d.ts +0 -62
  76. package/dist/connectors/marketplace/fleet-mcp.d.ts.map +0 -1
  77. package/dist/connectors/marketplace/fleet-mcp.js +0 -215
  78. package/dist/connectors/marketplace/fleet-mcp.js.map +0 -1
  79. package/dist/connectors/marketplace/index.d.ts +0 -31
  80. package/dist/connectors/marketplace/index.d.ts.map +0 -1
  81. package/dist/connectors/marketplace/index.js +0 -39
  82. package/dist/connectors/marketplace/index.js.map +0 -1
  83. package/dist/connectors/marketplace/load.d.ts +0 -14
  84. package/dist/connectors/marketplace/load.d.ts.map +0 -1
  85. package/dist/connectors/marketplace/load.js +0 -206
  86. package/dist/connectors/marketplace/load.js.map +0 -1
  87. package/dist/connectors/slack/index.d.ts +0 -24
  88. package/dist/connectors/slack/index.d.ts.map +0 -1
  89. package/dist/connectors/slack/index.js +0 -64
  90. package/dist/connectors/slack/index.js.map +0 -1
  91. package/dist/connectors/toolserver/catalog.d.ts +0 -326
  92. package/dist/connectors/toolserver/catalog.d.ts.map +0 -1
  93. package/dist/connectors/toolserver/catalog.js +0 -415
  94. package/dist/connectors/toolserver/catalog.js.map +0 -1
  95. package/dist/connectors/toolserver/connectors.d.ts +0 -698
  96. package/dist/connectors/toolserver/connectors.d.ts.map +0 -1
  97. package/dist/connectors/toolserver/connectors.js +0 -13
  98. package/dist/connectors/toolserver/connectors.js.map +0 -1
  99. package/dist/connectors/toolserver/index.d.ts +0 -142
  100. package/dist/connectors/toolserver/index.d.ts.map +0 -1
  101. package/dist/connectors/toolserver/index.js +0 -105
  102. package/dist/connectors/toolserver/index.js.map +0 -1
  103. package/dist/connectors/toolserver/integrations.d.ts +0 -103
  104. package/dist/connectors/toolserver/integrations.d.ts.map +0 -1
  105. package/dist/connectors/toolserver/integrations.js +0 -288
  106. package/dist/connectors/toolserver/integrations.js.map +0 -1
  107. package/dist/connectors/toolserver/load.d.ts +0 -55
  108. package/dist/connectors/toolserver/load.d.ts.map +0 -1
  109. package/dist/connectors/toolserver/load.js +0 -289
  110. package/dist/connectors/toolserver/load.js.map +0 -1
  111. package/dist/identity/actor-subject.d.ts +0 -60
  112. package/dist/identity/actor-subject.d.ts.map +0 -1
  113. package/dist/identity/actor-subject.js +0 -107
  114. package/dist/identity/actor-subject.js.map +0 -1
  115. package/dist/identity/byo-oauth.d.ts +0 -105
  116. package/dist/identity/byo-oauth.d.ts.map +0 -1
  117. package/dist/identity/byo-oauth.js +0 -190
  118. package/dist/identity/byo-oauth.js.map +0 -1
  119. package/dist/identity/connect-inference.d.ts +0 -37
  120. package/dist/identity/connect-inference.d.ts.map +0 -1
  121. package/dist/identity/connect-inference.js +0 -53
  122. package/dist/identity/connect-inference.js.map +0 -1
  123. package/dist/identity/connect-paths.d.ts +0 -8
  124. package/dist/identity/connect-paths.d.ts.map +0 -1
  125. package/dist/identity/connect-paths.js +0 -11
  126. package/dist/identity/connect-paths.js.map +0 -1
  127. package/dist/identity/connect-provider-types.d.ts +0 -97
  128. package/dist/identity/connect-provider-types.d.ts.map +0 -1
  129. package/dist/identity/connect-provider-types.js +0 -10
  130. package/dist/identity/connect-provider-types.js.map +0 -1
  131. package/dist/identity/connect-provider.d.ts +0 -35
  132. package/dist/identity/connect-provider.d.ts.map +0 -1
  133. package/dist/identity/connect-provider.js +0 -148
  134. package/dist/identity/connect-provider.js.map +0 -1
  135. package/dist/identity/define-fleet-connect.d.ts +0 -53
  136. package/dist/identity/define-fleet-connect.d.ts.map +0 -1
  137. package/dist/identity/define-fleet-connect.js +0 -76
  138. package/dist/identity/define-fleet-connect.js.map +0 -1
  139. package/dist/identity/fleet-connect-hint.d.ts +0 -41
  140. package/dist/identity/fleet-connect-hint.d.ts.map +0 -1
  141. package/dist/identity/fleet-connect-hint.js +0 -190
  142. package/dist/identity/fleet-connect-hint.js.map +0 -1
  143. package/dist/identity/fleet-connect.d.ts +0 -93
  144. package/dist/identity/fleet-connect.d.ts.map +0 -1
  145. package/dist/identity/fleet-connect.js +0 -256
  146. package/dist/identity/fleet-connect.js.map +0 -1
  147. package/dist/identity/fleet-integration-connect.d.ts +0 -32
  148. package/dist/identity/fleet-integration-connect.d.ts.map +0 -1
  149. package/dist/identity/fleet-integration-connect.js +0 -35
  150. package/dist/identity/fleet-integration-connect.js.map +0 -1
  151. package/dist/identity/fleet.d.ts +0 -56
  152. package/dist/identity/fleet.d.ts.map +0 -1
  153. package/dist/identity/fleet.js +0 -131
  154. package/dist/identity/fleet.js.map +0 -1
  155. package/dist/identity/github/connect-http.d.ts +0 -37
  156. package/dist/identity/github/connect-http.d.ts.map +0 -1
  157. package/dist/identity/github/connect-http.js +0 -128
  158. package/dist/identity/github/connect-http.js.map +0 -1
  159. package/dist/identity/github/oauth.d.ts +0 -47
  160. package/dist/identity/github/oauth.d.ts.map +0 -1
  161. package/dist/identity/github/oauth.js +0 -124
  162. package/dist/identity/github/oauth.js.map +0 -1
  163. package/dist/identity/google/connect-http.d.ts +0 -37
  164. package/dist/identity/google/connect-http.d.ts.map +0 -1
  165. package/dist/identity/google/connect-http.js +0 -42
  166. package/dist/identity/google/connect-http.js.map +0 -1
  167. package/dist/identity/google/index.d.ts +0 -7
  168. package/dist/identity/google/index.d.ts.map +0 -1
  169. package/dist/identity/google/index.js +0 -6
  170. package/dist/identity/google/index.js.map +0 -1
  171. package/dist/identity/google/oauth.d.ts +0 -22
  172. package/dist/identity/google/oauth.d.ts.map +0 -1
  173. package/dist/identity/google/oauth.js +0 -48
  174. package/dist/identity/google/oauth.js.map +0 -1
  175. package/dist/identity/linkedin/connect-http.d.ts +0 -37
  176. package/dist/identity/linkedin/connect-http.d.ts.map +0 -1
  177. package/dist/identity/linkedin/connect-http.js +0 -41
  178. package/dist/identity/linkedin/connect-http.js.map +0 -1
  179. package/dist/identity/linkedin/index.d.ts +0 -7
  180. package/dist/identity/linkedin/index.d.ts.map +0 -1
  181. package/dist/identity/linkedin/index.js +0 -6
  182. package/dist/identity/linkedin/index.js.map +0 -1
  183. package/dist/identity/linkedin/oauth.d.ts +0 -22
  184. package/dist/identity/linkedin/oauth.d.ts.map +0 -1
  185. package/dist/identity/linkedin/oauth.js +0 -47
  186. package/dist/identity/linkedin/oauth.js.map +0 -1
  187. package/dist/identity/marketplace/connect-hint.d.ts +0 -31
  188. package/dist/identity/marketplace/connect-hint.d.ts.map +0 -1
  189. package/dist/identity/marketplace/connect-hint.js +0 -59
  190. package/dist/identity/marketplace/connect-hint.js.map +0 -1
  191. package/dist/identity/marketplace/connect.d.ts +0 -51
  192. package/dist/identity/marketplace/connect.d.ts.map +0 -1
  193. package/dist/identity/marketplace/connect.js +0 -88
  194. package/dist/identity/marketplace/connect.js.map +0 -1
  195. package/dist/identity/marketplace/index.d.ts +0 -9
  196. package/dist/identity/marketplace/index.d.ts.map +0 -1
  197. package/dist/identity/marketplace/index.js +0 -9
  198. package/dist/identity/marketplace/index.js.map +0 -1
  199. package/dist/identity/microsoft/connect-http.d.ts +0 -38
  200. package/dist/identity/microsoft/connect-http.d.ts.map +0 -1
  201. package/dist/identity/microsoft/connect-http.js +0 -42
  202. package/dist/identity/microsoft/connect-http.js.map +0 -1
  203. package/dist/identity/microsoft/index.d.ts +0 -7
  204. package/dist/identity/microsoft/index.d.ts.map +0 -1
  205. package/dist/identity/microsoft/index.js +0 -6
  206. package/dist/identity/microsoft/index.js.map +0 -1
  207. package/dist/identity/microsoft/oauth.d.ts +0 -24
  208. package/dist/identity/microsoft/oauth.d.ts.map +0 -1
  209. package/dist/identity/microsoft/oauth.js +0 -65
  210. package/dist/identity/microsoft/oauth.js.map +0 -1
  211. package/dist/identity/oauth-env.d.ts +0 -43
  212. package/dist/identity/oauth-env.d.ts.map +0 -1
  213. package/dist/identity/oauth-env.js +0 -66
  214. package/dist/identity/oauth-env.js.map +0 -1
  215. package/dist/identity/oauth-tickets.d.ts +0 -37
  216. package/dist/identity/oauth-tickets.d.ts.map +0 -1
  217. package/dist/identity/oauth-tickets.js +0 -114
  218. package/dist/identity/oauth-tickets.js.map +0 -1
  219. package/dist/identity/slack/connect-http.d.ts +0 -35
  220. package/dist/identity/slack/connect-http.d.ts.map +0 -1
  221. package/dist/identity/slack/connect-http.js +0 -115
  222. package/dist/identity/slack/connect-http.js.map +0 -1
  223. package/dist/identity/slack/index.d.ts +0 -8
  224. package/dist/identity/slack/index.d.ts.map +0 -1
  225. package/dist/identity/slack/index.js +0 -7
  226. package/dist/identity/slack/index.js.map +0 -1
  227. package/dist/identity/slack/oauth.d.ts +0 -28
  228. package/dist/identity/slack/oauth.d.ts.map +0 -1
  229. package/dist/identity/slack/oauth.js +0 -87
  230. package/dist/identity/slack/oauth.js.map +0 -1
  231. package/dist/identity/x/connect-http.d.ts +0 -38
  232. package/dist/identity/x/connect-http.d.ts.map +0 -1
  233. package/dist/identity/x/connect-http.js +0 -41
  234. package/dist/identity/x/connect-http.js.map +0 -1
  235. package/dist/identity/x/index.d.ts +0 -6
  236. package/dist/identity/x/index.d.ts.map +0 -1
  237. package/dist/identity/x/index.js +0 -5
  238. package/dist/identity/x/index.js.map +0 -1
  239. package/types/index.d.ts +0 -6
  240. package/types/markdown-md.d.ts +0 -14
@@ -2,11 +2,6 @@ import { ContextHubBackend, FilesystemBackend, createDeepAgent, } from "deepagen
2
2
  import { LazyManagedSandboxBackend } from "./backend.js";
3
3
  import { loadConnectorTools } from "./connector.js";
4
4
  import { createScheduleDeliveryMiddleware } from "../channels/schedule-delivery.js";
5
- import { enableActorSubjectIntegrationsFromConnectors, isActorSubjectIntegrationEnabled, } from "../identity/actor-subject.js";
6
- import { MARKETPLACE_MCP_INTEGRATIONS, hasMarketplaceConnector, } from "../connectors/marketplace/catalog.js";
7
- import { FLEET_OAUTH_INTEGRATIONS, hasIntegrationToolServerConnector, } from "../connectors/toolserver/integrations.js";
8
- import { createFleetConnectHintMiddleware } from "../identity/fleet-connect-hint.js";
9
- import { createMarketplaceConnectHintMiddleware } from "../identity/marketplace/index.js";
10
5
  import { wrapMiddlewareWithManagedRuntime, } from "./managed-middleware.js";
11
6
  import { wrapToolsWithManagedRuntime, } from "./managed-tools.js";
12
7
  import { createMemoryInstructionsMiddleware, hasAgentMemorySlice, hotMemoryPaths, } from "../memory/index.js";
@@ -17,13 +12,6 @@ export { createEvalTrialFilesystemBackend, normalizeEvalVirtualPath, } from "./e
17
12
  export { MANAGED_RECURSION_LIMIT, applyManagedRecursionLimit, } from "./recursion-limit.js";
18
13
  export { buildManagedAuth } from "./auth.js";
19
14
  export { buildManagedHttpApp } from "./identity-http.js";
20
- export { identityConnectPaths, mountIdentityConnectProviders, } from "../identity/connect-provider.js";
21
- export { credentialConnectIds, googleScopesForConnectorKinds, hasChannelForProvider, hasGoogleToolServerConnector, hasMicrosoftToolServerConnector, isGoogleToolServerSlug, isMicrosoftToolServerSlug, isUserScopedDeployment, microsoftScopesForConnectorKinds, FLEET_OAUTH_INTEGRATIONS, integrationById, integrationForSlug, scopesForIntegrationConnectorKinds, } from "../identity/connect-inference.js";
22
- export { agentIdFromActor, enableActorSubjectIntegrationsFromConnectors, enableActorSubjectIntegration, isActorSubjectIntegrationEnabled, isActorSubjectSlugEnabled, NAMESPACE_MDA_ACTOR, resetActorSubjectEnabledForTests, } from "../identity/actor-subject.js";
23
- export { createFleetVaultConnectProvider, fleetConnectUrl, } from "../identity/fleet-connect.js";
24
- export { createByoOauthClient, } from "../identity/byo-oauth.js";
25
- export { createFleetConnectHintMiddleware, rewriteFleetToolError, } from "../identity/fleet-connect-hint.js";
26
- export { createMarketplaceConnectHintMiddleware, marketplaceAsFleetHint, marketplaceConnectHintUrl, } from "../identity/marketplace/index.js";
27
15
  // The brand and its hook contexts live on this subpath only, never on the
28
16
  // authoring barrel: a project selects connectors from `connectors.*` and cannot
29
17
  // brand one of its own.
@@ -57,19 +45,6 @@ export async function compileManagedAgent(definition, config, options) {
57
45
  /** Set when a memory slice is mounted, gating the memory-policy middleware. */
58
46
  let mountsMemory = false;
59
47
  const params = { ...agentConfig };
60
- const connectorKinds = (connectors ?? []).map((connector) => (connector &&
61
- typeof connector === "object" &&
62
- "kind" in connector &&
63
- typeof connector.kind === "string"
64
- ? connector.kind
65
- : undefined) ??
66
- (connector &&
67
- typeof connector === "object" &&
68
- "name" in connector &&
69
- typeof connector.name === "string"
70
- ? connector.name
71
- : undefined));
72
- enableActorSubjectIntegrationsFromConnectors(connectorKinds, identity?.config?.scope);
73
48
  /**
74
49
  * Loading connector tools (e.g. MCP) can involve independent network
75
50
  * round-trips, so kick it off up front and let it run concurrently with
@@ -152,16 +127,7 @@ export async function compileManagedAgent(definition, config, options) {
152
127
  const wrappedAuthored = identity
153
128
  ? wrapMiddlewareWithManagedRuntime(authoredMiddleware, identity.config)
154
129
  : authoredMiddleware;
155
- const fleetHintRaw = FLEET_OAUTH_INTEGRATIONS.filter((integration) => isActorSubjectIntegrationEnabled(integration.id) &&
156
- hasIntegrationToolServerConnector(integration, connectorKinds)).map((integration) => createFleetConnectHintMiddleware({ integration }));
157
- const marketplaceHintRaw = MARKETPLACE_MCP_INTEGRATIONS.filter((integration) => isActorSubjectIntegrationEnabled(integration.id) &&
158
- hasMarketplaceConnector(integration.id, connectorKinds)).map((integration) => createMarketplaceConnectHintMiddleware(integration));
159
- const connectHints = identity
160
- ? wrapMiddlewareWithManagedRuntime([...fleetHintRaw, ...marketplaceHintRaw], identity.config)
161
- : [...fleetHintRaw, ...marketplaceHintRaw];
162
130
  // Always-on schedule deliverTo auto-post (cron runs); prepend before authored.
163
- // Connect hints (toolserver Fleet OAuth + marketplace MCP) so the model asks
164
- // the user to link before tools fail silently.
165
131
  // The memory policy goes last on purpose. First in this list is outermost, so a
166
132
  // middleware placed earlier can have its prompt replaced by an authored one that
167
133
  // rewrites `systemPrompt` wholesale — and this policy is a security control, not a
@@ -170,7 +136,6 @@ export async function compileManagedAgent(definition, config, options) {
170
136
  // wording stays accurate.
171
137
  params.middleware = [
172
138
  createScheduleDeliveryMiddleware(),
173
- ...connectHints,
174
139
  ...wrappedAuthored,
175
140
  ...(mountsMemory ? [createMemoryInstructionsMiddleware()] : []),
176
141
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,iBA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AI,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,iBAAiB,CAAC,WAAW,CAAC,EAAE,CAAC;IACtE,CAAC;IACD,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO;YACL,IAAI,EAAE,YAAY;YAClB,OAAO,EAAE,IAAI,iBAAiB,CAAC;gBAC7B,OAAO,EAAE,WAAW;gBACpB,WAAW,EAAE,IAAI;aAClB,CAAC;YACF,OAAO,EAAE,WAAW;SACrB,CAAC;IACJ,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "managed-deepagents",
3
- "version": "0.5.3-dev.110",
3
+ "version": "0.5.3-dev.112",
4
4
  "description": "Managed Deep Agents — the `defineDeepAgent` authoring interface plus the CLI that compiles and deploys a code-first Deep Agent repository to a managed LangGraph runtime.",
5
5
  "keywords": [
6
6
  "langchain",
@@ -17,10 +17,10 @@
17
17
  "license": "MIT",
18
18
  "type": "module",
19
19
  "main": "./dist/index.js",
20
- "types": "./types/index.d.ts",
20
+ "types": "./dist/index.d.ts",
21
21
  "exports": {
22
22
  ".": {
23
- "types": "./types/index.d.ts",
23
+ "types": "./dist/index.d.ts",
24
24
  "default": "./dist/index.js"
25
25
  },
26
26
  "./runtime": {
@@ -33,12 +33,10 @@
33
33
  },
34
34
  "files": [
35
35
  "dist",
36
- "types",
37
36
  "bin/mda.mjs"
38
37
  ],
39
38
  "scripts": {
40
- "build": "node scripts/build.mjs",
41
- "compile": "tsc -p tsconfig.json",
39
+ "build": "tsc -p tsconfig.json",
42
40
  "clean": "rm -rf dist",
43
41
  "format": "oxfmt --config ../../.oxfmtrc.jsonc --write src",
44
42
  "format:check": "oxfmt --config ../../.oxfmtrc.jsonc --check src",
@@ -52,7 +50,7 @@
52
50
  "node": ">=22"
53
51
  },
54
52
  "dependencies": {
55
- "@langchain/core": "^1.2.4",
53
+ "@langchain/core": "^1.2.5",
56
54
  "@langchain/langgraph": "^1.4.9",
57
55
  "@langchain/langgraph-sdk": "^1.9.28",
58
56
  "@langchain/mcp-adapters": "^1.1.3",
@@ -60,18 +58,18 @@
60
58
  "deepagents": "^1.12.1",
61
59
  "hono": "^4.12.32",
62
60
  "jose": "^6.2.4",
63
- "langchain": "^1.5.4",
61
+ "langchain": "^1.5.5",
64
62
  "langsmith": "^0.8.9",
65
63
  "uuid": "^14.0.1",
66
64
  "zod": "^4.4.3"
67
65
  },
68
66
  "optionalDependencies": {
69
- "@langchain/managed-deepagents-darwin-arm64": "0.5.3-dev.110",
70
- "@langchain/managed-deepagents-darwin-x64": "0.5.3-dev.110",
71
- "@langchain/managed-deepagents-linux-arm64": "0.5.3-dev.110",
72
- "@langchain/managed-deepagents-linux-x64": "0.5.3-dev.110",
73
- "@langchain/managed-deepagents-win32-arm64": "0.5.3-dev.110",
74
- "@langchain/managed-deepagents-win32-x64": "0.5.3-dev.110"
67
+ "@langchain/managed-deepagents-darwin-arm64": "0.5.3-dev.112",
68
+ "@langchain/managed-deepagents-darwin-x64": "0.5.3-dev.112",
69
+ "@langchain/managed-deepagents-linux-arm64": "0.5.3-dev.112",
70
+ "@langchain/managed-deepagents-linux-x64": "0.5.3-dev.112",
71
+ "@langchain/managed-deepagents-win32-arm64": "0.5.3-dev.112",
72
+ "@langchain/managed-deepagents-win32-x64": "0.5.3-dev.112"
75
73
  },
76
74
  "devDependencies": {
77
75
  "@types/node": "^26.1.1",
@@ -1,96 +0,0 @@
1
- /**
2
- * Fleet marketplace MCP integrations bridged by MDA.
3
- *
4
- * These are third-party remote MCP servers (e.g. Notion at mcp.notion.com),
5
- * not LangSmith toolserver built-ins. Credentials stay in the LangSmith vault;
6
- * MDA invokes via `POST /v1/mcp/proxy` with an actor/agent subject.
7
- *
8
- * Tool names are vendor-owned and listed here for authoring docs / soft typing.
9
- * The live MCP server remains the runtime source of truth.
10
- *
11
- * Entries mirror the active Fleet marketplace catalog in langchainplus
12
- * (`smith-frontend/.../marketplace-catalog.ts`). Built-ins (Gmail, Slack, …)
13
- * stay on the toolserver path — do not duplicate them here.
14
- */
15
- /** A marketplace MCP integration MDA can expose as `connectors.<id>()`. */
16
- export interface MarketplaceMcpIntegration {
17
- /** Stable integration id (actor-subject + connect id), e.g. `"notion"`. */
18
- readonly id: string;
19
- /** Connect path segment / `connect.<id>()` name. */
20
- readonly connectId: string;
21
- /** Human label for agent hints ("Notion"). */
22
- readonly displayName: string;
23
- /** Canonical MCP server URL used to discover the workspace `mcp_servers` row. */
24
- readonly mcpUrl: string;
25
- /**
26
- * Common tool names published by the vendor MCP (for docs / includeTools).
27
- * Not an exhaustive guarantee — the live server may add or remove tools.
28
- */
29
- readonly tools: readonly string[];
30
- /** Default OAuth scopes for Fleet auth-sessions when the provider needs them. */
31
- readonly scopes?: readonly string[];
32
- }
33
- /**
34
- * Built-in marketplace MCP integrations.
35
- *
36
- * Adding a row here (npm + PyPI) is the main step for a new marketplace bridge;
37
- * connector factories, Connect providers, and identity-http candidates are
38
- * derived from this list.
39
- */
40
- export declare const MARKETPLACE_MCP_INTEGRATIONS: readonly [{
41
- readonly id: "notion";
42
- readonly connectId: "notion";
43
- readonly displayName: "Notion";
44
- readonly mcpUrl: "https://mcp.notion.com/mcp";
45
- readonly tools: readonly ["notion-search", "notion-fetch", "notion-create-pages", "notion-update-page", "notion-create-comment", "notion-create-database", "notion-update-data-source", "notion-query-data-sources", "notion-query-database-view", "notion-get-comments", "notion-get-users", "notion-get-teams", "notion-create-view", "notion-update-view", "notion-move-pages", "notion-duplicate-page", "notion-create-attachment", "notion-download-attachment", "notion-get-async-task"];
46
- readonly scopes: readonly [];
47
- }, {
48
- readonly id: "cloudflare";
49
- readonly connectId: "cloudflare";
50
- readonly displayName: "Cloudflare";
51
- readonly mcpUrl: "https://bindings.mcp.cloudflare.com/mcp";
52
- readonly tools: readonly ["accounts_list", "set_active_account", "workers_list", "workers_get_worker", "workers_get_worker_code", "kv_namespaces_list", "kv_namespace_create", "kv_namespace_delete", "kv_namespace_get", "kv_namespace_update", "r2_buckets_list", "r2_bucket_create", "r2_bucket_get", "r2_bucket_delete", "d1_databases_list", "d1_database_create", "d1_database_delete", "d1_database_get", "d1_database_query", "hyperdrive_configs_list", "hyperdrive_config_create", "hyperdrive_config_delete", "hyperdrive_config_get", "hyperdrive_config_edit"];
53
- readonly scopes: readonly [];
54
- }, {
55
- readonly id: "neon";
56
- readonly connectId: "neon";
57
- readonly displayName: "Neon";
58
- readonly mcpUrl: "https://mcp.neon.tech/mcp";
59
- readonly tools: readonly ["list_projects", "list_organizations", "list_shared_projects", "create_project", "delete_project", "describe_project", "run_sql", "run_sql_transaction", "describe_table_schema", "get_database_tables", "create_branch", "describe_branch", "delete_branch", "reset_from_parent", "get_connection_string", "prepare_database_migration", "complete_database_migration", "compare_database_schema", "search", "fetch"];
60
- readonly scopes: readonly [];
61
- }, {
62
- readonly id: "prisma";
63
- readonly connectId: "prisma";
64
- readonly displayName: "Prisma";
65
- readonly mcpUrl: "https://mcp.prisma.io/mcp";
66
- readonly tools: readonly ["CreateBackupTool", "CreateConnectionStringTool", "CreateRecoveryTool", "DeleteConnectionStringTool", "DeleteDatabaseTool", "ListBackupsTool", "ListConnectionStringsTool", "ListDatabasesTool", "ExecuteSqlQueryTool", "IntrospectSchemaTool"];
67
- readonly scopes: readonly [];
68
- }, {
69
- readonly id: "netlify";
70
- readonly connectId: "netlify";
71
- readonly displayName: "Netlify";
72
- readonly mcpUrl: "https://netlify-mcp.netlify.app/mcp";
73
- readonly tools: readonly ["netlify-deploy-services-reader", "netlify-deploy-services-updater", "netlify-user-services-reader", "netlify-extension-services-reader", "netlify-extension-services-updater", "netlify-project-services-reader", "netlify-project-services-updater", "netlify-team-services-reader"];
74
- readonly scopes: readonly [];
75
- }, {
76
- readonly id: "vanta";
77
- readonly connectId: "vanta";
78
- readonly displayName: "Vanta";
79
- readonly mcpUrl: "https://mcp.vanta.com/mcp";
80
- readonly tools: readonly ["tests", "list_test_entities", "controls", "list_control_tests", "list_control_documents", "documents", "document_resources", "integrations", "integration_resources", "frameworks", "list_framework_controls", "people", "risks", "vulnerabilities"];
81
- readonly scopes: readonly [];
82
- }, {
83
- readonly id: "close";
84
- readonly connectId: "close";
85
- readonly displayName: "Close";
86
- readonly mcpUrl: "https://mcp.close.com/mcp";
87
- readonly tools: readonly ["activity_search", "aggregation", "close_product_knowledge_search", "fetch", "fetch_call", "fetch_contact", "fetch_lead", "fetch_note", "fetch_opportunity", "get_fields", "search", "create_lead", "create_contact", "create_note", "create_opportunity", "update_lead", "update_contact", "update_opportunity"];
88
- readonly scopes: readonly [];
89
- }];
90
- export type MarketplaceMcpIntegrationId = (typeof MARKETPLACE_MCP_INTEGRATIONS)[number]["id"];
91
- export type MarketplaceMcpToolsFor<Id extends MarketplaceMcpIntegrationId> = Extract<(typeof MARKETPLACE_MCP_INTEGRATIONS)[number], {
92
- id: Id;
93
- }>["tools"][number];
94
- export declare function marketplaceIntegrationById(id: string | undefined): MarketplaceMcpIntegration | undefined;
95
- export declare function hasMarketplaceConnector(integrationId: string, connectorKinds: readonly (string | undefined)[] | undefined): boolean;
96
- //# sourceMappingURL=catalog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/connectors/marketplace/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,2EAA2E;AAC3E,MAAM,WAAW,yBAAyB;IACxC,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,iFAAiF;IACjF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,iFAAiF;IACjF,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;iBAEjC,QAAQ;wBACD,QAAQ;0BACN,QAAQ;qBACb,4BAA4B;;;;iBAyBhC,YAAY;wBACL,YAAY;0BACV,YAAY;qBACjB,yCAAyC;;;;iBA8B7C,MAAM;wBACC,MAAM;0BACJ,MAAM;qBACX,2BAA2B;;;;iBA0B/B,QAAQ;wBACD,QAAQ;0BACN,QAAQ;qBACb,2BAA2B;;;;iBAgB/B,SAAS;wBACF,SAAS;0BACP,SAAS;qBACd,qCAAqC;;;;iBAczC,OAAO;wBACA,OAAO;0BACL,OAAO;qBACZ,2BAA2B;;;;iBAuB/B,OAAO;wBACA,OAAO;0BACL,OAAO;qBACZ,2BAA2B;;;EAuBkB,CAAC;AAE1D,MAAM,MAAM,2BAA2B,GACrC,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAEtD,MAAM,MAAM,sBAAsB,CAAC,EAAE,SAAS,2BAA2B,IACvE,OAAO,CACL,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,EAC7C;IAAE,EAAE,EAAE,EAAE,CAAA;CAAE,CACX,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC;AAMrB,wBAAgB,0BAA0B,CACxC,EAAE,EAAE,MAAM,GAAG,SAAS,GACrB,yBAAyB,GAAG,SAAS,CAKvC;AAED,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,GAC1D,OAAO,CAET"}
@@ -1,213 +0,0 @@
1
- /**
2
- * Fleet marketplace MCP integrations bridged by MDA.
3
- *
4
- * These are third-party remote MCP servers (e.g. Notion at mcp.notion.com),
5
- * not LangSmith toolserver built-ins. Credentials stay in the LangSmith vault;
6
- * MDA invokes via `POST /v1/mcp/proxy` with an actor/agent subject.
7
- *
8
- * Tool names are vendor-owned and listed here for authoring docs / soft typing.
9
- * The live MCP server remains the runtime source of truth.
10
- *
11
- * Entries mirror the active Fleet marketplace catalog in langchainplus
12
- * (`smith-frontend/.../marketplace-catalog.ts`). Built-ins (Gmail, Slack, …)
13
- * stay on the toolserver path — do not duplicate them here.
14
- */
15
- /**
16
- * Built-in marketplace MCP integrations.
17
- *
18
- * Adding a row here (npm + PyPI) is the main step for a new marketplace bridge;
19
- * connector factories, Connect providers, and identity-http candidates are
20
- * derived from this list.
21
- */
22
- export const MARKETPLACE_MCP_INTEGRATIONS = [
23
- {
24
- id: "notion",
25
- connectId: "notion",
26
- displayName: "Notion",
27
- mcpUrl: "https://mcp.notion.com/mcp",
28
- tools: [
29
- "notion-search",
30
- "notion-fetch",
31
- "notion-create-pages",
32
- "notion-update-page",
33
- "notion-create-comment",
34
- "notion-create-database",
35
- "notion-update-data-source",
36
- "notion-query-data-sources",
37
- "notion-query-database-view",
38
- "notion-get-comments",
39
- "notion-get-users",
40
- "notion-get-teams",
41
- "notion-create-view",
42
- "notion-update-view",
43
- "notion-move-pages",
44
- "notion-duplicate-page",
45
- "notion-create-attachment",
46
- "notion-download-attachment",
47
- "notion-get-async-task",
48
- ],
49
- scopes: [],
50
- },
51
- {
52
- id: "cloudflare",
53
- connectId: "cloudflare",
54
- displayName: "Cloudflare",
55
- mcpUrl: "https://bindings.mcp.cloudflare.com/mcp",
56
- tools: [
57
- "accounts_list",
58
- "set_active_account",
59
- "workers_list",
60
- "workers_get_worker",
61
- "workers_get_worker_code",
62
- "kv_namespaces_list",
63
- "kv_namespace_create",
64
- "kv_namespace_delete",
65
- "kv_namespace_get",
66
- "kv_namespace_update",
67
- "r2_buckets_list",
68
- "r2_bucket_create",
69
- "r2_bucket_get",
70
- "r2_bucket_delete",
71
- "d1_databases_list",
72
- "d1_database_create",
73
- "d1_database_delete",
74
- "d1_database_get",
75
- "d1_database_query",
76
- "hyperdrive_configs_list",
77
- "hyperdrive_config_create",
78
- "hyperdrive_config_delete",
79
- "hyperdrive_config_get",
80
- "hyperdrive_config_edit",
81
- ],
82
- scopes: [],
83
- },
84
- {
85
- id: "neon",
86
- connectId: "neon",
87
- displayName: "Neon",
88
- mcpUrl: "https://mcp.neon.tech/mcp",
89
- tools: [
90
- "list_projects",
91
- "list_organizations",
92
- "list_shared_projects",
93
- "create_project",
94
- "delete_project",
95
- "describe_project",
96
- "run_sql",
97
- "run_sql_transaction",
98
- "describe_table_schema",
99
- "get_database_tables",
100
- "create_branch",
101
- "describe_branch",
102
- "delete_branch",
103
- "reset_from_parent",
104
- "get_connection_string",
105
- "prepare_database_migration",
106
- "complete_database_migration",
107
- "compare_database_schema",
108
- "search",
109
- "fetch",
110
- ],
111
- scopes: [],
112
- },
113
- {
114
- id: "prisma",
115
- connectId: "prisma",
116
- displayName: "Prisma",
117
- mcpUrl: "https://mcp.prisma.io/mcp",
118
- tools: [
119
- "CreateBackupTool",
120
- "CreateConnectionStringTool",
121
- "CreateRecoveryTool",
122
- "DeleteConnectionStringTool",
123
- "DeleteDatabaseTool",
124
- "ListBackupsTool",
125
- "ListConnectionStringsTool",
126
- "ListDatabasesTool",
127
- "ExecuteSqlQueryTool",
128
- "IntrospectSchemaTool",
129
- ],
130
- scopes: [],
131
- },
132
- {
133
- id: "netlify",
134
- connectId: "netlify",
135
- displayName: "Netlify",
136
- mcpUrl: "https://netlify-mcp.netlify.app/mcp",
137
- tools: [
138
- "netlify-deploy-services-reader",
139
- "netlify-deploy-services-updater",
140
- "netlify-user-services-reader",
141
- "netlify-extension-services-reader",
142
- "netlify-extension-services-updater",
143
- "netlify-project-services-reader",
144
- "netlify-project-services-updater",
145
- "netlify-team-services-reader",
146
- ],
147
- scopes: [],
148
- },
149
- {
150
- id: "vanta",
151
- connectId: "vanta",
152
- displayName: "Vanta",
153
- mcpUrl: "https://mcp.vanta.com/mcp",
154
- // Soft-typed from Vanta's published MCP tool list so a pre-connect
155
- // 401/428 fallback still builds wrappers (empty catalog → zero tools
156
- // forever, even after Connect, because nothing is left to re-list).
157
- tools: [
158
- "tests",
159
- "list_test_entities",
160
- "controls",
161
- "list_control_tests",
162
- "list_control_documents",
163
- "documents",
164
- "document_resources",
165
- "integrations",
166
- "integration_resources",
167
- "frameworks",
168
- "list_framework_controls",
169
- "people",
170
- "risks",
171
- "vulnerabilities",
172
- ],
173
- scopes: [],
174
- },
175
- {
176
- id: "close",
177
- connectId: "close",
178
- displayName: "Close",
179
- mcpUrl: "https://mcp.close.com/mcp",
180
- tools: [
181
- "activity_search",
182
- "aggregation",
183
- "close_product_knowledge_search",
184
- "fetch",
185
- "fetch_call",
186
- "fetch_contact",
187
- "fetch_lead",
188
- "fetch_note",
189
- "fetch_opportunity",
190
- "get_fields",
191
- "search",
192
- "create_lead",
193
- "create_contact",
194
- "create_note",
195
- "create_opportunity",
196
- "update_lead",
197
- "update_contact",
198
- "update_opportunity",
199
- ],
200
- scopes: [],
201
- },
202
- ];
203
- const BY_ID = new Map(MARKETPLACE_MCP_INTEGRATIONS.map((entry) => [entry.id, entry]));
204
- export function marketplaceIntegrationById(id) {
205
- if (!id) {
206
- return undefined;
207
- }
208
- return BY_ID.get(id);
209
- }
210
- export function hasMarketplaceConnector(integrationId, connectorKinds) {
211
- return (connectorKinds ?? []).some((kind) => kind === integrationId);
212
- }
213
- //# sourceMappingURL=catalog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/connectors/marketplace/catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAqBH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C;QACE,EAAE,EAAE,QAAQ;QACZ,SAAS,EAAE,QAAQ;QACnB,WAAW,EAAE,QAAQ;QACrB,MAAM,EAAE,4BAA4B;QACpC,KAAK,EAAE;YACL,eAAe;YACf,cAAc;YACd,qBAAqB;YACrB,oBAAoB;YACpB,uBAAuB;YACvB,wBAAwB;YACxB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ACsD,CAAC;AAW1D,MAAM,KAAK,GAAG,IAAI,GAAG,CACnB,4BAA4B,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAC/D,CAAC;AAEF,MAAM,UAAU,0BAA0B,CACxC,EAAsB;IAEtB,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,KAAK,CAAC,GAAG,CAAC,EAAiC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,aAAqB,EACrB,cAA2D;IAE3D,OAAO,CAAC,cAAc,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC;AACvE,CAAC"}
@@ -1,62 +0,0 @@
1
- /**
2
- * Fleet MCP server discovery for marketplace bridges.
3
- *
4
- * MDA resolves the workspace `mcp_servers` row by canonical URL so Connect and
5
- * the proxy loader can use the stable `oauth_provider_id` without hardcoding
6
- * `notion-mcp-<hash>` in agent source.
7
- */
8
- import { type FleetClientOptions } from "../../identity/fleet.js";
9
- export interface FleetMcpServer {
10
- id: string;
11
- name?: string;
12
- url: string;
13
- auth_type?: string;
14
- oauth_provider_id?: string | null;
15
- oauth_mode?: string;
16
- }
17
- export interface ResolveMarketplaceMcpServerOptions extends FleetClientOptions {
18
- /** Canonical MCP URL to match (e.g. Notion's marketplace URL). */
19
- mcpUrl: string;
20
- }
21
- /**
22
- * Build a smith-backend public URL under `/api/v1/{path}`.
23
- *
24
- * Marketplace list/invoke live on the Python MCP proxy (`/api/v1/mcp/tools`,
25
- * `/api/v1/mcp/proxy`), not on smith-go's `/v1/mcp/*` (those 404). Self-hosted
26
- * often sets `LANGSMITH_ENDPOINT` to a base that already ends in `/api` — same
27
- * convention as toolserver — so we only insert `/api` when it is missing.
28
- */
29
- export declare function resolveSmithBackendV1Url(base: string, path: string): string;
30
- /** Normalize MCP URLs the way Fleet list filtering does (lowercase, trim slash). */
31
- export declare function normalizeMcpUrl(url: string): string;
32
- /**
33
- * Find the workspace MCP server for `mcpUrl`.
34
- *
35
- * Prefers Fleet's `?url=` filter; falls back to a full list scan when the
36
- * filter is unavailable or returns nothing.
37
- */
38
- export declare function resolveMarketplaceMcpServer(options: ResolveMarketplaceMcpServerOptions): Promise<FleetMcpServer>;
39
- /** @internal Exported for unit tests. */
40
- export declare function missingMarketplaceServerMessage(mcpUrl: string): string;
41
- /**
42
- * Parse a smith-backend `POST /v1/mcp/proxy` response body into tool content.
43
- *
44
- * Upstream MCP servers may answer with either `application/json` or
45
- * Streamable HTTP SSE (`text/event-stream` with `data:` JSON-RPC lines). The
46
- * proxy forwards the vendor body as-is, so callers must accept both.
47
- */
48
- export declare function parseMcpProxyResponseBody(text: string): unknown;
49
- /** JSON-RPC objects from a direct JSON body or SSE `data:` lines. */
50
- export declare function extractMcpJsonRpcMessages(text: string): unknown[];
51
- /**
52
- * Parse `GET /v1/fleet/mcp-servers` payloads.
53
- *
54
- * - Bare array: the live Fleet contract (`render.JSON` of `[]McpServer`).
55
- * - `{ items }`: Fleet's usual list envelope (e.g. agents / connections). Not
56
- * used by mcp-servers today; accepted so a future envelope switch does not
57
- * break discovery.
58
- * - `{ data }`: host-upstream list shape mirrored elsewhere in Fleet clients.
59
- * Same defensive fallback; prefer `items` when both are present.
60
- */
61
- export declare function parseMcpServerList(payload: unknown): FleetMcpServer[];
62
- //# sourceMappingURL=fleet-mcp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fleet-mcp.d.ts","sourceRoot":"","sources":["../../../src/connectors/marketplace/fleet-mcp.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AAOjC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kCAAmC,SAAQ,kBAAkB;IAC5E,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAQ3E;AAuBD,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUnD;AAED;;;;;GAKG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,kCAAkC,GAC1C,OAAO,CAAC,cAAc,CAAC,CAmCzB;AAED,yCAAyC;AACzC,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAStE;AAED;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAuC/D;AAED,qEAAqE;AACrE,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,EAAE,CA4BjE;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,cAAc,EAAE,CAYrE"}