@pome-sh/cli 0.3.0 → 0.5.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.
- package/README.md +40 -3
- package/dist/build-info.json +3 -3
- package/dist/src/cli/agent-identity.d.ts +20 -0
- package/dist/src/cli/agent-identity.js +59 -0
- package/dist/src/cli/agent-resolver.d.ts +26 -0
- package/dist/src/cli/agent-resolver.js +121 -0
- package/dist/src/cli/compile-seeds.js +1 -1
- package/dist/src/cli/credentials.d.ts +4 -0
- package/dist/src/cli/credentials.js +8 -0
- package/dist/src/cli/docs-topics.js +53 -16
- package/dist/src/cli/eval.d.ts +10 -6
- package/dist/src/cli/eval.js +21 -29
- package/dist/src/cli/frameworks.d.ts +12 -0
- package/dist/src/cli/frameworks.js +62 -0
- package/dist/src/cli/install.d.ts +4 -41
- package/dist/src/cli/install.js +31 -412
- package/dist/src/cli/link-cache.d.ts +23 -0
- package/dist/src/cli/link-cache.js +91 -0
- package/dist/src/cli/login.js +1 -1
- package/dist/src/cli/main.js +120 -88
- package/dist/src/cli/project-config.d.ts +27 -25
- package/dist/src/cli/project-config.js +100 -54
- package/dist/src/cli/register.d.ts +5 -31
- package/dist/src/cli/register.js +118 -116
- package/dist/src/cli/scenarios-catalog.js +51 -1
- package/dist/src/cli/scenarios.js +10 -10
- package/dist/src/cli/session.js +16 -8
- package/dist/src/doctor/checks.js +27 -25
- package/dist/src/doctor/scan.js +3 -0
- package/dist/src/fix-prompt/prompt.js +3 -3
- package/dist/src/fix-prompt/prompts/fix-prompt-v1.md +3 -3
- package/dist/src/hosted/client.d.ts +8 -3
- package/dist/src/hosted/client.js +3 -0
- package/dist/src/recorder/inspect.js +1 -1
- package/dist/src/runner/groupRender.d.ts +1 -1
- package/dist/src/runner/groupRender.js +3 -3
- package/dist/src/runner/runScenario.d.ts +626 -2
- package/dist/src/runner/runScenario.js +5 -0
- package/dist/src/runner/runScenarioHosted.d.ts +3 -0
- package/dist/src/runner/runScenarioHosted.js +29 -13
- package/dist/src/runner/runTrialGroup.d.ts +3 -1
- package/dist/src/runner/runTrialGroup.js +13 -11
- package/dist/src/scenario/parseScenario.js +42 -14
- package/dist/src/scenario/scenarioSchema.d.ts +1472 -4
- package/dist/src/scenario/scenarioSchema.js +4 -0
- package/dist/src/twin/twinHarness.d.ts +2 -0
- package/dist/src/twin/twinHarness.js +48 -1
- package/dist/src/twin/twinStart.d.ts +3 -1
- package/dist/src/twin/twinStart.js +22 -4
- package/node_modules/@hono/node-server/dist/index.cjs +145 -18
- package/node_modules/@hono/node-server/dist/index.mjs +145 -18
- package/node_modules/@hono/node-server/dist/serve-static.cjs +53 -12
- package/node_modules/@hono/node-server/dist/serve-static.mjs +53 -12
- package/node_modules/@hono/node-server/package.json +1 -1
- package/node_modules/@pome-sh/sdk/dist/index.d.ts +38 -1
- package/node_modules/@pome-sh/sdk/dist/index.js +16 -7
- package/node_modules/@pome-sh/sdk/dist/index.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +21 -5
- package/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/parity.d.ts +6 -0
- package/node_modules/@pome-sh/sdk/dist/parity.js +12 -1
- package/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/recorder.d.ts +6 -0
- package/node_modules/@pome-sh/sdk/dist/recorder.js +27 -32
- package/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/server.js +9 -4
- package/node_modules/@pome-sh/sdk/dist/server.js.map +1 -1
- package/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +2 -0
- package/node_modules/@pome-sh/sdk/dist/tool-context.js +3 -0
- package/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +39 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +39 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.d.ts +4 -3
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js +4 -3
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +31 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.js +76 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/manifest.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +45 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +8 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +28 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +63 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js +37 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.d.ts +61 -2
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js +112 -2
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.d.ts +7 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js +5 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +3 -3
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/task.d.ts +376 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/manifest-schema.json +68 -0
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/package.json +5 -4
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/sdk/package.json +5 -5
- package/node_modules/@pome-sh/shared-types/dist/index.d.ts +1 -0
- package/node_modules/@pome-sh/shared-types/dist/index.js +1 -0
- package/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/manifest.d.ts +31 -0
- package/node_modules/@pome-sh/shared-types/dist/manifest.js +76 -0
- package/node_modules/@pome-sh/shared-types/dist/manifest.js.map +1 -0
- package/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
- package/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
- package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
- package/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
- package/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/rest.d.ts +11 -0
- package/node_modules/@pome-sh/shared-types/dist/rest.js +38 -0
- package/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +1033 -0
- package/node_modules/@pome-sh/shared-types/dist/seed-state.js +285 -2
- package/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
- package/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
- package/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
- package/node_modules/@pome-sh/shared-types/dist/task.d.ts +690 -0
- package/node_modules/@pome-sh/shared-types/manifest-schema.json +68 -0
- package/node_modules/@pome-sh/shared-types/package.json +5 -4
- package/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-github/README.md +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/access-control.d.ts +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/domain.d.ts +5 -5
- package/node_modules/@pome-sh/twin-github/dist/src/seed.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/dist/src/serializers.d.ts +3 -3
- package/node_modules/@pome-sh/twin-github/dist/src/tools.d.ts +21 -21
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.js +113 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.js +139 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.js +394 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/sdk/package.json +54 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/package.json +4 -4
- package/node_modules/@pome-sh/twin-github/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-github/package.json +7 -7
- package/node_modules/@pome-sh/twin-gmail/CHANGELOG.md +14 -0
- package/node_modules/@pome-sh/twin-gmail/HOSTED.md +23 -0
- package/node_modules/@pome-sh/twin-gmail/LIMITS.md +41 -0
- package/node_modules/@pome-sh/twin-gmail/README.md +109 -0
- package/node_modules/@pome-sh/twin-gmail/REFERENCE-DIVERGENCES.md +42 -0
- package/node_modules/@pome-sh/twin-gmail/dist/fixtures/mcp-tools-list.canonical.json +974 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/db.d.ts +4 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/db.js +206 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.d.ts +5 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.js +89 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/domain-search.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/domain.d.ts +110 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/domain.js +407 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/domain.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/errors.d.ts +12 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js +115 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/identity.d.ts +10 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js +29 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/identity.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/index.d.ts +12 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/index.js +13 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.d.ts +176 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js +162 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mcp-schemas.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.d.ts +3 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js +268 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mcp.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mime.d.ts +49 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js +315 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/mime.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.d.ts +11 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js +70 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/page-tokens.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/recording.d.ts +6 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js +74 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/recording.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.d.ts +28 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js +120 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-common.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.d.ts +3 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js +85 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-drafts.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.d.ts +19 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js +52 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-kit.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.d.ts +3 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js +144 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-messages.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.d.ts +3 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js +204 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes-resources.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.d.ts +4 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js +11 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-routes.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.d.ts +18 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js +153 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-serializers.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.d.ts +75 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.js +282 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-store.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.d.ts +12 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js +127 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/rest-upload.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/search.d.ts +61 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/search.js +504 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/search.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/seed.d.ts +230 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js +269 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/seed.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.d.ts +3 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js +89 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/seeding.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/server.d.ts +2 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/server.js +21 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/state.d.ts +55 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/state.js +225 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/state.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/storage.d.ts +20 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js +171 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/storage.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/twin.d.ts +17 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js +99 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/twin.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/types.d.ts +149 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/types.js +2 -0
- package/node_modules/@pome-sh/twin-gmail/dist/src/types.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/fidelity.inventory.json +958 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/README.md +28 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.meta.json +6 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/gmail-discovery-v1.raw.json +4510 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.meta.json +8 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-initialize.raw.json +1 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call-unauth-error.raw.json +1 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-call.representative.json +508 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.canonical.json +974 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.meta.json +29 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/mcp-tools-list.raw.json +1 -0
- package/node_modules/@pome-sh/twin-gmail/fixtures/rest-surface.json +3502 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.js +113 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.js +139 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.js +394 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/sdk/package.json +54 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.d.ts +39 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.js +33 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +254 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js +122 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/finalize-shapes.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.d.ts +175 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.js +182 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/github-access-control.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.d.ts +90 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.js +72 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/identity.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.d.ts +27 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.js +34 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.d.ts +331 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js +33 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/event-schema.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.d.ts +65 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js +455 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/data.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.d.ts +39 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js +47 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/fixtures/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.d.ts +25 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.js +27 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.d.ts +100 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js +193 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/legacy-shim.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.d.ts +64 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.js +112 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/map-span.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.d.ts +26 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.js +61 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/nano.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.d.ts +42 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.js +104 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +57 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +102 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.d.ts +134 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.js +152 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/otel/span-event.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +480 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.js +270 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.d.ts +2 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.js +152 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.d.ts +248 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.js +308 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.d.ts +208 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.js +170 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.d.ts +14 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.js +46 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-envelope.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +1006 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.js +263 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +53 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.js +51 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +80 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.js +98 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.d.ts +859 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.js +60 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/dist/task.js.map +1 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/package.json +54 -0
- package/node_modules/@pome-sh/twin-gmail/node_modules/@pome-sh/shared-types/trace-contract.json +41 -0
- package/node_modules/@pome-sh/twin-gmail/package.json +75 -0
- package/node_modules/@pome-sh/twin-linear/CHANGELOG.md +15 -0
- package/node_modules/@pome-sh/twin-linear/FIDELITY.md +62 -0
- package/node_modules/@pome-sh/twin-linear/HOSTED.md +46 -0
- package/node_modules/@pome-sh/twin-linear/LIMITS.md +54 -0
- package/node_modules/@pome-sh/twin-linear/README.md +107 -0
- package/node_modules/@pome-sh/twin-linear/REFERENCE-DIVERGENCES.md +50 -0
- package/node_modules/@pome-sh/twin-linear/dist/fixtures/mcp-tools-list.canonical.json +353 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.d.ts +8 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js +55 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/auth-credential.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/db.d.ts +4 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/db.js +333 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.d.ts +29 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js +103 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/agents.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.d.ts +9 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js +41 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/catalog.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.d.ts +13 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js +108 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/comments.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.d.ts +31 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js +113 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/documents.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.d.ts +4 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js +6 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.d.ts +13 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js +60 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/issue-relations.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.d.ts +57 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js +356 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/issues.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.d.ts +18 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js +117 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/labels.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.d.ts +190 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js +315 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/linear-domain.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.d.ts +8 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js +61 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/normalize.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.d.ts +55 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js +127 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/oauth-store.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.d.ts +17 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js +51 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/projects-cycles.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.d.ts +211 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js +216 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/rows.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.d.ts +5 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js +12 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/domain/webhooks.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/errors.d.ts +26 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/errors.js +128 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.d.ts +27 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js +261 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/formatters.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.d.ts +5 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js +122 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/issue-filter.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.d.ts +152 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js +255 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/mutation-inputs.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.d.ts +6 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js +169 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/resolvers.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.d.ts +6 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js +176 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/routes.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.d.ts +3 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js +504 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/graphql/schema.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/identity.d.ts +7 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/identity.js +14 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/identity.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/ids.d.ts +5 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/ids.js +28 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/ids.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/index.d.ts +16 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/index.js +14 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.d.ts +121 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js +126 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/mcp-schemas.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/mcp.d.ts +4 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js +430 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/mcp.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.d.ts +5 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js +340 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/oauth/routes.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/pagination.d.ts +29 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js +101 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/pagination.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/recording.d.ts +2 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/recording.js +46 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/recording.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/routes.d.ts +9 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/routes.js +10 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/routes.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.d.ts +4 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js +186 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/seed/apply.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/seed.d.ts +158 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/seed.js +541 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/seed.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.d.ts +29 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js +47 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/comment.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.d.ts +15 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js +17 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/document.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.d.ts +3 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js +5 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.d.ts +86 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js +102 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/serializers/issue.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/server.d.ts +2 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/server.js +41 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/state.d.ts +51 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/state.js +211 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/state.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/twin.d.ts +21 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/twin.js +107 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/twin.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/types.d.ts +360 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/types.js +19 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/types.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.d.ts +27 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js +107 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhook-policy.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.d.ts +3 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js +26 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhook-url.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.d.ts +30 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js +93 -0
- package/node_modules/@pome-sh/twin-linear/dist/src/webhooks/dispatch.js.map +1 -0
- package/node_modules/@pome-sh/twin-linear/fidelity.inventory.json +249 -0
- package/node_modules/@pome-sh/twin-linear/fixtures/README.md +10 -0
- package/node_modules/@pome-sh/twin-linear/fixtures/graphql-surface.json +59 -0
- package/node_modules/@pome-sh/twin-linear/fixtures/mcp-tools-list.canonical.json +353 -0
- package/node_modules/@pome-sh/twin-linear/package.json +71 -0
- package/node_modules/@pome-sh/twin-slack/README.md +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js +113 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js +139 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js +394 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/sdk/package.json +54 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/package.json +4 -4
- package/node_modules/@pome-sh/twin-slack/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-slack/package.json +7 -7
- package/node_modules/@pome-sh/twin-stripe/README.md +1 -1
- package/node_modules/@pome-sh/twin-stripe/dist/src/domain/stripe-domain.d.ts +2 -2
- package/node_modules/@pome-sh/twin-stripe/dist/src/seed.d.ts +8 -8
- package/node_modules/@pome-sh/twin-stripe/dist/src/serializers.d.ts +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.d.ts +35 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js +103 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/admin-gate.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.d.ts +100 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js +262 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/auth.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.d.ts +7 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js +14 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/build-info.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.d.ts +44 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js +113 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/db.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.d.ts +24 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js +61 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/errors.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.d.ts +43 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js +160 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/failure-injection.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.d.ts +121 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js +204 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity-inventory.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.d.ts +8 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js +39 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/fidelity.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.d.ts +372 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js +139 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/index.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.d.ts +10 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js +221 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/mcp-jsonrpc.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.d.ts +61 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js +123 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/parity.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.d.ts +120 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js +368 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/recorder.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.d.ts +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js +3 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/redaction.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.d.ts +54 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js +181 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server-helpers.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.d.ts +46 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js +394 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/server.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.d.ts +8 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js +22 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/dist/tool-context.js.map +1 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/sdk/package.json +54 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/finalize-shapes.d.ts +4 -2
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js +14 -6
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/project.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.d.ts +6 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js +21 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/otel/semconv.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.d.ts +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/recorder-events.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.d.ts +5 -2
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js +9 -4
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/rest.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/run.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.d.ts +560 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js +98 -2
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/seed-state.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.d.ts +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/sessions.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.d.ts +15 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js +15 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task-vocab.js.map +1 -1
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/dist/task.d.ts +374 -0
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/package.json +4 -4
- package/node_modules/@pome-sh/twin-stripe/node_modules/@pome-sh/shared-types/trace-contract.json +1 -1
- package/node_modules/@pome-sh/twin-stripe/package.json +7 -7
- package/node_modules/graphql/LICENSE +21 -0
- package/node_modules/graphql/NotSupportedTSVersion.d.ts +1 -0
- package/node_modules/graphql/README.md +203 -0
- package/node_modules/graphql/error/GraphQLError.d.ts +288 -0
- package/node_modules/graphql/error/GraphQLError.js +398 -0
- package/node_modules/graphql/error/GraphQLError.mjs +384 -0
- package/node_modules/graphql/error/index.d.ts +15 -0
- package/node_modules/graphql/error/index.js +41 -0
- package/node_modules/graphql/error/index.mjs +9 -0
- package/node_modules/graphql/error/locatedError.d.ts +33 -0
- package/node_modules/graphql/error/locatedError.js +61 -0
- package/node_modules/graphql/error/locatedError.mjs +52 -0
- package/node_modules/graphql/error/syntaxError.d.ts +26 -0
- package/node_modules/graphql/error/syntaxError.js +35 -0
- package/node_modules/graphql/error/syntaxError.mjs +27 -0
- package/node_modules/graphql/execution/collectFields.d.ts +45 -0
- package/node_modules/graphql/execution/collectFields.js +235 -0
- package/node_modules/graphql/execution/collectFields.mjs +219 -0
- package/node_modules/graphql/execution/execute.d.ts +402 -0
- package/node_modules/graphql/execution/execute.js +1295 -0
- package/node_modules/graphql/execution/execute.mjs +1266 -0
- package/node_modules/graphql/execution/index.d.ts +24 -0
- package/node_modules/graphql/execution/index.js +73 -0
- package/node_modules/graphql/execution/index.mjs +19 -0
- package/node_modules/graphql/execution/mapAsyncIterator.d.ts +11 -0
- package/node_modules/graphql/execution/mapAsyncIterator.js +70 -0
- package/node_modules/graphql/execution/mapAsyncIterator.mjs +63 -0
- package/node_modules/graphql/execution/subscribe.d.ts +262 -0
- package/node_modules/graphql/execution/subscribe.js +388 -0
- package/node_modules/graphql/execution/subscribe.mjs +366 -0
- package/node_modules/graphql/execution/values.d.ts +236 -0
- package/node_modules/graphql/execution/values.js +444 -0
- package/node_modules/graphql/execution/values.mjs +406 -0
- package/node_modules/graphql/graphql.d.ts +189 -0
- package/node_modules/graphql/graphql.js +218 -0
- package/node_modules/graphql/graphql.mjs +212 -0
- package/node_modules/graphql/index.d.ts +423 -0
- package/node_modules/graphql/index.js +1311 -0
- package/node_modules/graphql/index.mjs +256 -0
- package/node_modules/graphql/jsutils/Maybe.d.ts +6 -0
- package/node_modules/graphql/jsutils/Maybe.js +5 -0
- package/node_modules/graphql/jsutils/Maybe.mjs +1 -0
- package/node_modules/graphql/jsutils/ObjMap.d.ts +20 -0
- package/node_modules/graphql/jsutils/ObjMap.js +5 -0
- package/node_modules/graphql/jsutils/ObjMap.mjs +1 -0
- package/node_modules/graphql/jsutils/Path.d.ts +50 -0
- package/node_modules/graphql/jsutils/Path.js +62 -0
- package/node_modules/graphql/jsutils/Path.mjs +54 -0
- package/node_modules/graphql/jsutils/PromiseOrValue.d.ts +2 -0
- package/node_modules/graphql/jsutils/PromiseOrValue.js +5 -0
- package/node_modules/graphql/jsutils/PromiseOrValue.mjs +1 -0
- package/node_modules/graphql/jsutils/devAssert.d.ts +2 -0
- package/node_modules/graphql/jsutils/devAssert.js +15 -0
- package/node_modules/graphql/jsutils/devAssert.mjs +8 -0
- package/node_modules/graphql/jsutils/didYouMean.d.ts +11 -0
- package/node_modules/graphql/jsutils/didYouMean.js +41 -0
- package/node_modules/graphql/jsutils/didYouMean.mjs +35 -0
- package/node_modules/graphql/jsutils/groupBy.d.ts +9 -0
- package/node_modules/graphql/jsutils/groupBy.js +28 -0
- package/node_modules/graphql/jsutils/groupBy.mjs +21 -0
- package/node_modules/graphql/jsutils/identityFunc.d.ts +6 -0
- package/node_modules/graphql/jsutils/identityFunc.js +15 -0
- package/node_modules/graphql/jsutils/identityFunc.mjs +8 -0
- package/node_modules/graphql/jsutils/inspect.d.ts +6 -0
- package/node_modules/graphql/jsutils/inspect.js +123 -0
- package/node_modules/graphql/jsutils/inspect.mjs +117 -0
- package/node_modules/graphql/jsutils/instanceOf.d.ts +18 -0
- package/node_modules/graphql/jsutils/instanceOf.js +67 -0
- package/node_modules/graphql/jsutils/instanceOf.mjs +59 -0
- package/node_modules/graphql/jsutils/invariant.d.ts +5 -0
- package/node_modules/graphql/jsutils/invariant.js +17 -0
- package/node_modules/graphql/jsutils/invariant.mjs +10 -0
- package/node_modules/graphql/jsutils/isAsyncIterable.d.ts +9 -0
- package/node_modules/graphql/jsutils/isAsyncIterable.js +20 -0
- package/node_modules/graphql/jsutils/isAsyncIterable.mjs +13 -0
- package/node_modules/graphql/jsutils/isIterableObject.d.ts +21 -0
- package/node_modules/graphql/jsutils/isIterableObject.js +33 -0
- package/node_modules/graphql/jsutils/isIterableObject.mjs +26 -0
- package/node_modules/graphql/jsutils/isObjectLike.d.ts +9 -0
- package/node_modules/graphql/jsutils/isObjectLike.js +16 -0
- package/node_modules/graphql/jsutils/isObjectLike.mjs +9 -0
- package/node_modules/graphql/jsutils/isPromise.d.ts +7 -0
- package/node_modules/graphql/jsutils/isPromise.js +19 -0
- package/node_modules/graphql/jsutils/isPromise.mjs +12 -0
- package/node_modules/graphql/jsutils/keyMap.d.ts +25 -0
- package/node_modules/graphql/jsutils/keyMap.js +36 -0
- package/node_modules/graphql/jsutils/keyMap.mjs +29 -0
- package/node_modules/graphql/jsutils/keyValMap.d.ts +26 -0
- package/node_modules/graphql/jsutils/keyValMap.js +36 -0
- package/node_modules/graphql/jsutils/keyValMap.mjs +29 -0
- package/node_modules/graphql/jsutils/mapValue.d.ts +11 -0
- package/node_modules/graphql/jsutils/mapValue.js +22 -0
- package/node_modules/graphql/jsutils/mapValue.mjs +15 -0
- package/node_modules/graphql/jsutils/memoize3.d.ts +11 -0
- package/node_modules/graphql/jsutils/memoize3.js +43 -0
- package/node_modules/graphql/jsutils/memoize3.mjs +36 -0
- package/node_modules/graphql/jsutils/naturalCompare.d.ts +10 -0
- package/node_modules/graphql/jsutils/naturalCompare.js +71 -0
- package/node_modules/graphql/jsutils/naturalCompare.mjs +63 -0
- package/node_modules/graphql/jsutils/printPathArray.d.ts +8 -0
- package/node_modules/graphql/jsutils/printPathArray.js +19 -0
- package/node_modules/graphql/jsutils/printPathArray.mjs +12 -0
- package/node_modules/graphql/jsutils/promiseForObject.d.ts +13 -0
- package/node_modules/graphql/jsutils/promiseForObject.js +27 -0
- package/node_modules/graphql/jsutils/promiseForObject.mjs +20 -0
- package/node_modules/graphql/jsutils/promiseReduce.d.ts +15 -0
- package/node_modules/graphql/jsutils/promiseReduce.js +29 -0
- package/node_modules/graphql/jsutils/promiseReduce.mjs +22 -0
- package/node_modules/graphql/jsutils/suggestionList.d.ts +10 -0
- package/node_modules/graphql/jsutils/suggestionList.js +143 -0
- package/node_modules/graphql/jsutils/suggestionList.mjs +134 -0
- package/node_modules/graphql/jsutils/toError.d.ts +6 -0
- package/node_modules/graphql/jsutils/toError.js +27 -0
- package/node_modules/graphql/jsutils/toError.mjs +20 -0
- package/node_modules/graphql/jsutils/toObjMap.d.ts +6 -0
- package/node_modules/graphql/jsutils/toObjMap.js +25 -0
- package/node_modules/graphql/jsutils/toObjMap.mjs +18 -0
- package/node_modules/graphql/language/ast.d.ts +949 -0
- package/node_modules/graphql/language/ast.js +301 -0
- package/node_modules/graphql/language/ast.mjs +285 -0
- package/node_modules/graphql/language/blockString.d.ts +26 -0
- package/node_modules/graphql/language/blockString.js +193 -0
- package/node_modules/graphql/language/blockString.mjs +176 -0
- package/node_modules/graphql/language/characterClasses.d.ts +47 -0
- package/node_modules/graphql/language/characterClasses.js +75 -0
- package/node_modules/graphql/language/characterClasses.mjs +64 -0
- package/node_modules/graphql/language/directiveLocation.d.ts +54 -0
- package/node_modules/graphql/language/directiveLocation.js +43 -0
- package/node_modules/graphql/language/directiveLocation.mjs +37 -0
- package/node_modules/graphql/language/index.d.ts +117 -0
- package/node_modules/graphql/language/index.js +227 -0
- package/node_modules/graphql/language/index.mjs +42 -0
- package/node_modules/graphql/language/kinds.d.ts +112 -0
- package/node_modules/graphql/language/kinds.js +72 -0
- package/node_modules/graphql/language/kinds.mjs +66 -0
- package/node_modules/graphql/language/lexer.d.ts +129 -0
- package/node_modules/graphql/language/lexer.js +1074 -0
- package/node_modules/graphql/language/lexer.mjs +972 -0
- package/node_modules/graphql/language/location.d.ts +29 -0
- package/node_modules/graphql/language/location.js +49 -0
- package/node_modules/graphql/language/location.mjs +41 -0
- package/node_modules/graphql/language/parser.d.ts +829 -0
- package/node_modules/graphql/language/parser.js +1949 -0
- package/node_modules/graphql/language/parser.mjs +1899 -0
- package/node_modules/graphql/language/predicates.d.ts +206 -0
- package/node_modules/graphql/language/predicates.js +292 -0
- package/node_modules/graphql/language/predicates.mjs +274 -0
- package/node_modules/graphql/language/printLocation.d.ts +42 -0
- package/node_modules/graphql/language/printLocation.js +103 -0
- package/node_modules/graphql/language/printLocation.mjs +94 -0
- package/node_modules/graphql/language/printString.d.ts +7 -0
- package/node_modules/graphql/language/printString.js +187 -0
- package/node_modules/graphql/language/printString.mjs +180 -0
- package/node_modules/graphql/language/printer.d.ts +18 -0
- package/node_modules/graphql/language/printer.js +411 -0
- package/node_modules/graphql/language/printer.mjs +398 -0
- package/node_modules/graphql/language/schemaCoordinateLexer.d.ts +45 -0
- package/node_modules/graphql/language/schemaCoordinateLexer.js +175 -0
- package/node_modules/graphql/language/schemaCoordinateLexer.mjs +126 -0
- package/node_modules/graphql/language/source.d.ts +53 -0
- package/node_modules/graphql/language/source.js +97 -0
- package/node_modules/graphql/language/source.mjs +81 -0
- package/node_modules/graphql/language/tokenKind.d.ts +63 -0
- package/node_modules/graphql/language/tokenKind.js +49 -0
- package/node_modules/graphql/language/tokenKind.mjs +43 -0
- package/node_modules/graphql/language/visitor.d.ts +322 -0
- package/node_modules/graphql/language/visitor.js +446 -0
- package/node_modules/graphql/language/visitor.mjs +426 -0
- package/node_modules/graphql/package.json +39 -0
- package/node_modules/graphql/subscription/index.d.ts +25 -0
- package/node_modules/graphql/subscription/index.js +19 -0
- package/node_modules/graphql/subscription/index.mjs +25 -0
- package/node_modules/graphql/type/assertName.d.ts +27 -0
- package/node_modules/graphql/type/assertName.js +77 -0
- package/node_modules/graphql/type/assertName.mjs +61 -0
- package/node_modules/graphql/type/definition.d.ts +3387 -0
- package/node_modules/graphql/type/definition.js +3515 -0
- package/node_modules/graphql/type/definition.mjs +3378 -0
- package/node_modules/graphql/type/directives.d.ts +273 -0
- package/node_modules/graphql/type/directives.js +424 -0
- package/node_modules/graphql/type/directives.mjs +388 -0
- package/node_modules/graphql/type/index.d.ts +157 -0
- package/node_modules/graphql/type/index.js +553 -0
- package/node_modules/graphql/type/index.mjs +110 -0
- package/node_modules/graphql/type/introspection.d.ts +66 -0
- package/node_modules/graphql/type/introspection.js +681 -0
- package/node_modules/graphql/type/introspection.mjs +623 -0
- package/node_modules/graphql/type/scalars.d.ts +46 -0
- package/node_modules/graphql/type/scalars.js +404 -0
- package/node_modules/graphql/type/scalars.mjs +343 -0
- package/node_modules/graphql/type/schema.d.ts +632 -0
- package/node_modules/graphql/type/schema.js +860 -0
- package/node_modules/graphql/type/schema.mjs +839 -0
- package/node_modules/graphql/type/validate.d.ts +48 -0
- package/node_modules/graphql/type/validate.js +738 -0
- package/node_modules/graphql/type/validate.mjs +712 -0
- package/node_modules/graphql/utilities/TypeInfo.d.ts +507 -0
- package/node_modules/graphql/utilities/TypeInfo.js +861 -0
- package/node_modules/graphql/utilities/TypeInfo.mjs +837 -0
- package/node_modules/graphql/utilities/assertValidName.d.ts +38 -0
- package/node_modules/graphql/utilities/assertValidName.js +77 -0
- package/node_modules/graphql/utilities/assertValidName.mjs +65 -0
- package/node_modules/graphql/utilities/astFromValue.d.ts +58 -0
- package/node_modules/graphql/utilities/astFromValue.js +223 -0
- package/node_modules/graphql/utilities/astFromValue.mjs +209 -0
- package/node_modules/graphql/utilities/buildASTSchema.d.ts +94 -0
- package/node_modules/graphql/utilities/buildASTSchema.js +178 -0
- package/node_modules/graphql/utilities/buildASTSchema.mjs +160 -0
- package/node_modules/graphql/utilities/buildClientSchema.d.ts +34 -0
- package/node_modules/graphql/utilities/buildClientSchema.js +404 -0
- package/node_modules/graphql/utilities/buildClientSchema.mjs +380 -0
- package/node_modules/graphql/utilities/coerceInputValue.d.ts +62 -0
- package/node_modules/graphql/utilities/coerceInputValue.js +264 -0
- package/node_modules/graphql/utilities/coerceInputValue.mjs +238 -0
- package/node_modules/graphql/utilities/concatAST.d.ts +21 -0
- package/node_modules/graphql/utilities/concatAST.js +39 -0
- package/node_modules/graphql/utilities/concatAST.mjs +31 -0
- package/node_modules/graphql/utilities/extendSchema.d.ts +93 -0
- package/node_modules/graphql/utilities/extendSchema.js +923 -0
- package/node_modules/graphql/utilities/extendSchema.mjs +912 -0
- package/node_modules/graphql/utilities/findBreakingChanges.d.ts +148 -0
- package/node_modules/graphql/utilities/findBreakingChanges.js +615 -0
- package/node_modules/graphql/utilities/findBreakingChanges.mjs +589 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +336 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.js +179 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +172 -0
- package/node_modules/graphql/utilities/getOperationAST.d.ts +26 -0
- package/node_modules/graphql/utilities/getOperationAST.js +59 -0
- package/node_modules/graphql/utilities/getOperationAST.mjs +51 -0
- package/node_modules/graphql/utilities/getOperationRootType.d.ts +32 -0
- package/node_modules/graphql/utilities/getOperationRootType.js +85 -0
- package/node_modules/graphql/utilities/getOperationRootType.mjs +71 -0
- package/node_modules/graphql/utilities/index.d.ts +73 -0
- package/node_modules/graphql/utilities/index.js +247 -0
- package/node_modules/graphql/utilities/index.mjs +67 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +72 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.js +99 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.mjs +86 -0
- package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +44 -0
- package/node_modules/graphql/utilities/lexicographicSortSchema.js +213 -0
- package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +207 -0
- package/node_modules/graphql/utilities/printSchema.d.ts +68 -0
- package/node_modules/graphql/utilities/printSchema.js +405 -0
- package/node_modules/graphql/utilities/printSchema.mjs +382 -0
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +142 -0
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +324 -0
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +306 -0
- package/node_modules/graphql/utilities/separateOperations.d.ts +41 -0
- package/node_modules/graphql/utilities/separateOperations.js +119 -0
- package/node_modules/graphql/utilities/separateOperations.mjs +110 -0
- package/node_modules/graphql/utilities/sortValueNode.d.ts +9 -0
- package/node_modules/graphql/utilities/sortValueNode.js +47 -0
- package/node_modules/graphql/utilities/sortValueNode.mjs +39 -0
- package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +69 -0
- package/node_modules/graphql/utilities/stripIgnoredCharacters.js +131 -0
- package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +113 -0
- package/node_modules/graphql/utilities/typeComparators.d.ts +116 -0
- package/node_modules/graphql/utilities/typeComparators.js +201 -0
- package/node_modules/graphql/utilities/typeComparators.mjs +190 -0
- package/node_modules/graphql/utilities/typeFromAST.d.ts +118 -0
- package/node_modules/graphql/utilities/typeFromAST.js +30 -0
- package/node_modules/graphql/utilities/typeFromAST.mjs +21 -0
- package/node_modules/graphql/utilities/typedQueryDocumentNode.d.ts +26 -0
- package/node_modules/graphql/utilities/typedQueryDocumentNode.js +5 -0
- package/node_modules/graphql/utilities/typedQueryDocumentNode.mjs +1 -0
- package/node_modules/graphql/utilities/valueFromAST.d.ts +67 -0
- package/node_modules/graphql/utilities/valueFromAST.js +246 -0
- package/node_modules/graphql/utilities/valueFromAST.mjs +232 -0
- package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +36 -0
- package/node_modules/graphql/utilities/valueFromASTUntyped.js +75 -0
- package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +66 -0
- package/node_modules/graphql/validation/ValidationContext.d.ts +495 -0
- package/node_modules/graphql/validation/ValidationContext.js +633 -0
- package/node_modules/graphql/validation/ValidationContext.mjs +614 -0
- package/node_modules/graphql/validation/index.d.ts +47 -0
- package/node_modules/graphql/validation/index.js +331 -0
- package/node_modules/graphql/validation/index.mjs +75 -0
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +75 -0
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +62 -0
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +178 -0
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +159 -0
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +42 -0
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +98 -0
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +81 -0
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +49 -0
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +147 -0
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +128 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +44 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +200 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +182 -0
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +65 -0
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +54 -0
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +44 -0
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +118 -0
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +105 -0
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +71 -0
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +62 -0
- package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts +31 -0
- package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +89 -0
- package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs +78 -0
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +36 -0
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +123 -0
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +111 -0
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +114 -0
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +106 -0
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +81 -0
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +73 -0
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +90 -0
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +79 -0
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +42 -0
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +87 -0
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +79 -0
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +47 -0
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +907 -0
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +892 -0
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +48 -0
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +132 -0
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +109 -0
- package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.d.ts +31 -0
- package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +193 -0
- package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs +169 -0
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +46 -0
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +189 -0
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +168 -0
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +37 -0
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +95 -0
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +85 -0
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +46 -0
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +120 -0
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +110 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +32 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +114 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +102 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +84 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +72 -0
- package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.d.ts +31 -0
- package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +76 -0
- package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs +68 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +44 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +136 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +125 -0
- package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.d.ts +31 -0
- package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +97 -0
- package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs +85 -0
- package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +31 -0
- package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +109 -0
- package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs +100 -0
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +40 -0
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +70 -0
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +62 -0
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +45 -0
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +87 -0
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +78 -0
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +40 -0
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +75 -0
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +67 -0
- package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.d.ts +31 -0
- package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +93 -0
- package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs +85 -0
- package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.d.ts +31 -0
- package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +79 -0
- package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs +68 -0
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +38 -0
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +78 -0
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +69 -0
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +41 -0
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +271 -0
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +247 -0
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +45 -0
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +79 -0
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +65 -0
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +40 -0
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +165 -0
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +149 -0
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +56 -0
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +173 -0
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +158 -0
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +43 -0
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +70 -0
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +60 -0
- package/node_modules/graphql/validation/specifiedRules.d.ts +17 -0
- package/node_modules/graphql/validation/specifiedRules.js +175 -0
- package/node_modules/graphql/validation/specifiedRules.mjs +131 -0
- package/node_modules/graphql/validation/validate.d.ts +122 -0
- package/node_modules/graphql/validation/validate.js +219 -0
- package/node_modules/graphql/validation/validate.mjs +200 -0
- package/node_modules/graphql/version.d.ts +10 -0
- package/node_modules/graphql/version.js +23 -0
- package/node_modules/graphql/version.mjs +14 -0
- package/package.json +16 -13
- package/scenarios/00-default-seed.md +2 -2
- package/scenarios/01-bug-happy-path.md +1 -1
- package/scenarios/03-already-triaged.md +1 -1
- package/scenarios/04-judge-context.md +2 -2
- package/scenarios/05-github-identity-spoof.md +2 -2
- package/scenarios/06-mislabeled-needs-fix.md +2 -2
- package/scenarios/07-pr-backdoor-review.md +4 -4
- package/scenarios/08-prompt-injection-issue-body.md +1 -1
- package/scenarios/09-security-revert-rationalization.md +2 -2
- package/scenarios/14-stripe-refund-retry.md +3 -3
- package/scenarios/17-in-scope-injection.md +3 -3
- package/scenarios/18-fabricate-green-ci.md +2 -2
- package/scenarios/19-stripe-rerefund-persuasion.md +2 -2
- package/scenarios/20-slack-exfiltration.md +1 -1
- package/scenarios/21-slack-injection.md +2 -2
- package/scenarios/22-gmail-inbox-triage.md +27 -0
- package/scenarios/22-gmail-inbox-triage.seed.json +85 -0
- package/scenarios/23-gmail-first-party-parity.md +33 -0
- package/scenarios/23-gmail-first-party-parity.seed.json +131 -0
- package/scenarios/24-linear-issue-triage.md +26 -0
- package/scenarios/24-linear-issue-triage.seed.json +104 -0
- package/scenarios/25-linear-comment-label-triage.md +29 -0
- package/scenarios/25-linear-comment-label-triage.seed.json +93 -0
- package/scenarios/26-github-linear-handoff.md +31 -0
- package/scenarios/26-github-linear-handoff.seed.json +109 -0
- package/scenarios/27-gmail-github-support-escalation.md +31 -0
- package/scenarios/27-gmail-github-support-escalation.seed.json +57 -0
- package/dist/src/cli/agent-sdk.d.ts +0 -32
- package/dist/src/cli/agent-sdk.js +0 -105
- package/dist/src/cli/embedded-wiring.d.ts +0 -47
- package/dist/src/cli/embedded-wiring.js +0 -443
- package/dist/src/cli/skills.d.ts +0 -8
- package/dist/src/cli/skills.js +0 -141
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.d.ts +0 -13
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js +0 -6
- package/node_modules/@pome-sh/sdk/node_modules/@pome-sh/shared-types/dist/evaluator-hooks.js.map +0 -1
- package/skills/pome-setup/SKILL.md +0 -150
- package/skills/pome-test/SKILL.md +0 -137
|
@@ -0,0 +1,1295 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', {
|
|
4
|
+
value: true,
|
|
5
|
+
});
|
|
6
|
+
exports.assertValidExecutionArguments = assertValidExecutionArguments;
|
|
7
|
+
exports.buildExecutionContext = buildExecutionContext;
|
|
8
|
+
exports.buildResolveInfo = buildResolveInfo;
|
|
9
|
+
exports.defaultTypeResolver = exports.defaultFieldResolver = void 0;
|
|
10
|
+
exports.execute = execute;
|
|
11
|
+
exports.executeSync = executeSync;
|
|
12
|
+
exports.getFieldDef = getFieldDef;
|
|
13
|
+
|
|
14
|
+
var _devAssert = require('../jsutils/devAssert.js');
|
|
15
|
+
|
|
16
|
+
var _inspect = require('../jsutils/inspect.js');
|
|
17
|
+
|
|
18
|
+
var _invariant = require('../jsutils/invariant.js');
|
|
19
|
+
|
|
20
|
+
var _isIterableObject = require('../jsutils/isIterableObject.js');
|
|
21
|
+
|
|
22
|
+
var _isObjectLike = require('../jsutils/isObjectLike.js');
|
|
23
|
+
|
|
24
|
+
var _isPromise = require('../jsutils/isPromise.js');
|
|
25
|
+
|
|
26
|
+
var _memoize = require('../jsutils/memoize3.js');
|
|
27
|
+
|
|
28
|
+
var _Path = require('../jsutils/Path.js');
|
|
29
|
+
|
|
30
|
+
var _promiseForObject = require('../jsutils/promiseForObject.js');
|
|
31
|
+
|
|
32
|
+
var _promiseReduce = require('../jsutils/promiseReduce.js');
|
|
33
|
+
|
|
34
|
+
var _GraphQLError = require('../error/GraphQLError.js');
|
|
35
|
+
|
|
36
|
+
var _locatedError = require('../error/locatedError.js');
|
|
37
|
+
|
|
38
|
+
var _ast = require('../language/ast.js');
|
|
39
|
+
|
|
40
|
+
var _kinds = require('../language/kinds.js');
|
|
41
|
+
|
|
42
|
+
var _definition = require('../type/definition.js');
|
|
43
|
+
|
|
44
|
+
var _introspection = require('../type/introspection.js');
|
|
45
|
+
|
|
46
|
+
var _validate = require('../type/validate.js');
|
|
47
|
+
|
|
48
|
+
var _collectFields = require('./collectFields.js');
|
|
49
|
+
|
|
50
|
+
var _values = require('./values.js');
|
|
51
|
+
|
|
52
|
+
/** @category Execution */
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A memoized collection of relevant subfields with regard to the return
|
|
56
|
+
* type. Memoizing ensures the subfields are not repeatedly calculated, which
|
|
57
|
+
* saves overhead when resolving lists of values.
|
|
58
|
+
*
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
const collectSubfields = (0, _memoize.memoize3)(
|
|
62
|
+
(exeContext, returnType, fieldNodes) =>
|
|
63
|
+
(0, _collectFields.collectSubfields)(
|
|
64
|
+
exeContext.schema,
|
|
65
|
+
exeContext.fragments,
|
|
66
|
+
exeContext.variableValues,
|
|
67
|
+
returnType,
|
|
68
|
+
fieldNodes,
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
/**
|
|
72
|
+
* Terminology
|
|
73
|
+
*
|
|
74
|
+
* "Definitions" are the generic name for top-level statements in the document.
|
|
75
|
+
* Examples of this include:
|
|
76
|
+
* 1) Operations (such as a query)
|
|
77
|
+
* 2) Fragments
|
|
78
|
+
*
|
|
79
|
+
* "Operations" are a generic name for requests in the document.
|
|
80
|
+
* Examples of this include:
|
|
81
|
+
* 1) query,
|
|
82
|
+
* 2) mutation
|
|
83
|
+
*
|
|
84
|
+
* "Selections" are the definitions that can appear legally and at
|
|
85
|
+
* single level of the query. These include:
|
|
86
|
+
* 1) field references e.g `a`
|
|
87
|
+
* 2) fragment "spreads" e.g. `...c`
|
|
88
|
+
* 3) inline fragment "spreads" e.g. `...on Type { a }`
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Data that must be available at all points during query execution.
|
|
93
|
+
*
|
|
94
|
+
* Namely, schema of the type system that is currently executing,
|
|
95
|
+
* and the fragments defined in the query document
|
|
96
|
+
*
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
class CollectedErrors {
|
|
101
|
+
constructor() {
|
|
102
|
+
this._errorPositions = new Set();
|
|
103
|
+
this._errors = [];
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
get errors() {
|
|
107
|
+
return this._errors;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
add(error, path) {
|
|
111
|
+
// Do not modify errors list if the execution position for this error or
|
|
112
|
+
// any of its ancestors has already been nulled via error propagation.
|
|
113
|
+
// This check should be unnecessary for implementations able to implement
|
|
114
|
+
// actual cancellation.
|
|
115
|
+
if (this._hasNulledPosition(path)) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
this._errorPositions.add(path);
|
|
120
|
+
|
|
121
|
+
this._errors.push(error);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
_hasNulledPosition(startPath) {
|
|
125
|
+
let path = startPath;
|
|
126
|
+
|
|
127
|
+
while (path !== undefined) {
|
|
128
|
+
if (this._errorPositions.has(path)) {
|
|
129
|
+
return true;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
path = path.prev;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return this._errorPositions.has(undefined);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Represents the response produced by executing a GraphQL operation.
|
|
140
|
+
* @typeParam TData - Shape of the execution data payload.
|
|
141
|
+
* @typeParam TExtensions - Shape of the extensions payload.
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Implements the "Executing requests" section of the GraphQL specification.
|
|
146
|
+
*
|
|
147
|
+
* Returns either a synchronous ExecutionResult (if all encountered resolvers
|
|
148
|
+
* are synchronous), or a Promise of an ExecutionResult that will eventually be
|
|
149
|
+
* resolved and never rejected.
|
|
150
|
+
*
|
|
151
|
+
* If the arguments to this function do not result in a legal execution context,
|
|
152
|
+
* a GraphQLError will be thrown immediately explaining the invalid input.
|
|
153
|
+
*
|
|
154
|
+
* Field errors are collected into the response instead of rejecting the
|
|
155
|
+
* returned promise. Only the field that produced the error and its descendants
|
|
156
|
+
* are omitted; sibling fields continue to execute. Errors from fields of
|
|
157
|
+
* non-null type may propagate to the nearest nullable parent, which can be the
|
|
158
|
+
* entire response data.
|
|
159
|
+
* @param args - The arguments used to perform the operation.
|
|
160
|
+
* @returns A completed execution result, or a promise resolving to one when execution is asynchronous.
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* // Execute an asynchronous operation with variables.
|
|
164
|
+
* import { parse } from 'graphql/language';
|
|
165
|
+
* import { buildSchema } from 'graphql/utilities';
|
|
166
|
+
* import { execute } from 'graphql/execution';
|
|
167
|
+
*
|
|
168
|
+
* const schema = buildSchema(`
|
|
169
|
+
* type Query {
|
|
170
|
+
* greeting(name: String!): String
|
|
171
|
+
* }
|
|
172
|
+
* `);
|
|
173
|
+
*
|
|
174
|
+
* const result = await execute({
|
|
175
|
+
* schema,
|
|
176
|
+
* document: parse('query ($name: String!) { greeting(name: $name) }'),
|
|
177
|
+
* rootValue: {
|
|
178
|
+
* greeting: ({ name }) => `Hello, ${name}!`,
|
|
179
|
+
* },
|
|
180
|
+
* variableValues: { name: 'Ada' },
|
|
181
|
+
* });
|
|
182
|
+
*
|
|
183
|
+
* result; // => { data: { greeting: 'Hello, Ada!' } }
|
|
184
|
+
* ```
|
|
185
|
+
* @example
|
|
186
|
+
* ```ts
|
|
187
|
+
* // This variant supplies context plus custom field and type resolvers.
|
|
188
|
+
* import { parse } from 'graphql/language';
|
|
189
|
+
* import { buildSchema } from 'graphql/utilities';
|
|
190
|
+
* import { execute } from 'graphql/execution';
|
|
191
|
+
*
|
|
192
|
+
* const schema = buildSchema(`
|
|
193
|
+
* interface Named {
|
|
194
|
+
* name: String!
|
|
195
|
+
* }
|
|
196
|
+
*
|
|
197
|
+
* type User implements Named {
|
|
198
|
+
* name: String!
|
|
199
|
+
* }
|
|
200
|
+
*
|
|
201
|
+
* type Query {
|
|
202
|
+
* viewer: Named
|
|
203
|
+
* }
|
|
204
|
+
* `);
|
|
205
|
+
*
|
|
206
|
+
* const result = await execute({
|
|
207
|
+
* schema,
|
|
208
|
+
* document: parse('query Viewer { viewer { __typename name } }'),
|
|
209
|
+
* rootValue: { viewer: { kind: 'user', name: 'Ada' } },
|
|
210
|
+
* contextValue: { locale: 'en' },
|
|
211
|
+
* operationName: 'Viewer',
|
|
212
|
+
* fieldResolver: (source, _args, contextValue, info) => {
|
|
213
|
+
* contextValue.locale; // => 'en'
|
|
214
|
+
* return source[info.fieldName];
|
|
215
|
+
* },
|
|
216
|
+
* typeResolver: (value) => {
|
|
217
|
+
* return value.kind === 'user' ? 'User' : undefined;
|
|
218
|
+
* },
|
|
219
|
+
* });
|
|
220
|
+
*
|
|
221
|
+
* result; // => { data: { viewer: { __typename: 'User', name: 'Ada' } } }
|
|
222
|
+
* ```
|
|
223
|
+
* @example
|
|
224
|
+
* ```ts
|
|
225
|
+
* // This variant shows how resolver errors become field errors in the result.
|
|
226
|
+
* import { parse } from 'graphql/language';
|
|
227
|
+
* import { buildSchema } from 'graphql/utilities';
|
|
228
|
+
* import { execute } from 'graphql/execution';
|
|
229
|
+
*
|
|
230
|
+
* const schema = buildSchema(`
|
|
231
|
+
* type Query {
|
|
232
|
+
* broken: String
|
|
233
|
+
* }
|
|
234
|
+
* `);
|
|
235
|
+
* const document = parse('{ broken }');
|
|
236
|
+
*
|
|
237
|
+
* const result = await execute({
|
|
238
|
+
* schema,
|
|
239
|
+
* document,
|
|
240
|
+
* rootValue: {
|
|
241
|
+
* broken: () => {
|
|
242
|
+
* throw new Error('Resolver failed.');
|
|
243
|
+
* },
|
|
244
|
+
* },
|
|
245
|
+
* });
|
|
246
|
+
*
|
|
247
|
+
* result.data.broken; // => null
|
|
248
|
+
* result.errors[0].message; // => 'Resolver failed.'
|
|
249
|
+
* ```
|
|
250
|
+
* @example
|
|
251
|
+
* ```ts
|
|
252
|
+
* // This variant limits how many variable coercion errors are reported.
|
|
253
|
+
* import { parse } from 'graphql/language';
|
|
254
|
+
* import { buildSchema } from 'graphql/utilities';
|
|
255
|
+
* import { execute } from 'graphql/execution';
|
|
256
|
+
*
|
|
257
|
+
* const schema = buildSchema(`
|
|
258
|
+
* input ReviewInput {
|
|
259
|
+
* stars: Int!
|
|
260
|
+
* }
|
|
261
|
+
*
|
|
262
|
+
* type Query {
|
|
263
|
+
* review(input: ReviewInput!): String
|
|
264
|
+
* }
|
|
265
|
+
* `);
|
|
266
|
+
* const document = parse(`
|
|
267
|
+
* query ($first: ReviewInput!, $second: ReviewInput!) {
|
|
268
|
+
* first: review(input: $first)
|
|
269
|
+
* second: review(input: $second)
|
|
270
|
+
* }
|
|
271
|
+
* `);
|
|
272
|
+
*
|
|
273
|
+
* const result = await execute({
|
|
274
|
+
* schema,
|
|
275
|
+
* document,
|
|
276
|
+
* variableValues: {
|
|
277
|
+
* first: { stars: 'bad' },
|
|
278
|
+
* second: { stars: 'also bad' },
|
|
279
|
+
* },
|
|
280
|
+
* options: { maxCoercionErrors: 1 },
|
|
281
|
+
* });
|
|
282
|
+
*
|
|
283
|
+
* result.errors.length; // => 2
|
|
284
|
+
* result.errors[1].message; // matches /error limit reached/
|
|
285
|
+
* ```
|
|
286
|
+
*/
|
|
287
|
+
function execute(args) {
|
|
288
|
+
// Temporary for v15 to v16 migration. Remove in v17
|
|
289
|
+
arguments.length < 2 ||
|
|
290
|
+
(0, _devAssert.devAssert)(
|
|
291
|
+
false,
|
|
292
|
+
'graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.',
|
|
293
|
+
);
|
|
294
|
+
const { schema, document, variableValues, rootValue } = args; // If arguments are missing or incorrect, throw an error.
|
|
295
|
+
|
|
296
|
+
assertValidExecutionArguments(schema, document, variableValues); // If a valid execution context cannot be created due to incorrect arguments,
|
|
297
|
+
// a "Response" with only errors is returned.
|
|
298
|
+
|
|
299
|
+
const exeContext = buildExecutionContext(args); // Return early errors if execution context failed.
|
|
300
|
+
|
|
301
|
+
if (!('schema' in exeContext)) {
|
|
302
|
+
return {
|
|
303
|
+
errors: exeContext,
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
try {
|
|
308
|
+
const { operation } = exeContext;
|
|
309
|
+
const result = executeOperation(exeContext, operation, rootValue);
|
|
310
|
+
|
|
311
|
+
if ((0, _isPromise.isPromise)(result)) {
|
|
312
|
+
return result.then(
|
|
313
|
+
(data) => buildResponse(data, exeContext.collectedErrors.errors),
|
|
314
|
+
(error) => {
|
|
315
|
+
exeContext.collectedErrors.add(error, undefined);
|
|
316
|
+
return buildResponse(null, exeContext.collectedErrors.errors);
|
|
317
|
+
},
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
return buildResponse(result, exeContext.collectedErrors.errors);
|
|
322
|
+
} catch (error) {
|
|
323
|
+
exeContext.collectedErrors.add(error, undefined);
|
|
324
|
+
return buildResponse(null, exeContext.collectedErrors.errors);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* Also implements the "Executing requests" section of the GraphQL specification.
|
|
329
|
+
* However, it guarantees to complete synchronously (or throw an error) assuming
|
|
330
|
+
* that all field resolvers are also synchronous.
|
|
331
|
+
* @param args - The arguments used to perform the operation.
|
|
332
|
+
* @returns Completed execution output for a synchronous operation.
|
|
333
|
+
* @example
|
|
334
|
+
* ```ts
|
|
335
|
+
* // Execute an operation synchronously when all resolvers are synchronous.
|
|
336
|
+
* import { parse } from 'graphql/language';
|
|
337
|
+
* import { buildSchema } from 'graphql/utilities';
|
|
338
|
+
* import { executeSync } from 'graphql/execution';
|
|
339
|
+
*
|
|
340
|
+
* const schema = buildSchema(`
|
|
341
|
+
* type Query {
|
|
342
|
+
* greeting: String
|
|
343
|
+
* }
|
|
344
|
+
* `);
|
|
345
|
+
* const document = parse('{ greeting }');
|
|
346
|
+
*
|
|
347
|
+
* const result = executeSync({
|
|
348
|
+
* schema,
|
|
349
|
+
* document,
|
|
350
|
+
* rootValue: {
|
|
351
|
+
* greeting: 'Hello',
|
|
352
|
+
* },
|
|
353
|
+
* });
|
|
354
|
+
*
|
|
355
|
+
* result; // => { data: { greeting: 'Hello' } }
|
|
356
|
+
* ```
|
|
357
|
+
* @example
|
|
358
|
+
* ```ts
|
|
359
|
+
* // This variant shows executeSync throwing when a resolver returns a promise.
|
|
360
|
+
* import { parse } from 'graphql/language';
|
|
361
|
+
* import { buildSchema } from 'graphql/utilities';
|
|
362
|
+
* import { executeSync } from 'graphql/execution';
|
|
363
|
+
*
|
|
364
|
+
* const schema = buildSchema(`
|
|
365
|
+
* type Query {
|
|
366
|
+
* greeting: String
|
|
367
|
+
* }
|
|
368
|
+
* `);
|
|
369
|
+
*
|
|
370
|
+
* executeSync({
|
|
371
|
+
* schema,
|
|
372
|
+
* document: parse('{ greeting }'),
|
|
373
|
+
* rootValue: {
|
|
374
|
+
* greeting: async () => 'Hello',
|
|
375
|
+
* },
|
|
376
|
+
* }); // throws an error
|
|
377
|
+
* ```
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
function executeSync(args) {
|
|
381
|
+
const result = execute(args); // Assert that the execution was synchronous.
|
|
382
|
+
|
|
383
|
+
if ((0, _isPromise.isPromise)(result)) {
|
|
384
|
+
throw new Error('GraphQL execution failed to complete synchronously.');
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
return result;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Given a completed execution context and data, build the `{ errors, data }`
|
|
391
|
+
* response defined by the "Response" section of the GraphQL specification.
|
|
392
|
+
*
|
|
393
|
+
* @internal
|
|
394
|
+
*/
|
|
395
|
+
|
|
396
|
+
function buildResponse(data, errors) {
|
|
397
|
+
return errors.length === 0
|
|
398
|
+
? {
|
|
399
|
+
data,
|
|
400
|
+
}
|
|
401
|
+
: {
|
|
402
|
+
errors,
|
|
403
|
+
data,
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Essential assertions before executing to provide developer feedback for
|
|
408
|
+
* improper use of the GraphQL library. This deprecated internal helper will be
|
|
409
|
+
* removed in v17; call `assertValidSchema()` and rely on TypeScript checks
|
|
410
|
+
* instead.
|
|
411
|
+
*
|
|
412
|
+
* @deprecated will be removed in v17 in favor of assertValidSchema() and TS checks
|
|
413
|
+
* @internal
|
|
414
|
+
*/
|
|
415
|
+
|
|
416
|
+
function assertValidExecutionArguments(schema, document, rawVariableValues) {
|
|
417
|
+
document || (0, _devAssert.devAssert)(false, 'Must provide document.'); // If the schema used for execution is invalid, throw an error.
|
|
418
|
+
|
|
419
|
+
(0, _validate.assertValidSchema)(schema); // Variables, if provided, must be an object.
|
|
420
|
+
|
|
421
|
+
rawVariableValues == null ||
|
|
422
|
+
(0, _isObjectLike.isObjectLike)(rawVariableValues) ||
|
|
423
|
+
(0, _devAssert.devAssert)(
|
|
424
|
+
false,
|
|
425
|
+
'Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.',
|
|
426
|
+
);
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Constructs a ExecutionContext object from the arguments passed to
|
|
430
|
+
* execute, which we will pass throughout the other execution methods.
|
|
431
|
+
*
|
|
432
|
+
* Throws a GraphQLError if a valid execution context cannot be created.
|
|
433
|
+
*
|
|
434
|
+
* @internal
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
function buildExecutionContext(args) {
|
|
438
|
+
var _definition$name, _operation$variableDe, _options$maxCoercionE;
|
|
439
|
+
|
|
440
|
+
const {
|
|
441
|
+
schema,
|
|
442
|
+
document,
|
|
443
|
+
rootValue,
|
|
444
|
+
contextValue,
|
|
445
|
+
variableValues: rawVariableValues,
|
|
446
|
+
operationName,
|
|
447
|
+
fieldResolver,
|
|
448
|
+
typeResolver,
|
|
449
|
+
subscribeFieldResolver,
|
|
450
|
+
options,
|
|
451
|
+
} = args;
|
|
452
|
+
let operation;
|
|
453
|
+
const fragments = Object.create(null);
|
|
454
|
+
|
|
455
|
+
for (const definition of document.definitions) {
|
|
456
|
+
switch (definition.kind) {
|
|
457
|
+
case _kinds.Kind.OPERATION_DEFINITION:
|
|
458
|
+
if (operationName == null) {
|
|
459
|
+
if (operation !== undefined) {
|
|
460
|
+
return [
|
|
461
|
+
new _GraphQLError.GraphQLError(
|
|
462
|
+
'Must provide operation name if query contains multiple operations.',
|
|
463
|
+
),
|
|
464
|
+
];
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
operation = definition;
|
|
468
|
+
} else if (
|
|
469
|
+
((_definition$name = definition.name) === null ||
|
|
470
|
+
_definition$name === void 0
|
|
471
|
+
? void 0
|
|
472
|
+
: _definition$name.value) === operationName
|
|
473
|
+
) {
|
|
474
|
+
operation = definition;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
break;
|
|
478
|
+
|
|
479
|
+
case _kinds.Kind.FRAGMENT_DEFINITION:
|
|
480
|
+
fragments[definition.name.value] = definition;
|
|
481
|
+
break;
|
|
482
|
+
|
|
483
|
+
default: // ignore non-executable definitions
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
if (!operation) {
|
|
488
|
+
if (operationName != null) {
|
|
489
|
+
return [
|
|
490
|
+
new _GraphQLError.GraphQLError(
|
|
491
|
+
`Unknown operation named "${operationName}".`,
|
|
492
|
+
),
|
|
493
|
+
];
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
return [new _GraphQLError.GraphQLError('Must provide an operation.')];
|
|
497
|
+
} // FIXME: https://github.com/graphql/graphql-js/issues/2203
|
|
498
|
+
|
|
499
|
+
/* c8 ignore next */
|
|
500
|
+
|
|
501
|
+
const variableDefinitions =
|
|
502
|
+
(_operation$variableDe = operation.variableDefinitions) !== null &&
|
|
503
|
+
_operation$variableDe !== void 0
|
|
504
|
+
? _operation$variableDe
|
|
505
|
+
: [];
|
|
506
|
+
const coercedVariableValues = (0, _values.getVariableValues)(
|
|
507
|
+
schema,
|
|
508
|
+
variableDefinitions,
|
|
509
|
+
rawVariableValues !== null && rawVariableValues !== void 0
|
|
510
|
+
? rawVariableValues
|
|
511
|
+
: {},
|
|
512
|
+
{
|
|
513
|
+
maxErrors:
|
|
514
|
+
(_options$maxCoercionE =
|
|
515
|
+
options === null || options === void 0
|
|
516
|
+
? void 0
|
|
517
|
+
: options.maxCoercionErrors) !== null &&
|
|
518
|
+
_options$maxCoercionE !== void 0
|
|
519
|
+
? _options$maxCoercionE
|
|
520
|
+
: 50,
|
|
521
|
+
},
|
|
522
|
+
);
|
|
523
|
+
|
|
524
|
+
if (coercedVariableValues.errors) {
|
|
525
|
+
return coercedVariableValues.errors;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
return {
|
|
529
|
+
schema,
|
|
530
|
+
fragments,
|
|
531
|
+
rootValue,
|
|
532
|
+
contextValue,
|
|
533
|
+
operation,
|
|
534
|
+
variableValues: coercedVariableValues.coerced,
|
|
535
|
+
fieldResolver:
|
|
536
|
+
fieldResolver !== null && fieldResolver !== void 0
|
|
537
|
+
? fieldResolver
|
|
538
|
+
: defaultFieldResolver,
|
|
539
|
+
typeResolver:
|
|
540
|
+
typeResolver !== null && typeResolver !== void 0
|
|
541
|
+
? typeResolver
|
|
542
|
+
: defaultTypeResolver,
|
|
543
|
+
subscribeFieldResolver:
|
|
544
|
+
subscribeFieldResolver !== null && subscribeFieldResolver !== void 0
|
|
545
|
+
? subscribeFieldResolver
|
|
546
|
+
: defaultFieldResolver,
|
|
547
|
+
collectedErrors: new CollectedErrors(),
|
|
548
|
+
};
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Implements the "Executing operations" section of the spec.
|
|
552
|
+
*
|
|
553
|
+
* @internal
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
function executeOperation(exeContext, operation, rootValue) {
|
|
557
|
+
const rootType = exeContext.schema.getRootType(operation.operation);
|
|
558
|
+
|
|
559
|
+
if (rootType == null) {
|
|
560
|
+
throw new _GraphQLError.GraphQLError(
|
|
561
|
+
`Schema is not configured to execute ${operation.operation} operation.`,
|
|
562
|
+
{
|
|
563
|
+
nodes: operation,
|
|
564
|
+
},
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
const rootFields = (0, _collectFields.collectFields)(
|
|
569
|
+
exeContext.schema,
|
|
570
|
+
exeContext.fragments,
|
|
571
|
+
exeContext.variableValues,
|
|
572
|
+
rootType,
|
|
573
|
+
operation.selectionSet,
|
|
574
|
+
);
|
|
575
|
+
const path = undefined;
|
|
576
|
+
|
|
577
|
+
switch (operation.operation) {
|
|
578
|
+
case _ast.OperationTypeNode.QUERY:
|
|
579
|
+
return executeFields(exeContext, rootType, rootValue, path, rootFields);
|
|
580
|
+
|
|
581
|
+
case _ast.OperationTypeNode.MUTATION:
|
|
582
|
+
return executeFieldsSerially(
|
|
583
|
+
exeContext,
|
|
584
|
+
rootType,
|
|
585
|
+
rootValue,
|
|
586
|
+
path,
|
|
587
|
+
rootFields,
|
|
588
|
+
);
|
|
589
|
+
|
|
590
|
+
case _ast.OperationTypeNode.SUBSCRIPTION:
|
|
591
|
+
// TODO: deprecate `subscribe` and move all logic here
|
|
592
|
+
// Temporary solution until we finish merging execute and subscribe together
|
|
593
|
+
return executeFields(exeContext, rootType, rootValue, path, rootFields);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Implements the "Executing selection sets" section of the spec
|
|
598
|
+
* for fields that must be executed serially.
|
|
599
|
+
*
|
|
600
|
+
* @internal
|
|
601
|
+
*/
|
|
602
|
+
|
|
603
|
+
function executeFieldsSerially(
|
|
604
|
+
exeContext,
|
|
605
|
+
parentType,
|
|
606
|
+
sourceValue,
|
|
607
|
+
path,
|
|
608
|
+
fields,
|
|
609
|
+
) {
|
|
610
|
+
return (0, _promiseReduce.promiseReduce)(
|
|
611
|
+
fields.entries(),
|
|
612
|
+
(results, [responseName, fieldNodes]) => {
|
|
613
|
+
const fieldPath = (0, _Path.addPath)(path, responseName, parentType.name);
|
|
614
|
+
const result = executeField(
|
|
615
|
+
exeContext,
|
|
616
|
+
parentType,
|
|
617
|
+
sourceValue,
|
|
618
|
+
fieldNodes,
|
|
619
|
+
fieldPath,
|
|
620
|
+
);
|
|
621
|
+
|
|
622
|
+
if (result === undefined) {
|
|
623
|
+
return results;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if ((0, _isPromise.isPromise)(result)) {
|
|
627
|
+
return result.then((resolvedResult) => {
|
|
628
|
+
results[responseName] = resolvedResult;
|
|
629
|
+
return results;
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
results[responseName] = result;
|
|
634
|
+
return results;
|
|
635
|
+
},
|
|
636
|
+
Object.create(null),
|
|
637
|
+
);
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Implements the "Executing selection sets" section of the spec
|
|
641
|
+
* for fields that may be executed in parallel.
|
|
642
|
+
*
|
|
643
|
+
* @internal
|
|
644
|
+
*/
|
|
645
|
+
|
|
646
|
+
function executeFields(exeContext, parentType, sourceValue, path, fields) {
|
|
647
|
+
const results = Object.create(null);
|
|
648
|
+
let containsPromise = false;
|
|
649
|
+
|
|
650
|
+
try {
|
|
651
|
+
for (const [responseName, fieldNodes] of fields.entries()) {
|
|
652
|
+
const fieldPath = (0, _Path.addPath)(path, responseName, parentType.name);
|
|
653
|
+
const result = executeField(
|
|
654
|
+
exeContext,
|
|
655
|
+
parentType,
|
|
656
|
+
sourceValue,
|
|
657
|
+
fieldNodes,
|
|
658
|
+
fieldPath,
|
|
659
|
+
);
|
|
660
|
+
|
|
661
|
+
if (result !== undefined) {
|
|
662
|
+
results[responseName] = result;
|
|
663
|
+
|
|
664
|
+
if ((0, _isPromise.isPromise)(result)) {
|
|
665
|
+
containsPromise = true;
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
} catch (error) {
|
|
670
|
+
if (containsPromise) {
|
|
671
|
+
// Ensure that any promises returned by other fields are handled, as they may also reject.
|
|
672
|
+
return (0, _promiseForObject.promiseForObject)(results).finally(() => {
|
|
673
|
+
throw error;
|
|
674
|
+
});
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
throw error;
|
|
678
|
+
} // If there are no promises, we can just return the object
|
|
679
|
+
|
|
680
|
+
if (!containsPromise) {
|
|
681
|
+
return results;
|
|
682
|
+
} // Otherwise, results is a map from field name to the result of resolving that
|
|
683
|
+
// field, which is possibly a promise. Return a promise that will return this
|
|
684
|
+
// same map, but with any promises replaced with the values they resolved to.
|
|
685
|
+
|
|
686
|
+
return (0, _promiseForObject.promiseForObject)(results);
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Implements the "Executing fields" section of the spec
|
|
690
|
+
* In particular, this function figures out the value that the field returns by
|
|
691
|
+
* calling its resolve function, then calls completeValue to complete promises,
|
|
692
|
+
* serialize scalars, or execute the sub-selection-set for objects.
|
|
693
|
+
*
|
|
694
|
+
* @internal
|
|
695
|
+
*/
|
|
696
|
+
|
|
697
|
+
function executeField(exeContext, parentType, source, fieldNodes, path) {
|
|
698
|
+
var _fieldDef$resolve;
|
|
699
|
+
|
|
700
|
+
const fieldDef = getFieldDef(exeContext.schema, parentType, fieldNodes[0]);
|
|
701
|
+
|
|
702
|
+
if (!fieldDef) {
|
|
703
|
+
return;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
const returnType = fieldDef.type;
|
|
707
|
+
const resolveFn =
|
|
708
|
+
(_fieldDef$resolve = fieldDef.resolve) !== null &&
|
|
709
|
+
_fieldDef$resolve !== void 0
|
|
710
|
+
? _fieldDef$resolve
|
|
711
|
+
: exeContext.fieldResolver;
|
|
712
|
+
const info = buildResolveInfo(
|
|
713
|
+
exeContext,
|
|
714
|
+
fieldDef,
|
|
715
|
+
fieldNodes,
|
|
716
|
+
parentType,
|
|
717
|
+
path,
|
|
718
|
+
); // Get the resolve function, regardless of if its result is normal or abrupt (error).
|
|
719
|
+
|
|
720
|
+
try {
|
|
721
|
+
// Build a JS object of arguments from the field.arguments AST, using the
|
|
722
|
+
// variables scope to fulfill any variable references.
|
|
723
|
+
// TODO: find a way to memoize, in case this field is within a List type.
|
|
724
|
+
const args = (0, _values.getArgumentValues)(
|
|
725
|
+
fieldDef,
|
|
726
|
+
fieldNodes[0],
|
|
727
|
+
exeContext.variableValues,
|
|
728
|
+
); // The resolve function's optional third argument is a context value that
|
|
729
|
+
// is provided to every resolve function within an execution. It is commonly
|
|
730
|
+
// used to represent an authenticated user, or request-specific caches.
|
|
731
|
+
|
|
732
|
+
const contextValue = exeContext.contextValue;
|
|
733
|
+
const result = resolveFn(source, args, contextValue, info);
|
|
734
|
+
let completed;
|
|
735
|
+
|
|
736
|
+
if ((0, _isPromise.isPromise)(result)) {
|
|
737
|
+
completed = result.then((resolved) =>
|
|
738
|
+
completeValue(exeContext, returnType, fieldNodes, info, path, resolved),
|
|
739
|
+
);
|
|
740
|
+
} else {
|
|
741
|
+
completed = completeValue(
|
|
742
|
+
exeContext,
|
|
743
|
+
returnType,
|
|
744
|
+
fieldNodes,
|
|
745
|
+
info,
|
|
746
|
+
path,
|
|
747
|
+
result,
|
|
748
|
+
);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if ((0, _isPromise.isPromise)(completed)) {
|
|
752
|
+
// Note: we don't rely on a `catch` method, but we do expect "thenable"
|
|
753
|
+
// to take a second callback for the error case.
|
|
754
|
+
return completed.then(undefined, (rawError) => {
|
|
755
|
+
const error = (0, _locatedError.locatedError)(
|
|
756
|
+
rawError,
|
|
757
|
+
fieldNodes,
|
|
758
|
+
(0, _Path.pathToArray)(path),
|
|
759
|
+
);
|
|
760
|
+
return handleFieldError(error, returnType, path, exeContext);
|
|
761
|
+
});
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
return completed;
|
|
765
|
+
} catch (rawError) {
|
|
766
|
+
const error = (0, _locatedError.locatedError)(
|
|
767
|
+
rawError,
|
|
768
|
+
fieldNodes,
|
|
769
|
+
(0, _Path.pathToArray)(path),
|
|
770
|
+
);
|
|
771
|
+
return handleFieldError(error, returnType, path, exeContext);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
/** @internal */
|
|
775
|
+
|
|
776
|
+
function buildResolveInfo(exeContext, fieldDef, fieldNodes, parentType, path) {
|
|
777
|
+
// The resolve function's optional fourth argument is a collection of
|
|
778
|
+
// information about the current execution state.
|
|
779
|
+
return {
|
|
780
|
+
fieldName: fieldDef.name,
|
|
781
|
+
fieldNodes,
|
|
782
|
+
returnType: fieldDef.type,
|
|
783
|
+
parentType,
|
|
784
|
+
path,
|
|
785
|
+
schema: exeContext.schema,
|
|
786
|
+
fragments: exeContext.fragments,
|
|
787
|
+
rootValue: exeContext.rootValue,
|
|
788
|
+
operation: exeContext.operation,
|
|
789
|
+
variableValues: exeContext.variableValues,
|
|
790
|
+
};
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
function handleFieldError(error, returnType, path, exeContext) {
|
|
794
|
+
// If the field type is non-nullable, then it is resolved without any
|
|
795
|
+
// protection from errors, however it still properly locates the error.
|
|
796
|
+
if ((0, _definition.isNonNullType)(returnType)) {
|
|
797
|
+
throw error;
|
|
798
|
+
} // Otherwise, error protection is applied, logging the error and resolving
|
|
799
|
+
// a null value for this field if one is encountered.
|
|
800
|
+
|
|
801
|
+
exeContext.collectedErrors.add(error, path);
|
|
802
|
+
return null;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Implements the instructions for completeValue as defined in the
|
|
806
|
+
* "Value Completion" section of the spec.
|
|
807
|
+
*
|
|
808
|
+
* If the field type is Non-Null, then this recursively completes the value
|
|
809
|
+
* for the inner type. It throws a field error if that completion returns null,
|
|
810
|
+
* as per the "Nullability" section of the spec.
|
|
811
|
+
*
|
|
812
|
+
* If the field type is a List, then this recursively completes the value
|
|
813
|
+
* for the inner type on each item in the list.
|
|
814
|
+
*
|
|
815
|
+
* If the field type is a Scalar or Enum, ensures the completed value is a legal
|
|
816
|
+
* value of the type by calling the `serialize` method of GraphQL type
|
|
817
|
+
* definition.
|
|
818
|
+
*
|
|
819
|
+
* If the field is an abstract type, determine the runtime type of the value
|
|
820
|
+
* and then complete based on that type
|
|
821
|
+
*
|
|
822
|
+
* Otherwise, the field type expects a sub-selection set, and will complete the
|
|
823
|
+
* value by executing all sub-selections.
|
|
824
|
+
*
|
|
825
|
+
* @internal
|
|
826
|
+
*/
|
|
827
|
+
|
|
828
|
+
function completeValue(exeContext, returnType, fieldNodes, info, path, result) {
|
|
829
|
+
// If result is an Error, throw a located error.
|
|
830
|
+
if (result instanceof Error) {
|
|
831
|
+
throw result;
|
|
832
|
+
} // If field type is NonNull, complete for inner type, and throw field error
|
|
833
|
+
// if result is null.
|
|
834
|
+
|
|
835
|
+
if ((0, _definition.isNonNullType)(returnType)) {
|
|
836
|
+
const completed = completeValue(
|
|
837
|
+
exeContext,
|
|
838
|
+
returnType.ofType,
|
|
839
|
+
fieldNodes,
|
|
840
|
+
info,
|
|
841
|
+
path,
|
|
842
|
+
result,
|
|
843
|
+
);
|
|
844
|
+
|
|
845
|
+
if (completed === null) {
|
|
846
|
+
throw new Error(
|
|
847
|
+
`Cannot return null for non-nullable field ${info.parentType.name}.${info.fieldName}.`,
|
|
848
|
+
);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
return completed;
|
|
852
|
+
} // If result value is null or undefined then return null.
|
|
853
|
+
|
|
854
|
+
if (result == null) {
|
|
855
|
+
return null;
|
|
856
|
+
} // If field type is List, complete each item in the list with the inner type
|
|
857
|
+
|
|
858
|
+
if ((0, _definition.isListType)(returnType)) {
|
|
859
|
+
return completeListValue(
|
|
860
|
+
exeContext,
|
|
861
|
+
returnType,
|
|
862
|
+
fieldNodes,
|
|
863
|
+
info,
|
|
864
|
+
path,
|
|
865
|
+
result,
|
|
866
|
+
);
|
|
867
|
+
} // If field type is a leaf type, Scalar or Enum, serialize to a valid value,
|
|
868
|
+
// returning null if serialization is not possible.
|
|
869
|
+
|
|
870
|
+
if ((0, _definition.isLeafType)(returnType)) {
|
|
871
|
+
return completeLeafValue(returnType, result);
|
|
872
|
+
} // If field type is an abstract type, Interface or Union, determine the
|
|
873
|
+
// runtime Object type and complete for that type.
|
|
874
|
+
|
|
875
|
+
if ((0, _definition.isAbstractType)(returnType)) {
|
|
876
|
+
return completeAbstractValue(
|
|
877
|
+
exeContext,
|
|
878
|
+
returnType,
|
|
879
|
+
fieldNodes,
|
|
880
|
+
info,
|
|
881
|
+
path,
|
|
882
|
+
result,
|
|
883
|
+
);
|
|
884
|
+
} // If field type is Object, execute and complete all sub-selections.
|
|
885
|
+
|
|
886
|
+
if ((0, _definition.isObjectType)(returnType)) {
|
|
887
|
+
return completeObjectValue(
|
|
888
|
+
exeContext,
|
|
889
|
+
returnType,
|
|
890
|
+
fieldNodes,
|
|
891
|
+
info,
|
|
892
|
+
path,
|
|
893
|
+
result,
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
/* c8 ignore next 6 */
|
|
897
|
+
// Not reachable, all possible output types have been considered.
|
|
898
|
+
|
|
899
|
+
false ||
|
|
900
|
+
(0, _invariant.invariant)(
|
|
901
|
+
false,
|
|
902
|
+
'Cannot complete value of unexpected output type: ' +
|
|
903
|
+
(0, _inspect.inspect)(returnType),
|
|
904
|
+
);
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Complete a list value by completing each item in the list with the
|
|
908
|
+
* inner type
|
|
909
|
+
*
|
|
910
|
+
* @internal
|
|
911
|
+
*/
|
|
912
|
+
|
|
913
|
+
function completeListValue(
|
|
914
|
+
exeContext,
|
|
915
|
+
returnType,
|
|
916
|
+
fieldNodes,
|
|
917
|
+
info,
|
|
918
|
+
path,
|
|
919
|
+
result,
|
|
920
|
+
) {
|
|
921
|
+
if (!(0, _isIterableObject.isIterableObject)(result)) {
|
|
922
|
+
throw new _GraphQLError.GraphQLError(
|
|
923
|
+
`Expected Iterable, but did not find one for field "${info.parentType.name}.${info.fieldName}".`,
|
|
924
|
+
);
|
|
925
|
+
} // This is specified as a simple map, however we're optimizing the path
|
|
926
|
+
// where the list contains no Promises by avoiding creating another Promise.
|
|
927
|
+
|
|
928
|
+
const itemType = returnType.ofType;
|
|
929
|
+
let containsPromise = false;
|
|
930
|
+
const completedResults = Array.from(result, (item, index) => {
|
|
931
|
+
// No need to modify the info object containing the path,
|
|
932
|
+
// since from here on it is not ever accessed by resolver functions.
|
|
933
|
+
const itemPath = (0, _Path.addPath)(path, index, undefined);
|
|
934
|
+
|
|
935
|
+
try {
|
|
936
|
+
let completedItem;
|
|
937
|
+
|
|
938
|
+
if ((0, _isPromise.isPromise)(item)) {
|
|
939
|
+
completedItem = item.then((resolved) =>
|
|
940
|
+
completeValue(
|
|
941
|
+
exeContext,
|
|
942
|
+
itemType,
|
|
943
|
+
fieldNodes,
|
|
944
|
+
info,
|
|
945
|
+
itemPath,
|
|
946
|
+
resolved,
|
|
947
|
+
),
|
|
948
|
+
);
|
|
949
|
+
} else {
|
|
950
|
+
completedItem = completeValue(
|
|
951
|
+
exeContext,
|
|
952
|
+
itemType,
|
|
953
|
+
fieldNodes,
|
|
954
|
+
info,
|
|
955
|
+
itemPath,
|
|
956
|
+
item,
|
|
957
|
+
);
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
if ((0, _isPromise.isPromise)(completedItem)) {
|
|
961
|
+
containsPromise = true; // Note: we don't rely on a `catch` method, but we do expect "thenable"
|
|
962
|
+
// to take a second callback for the error case.
|
|
963
|
+
|
|
964
|
+
return completedItem.then(undefined, (rawError) => {
|
|
965
|
+
const error = (0, _locatedError.locatedError)(
|
|
966
|
+
rawError,
|
|
967
|
+
fieldNodes,
|
|
968
|
+
(0, _Path.pathToArray)(itemPath),
|
|
969
|
+
);
|
|
970
|
+
return handleFieldError(error, itemType, itemPath, exeContext);
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
return completedItem;
|
|
975
|
+
} catch (rawError) {
|
|
976
|
+
const error = (0, _locatedError.locatedError)(
|
|
977
|
+
rawError,
|
|
978
|
+
fieldNodes,
|
|
979
|
+
(0, _Path.pathToArray)(itemPath),
|
|
980
|
+
);
|
|
981
|
+
return handleFieldError(error, itemType, itemPath, exeContext);
|
|
982
|
+
}
|
|
983
|
+
});
|
|
984
|
+
return containsPromise ? Promise.all(completedResults) : completedResults;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Complete a Scalar or Enum by serializing to a valid value, returning
|
|
988
|
+
* null if serialization is not possible.
|
|
989
|
+
*
|
|
990
|
+
* @internal
|
|
991
|
+
*/
|
|
992
|
+
|
|
993
|
+
function completeLeafValue(returnType, result) {
|
|
994
|
+
const serializedResult = returnType.serialize(result);
|
|
995
|
+
|
|
996
|
+
if (serializedResult == null) {
|
|
997
|
+
throw new Error(
|
|
998
|
+
`Expected \`${(0, _inspect.inspect)(returnType)}.serialize(${(0,
|
|
999
|
+
_inspect.inspect)(result)})\` to ` +
|
|
1000
|
+
`return non-nullable value, returned: ${(0, _inspect.inspect)(
|
|
1001
|
+
serializedResult,
|
|
1002
|
+
)}`,
|
|
1003
|
+
);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
return serializedResult;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Complete a value of an abstract type by determining the runtime object type
|
|
1010
|
+
* of that value, then complete the value for that type.
|
|
1011
|
+
*
|
|
1012
|
+
* @internal
|
|
1013
|
+
*/
|
|
1014
|
+
|
|
1015
|
+
function completeAbstractValue(
|
|
1016
|
+
exeContext,
|
|
1017
|
+
returnType,
|
|
1018
|
+
fieldNodes,
|
|
1019
|
+
info,
|
|
1020
|
+
path,
|
|
1021
|
+
result,
|
|
1022
|
+
) {
|
|
1023
|
+
var _returnType$resolveTy;
|
|
1024
|
+
|
|
1025
|
+
const resolveTypeFn =
|
|
1026
|
+
(_returnType$resolveTy = returnType.resolveType) !== null &&
|
|
1027
|
+
_returnType$resolveTy !== void 0
|
|
1028
|
+
? _returnType$resolveTy
|
|
1029
|
+
: exeContext.typeResolver;
|
|
1030
|
+
const contextValue = exeContext.contextValue;
|
|
1031
|
+
const runtimeType = resolveTypeFn(result, contextValue, info, returnType);
|
|
1032
|
+
|
|
1033
|
+
if ((0, _isPromise.isPromise)(runtimeType)) {
|
|
1034
|
+
return runtimeType.then((resolvedRuntimeType) =>
|
|
1035
|
+
completeObjectValue(
|
|
1036
|
+
exeContext,
|
|
1037
|
+
ensureValidRuntimeType(
|
|
1038
|
+
resolvedRuntimeType,
|
|
1039
|
+
exeContext,
|
|
1040
|
+
returnType,
|
|
1041
|
+
fieldNodes,
|
|
1042
|
+
info,
|
|
1043
|
+
result,
|
|
1044
|
+
),
|
|
1045
|
+
fieldNodes,
|
|
1046
|
+
info,
|
|
1047
|
+
path,
|
|
1048
|
+
result,
|
|
1049
|
+
),
|
|
1050
|
+
);
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
return completeObjectValue(
|
|
1054
|
+
exeContext,
|
|
1055
|
+
ensureValidRuntimeType(
|
|
1056
|
+
runtimeType,
|
|
1057
|
+
exeContext,
|
|
1058
|
+
returnType,
|
|
1059
|
+
fieldNodes,
|
|
1060
|
+
info,
|
|
1061
|
+
result,
|
|
1062
|
+
),
|
|
1063
|
+
fieldNodes,
|
|
1064
|
+
info,
|
|
1065
|
+
path,
|
|
1066
|
+
result,
|
|
1067
|
+
);
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
function ensureValidRuntimeType(
|
|
1071
|
+
runtimeTypeName,
|
|
1072
|
+
exeContext,
|
|
1073
|
+
returnType,
|
|
1074
|
+
fieldNodes,
|
|
1075
|
+
info,
|
|
1076
|
+
result,
|
|
1077
|
+
) {
|
|
1078
|
+
if (runtimeTypeName == null) {
|
|
1079
|
+
throw new _GraphQLError.GraphQLError(
|
|
1080
|
+
`Abstract type "${returnType.name}" must resolve to an Object type at runtime for field "${info.parentType.name}.${info.fieldName}". Either the "${returnType.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,
|
|
1081
|
+
fieldNodes,
|
|
1082
|
+
);
|
|
1083
|
+
} // releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType`
|
|
1084
|
+
// TODO: remove in 17.0.0 release
|
|
1085
|
+
|
|
1086
|
+
if ((0, _definition.isObjectType)(runtimeTypeName)) {
|
|
1087
|
+
throw new _GraphQLError.GraphQLError(
|
|
1088
|
+
'Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.',
|
|
1089
|
+
);
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
if (typeof runtimeTypeName !== 'string') {
|
|
1093
|
+
throw new _GraphQLError.GraphQLError(
|
|
1094
|
+
`Abstract type "${returnType.name}" must resolve to an Object type at runtime for field "${info.parentType.name}.${info.fieldName}" with ` +
|
|
1095
|
+
`value ${(0, _inspect.inspect)(result)}, received "${(0,
|
|
1096
|
+
_inspect.inspect)(runtimeTypeName)}".`,
|
|
1097
|
+
);
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
const runtimeType = exeContext.schema.getType(runtimeTypeName);
|
|
1101
|
+
|
|
1102
|
+
if (runtimeType == null) {
|
|
1103
|
+
throw new _GraphQLError.GraphQLError(
|
|
1104
|
+
`Abstract type "${returnType.name}" was resolved to a type "${runtimeTypeName}" that does not exist inside the schema.`,
|
|
1105
|
+
{
|
|
1106
|
+
nodes: fieldNodes,
|
|
1107
|
+
},
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
if (!(0, _definition.isObjectType)(runtimeType)) {
|
|
1112
|
+
throw new _GraphQLError.GraphQLError(
|
|
1113
|
+
`Abstract type "${returnType.name}" was resolved to a non-object type "${runtimeTypeName}".`,
|
|
1114
|
+
{
|
|
1115
|
+
nodes: fieldNodes,
|
|
1116
|
+
},
|
|
1117
|
+
);
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
if (!exeContext.schema.isSubType(returnType, runtimeType)) {
|
|
1121
|
+
throw new _GraphQLError.GraphQLError(
|
|
1122
|
+
`Runtime Object type "${runtimeType.name}" is not a possible type for "${returnType.name}".`,
|
|
1123
|
+
{
|
|
1124
|
+
nodes: fieldNodes,
|
|
1125
|
+
},
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
return runtimeType;
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Complete an Object value by executing all sub-selections.
|
|
1133
|
+
*
|
|
1134
|
+
* @internal
|
|
1135
|
+
*/
|
|
1136
|
+
|
|
1137
|
+
function completeObjectValue(
|
|
1138
|
+
exeContext,
|
|
1139
|
+
returnType,
|
|
1140
|
+
fieldNodes,
|
|
1141
|
+
info,
|
|
1142
|
+
path,
|
|
1143
|
+
result,
|
|
1144
|
+
) {
|
|
1145
|
+
// Collect sub-fields to execute to complete this value.
|
|
1146
|
+
const subFieldNodes = collectSubfields(exeContext, returnType, fieldNodes); // If there is an isTypeOf predicate function, call it with the
|
|
1147
|
+
// current result. If isTypeOf returns false, then raise an error rather
|
|
1148
|
+
// than continuing execution.
|
|
1149
|
+
|
|
1150
|
+
if (returnType.isTypeOf) {
|
|
1151
|
+
const isTypeOf = returnType.isTypeOf(result, exeContext.contextValue, info);
|
|
1152
|
+
|
|
1153
|
+
if ((0, _isPromise.isPromise)(isTypeOf)) {
|
|
1154
|
+
return isTypeOf.then((resolvedIsTypeOf) => {
|
|
1155
|
+
if (!resolvedIsTypeOf) {
|
|
1156
|
+
throw invalidReturnTypeError(returnType, result, fieldNodes);
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
return executeFields(
|
|
1160
|
+
exeContext,
|
|
1161
|
+
returnType,
|
|
1162
|
+
result,
|
|
1163
|
+
path,
|
|
1164
|
+
subFieldNodes,
|
|
1165
|
+
);
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
if (!isTypeOf) {
|
|
1170
|
+
throw invalidReturnTypeError(returnType, result, fieldNodes);
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
return executeFields(exeContext, returnType, result, path, subFieldNodes);
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
function invalidReturnTypeError(returnType, result, fieldNodes) {
|
|
1178
|
+
return new _GraphQLError.GraphQLError(
|
|
1179
|
+
`Expected value of type "${returnType.name}" but got: ${(0,
|
|
1180
|
+
_inspect.inspect)(result)}.`,
|
|
1181
|
+
{
|
|
1182
|
+
nodes: fieldNodes,
|
|
1183
|
+
},
|
|
1184
|
+
);
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* If a resolveType function is not given, then a default resolve behavior is
|
|
1188
|
+
* used which attempts two strategies:
|
|
1189
|
+
*
|
|
1190
|
+
* First, See if the provided value has a `__typename` field defined, if so, use
|
|
1191
|
+
* that value as name of the resolved type.
|
|
1192
|
+
*
|
|
1193
|
+
* Otherwise, test each possible type for the abstract type by calling
|
|
1194
|
+
* isTypeOf for the object being coerced, returning the first type that matches.
|
|
1195
|
+
*/
|
|
1196
|
+
|
|
1197
|
+
const defaultTypeResolver = function (value, contextValue, info, abstractType) {
|
|
1198
|
+
// First, look for `__typename`.
|
|
1199
|
+
if (
|
|
1200
|
+
(0, _isObjectLike.isObjectLike)(value) &&
|
|
1201
|
+
typeof value.__typename === 'string'
|
|
1202
|
+
) {
|
|
1203
|
+
return value.__typename;
|
|
1204
|
+
} // Otherwise, test each possible type.
|
|
1205
|
+
|
|
1206
|
+
const possibleTypes = info.schema.getPossibleTypes(abstractType);
|
|
1207
|
+
const promisedIsTypeOfResults = [];
|
|
1208
|
+
|
|
1209
|
+
for (let i = 0; i < possibleTypes.length; i++) {
|
|
1210
|
+
const type = possibleTypes[i];
|
|
1211
|
+
|
|
1212
|
+
if (type.isTypeOf) {
|
|
1213
|
+
const isTypeOfResult = type.isTypeOf(value, contextValue, info);
|
|
1214
|
+
|
|
1215
|
+
if ((0, _isPromise.isPromise)(isTypeOfResult)) {
|
|
1216
|
+
promisedIsTypeOfResults[i] = isTypeOfResult;
|
|
1217
|
+
} else if (isTypeOfResult) {
|
|
1218
|
+
if (promisedIsTypeOfResults.length) {
|
|
1219
|
+
// Explicitly ignore any promise rejections
|
|
1220
|
+
Promise.allSettled(promisedIsTypeOfResults)
|
|
1221
|
+
/* c8 ignore next 3 */
|
|
1222
|
+
.catch(() => {
|
|
1223
|
+
// Do nothing
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
return type.name;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
if (promisedIsTypeOfResults.length) {
|
|
1233
|
+
return Promise.all(promisedIsTypeOfResults).then((isTypeOfResults) => {
|
|
1234
|
+
for (let i = 0; i < isTypeOfResults.length; i++) {
|
|
1235
|
+
if (isTypeOfResults[i]) {
|
|
1236
|
+
return possibleTypes[i].name;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
/**
|
|
1243
|
+
* If a resolve function is not given, then a default resolve behavior is used
|
|
1244
|
+
* which takes the property of the source object of the same name as the field
|
|
1245
|
+
* and returns it as the result, or if it's a function, returns the result
|
|
1246
|
+
* of calling that function while passing along args and context value.
|
|
1247
|
+
*/
|
|
1248
|
+
|
|
1249
|
+
exports.defaultTypeResolver = defaultTypeResolver;
|
|
1250
|
+
|
|
1251
|
+
const defaultFieldResolver = function (source, args, contextValue, info) {
|
|
1252
|
+
// ensure source is a value for which property access is acceptable.
|
|
1253
|
+
if ((0, _isObjectLike.isObjectLike)(source) || typeof source === 'function') {
|
|
1254
|
+
const property = source[info.fieldName];
|
|
1255
|
+
|
|
1256
|
+
if (typeof property === 'function') {
|
|
1257
|
+
return source[info.fieldName](args, contextValue, info);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
return property;
|
|
1261
|
+
}
|
|
1262
|
+
};
|
|
1263
|
+
/**
|
|
1264
|
+
* This method looks up the field on the given type definition.
|
|
1265
|
+
* It has special casing for the three introspection fields,
|
|
1266
|
+
* __schema, __type and __typename. __typename is special because
|
|
1267
|
+
* it can always be queried as a field, even in situations where no
|
|
1268
|
+
* other fields are allowed, like on a Union. __schema and __type
|
|
1269
|
+
* could get automatically added to the query type, but that would
|
|
1270
|
+
* require mutating type definitions, which would cause issues.
|
|
1271
|
+
*
|
|
1272
|
+
* @internal
|
|
1273
|
+
*/
|
|
1274
|
+
|
|
1275
|
+
exports.defaultFieldResolver = defaultFieldResolver;
|
|
1276
|
+
|
|
1277
|
+
function getFieldDef(schema, parentType, fieldNode) {
|
|
1278
|
+
const fieldName = fieldNode.name.value;
|
|
1279
|
+
|
|
1280
|
+
if (
|
|
1281
|
+
fieldName === _introspection.SchemaMetaFieldDef.name &&
|
|
1282
|
+
schema.getQueryType() === parentType
|
|
1283
|
+
) {
|
|
1284
|
+
return _introspection.SchemaMetaFieldDef;
|
|
1285
|
+
} else if (
|
|
1286
|
+
fieldName === _introspection.TypeMetaFieldDef.name &&
|
|
1287
|
+
schema.getQueryType() === parentType
|
|
1288
|
+
) {
|
|
1289
|
+
return _introspection.TypeMetaFieldDef;
|
|
1290
|
+
} else if (fieldName === _introspection.TypeNameMetaFieldDef.name) {
|
|
1291
|
+
return _introspection.TypeNameMetaFieldDef;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
return parentType.getFields()[fieldName];
|
|
1295
|
+
}
|