@sentry/mcp-server 0.42.0 → 0.49.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.
Files changed (162) hide show
  1. package/README.md +57 -0
  2. package/dist/sentry-mcp.cjs +3240 -0
  3. package/package.json +22 -40
  4. package/LICENSE.md +0 -105
  5. package/dist/auth/constants.cjs +0 -9
  6. package/dist/auth/constants.d.cts +0 -31
  7. package/dist/auth/constants.d.cts.map +0 -1
  8. package/dist/auth/constants.d.ts +0 -31
  9. package/dist/auth/constants.d.ts.map +0 -1
  10. package/dist/auth/constants.js +0 -3
  11. package/dist/auth/device-code-flow.cjs +0 -10
  12. package/dist/auth/device-code-flow.d.cts +0 -34
  13. package/dist/auth/device-code-flow.d.cts.map +0 -1
  14. package/dist/auth/device-code-flow.d.ts +0 -34
  15. package/dist/auth/device-code-flow.d.ts.map +0 -1
  16. package/dist/auth/device-code-flow.js +0 -6
  17. package/dist/auth/resolve-token.cjs +0 -8
  18. package/dist/auth/resolve-token.d.cts +0 -17
  19. package/dist/auth/resolve-token.d.cts.map +0 -1
  20. package/dist/auth/resolve-token.d.ts +0 -17
  21. package/dist/auth/resolve-token.d.ts.map +0 -1
  22. package/dist/auth/resolve-token.js +0 -8
  23. package/dist/auth/token-cache.cjs +0 -5
  24. package/dist/auth/token-cache.d.cts +0 -11
  25. package/dist/auth/token-cache.d.cts.map +0 -1
  26. package/dist/auth/token-cache.d.ts +0 -11
  27. package/dist/auth/token-cache.d.ts.map +0 -1
  28. package/dist/auth/token-cache.js +0 -3
  29. package/dist/auth/types.cjs +0 -7
  30. package/dist/auth/types.d.cts +0 -2
  31. package/dist/auth/types.d.ts +0 -2
  32. package/dist/auth/types.js +0 -3
  33. package/dist/auth-B__Aec1m.cjs +0 -90
  34. package/dist/auth-B__Aec1m.cjs.map +0 -1
  35. package/dist/auth-BtRpItji.js +0 -79
  36. package/dist/auth-BtRpItji.js.map +0 -1
  37. package/dist/blob-utils-B0ae0K-m-BF8kTomr.cjs +0 -4724
  38. package/dist/blob-utils-B0ae0K-m-BF8kTomr.cjs.map +0 -1
  39. package/dist/blob-utils-B0ae0K-m-BhC2W04C.js +0 -4701
  40. package/dist/blob-utils-B0ae0K-m-BhC2W04C.js.map +0 -1
  41. package/dist/blob-utils-BM8EcgEO.js +0 -3
  42. package/dist/blob-utils-DBvCs9nw.cjs +0 -3
  43. package/dist/chunk-CunrlGP7.js +0 -37
  44. package/dist/chunk-Cv9WC9bY.cjs +0 -58
  45. package/dist/cli/commands/auth.cjs +0 -11
  46. package/dist/cli/commands/auth.d.cts +0 -8
  47. package/dist/cli/commands/auth.d.cts.map +0 -1
  48. package/dist/cli/commands/auth.d.ts +0 -8
  49. package/dist/cli/commands/auth.d.ts.map +0 -1
  50. package/dist/cli/commands/auth.js +0 -10
  51. package/dist/cli/output.cjs +0 -3
  52. package/dist/cli/output.d.cts +0 -7
  53. package/dist/cli/output.d.cts.map +0 -1
  54. package/dist/cli/output.d.ts +0 -7
  55. package/dist/cli/output.d.ts.map +0 -1
  56. package/dist/cli/output.js +0 -3
  57. package/dist/cli/parse.cjs +0 -5
  58. package/dist/cli/parse.d.cts +0 -11
  59. package/dist/cli/parse.d.cts.map +0 -1
  60. package/dist/cli/parse.d.ts +0 -11
  61. package/dist/cli/parse.d.ts.map +0 -1
  62. package/dist/cli/parse.js +0 -3
  63. package/dist/cli/resolve.cjs +0 -6
  64. package/dist/cli/resolve.d.cts +0 -16
  65. package/dist/cli/resolve.d.cts.map +0 -1
  66. package/dist/cli/resolve.d.ts +0 -16
  67. package/dist/cli/resolve.d.ts.map +0 -1
  68. package/dist/cli/resolve.js +0 -4
  69. package/dist/cli/types.cjs +0 -0
  70. package/dist/cli/types.d.cts +0 -2
  71. package/dist/cli/types.d.ts +0 -2
  72. package/dist/cli/types.js +0 -0
  73. package/dist/cli/usage.cjs +0 -3
  74. package/dist/cli/usage.d.cts +0 -9
  75. package/dist/cli/usage.d.cts.map +0 -1
  76. package/dist/cli/usage.d.ts +0 -9
  77. package/dist/cli/usage.d.ts.map +0 -1
  78. package/dist/cli/usage.js +0 -3
  79. package/dist/config-40SaJWzQ-Bxau3bPR.cjs +0 -928
  80. package/dist/config-40SaJWzQ-Bxau3bPR.cjs.map +0 -1
  81. package/dist/config-40SaJWzQ-Dz27jdMQ.js +0 -886
  82. package/dist/config-40SaJWzQ-Dz27jdMQ.js.map +0 -1
  83. package/dist/config-DeGbV11k.cjs +0 -7
  84. package/dist/config-NGx6OsOU.js +0 -3
  85. package/dist/constants-CGu8w21D.js +0 -452
  86. package/dist/constants-CGu8w21D.js.map +0 -1
  87. package/dist/constants-Cw_BclsW.cjs +0 -644
  88. package/dist/constants-Cw_BclsW.cjs.map +0 -1
  89. package/dist/device-code-flow-afx1qvK6.cjs +0 -154
  90. package/dist/device-code-flow-afx1qvK6.cjs.map +0 -1
  91. package/dist/device-code-flow-mwBASRbi.js +0 -124
  92. package/dist/device-code-flow-mwBASRbi.js.map +0 -1
  93. package/dist/index.cjs +0 -61536
  94. package/dist/index.cjs.map +0 -1
  95. package/dist/index.d.cts +0 -1
  96. package/dist/index.d.ts +0 -1
  97. package/dist/index.js +0 -61537
  98. package/dist/index.js.map +0 -1
  99. package/dist/output-A_-7o7gV.js +0 -8
  100. package/dist/output-A_-7o7gV.js.map +0 -1
  101. package/dist/output-DEoNyYz7.cjs +0 -14
  102. package/dist/output-DEoNyYz7.cjs.map +0 -1
  103. package/dist/parse-CPY7-_2_.cjs +0 -130
  104. package/dist/parse-CPY7-_2_.cjs.map +0 -1
  105. package/dist/parse-Dd3OOgIq.js +0 -112
  106. package/dist/parse-Dd3OOgIq.js.map +0 -1
  107. package/dist/resolve-BvvBO-dw.cjs +0 -179
  108. package/dist/resolve-BvvBO-dw.cjs.map +0 -1
  109. package/dist/resolve-DOyeMm4X.js +0 -144
  110. package/dist/resolve-DOyeMm4X.js.map +0 -1
  111. package/dist/resolve-token-BHBj9ll0.js +0 -47
  112. package/dist/resolve-token-BHBj9ll0.js.map +0 -1
  113. package/dist/resolve-token-dsXzYI7-.cjs +0 -52
  114. package/dist/resolve-token-dsXzYI7-.cjs.map +0 -1
  115. package/dist/stdio-0Gl343e-.js +0 -59
  116. package/dist/stdio-0Gl343e-.js.map +0 -1
  117. package/dist/stdio-CZiqpRKP.cjs +0 -65
  118. package/dist/stdio-CZiqpRKP.cjs.map +0 -1
  119. package/dist/token-3xpHVxQo.js +0 -51
  120. package/dist/token-3xpHVxQo.js.map +0 -1
  121. package/dist/token-C7MavkKX.cjs +0 -55
  122. package/dist/token-C7MavkKX.cjs.map +0 -1
  123. package/dist/token-cache-ATUcs1cg.cjs +0 -84
  124. package/dist/token-cache-ATUcs1cg.cjs.map +0 -1
  125. package/dist/token-cache-DbZp4rvg.js +0 -66
  126. package/dist/token-cache-DbZp4rvg.js.map +0 -1
  127. package/dist/token-error-CBmJNKLY.js +0 -43
  128. package/dist/token-error-CBmJNKLY.js.map +0 -1
  129. package/dist/token-error-x_miDBP3.cjs +0 -48
  130. package/dist/token-error-x_miDBP3.cjs.map +0 -1
  131. package/dist/token-util-4bIYDTMS.js +0 -4
  132. package/dist/token-util-BRoQwIG6.cjs +0 -363
  133. package/dist/token-util-BRoQwIG6.cjs.map +0 -1
  134. package/dist/token-util-DurDL44i.cjs +0 -9
  135. package/dist/token-util-batRsXGA.js +0 -358
  136. package/dist/token-util-batRsXGA.js.map +0 -1
  137. package/dist/transports/stdio.cjs +0 -4
  138. package/dist/transports/stdio.d.cts +0 -40
  139. package/dist/transports/stdio.d.cts.map +0 -1
  140. package/dist/transports/stdio.d.ts +0 -40
  141. package/dist/transports/stdio.d.ts.map +0 -1
  142. package/dist/transports/stdio.js +0 -4
  143. package/dist/types-BCSxlxZI.js +0 -57
  144. package/dist/types-BCSxlxZI.js.map +0 -1
  145. package/dist/types-BGyk9F4G.d.ts +0 -61
  146. package/dist/types-BGyk9F4G.d.ts.map +0 -1
  147. package/dist/types-C9HgNyIE.d.cts +0 -61
  148. package/dist/types-C9HgNyIE.d.cts.map +0 -1
  149. package/dist/types-D-BIcaY4.d.ts +0 -91
  150. package/dist/types-D-BIcaY4.d.ts.map +0 -1
  151. package/dist/types-Dyacb-A8.d.cts +0 -91
  152. package/dist/types-Dyacb-A8.d.cts.map +0 -1
  153. package/dist/types-dghCRFW4.cjs +0 -87
  154. package/dist/types-dghCRFW4.cjs.map +0 -1
  155. package/dist/usage-DZ4QDygT.cjs +0 -74
  156. package/dist/usage-DZ4QDygT.cjs.map +0 -1
  157. package/dist/usage-Hi-6-LDr.js +0 -68
  158. package/dist/usage-Hi-6-LDr.js.map +0 -1
  159. package/dist/version-NjstoynH.js +0 -7
  160. package/dist/version-NjstoynH.js.map +0 -1
  161. package/dist/version-_1CmW0BF.cjs +0 -19
  162. package/dist/version-_1CmW0BF.cjs.map +0 -1
package/package.json CHANGED
@@ -1,68 +1,50 @@
1
1
  {
2
2
  "name": "@sentry/mcp-server",
3
3
  "mcpName": "io.github.getsentry/sentry-mcp",
4
- "version": "0.42.0",
4
+ "version": "0.49.0",
5
+ "description": "Sentry MCP server over stdio: the CLI's `sentry mcp` server, bundled without the rest of the CLI",
6
+ "sentryCi": {
7
+ "build": "bundle",
8
+ "test": "test:bundle",
9
+ "dependencies": [
10
+ "sentry"
11
+ ]
12
+ },
5
13
  "type": "module",
14
+ "packageManager": "pnpm@11.8.0",
6
15
  "engines": {
7
- "node": ">=22.13"
16
+ "node": ">=22.15"
8
17
  },
9
18
  "publishConfig": {
10
19
  "access": "public"
11
20
  },
12
21
  "license": "FSL-1.1-ALv2",
13
22
  "author": "Sentry",
14
- "homepage": "https://github.com/getsentry/sentry-mcp",
23
+ "homepage": "https://github.com/getsentry/toolkit",
15
24
  "keywords": [
16
25
  "sentry",
17
26
  "mcp",
18
27
  "model-context-protocol"
19
28
  ],
20
29
  "bugs": {
21
- "url": "https://github.com/getsentry/sentry-mcp/issues"
30
+ "url": "https://github.com/getsentry/toolkit/issues"
22
31
  },
23
32
  "repository": {
24
33
  "type": "git",
25
- "url": "git@github.com:getsentry/sentry-mcp.git"
34
+ "url": "git+https://github.com/getsentry/toolkit.git"
26
35
  },
27
36
  "bin": {
28
- "sentry-mcp": "./dist/index.js"
37
+ "sentry-mcp": "./dist/sentry-mcp.cjs"
29
38
  },
30
39
  "files": [
31
- "./dist/*"
40
+ "dist/sentry-mcp.cjs"
32
41
  ],
33
- "exports": {
34
- ".": {
35
- "types": "./dist/index.d.ts",
36
- "default": "./dist/index.js"
37
- },
38
- "./transports/stdio": {
39
- "types": "./dist/transports/stdio.d.ts",
40
- "default": "./dist/transports/stdio.js"
41
- }
42
- },
43
- "dependencies": {
44
- "@modelcontextprotocol/sdk": "1.30.0",
45
- "@sentry/node": "11.0.0-rc.0",
46
- "@sentry/core": "11.0.0-rc.0",
47
- "dotenv": "^16.6.1",
48
- "zod": "^4.4.3"
42
+ "scripts": {
43
+ "bundle": "pnpm --filter @sentry/mcp-core run build && pnpm --filter sentry run generate && tsx script/bundle.ts",
44
+ "test:bundle": "node --test test/bundle.test.mjs test/server-json.test.mjs"
49
45
  },
50
46
  "devDependencies": {
51
- "@types/node": "^22.15.33",
52
- "tsdown": "^0.12.9",
53
- "tsx": "^4.20.3",
54
- "typescript": "^5.8.3",
55
- "vitest": "^4.1.11",
56
- "@sentry/mcp-server-tsconfig": "0.42.0",
57
- "@sentry/mcp-core": "0.42.0",
58
- "@sentry/mcp-server-mocks": "0.42.0"
59
- },
60
- "scripts": {
61
- "build": "tsdown",
62
- "dev": "tsdown --watch",
63
- "start": "tsx src/index.ts",
64
- "test": "vitest run",
65
- "test:watch": "vitest",
66
- "tsc": "tsc --noEmit"
47
+ "esbuild": "^0.28.1",
48
+ "tsx": "catalog:"
67
49
  }
68
- }
50
+ }
package/LICENSE.md DELETED
@@ -1,105 +0,0 @@
1
- # Functional Source License, Version 1.1, Apache 2.0 Future License
2
-
3
- ## Abbreviation
4
-
5
- FSL-1.1-Apache-2.0
6
-
7
- ## Notice
8
-
9
- Copyright 2008-2024 Functional Software, Inc. dba Sentry
10
-
11
- ## Terms and Conditions
12
-
13
- ### Licensor ("We")
14
-
15
- The party offering the Software under these Terms and Conditions.
16
-
17
- ### The Software
18
-
19
- The "Software" is each version of the software that we make available under
20
- these Terms and Conditions, as indicated by our inclusion of these Terms and
21
- Conditions with the Software.
22
-
23
- ### License Grant
24
-
25
- Subject to your compliance with this License Grant and the Patents,
26
- Redistribution and Trademark clauses below, we hereby grant you the right to
27
- use, copy, modify, create derivative works, publicly perform, publicly display
28
- and redistribute the Software for any Permitted Purpose identified below.
29
-
30
- ### Permitted Purpose
31
-
32
- A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
- means making the Software available to others in a commercial product or
34
- service that:
35
-
36
- 1. substitutes for the Software;
37
-
38
- 2. substitutes for any other product or service we offer using the Software
39
- that exists as of the date we make the Software available; or
40
-
41
- 3. offers the same or substantially similar functionality as the Software.
42
-
43
- Permitted Purposes specifically include using the Software:
44
-
45
- 1. for your internal use and access;
46
-
47
- 2. for non-commercial education;
48
-
49
- 3. for non-commercial research; and
50
-
51
- 4. in connection with professional services that you provide to a licensee
52
- using the Software in accordance with these Terms and Conditions.
53
-
54
- ### Patents
55
-
56
- To the extent your use for a Permitted Purpose would necessarily infringe our
57
- patents, the license grant above includes a license under our patents. If you
58
- make a claim against any party that the Software infringes or contributes to
59
- the infringement of any patent, then your patent license to the Software ends
60
- immediately.
61
-
62
- ### Redistribution
63
-
64
- The Terms and Conditions apply to all copies, modifications and derivatives of
65
- the Software.
66
-
67
- If you redistribute any copies, modifications or derivatives of the Software,
68
- you must include a copy of or a link to these Terms and Conditions and not
69
- remove any copyright notices provided in or with the Software.
70
-
71
- ### Disclaimer
72
-
73
- THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
- IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
- PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
-
77
- IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
- SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
- EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
-
81
- ### Trademarks
82
-
83
- Except for displaying the License Details and identifying us as the origin of
84
- the Software, you have no right under these Terms and Conditions to use our
85
- trademarks, trade names, service marks or product names.
86
-
87
- ## Grant of Future License
88
-
89
- We hereby irrevocably grant you an additional license to use the Software under
90
- the Apache License, Version 2.0 that is effective on the second anniversary of
91
- the date we make the Software available. On or after that date, you may use the
92
- Software under the Apache License, Version 2.0, in which case the following
93
- will apply:
94
-
95
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
- this file except in compliance with the License.
97
-
98
- You may obtain a copy of the License at
99
-
100
- http://www.apache.org/licenses/LICENSE-2.0
101
-
102
- Unless required by applicable law or agreed to in writing, software distributed
103
- under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
- CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
- specific language governing permissions and limitations under the License.
@@ -1,9 +0,0 @@
1
- const require_constants = require('../constants-Cw_BclsW.cjs');
2
-
3
- exports.DEFAULT_SENTRY_CLIENT_ID = require_constants.DEFAULT_SENTRY_CLIENT_ID;
4
- exports.DEVICE_CODE_ENDPOINT = require_constants.DEVICE_CODE_ENDPOINT;
5
- exports.DEVICE_CODE_SCOPES = require_constants.DEVICE_CODE_SCOPES;
6
- exports.OAUTH_HOST = require_constants.OAUTH_HOST;
7
- exports.SLOW_DOWN_INCREMENT_SEC = require_constants.SLOW_DOWN_INCREMENT_SEC;
8
- exports.TOKEN_ENDPOINT = require_constants.TOKEN_ENDPOINT;
9
- exports.isSentryIo = require_constants.isSentryHost;
@@ -1,31 +0,0 @@
1
- import { isSentryHost } from "@sentry/mcp-core/utils/url-utils";
2
-
3
- //#region src/auth/constants.d.ts
4
-
5
- /**
6
- * Public OAuth app registered on sentry.io for the stdio device code flow.
7
- * No client secret — device code grant is a public client flow.
8
- * The Cloudflare transport uses a separate OAuth app with a secret.
9
- * Override via SENTRY_CLIENT_ID environment variable.
10
- * See docs/operations/stdio-auth.md for the full credential architecture.
11
- */
12
- declare const DEFAULT_SENTRY_CLIENT_ID = "0acbeba7d07d58076dd7dbde8cea2fed8ab525ce3713bda604988009ab35d765";
13
- declare const DEVICE_CODE_ENDPOINT = "/oauth/device/code/";
14
- declare const TOKEN_ENDPOINT = "/oauth/token/";
15
- declare const DEVICE_CODE_SCOPES: string;
16
- /** Interval increment on slow_down response (RFC 8628). */
17
- declare const SLOW_DOWN_INCREMENT_SEC = 5;
18
- /**
19
- * Whether device code auth is available for this host.
20
- * Supports sentry.io and regional subdomains (us.sentry.io, eu.sentry.io).
21
- */
22
-
23
- /**
24
- * OAuth endpoints live on sentry.io regardless of regional host.
25
- * Always use this as the host for device code and token requests.
26
- */
27
- declare const OAUTH_HOST = "sentry.io";
28
- //# sourceMappingURL=constants.d.ts.map
29
- //#endregion
30
- export { DEFAULT_SENTRY_CLIENT_ID, DEVICE_CODE_ENDPOINT, DEVICE_CODE_SCOPES, OAUTH_HOST, SLOW_DOWN_INCREMENT_SEC, TOKEN_ENDPOINT, isSentryHost as isSentryIo };
31
- //# sourceMappingURL=constants.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.cts","names":[],"sources":["../../src/auth/constants.ts"],"sourcesContent":[],"mappings":";;;;;;AAUA;AAGA;AACA;AACA;AAGA;AAYa,cApBA,wBAAA,GAoBU,kEAAA;cAjBV,oBAAA;cACA,cAAA;cACA;;cAGA,uBAAA;;;;;;;;;;cAYA,UAAA"}
@@ -1,31 +0,0 @@
1
- import { isSentryHost } from "@sentry/mcp-core/utils/url-utils";
2
-
3
- //#region src/auth/constants.d.ts
4
-
5
- /**
6
- * Public OAuth app registered on sentry.io for the stdio device code flow.
7
- * No client secret — device code grant is a public client flow.
8
- * The Cloudflare transport uses a separate OAuth app with a secret.
9
- * Override via SENTRY_CLIENT_ID environment variable.
10
- * See docs/operations/stdio-auth.md for the full credential architecture.
11
- */
12
- declare const DEFAULT_SENTRY_CLIENT_ID = "0acbeba7d07d58076dd7dbde8cea2fed8ab525ce3713bda604988009ab35d765";
13
- declare const DEVICE_CODE_ENDPOINT = "/oauth/device/code/";
14
- declare const TOKEN_ENDPOINT = "/oauth/token/";
15
- declare const DEVICE_CODE_SCOPES: string;
16
- /** Interval increment on slow_down response (RFC 8628). */
17
- declare const SLOW_DOWN_INCREMENT_SEC = 5;
18
- /**
19
- * Whether device code auth is available for this host.
20
- * Supports sentry.io and regional subdomains (us.sentry.io, eu.sentry.io).
21
- */
22
-
23
- /**
24
- * OAuth endpoints live on sentry.io regardless of regional host.
25
- * Always use this as the host for device code and token requests.
26
- */
27
- declare const OAUTH_HOST = "sentry.io";
28
- //# sourceMappingURL=constants.d.ts.map
29
- //#endregion
30
- export { DEFAULT_SENTRY_CLIENT_ID, DEVICE_CODE_ENDPOINT, DEVICE_CODE_SCOPES, OAUTH_HOST, SLOW_DOWN_INCREMENT_SEC, TOKEN_ENDPOINT, isSentryHost as isSentryIo };
31
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","names":[],"sources":["../../src/auth/constants.ts"],"sourcesContent":[],"mappings":";;;;;;AAUA;AAGA;AACA;AACA;AAGA;AAYa,cApBA,wBAAA,GAoBU,kEAAA;cAjBV,oBAAA;cACA,cAAA;cACA;;cAGA,uBAAA;;;;;;;;;;cAYA,UAAA"}
@@ -1,3 +0,0 @@
1
- import { DEFAULT_SENTRY_CLIENT_ID, DEVICE_CODE_ENDPOINT, DEVICE_CODE_SCOPES, OAUTH_HOST, SLOW_DOWN_INCREMENT_SEC, TOKEN_ENDPOINT, isSentryHost } from "../constants-CGu8w21D.js";
2
-
3
- export { DEFAULT_SENTRY_CLIENT_ID, DEVICE_CODE_ENDPOINT, DEVICE_CODE_SCOPES, OAUTH_HOST, SLOW_DOWN_INCREMENT_SEC, TOKEN_ENDPOINT, isSentryHost as isSentryIo };
@@ -1,10 +0,0 @@
1
- require('../constants-Cw_BclsW.cjs');
2
- require('../version-_1CmW0BF.cjs');
3
- require('../types-dghCRFW4.cjs');
4
- const require_device_code_flow = require('../device-code-flow-afx1qvK6.cjs');
5
-
6
- exports.DeviceCodeError = require_device_code_flow.DeviceCodeError;
7
- exports.authenticate = require_device_code_flow.authenticate;
8
- exports.displayDeviceCode = require_device_code_flow.displayDeviceCode;
9
- exports.pollForToken = require_device_code_flow.pollForToken;
10
- exports.requestDeviceCode = require_device_code_flow.requestDeviceCode;
@@ -1,34 +0,0 @@
1
- import { DeviceCodeResponse, TokenResponse } from "../types-C9HgNyIE.cjs";
2
-
3
- //#region src/auth/device-code-flow.d.ts
4
- declare class DeviceCodeError extends Error {
5
- readonly code?: string | undefined;
6
- constructor(message: string, code?: string | undefined);
7
- }
8
- declare function requestDeviceCode(clientId: string, host: string, scopes?: string): Promise<DeviceCodeResponse>;
9
- declare function pollForToken({
10
- deviceCode,
11
- clientId,
12
- host,
13
- interval,
14
- expiresIn
15
- }: {
16
- deviceCode: string;
17
- clientId: string;
18
- host: string;
19
- interval: number;
20
- expiresIn: number;
21
- }): Promise<TokenResponse>;
22
- declare function displayDeviceCode(response: DeviceCodeResponse): void;
23
- declare function authenticate({
24
- clientId,
25
- host
26
- }: {
27
- clientId: string;
28
- host: string;
29
- }): Promise<TokenResponse>;
30
- //# sourceMappingURL=device-code-flow.d.ts.map
31
-
32
- //#endregion
33
- export { DeviceCodeError, authenticate, displayDeviceCode, pollForToken, requestDeviceCode };
34
- //# sourceMappingURL=device-code-flow.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"device-code-flow.d.cts","names":[],"sources":["../../src/auth/device-code-flow.ts"],"sourcesContent":[],"mappings":";;;cAoBa,eAAA,SAAwB,KAAK;;EAA7B,WAAA,CAAA,OAAgB,EAAA,MAAA,EAAQ,IAAK,CAAA,EAAA,MAAA,GAAA,SAAA;AAU1C;AAAuC,iBAAjB,iBAAA,CAAiB,QAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,MAAA,CAAA,EAIpC,OAJoC,CAI5B,kBAJ4B,CAAA;AAI5B,iBA6BW,YAAA,CA7BX;EAAA,UAAA;EAAA,QAAA;EAAA,IAAA;EAAA,QAAA;EAAA;CAAA,EAAA;EAAkB,UAA1B,EAAA,MAAA;EAAO,QAAA,EAAA,MAAA;EA6BY,IAAA,EAAA,MAAA;EAAY,QAAA,EAAA,MAAA;EAAA,SAChC,EAAA,MAAA;CAAU,CAAA,EAWR,OAVF,CAUU,aAVV,CAAA;AACA,iBA2Gc,iBAAA,CA3Gd,QAAA,EA2G0C,kBA3G1C,CAAA,EAAA,IAAA;AACA,iBAoHoB,YAAA,CApHpB;EAAA,QAAA;EAAA;CAAA,EAAA;EAAQ,QACR,EAAA,MAAA;EAAS,IAOC,EAAA,MAAA;CAAa,CAAA,EAkHrB,OAlHA,CAkHQ,aAlHR,CAAA;AAAO"}
@@ -1,34 +0,0 @@
1
- import { DeviceCodeResponse, TokenResponse } from "../types-BGyk9F4G.js";
2
-
3
- //#region src/auth/device-code-flow.d.ts
4
- declare class DeviceCodeError extends Error {
5
- readonly code?: string | undefined;
6
- constructor(message: string, code?: string | undefined);
7
- }
8
- declare function requestDeviceCode(clientId: string, host: string, scopes?: string): Promise<DeviceCodeResponse>;
9
- declare function pollForToken({
10
- deviceCode,
11
- clientId,
12
- host,
13
- interval,
14
- expiresIn
15
- }: {
16
- deviceCode: string;
17
- clientId: string;
18
- host: string;
19
- interval: number;
20
- expiresIn: number;
21
- }): Promise<TokenResponse>;
22
- declare function displayDeviceCode(response: DeviceCodeResponse): void;
23
- declare function authenticate({
24
- clientId,
25
- host
26
- }: {
27
- clientId: string;
28
- host: string;
29
- }): Promise<TokenResponse>;
30
- //# sourceMappingURL=device-code-flow.d.ts.map
31
-
32
- //#endregion
33
- export { DeviceCodeError, authenticate, displayDeviceCode, pollForToken, requestDeviceCode };
34
- //# sourceMappingURL=device-code-flow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"device-code-flow.d.ts","names":[],"sources":["../../src/auth/device-code-flow.ts"],"sourcesContent":[],"mappings":";;;cAoBa,eAAA,SAAwB,KAAK;;EAA7B,WAAA,CAAA,OAAgB,EAAA,MAAA,EAAQ,IAAK,CAAA,EAAA,MAAA,GAAA,SAAA;AAU1C;AAAuC,iBAAjB,iBAAA,CAAiB,QAAA,EAAA,MAAA,EAAA,IAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,MAAA,CAAA,EAIpC,OAJoC,CAI5B,kBAJ4B,CAAA;AAI5B,iBA6BW,YAAA,CA7BX;EAAA,UAAA;EAAA,QAAA;EAAA,IAAA;EAAA,QAAA;EAAA;CAAA,EAAA;EAAkB,UAA1B,EAAA,MAAA;EAAO,QAAA,EAAA,MAAA;EA6BY,IAAA,EAAA,MAAA;EAAY,QAAA,EAAA,MAAA;EAAA,SAChC,EAAA,MAAA;CAAU,CAAA,EAWR,OAVF,CAUU,aAVV,CAAA;AACA,iBA2Gc,iBAAA,CA3Gd,QAAA,EA2G0C,kBA3G1C,CAAA,EAAA,IAAA;AACA,iBAoHoB,YAAA,CApHpB;EAAA,QAAA;EAAA;CAAA,EAAA;EAAQ,QACR,EAAA,MAAA;EAAS,IAOC,EAAA,MAAA;CAAa,CAAA,EAkHrB,OAlHA,CAkHQ,aAlHR,CAAA;AAAO"}
@@ -1,6 +0,0 @@
1
- import "../constants-CGu8w21D.js";
2
- import "../version-NjstoynH.js";
3
- import "../types-BCSxlxZI.js";
4
- import { DeviceCodeError, authenticate, displayDeviceCode, pollForToken, requestDeviceCode } from "../device-code-flow-mwBASRbi.js";
5
-
6
- export { DeviceCodeError, authenticate, displayDeviceCode, pollForToken, requestDeviceCode };
@@ -1,8 +0,0 @@
1
- require('../constants-Cw_BclsW.cjs');
2
- require('../version-_1CmW0BF.cjs');
3
- require('../types-dghCRFW4.cjs');
4
- require('../device-code-flow-afx1qvK6.cjs');
5
- require('../token-cache-ATUcs1cg.cjs');
6
- const require_resolve_token = require('../resolve-token-dsXzYI7-.cjs');
7
-
8
- exports.resolveAccessToken = require_resolve_token.resolveAccessToken;
@@ -1,17 +0,0 @@
1
- import { PartiallyResolvedConfig, ResolvedConfig } from "../types-Dyacb-A8.cjs";
2
-
3
- //#region src/auth/resolve-token.d.ts
4
-
5
- /**
6
- * Resolves the access token for the session.
7
- *
8
- * If an access token is already provided, returns immediately.
9
- * If the host is sentry.io, attempts to use a cached token or
10
- * initiates the device code flow (only when stderr is a TTY).
11
- * For non-sentry.io hosts, throws an error requiring --access-token.
12
- */
13
- declare function resolveAccessToken(partial: PartiallyResolvedConfig): Promise<ResolvedConfig>;
14
- //# sourceMappingURL=resolve-token.d.ts.map
15
- //#endregion
16
- export { resolveAccessToken };
17
- //# sourceMappingURL=resolve-token.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-token.d.cts","names":[],"sources":["../../src/auth/resolve-token.ts"],"sourcesContent":[],"mappings":";;;;;;AAqBA;;;;;AAEU;iBAFY,kBAAA,UACX,0BACR,QAAQ"}
@@ -1,17 +0,0 @@
1
- import { PartiallyResolvedConfig, ResolvedConfig } from "../types-D-BIcaY4.js";
2
-
3
- //#region src/auth/resolve-token.d.ts
4
-
5
- /**
6
- * Resolves the access token for the session.
7
- *
8
- * If an access token is already provided, returns immediately.
9
- * If the host is sentry.io, attempts to use a cached token or
10
- * initiates the device code flow (only when stderr is a TTY).
11
- * For non-sentry.io hosts, throws an error requiring --access-token.
12
- */
13
- declare function resolveAccessToken(partial: PartiallyResolvedConfig): Promise<ResolvedConfig>;
14
- //# sourceMappingURL=resolve-token.d.ts.map
15
- //#endregion
16
- export { resolveAccessToken };
17
- //# sourceMappingURL=resolve-token.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-token.d.ts","names":[],"sources":["../../src/auth/resolve-token.ts"],"sourcesContent":[],"mappings":";;;;;;AAqBA;;;;;AAEU;iBAFY,kBAAA,UACX,0BACR,QAAQ"}
@@ -1,8 +0,0 @@
1
- import "../constants-CGu8w21D.js";
2
- import "../version-NjstoynH.js";
3
- import "../types-BCSxlxZI.js";
4
- import "../device-code-flow-mwBASRbi.js";
5
- import "../token-cache-DbZp4rvg.js";
6
- import { resolveAccessToken } from "../resolve-token-BHBj9ll0.js";
7
-
8
- export { resolveAccessToken };
@@ -1,5 +0,0 @@
1
- const require_token_cache = require('../token-cache-ATUcs1cg.cjs');
2
-
3
- exports.clearCachedToken = require_token_cache.clearCachedToken;
4
- exports.readCachedToken = require_token_cache.readCachedToken;
5
- exports.writeCachedToken = require_token_cache.writeCachedToken;
@@ -1,11 +0,0 @@
1
- import { CachedToken } from "../types-C9HgNyIE.cjs";
2
-
3
- //#region src/auth/token-cache.d.ts
4
- declare function readCachedToken(host: string, clientId: string): Promise<CachedToken | null>;
5
- declare function writeCachedToken(token: CachedToken): Promise<void>;
6
- declare function clearCachedToken(host: string, clientId: string): Promise<void>;
7
- //# sourceMappingURL=token-cache.d.ts.map
8
-
9
- //#endregion
10
- export { clearCachedToken, readCachedToken, writeCachedToken };
11
- //# sourceMappingURL=token-cache.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-cache.d.cts","names":[],"sources":["../../src/auth/token-cache.ts"],"sourcesContent":[],"mappings":";;;iBAkDsB,eAAA,kCAGnB,QAAQ;iBAmBW,gBAAA,QAAwB,cAAc;AAtBtC,iBA4BA,gBAAA,CA5Be,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,CAAA,EA+BlC,OA/BkC,CAAA,IAAA,CAAA"}
@@ -1,11 +0,0 @@
1
- import { CachedToken } from "../types-BGyk9F4G.js";
2
-
3
- //#region src/auth/token-cache.d.ts
4
- declare function readCachedToken(host: string, clientId: string): Promise<CachedToken | null>;
5
- declare function writeCachedToken(token: CachedToken): Promise<void>;
6
- declare function clearCachedToken(host: string, clientId: string): Promise<void>;
7
- //# sourceMappingURL=token-cache.d.ts.map
8
-
9
- //#endregion
10
- export { clearCachedToken, readCachedToken, writeCachedToken };
11
- //# sourceMappingURL=token-cache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-cache.d.ts","names":[],"sources":["../../src/auth/token-cache.ts"],"sourcesContent":[],"mappings":";;;iBAkDsB,eAAA,kCAGnB,QAAQ;iBAmBW,gBAAA,QAAwB,cAAc;AAtBtC,iBA4BA,gBAAA,CA5Be,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,CAAA,EA+BlC,OA/BkC,CAAA,IAAA,CAAA"}
@@ -1,3 +0,0 @@
1
- import { clearCachedToken, readCachedToken, writeCachedToken } from "../token-cache-DbZp4rvg.js";
2
-
3
- export { clearCachedToken, readCachedToken, writeCachedToken };
@@ -1,7 +0,0 @@
1
- const require_types = require('../types-dghCRFW4.cjs');
2
-
3
- exports.DeviceCodeErrorSchema = require_types.DeviceCodeErrorSchema;
4
- exports.DeviceCodeResponseSchema = require_types.DeviceCodeResponseSchema;
5
- exports.TokenResponseSchema = require_types.TokenResponseSchema;
6
- exports.getTokenUserLabel = require_types.getTokenUserLabel;
7
- exports.toCachedToken = require_types.toCachedToken;
@@ -1,2 +0,0 @@
1
- import { CachedToken, DeviceCodeErrorSchema, DeviceCodeResponse, DeviceCodeResponseSchema, TokenResponse, TokenResponseSchema, getTokenUserLabel, toCachedToken } from "../types-C9HgNyIE.cjs";
2
- export { CachedToken, DeviceCodeErrorSchema, DeviceCodeResponse, DeviceCodeResponseSchema, TokenResponse, TokenResponseSchema, getTokenUserLabel, toCachedToken };
@@ -1,2 +0,0 @@
1
- import { CachedToken, DeviceCodeErrorSchema, DeviceCodeResponse, DeviceCodeResponseSchema, TokenResponse, TokenResponseSchema, getTokenUserLabel, toCachedToken } from "../types-BGyk9F4G.js";
2
- export { CachedToken, DeviceCodeErrorSchema, DeviceCodeResponse, DeviceCodeResponseSchema, TokenResponse, TokenResponseSchema, getTokenUserLabel, toCachedToken };
@@ -1,3 +0,0 @@
1
- import { DeviceCodeErrorSchema, DeviceCodeResponseSchema, TokenResponseSchema, getTokenUserLabel, toCachedToken } from "../types-BCSxlxZI.js";
2
-
3
- export { DeviceCodeErrorSchema, DeviceCodeResponseSchema, TokenResponseSchema, getTokenUserLabel, toCachedToken };
@@ -1,90 +0,0 @@
1
- const require_resolve = require('./resolve-BvvBO-dw.cjs');
2
- const require_constants = require('./constants-Cw_BclsW.cjs');
3
- const require_parse = require('./parse-CPY7-_2_.cjs');
4
- const require_types = require('./types-dghCRFW4.cjs');
5
- const require_device_code_flow = require('./device-code-flow-afx1qvK6.cjs');
6
- const require_token_cache = require('./token-cache-ATUcs1cg.cjs');
7
-
8
- //#region src/cli/commands/auth.ts
9
- function parseFlag(argv, name) {
10
- for (let i = 0; i < argv.length; i++) {
11
- const arg = argv[i];
12
- if (arg.startsWith(`--${name}=`)) return arg.slice(`--${name}=`.length);
13
- if (arg === `--${name}` && i + 1 < argv.length) return argv[i + 1];
14
- }
15
- return void 0;
16
- }
17
- function resolveAuthContext(argv) {
18
- const env = require_parse.parseEnv(process.env);
19
- const url = parseFlag(argv, "url") ?? env.url;
20
- const host = parseFlag(argv, "host") ?? env.host;
21
- const sentryHost = require_resolve.resolveHost(url, host);
22
- return {
23
- sentryHost,
24
- clientId: env.clientId || require_constants.DEFAULT_SENTRY_CLIENT_ID
25
- };
26
- }
27
- async function login(argv) {
28
- const { sentryHost, clientId } = resolveAuthContext(argv);
29
- if (!require_constants.isSentryHost(sentryHost)) {
30
- console.error("Error: Device code authentication is only supported for sentry.io.");
31
- process.exit(1);
32
- }
33
- try {
34
- const tokenResponse = await require_device_code_flow.authenticate({
35
- clientId,
36
- host: require_constants.OAUTH_HOST
37
- });
38
- await require_token_cache.writeCachedToken(require_types.toCachedToken(tokenResponse, sentryHost, clientId));
39
- } catch (err) {
40
- console.error(err instanceof Error ? err.message : `Authentication failed: ${err}`);
41
- process.exit(1);
42
- }
43
- }
44
- async function logout(argv) {
45
- const { sentryHost, clientId } = resolveAuthContext(argv);
46
- const cached = await require_token_cache.readCachedToken(sentryHost, clientId);
47
- if (cached) {
48
- await require_token_cache.clearCachedToken(sentryHost, clientId);
49
- console.log(`Logged out (removed cached token for ${cached.user_email}).`);
50
- } else console.log("No cached authentication found.");
51
- }
52
- async function status(argv) {
53
- const { sentryHost, clientId } = resolveAuthContext(argv);
54
- const cached = await require_token_cache.readCachedToken(sentryHost, clientId);
55
- if (cached) {
56
- const expiresAt = new Date(cached.expires_at);
57
- console.log(`Authenticated as ${cached.user_email}`);
58
- console.log(` Host: ${cached.sentry_host}`);
59
- console.log(` Scopes: ${cached.scope}`);
60
- console.log(` Expires: ${expiresAt.toLocaleString()}`);
61
- } else console.log("Not authenticated. Run `sentry-mcp auth login` to sign in.");
62
- }
63
- async function authCommand(argv) {
64
- const sub = argv[0] ?? "login";
65
- const rest = argv.slice(1);
66
- switch (sub) {
67
- case "login": return login(rest);
68
- case "logout": return logout(rest);
69
- case "status": return status(rest);
70
- default:
71
- console.error(`Unknown auth command: ${sub}`);
72
- console.error("Available: auth login, auth logout, auth status");
73
- process.exit(1);
74
- }
75
- }
76
-
77
- //#endregion
78
- Object.defineProperty(exports, 'authCommand', {
79
- enumerable: true,
80
- get: function () {
81
- return authCommand;
82
- }
83
- });
84
- Object.defineProperty(exports, 'parseFlag', {
85
- enumerable: true,
86
- get: function () {
87
- return parseFlag;
88
- }
89
- });
90
- //# sourceMappingURL=auth-B__Aec1m.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth-B__Aec1m.cjs","names":["argv: string[]","name: string","DEFAULT_SENTRY_CLIENT_ID","OAUTH_HOST"],"sources":["../src/cli/commands/auth.ts"],"sourcesContent":["import { parseEnv } from \"../parse\";\nimport { resolveHost } from \"../resolve\";\nimport {\n DEFAULT_SENTRY_CLIENT_ID,\n isSentryIo,\n OAUTH_HOST,\n} from \"../../auth/constants\";\nimport { authenticate } from \"../../auth/device-code-flow\";\nimport {\n readCachedToken,\n writeCachedToken,\n clearCachedToken,\n} from \"../../auth/token-cache\";\nimport { toCachedToken } from \"../../auth/types\";\n\ntype AuthContext = {\n sentryHost: string;\n clientId: string;\n};\n\nexport function parseFlag(argv: string[], name: string): string | undefined {\n for (let i = 0; i < argv.length; i++) {\n const arg = argv[i];\n if (arg.startsWith(`--${name}=`)) {\n return arg.slice(`--${name}=`.length);\n }\n if (arg === `--${name}` && i + 1 < argv.length) {\n return argv[i + 1];\n }\n }\n return undefined;\n}\n\nfunction resolveAuthContext(argv: string[]): AuthContext {\n const env = parseEnv(process.env);\n\n // Match the precedence of the server's merge() + finalize() path:\n // merged url (CLI --url ?? env SENTRY_URL) beats merged host (CLI --host ?? env SENTRY_HOST)\n const url = parseFlag(argv, \"url\") ?? env.url;\n const host = parseFlag(argv, \"host\") ?? env.host;\n const sentryHost = resolveHost(url, host);\n\n return { sentryHost, clientId: env.clientId || DEFAULT_SENTRY_CLIENT_ID };\n}\n\nasync function login(argv: string[]): Promise<void> {\n const { sentryHost, clientId } = resolveAuthContext(argv);\n\n if (!isSentryIo(sentryHost)) {\n console.error(\n \"Error: Device code authentication is only supported for sentry.io.\",\n );\n process.exit(1);\n }\n\n try {\n const tokenResponse = await authenticate({ clientId, host: OAUTH_HOST });\n await writeCachedToken(toCachedToken(tokenResponse, sentryHost, clientId));\n } catch (err) {\n console.error(\n err instanceof Error ? err.message : `Authentication failed: ${err}`,\n );\n process.exit(1);\n }\n}\n\nasync function logout(argv: string[]): Promise<void> {\n const { sentryHost, clientId } = resolveAuthContext(argv);\n\n const cached = await readCachedToken(sentryHost, clientId);\n if (cached) {\n await clearCachedToken(sentryHost, clientId);\n console.log(`Logged out (removed cached token for ${cached.user_email}).`);\n } else {\n console.log(\"No cached authentication found.\");\n }\n}\n\nasync function status(argv: string[]): Promise<void> {\n const { sentryHost, clientId } = resolveAuthContext(argv);\n\n const cached = await readCachedToken(sentryHost, clientId);\n if (cached) {\n const expiresAt = new Date(cached.expires_at);\n console.log(`Authenticated as ${cached.user_email}`);\n console.log(` Host: ${cached.sentry_host}`);\n console.log(` Scopes: ${cached.scope}`);\n console.log(` Expires: ${expiresAt.toLocaleString()}`);\n } else {\n console.log(\"Not authenticated. Run `sentry-mcp auth login` to sign in.\");\n }\n}\n\nexport async function authCommand(argv: string[]): Promise<void> {\n const sub = argv[0] ?? \"login\";\n const rest = argv.slice(1);\n\n switch (sub) {\n case \"login\":\n return login(rest);\n case \"logout\":\n return logout(rest);\n case \"status\":\n return status(rest);\n default:\n console.error(`Unknown auth command: ${sub}`);\n console.error(\"Available: auth login, auth logout, auth status\");\n process.exit(1);\n }\n}\n"],"mappings":";;;;;;;;AAoBA,SAAgB,UAAUA,MAAgBC,MAAkC;AAC1E,MAAK,IAAI,IAAI,GAAG,IAAI,KAAK,QAAQ,KAAK;EACpC,MAAM,MAAM,KAAK;AACjB,MAAI,IAAI,YAAY,IAAI,KAAK,GAAG,CAC9B,QAAO,IAAI,OAAO,IAAI,KAAK,GAAG,OAAO;AAEvC,MAAI,SAAS,IAAI,UAAU,IAAI,IAAI,KAAK,OACtC,QAAO,KAAK,IAAI;CAEnB;AACD;AACD;AAED,SAAS,mBAAmBD,MAA6B;CACvD,MAAM,MAAM,uBAAS,QAAQ,IAAI;CAIjC,MAAM,MAAM,UAAU,MAAM,MAAM,IAAI,IAAI;CAC1C,MAAM,OAAO,UAAU,MAAM,OAAO,IAAI,IAAI;CAC5C,MAAM,aAAa,4BAAY,KAAK,KAAK;AAEzC,QAAO;EAAE;EAAY,UAAU,IAAI,YAAYE;CAA0B;AAC1E;AAED,eAAe,MAAMF,MAA+B;CAClD,MAAM,EAAE,YAAY,UAAU,GAAG,mBAAmB,KAAK;AAEzD,MAAK,+BAAW,WAAW,EAAE;AAC3B,UAAQ,MACN,qEACD;AACD,UAAQ,KAAK,EAAE;CAChB;AAED,KAAI;EACF,MAAM,gBAAgB,MAAM,sCAAa;GAAE;GAAU,MAAMG;EAAY,EAAC;AACxE,QAAM,qCAAiB,4BAAc,eAAe,YAAY,SAAS,CAAC;CAC3E,SAAQ,KAAK;AACZ,UAAQ,MACN,eAAe,QAAQ,IAAI,WAAW,yBAAyB,MAChE;AACD,UAAQ,KAAK,EAAE;CAChB;AACF;AAED,eAAe,OAAOH,MAA+B;CACnD,MAAM,EAAE,YAAY,UAAU,GAAG,mBAAmB,KAAK;CAEzD,MAAM,SAAS,MAAM,oCAAgB,YAAY,SAAS;AAC1D,KAAI,QAAQ;AACV,QAAM,qCAAiB,YAAY,SAAS;AAC5C,UAAQ,KAAK,uCAAuC,OAAO,WAAW,IAAI;CAC3E,MACC,SAAQ,IAAI,kCAAkC;AAEjD;AAED,eAAe,OAAOA,MAA+B;CACnD,MAAM,EAAE,YAAY,UAAU,GAAG,mBAAmB,KAAK;CAEzD,MAAM,SAAS,MAAM,oCAAgB,YAAY,SAAS;AAC1D,KAAI,QAAQ;EACV,MAAM,YAAY,IAAI,KAAK,OAAO;AAClC,UAAQ,KAAK,mBAAmB,OAAO,aAAa;AACpD,UAAQ,KAAK,aAAa,OAAO,cAAc;AAC/C,UAAQ,KAAK,aAAa,OAAO,QAAQ;AACzC,UAAQ,KAAK,aAAa,UAAU,gBAAgB,GAAG;CACxD,MACC,SAAQ,IAAI,6DAA6D;AAE5E;AAED,eAAsB,YAAYA,MAA+B;CAC/D,MAAM,MAAM,KAAK,MAAM;CACvB,MAAM,OAAO,KAAK,MAAM,EAAE;AAE1B,SAAQ,KAAR;EACE,KAAK,QACH,QAAO,MAAM,KAAK;EACpB,KAAK,SACH,QAAO,OAAO,KAAK;EACrB,KAAK,SACH,QAAO,OAAO,KAAK;EACrB;AACE,WAAQ,OAAO,wBAAwB,MAAM;AAC7C,WAAQ,MAAM,kDAAkD;AAChE,WAAQ,KAAK,EAAE;CAClB;AACF"}