@apifuse/provider-sdk 2.2.0-beta.5 → 2.2.0-beta.50
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/AUTHORING.md +537 -33
- package/CHANGELOG.md +201 -1
- package/README.md +83 -22
- package/SUBMISSION.md +2 -2
- package/bin/apifuse-check.ts +165 -11
- package/bin/apifuse-dev.ts +57 -13
- package/bin/apifuse-migrate-operation-declaration.ts +55 -0
- package/bin/apifuse-migrate-shape.ts +202 -0
- package/bin/apifuse-pack-check.ts +22 -2
- package/bin/apifuse-pack-smoke.ts +57 -2
- package/bin/apifuse-pack-types.ts +357 -38
- package/bin/apifuse-perf.ts +14 -13
- package/bin/apifuse-record.ts +709 -72
- package/bin/apifuse-submit-check.ts +2344 -324
- package/bin/apifuse-sync-assets.ts +117 -0
- package/bin/submit-check-delimited-text.ts +50 -0
- package/dist/auth-turn/index.d.ts +3 -3
- package/dist/auth-turn/index.js +1 -1
- package/dist/auth.d.ts +14 -0
- package/dist/auth.js +67 -0
- package/dist/ceremonies/index.d.ts +16 -0
- package/dist/ceremonies/index.js +141 -36
- package/dist/cli/commands.d.ts +1 -1
- package/dist/cli/commands.js +27 -0
- package/dist/cli/create.d.ts +4 -1
- package/dist/cli/create.js +42 -37
- package/dist/cli/migrate-operation-declaration.d.ts +59 -0
- package/dist/cli/migrate-operation-declaration.js +1178 -0
- package/dist/cli/migrate-operation-shape.d.ts +44 -0
- package/dist/cli/migrate-operation-shape.js +113 -0
- package/dist/cli/migrate-provider-shape.d.ts +52 -0
- package/dist/cli/migrate-provider-shape.js +578 -0
- package/dist/cli/prompt-assets.d.ts +80 -0
- package/dist/cli/prompt-assets.js +743 -0
- package/dist/cli/templates/provider/AGENTS.md.tpl +17 -8
- package/dist/cli/templates/provider/Dockerfile.tpl +1 -1
- package/dist/cli/templates/provider/README.md.tpl +5 -5
- package/dist/cli/templates/provider/index.ts.tpl +6 -3
- package/dist/cli/templates/provider/operations/ping.ts.tpl +4 -1
- package/dist/cli/templates/provider/provider.json.tpl +6 -0
- package/dist/config/loader.d.ts +179 -16
- package/dist/config/loader.js +435 -127
- package/dist/contract-serialization.js +4 -8
- package/dist/contract-types.d.ts +12 -5
- package/dist/contract.js +24 -10
- package/dist/declaration-validation.d.ts +33 -0
- package/dist/declaration-validation.js +266 -0
- package/dist/define.d.ts +66 -29
- package/dist/define.js +778 -69
- package/dist/dev.d.ts +3 -0
- package/dist/dev.js +1 -1
- package/dist/engine.d.ts +78 -0
- package/dist/engine.js +133 -0
- package/dist/error-observability.d.ts +7 -0
- package/dist/error-observability.js +61 -0
- package/dist/error-resolution.d.ts +4 -0
- package/dist/error-resolution.js +122 -0
- package/dist/errors.d.ts +33 -0
- package/dist/errors.js +40 -0
- package/dist/fixture-sanitization.d.ts +28 -0
- package/dist/fixture-sanitization.js +227 -0
- package/dist/health-scenario.d.ts +1842 -0
- package/dist/health-scenario.js +624 -0
- package/dist/index.d.ts +21 -10
- package/dist/index.js +12 -7
- package/dist/lint.d.ts +23 -11
- package/dist/lint.js +572 -69
- package/dist/native-address.d.ts +43 -0
- package/dist/native-address.js +281 -0
- package/dist/native-egress-policy.d.ts +31 -0
- package/dist/native-egress-policy.js +288 -0
- package/dist/observability.d.ts +5 -2
- package/dist/observability.js +48 -1
- package/dist/provider.d.ts +10 -2
- package/dist/provider.js +4 -1
- package/dist/runtime/auth-flow.d.ts +5 -1
- package/dist/runtime/auth-flow.js +6 -0
- package/dist/runtime/browser.d.ts +1 -0
- package/dist/runtime/browser.js +492 -49
- package/dist/runtime/cache.d.ts +1 -0
- package/dist/runtime/cache.js +169 -15
- package/dist/runtime/choice-wordlist.d.ts +9 -0
- package/dist/runtime/choice-wordlist.js +138 -0
- package/dist/runtime/choice.d.ts +13 -1
- package/dist/runtime/choice.js +490 -102
- package/dist/runtime/chrome149-header-order.d.ts +58 -0
- package/dist/runtime/chrome149-header-order.js +289 -0
- package/dist/runtime/env.js +12 -0
- package/dist/runtime/executor.d.ts +3 -2
- package/dist/runtime/executor.js +26 -25
- package/dist/runtime/http.d.ts +1 -0
- package/dist/runtime/http.js +515 -53
- package/dist/runtime/insights.js +2 -2
- package/dist/runtime/instrumentation.d.ts +2 -2
- package/dist/runtime/instrumentation.js +366 -8
- package/dist/runtime/native-network-errors.d.ts +33 -0
- package/dist/runtime/native-network-errors.js +69 -0
- package/dist/runtime/native-network.d.ts +96 -0
- package/dist/runtime/native-network.js +1232 -0
- package/dist/runtime/ocr.d.ts +29 -0
- package/dist/runtime/ocr.js +440 -0
- package/dist/runtime/otlp.d.ts +71 -2
- package/dist/runtime/otlp.js +397 -16
- package/dist/runtime/proxy-errors.js +6 -2
- package/dist/runtime/proxy-nodemaven.d.ts +56 -0
- package/dist/runtime/proxy-nodemaven.js +146 -0
- package/dist/runtime/proxy-telemetry.d.ts +80 -1
- package/dist/runtime/proxy-telemetry.js +154 -47
- package/dist/runtime/redirects.d.ts +29 -0
- package/dist/runtime/redirects.js +36 -0
- package/dist/runtime/redis.d.ts +1 -1
- package/dist/runtime/redis.js +4 -2
- package/dist/runtime/request-options.d.ts +68 -1
- package/dist/runtime/request-options.js +548 -0
- package/dist/runtime/resolver-config.d.ts +6 -0
- package/dist/runtime/resolver-config.js +6 -0
- package/dist/runtime/resolver-public.d.ts +1 -0
- package/dist/runtime/resolver-public.js +1 -0
- package/dist/runtime/resolver-shared.d.ts +14 -0
- package/dist/runtime/resolver-shared.js +12 -0
- package/dist/runtime/resolver-vendors/bindings.d.ts +48 -0
- package/dist/runtime/resolver-vendors/bindings.js +40 -0
- package/dist/runtime/resolver-vendors/browser.d.ts +22 -0
- package/dist/runtime/resolver-vendors/browser.js +377 -0
- package/dist/runtime/resolver-vendors/capsolver.d.ts +22 -0
- package/dist/runtime/resolver-vendors/capsolver.js +531 -0
- package/dist/runtime/resolver-vendors/hosts.d.ts +2 -0
- package/dist/runtime/resolver-vendors/hosts.js +33 -0
- package/dist/runtime/resolver-vendors/twocaptcha.d.ts +24 -0
- package/dist/runtime/resolver-vendors/twocaptcha.js +408 -0
- package/dist/runtime/resolver-vendors/types.d.ts +94 -0
- package/dist/runtime/resolver-vendors/types.js +96 -0
- package/dist/runtime/resolver.d.ts +72 -0
- package/dist/runtime/resolver.js +771 -0
- package/dist/runtime/secrets.d.ts +27 -0
- package/dist/runtime/secrets.js +51 -0
- package/dist/runtime/state.d.ts +3 -0
- package/dist/runtime/state.js +277 -71
- package/dist/runtime/stealth-cookies.d.ts +20 -0
- package/dist/runtime/stealth-cookies.js +111 -0
- package/dist/runtime/stealth.d.ts +41 -5
- package/dist/runtime/stealth.js +997 -291
- package/dist/runtime/stt.js +1 -12
- package/dist/runtime/timeout.d.ts +5 -0
- package/dist/runtime/timeout.js +12 -0
- package/dist/runtime/trace-config.d.ts +12 -0
- package/dist/runtime/trace-config.js +62 -0
- package/dist/runtime/trace.d.ts +5 -0
- package/dist/runtime/trace.js +43 -10
- package/dist/serve.d.ts +1 -1
- package/dist/serve.js +1 -1
- package/dist/server/error-observability.d.ts +1 -0
- package/dist/server/error-observability.js +1 -0
- package/dist/server/index.d.ts +5 -2
- package/dist/server/index.js +2 -2
- package/dist/server/self-test-input-tokens.d.ts +2 -1
- package/dist/server/self-test-input-tokens.js +18 -14
- package/dist/server/self-test.d.ts +14 -3
- package/dist/server/self-test.js +129 -58
- package/dist/server/serve-implementation.d.ts +230 -0
- package/dist/server/serve-implementation.js +2265 -0
- package/dist/server/serve.d.ts +1 -70
- package/dist/server/serve.js +1 -1131
- package/dist/server/trace-output.d.ts +6 -0
- package/dist/server/trace-output.js +79 -0
- package/dist/server/types.d.ts +30 -5
- package/dist/server/types.js +13 -1
- package/dist/stateful/errors.d.ts +19 -0
- package/dist/stateful/errors.js +24 -0
- package/dist/stateful/http-provider-event-emitter.d.ts +40 -0
- package/dist/stateful/http-provider-event-emitter.js +237 -0
- package/dist/stateful/http-session-owner-registry.d.ts +44 -0
- package/dist/stateful/http-session-owner-registry.js +210 -0
- package/dist/stateful/index.d.ts +18 -0
- package/dist/stateful/index.js +18 -0
- package/dist/stateful/provider-event-delivery-failures.d.ts +32 -0
- package/dist/stateful/provider-event-delivery-failures.js +43 -0
- package/dist/stateful/provider-event-pipeline-metrics.d.ts +46 -0
- package/dist/stateful/provider-event-pipeline-metrics.js +48 -0
- package/dist/stateful/provider-event-pipeline.d.ts +50 -0
- package/dist/stateful/provider-event-pipeline.js +1 -0
- package/dist/stateful/provider-events.d.ts +101 -0
- package/dist/stateful/provider-events.js +289 -0
- package/dist/stateful/session-key.d.ts +15 -0
- package/dist/stateful/session-key.js +86 -0
- package/dist/stateful/stateful-provider-adapter-context.d.ts +5 -0
- package/dist/stateful/stateful-provider-adapter-context.js +42 -0
- package/dist/stateful/stateful-provider-adapter-metrics.d.ts +15 -0
- package/dist/stateful/stateful-provider-adapter-metrics.js +21 -0
- package/dist/stateful/stateful-provider-adapter.d.ts +98 -0
- package/dist/stateful/stateful-provider-adapter.js +287 -0
- package/dist/stateful/stateful-provider-observability.d.ts +62 -0
- package/dist/stateful/stateful-provider-observability.js +161 -0
- package/dist/stateful/stateful-provider-owner-forwarder.d.ts +41 -0
- package/dist/stateful/stateful-provider-owner-forwarder.js +215 -0
- package/dist/stateful/stateful-provider-runtime-context.d.ts +32 -0
- package/dist/stateful/stateful-provider-runtime-context.js +60 -0
- package/dist/stateful/stateful-provider-runtime-executor.d.ts +34 -0
- package/dist/stateful/stateful-provider-runtime-executor.js +52 -0
- package/dist/stateful/stateful-provider-session-routing.d.ts +67 -0
- package/dist/stateful/stateful-provider-session-routing.js +345 -0
- package/dist/stateful/stateful-provider-session-runtime.d.ts +98 -0
- package/dist/stateful/stateful-provider-session-runtime.js +245 -0
- package/dist/stateful-signing.d.ts +18 -0
- package/dist/stateful-signing.js +27 -0
- package/dist/stealth/profiles.d.ts +9 -4
- package/dist/stealth/profiles.js +160 -211
- package/dist/stream-evidence.d.ts +74 -0
- package/dist/stream-evidence.js +785 -0
- package/dist/stream.js +7 -1
- package/dist/testing/index.d.ts +2 -1
- package/dist/testing/index.js +2 -1
- package/dist/testing/run.d.ts +32 -2
- package/dist/testing/run.js +489 -21
- package/dist/trace-sanitization.d.ts +5 -0
- package/dist/trace-sanitization.js +45 -0
- package/dist/types.d.ts +673 -131
- package/dist/types.js +1 -0
- package/package.json +45 -5
- package/src/auth-turn/index.ts +1 -1
- package/src/auth.ts +118 -0
- package/src/ceremonies/index.ts +189 -46
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/approval-override.ts.txt +6 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/codemod-syntax.ts.txt +3 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/connection-precedence.ts.txt +10 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/docs-conflict.ts.txt +8 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/examples-map.ts.txt +5 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/examples-operation.ts.txt +16 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/factory-map.ts.txt +3 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/hoist-all.ts.txt +31 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/hoisted-const.ts.txt +11 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/imported-spread.ts.txt +11 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/inline-map.ts.txt +11 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/inline-spread-cast-tail.ts.txt +21 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/inline-spread-ekitan.ts.txt +11 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/inline-spread-override.ts.txt +14 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/missing-english-locale.ts.txt +7 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/no-safety.ts.txt +6 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/non-literal.ts.txt +7 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/redundant-approval.ts.txt +6 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/safety-conflict.ts.txt +7 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/stream.ts.txt +7 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/tool-router-spread.ts.txt +15 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/unparseable.ts.txt +4 -0
- package/src/cli/__tests__/fixtures/migrate-operation-declaration/verbatim-template.ts.txt +12 -0
- package/src/cli/commands.ts +33 -0
- package/src/cli/create.ts +50 -37
- package/src/cli/migrate-operation-declaration.ts +1654 -0
- package/src/cli/migrate-operation-shape.ts +184 -0
- package/src/cli/migrate-provider-shape.ts +772 -0
- package/src/cli/prompt-assets.ts +865 -0
- package/src/cli/templates/provider/AGENTS.md.tpl +17 -8
- package/src/cli/templates/provider/Dockerfile.tpl +1 -1
- package/src/cli/templates/provider/README.md.tpl +5 -5
- package/src/cli/templates/provider/index.ts.tpl +6 -3
- package/src/cli/templates/provider/operations/ping.ts.tpl +4 -1
- package/src/cli/templates/provider/provider.json.tpl +6 -0
- package/src/config/loader.ts +690 -163
- package/src/contract-serialization.ts +5 -7
- package/src/contract-types.ts +12 -5
- package/src/contract.ts +24 -10
- package/src/declaration-validation.ts +330 -0
- package/src/define.ts +1048 -131
- package/src/dev.ts +4 -1
- package/src/engine.ts +279 -0
- package/src/error-observability.ts +64 -0
- package/src/error-resolution.ts +127 -0
- package/src/errors.ts +68 -0
- package/src/fixture-sanitization.ts +264 -0
- package/src/health-scenario.ts +875 -0
- package/src/index.ts +220 -13
- package/src/lint.ts +698 -90
- package/src/native-address.ts +340 -0
- package/src/native-egress-policy.ts +358 -0
- package/src/observability.ts +51 -1
- package/src/provider.ts +161 -3
- package/src/runtime/auth-flow.ts +12 -0
- package/src/runtime/browser.ts +661 -63
- package/src/runtime/cache.ts +189 -14
- package/src/runtime/choice-wordlist.ts +145 -0
- package/src/runtime/choice.ts +631 -120
- package/src/runtime/chrome149-header-order.ts +330 -0
- package/src/runtime/env.ts +13 -0
- package/src/runtime/executor.ts +43 -31
- package/src/runtime/http.ts +641 -61
- package/src/runtime/insights.ts +2 -2
- package/src/runtime/instrumentation.ts +520 -15
- package/src/runtime/native-network-errors.ts +99 -0
- package/src/runtime/native-network.ts +1605 -0
- package/src/runtime/ocr.ts +523 -0
- package/src/runtime/otlp.ts +467 -21
- package/src/runtime/proxy-errors.ts +12 -4
- package/src/runtime/proxy-nodemaven.ts +221 -0
- package/src/runtime/proxy-telemetry.ts +244 -75
- package/src/runtime/redirects.ts +66 -0
- package/src/runtime/redis.ts +7 -2
- package/src/runtime/request-options.ts +680 -1
- package/src/runtime/resolver-config.ts +6 -0
- package/src/runtime/resolver-public.ts +23 -0
- package/src/runtime/resolver-shared.ts +33 -0
- package/src/runtime/resolver-vendors/bindings.ts +56 -0
- package/src/runtime/resolver-vendors/browser.ts +533 -0
- package/src/runtime/resolver-vendors/capsolver.ts +707 -0
- package/src/runtime/resolver-vendors/hosts.ts +38 -0
- package/src/runtime/resolver-vendors/twocaptcha.ts +540 -0
- package/src/runtime/resolver-vendors/types.ts +212 -0
- package/src/runtime/resolver.ts +1157 -0
- package/src/runtime/secrets.ts +64 -0
- package/src/runtime/state.ts +394 -77
- package/src/runtime/stealth-cookies.ts +132 -0
- package/src/runtime/stealth.ts +1280 -336
- package/src/runtime/stt.ts +1 -19
- package/src/runtime/timeout.ts +18 -0
- package/src/runtime/trace-config.ts +78 -0
- package/src/runtime/trace.ts +57 -17
- package/src/serve.ts +6 -1
- package/src/server/error-observability.ts +1 -0
- package/src/server/index.ts +34 -2
- package/src/server/self-test-input-tokens.ts +29 -14
- package/src/server/self-test.ts +191 -68
- package/src/server/serve-implementation.ts +3378 -0
- package/src/server/serve.ts +1 -1632
- package/src/server/trace-output.ts +129 -0
- package/src/server/types.ts +13 -1
- package/src/stateful/README.md +146 -0
- package/src/stateful/errors.ts +35 -0
- package/src/stateful/http-provider-event-emitter.ts +314 -0
- package/src/stateful/http-session-owner-registry.ts +306 -0
- package/src/stateful/index.ts +18 -0
- package/src/stateful/provider-event-delivery-failures.ts +80 -0
- package/src/stateful/provider-event-pipeline-metrics.ts +95 -0
- package/src/stateful/provider-event-pipeline.ts +61 -0
- package/src/stateful/provider-events.ts +462 -0
- package/src/stateful/session-key.ts +111 -0
- package/src/stateful/stateful-provider-adapter-context.ts +59 -0
- package/src/stateful/stateful-provider-adapter-metrics.ts +48 -0
- package/src/stateful/stateful-provider-adapter.ts +562 -0
- package/src/stateful/stateful-provider-observability.ts +261 -0
- package/src/stateful/stateful-provider-owner-forwarder.ts +287 -0
- package/src/stateful/stateful-provider-runtime-context.ts +92 -0
- package/src/stateful/stateful-provider-runtime-executor.ts +96 -0
- package/src/stateful/stateful-provider-session-routing.ts +546 -0
- package/src/stateful/stateful-provider-session-runtime.ts +403 -0
- package/src/stateful-signing.ts +46 -0
- package/src/stealth/profiles.ts +202 -231
- package/src/stream-evidence.ts +988 -0
- package/src/stream.ts +8 -1
- package/src/testing/index.ts +10 -1
- package/src/testing/run.ts +658 -15
- package/src/trace-sanitization.ts +63 -0
- package/src/types.ts +788 -174
- package/dist/cli/templates/provider/CLAUDE.md.tpl +0 -1
- package/src/cli/templates/provider/CLAUDE.md.tpl +0 -1
- /package/dist/cli/templates/provider/{skills → .agents/skills}/fixtures-and-recording/SKILL.md.tpl +0 -0
- /package/dist/cli/templates/provider/{skills → .agents/skills}/health-checks-and-fail-closed/SKILL.md.tpl +0 -0
- /package/dist/cli/templates/provider/{skills → .agents/skills}/normalization-standards/SKILL.md.tpl +0 -0
- /package/dist/cli/templates/provider/{skills → .agents/skills}/pagination-and-counts/SKILL.md.tpl +0 -0
- /package/dist/cli/templates/provider/{skills → .agents/skills}/upstream-contract-verification/SKILL.md.tpl +0 -0
- /package/dist/cli/templates/provider/{skills → .agents/skills}/upstream-notes/README.md.tpl +0 -0
- /package/src/cli/templates/provider/{skills → .agents/skills}/fixtures-and-recording/SKILL.md.tpl +0 -0
- /package/src/cli/templates/provider/{skills → .agents/skills}/health-checks-and-fail-closed/SKILL.md.tpl +0 -0
- /package/src/cli/templates/provider/{skills → .agents/skills}/normalization-standards/SKILL.md.tpl +0 -0
- /package/src/cli/templates/provider/{skills → .agents/skills}/pagination-and-counts/SKILL.md.tpl +0 -0
- /package/src/cli/templates/provider/{skills → .agents/skills}/upstream-contract-verification/SKILL.md.tpl +0 -0
- /package/src/cli/templates/provider/{skills → .agents/skills}/upstream-notes/README.md.tpl +0 -0
|
@@ -4,8 +4,8 @@ You are building an APIFuse provider. APIFuse turns messy upstream APIs into
|
|
|
4
4
|
normalized, typed, evidence-backed public APIs. A provider that merely proxies
|
|
5
5
|
the upstream is a failed provider, even if every check passes.
|
|
6
6
|
|
|
7
|
-
This file is the core contract. Detailed procedures live in
|
|
8
|
-
the matching skill BEFORE working on that area (index at the bottom).
|
|
7
|
+
This file is the core contract. Detailed procedures live in `.agents/skills/` —
|
|
8
|
+
load the matching skill BEFORE working on that area (index at the bottom).
|
|
9
9
|
|
|
10
10
|
## Non-negotiable principles
|
|
11
11
|
|
|
@@ -75,13 +75,22 @@ bun run submit-check # structural score; a high score does NOT prove quality
|
|
|
75
75
|
`submit-check` is a structural gate. Every principle above can be violated
|
|
76
76
|
while scoring 95/100 — reviewers and CI audit for exactly these classes.
|
|
77
77
|
|
|
78
|
+
## Managed prompt assets
|
|
79
|
+
|
|
80
|
+
`AGENTS.md` and `.agents/skills/**` are generated by the SDK; `CLAUDE.md`,
|
|
81
|
+
`.claude`, and `.codex` are symlinks onto them so every agent CLI reads the
|
|
82
|
+
same contract. Do not hand-edit these files — regenerate them with
|
|
83
|
+
`bun run sync-assets` (or `bunx apifuse sync-assets .`). `apifuse check` and
|
|
84
|
+
`submit-check` enforce a freshness gate: stale or modified prompt assets
|
|
85
|
+
(tracked in `.apifuse/prompt-assets.json`) block submission until re-synced.
|
|
86
|
+
|
|
78
87
|
## Skill index — load before working on:
|
|
79
88
|
|
|
80
89
|
| Area | Load |
|
|
81
90
|
| --- | --- |
|
|
82
|
-
| Output schemas, mappers, field naming, timestamps, enums |
|
|
83
|
-
| Upstream request params, new endpoint wiring, field mapping |
|
|
84
|
-
| Recording fixtures, writing tests against fixtures |
|
|
85
|
-
| List operations, paging, totals, client-side filtering |
|
|
86
|
-
| healthCheck blocks, error classification, fail-closed guards |
|
|
87
|
-
| Upstream-specific known pitfalls for THIS bounty |
|
|
91
|
+
| Output schemas, mappers, field naming, timestamps, enums | `.agents/skills/normalization-standards/SKILL.md` |
|
|
92
|
+
| Upstream request params, new endpoint wiring, field mapping | `.agents/skills/upstream-contract-verification/SKILL.md` |
|
|
93
|
+
| Recording fixtures, writing tests against fixtures | `.agents/skills/fixtures-and-recording/SKILL.md` |
|
|
94
|
+
| List operations, paging, totals, client-side filtering | `.agents/skills/pagination-and-counts/SKILL.md` |
|
|
95
|
+
| healthCheck blocks, error classification, fail-closed guards | `.agents/skills/health-checks-and-fail-closed/SKILL.md` |
|
|
96
|
+
| Upstream-specific known pitfalls for THIS bounty | `.agents/skills/upstream-notes/` (read every file) |
|
|
@@ -113,11 +113,11 @@ Structured errors return an `error` object with `code`, `message`,
|
|
|
113
113
|
`connection.secrets`, and read them with `ctx.credential`.
|
|
114
114
|
- Auth flow: call `/auth/start`, then `/auth/continue` with the same `flowId`;
|
|
115
115
|
carry returned `contextPatch` values into the next request's `context`.
|
|
116
|
-
- Stealth/browser runtime: keep access-sensitive operations on `ctx.stealth.fetch()` with
|
|
117
|
-
SDK stealth `
|
|
118
|
-
`
|
|
119
|
-
|
|
120
|
-
(`nodriver` is Python-runtime only)
|
|
116
|
+
- Stealth/browser runtime: keep access-sensitive operations on `ctx.stealth.fetch()` with
|
|
117
|
+
structured SDK `stealth: { browser, os }` selection; the TypeScript stealth runtime uses
|
|
118
|
+
`wreq-js` internally and supports Chrome, Firefox, and Safari. Use `ctx.browser` only when
|
|
119
|
+
the provider needs browser execution; TypeScript browser Providers use
|
|
120
|
+
`browser.engine: "playwright-stealth"` (`nodriver` is Python-runtime only). Install local Chromium with
|
|
121
121
|
`bunx playwright install chromium` or set `APIFUSE__CDP_POOL__URL`.
|
|
122
122
|
|
|
123
123
|
## Next steps
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineProvider } from "@apifuse/provider-sdk/provider";
|
|
1
|
+
import { defineProvider, type ProviderContextOf } from "@apifuse/provider-sdk/provider";
|
|
2
2
|
|
|
3
3
|
import { providerMeta } from "./meta";
|
|
4
4
|
import { operations } from "./operations";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const buildProvider = defineProvider({
|
|
7
7
|
id: "{{PROVIDER_ID}}",
|
|
8
8
|
version: "1.0.0",
|
|
9
9
|
runtime: "{{RUNTIME}}"{{BROWSER_BLOCK}},
|
|
@@ -11,5 +11,8 @@ export default defineProvider({
|
|
|
11
11
|
reviewed: "community",
|
|
12
12
|
{{SECRETS_BLOCK}}{{CREDENTIAL_BLOCK}}auth: {{AUTH_BLOCK}},
|
|
13
13
|
meta: providerMeta,
|
|
14
|
-
operations: operations,
|
|
15
14
|
});
|
|
15
|
+
|
|
16
|
+
export type ProviderContext = ProviderContextOf<typeof buildProvider>;
|
|
17
|
+
|
|
18
|
+
export default buildProvider({ operations });
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { defineOperation } from "@apifuse/provider-sdk/provider";
|
|
2
|
+
import type { ProviderContext } from "../index";
|
|
2
3
|
|
|
3
4
|
import { pingInputSchema, pingOutputSchema } from "../schemas/ping";
|
|
4
5
|
|
|
5
|
-
export const pingOperation = defineOperation({
|
|
6
|
+
export const pingOperation = defineOperation<ProviderContext>()({
|
|
7
|
+
connectionMode: "none",
|
|
8
|
+
riskClass: "read",
|
|
6
9
|
descriptionKey: "operations.ping.description",
|
|
7
10
|
input: pingInputSchema,
|
|
8
11
|
output: pingOutputSchema,
|
package/dist/config/loader.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { Redis } from "ioredis";
|
|
1
|
+
import type { Redis } from "ioredis";
|
|
2
2
|
import type { ProviderProxyPolicy, TraceConfig } from "../types.js";
|
|
3
|
+
import { type ProxyProtocol } from "../runtime/proxy-nodemaven.js";
|
|
4
|
+
export type { ProxyProtocol } from "../runtime/proxy-nodemaven.js";
|
|
5
|
+
/** Proxy vendors with SDK-managed resolution. */
|
|
6
|
+
export type ProxyVendorName = "smartproxy" | "nodemaven";
|
|
3
7
|
export declare const SMARTPROXY_APP_KEY_ENV = "APIFUSE__PROXY__SMARTPROXY_APP_KEY";
|
|
4
8
|
export declare const SMARTPROXY_MAX_LIFETIME_MINUTES = 2000;
|
|
5
9
|
export declare const DEFAULT_SMARTPROXY_POOL_SIZE = 20;
|
|
@@ -10,13 +14,6 @@ export declare const DEFAULT_PROXY_LIFETIME_ENV = "APIFUSE__PROXY__DEFAULT_LIFET
|
|
|
10
14
|
export declare const PROVIDER_CACHE_REDIS_URL_ENV = "APIFUSE__PROVIDER__CACHE_REDIS_URL";
|
|
11
15
|
export declare const PROVIDER_STATE_REDIS_URL_ENV = "APIFUSE__PROVIDER__STATE_REDIS_URL";
|
|
12
16
|
export declare const REDIS_URL_ENV = "APIFUSE__REDIS__URL";
|
|
13
|
-
export type ProxyOptions = {
|
|
14
|
-
url: string;
|
|
15
|
-
};
|
|
16
|
-
export type ProxyConfig = Partial<ProxyOptions> & {
|
|
17
|
-
provider?: string;
|
|
18
|
-
apiKey?: string;
|
|
19
|
-
};
|
|
20
17
|
export type BrowserConfig = {
|
|
21
18
|
executablePath?: string;
|
|
22
19
|
headless?: boolean;
|
|
@@ -26,7 +23,6 @@ export type SessionConfig = {
|
|
|
26
23
|
path?: string;
|
|
27
24
|
};
|
|
28
25
|
export type ApiFuseConfig = {
|
|
29
|
-
proxy?: ProxyConfig;
|
|
30
26
|
browser?: BrowserConfig;
|
|
31
27
|
session?: SessionConfig;
|
|
32
28
|
trace?: TraceConfig;
|
|
@@ -37,17 +33,43 @@ export type ProxyResolutionOptions = {
|
|
|
37
33
|
upstream?: {
|
|
38
34
|
proxy?: boolean | ProviderProxyPolicy;
|
|
39
35
|
};
|
|
40
|
-
apifuseConfig?: Pick<ApiFuseConfig, "proxy">;
|
|
41
36
|
proxyPolicy?: ProviderProxyPolicy;
|
|
42
37
|
affinityKey?: string;
|
|
43
38
|
/** Zero-based proxy-pool attempt index used by SDK transports for failover. */
|
|
44
39
|
proxyAttempt?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Tunnelling protocols the calling transport can use. When a resolved
|
|
42
|
+
* protocol is not in this set the resolver fails with
|
|
43
|
+
* `PROXY_PROTOCOL_UNSUPPORTED` instead of silently downgrading. Unset means
|
|
44
|
+
* permissive (both protocols allowed).
|
|
45
|
+
*/
|
|
46
|
+
transportProtocols?: readonly ProxyProtocol[];
|
|
47
|
+
/**
|
|
48
|
+
* Explicit protocol override. Internal — for the verification harness and
|
|
49
|
+
* tests, or an advanced caller. Normal callers omit it and each vendor uses
|
|
50
|
+
* its own benchmarked default protocol (see VENDOR_DEFAULT_PROTOCOL). Not an
|
|
51
|
+
* env var and not a provider-policy field.
|
|
52
|
+
*/
|
|
53
|
+
protocol?: ProxyProtocol;
|
|
54
|
+
/**
|
|
55
|
+
* Gateway pool "refresh" generation. Bumped by transports on pool refresh to
|
|
56
|
+
* derive a fresh gateway session set (ignored by allocation-style vendors,
|
|
57
|
+
* whose refresh is driven by cache invalidation).
|
|
58
|
+
*/
|
|
59
|
+
proxyRefreshEpoch?: number;
|
|
45
60
|
telemetry?: ProxyTelemetrySink;
|
|
61
|
+
/** Engine-owned credential snapshot. Provider code must never populate this field. */
|
|
62
|
+
engineCredentials?: Readonly<Record<string, string>>;
|
|
46
63
|
};
|
|
47
64
|
export type ProxyCacheStatus = "memory_hit" | "redis_hit" | "allocator" | "soft_stale_refresh" | "lock_wait" | "redis_error" | "redis_corrupt" | "disabled";
|
|
48
65
|
export type SmartproxyAllocatorBodyClass = "network_error" | "http_error" | "empty" | "json_without_proxies" | "text_without_proxies" | "usable_proxy_endpoints";
|
|
66
|
+
export type ProxyUserAgentSource = "declared" | "defaulted";
|
|
49
67
|
export type ProxyResolutionTelemetryEvent = {
|
|
50
|
-
provider:
|
|
68
|
+
provider: ProxyVendorName;
|
|
69
|
+
/** Defaults to `"ok"` when omitted. */
|
|
70
|
+
outcome?: "ok" | "error";
|
|
71
|
+
userAgentSource?: ProxyUserAgentSource;
|
|
72
|
+
protocol?: ProxyProtocol;
|
|
51
73
|
cacheStatus: ProxyCacheStatus;
|
|
52
74
|
cacheHit: boolean;
|
|
53
75
|
resolutionMs: number;
|
|
@@ -64,7 +86,7 @@ export type ProxyResolutionTelemetryEvent = {
|
|
|
64
86
|
refreshes?: number;
|
|
65
87
|
};
|
|
66
88
|
export type ProxyAttemptTelemetryEvent = {
|
|
67
|
-
provider:
|
|
89
|
+
provider: ProxyVendorName;
|
|
68
90
|
attempt: number;
|
|
69
91
|
poolIndex?: number;
|
|
70
92
|
proxyHash?: string;
|
|
@@ -73,22 +95,43 @@ export type ProxyAttemptTelemetryEvent = {
|
|
|
73
95
|
status?: number;
|
|
74
96
|
durationMs?: number;
|
|
75
97
|
};
|
|
98
|
+
export type ProxyVendorFailoverTelemetryEvent = {
|
|
99
|
+
/** Vendor that failed or was skipped. */
|
|
100
|
+
vendor: ProxyVendorName;
|
|
101
|
+
/** Vendor tried next, or undefined when the chain is exhausted. */
|
|
102
|
+
nextVendor?: ProxyVendorName;
|
|
103
|
+
phase: "resolution" | "transport";
|
|
104
|
+
reason: "no_credentials" | "allocation_failed" | "pool_exhausted" | "protocol_unsupported";
|
|
105
|
+
attempt?: number;
|
|
106
|
+
};
|
|
76
107
|
export type ProxyTelemetrySink = {
|
|
77
108
|
recordProxyResolution(event: ProxyResolutionTelemetryEvent): void;
|
|
78
109
|
recordProxyAttempt?(event: ProxyAttemptTelemetryEvent): void;
|
|
110
|
+
recordProxyVendorFailover?(event: ProxyVendorFailoverTelemetryEvent): void;
|
|
79
111
|
};
|
|
112
|
+
export type ProxyResolutionSource = "explicit" | "env" | "config" | "smartproxy-allocator" | "nodemaven-gateway";
|
|
80
113
|
export type ResolvedProxyConfig = {
|
|
81
114
|
shouldWarn: boolean;
|
|
82
115
|
url?: string;
|
|
83
|
-
|
|
116
|
+
/** SDK-native vendor that supplied the URL, when applicable. */
|
|
117
|
+
vendor?: ProxyVendorName;
|
|
118
|
+
source?: ProxyResolutionSource;
|
|
119
|
+
protocol?: ProxyProtocol;
|
|
84
120
|
diagnostics?: Record<string, string | number | boolean>;
|
|
85
121
|
};
|
|
122
|
+
export type ProxyResolutionErrorCode = "PROXY_REQUIRED" | "PROXY_ALLOCATION_FAILED" | "PROXY_PROTOCOL_UNSUPPORTED";
|
|
86
123
|
export declare class ProxyResolutionError extends Error {
|
|
87
|
-
readonly code:
|
|
124
|
+
readonly code: ProxyResolutionErrorCode;
|
|
88
125
|
readonly telemetry?: ProxyResolutionTelemetryEvent;
|
|
89
|
-
|
|
126
|
+
readonly vendor?: ProxyVendorName;
|
|
127
|
+
readonly vendorChain?: ProxyVendorName[];
|
|
128
|
+
readonly protocol?: ProxyProtocol;
|
|
129
|
+
constructor(code: ProxyResolutionErrorCode, message: string, options?: {
|
|
90
130
|
cause?: unknown;
|
|
91
131
|
telemetry?: ProxyResolutionTelemetryEvent;
|
|
132
|
+
vendor?: ProxyVendorName;
|
|
133
|
+
vendorChain?: ProxyVendorName[];
|
|
134
|
+
protocol?: ProxyProtocol;
|
|
92
135
|
});
|
|
93
136
|
}
|
|
94
137
|
type ProxyRedisClient = Pick<Redis, "connect" | "del" | "eval" | "get" | "on" | "pttl" | "set" | "status">;
|
|
@@ -99,9 +142,129 @@ export declare function __setProxyRedisForTests(redis: ProxyRedisClient | undefi
|
|
|
99
142
|
export declare function __setSmartproxyAllocatorDeadlineMsForTests(deadlineMs: number | undefined): void;
|
|
100
143
|
export declare function resolveProxyConfig(options?: ProxyResolutionOptions): ResolvedProxyConfig;
|
|
101
144
|
export declare function resolveProxyConfigAsync(options?: ProxyResolutionOptions): Promise<ResolvedProxyConfig>;
|
|
145
|
+
/**
|
|
146
|
+
* Resolve the proxy URL for a provider-owned consumer such as a CAPTCHA solver.
|
|
147
|
+
* Vendor allocation and failover remain owned by the SDK.
|
|
148
|
+
*/
|
|
149
|
+
export declare function resolveProxy(options?: ProxyResolutionOptions): Promise<ResolvedProxyConfig>;
|
|
150
|
+
/**
|
|
151
|
+
* Each vendor's default egress protocol, chosen from live KR benchmarks. HTTP
|
|
152
|
+
* CONNECT wins for nodemaven (socks5 adds ~500ms through the gateway) and ties
|
|
153
|
+
* for smartproxy, and is the only protocol ctx.http (Bun native fetch) supports.
|
|
154
|
+
* Override per call via ProxyResolutionOptions.protocol (harness/tests).
|
|
155
|
+
*/
|
|
156
|
+
export declare const VENDOR_DEFAULT_PROTOCOL: Readonly<Record<ProxyVendorName, ProxyProtocol>>;
|
|
157
|
+
/**
|
|
158
|
+
* Guard the No-MITM invariant: a resolved proxy URL must use a tunnelling scheme
|
|
159
|
+
* (http CONNECT or socks5) so the client TLS handshake reaches the origin
|
|
160
|
+
* end-to-end. Anything else would intercept TLS and break fingerprinting.
|
|
161
|
+
*/
|
|
162
|
+
export declare function assertTunnelingScheme(url: string): void;
|
|
163
|
+
export type ProxyVendorResolutionContext = {
|
|
164
|
+
readonly protocol: ProxyProtocol;
|
|
165
|
+
readonly poolIndex: number;
|
|
166
|
+
readonly refreshEpoch: number;
|
|
167
|
+
/** Explicit vendor credentials. Omit only on the legacy ambient-env path. */
|
|
168
|
+
readonly credentials?: Readonly<Record<string, string>>;
|
|
169
|
+
/** Disable non-policy env defaults for deterministic injected adapters. */
|
|
170
|
+
readonly ambientDefaults?: boolean;
|
|
171
|
+
/** Disable env-discovered Redis sharing for deterministic injected adapters. */
|
|
172
|
+
readonly sharedCache?: boolean;
|
|
173
|
+
};
|
|
174
|
+
export declare function resolveWithVendor(vendor: ProxyVendorName, policy: ProviderProxyPolicy, options: ProxyResolutionOptions, context: ProxyVendorResolutionContext): Promise<ResolvedProxyConfig>;
|
|
175
|
+
/**
|
|
176
|
+
* Ordered list of SDK-native proxy vendors declared by the policy. `providers`
|
|
177
|
+
* takes precedence over the legacy singular `provider`; the platform default
|
|
178
|
+
* env is the final fallback. Non-registry names (decodo/custom) are dropped so
|
|
179
|
+
* an all-deprecated chain has no managed adapter.
|
|
180
|
+
*/
|
|
181
|
+
export declare function resolveVendorChain(policy: ProviderProxyPolicy): ProxyVendorName[];
|
|
182
|
+
/**
|
|
183
|
+
* Total attempt span across a policy's vendor chain — the sum of each vendor's
|
|
184
|
+
* pool size. Transports use this so successive attempts rotate a vendor's pool
|
|
185
|
+
* and then fail over to the next vendor via the flat attempt index. With one
|
|
186
|
+
* vendor this equals that vendor's pool size (today's behaviour).
|
|
187
|
+
*/
|
|
188
|
+
export declare function resolvePolicyProxyPoolSpan(policy: ProviderProxyPolicy): number;
|
|
189
|
+
/**
|
|
190
|
+
* Absolute upper bound on a chain's attempt span — the sum of each vendor's
|
|
191
|
+
* *maximum* pool size. Unlike `resolvePolicyProxyPoolSpan` (the configured
|
|
192
|
+
* span), this backstop is independent of `session.poolSize`, so it never
|
|
193
|
+
* truncates a legitimately large pool below the point where the flat attempt
|
|
194
|
+
* index would cross into the next vendor (e.g. a 50-slot NodeMaven pool).
|
|
195
|
+
*/
|
|
196
|
+
export declare function maxPolicyProxyPoolSpan(policy: ProviderProxyPolicy): number;
|
|
197
|
+
/**
|
|
198
|
+
* Transport-retry attempt cap for a policy-managed request. A transport failure
|
|
199
|
+
* rotates the flat attempt index onto the *next* endpoint (and, once the index
|
|
200
|
+
* passes the primary vendor's pool span, the *next vendor*), so the cap must be
|
|
201
|
+
* the chain's full pool span for failover to reach the fallback vendor — the
|
|
202
|
+
* per-endpoint retry budget (default 3) never gets there.
|
|
203
|
+
*
|
|
204
|
+
* The span only widens beyond the caller's retry budget when ALL hold:
|
|
205
|
+
* - the request is policy-allocator managed (not a caller-supplied proxy URL);
|
|
206
|
+
* - the caller did NOT pin an explicit retry policy — `HttpRetryOptions.attempts`
|
|
207
|
+
* is the documented total-attempt ceiling and must be honoured verbatim;
|
|
208
|
+
* - the method is safe/idempotent — an unsafe request must never be duplicated
|
|
209
|
+
* across the pool even if some framework default would allow it;
|
|
210
|
+
* - the policy resolves a non-empty *registry* vendor chain (smartproxy /
|
|
211
|
+
* nodemaven). Deprecated vendors (custom / decodo) resolve no managed pool,
|
|
212
|
+
* so there is no possible endpoint crossover — they keep the retry budget.
|
|
213
|
+
*
|
|
214
|
+
* The widened cap is bounded by the chain's true maximum span (sum of each
|
|
215
|
+
* vendor's max pool size), so a large NodeMaven pool (≤50) stays reachable and
|
|
216
|
+
* a pathological chain can never spin unbounded.
|
|
217
|
+
*/
|
|
218
|
+
/**
|
|
219
|
+
* True when a policy request is in *implicit chain-rotation* mode: successive
|
|
220
|
+
* transport attempts rotate the flat index across the concatenated vendor pool
|
|
221
|
+
* spans (and, past the primary vendor's span, into the fallback vendor). This is
|
|
222
|
+
* the ONLY mode in which the transport loop widens its attempt cap AND
|
|
223
|
+
* de-duplicates repeated endpoints — the two behaviours must share one predicate
|
|
224
|
+
* so they never diverge. It holds when ALL of the widening conditions hold:
|
|
225
|
+
* - the request is policy-allocator managed (not a caller-supplied proxy URL);
|
|
226
|
+
* - the caller did NOT pin an explicit retry policy — its `attempts` ceiling is
|
|
227
|
+
* the documented contract and must be honoured verbatim against whatever
|
|
228
|
+
* endpoint each attempt resolves (even a repeated one), so no de-duplication;
|
|
229
|
+
* - the method is safe/idempotent — an unsafe request is never duplicated;
|
|
230
|
+
* - the policy resolves a non-empty registry vendor chain (smartproxy /
|
|
231
|
+
* nodemaven). Deprecated vendors (custom / decodo) resolve no managed
|
|
232
|
+
* endpoint, so there is nothing to rotate or de-duplicate.
|
|
233
|
+
*/
|
|
234
|
+
export declare function policyRotatesTransportVendorChain(input: {
|
|
235
|
+
policy: ProviderProxyPolicy | undefined;
|
|
236
|
+
usesPolicyAllocator: boolean;
|
|
237
|
+
explicitRetry: boolean;
|
|
238
|
+
method: string;
|
|
239
|
+
}): boolean;
|
|
240
|
+
export declare function resolvePolicyTransportAttemptCap(input: {
|
|
241
|
+
policy: ProviderProxyPolicy | undefined;
|
|
242
|
+
usesPolicyAllocator: boolean;
|
|
243
|
+
retryAttempts: number;
|
|
244
|
+
explicitRetry: boolean;
|
|
245
|
+
method: string;
|
|
246
|
+
}): number;
|
|
247
|
+
/**
|
|
248
|
+
* A registry vendor chain (smartproxy/nodemaven) resolves a potentially
|
|
249
|
+
* *different* endpoint per flat attempt index, so a transport retry should
|
|
250
|
+
* advance across endpoints and de-duplicate once the chain stops yielding new
|
|
251
|
+
* ones. Deprecated custom/decodo policies have an empty registry chain and no
|
|
252
|
+
* managed endpoint, so the transport loop has nothing to rotate or de-duplicate.
|
|
253
|
+
*/
|
|
254
|
+
export declare function policyResolvesRegistryVendorChain(policy: ProviderProxyPolicy | undefined): boolean;
|
|
255
|
+
/** Map a resolved proxy source label to the vendor that served it. */
|
|
256
|
+
export declare function vendorFromResolvedSource(source: ResolvedProxyConfig["source"]): ProxyVendorName | undefined;
|
|
257
|
+
/**
|
|
258
|
+
* Map a flat attempt index into (vendorIndex, poolIndex) by concatenating each
|
|
259
|
+
* vendor's pool space in chain order. With a single vendor this reduces to
|
|
260
|
+
* `attempt % poolSize`, preserving today's behaviour exactly.
|
|
261
|
+
*/
|
|
262
|
+
export declare function mapFlatAttempt(flat: number, sizes: readonly number[]): {
|
|
263
|
+
vendorIndex: number;
|
|
264
|
+
poolIndex: number;
|
|
265
|
+
};
|
|
102
266
|
export declare function clearProxyResolutionCache(): void;
|
|
103
267
|
export declare function invalidateProxyResolutionCache(options?: ProxyResolutionOptions): boolean;
|
|
104
268
|
export declare function invalidateProxyResolutionCacheAsync(options?: ProxyResolutionOptions): Promise<boolean>;
|
|
105
269
|
export declare function defineConfig(config: ApiFuseConfig): ApiFuseConfig;
|
|
106
270
|
export declare function loadApiFuseConfig(dir?: string): Promise<ApiFuseConfig>;
|
|
107
|
-
export {};
|