@yanlinglabs/winter-provider-runtime 0.0.2
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/LICENSE +21 -0
- package/NOTICE +41 -0
- package/README.md +109 -0
- package/dist/adapters/anthropic/console-oauth.d.ts +101 -0
- package/dist/adapters/anthropic/index.d.ts +4 -0
- package/dist/adapters/anthropic/messages.d.ts +76 -0
- package/dist/adapters/bedrock/converse.d.ts +143 -0
- package/dist/adapters/bedrock/crc32.d.ts +9 -0
- package/dist/adapters/bedrock/credentials.d.ts +32 -0
- package/dist/adapters/bedrock/eventstream.d.ts +65 -0
- package/dist/adapters/bedrock/index.d.ts +8 -0
- package/dist/adapters/bedrock/sigv4.d.ts +119 -0
- package/dist/adapters/bedrock/testing.d.ts +46 -0
- package/dist/adapters/content-blocks.d.ts +7 -0
- package/dist/adapters/google/adc.d.ts +35 -0
- package/dist/adapters/google/generate-content.d.ts +136 -0
- package/dist/adapters/google/index.d.ts +8 -0
- package/dist/adapters/google/jwt-rs256.d.ts +36 -0
- package/dist/adapters/google/vertex.d.ts +15 -0
- package/dist/adapters/index.d.ts +34 -0
- package/dist/adapters/oauth/device-code.d.ts +32 -0
- package/dist/adapters/oauth/refresh.d.ts +40 -0
- package/dist/adapters/openai/azure.d.ts +38 -0
- package/dist/adapters/openai/chat-completions.d.ts +86 -0
- package/dist/adapters/openai/codex-config.d.ts +42 -0
- package/dist/adapters/openai/codex-oauth.d.ts +47 -0
- package/dist/adapters/openai/index.d.ts +20 -0
- package/dist/adapters/openai/local.d.ts +16 -0
- package/dist/adapters/openai/pkce.d.ts +111 -0
- package/dist/adapters/openai/quota.d.ts +99 -0
- package/dist/adapters/openai/responses.d.ts +142 -0
- package/dist/adapters/openai/shared.d.ts +359 -0
- package/dist/adapters/openai/testing.d.ts +59 -0
- package/dist/adapters/openai/xai-derived-shapes.d.ts +67 -0
- package/dist/adapters/openai/xai-oauth.d.ts +102 -0
- package/dist/adapters/openai/xai-oauth.testing.d.ts +62 -0
- package/dist/adapters/privileged-headers.d.ts +51 -0
- package/dist/adapters/refusals.d.ts +10 -0
- package/dist/address-classifier.d.ts +17 -0
- package/dist/bun-required.d.ts +54 -0
- package/dist/continuity/decoration.d.ts +89 -0
- package/dist/continuity/domains.d.ts +92 -0
- package/dist/continuity/fixtures.d.ts +44 -0
- package/dist/continuity/handoff.d.ts +94 -0
- package/dist/continuity/index.d.ts +10 -0
- package/dist/continuity/renderer.d.ts +111 -0
- package/dist/continuity/warnings.d.ts +46 -0
- package/dist/credentials/env.d.ts +6 -0
- package/dist/credentials/file.d.ts +21 -0
- package/dist/credentials/memory.d.ts +8 -0
- package/dist/credentials/types.d.ts +38 -0
- package/dist/discovery.d.ts +15 -0
- package/dist/endpoint-policy.d.ts +127 -0
- package/dist/errors.d.ts +68 -0
- package/dist/http.d.ts +29 -0
- package/dist/identity.d.ts +62 -0
- package/dist/index-5z94gxhk.js +43790 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +3194 -0
- package/dist/registry.d.ts +136 -0
- package/dist/retry.d.ts +38 -0
- package/dist/sse.d.ts +12 -0
- package/dist/testing.d.ts +19 -0
- package/dist/testing.js +432 -0
- package/dist/types.d.ts +376 -0
- package/package.json +49 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type * from "./types.js";
|
|
2
|
+
export { classifyAddress, isDisallowedAddress, isLocalAddressClass } from "./address-classifier.js";
|
|
3
|
+
export type { AddressClass } from "./address-classifier.js";
|
|
4
|
+
export { CredentialResolutionError, createCompositeCredentialStore, redactMaterial, redactRef, } from "./credentials/types.js";
|
|
5
|
+
export type { CredentialResolutionCode } from "./credentials/types.js";
|
|
6
|
+
export { createMemoryCredentialStore } from "./credentials/memory.js";
|
|
7
|
+
export type { MemoryCredentialStore } from "./credentials/memory.js";
|
|
8
|
+
export { createEnvCredentialStore } from "./credentials/env.js";
|
|
9
|
+
export type { EnvCredentialStoreOptions } from "./credentials/env.js";
|
|
10
|
+
export { createFileCredentialStore } from "./credentials/file.js";
|
|
11
|
+
export type { FileCredentialStoreOptions } from "./credentials/file.js";
|
|
12
|
+
export { CREDENTIAL_HEADER_NAMES, applyPrivilegedHeaders, connectionEndpointOptions, createEndpointPolicy, evaluateEndpoint, stripCredentialHeaders } from "./endpoint-policy.js";
|
|
13
|
+
export type { EndpointEvaluation, EndpointEvaluationOptions, EndpointPolicy } from "./endpoint-policy.js";
|
|
14
|
+
export { ProviderStallError, isProviderError, normalizeHttpError, redactCredentialMaterial, normalizeThrown, parseProviderErrorCode, parseRetryAfterMs, toSdkAssistantMessageError, } from "./errors.js";
|
|
15
|
+
export { DEFAULT_MAX_RETRIES, RETRY_AFTER_HONOUR_CEILING_MS, RETRY_BACKOFF_BASE_MS, RETRY_BACKOFF_CAP_MS, createRetryPolicy, withRetry, } from "./retry.js";
|
|
16
|
+
export type { RetryPolicy, RetryPolicyOptions } from "./retry.js";
|
|
17
|
+
export { DEFAULT_MAX_REDIRECTS, ProviderBodyLimitError, ProviderRequestError, boundedFetch } from "./http.js";
|
|
18
|
+
export type { BoundedFetchInit } from "./http.js";
|
|
19
|
+
export { winterUserAgent } from "./identity.js";
|
|
20
|
+
export { renderIdentityHeaders } from "./identity.js";
|
|
21
|
+
export { setWinterIdentity, activeWinterIdentity } from "./identity.js";
|
|
22
|
+
export type { WinterIdentity } from "./identity.js";
|
|
23
|
+
export type { IdentityRenderContext } from "./identity.js";
|
|
24
|
+
export { refreshOauthMaterial } from "./adapters/oauth/refresh.js";
|
|
25
|
+
export type { KeychainRef, OauthMaterial, RefreshOauthMaterialInput } from "./adapters/oauth/refresh.js";
|
|
26
|
+
export { runDeviceCodeFlow } from "./adapters/oauth/device-code.js";
|
|
27
|
+
export type { DeviceCodeConfig } from "./adapters/oauth/device-code.js";
|
|
28
|
+
export { BunRequiredError, hasBunRuntime, requireBunRuntime } from "./bun-required.js";
|
|
29
|
+
export { CONSOLE_OAUTH, OAUTH_REFRESH_WINDOW_MS, anthropicCredentialRef, startAnthropicConsoleLogin } from "./adapters/anthropic/index.js";
|
|
30
|
+
export type { AnthropicConsoleLoginOptions, AnthropicConsoleLoginResult } from "./adapters/anthropic/index.js";
|
|
31
|
+
export { parseSse } from "./sse.js";
|
|
32
|
+
export type { SseEvent, SseOptions } from "./sse.js";
|
|
33
|
+
export { WinterProviderResolutionError, createRegistry, estimateCostUsd } from "./registry.js";
|
|
34
|
+
export type { ModelInfo, ProviderRegistry, RegistryListing, ResolutionErrorCode, ResolveRequest, ResolvedModel, UsageForCost } from "./registry.js";
|
|
35
|
+
export { createDiscoveryCache, discoverModels } from "./discovery.js";
|
|
36
|
+
export type { DiscoveryCache } from "./discovery.js";
|
|
37
|
+
export * from "./adapters/index.js";
|
|
38
|
+
export { RECOVERED_REASONING_TAG, MIN_DECORATION_BODY_CHARS, buildDecoration, decorationOverhead, doorFor, escapeAttribute, escapeInline, neutralizeDelimiters, trimToBudget, createEndpointResolver, endpointFromOrigin, readableStateOf, sameDomain, sameFamily, shouldRequestSummary, summaryRequestOf, applyDecorationToContent, createHistoryRenderer, classifySwitch, INSTRUCTION_FILE_BASENAMES, PRIOR_MODEL_HANDOFF_TAG, buildPortableHandoff, handoffDecoration, } from "./continuity/index.js";
|
|
39
|
+
export type { Decoration, DecorationDoor, DecorationInput, DecorationSource, ContinuityEndpoint, DomainFacts, ReadableState, ContinuationChainLike, ContinuationLinkLike, HistoryRendererOptions, HistoryTarget, MaterialKind, RenderReport, RenderedDecoration, WinterHistoryRenderer, LossClass, SwitchClassification, SwitchFacts, HandoffToolFact, PortableHandoff, PortableHandoffOptions, PortableHandoffSections, } from "./continuity/index.js";
|