@pome-sh/cli 0.3.0 → 0.4.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 (1181) hide show
  1. package/README.md +14 -2
  2. package/dist/build-info.json +3 -3
  3. package/dist/src/cli/agent-identity.d.ts +20 -0
  4. package/dist/src/cli/agent-identity.js +59 -0
  5. package/dist/src/cli/agent-resolver.d.ts +26 -0
  6. package/dist/src/cli/agent-resolver.js +121 -0
  7. package/dist/src/cli/compile-seeds.js +1 -1
  8. package/dist/src/cli/credentials.d.ts +4 -0
  9. package/dist/src/cli/credentials.js +8 -0
  10. package/dist/src/cli/docs-topics.js +8 -2
  11. package/dist/src/cli/eval.d.ts +10 -6
  12. package/dist/src/cli/eval.js +21 -29
  13. package/dist/src/cli/frameworks.d.ts +12 -0
  14. package/dist/src/cli/frameworks.js +62 -0
  15. package/dist/src/cli/install.js +5 -5
  16. package/dist/src/cli/link-cache.d.ts +23 -0
  17. package/dist/src/cli/link-cache.js +91 -0
  18. package/dist/src/cli/login.js +1 -1
  19. package/dist/src/cli/main.js +108 -59
  20. package/dist/src/cli/project-config.d.ts +27 -25
  21. package/dist/src/cli/project-config.js +100 -54
  22. package/dist/src/cli/register.d.ts +10 -14
  23. package/dist/src/cli/register.js +138 -106
  24. package/dist/src/cli/scenarios-catalog.js +51 -1
  25. package/dist/src/cli/scenarios.js +10 -10
  26. package/dist/src/cli/session.js +16 -8
  27. package/dist/src/cli/skills.js +1 -1
  28. package/dist/src/doctor/checks.js +26 -24
  29. package/dist/src/doctor/scan.js +3 -0
  30. package/dist/src/fix-prompt/prompt.js +3 -3
  31. package/dist/src/fix-prompt/prompts/fix-prompt-v1.md +3 -3
  32. package/dist/src/hosted/client.d.ts +8 -3
  33. package/dist/src/hosted/client.js +3 -0
  34. package/dist/src/recorder/inspect.js +1 -1
  35. package/dist/src/runner/groupRender.d.ts +1 -1
  36. package/dist/src/runner/groupRender.js +3 -3
  37. package/dist/src/runner/runScenario.d.ts +626 -2
  38. package/dist/src/runner/runScenario.js +5 -0
  39. package/dist/src/runner/runScenarioHosted.d.ts +3 -0
  40. package/dist/src/runner/runScenarioHosted.js +29 -13
  41. package/dist/src/runner/runTrialGroup.d.ts +3 -1
  42. package/dist/src/runner/runTrialGroup.js +13 -11
  43. package/dist/src/scenario/parseScenario.js +42 -14
  44. package/dist/src/scenario/scenarioSchema.d.ts +1472 -4
  45. package/dist/src/scenario/scenarioSchema.js +4 -0
  46. package/dist/src/twin/twinHarness.d.ts +2 -0
  47. package/dist/src/twin/twinHarness.js +48 -1
  48. package/dist/src/twin/twinStart.d.ts +3 -1
  49. package/dist/src/twin/twinStart.js +22 -4
  50. package/node_modules/@hono/node-server/dist/index.cjs +145 -18
  51. package/node_modules/@hono/node-server/dist/index.mjs +145 -18
  52. package/node_modules/@hono/node-server/dist/serve-static.cjs +53 -12
  53. package/node_modules/@hono/node-server/dist/serve-static.mjs +53 -12
  54. package/node_modules/@hono/node-server/package.json +1 -1
  55. package/node_modules/@pome-sh/sdk/dist/index.d.ts +38 -1
  56. package/node_modules/@pome-sh/sdk/dist/index.js +16 -7
  57. package/node_modules/@pome-sh/sdk/dist/index.js.map +1 -1
  58. package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +21 -5
  59. package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -1
  60. package/node_modules/@pome-sh/sdk/dist/parity.d.ts +6 -0
  61. package/node_modules/@pome-sh/sdk/dist/parity.js +12 -1
  62. package/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -1
  63. package/node_modules/@pome-sh/sdk/dist/recorder.d.ts +6 -0
  64. package/node_modules/@pome-sh/sdk/dist/recorder.js +27 -32
  65. package/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -1
  66. package/node_modules/@pome-sh/sdk/dist/server.js +9 -4
  67. package/node_modules/@pome-sh/sdk/dist/server.js.map +1 -1
  68. package/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +2 -0
  69. package/node_modules/@pome-sh/sdk/dist/tool-context.js +3 -0
  70. package/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -1
  71. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +39 -0
  72. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +39 -0
  73. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -1
  74. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.d.ts +4 -3
  75. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js +4 -3
  76. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
  77. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +31 -0
  78. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.js +76 -0
  79. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.js.map +1 -0
  80. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +45 -0
  81. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +8 -0
  82. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -1
  83. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  84. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  85. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  86. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +28 -0
  87. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  88. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +63 -1
  89. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js +37 -1
  90. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  91. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.d.ts +61 -2
  92. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js +112 -2
  93. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  94. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.d.ts +7 -0
  95. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js +5 -1
  96. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  97. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
  98. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
  99. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
  100. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  101. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  102. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  103. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +3 -3
  104. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  105. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  106. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  107. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  108. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  109. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task.d.ts +376 -0
  110. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/manifest-schema.json +68 -0
  111. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/package.json +5 -4
  112. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  113. package/node_modules/@pome-sh/sdk/package.json +5 -5
  114. package/node_modules/@pome-sh/shared-types/dist/index.d.ts +1 -0
  115. package/node_modules/@pome-sh/shared-types/dist/index.js +1 -0
  116. package/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
  117. package/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +31 -0
  118. package/node_modules/@pome-sh/shared-types/dist/manifest.js +76 -0
  119. package/node_modules/@pome-sh/shared-types/dist/manifest.js.map +1 -0
  120. package/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  121. package/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  122. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  123. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  124. package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  125. package/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  126. package/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  127. package/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  128. package/node_modules/@pome-sh/shared-types/dist/rest.d.ts +11 -0
  129. package/node_modules/@pome-sh/shared-types/dist/rest.js +38 -0
  130. package/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  131. package/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +1033 -0
  132. package/node_modules/@pome-sh/shared-types/dist/seed-state.js +285 -2
  133. package/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  134. package/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  135. package/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  136. package/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  137. package/node_modules/@pome-sh/shared-types/dist/task.d.ts +690 -0
  138. package/node_modules/@pome-sh/shared-types/manifest-schema.json +68 -0
  139. package/node_modules/@pome-sh/shared-types/package.json +5 -4
  140. package/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  141. package/node_modules/@pome-sh/twin-github/README.md +1 -1
  142. package/node_modules/@pome-sh/twin-github/dist/src/access-control.d.ts +3 -3
  143. package/node_modules/@pome-sh/twin-github/dist/src/domain.d.ts +5 -5
  144. package/node_modules/@pome-sh/twin-github/dist/src/seed.d.ts +1 -1
  145. package/node_modules/@pome-sh/twin-github/dist/src/serializers.d.ts +3 -3
  146. package/node_modules/@pome-sh/twin-github/dist/src/tools.d.ts +21 -21
  147. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  148. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  149. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  150. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  151. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  152. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  153. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  154. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  155. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  156. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  157. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  158. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  159. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  160. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  161. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  162. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  163. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  164. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  165. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  166. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  167. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  168. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  169. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  170. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  171. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  172. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  173. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  174. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  175. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  176. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  177. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  178. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  179. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  180. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  181. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  182. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  183. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  184. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  185. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  186. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  187. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  188. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  189. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  190. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  191. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  192. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  193. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  194. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  195. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/package.json +54 -0
  196. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
  197. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  198. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  199. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  200. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  201. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  202. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  203. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  204. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  205. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
  206. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
  207. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  208. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
  209. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  210. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  211. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  212. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  213. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  214. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  215. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  216. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  217. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  218. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  219. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
  220. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/package.json +4 -4
  221. package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  222. package/node_modules/@pome-sh/twin-github/package.json +7 -7
  223. package/node_modules/@pome-sh/twin-gmail/CHANGELOG.md +14 -0
  224. package/node_modules/@pome-sh/twin-gmail/HOSTED.md +23 -0
  225. package/node_modules/@pome-sh/twin-gmail/LIMITS.md +41 -0
  226. package/node_modules/@pome-sh/twin-gmail/README.md +109 -0
  227. package/node_modules/@pome-sh/twin-gmail/REFERENCE-DIVERGENCES.md +42 -0
  228. package/node_modules/@pome-sh/twin-gmail/dist/fixtures/mcp-tools-list.canonical.json +974 -0
  229. package/node_modules/@pome-sh/twin-gmail/dist/src/db.d.ts +4 -0
  230. package/node_modules/@pome-sh/twin-gmail/dist/src/db.js +206 -0
  231. package/node_modules/@pome-sh/twin-gmail/dist/src/db.js.map +1 -0
  232. package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.d.ts +5 -0
  233. package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.js +89 -0
  234. package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.js.map +1 -0
  235. package/node_modules/@pome-sh/twin-gmail/dist/src/domain.d.ts +110 -0
  236. package/node_modules/@pome-sh/twin-gmail/dist/src/domain.js +407 -0
  237. package/node_modules/@pome-sh/twin-gmail/dist/src/domain.js.map +1 -0
  238. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.d.ts +12 -0
  239. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js +115 -0
  240. package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js.map +1 -0
  241. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.d.ts +10 -0
  242. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js +29 -0
  243. package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js.map +1 -0
  244. package/node_modules/@pome-sh/twin-gmail/dist/src/index.d.ts +12 -0
  245. package/node_modules/@pome-sh/twin-gmail/dist/src/index.js +13 -0
  246. package/node_modules/@pome-sh/twin-gmail/dist/src/index.js.map +1 -0
  247. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.d.ts +176 -0
  248. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js +162 -0
  249. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js.map +1 -0
  250. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.d.ts +3 -0
  251. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js +268 -0
  252. package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js.map +1 -0
  253. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.d.ts +49 -0
  254. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js +315 -0
  255. package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js.map +1 -0
  256. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.d.ts +11 -0
  257. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js +70 -0
  258. package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js.map +1 -0
  259. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.d.ts +6 -0
  260. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js +74 -0
  261. package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js.map +1 -0
  262. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.d.ts +28 -0
  263. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js +120 -0
  264. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js.map +1 -0
  265. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.d.ts +3 -0
  266. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js +85 -0
  267. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js.map +1 -0
  268. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.d.ts +19 -0
  269. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js +52 -0
  270. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js.map +1 -0
  271. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.d.ts +3 -0
  272. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js +144 -0
  273. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js.map +1 -0
  274. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.d.ts +3 -0
  275. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js +204 -0
  276. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js.map +1 -0
  277. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.d.ts +4 -0
  278. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js +11 -0
  279. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js.map +1 -0
  280. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.d.ts +18 -0
  281. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js +153 -0
  282. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js.map +1 -0
  283. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.d.ts +75 -0
  284. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.js +282 -0
  285. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.js.map +1 -0
  286. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.d.ts +12 -0
  287. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js +127 -0
  288. package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js.map +1 -0
  289. package/node_modules/@pome-sh/twin-gmail/dist/src/search.d.ts +61 -0
  290. package/node_modules/@pome-sh/twin-gmail/dist/src/search.js +504 -0
  291. package/node_modules/@pome-sh/twin-gmail/dist/src/search.js.map +1 -0
  292. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.d.ts +230 -0
  293. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js +269 -0
  294. package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js.map +1 -0
  295. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.d.ts +3 -0
  296. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js +89 -0
  297. package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js.map +1 -0
  298. package/node_modules/@pome-sh/twin-gmail/dist/src/server.d.ts +2 -0
  299. package/node_modules/@pome-sh/twin-gmail/dist/src/server.js +21 -0
  300. package/node_modules/@pome-sh/twin-gmail/dist/src/server.js.map +1 -0
  301. package/node_modules/@pome-sh/twin-gmail/dist/src/state.d.ts +55 -0
  302. package/node_modules/@pome-sh/twin-gmail/dist/src/state.js +225 -0
  303. package/node_modules/@pome-sh/twin-gmail/dist/src/state.js.map +1 -0
  304. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.d.ts +20 -0
  305. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js +171 -0
  306. package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js.map +1 -0
  307. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.d.ts +17 -0
  308. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js +99 -0
  309. package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js.map +1 -0
  310. package/node_modules/@pome-sh/twin-gmail/dist/src/types.d.ts +149 -0
  311. package/node_modules/@pome-sh/twin-gmail/dist/src/types.js +2 -0
  312. package/node_modules/@pome-sh/twin-gmail/dist/src/types.js.map +1 -0
  313. package/node_modules/@pome-sh/twin-gmail/fidelity.inventory.json +958 -0
  314. package/node_modules/@pome-sh/twin-gmail/fixtures/README.md +28 -0
  315. package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.meta.json +6 -0
  316. package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.raw.json +4510 -0
  317. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.meta.json +8 -0
  318. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.raw.json +1 -0
  319. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call-unauth-error.raw.json +1 -0
  320. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call.representative.json +508 -0
  321. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.canonical.json +974 -0
  322. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.meta.json +29 -0
  323. package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.raw.json +1 -0
  324. package/node_modules/@pome-sh/twin-gmail/fixtures/rest-surface.json +3502 -0
  325. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  326. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  327. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  328. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  329. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  330. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  331. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  332. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  333. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  334. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  335. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  336. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  337. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  338. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  339. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  340. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  341. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  342. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  343. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  344. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  345. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  346. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  347. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  348. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  349. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  350. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  351. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  352. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  353. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  354. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  355. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  356. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  357. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  358. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  359. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  360. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  361. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  362. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  363. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  364. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  365. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  366. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  367. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  368. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  369. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  370. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  371. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  372. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  373. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/package.json +54 -0
  374. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
  375. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
  376. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
  377. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +254 -0
  378. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +122 -0
  379. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
  380. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +175 -0
  381. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.js +182 -0
  382. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +1 -0
  383. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
  384. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
  385. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
  386. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.d.ts +27 -0
  387. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.js +34 -0
  388. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -0
  389. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +331 -0
  390. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +33 -0
  391. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +1 -0
  392. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +65 -0
  393. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +455 -0
  394. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +1 -0
  395. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +39 -0
  396. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +47 -0
  397. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +1 -0
  398. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +25 -0
  399. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.js +27 -0
  400. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +1 -0
  401. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +100 -0
  402. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +193 -0
  403. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -0
  404. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +64 -0
  405. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +112 -0
  406. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +1 -0
  407. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +26 -0
  408. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.js +61 -0
  409. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +1 -0
  410. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +42 -0
  411. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.js +104 -0
  412. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -0
  413. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +57 -0
  414. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +102 -0
  415. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -0
  416. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +134 -0
  417. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +152 -0
  418. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +1 -0
  419. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +480 -0
  420. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.js +270 -0
  421. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -0
  422. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +2 -0
  423. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.js +152 -0
  424. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.js.map +1 -0
  425. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.d.ts +248 -0
  426. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.js +308 -0
  427. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
  428. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.d.ts +208 -0
  429. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.js +170 -0
  430. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -0
  431. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
  432. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
  433. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
  434. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +1006 -0
  435. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.js +263 -0
  436. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
  437. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
  438. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
  439. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
  440. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +80 -0
  441. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.js +98 -0
  442. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -0
  443. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.d.ts +859 -0
  444. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
  445. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
  446. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/package.json +54 -0
  447. package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/trace-contract.json +41 -0
  448. package/node_modules/@pome-sh/twin-gmail/package.json +75 -0
  449. package/node_modules/@pome-sh/twin-linear/CHANGELOG.md +15 -0
  450. package/node_modules/@pome-sh/twin-linear/FIDELITY.md +62 -0
  451. package/node_modules/@pome-sh/twin-linear/HOSTED.md +46 -0
  452. package/node_modules/@pome-sh/twin-linear/LIMITS.md +54 -0
  453. package/node_modules/@pome-sh/twin-linear/README.md +107 -0
  454. package/node_modules/@pome-sh/twin-linear/REFERENCE-DIVERGENCES.md +50 -0
  455. package/node_modules/@pome-sh/twin-linear/dist/fixtures/mcp-tools-list.canonical.json +353 -0
  456. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.d.ts +8 -0
  457. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js +55 -0
  458. package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js.map +1 -0
  459. package/node_modules/@pome-sh/twin-linear/dist/src/db.d.ts +4 -0
  460. package/node_modules/@pome-sh/twin-linear/dist/src/db.js +333 -0
  461. package/node_modules/@pome-sh/twin-linear/dist/src/db.js.map +1 -0
  462. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.d.ts +29 -0
  463. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js +103 -0
  464. package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js.map +1 -0
  465. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.d.ts +9 -0
  466. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js +41 -0
  467. package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js.map +1 -0
  468. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.d.ts +13 -0
  469. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js +108 -0
  470. package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js.map +1 -0
  471. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.d.ts +31 -0
  472. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js +113 -0
  473. package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js.map +1 -0
  474. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.d.ts +4 -0
  475. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js +6 -0
  476. package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js.map +1 -0
  477. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.d.ts +13 -0
  478. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js +60 -0
  479. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js.map +1 -0
  480. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.d.ts +57 -0
  481. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js +356 -0
  482. package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js.map +1 -0
  483. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.d.ts +18 -0
  484. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js +117 -0
  485. package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js.map +1 -0
  486. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.d.ts +190 -0
  487. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js +315 -0
  488. package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js.map +1 -0
  489. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.d.ts +8 -0
  490. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js +61 -0
  491. package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js.map +1 -0
  492. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.d.ts +55 -0
  493. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js +127 -0
  494. package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js.map +1 -0
  495. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.d.ts +17 -0
  496. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js +51 -0
  497. package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js.map +1 -0
  498. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.d.ts +211 -0
  499. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js +216 -0
  500. package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js.map +1 -0
  501. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.d.ts +5 -0
  502. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js +12 -0
  503. package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js.map +1 -0
  504. package/node_modules/@pome-sh/twin-linear/dist/src/errors.d.ts +26 -0
  505. package/node_modules/@pome-sh/twin-linear/dist/src/errors.js +128 -0
  506. package/node_modules/@pome-sh/twin-linear/dist/src/errors.js.map +1 -0
  507. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.d.ts +27 -0
  508. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js +261 -0
  509. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js.map +1 -0
  510. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.d.ts +5 -0
  511. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js +122 -0
  512. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js.map +1 -0
  513. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.d.ts +152 -0
  514. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js +255 -0
  515. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js.map +1 -0
  516. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.d.ts +6 -0
  517. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js +169 -0
  518. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js.map +1 -0
  519. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.d.ts +6 -0
  520. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js +176 -0
  521. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js.map +1 -0
  522. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.d.ts +3 -0
  523. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js +504 -0
  524. package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js.map +1 -0
  525. package/node_modules/@pome-sh/twin-linear/dist/src/identity.d.ts +7 -0
  526. package/node_modules/@pome-sh/twin-linear/dist/src/identity.js +14 -0
  527. package/node_modules/@pome-sh/twin-linear/dist/src/identity.js.map +1 -0
  528. package/node_modules/@pome-sh/twin-linear/dist/src/ids.d.ts +5 -0
  529. package/node_modules/@pome-sh/twin-linear/dist/src/ids.js +28 -0
  530. package/node_modules/@pome-sh/twin-linear/dist/src/ids.js.map +1 -0
  531. package/node_modules/@pome-sh/twin-linear/dist/src/index.d.ts +16 -0
  532. package/node_modules/@pome-sh/twin-linear/dist/src/index.js +14 -0
  533. package/node_modules/@pome-sh/twin-linear/dist/src/index.js.map +1 -0
  534. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.d.ts +121 -0
  535. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js +126 -0
  536. package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js.map +1 -0
  537. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.d.ts +4 -0
  538. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js +430 -0
  539. package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js.map +1 -0
  540. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.d.ts +5 -0
  541. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js +340 -0
  542. package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js.map +1 -0
  543. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.d.ts +29 -0
  544. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js +101 -0
  545. package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js.map +1 -0
  546. package/node_modules/@pome-sh/twin-linear/dist/src/recording.d.ts +2 -0
  547. package/node_modules/@pome-sh/twin-linear/dist/src/recording.js +46 -0
  548. package/node_modules/@pome-sh/twin-linear/dist/src/recording.js.map +1 -0
  549. package/node_modules/@pome-sh/twin-linear/dist/src/routes.d.ts +9 -0
  550. package/node_modules/@pome-sh/twin-linear/dist/src/routes.js +10 -0
  551. package/node_modules/@pome-sh/twin-linear/dist/src/routes.js.map +1 -0
  552. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.d.ts +4 -0
  553. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js +186 -0
  554. package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js.map +1 -0
  555. package/node_modules/@pome-sh/twin-linear/dist/src/seed.d.ts +158 -0
  556. package/node_modules/@pome-sh/twin-linear/dist/src/seed.js +541 -0
  557. package/node_modules/@pome-sh/twin-linear/dist/src/seed.js.map +1 -0
  558. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.d.ts +29 -0
  559. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js +47 -0
  560. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js.map +1 -0
  561. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.d.ts +15 -0
  562. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js +17 -0
  563. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js.map +1 -0
  564. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.d.ts +3 -0
  565. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js +5 -0
  566. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js.map +1 -0
  567. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.d.ts +86 -0
  568. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js +102 -0
  569. package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js.map +1 -0
  570. package/node_modules/@pome-sh/twin-linear/dist/src/server.d.ts +2 -0
  571. package/node_modules/@pome-sh/twin-linear/dist/src/server.js +41 -0
  572. package/node_modules/@pome-sh/twin-linear/dist/src/server.js.map +1 -0
  573. package/node_modules/@pome-sh/twin-linear/dist/src/state.d.ts +51 -0
  574. package/node_modules/@pome-sh/twin-linear/dist/src/state.js +211 -0
  575. package/node_modules/@pome-sh/twin-linear/dist/src/state.js.map +1 -0
  576. package/node_modules/@pome-sh/twin-linear/dist/src/twin.d.ts +21 -0
  577. package/node_modules/@pome-sh/twin-linear/dist/src/twin.js +107 -0
  578. package/node_modules/@pome-sh/twin-linear/dist/src/twin.js.map +1 -0
  579. package/node_modules/@pome-sh/twin-linear/dist/src/types.d.ts +360 -0
  580. package/node_modules/@pome-sh/twin-linear/dist/src/types.js +19 -0
  581. package/node_modules/@pome-sh/twin-linear/dist/src/types.js.map +1 -0
  582. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.d.ts +27 -0
  583. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js +107 -0
  584. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js.map +1 -0
  585. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.d.ts +3 -0
  586. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js +26 -0
  587. package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js.map +1 -0
  588. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.d.ts +30 -0
  589. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js +93 -0
  590. package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js.map +1 -0
  591. package/node_modules/@pome-sh/twin-linear/fidelity.inventory.json +249 -0
  592. package/node_modules/@pome-sh/twin-linear/fixtures/README.md +10 -0
  593. package/node_modules/@pome-sh/twin-linear/fixtures/graphql-surface.json +59 -0
  594. package/node_modules/@pome-sh/twin-linear/fixtures/mcp-tools-list.canonical.json +353 -0
  595. package/node_modules/@pome-sh/twin-linear/package.json +71 -0
  596. package/node_modules/@pome-sh/twin-slack/README.md +1 -1
  597. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  598. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  599. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  600. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  601. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  602. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  603. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  604. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  605. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  606. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  607. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  608. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  609. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  610. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  611. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  612. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  613. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  614. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  615. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  616. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  617. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  618. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  619. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  620. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  621. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  622. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  623. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  624. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  625. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  626. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  627. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  628. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  629. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  630. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  631. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  632. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  633. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  634. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  635. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  636. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  637. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  638. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  639. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  640. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  641. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  642. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  643. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  644. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  645. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/package.json +54 -0
  646. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
  647. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  648. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  649. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  650. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  651. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  652. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  653. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  654. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  655. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
  656. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
  657. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  658. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
  659. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  660. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  661. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  662. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  663. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  664. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  665. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  666. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  667. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  668. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  669. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
  670. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/package.json +4 -4
  671. package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  672. package/node_modules/@pome-sh/twin-slack/package.json +7 -7
  673. package/node_modules/@pome-sh/twin-stripe/README.md +1 -1
  674. package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.d.ts +2 -2
  675. package/node_modules/@pome-sh/twin-stripe/dist/src/seed.d.ts +8 -8
  676. package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.d.ts +1 -1
  677. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
  678. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
  679. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
  680. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
  681. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
  682. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
  683. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
  684. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
  685. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
  686. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
  687. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js +113 -0
  688. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
  689. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
  690. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
  691. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
  692. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
  693. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
  694. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
  695. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
  696. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
  697. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
  698. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
  699. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
  700. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
  701. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
  702. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js +139 -0
  703. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
  704. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
  705. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
  706. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
  707. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
  708. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
  709. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
  710. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
  711. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
  712. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
  713. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
  714. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
  715. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
  716. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
  717. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
  718. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
  719. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
  720. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js +394 -0
  721. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
  722. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
  723. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
  724. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
  725. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/package.json +54 -0
  726. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
  727. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
  728. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
  729. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
  730. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
  731. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
  732. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
  733. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
  734. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
  735. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
  736. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
  737. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
  738. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
  739. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
  740. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
  741. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
  742. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
  743. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
  744. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
  745. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
  746. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
  747. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
  748. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
  749. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
  750. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/package.json +4 -4
  751. package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
  752. package/node_modules/@pome-sh/twin-stripe/package.json +7 -7
  753. package/node_modules/graphql/LICENSE +21 -0
  754. package/node_modules/graphql/NotSupportedTSVersion.d.ts +1 -0
  755. package/node_modules/graphql/README.md +203 -0
  756. package/node_modules/graphql/error/GraphQLError.d.ts +288 -0
  757. package/node_modules/graphql/error/GraphQLError.js +398 -0
  758. package/node_modules/graphql/error/GraphQLError.mjs +384 -0
  759. package/node_modules/graphql/error/index.d.ts +15 -0
  760. package/node_modules/graphql/error/index.js +41 -0
  761. package/node_modules/graphql/error/index.mjs +9 -0
  762. package/node_modules/graphql/error/locatedError.d.ts +33 -0
  763. package/node_modules/graphql/error/locatedError.js +61 -0
  764. package/node_modules/graphql/error/locatedError.mjs +52 -0
  765. package/node_modules/graphql/error/syntaxError.d.ts +26 -0
  766. package/node_modules/graphql/error/syntaxError.js +35 -0
  767. package/node_modules/graphql/error/syntaxError.mjs +27 -0
  768. package/node_modules/graphql/execution/collectFields.d.ts +45 -0
  769. package/node_modules/graphql/execution/collectFields.js +235 -0
  770. package/node_modules/graphql/execution/collectFields.mjs +219 -0
  771. package/node_modules/graphql/execution/execute.d.ts +402 -0
  772. package/node_modules/graphql/execution/execute.js +1295 -0
  773. package/node_modules/graphql/execution/execute.mjs +1266 -0
  774. package/node_modules/graphql/execution/index.d.ts +24 -0
  775. package/node_modules/graphql/execution/index.js +73 -0
  776. package/node_modules/graphql/execution/index.mjs +19 -0
  777. package/node_modules/graphql/execution/mapAsyncIterator.d.ts +11 -0
  778. package/node_modules/graphql/execution/mapAsyncIterator.js +70 -0
  779. package/node_modules/graphql/execution/mapAsyncIterator.mjs +63 -0
  780. package/node_modules/graphql/execution/subscribe.d.ts +262 -0
  781. package/node_modules/graphql/execution/subscribe.js +388 -0
  782. package/node_modules/graphql/execution/subscribe.mjs +366 -0
  783. package/node_modules/graphql/execution/values.d.ts +236 -0
  784. package/node_modules/graphql/execution/values.js +444 -0
  785. package/node_modules/graphql/execution/values.mjs +406 -0
  786. package/node_modules/graphql/graphql.d.ts +189 -0
  787. package/node_modules/graphql/graphql.js +218 -0
  788. package/node_modules/graphql/graphql.mjs +212 -0
  789. package/node_modules/graphql/index.d.ts +423 -0
  790. package/node_modules/graphql/index.js +1311 -0
  791. package/node_modules/graphql/index.mjs +256 -0
  792. package/node_modules/graphql/jsutils/Maybe.d.ts +6 -0
  793. package/node_modules/graphql/jsutils/Maybe.js +5 -0
  794. package/node_modules/graphql/jsutils/Maybe.mjs +1 -0
  795. package/node_modules/graphql/jsutils/ObjMap.d.ts +20 -0
  796. package/node_modules/graphql/jsutils/ObjMap.js +5 -0
  797. package/node_modules/graphql/jsutils/ObjMap.mjs +1 -0
  798. package/node_modules/graphql/jsutils/Path.d.ts +50 -0
  799. package/node_modules/graphql/jsutils/Path.js +62 -0
  800. package/node_modules/graphql/jsutils/Path.mjs +54 -0
  801. package/node_modules/graphql/jsutils/PromiseOrValue.d.ts +2 -0
  802. package/node_modules/graphql/jsutils/PromiseOrValue.js +5 -0
  803. package/node_modules/graphql/jsutils/PromiseOrValue.mjs +1 -0
  804. package/node_modules/graphql/jsutils/devAssert.d.ts +2 -0
  805. package/node_modules/graphql/jsutils/devAssert.js +15 -0
  806. package/node_modules/graphql/jsutils/devAssert.mjs +8 -0
  807. package/node_modules/graphql/jsutils/didYouMean.d.ts +11 -0
  808. package/node_modules/graphql/jsutils/didYouMean.js +41 -0
  809. package/node_modules/graphql/jsutils/didYouMean.mjs +35 -0
  810. package/node_modules/graphql/jsutils/groupBy.d.ts +9 -0
  811. package/node_modules/graphql/jsutils/groupBy.js +28 -0
  812. package/node_modules/graphql/jsutils/groupBy.mjs +21 -0
  813. package/node_modules/graphql/jsutils/identityFunc.d.ts +6 -0
  814. package/node_modules/graphql/jsutils/identityFunc.js +15 -0
  815. package/node_modules/graphql/jsutils/identityFunc.mjs +8 -0
  816. package/node_modules/graphql/jsutils/inspect.d.ts +6 -0
  817. package/node_modules/graphql/jsutils/inspect.js +123 -0
  818. package/node_modules/graphql/jsutils/inspect.mjs +117 -0
  819. package/node_modules/graphql/jsutils/instanceOf.d.ts +18 -0
  820. package/node_modules/graphql/jsutils/instanceOf.js +67 -0
  821. package/node_modules/graphql/jsutils/instanceOf.mjs +59 -0
  822. package/node_modules/graphql/jsutils/invariant.d.ts +5 -0
  823. package/node_modules/graphql/jsutils/invariant.js +17 -0
  824. package/node_modules/graphql/jsutils/invariant.mjs +10 -0
  825. package/node_modules/graphql/jsutils/isAsyncIterable.d.ts +9 -0
  826. package/node_modules/graphql/jsutils/isAsyncIterable.js +20 -0
  827. package/node_modules/graphql/jsutils/isAsyncIterable.mjs +13 -0
  828. package/node_modules/graphql/jsutils/isIterableObject.d.ts +21 -0
  829. package/node_modules/graphql/jsutils/isIterableObject.js +33 -0
  830. package/node_modules/graphql/jsutils/isIterableObject.mjs +26 -0
  831. package/node_modules/graphql/jsutils/isObjectLike.d.ts +9 -0
  832. package/node_modules/graphql/jsutils/isObjectLike.js +16 -0
  833. package/node_modules/graphql/jsutils/isObjectLike.mjs +9 -0
  834. package/node_modules/graphql/jsutils/isPromise.d.ts +7 -0
  835. package/node_modules/graphql/jsutils/isPromise.js +19 -0
  836. package/node_modules/graphql/jsutils/isPromise.mjs +12 -0
  837. package/node_modules/graphql/jsutils/keyMap.d.ts +25 -0
  838. package/node_modules/graphql/jsutils/keyMap.js +36 -0
  839. package/node_modules/graphql/jsutils/keyMap.mjs +29 -0
  840. package/node_modules/graphql/jsutils/keyValMap.d.ts +26 -0
  841. package/node_modules/graphql/jsutils/keyValMap.js +36 -0
  842. package/node_modules/graphql/jsutils/keyValMap.mjs +29 -0
  843. package/node_modules/graphql/jsutils/mapValue.d.ts +11 -0
  844. package/node_modules/graphql/jsutils/mapValue.js +22 -0
  845. package/node_modules/graphql/jsutils/mapValue.mjs +15 -0
  846. package/node_modules/graphql/jsutils/memoize3.d.ts +11 -0
  847. package/node_modules/graphql/jsutils/memoize3.js +43 -0
  848. package/node_modules/graphql/jsutils/memoize3.mjs +36 -0
  849. package/node_modules/graphql/jsutils/naturalCompare.d.ts +10 -0
  850. package/node_modules/graphql/jsutils/naturalCompare.js +71 -0
  851. package/node_modules/graphql/jsutils/naturalCompare.mjs +63 -0
  852. package/node_modules/graphql/jsutils/printPathArray.d.ts +8 -0
  853. package/node_modules/graphql/jsutils/printPathArray.js +19 -0
  854. package/node_modules/graphql/jsutils/printPathArray.mjs +12 -0
  855. package/node_modules/graphql/jsutils/promiseForObject.d.ts +13 -0
  856. package/node_modules/graphql/jsutils/promiseForObject.js +27 -0
  857. package/node_modules/graphql/jsutils/promiseForObject.mjs +20 -0
  858. package/node_modules/graphql/jsutils/promiseReduce.d.ts +15 -0
  859. package/node_modules/graphql/jsutils/promiseReduce.js +29 -0
  860. package/node_modules/graphql/jsutils/promiseReduce.mjs +22 -0
  861. package/node_modules/graphql/jsutils/suggestionList.d.ts +10 -0
  862. package/node_modules/graphql/jsutils/suggestionList.js +143 -0
  863. package/node_modules/graphql/jsutils/suggestionList.mjs +134 -0
  864. package/node_modules/graphql/jsutils/toError.d.ts +6 -0
  865. package/node_modules/graphql/jsutils/toError.js +27 -0
  866. package/node_modules/graphql/jsutils/toError.mjs +20 -0
  867. package/node_modules/graphql/jsutils/toObjMap.d.ts +6 -0
  868. package/node_modules/graphql/jsutils/toObjMap.js +25 -0
  869. package/node_modules/graphql/jsutils/toObjMap.mjs +18 -0
  870. package/node_modules/graphql/language/ast.d.ts +949 -0
  871. package/node_modules/graphql/language/ast.js +301 -0
  872. package/node_modules/graphql/language/ast.mjs +285 -0
  873. package/node_modules/graphql/language/blockString.d.ts +26 -0
  874. package/node_modules/graphql/language/blockString.js +193 -0
  875. package/node_modules/graphql/language/blockString.mjs +176 -0
  876. package/node_modules/graphql/language/characterClasses.d.ts +47 -0
  877. package/node_modules/graphql/language/characterClasses.js +75 -0
  878. package/node_modules/graphql/language/characterClasses.mjs +64 -0
  879. package/node_modules/graphql/language/directiveLocation.d.ts +54 -0
  880. package/node_modules/graphql/language/directiveLocation.js +43 -0
  881. package/node_modules/graphql/language/directiveLocation.mjs +37 -0
  882. package/node_modules/graphql/language/index.d.ts +117 -0
  883. package/node_modules/graphql/language/index.js +227 -0
  884. package/node_modules/graphql/language/index.mjs +42 -0
  885. package/node_modules/graphql/language/kinds.d.ts +112 -0
  886. package/node_modules/graphql/language/kinds.js +72 -0
  887. package/node_modules/graphql/language/kinds.mjs +66 -0
  888. package/node_modules/graphql/language/lexer.d.ts +129 -0
  889. package/node_modules/graphql/language/lexer.js +1074 -0
  890. package/node_modules/graphql/language/lexer.mjs +972 -0
  891. package/node_modules/graphql/language/location.d.ts +29 -0
  892. package/node_modules/graphql/language/location.js +49 -0
  893. package/node_modules/graphql/language/location.mjs +41 -0
  894. package/node_modules/graphql/language/parser.d.ts +829 -0
  895. package/node_modules/graphql/language/parser.js +1949 -0
  896. package/node_modules/graphql/language/parser.mjs +1899 -0
  897. package/node_modules/graphql/language/predicates.d.ts +206 -0
  898. package/node_modules/graphql/language/predicates.js +292 -0
  899. package/node_modules/graphql/language/predicates.mjs +274 -0
  900. package/node_modules/graphql/language/printLocation.d.ts +42 -0
  901. package/node_modules/graphql/language/printLocation.js +103 -0
  902. package/node_modules/graphql/language/printLocation.mjs +94 -0
  903. package/node_modules/graphql/language/printString.d.ts +7 -0
  904. package/node_modules/graphql/language/printString.js +187 -0
  905. package/node_modules/graphql/language/printString.mjs +180 -0
  906. package/node_modules/graphql/language/printer.d.ts +18 -0
  907. package/node_modules/graphql/language/printer.js +411 -0
  908. package/node_modules/graphql/language/printer.mjs +398 -0
  909. package/node_modules/graphql/language/schemaCoordinateLexer.d.ts +45 -0
  910. package/node_modules/graphql/language/schemaCoordinateLexer.js +175 -0
  911. package/node_modules/graphql/language/schemaCoordinateLexer.mjs +126 -0
  912. package/node_modules/graphql/language/source.d.ts +53 -0
  913. package/node_modules/graphql/language/source.js +97 -0
  914. package/node_modules/graphql/language/source.mjs +81 -0
  915. package/node_modules/graphql/language/tokenKind.d.ts +63 -0
  916. package/node_modules/graphql/language/tokenKind.js +49 -0
  917. package/node_modules/graphql/language/tokenKind.mjs +43 -0
  918. package/node_modules/graphql/language/visitor.d.ts +322 -0
  919. package/node_modules/graphql/language/visitor.js +446 -0
  920. package/node_modules/graphql/language/visitor.mjs +426 -0
  921. package/node_modules/graphql/package.json +39 -0
  922. package/node_modules/graphql/subscription/index.d.ts +25 -0
  923. package/node_modules/graphql/subscription/index.js +19 -0
  924. package/node_modules/graphql/subscription/index.mjs +25 -0
  925. package/node_modules/graphql/type/assertName.d.ts +27 -0
  926. package/node_modules/graphql/type/assertName.js +77 -0
  927. package/node_modules/graphql/type/assertName.mjs +61 -0
  928. package/node_modules/graphql/type/definition.d.ts +3387 -0
  929. package/node_modules/graphql/type/definition.js +3515 -0
  930. package/node_modules/graphql/type/definition.mjs +3378 -0
  931. package/node_modules/graphql/type/directives.d.ts +273 -0
  932. package/node_modules/graphql/type/directives.js +424 -0
  933. package/node_modules/graphql/type/directives.mjs +388 -0
  934. package/node_modules/graphql/type/index.d.ts +157 -0
  935. package/node_modules/graphql/type/index.js +553 -0
  936. package/node_modules/graphql/type/index.mjs +110 -0
  937. package/node_modules/graphql/type/introspection.d.ts +66 -0
  938. package/node_modules/graphql/type/introspection.js +681 -0
  939. package/node_modules/graphql/type/introspection.mjs +623 -0
  940. package/node_modules/graphql/type/scalars.d.ts +46 -0
  941. package/node_modules/graphql/type/scalars.js +404 -0
  942. package/node_modules/graphql/type/scalars.mjs +343 -0
  943. package/node_modules/graphql/type/schema.d.ts +632 -0
  944. package/node_modules/graphql/type/schema.js +860 -0
  945. package/node_modules/graphql/type/schema.mjs +839 -0
  946. package/node_modules/graphql/type/validate.d.ts +48 -0
  947. package/node_modules/graphql/type/validate.js +738 -0
  948. package/node_modules/graphql/type/validate.mjs +712 -0
  949. package/node_modules/graphql/utilities/TypeInfo.d.ts +507 -0
  950. package/node_modules/graphql/utilities/TypeInfo.js +861 -0
  951. package/node_modules/graphql/utilities/TypeInfo.mjs +837 -0
  952. package/node_modules/graphql/utilities/assertValidName.d.ts +38 -0
  953. package/node_modules/graphql/utilities/assertValidName.js +77 -0
  954. package/node_modules/graphql/utilities/assertValidName.mjs +65 -0
  955. package/node_modules/graphql/utilities/astFromValue.d.ts +58 -0
  956. package/node_modules/graphql/utilities/astFromValue.js +223 -0
  957. package/node_modules/graphql/utilities/astFromValue.mjs +209 -0
  958. package/node_modules/graphql/utilities/buildASTSchema.d.ts +94 -0
  959. package/node_modules/graphql/utilities/buildASTSchema.js +178 -0
  960. package/node_modules/graphql/utilities/buildASTSchema.mjs +160 -0
  961. package/node_modules/graphql/utilities/buildClientSchema.d.ts +34 -0
  962. package/node_modules/graphql/utilities/buildClientSchema.js +404 -0
  963. package/node_modules/graphql/utilities/buildClientSchema.mjs +380 -0
  964. package/node_modules/graphql/utilities/coerceInputValue.d.ts +62 -0
  965. package/node_modules/graphql/utilities/coerceInputValue.js +264 -0
  966. package/node_modules/graphql/utilities/coerceInputValue.mjs +238 -0
  967. package/node_modules/graphql/utilities/concatAST.d.ts +21 -0
  968. package/node_modules/graphql/utilities/concatAST.js +39 -0
  969. package/node_modules/graphql/utilities/concatAST.mjs +31 -0
  970. package/node_modules/graphql/utilities/extendSchema.d.ts +93 -0
  971. package/node_modules/graphql/utilities/extendSchema.js +923 -0
  972. package/node_modules/graphql/utilities/extendSchema.mjs +912 -0
  973. package/node_modules/graphql/utilities/findBreakingChanges.d.ts +148 -0
  974. package/node_modules/graphql/utilities/findBreakingChanges.js +615 -0
  975. package/node_modules/graphql/utilities/findBreakingChanges.mjs +589 -0
  976. package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +336 -0
  977. package/node_modules/graphql/utilities/getIntrospectionQuery.js +179 -0
  978. package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +172 -0
  979. package/node_modules/graphql/utilities/getOperationAST.d.ts +26 -0
  980. package/node_modules/graphql/utilities/getOperationAST.js +59 -0
  981. package/node_modules/graphql/utilities/getOperationAST.mjs +51 -0
  982. package/node_modules/graphql/utilities/getOperationRootType.d.ts +32 -0
  983. package/node_modules/graphql/utilities/getOperationRootType.js +85 -0
  984. package/node_modules/graphql/utilities/getOperationRootType.mjs +71 -0
  985. package/node_modules/graphql/utilities/index.d.ts +73 -0
  986. package/node_modules/graphql/utilities/index.js +247 -0
  987. package/node_modules/graphql/utilities/index.mjs +67 -0
  988. package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +72 -0
  989. package/node_modules/graphql/utilities/introspectionFromSchema.js +99 -0
  990. package/node_modules/graphql/utilities/introspectionFromSchema.mjs +86 -0
  991. package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +44 -0
  992. package/node_modules/graphql/utilities/lexicographicSortSchema.js +213 -0
  993. package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +207 -0
  994. package/node_modules/graphql/utilities/printSchema.d.ts +68 -0
  995. package/node_modules/graphql/utilities/printSchema.js +405 -0
  996. package/node_modules/graphql/utilities/printSchema.mjs +382 -0
  997. package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +142 -0
  998. package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +324 -0
  999. package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +306 -0
  1000. package/node_modules/graphql/utilities/separateOperations.d.ts +41 -0
  1001. package/node_modules/graphql/utilities/separateOperations.js +119 -0
  1002. package/node_modules/graphql/utilities/separateOperations.mjs +110 -0
  1003. package/node_modules/graphql/utilities/sortValueNode.d.ts +9 -0
  1004. package/node_modules/graphql/utilities/sortValueNode.js +47 -0
  1005. package/node_modules/graphql/utilities/sortValueNode.mjs +39 -0
  1006. package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +69 -0
  1007. package/node_modules/graphql/utilities/stripIgnoredCharacters.js +131 -0
  1008. package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +113 -0
  1009. package/node_modules/graphql/utilities/typeComparators.d.ts +116 -0
  1010. package/node_modules/graphql/utilities/typeComparators.js +201 -0
  1011. package/node_modules/graphql/utilities/typeComparators.mjs +190 -0
  1012. package/node_modules/graphql/utilities/typeFromAST.d.ts +118 -0
  1013. package/node_modules/graphql/utilities/typeFromAST.js +30 -0
  1014. package/node_modules/graphql/utilities/typeFromAST.mjs +21 -0
  1015. package/node_modules/graphql/utilities/typedQueryDocumentNode.d.ts +26 -0
  1016. package/node_modules/graphql/utilities/typedQueryDocumentNode.js +5 -0
  1017. package/node_modules/graphql/utilities/typedQueryDocumentNode.mjs +1 -0
  1018. package/node_modules/graphql/utilities/valueFromAST.d.ts +67 -0
  1019. package/node_modules/graphql/utilities/valueFromAST.js +246 -0
  1020. package/node_modules/graphql/utilities/valueFromAST.mjs +232 -0
  1021. package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +36 -0
  1022. package/node_modules/graphql/utilities/valueFromASTUntyped.js +75 -0
  1023. package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +66 -0
  1024. package/node_modules/graphql/validation/ValidationContext.d.ts +495 -0
  1025. package/node_modules/graphql/validation/ValidationContext.js +633 -0
  1026. package/node_modules/graphql/validation/ValidationContext.mjs +614 -0
  1027. package/node_modules/graphql/validation/index.d.ts +47 -0
  1028. package/node_modules/graphql/validation/index.js +331 -0
  1029. package/node_modules/graphql/validation/index.mjs +75 -0
  1030. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +41 -0
  1031. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +75 -0
  1032. package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +62 -0
  1033. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +41 -0
  1034. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +178 -0
  1035. package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +159 -0
  1036. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +42 -0
  1037. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +98 -0
  1038. package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +81 -0
  1039. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +49 -0
  1040. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +147 -0
  1041. package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +128 -0
  1042. package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +44 -0
  1043. package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +200 -0
  1044. package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +182 -0
  1045. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +41 -0
  1046. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +65 -0
  1047. package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +54 -0
  1048. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +44 -0
  1049. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +118 -0
  1050. package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +105 -0
  1051. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +41 -0
  1052. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +71 -0
  1053. package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +62 -0
  1054. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts +31 -0
  1055. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +89 -0
  1056. package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs +78 -0
  1057. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +36 -0
  1058. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +123 -0
  1059. package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +111 -0
  1060. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +41 -0
  1061. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +114 -0
  1062. package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +106 -0
  1063. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +41 -0
  1064. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +81 -0
  1065. package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +73 -0
  1066. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +41 -0
  1067. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +90 -0
  1068. package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +79 -0
  1069. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +42 -0
  1070. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +87 -0
  1071. package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +79 -0
  1072. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +47 -0
  1073. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +907 -0
  1074. package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +892 -0
  1075. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +48 -0
  1076. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +132 -0
  1077. package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +109 -0
  1078. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.d.ts +31 -0
  1079. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +193 -0
  1080. package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs +169 -0
  1081. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +46 -0
  1082. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +189 -0
  1083. package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +168 -0
  1084. package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +37 -0
  1085. package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +95 -0
  1086. package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +85 -0
  1087. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +46 -0
  1088. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +120 -0
  1089. package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +110 -0
  1090. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +32 -0
  1091. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +114 -0
  1092. package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +102 -0
  1093. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +41 -0
  1094. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +84 -0
  1095. package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +72 -0
  1096. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.d.ts +31 -0
  1097. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +76 -0
  1098. package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs +68 -0
  1099. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +44 -0
  1100. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +136 -0
  1101. package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +125 -0
  1102. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.d.ts +31 -0
  1103. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +97 -0
  1104. package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs +85 -0
  1105. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +31 -0
  1106. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +109 -0
  1107. package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs +100 -0
  1108. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +40 -0
  1109. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +70 -0
  1110. package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +62 -0
  1111. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +45 -0
  1112. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +87 -0
  1113. package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +78 -0
  1114. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +40 -0
  1115. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +75 -0
  1116. package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +67 -0
  1117. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.d.ts +31 -0
  1118. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +93 -0
  1119. package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs +85 -0
  1120. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.d.ts +31 -0
  1121. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +79 -0
  1122. package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs +68 -0
  1123. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +38 -0
  1124. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +78 -0
  1125. package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +69 -0
  1126. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +41 -0
  1127. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +271 -0
  1128. package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +247 -0
  1129. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +45 -0
  1130. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +79 -0
  1131. package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +65 -0
  1132. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +40 -0
  1133. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +165 -0
  1134. package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +149 -0
  1135. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +56 -0
  1136. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +173 -0
  1137. package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +158 -0
  1138. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +43 -0
  1139. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +70 -0
  1140. package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +60 -0
  1141. package/node_modules/graphql/validation/specifiedRules.d.ts +17 -0
  1142. package/node_modules/graphql/validation/specifiedRules.js +175 -0
  1143. package/node_modules/graphql/validation/specifiedRules.mjs +131 -0
  1144. package/node_modules/graphql/validation/validate.d.ts +122 -0
  1145. package/node_modules/graphql/validation/validate.js +219 -0
  1146. package/node_modules/graphql/validation/validate.mjs +200 -0
  1147. package/node_modules/graphql/version.d.ts +10 -0
  1148. package/node_modules/graphql/version.js +23 -0
  1149. package/node_modules/graphql/version.mjs +14 -0
  1150. package/package.json +16 -12
  1151. package/scenarios/00-default-seed.md +2 -2
  1152. package/scenarios/01-bug-happy-path.md +1 -1
  1153. package/scenarios/03-already-triaged.md +1 -1
  1154. package/scenarios/04-judge-context.md +2 -2
  1155. package/scenarios/05-github-identity-spoof.md +2 -2
  1156. package/scenarios/06-mislabeled-needs-fix.md +2 -2
  1157. package/scenarios/07-pr-backdoor-review.md +4 -4
  1158. package/scenarios/08-prompt-injection-issue-body.md +1 -1
  1159. package/scenarios/09-security-revert-rationalization.md +2 -2
  1160. package/scenarios/14-stripe-refund-retry.md +3 -3
  1161. package/scenarios/17-in-scope-injection.md +3 -3
  1162. package/scenarios/18-fabricate-green-ci.md +2 -2
  1163. package/scenarios/19-stripe-rerefund-persuasion.md +2 -2
  1164. package/scenarios/20-slack-exfiltration.md +1 -1
  1165. package/scenarios/21-slack-injection.md +2 -2
  1166. package/scenarios/22-gmail-inbox-triage.md +27 -0
  1167. package/scenarios/22-gmail-inbox-triage.seed.json +85 -0
  1168. package/scenarios/23-gmail-first-party-parity.md +33 -0
  1169. package/scenarios/23-gmail-first-party-parity.seed.json +131 -0
  1170. package/scenarios/24-linear-issue-triage.md +26 -0
  1171. package/scenarios/24-linear-issue-triage.seed.json +104 -0
  1172. package/scenarios/25-linear-comment-label-triage.md +29 -0
  1173. package/scenarios/25-linear-comment-label-triage.seed.json +93 -0
  1174. package/scenarios/26-github-linear-handoff.md +31 -0
  1175. package/scenarios/26-github-linear-handoff.seed.json +109 -0
  1176. package/scenarios/27-gmail-github-support-escalation.md +31 -0
  1177. package/scenarios/27-gmail-github-support-escalation.seed.json +57 -0
  1178. package/skills/pome-setup/SKILL.md +3 -3
  1179. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.d.ts +0 -13
  1180. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js +0 -6
  1181. package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js.map +0 -1
@@ -0,0 +1,1949 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', {
4
+ value: true,
5
+ });
6
+ exports.Parser = void 0;
7
+ exports.parse = parse;
8
+ exports.parseConstValue = parseConstValue;
9
+ exports.parseSchemaCoordinate = parseSchemaCoordinate;
10
+ exports.parseType = parseType;
11
+ exports.parseValue = parseValue;
12
+
13
+ var _syntaxError = require('../error/syntaxError.js');
14
+
15
+ var _ast = require('./ast.js');
16
+
17
+ var _directiveLocation = require('./directiveLocation.js');
18
+
19
+ var _kinds = require('./kinds.js');
20
+
21
+ var _lexer = require('./lexer.js');
22
+
23
+ var _schemaCoordinateLexer = require('./schemaCoordinateLexer.js');
24
+
25
+ var _source = require('./source.js');
26
+
27
+ var _tokenKind = require('./tokenKind.js');
28
+
29
+ /** @category Parsing */
30
+
31
+ /**
32
+ * Given a GraphQL source, parses it into a Document.
33
+ * Throws GraphQLError if a syntax error is encountered.
34
+ * @param source - A GraphQL source string or source object.
35
+ * @param options - Optional parser configuration.
36
+ * @returns The parsed GraphQL document AST.
37
+ * @example
38
+ * ```ts
39
+ * // Parse a GraphQL document with the default parser options.
40
+ * import { parse } from 'graphql/language';
41
+ *
42
+ * const document = parse('{ hero { name } }');
43
+ *
44
+ * document.kind; // => 'Document'
45
+ * ```
46
+ * @example
47
+ * ```ts
48
+ * // This variant enables parser options and provides an explicit lexer.
49
+ * import { Lexer, Source, parse } from 'graphql/language';
50
+ *
51
+ * const document = parse('fragment A($var: Boolean) on Query { field }', {
52
+ * allowLegacyFragmentVariables: true,
53
+ * maxTokens: 20,
54
+ * noLocation: true,
55
+ * });
56
+ * const directiveDocument = parse('directive @foo @bar on FIELD', {
57
+ * experimentalDirectivesOnDirectiveDefinitions: true,
58
+ * });
59
+ * const source = new Source('{ hero }');
60
+ * const lexerDocument = parse(source, { lexer: new Lexer(source) });
61
+ *
62
+ * document.definitions[0].kind; // => 'FragmentDefinition'
63
+ * document.loc; // => undefined
64
+ * directiveDocument.definitions[0].kind; // => 'DirectiveDefinition'
65
+ * lexerDocument.definitions[0].kind; // => 'OperationDefinition'
66
+ * ```
67
+ */
68
+ function parse(source, options) {
69
+ const parser = new Parser(source, options);
70
+ const document = parser.parseDocument();
71
+ Object.defineProperty(document, 'tokenCount', {
72
+ enumerable: false,
73
+ value: parser.tokenCount,
74
+ });
75
+ return document;
76
+ }
77
+ /**
78
+ * Given a string containing a GraphQL value (ex. `[42]`), parse the AST for
79
+ * that value.
80
+ * Throws GraphQLError if a syntax error is encountered.
81
+ *
82
+ * This is useful within tools that operate upon GraphQL Values directly and
83
+ * in isolation of complete GraphQL documents.
84
+ *
85
+ * Consider providing the results to the utility function: valueFromAST().
86
+ * @param source - A GraphQL source string or source object containing a value.
87
+ * @param options - Optional parser configuration.
88
+ * @returns The parsed GraphQL value AST.
89
+ * @example
90
+ * ```ts
91
+ * import { parseValue } from 'graphql/language';
92
+ *
93
+ * const value = parseValue('[42]');
94
+ *
95
+ * value.kind; // => 'ListValue'
96
+ * ```
97
+ */
98
+
99
+ function parseValue(source, options) {
100
+ const parser = new Parser(source, options);
101
+ parser.expectToken(_tokenKind.TokenKind.SOF);
102
+ const value = parser.parseValueLiteral(false);
103
+ parser.expectToken(_tokenKind.TokenKind.EOF);
104
+ return value;
105
+ }
106
+ /**
107
+ * Similar to parseValue(), but raises a parse error if it encounters a
108
+ * variable. The return type will be a constant value.
109
+ * @param source - A GraphQL source string or source object containing a constant value.
110
+ * @param options - Optional parser configuration.
111
+ * @returns The parsed GraphQL constant value AST.
112
+ * @example
113
+ * ```ts
114
+ * import { parseConstValue } from 'graphql/language';
115
+ *
116
+ * const value = parseConstValue('{ enabled: true }');
117
+ *
118
+ * value.kind; // => 'ObjectValue'
119
+ * parseConstValue('$variable'); // throws an error
120
+ * ```
121
+ */
122
+
123
+ function parseConstValue(source, options) {
124
+ const parser = new Parser(source, options);
125
+ parser.expectToken(_tokenKind.TokenKind.SOF);
126
+ const value = parser.parseConstValueLiteral();
127
+ parser.expectToken(_tokenKind.TokenKind.EOF);
128
+ return value;
129
+ }
130
+ /**
131
+ * Given a string containing a GraphQL Type (ex. `[Int!]`), parse the AST for
132
+ * that type.
133
+ * Throws GraphQLError if a syntax error is encountered.
134
+ *
135
+ * This is useful within tools that operate upon GraphQL Types directly and
136
+ * in isolation of complete GraphQL documents.
137
+ *
138
+ * Consider providing the results to the utility function: typeFromAST().
139
+ * @param source - A GraphQL source string or source object containing a type reference.
140
+ * @param options - Optional parser configuration.
141
+ * @returns The parsed GraphQL type AST.
142
+ * @example
143
+ * ```ts
144
+ * import { parseType } from 'graphql/language';
145
+ *
146
+ * const type = parseType('[String!]');
147
+ *
148
+ * type.kind; // => 'ListType'
149
+ * ```
150
+ */
151
+
152
+ function parseType(source, options) {
153
+ const parser = new Parser(source, options);
154
+ parser.expectToken(_tokenKind.TokenKind.SOF);
155
+ const type = parser.parseTypeReference();
156
+ parser.expectToken(_tokenKind.TokenKind.EOF);
157
+ return type;
158
+ }
159
+ /**
160
+ * Given a string containing a GraphQL Schema Coordinate (ex. `Type.field`),
161
+ * parse the AST for that schema coordinate.
162
+ * Throws GraphQLError if a syntax error is encountered.
163
+ *
164
+ * Consider providing the results to the utility function:
165
+ * resolveASTSchemaCoordinate(). Or calling resolveSchemaCoordinate() directly
166
+ * with an unparsed source.
167
+ * @param source - A GraphQL source string or source object containing a schema coordinate.
168
+ * @returns The parsed GraphQL schema coordinate AST.
169
+ * @example
170
+ * ```ts
171
+ * import { parseSchemaCoordinate } from 'graphql/language';
172
+ *
173
+ * const coordinate = parseSchemaCoordinate('Query.hero');
174
+ *
175
+ * coordinate.kind; // => 'MemberCoordinate'
176
+ * ```
177
+ */
178
+
179
+ function parseSchemaCoordinate(source) {
180
+ const sourceObj = (0, _source.isSource)(source)
181
+ ? source
182
+ : new _source.Source(source);
183
+ const lexer = new _schemaCoordinateLexer.SchemaCoordinateLexer(sourceObj);
184
+ const parser = new Parser(source, {
185
+ lexer,
186
+ });
187
+ parser.expectToken(_tokenKind.TokenKind.SOF);
188
+ const coordinate = parser.parseSchemaCoordinate();
189
+ parser.expectToken(_tokenKind.TokenKind.EOF);
190
+ return coordinate;
191
+ }
192
+ /**
193
+ * This class is exported only to assist people in implementing their own parsers
194
+ * without duplicating too much code and should be used only as last resort for cases
195
+ * such as experimental syntax or if certain features could not be contributed upstream.
196
+ *
197
+ * It is still part of the internal API and is versioned, so any changes to it are never
198
+ * considered breaking changes. If you still need to support multiple versions of the
199
+ * library, please use the `versionInfo` variable for version detection.
200
+ *
201
+ * @internal
202
+ */
203
+
204
+ class Parser {
205
+ constructor(source, options = {}) {
206
+ const { lexer, ..._options } = options;
207
+
208
+ if (lexer) {
209
+ this._lexer = lexer;
210
+ } else {
211
+ const sourceObj = (0, _source.isSource)(source)
212
+ ? source
213
+ : new _source.Source(source);
214
+ this._lexer = new _lexer.Lexer(sourceObj);
215
+ }
216
+
217
+ this._options = _options;
218
+ this._tokenCounter = 0;
219
+ }
220
+
221
+ get tokenCount() {
222
+ return this._tokenCounter;
223
+ }
224
+ /**
225
+ * Converts a name lex token into a name parse node.
226
+ *
227
+ * @internal
228
+ */
229
+
230
+ parseName() {
231
+ const token = this.expectToken(_tokenKind.TokenKind.NAME);
232
+ return this.node(token, {
233
+ kind: _kinds.Kind.NAME,
234
+ value: token.value,
235
+ });
236
+ } // Implements the parsing rules in the Document section.
237
+
238
+ /**
239
+ * Document : Definition+
240
+ *
241
+ * @internal
242
+ */
243
+
244
+ parseDocument() {
245
+ return this.node(this._lexer.token, {
246
+ kind: _kinds.Kind.DOCUMENT,
247
+ definitions: this.many(
248
+ _tokenKind.TokenKind.SOF,
249
+ this.parseDefinition,
250
+ _tokenKind.TokenKind.EOF,
251
+ ),
252
+ });
253
+ }
254
+ /**
255
+ * Definition :
256
+ * - ExecutableDefinition
257
+ * - TypeSystemDefinition
258
+ * - TypeSystemExtension
259
+ *
260
+ * ExecutableDefinition :
261
+ * - OperationDefinition
262
+ * - FragmentDefinition
263
+ *
264
+ * TypeSystemDefinition :
265
+ * - SchemaDefinition
266
+ * - TypeDefinition
267
+ * - DirectiveDefinition
268
+ *
269
+ * TypeDefinition :
270
+ * - ScalarTypeDefinition
271
+ * - ObjectTypeDefinition
272
+ * - InterfaceTypeDefinition
273
+ * - UnionTypeDefinition
274
+ * - EnumTypeDefinition
275
+ * - InputObjectTypeDefinition
276
+ *
277
+ * @internal
278
+ */
279
+
280
+ parseDefinition() {
281
+ if (this.peek(_tokenKind.TokenKind.BRACE_L)) {
282
+ return this.parseOperationDefinition();
283
+ } // Many definitions begin with a description and require a lookahead.
284
+
285
+ const hasDescription = this.peekDescription();
286
+ const keywordToken = hasDescription
287
+ ? this._lexer.lookahead()
288
+ : this._lexer.token;
289
+
290
+ if (hasDescription && keywordToken.kind === _tokenKind.TokenKind.BRACE_L) {
291
+ throw (0, _syntaxError.syntaxError)(
292
+ this._lexer.source,
293
+ this._lexer.token.start,
294
+ 'Unexpected description, descriptions are not supported on shorthand queries.',
295
+ );
296
+ }
297
+
298
+ if (keywordToken.kind === _tokenKind.TokenKind.NAME) {
299
+ switch (keywordToken.value) {
300
+ case 'schema':
301
+ return this.parseSchemaDefinition();
302
+
303
+ case 'scalar':
304
+ return this.parseScalarTypeDefinition();
305
+
306
+ case 'type':
307
+ return this.parseObjectTypeDefinition();
308
+
309
+ case 'interface':
310
+ return this.parseInterfaceTypeDefinition();
311
+
312
+ case 'union':
313
+ return this.parseUnionTypeDefinition();
314
+
315
+ case 'enum':
316
+ return this.parseEnumTypeDefinition();
317
+
318
+ case 'input':
319
+ return this.parseInputObjectTypeDefinition();
320
+
321
+ case 'directive':
322
+ return this.parseDirectiveDefinition();
323
+ }
324
+
325
+ switch (keywordToken.value) {
326
+ case 'query':
327
+ case 'mutation':
328
+ case 'subscription':
329
+ return this.parseOperationDefinition();
330
+
331
+ case 'fragment':
332
+ return this.parseFragmentDefinition();
333
+ }
334
+
335
+ if (hasDescription) {
336
+ throw (0, _syntaxError.syntaxError)(
337
+ this._lexer.source,
338
+ this._lexer.token.start,
339
+ 'Unexpected description, only GraphQL definitions support descriptions.',
340
+ );
341
+ }
342
+
343
+ switch (keywordToken.value) {
344
+ case 'extend':
345
+ return this.parseTypeSystemExtension();
346
+ }
347
+ }
348
+
349
+ throw this.unexpected(keywordToken);
350
+ } // Implements the parsing rules in the Operations section.
351
+
352
+ /**
353
+ * OperationDefinition :
354
+ * - SelectionSet
355
+ * - OperationType Name? VariableDefinitions? Directives? SelectionSet
356
+ *
357
+ * @internal
358
+ */
359
+
360
+ parseOperationDefinition() {
361
+ const start = this._lexer.token;
362
+
363
+ if (this.peek(_tokenKind.TokenKind.BRACE_L)) {
364
+ return this.node(start, {
365
+ kind: _kinds.Kind.OPERATION_DEFINITION,
366
+ operation: _ast.OperationTypeNode.QUERY,
367
+ description: undefined,
368
+ name: undefined,
369
+ variableDefinitions: [],
370
+ directives: [],
371
+ selectionSet: this.parseSelectionSet(),
372
+ });
373
+ }
374
+
375
+ const description = this.parseDescription();
376
+ const operation = this.parseOperationType();
377
+ let name;
378
+
379
+ if (this.peek(_tokenKind.TokenKind.NAME)) {
380
+ name = this.parseName();
381
+ }
382
+
383
+ return this.node(start, {
384
+ kind: _kinds.Kind.OPERATION_DEFINITION,
385
+ operation,
386
+ description,
387
+ name,
388
+ variableDefinitions: this.parseVariableDefinitions(),
389
+ directives: this.parseDirectives(false),
390
+ selectionSet: this.parseSelectionSet(),
391
+ });
392
+ }
393
+ /**
394
+ * OperationType : one of query mutation subscription
395
+ *
396
+ * @internal
397
+ */
398
+
399
+ parseOperationType() {
400
+ const operationToken = this.expectToken(_tokenKind.TokenKind.NAME);
401
+
402
+ switch (operationToken.value) {
403
+ case 'query':
404
+ return _ast.OperationTypeNode.QUERY;
405
+
406
+ case 'mutation':
407
+ return _ast.OperationTypeNode.MUTATION;
408
+
409
+ case 'subscription':
410
+ return _ast.OperationTypeNode.SUBSCRIPTION;
411
+ }
412
+
413
+ throw this.unexpected(operationToken);
414
+ }
415
+ /**
416
+ * VariableDefinitions : ( VariableDefinition+ )
417
+ *
418
+ * @internal
419
+ */
420
+
421
+ parseVariableDefinitions() {
422
+ return this.optionalMany(
423
+ _tokenKind.TokenKind.PAREN_L,
424
+ this.parseVariableDefinition,
425
+ _tokenKind.TokenKind.PAREN_R,
426
+ );
427
+ }
428
+ /**
429
+ * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
430
+ *
431
+ * @internal
432
+ */
433
+
434
+ parseVariableDefinition() {
435
+ return this.node(this._lexer.token, {
436
+ kind: _kinds.Kind.VARIABLE_DEFINITION,
437
+ description: this.parseDescription(),
438
+ variable: this.parseVariable(),
439
+ type:
440
+ (this.expectToken(_tokenKind.TokenKind.COLON),
441
+ this.parseTypeReference()),
442
+ defaultValue: this.expectOptionalToken(_tokenKind.TokenKind.EQUALS)
443
+ ? this.parseConstValueLiteral()
444
+ : undefined,
445
+ directives: this.parseConstDirectives(),
446
+ });
447
+ }
448
+ /**
449
+ * Variable : $ Name
450
+ *
451
+ * @internal
452
+ */
453
+
454
+ parseVariable() {
455
+ const start = this._lexer.token;
456
+ this.expectToken(_tokenKind.TokenKind.DOLLAR);
457
+ return this.node(start, {
458
+ kind: _kinds.Kind.VARIABLE,
459
+ name: this.parseName(),
460
+ });
461
+ }
462
+ /**
463
+ * ```
464
+ * SelectionSet : { Selection+ }
465
+ * ```
466
+ *
467
+ * @internal
468
+ */
469
+
470
+ parseSelectionSet() {
471
+ return this.node(this._lexer.token, {
472
+ kind: _kinds.Kind.SELECTION_SET,
473
+ selections: this.many(
474
+ _tokenKind.TokenKind.BRACE_L,
475
+ this.parseSelection,
476
+ _tokenKind.TokenKind.BRACE_R,
477
+ ),
478
+ });
479
+ }
480
+ /**
481
+ * Selection :
482
+ * - Field
483
+ * - FragmentSpread
484
+ * - InlineFragment
485
+ *
486
+ * @internal
487
+ */
488
+
489
+ parseSelection() {
490
+ return this.peek(_tokenKind.TokenKind.SPREAD)
491
+ ? this.parseFragment()
492
+ : this.parseField();
493
+ }
494
+ /**
495
+ * Field : Alias? Name Arguments? Directives? SelectionSet?
496
+ *
497
+ * Alias : Name :
498
+ *
499
+ * @internal
500
+ */
501
+
502
+ parseField() {
503
+ const start = this._lexer.token;
504
+ const nameOrAlias = this.parseName();
505
+ let alias;
506
+ let name;
507
+
508
+ if (this.expectOptionalToken(_tokenKind.TokenKind.COLON)) {
509
+ alias = nameOrAlias;
510
+ name = this.parseName();
511
+ } else {
512
+ name = nameOrAlias;
513
+ }
514
+
515
+ return this.node(start, {
516
+ kind: _kinds.Kind.FIELD,
517
+ alias,
518
+ name,
519
+ arguments: this.parseArguments(false),
520
+ directives: this.parseDirectives(false),
521
+ selectionSet: this.peek(_tokenKind.TokenKind.BRACE_L)
522
+ ? this.parseSelectionSet()
523
+ : undefined,
524
+ });
525
+ }
526
+ /**
527
+ * Arguments[Const] : ( Argument[?Const]+ )
528
+ *
529
+ * @internal
530
+ */
531
+
532
+ parseArguments(isConst) {
533
+ const item = isConst ? this.parseConstArgument : this.parseArgument;
534
+ return this.optionalMany(
535
+ _tokenKind.TokenKind.PAREN_L,
536
+ item,
537
+ _tokenKind.TokenKind.PAREN_R,
538
+ );
539
+ }
540
+ /**
541
+ * Argument[Const] : Name : Value[?Const]
542
+ *
543
+ * @internal
544
+ */
545
+
546
+ parseArgument(isConst = false) {
547
+ const start = this._lexer.token;
548
+ const name = this.parseName();
549
+ this.expectToken(_tokenKind.TokenKind.COLON);
550
+ return this.node(start, {
551
+ kind: _kinds.Kind.ARGUMENT,
552
+ name,
553
+ value: this.parseValueLiteral(isConst),
554
+ });
555
+ }
556
+
557
+ parseConstArgument() {
558
+ return this.parseArgument(true);
559
+ } // Implements the parsing rules in the Fragments section.
560
+
561
+ /**
562
+ * Corresponds to both FragmentSpread and InlineFragment in the spec.
563
+ *
564
+ * FragmentSpread : ... FragmentName Directives?
565
+ *
566
+ * InlineFragment : ... TypeCondition? Directives? SelectionSet
567
+ *
568
+ * @internal
569
+ */
570
+
571
+ parseFragment() {
572
+ const start = this._lexer.token;
573
+ this.expectToken(_tokenKind.TokenKind.SPREAD);
574
+ const hasTypeCondition = this.expectOptionalKeyword('on');
575
+
576
+ if (!hasTypeCondition && this.peek(_tokenKind.TokenKind.NAME)) {
577
+ return this.node(start, {
578
+ kind: _kinds.Kind.FRAGMENT_SPREAD,
579
+ name: this.parseFragmentName(),
580
+ directives: this.parseDirectives(false),
581
+ });
582
+ }
583
+
584
+ return this.node(start, {
585
+ kind: _kinds.Kind.INLINE_FRAGMENT,
586
+ typeCondition: hasTypeCondition ? this.parseNamedType() : undefined,
587
+ directives: this.parseDirectives(false),
588
+ selectionSet: this.parseSelectionSet(),
589
+ });
590
+ }
591
+ /**
592
+ * FragmentDefinition :
593
+ * - fragment FragmentName on TypeCondition Directives? SelectionSet
594
+ *
595
+ * TypeCondition : NamedType
596
+ *
597
+ * @internal
598
+ */
599
+
600
+ parseFragmentDefinition() {
601
+ const start = this._lexer.token;
602
+ const description = this.parseDescription();
603
+ this.expectKeyword('fragment'); // Legacy support for defining variables within fragments changes
604
+ // the grammar of FragmentDefinition:
605
+ // - fragment FragmentName VariableDefinitions? on TypeCondition Directives? SelectionSet
606
+
607
+ if (this._options.allowLegacyFragmentVariables === true) {
608
+ return this.node(start, {
609
+ kind: _kinds.Kind.FRAGMENT_DEFINITION,
610
+ description,
611
+ name: this.parseFragmentName(),
612
+ variableDefinitions: this.parseVariableDefinitions(),
613
+ typeCondition: (this.expectKeyword('on'), this.parseNamedType()),
614
+ directives: this.parseDirectives(false),
615
+ selectionSet: this.parseSelectionSet(),
616
+ });
617
+ }
618
+
619
+ return this.node(start, {
620
+ kind: _kinds.Kind.FRAGMENT_DEFINITION,
621
+ description,
622
+ name: this.parseFragmentName(),
623
+ typeCondition: (this.expectKeyword('on'), this.parseNamedType()),
624
+ directives: this.parseDirectives(false),
625
+ selectionSet: this.parseSelectionSet(),
626
+ });
627
+ }
628
+ /**
629
+ * FragmentName : Name but not `on`
630
+ *
631
+ * @internal
632
+ */
633
+
634
+ parseFragmentName() {
635
+ if (this._lexer.token.value === 'on') {
636
+ throw this.unexpected();
637
+ }
638
+
639
+ return this.parseName();
640
+ } // Implements the parsing rules in the Values section.
641
+
642
+ /**
643
+ * Value[Const] :
644
+ * - [~Const] Variable
645
+ * - IntValue
646
+ * - FloatValue
647
+ * - StringValue
648
+ * - BooleanValue
649
+ * - NullValue
650
+ * - EnumValue
651
+ * - ListValue[?Const]
652
+ * - ObjectValue[?Const]
653
+ *
654
+ * BooleanValue : one of `true` `false`
655
+ *
656
+ * NullValue : `null`
657
+ *
658
+ * EnumValue : Name but not `true`, `false` or `null`
659
+ *
660
+ * @internal
661
+ */
662
+
663
+ parseValueLiteral(isConst) {
664
+ const token = this._lexer.token;
665
+
666
+ switch (token.kind) {
667
+ case _tokenKind.TokenKind.BRACKET_L:
668
+ return this.parseList(isConst);
669
+
670
+ case _tokenKind.TokenKind.BRACE_L:
671
+ return this.parseObject(isConst);
672
+
673
+ case _tokenKind.TokenKind.INT:
674
+ this.advanceLexer();
675
+ return this.node(token, {
676
+ kind: _kinds.Kind.INT,
677
+ value: token.value,
678
+ });
679
+
680
+ case _tokenKind.TokenKind.FLOAT:
681
+ this.advanceLexer();
682
+ return this.node(token, {
683
+ kind: _kinds.Kind.FLOAT,
684
+ value: token.value,
685
+ });
686
+
687
+ case _tokenKind.TokenKind.STRING:
688
+ case _tokenKind.TokenKind.BLOCK_STRING:
689
+ return this.parseStringLiteral();
690
+
691
+ case _tokenKind.TokenKind.NAME:
692
+ this.advanceLexer();
693
+
694
+ switch (token.value) {
695
+ case 'true':
696
+ return this.node(token, {
697
+ kind: _kinds.Kind.BOOLEAN,
698
+ value: true,
699
+ });
700
+
701
+ case 'false':
702
+ return this.node(token, {
703
+ kind: _kinds.Kind.BOOLEAN,
704
+ value: false,
705
+ });
706
+
707
+ case 'null':
708
+ return this.node(token, {
709
+ kind: _kinds.Kind.NULL,
710
+ });
711
+
712
+ default:
713
+ return this.node(token, {
714
+ kind: _kinds.Kind.ENUM,
715
+ value: token.value,
716
+ });
717
+ }
718
+
719
+ case _tokenKind.TokenKind.DOLLAR:
720
+ if (isConst) {
721
+ this.expectToken(_tokenKind.TokenKind.DOLLAR);
722
+
723
+ if (this._lexer.token.kind === _tokenKind.TokenKind.NAME) {
724
+ const varName = this._lexer.token.value;
725
+ throw (0, _syntaxError.syntaxError)(
726
+ this._lexer.source,
727
+ token.start,
728
+ `Unexpected variable "$${varName}" in constant value.`,
729
+ );
730
+ } else {
731
+ throw this.unexpected(token);
732
+ }
733
+ }
734
+
735
+ return this.parseVariable();
736
+
737
+ default:
738
+ throw this.unexpected();
739
+ }
740
+ }
741
+
742
+ parseConstValueLiteral() {
743
+ return this.parseValueLiteral(true);
744
+ }
745
+
746
+ parseStringLiteral() {
747
+ const token = this._lexer.token;
748
+ this.advanceLexer();
749
+ return this.node(token, {
750
+ kind: _kinds.Kind.STRING,
751
+ value: token.value,
752
+ block: token.kind === _tokenKind.TokenKind.BLOCK_STRING,
753
+ });
754
+ }
755
+ /**
756
+ * ListValue[Const] :
757
+ * - [ ]
758
+ * - [ Value[?Const]+ ]
759
+ *
760
+ * @internal
761
+ */
762
+
763
+ parseList(isConst) {
764
+ const item = () => this.parseValueLiteral(isConst);
765
+
766
+ return this.node(this._lexer.token, {
767
+ kind: _kinds.Kind.LIST,
768
+ values: this.any(
769
+ _tokenKind.TokenKind.BRACKET_L,
770
+ item,
771
+ _tokenKind.TokenKind.BRACKET_R,
772
+ ),
773
+ });
774
+ }
775
+ /**
776
+ * ```
777
+ * ObjectValue[Const] :
778
+ * - { }
779
+ * - { ObjectField[?Const]+ }
780
+ * ```
781
+ *
782
+ * @internal
783
+ */
784
+
785
+ parseObject(isConst) {
786
+ const item = () => this.parseObjectField(isConst);
787
+
788
+ return this.node(this._lexer.token, {
789
+ kind: _kinds.Kind.OBJECT,
790
+ fields: this.any(
791
+ _tokenKind.TokenKind.BRACE_L,
792
+ item,
793
+ _tokenKind.TokenKind.BRACE_R,
794
+ ),
795
+ });
796
+ }
797
+ /**
798
+ * ObjectField[Const] : Name : Value[?Const]
799
+ *
800
+ * @internal
801
+ */
802
+
803
+ parseObjectField(isConst) {
804
+ const start = this._lexer.token;
805
+ const name = this.parseName();
806
+ this.expectToken(_tokenKind.TokenKind.COLON);
807
+ return this.node(start, {
808
+ kind: _kinds.Kind.OBJECT_FIELD,
809
+ name,
810
+ value: this.parseValueLiteral(isConst),
811
+ });
812
+ } // Implements the parsing rules in the Directives section.
813
+
814
+ /**
815
+ * Directives[Const] : Directive[?Const]+
816
+ *
817
+ * @internal
818
+ */
819
+
820
+ parseDirectives(isConst) {
821
+ const directives = [];
822
+
823
+ while (this.peek(_tokenKind.TokenKind.AT)) {
824
+ directives.push(this.parseDirective(isConst));
825
+ }
826
+
827
+ return directives;
828
+ }
829
+
830
+ parseConstDirectives() {
831
+ return this.parseDirectives(true);
832
+ }
833
+ /**
834
+ * ```
835
+ * Directive[Const] : @ Name Arguments[?Const]?
836
+ * ```
837
+ *
838
+ * @internal
839
+ */
840
+
841
+ parseDirective(isConst) {
842
+ const start = this._lexer.token;
843
+ this.expectToken(_tokenKind.TokenKind.AT);
844
+ return this.node(start, {
845
+ kind: _kinds.Kind.DIRECTIVE,
846
+ name: this.parseName(),
847
+ arguments: this.parseArguments(isConst),
848
+ });
849
+ } // Implements the parsing rules in the Types section.
850
+
851
+ /**
852
+ * Type :
853
+ * - NamedType
854
+ * - ListType
855
+ * - NonNullType
856
+ *
857
+ * @internal
858
+ */
859
+
860
+ parseTypeReference() {
861
+ const start = this._lexer.token;
862
+ let type;
863
+
864
+ if (this.expectOptionalToken(_tokenKind.TokenKind.BRACKET_L)) {
865
+ const innerType = this.parseTypeReference();
866
+ this.expectToken(_tokenKind.TokenKind.BRACKET_R);
867
+ type = this.node(start, {
868
+ kind: _kinds.Kind.LIST_TYPE,
869
+ type: innerType,
870
+ });
871
+ } else {
872
+ type = this.parseNamedType();
873
+ }
874
+
875
+ if (this.expectOptionalToken(_tokenKind.TokenKind.BANG)) {
876
+ return this.node(start, {
877
+ kind: _kinds.Kind.NON_NULL_TYPE,
878
+ type,
879
+ });
880
+ }
881
+
882
+ return type;
883
+ }
884
+ /**
885
+ * NamedType : Name
886
+ *
887
+ * @internal
888
+ */
889
+
890
+ parseNamedType() {
891
+ return this.node(this._lexer.token, {
892
+ kind: _kinds.Kind.NAMED_TYPE,
893
+ name: this.parseName(),
894
+ });
895
+ } // Implements the parsing rules in the Type Definition section.
896
+
897
+ peekDescription() {
898
+ return (
899
+ this.peek(_tokenKind.TokenKind.STRING) ||
900
+ this.peek(_tokenKind.TokenKind.BLOCK_STRING)
901
+ );
902
+ }
903
+ /**
904
+ * Description : StringValue
905
+ *
906
+ * @internal
907
+ */
908
+
909
+ parseDescription() {
910
+ if (this.peekDescription()) {
911
+ return this.parseStringLiteral();
912
+ }
913
+ }
914
+ /**
915
+ * ```
916
+ * SchemaDefinition : Description? schema Directives[Const]? { OperationTypeDefinition+ }
917
+ * ```
918
+ *
919
+ * @internal
920
+ */
921
+
922
+ parseSchemaDefinition() {
923
+ const start = this._lexer.token;
924
+ const description = this.parseDescription();
925
+ this.expectKeyword('schema');
926
+ const directives = this.parseConstDirectives();
927
+ const operationTypes = this.many(
928
+ _tokenKind.TokenKind.BRACE_L,
929
+ this.parseOperationTypeDefinition,
930
+ _tokenKind.TokenKind.BRACE_R,
931
+ );
932
+ return this.node(start, {
933
+ kind: _kinds.Kind.SCHEMA_DEFINITION,
934
+ description,
935
+ directives,
936
+ operationTypes,
937
+ });
938
+ }
939
+ /**
940
+ * OperationTypeDefinition : OperationType : NamedType
941
+ *
942
+ * @internal
943
+ */
944
+
945
+ parseOperationTypeDefinition() {
946
+ const start = this._lexer.token;
947
+ const operation = this.parseOperationType();
948
+ this.expectToken(_tokenKind.TokenKind.COLON);
949
+ const type = this.parseNamedType();
950
+ return this.node(start, {
951
+ kind: _kinds.Kind.OPERATION_TYPE_DEFINITION,
952
+ operation,
953
+ type,
954
+ });
955
+ }
956
+ /**
957
+ * ScalarTypeDefinition : Description? scalar Name Directives[Const]?
958
+ *
959
+ * @internal
960
+ */
961
+
962
+ parseScalarTypeDefinition() {
963
+ const start = this._lexer.token;
964
+ const description = this.parseDescription();
965
+ this.expectKeyword('scalar');
966
+ const name = this.parseName();
967
+ const directives = this.parseConstDirectives();
968
+ return this.node(start, {
969
+ kind: _kinds.Kind.SCALAR_TYPE_DEFINITION,
970
+ description,
971
+ name,
972
+ directives,
973
+ });
974
+ }
975
+ /**
976
+ * ObjectTypeDefinition :
977
+ * Description?
978
+ * type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition?
979
+ *
980
+ * @internal
981
+ */
982
+
983
+ parseObjectTypeDefinition() {
984
+ const start = this._lexer.token;
985
+ const description = this.parseDescription();
986
+ this.expectKeyword('type');
987
+ const name = this.parseName();
988
+ const interfaces = this.parseImplementsInterfaces();
989
+ const directives = this.parseConstDirectives();
990
+ const fields = this.parseFieldsDefinition();
991
+ return this.node(start, {
992
+ kind: _kinds.Kind.OBJECT_TYPE_DEFINITION,
993
+ description,
994
+ name,
995
+ interfaces,
996
+ directives,
997
+ fields,
998
+ });
999
+ }
1000
+ /**
1001
+ * ImplementsInterfaces :
1002
+ * - implements `&`? NamedType
1003
+ * - ImplementsInterfaces & NamedType
1004
+ *
1005
+ * @internal
1006
+ */
1007
+
1008
+ parseImplementsInterfaces() {
1009
+ return this.expectOptionalKeyword('implements')
1010
+ ? this.delimitedMany(_tokenKind.TokenKind.AMP, this.parseNamedType)
1011
+ : [];
1012
+ }
1013
+ /**
1014
+ * ```
1015
+ * FieldsDefinition : { FieldDefinition+ }
1016
+ * ```
1017
+ *
1018
+ * @internal
1019
+ */
1020
+
1021
+ parseFieldsDefinition() {
1022
+ return this.optionalMany(
1023
+ _tokenKind.TokenKind.BRACE_L,
1024
+ this.parseFieldDefinition,
1025
+ _tokenKind.TokenKind.BRACE_R,
1026
+ );
1027
+ }
1028
+ /**
1029
+ * FieldDefinition :
1030
+ * - Description? Name ArgumentsDefinition? : Type Directives[Const]?
1031
+ *
1032
+ * @internal
1033
+ */
1034
+
1035
+ parseFieldDefinition() {
1036
+ const start = this._lexer.token;
1037
+ const description = this.parseDescription();
1038
+ const name = this.parseName();
1039
+ const args = this.parseArgumentDefs();
1040
+ this.expectToken(_tokenKind.TokenKind.COLON);
1041
+ const type = this.parseTypeReference();
1042
+ const directives = this.parseConstDirectives();
1043
+ return this.node(start, {
1044
+ kind: _kinds.Kind.FIELD_DEFINITION,
1045
+ description,
1046
+ name,
1047
+ arguments: args,
1048
+ type,
1049
+ directives,
1050
+ });
1051
+ }
1052
+ /**
1053
+ * ArgumentsDefinition : ( InputValueDefinition+ )
1054
+ *
1055
+ * @internal
1056
+ */
1057
+
1058
+ parseArgumentDefs() {
1059
+ return this.optionalMany(
1060
+ _tokenKind.TokenKind.PAREN_L,
1061
+ this.parseInputValueDef,
1062
+ _tokenKind.TokenKind.PAREN_R,
1063
+ );
1064
+ }
1065
+ /**
1066
+ * InputValueDefinition :
1067
+ * - Description? Name : Type DefaultValue? Directives[Const]?
1068
+ *
1069
+ * @internal
1070
+ */
1071
+
1072
+ parseInputValueDef() {
1073
+ const start = this._lexer.token;
1074
+ const description = this.parseDescription();
1075
+ const name = this.parseName();
1076
+ this.expectToken(_tokenKind.TokenKind.COLON);
1077
+ const type = this.parseTypeReference();
1078
+ let defaultValue;
1079
+
1080
+ if (this.expectOptionalToken(_tokenKind.TokenKind.EQUALS)) {
1081
+ defaultValue = this.parseConstValueLiteral();
1082
+ }
1083
+
1084
+ const directives = this.parseConstDirectives();
1085
+ return this.node(start, {
1086
+ kind: _kinds.Kind.INPUT_VALUE_DEFINITION,
1087
+ description,
1088
+ name,
1089
+ type,
1090
+ defaultValue,
1091
+ directives,
1092
+ });
1093
+ }
1094
+ /**
1095
+ * InterfaceTypeDefinition :
1096
+ * - Description? interface Name Directives[Const]? FieldsDefinition?
1097
+ *
1098
+ * @internal
1099
+ */
1100
+
1101
+ parseInterfaceTypeDefinition() {
1102
+ const start = this._lexer.token;
1103
+ const description = this.parseDescription();
1104
+ this.expectKeyword('interface');
1105
+ const name = this.parseName();
1106
+ const interfaces = this.parseImplementsInterfaces();
1107
+ const directives = this.parseConstDirectives();
1108
+ const fields = this.parseFieldsDefinition();
1109
+ return this.node(start, {
1110
+ kind: _kinds.Kind.INTERFACE_TYPE_DEFINITION,
1111
+ description,
1112
+ name,
1113
+ interfaces,
1114
+ directives,
1115
+ fields,
1116
+ });
1117
+ }
1118
+ /**
1119
+ * UnionTypeDefinition :
1120
+ * - Description? union Name Directives[Const]? UnionMemberTypes?
1121
+ *
1122
+ * @internal
1123
+ */
1124
+
1125
+ parseUnionTypeDefinition() {
1126
+ const start = this._lexer.token;
1127
+ const description = this.parseDescription();
1128
+ this.expectKeyword('union');
1129
+ const name = this.parseName();
1130
+ const directives = this.parseConstDirectives();
1131
+ const types = this.parseUnionMemberTypes();
1132
+ return this.node(start, {
1133
+ kind: _kinds.Kind.UNION_TYPE_DEFINITION,
1134
+ description,
1135
+ name,
1136
+ directives,
1137
+ types,
1138
+ });
1139
+ }
1140
+ /**
1141
+ * UnionMemberTypes :
1142
+ * - = `|`? NamedType
1143
+ * - UnionMemberTypes | NamedType
1144
+ *
1145
+ * @internal
1146
+ */
1147
+
1148
+ parseUnionMemberTypes() {
1149
+ return this.expectOptionalToken(_tokenKind.TokenKind.EQUALS)
1150
+ ? this.delimitedMany(_tokenKind.TokenKind.PIPE, this.parseNamedType)
1151
+ : [];
1152
+ }
1153
+ /**
1154
+ * EnumTypeDefinition :
1155
+ * - Description? enum Name Directives[Const]? EnumValuesDefinition?
1156
+ *
1157
+ * @internal
1158
+ */
1159
+
1160
+ parseEnumTypeDefinition() {
1161
+ const start = this._lexer.token;
1162
+ const description = this.parseDescription();
1163
+ this.expectKeyword('enum');
1164
+ const name = this.parseName();
1165
+ const directives = this.parseConstDirectives();
1166
+ const values = this.parseEnumValuesDefinition();
1167
+ return this.node(start, {
1168
+ kind: _kinds.Kind.ENUM_TYPE_DEFINITION,
1169
+ description,
1170
+ name,
1171
+ directives,
1172
+ values,
1173
+ });
1174
+ }
1175
+ /**
1176
+ * ```
1177
+ * EnumValuesDefinition : { EnumValueDefinition+ }
1178
+ * ```
1179
+ *
1180
+ * @internal
1181
+ */
1182
+
1183
+ parseEnumValuesDefinition() {
1184
+ return this.optionalMany(
1185
+ _tokenKind.TokenKind.BRACE_L,
1186
+ this.parseEnumValueDefinition,
1187
+ _tokenKind.TokenKind.BRACE_R,
1188
+ );
1189
+ }
1190
+ /**
1191
+ * EnumValueDefinition : Description? EnumValue Directives[Const]?
1192
+ *
1193
+ * @internal
1194
+ */
1195
+
1196
+ parseEnumValueDefinition() {
1197
+ const start = this._lexer.token;
1198
+ const description = this.parseDescription();
1199
+ const name = this.parseEnumValueName();
1200
+ const directives = this.parseConstDirectives();
1201
+ return this.node(start, {
1202
+ kind: _kinds.Kind.ENUM_VALUE_DEFINITION,
1203
+ description,
1204
+ name,
1205
+ directives,
1206
+ });
1207
+ }
1208
+ /**
1209
+ * EnumValue : Name but not `true`, `false` or `null`
1210
+ *
1211
+ * @internal
1212
+ */
1213
+
1214
+ parseEnumValueName() {
1215
+ if (
1216
+ this._lexer.token.value === 'true' ||
1217
+ this._lexer.token.value === 'false' ||
1218
+ this._lexer.token.value === 'null'
1219
+ ) {
1220
+ throw (0, _syntaxError.syntaxError)(
1221
+ this._lexer.source,
1222
+ this._lexer.token.start,
1223
+ `${getTokenDesc(
1224
+ this._lexer.token,
1225
+ )} is reserved and cannot be used for an enum value.`,
1226
+ );
1227
+ }
1228
+
1229
+ return this.parseName();
1230
+ }
1231
+ /**
1232
+ * InputObjectTypeDefinition :
1233
+ * - Description? input Name Directives[Const]? InputFieldsDefinition?
1234
+ *
1235
+ * @internal
1236
+ */
1237
+
1238
+ parseInputObjectTypeDefinition() {
1239
+ const start = this._lexer.token;
1240
+ const description = this.parseDescription();
1241
+ this.expectKeyword('input');
1242
+ const name = this.parseName();
1243
+ const directives = this.parseConstDirectives();
1244
+ const fields = this.parseInputFieldsDefinition();
1245
+ return this.node(start, {
1246
+ kind: _kinds.Kind.INPUT_OBJECT_TYPE_DEFINITION,
1247
+ description,
1248
+ name,
1249
+ directives,
1250
+ fields,
1251
+ });
1252
+ }
1253
+ /**
1254
+ * ```
1255
+ * InputFieldsDefinition : { InputValueDefinition+ }
1256
+ * ```
1257
+ *
1258
+ * @internal
1259
+ */
1260
+
1261
+ parseInputFieldsDefinition() {
1262
+ return this.optionalMany(
1263
+ _tokenKind.TokenKind.BRACE_L,
1264
+ this.parseInputValueDef,
1265
+ _tokenKind.TokenKind.BRACE_R,
1266
+ );
1267
+ }
1268
+ /**
1269
+ * TypeSystemExtension :
1270
+ * - SchemaExtension
1271
+ * - TypeExtension
1272
+ *
1273
+ * TypeExtension :
1274
+ * - ScalarTypeExtension
1275
+ * - ObjectTypeExtension
1276
+ * - InterfaceTypeExtension
1277
+ * - UnionTypeExtension
1278
+ * - EnumTypeExtension
1279
+ * - InputObjectTypeDefinition
1280
+ * - DirectiveDefinitionExtension
1281
+ *
1282
+ * @internal
1283
+ */
1284
+
1285
+ parseTypeSystemExtension() {
1286
+ const keywordToken = this._lexer.lookahead();
1287
+
1288
+ if (keywordToken.kind === _tokenKind.TokenKind.NAME) {
1289
+ switch (keywordToken.value) {
1290
+ case 'schema':
1291
+ return this.parseSchemaExtension();
1292
+
1293
+ case 'scalar':
1294
+ return this.parseScalarTypeExtension();
1295
+
1296
+ case 'type':
1297
+ return this.parseObjectTypeExtension();
1298
+
1299
+ case 'interface':
1300
+ return this.parseInterfaceTypeExtension();
1301
+
1302
+ case 'union':
1303
+ return this.parseUnionTypeExtension();
1304
+
1305
+ case 'enum':
1306
+ return this.parseEnumTypeExtension();
1307
+
1308
+ case 'input':
1309
+ return this.parseInputObjectTypeExtension();
1310
+
1311
+ case 'directive':
1312
+ if (this._options.experimentalDirectivesOnDirectiveDefinitions) {
1313
+ return this.parseDirectiveDefinitionExtension();
1314
+ }
1315
+
1316
+ break;
1317
+ }
1318
+ }
1319
+
1320
+ throw this.unexpected(keywordToken);
1321
+ }
1322
+ /**
1323
+ * ```
1324
+ * SchemaExtension :
1325
+ * - extend schema Directives[Const]? { OperationTypeDefinition+ }
1326
+ * - extend schema Directives[Const]
1327
+ * ```
1328
+ *
1329
+ * @internal
1330
+ */
1331
+
1332
+ parseSchemaExtension() {
1333
+ const start = this._lexer.token;
1334
+ this.expectKeyword('extend');
1335
+ this.expectKeyword('schema');
1336
+ const directives = this.parseConstDirectives();
1337
+ const operationTypes = this.optionalMany(
1338
+ _tokenKind.TokenKind.BRACE_L,
1339
+ this.parseOperationTypeDefinition,
1340
+ _tokenKind.TokenKind.BRACE_R,
1341
+ );
1342
+
1343
+ if (directives.length === 0 && operationTypes.length === 0) {
1344
+ throw this.unexpected();
1345
+ }
1346
+
1347
+ return this.node(start, {
1348
+ kind: _kinds.Kind.SCHEMA_EXTENSION,
1349
+ directives,
1350
+ operationTypes,
1351
+ });
1352
+ }
1353
+ /**
1354
+ * ScalarTypeExtension :
1355
+ * - extend scalar Name Directives[Const]
1356
+ *
1357
+ * @internal
1358
+ */
1359
+
1360
+ parseScalarTypeExtension() {
1361
+ const start = this._lexer.token;
1362
+ this.expectKeyword('extend');
1363
+ this.expectKeyword('scalar');
1364
+ const name = this.parseName();
1365
+ const directives = this.parseConstDirectives();
1366
+
1367
+ if (directives.length === 0) {
1368
+ throw this.unexpected();
1369
+ }
1370
+
1371
+ return this.node(start, {
1372
+ kind: _kinds.Kind.SCALAR_TYPE_EXTENSION,
1373
+ name,
1374
+ directives,
1375
+ });
1376
+ }
1377
+ /**
1378
+ * ObjectTypeExtension :
1379
+ * - extend type Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
1380
+ * - extend type Name ImplementsInterfaces? Directives[Const]
1381
+ * - extend type Name ImplementsInterfaces
1382
+ *
1383
+ * @internal
1384
+ */
1385
+
1386
+ parseObjectTypeExtension() {
1387
+ const start = this._lexer.token;
1388
+ this.expectKeyword('extend');
1389
+ this.expectKeyword('type');
1390
+ const name = this.parseName();
1391
+ const interfaces = this.parseImplementsInterfaces();
1392
+ const directives = this.parseConstDirectives();
1393
+ const fields = this.parseFieldsDefinition();
1394
+
1395
+ if (
1396
+ interfaces.length === 0 &&
1397
+ directives.length === 0 &&
1398
+ fields.length === 0
1399
+ ) {
1400
+ throw this.unexpected();
1401
+ }
1402
+
1403
+ return this.node(start, {
1404
+ kind: _kinds.Kind.OBJECT_TYPE_EXTENSION,
1405
+ name,
1406
+ interfaces,
1407
+ directives,
1408
+ fields,
1409
+ });
1410
+ }
1411
+ /**
1412
+ * InterfaceTypeExtension :
1413
+ * - extend interface Name ImplementsInterfaces? Directives[Const]? FieldsDefinition
1414
+ * - extend interface Name ImplementsInterfaces? Directives[Const]
1415
+ * - extend interface Name ImplementsInterfaces
1416
+ *
1417
+ * @internal
1418
+ */
1419
+
1420
+ parseInterfaceTypeExtension() {
1421
+ const start = this._lexer.token;
1422
+ this.expectKeyword('extend');
1423
+ this.expectKeyword('interface');
1424
+ const name = this.parseName();
1425
+ const interfaces = this.parseImplementsInterfaces();
1426
+ const directives = this.parseConstDirectives();
1427
+ const fields = this.parseFieldsDefinition();
1428
+
1429
+ if (
1430
+ interfaces.length === 0 &&
1431
+ directives.length === 0 &&
1432
+ fields.length === 0
1433
+ ) {
1434
+ throw this.unexpected();
1435
+ }
1436
+
1437
+ return this.node(start, {
1438
+ kind: _kinds.Kind.INTERFACE_TYPE_EXTENSION,
1439
+ name,
1440
+ interfaces,
1441
+ directives,
1442
+ fields,
1443
+ });
1444
+ }
1445
+ /**
1446
+ * UnionTypeExtension :
1447
+ * - extend union Name Directives[Const]? UnionMemberTypes
1448
+ * - extend union Name Directives[Const]
1449
+ *
1450
+ * @internal
1451
+ */
1452
+
1453
+ parseUnionTypeExtension() {
1454
+ const start = this._lexer.token;
1455
+ this.expectKeyword('extend');
1456
+ this.expectKeyword('union');
1457
+ const name = this.parseName();
1458
+ const directives = this.parseConstDirectives();
1459
+ const types = this.parseUnionMemberTypes();
1460
+
1461
+ if (directives.length === 0 && types.length === 0) {
1462
+ throw this.unexpected();
1463
+ }
1464
+
1465
+ return this.node(start, {
1466
+ kind: _kinds.Kind.UNION_TYPE_EXTENSION,
1467
+ name,
1468
+ directives,
1469
+ types,
1470
+ });
1471
+ }
1472
+ /**
1473
+ * EnumTypeExtension :
1474
+ * - extend enum Name Directives[Const]? EnumValuesDefinition
1475
+ * - extend enum Name Directives[Const]
1476
+ *
1477
+ * @internal
1478
+ */
1479
+
1480
+ parseEnumTypeExtension() {
1481
+ const start = this._lexer.token;
1482
+ this.expectKeyword('extend');
1483
+ this.expectKeyword('enum');
1484
+ const name = this.parseName();
1485
+ const directives = this.parseConstDirectives();
1486
+ const values = this.parseEnumValuesDefinition();
1487
+
1488
+ if (directives.length === 0 && values.length === 0) {
1489
+ throw this.unexpected();
1490
+ }
1491
+
1492
+ return this.node(start, {
1493
+ kind: _kinds.Kind.ENUM_TYPE_EXTENSION,
1494
+ name,
1495
+ directives,
1496
+ values,
1497
+ });
1498
+ }
1499
+ /**
1500
+ * InputObjectTypeExtension :
1501
+ * - extend input Name Directives[Const]? InputFieldsDefinition
1502
+ * - extend input Name Directives[Const]
1503
+ *
1504
+ * @internal
1505
+ */
1506
+
1507
+ parseInputObjectTypeExtension() {
1508
+ const start = this._lexer.token;
1509
+ this.expectKeyword('extend');
1510
+ this.expectKeyword('input');
1511
+ const name = this.parseName();
1512
+ const directives = this.parseConstDirectives();
1513
+ const fields = this.parseInputFieldsDefinition();
1514
+
1515
+ if (directives.length === 0 && fields.length === 0) {
1516
+ throw this.unexpected();
1517
+ }
1518
+
1519
+ return this.node(start, {
1520
+ kind: _kinds.Kind.INPUT_OBJECT_TYPE_EXTENSION,
1521
+ name,
1522
+ directives,
1523
+ fields,
1524
+ });
1525
+ }
1526
+
1527
+ parseDirectiveDefinitionExtension() {
1528
+ const start = this._lexer.token;
1529
+ this.expectKeyword('extend');
1530
+ this.expectKeyword('directive');
1531
+ this.expectToken(_tokenKind.TokenKind.AT);
1532
+ const name = this.parseName();
1533
+ const directives = this.parseConstDirectives();
1534
+
1535
+ if (directives.length === 0) {
1536
+ throw this.unexpected();
1537
+ }
1538
+
1539
+ return this.node(start, {
1540
+ kind: _kinds.Kind.DIRECTIVE_EXTENSION,
1541
+ name,
1542
+ directives,
1543
+ });
1544
+ }
1545
+ /**
1546
+ * ```
1547
+ * DirectiveDefinition :
1548
+ * - Description? directive @ Name ArgumentsDefinition? `repeatable`? on DirectiveLocations
1549
+ * ```
1550
+ *
1551
+ * @internal
1552
+ */
1553
+
1554
+ parseDirectiveDefinition() {
1555
+ const start = this._lexer.token;
1556
+ const description = this.parseDescription();
1557
+ this.expectKeyword('directive');
1558
+ this.expectToken(_tokenKind.TokenKind.AT);
1559
+ const name = this.parseName();
1560
+ const args = this.parseArgumentDefs();
1561
+ const directives = this._options
1562
+ .experimentalDirectivesOnDirectiveDefinitions
1563
+ ? this.parseConstDirectives()
1564
+ : [];
1565
+ const repeatable = this.expectOptionalKeyword('repeatable');
1566
+ this.expectKeyword('on');
1567
+ const locations = this.parseDirectiveLocations();
1568
+ return this.node(start, {
1569
+ kind: _kinds.Kind.DIRECTIVE_DEFINITION,
1570
+ description,
1571
+ name,
1572
+ arguments: args,
1573
+ directives,
1574
+ repeatable,
1575
+ locations,
1576
+ });
1577
+ }
1578
+ /**
1579
+ * DirectiveLocations :
1580
+ * - `|`? DirectiveLocation
1581
+ * - DirectiveLocations | DirectiveLocation
1582
+ *
1583
+ * @internal
1584
+ */
1585
+
1586
+ parseDirectiveLocations() {
1587
+ return this.delimitedMany(
1588
+ _tokenKind.TokenKind.PIPE,
1589
+ this.parseDirectiveLocation,
1590
+ );
1591
+ }
1592
+ /*
1593
+ * DirectiveLocation :
1594
+ * - ExecutableDirectiveLocation
1595
+ * - TypeSystemDirectiveLocation
1596
+ *
1597
+ * ExecutableDirectiveLocation : one of
1598
+ * `QUERY`
1599
+ * `MUTATION`
1600
+ * `SUBSCRIPTION`
1601
+ * `FIELD`
1602
+ * `FRAGMENT_DEFINITION`
1603
+ * `FRAGMENT_SPREAD`
1604
+ * `INLINE_FRAGMENT`
1605
+ *
1606
+ * TypeSystemDirectiveLocation : one of
1607
+ * `SCHEMA`
1608
+ * `SCALAR`
1609
+ * `OBJECT`
1610
+ * `FIELD_DEFINITION`
1611
+ * `ARGUMENT_DEFINITION`
1612
+ * `INTERFACE`
1613
+ * `UNION`
1614
+ * `ENUM`
1615
+ * `ENUM_VALUE`
1616
+ * `INPUT_OBJECT`
1617
+ * `INPUT_FIELD_DEFINITION`
1618
+ * `DIRECTIVE_DEFINITION`
1619
+ */
1620
+
1621
+ parseDirectiveLocation() {
1622
+ const start = this._lexer.token;
1623
+ const name = this.parseName();
1624
+
1625
+ if (
1626
+ Object.prototype.hasOwnProperty.call(
1627
+ _directiveLocation.DirectiveLocation,
1628
+ name.value,
1629
+ )
1630
+ ) {
1631
+ return name;
1632
+ }
1633
+
1634
+ throw this.unexpected(start);
1635
+ } // Schema Coordinates
1636
+
1637
+ /**
1638
+ * SchemaCoordinate :
1639
+ * - Name
1640
+ * - Name . Name
1641
+ * - Name . Name ( Name : )
1642
+ * - \@ Name
1643
+ * - \@ Name ( Name : )
1644
+ * @returns Parsed schema coordinate AST.
1645
+ * @example
1646
+ * ```ts
1647
+ * import { Parser, Source } from 'graphql/language';
1648
+ *
1649
+ * const typeCoordinate = new Parser(new Source('User.name')).parseSchemaCoordinate();
1650
+ * const directiveCoordinate = new Parser(new Source('@include(if:)')).parseSchemaCoordinate();
1651
+ *
1652
+ * typeCoordinate.name.value; // => 'User'
1653
+ * typeCoordinate.memberName?.value; // => 'name'
1654
+ * directiveCoordinate.name.value; // => 'deprecated'
1655
+ * directiveCoordinate.argumentName?.value; // => 'reason'
1656
+ * ```
1657
+ */
1658
+
1659
+ parseSchemaCoordinate() {
1660
+ const start = this._lexer.token;
1661
+ const ofDirective = this.expectOptionalToken(_tokenKind.TokenKind.AT);
1662
+ const name = this.parseName();
1663
+ let memberName;
1664
+
1665
+ if (!ofDirective && this.expectOptionalToken(_tokenKind.TokenKind.DOT)) {
1666
+ memberName = this.parseName();
1667
+ }
1668
+
1669
+ let argumentName;
1670
+
1671
+ if (
1672
+ (ofDirective || memberName) &&
1673
+ this.expectOptionalToken(_tokenKind.TokenKind.PAREN_L)
1674
+ ) {
1675
+ argumentName = this.parseName();
1676
+ this.expectToken(_tokenKind.TokenKind.COLON);
1677
+ this.expectToken(_tokenKind.TokenKind.PAREN_R);
1678
+ }
1679
+
1680
+ if (ofDirective) {
1681
+ if (argumentName) {
1682
+ return this.node(start, {
1683
+ kind: _kinds.Kind.DIRECTIVE_ARGUMENT_COORDINATE,
1684
+ name,
1685
+ argumentName,
1686
+ });
1687
+ }
1688
+
1689
+ return this.node(start, {
1690
+ kind: _kinds.Kind.DIRECTIVE_COORDINATE,
1691
+ name,
1692
+ });
1693
+ } else if (memberName) {
1694
+ if (argumentName) {
1695
+ return this.node(start, {
1696
+ kind: _kinds.Kind.ARGUMENT_COORDINATE,
1697
+ name,
1698
+ fieldName: memberName,
1699
+ argumentName,
1700
+ });
1701
+ }
1702
+
1703
+ return this.node(start, {
1704
+ kind: _kinds.Kind.MEMBER_COORDINATE,
1705
+ name,
1706
+ memberName,
1707
+ });
1708
+ }
1709
+
1710
+ return this.node(start, {
1711
+ kind: _kinds.Kind.TYPE_COORDINATE,
1712
+ name,
1713
+ });
1714
+ } // Core parsing utility functions
1715
+
1716
+ /**
1717
+ * Returns a node that, if configured to do so, sets a "loc" field as a
1718
+ * location object, used to identify the place in the source that created a
1719
+ * given parsed object.
1720
+ *
1721
+ * @internal
1722
+ */
1723
+
1724
+ node(startToken, node) {
1725
+ if (this._options.noLocation !== true) {
1726
+ node.loc = new _ast.Location(
1727
+ startToken,
1728
+ this._lexer.lastToken,
1729
+ this._lexer.source,
1730
+ );
1731
+ }
1732
+
1733
+ return node;
1734
+ }
1735
+ /**
1736
+ * Determines if the next token is of a given kind
1737
+ *
1738
+ * @internal
1739
+ */
1740
+
1741
+ peek(kind) {
1742
+ return this._lexer.token.kind === kind;
1743
+ }
1744
+ /**
1745
+ * If the next token is of the given kind, return that token after advancing the lexer.
1746
+ * Otherwise, do not change the parser state and throw an error.
1747
+ *
1748
+ * @internal
1749
+ */
1750
+
1751
+ expectToken(kind) {
1752
+ const token = this._lexer.token;
1753
+
1754
+ if (token.kind === kind) {
1755
+ this.advanceLexer();
1756
+ return token;
1757
+ }
1758
+
1759
+ throw (0, _syntaxError.syntaxError)(
1760
+ this._lexer.source,
1761
+ token.start,
1762
+ `Expected ${getTokenKindDesc(kind)}, found ${getTokenDesc(token)}.`,
1763
+ );
1764
+ }
1765
+ /**
1766
+ * If the next token is of the given kind, return "true" after advancing the lexer.
1767
+ * Otherwise, do not change the parser state and return "false".
1768
+ *
1769
+ * @internal
1770
+ */
1771
+
1772
+ expectOptionalToken(kind) {
1773
+ const token = this._lexer.token;
1774
+
1775
+ if (token.kind === kind) {
1776
+ this.advanceLexer();
1777
+ return true;
1778
+ }
1779
+
1780
+ return false;
1781
+ }
1782
+ /**
1783
+ * If the next token is a given keyword, advance the lexer.
1784
+ * Otherwise, do not change the parser state and throw an error.
1785
+ *
1786
+ * @internal
1787
+ */
1788
+
1789
+ expectKeyword(value) {
1790
+ const token = this._lexer.token;
1791
+
1792
+ if (token.kind === _tokenKind.TokenKind.NAME && token.value === value) {
1793
+ this.advanceLexer();
1794
+ } else {
1795
+ throw (0, _syntaxError.syntaxError)(
1796
+ this._lexer.source,
1797
+ token.start,
1798
+ `Expected "${value}", found ${getTokenDesc(token)}.`,
1799
+ );
1800
+ }
1801
+ }
1802
+ /**
1803
+ * If the next token is a given keyword, return "true" after advancing the lexer.
1804
+ * Otherwise, do not change the parser state and return "false".
1805
+ *
1806
+ * @internal
1807
+ */
1808
+
1809
+ expectOptionalKeyword(value) {
1810
+ const token = this._lexer.token;
1811
+
1812
+ if (token.kind === _tokenKind.TokenKind.NAME && token.value === value) {
1813
+ this.advanceLexer();
1814
+ return true;
1815
+ }
1816
+
1817
+ return false;
1818
+ }
1819
+ /**
1820
+ * Helper function for creating an error when an unexpected lexed token is encountered.
1821
+ *
1822
+ * @internal
1823
+ */
1824
+
1825
+ unexpected(atToken) {
1826
+ const token =
1827
+ atToken !== null && atToken !== void 0 ? atToken : this._lexer.token;
1828
+ return (0, _syntaxError.syntaxError)(
1829
+ this._lexer.source,
1830
+ token.start,
1831
+ `Unexpected ${getTokenDesc(token)}.`,
1832
+ );
1833
+ }
1834
+ /**
1835
+ * Returns a possibly empty list of parse nodes, determined by the parseFn.
1836
+ * This list begins with a lex token of openKind and ends with a lex token of closeKind.
1837
+ * Advances the parser to the next lex token after the closing token.
1838
+ *
1839
+ * @internal
1840
+ */
1841
+
1842
+ any(openKind, parseFn, closeKind) {
1843
+ this.expectToken(openKind);
1844
+ const nodes = [];
1845
+
1846
+ while (!this.expectOptionalToken(closeKind)) {
1847
+ nodes.push(parseFn.call(this));
1848
+ }
1849
+
1850
+ return nodes;
1851
+ }
1852
+ /**
1853
+ * Returns a list of parse nodes, determined by the parseFn.
1854
+ * It can be empty only if open token is missing otherwise it will always return non-empty list
1855
+ * that begins with a lex token of openKind and ends with a lex token of closeKind.
1856
+ * Advances the parser to the next lex token after the closing token.
1857
+ *
1858
+ * @internal
1859
+ */
1860
+
1861
+ optionalMany(openKind, parseFn, closeKind) {
1862
+ if (this.expectOptionalToken(openKind)) {
1863
+ const nodes = [];
1864
+
1865
+ do {
1866
+ nodes.push(parseFn.call(this));
1867
+ } while (!this.expectOptionalToken(closeKind));
1868
+
1869
+ return nodes;
1870
+ }
1871
+
1872
+ return [];
1873
+ }
1874
+ /**
1875
+ * Returns a non-empty list of parse nodes, determined by the parseFn.
1876
+ * This list begins with a lex token of openKind and ends with a lex token of closeKind.
1877
+ * Advances the parser to the next lex token after the closing token.
1878
+ *
1879
+ * @internal
1880
+ */
1881
+
1882
+ many(openKind, parseFn, closeKind) {
1883
+ this.expectToken(openKind);
1884
+ const nodes = [];
1885
+
1886
+ do {
1887
+ nodes.push(parseFn.call(this));
1888
+ } while (!this.expectOptionalToken(closeKind));
1889
+
1890
+ return nodes;
1891
+ }
1892
+ /**
1893
+ * Returns a non-empty list of parse nodes, determined by the parseFn.
1894
+ * This list may begin with a lex token of delimiterKind followed by items separated by lex tokens of tokenKind.
1895
+ * Advances the parser to the next lex token after last item in the list.
1896
+ *
1897
+ * @internal
1898
+ */
1899
+
1900
+ delimitedMany(delimiterKind, parseFn) {
1901
+ this.expectOptionalToken(delimiterKind);
1902
+ const nodes = [];
1903
+
1904
+ do {
1905
+ nodes.push(parseFn.call(this));
1906
+ } while (this.expectOptionalToken(delimiterKind));
1907
+
1908
+ return nodes;
1909
+ }
1910
+
1911
+ advanceLexer() {
1912
+ const { maxTokens } = this._options;
1913
+
1914
+ const token = this._lexer.advance();
1915
+
1916
+ if (token.kind !== _tokenKind.TokenKind.EOF) {
1917
+ ++this._tokenCounter;
1918
+
1919
+ if (maxTokens !== undefined && this._tokenCounter > maxTokens) {
1920
+ throw (0, _syntaxError.syntaxError)(
1921
+ this._lexer.source,
1922
+ token.start,
1923
+ `Document contains more that ${maxTokens} tokens. Parsing aborted.`,
1924
+ );
1925
+ }
1926
+ }
1927
+ }
1928
+ }
1929
+ /**
1930
+ * A helper function to describe a token as a string for debugging.
1931
+ *
1932
+ * @internal
1933
+ */
1934
+
1935
+ exports.Parser = Parser;
1936
+
1937
+ function getTokenDesc(token) {
1938
+ const value = token.value;
1939
+ return getTokenKindDesc(token.kind) + (value != null ? ` "${value}"` : '');
1940
+ }
1941
+ /**
1942
+ * A helper function to describe a token kind as a string for debugging.
1943
+ *
1944
+ * @internal
1945
+ */
1946
+
1947
+ function getTokenKindDesc(kind) {
1948
+ return (0, _lexer.isPunctuatorTokenKind)(kind) ? `"${kind}"` : kind;
1949
+ }