@sayknow-cli/ai 0.4.2 → 0.4.4
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/dist/types/api-registry.d.ts +30 -0
- package/dist/types/auth-broker/client.d.ts +67 -0
- package/dist/types/auth-broker/index.d.ts +5 -0
- package/dist/types/auth-broker/refresher.d.ts +25 -0
- package/dist/types/auth-broker/remote-store.d.ts +99 -0
- package/dist/types/auth-broker/server.d.ts +32 -0
- package/dist/types/auth-broker/types.d.ts +110 -0
- package/dist/types/auth-broker/wire-schemas.d.ts +443 -0
- package/dist/types/auth-gateway/http.d.ts +40 -0
- package/dist/types/auth-gateway/index.d.ts +3 -0
- package/dist/types/auth-gateway/server.d.ts +36 -0
- package/dist/types/auth-gateway/types.d.ts +115 -0
- package/dist/types/auth-storage.d.ts +699 -0
- package/dist/types/cli.d.ts +2 -0
- package/dist/types/context-cap-policy.d.ts +10 -0
- package/dist/types/index.d.ts +53 -0
- package/dist/types/model-cache.d.ts +19 -0
- package/dist/types/model-manager.d.ts +64 -0
- package/dist/types/model-retirements.d.ts +6 -0
- package/dist/types/model-thinking.d.ts +74 -0
- package/dist/types/models.d.ts +21 -0
- package/dist/types/provider-details.d.ts +24 -0
- package/dist/types/provider-models/bundled-references.d.ts +4 -0
- package/dist/types/provider-models/descriptors.d.ts +48 -0
- package/dist/types/provider-models/google.d.ts +20 -0
- package/dist/types/provider-models/index.d.ts +5 -0
- package/dist/types/provider-models/ollama.d.ts +7 -0
- package/dist/types/provider-models/openai-compat.d.ts +256 -0
- package/dist/types/provider-models/special.d.ts +19 -0
- package/dist/types/providers/amazon-bedrock.d.ts +60 -0
- package/dist/types/providers/anthropic-messages-server-schema.d.ts +450 -0
- package/dist/types/providers/anthropic-messages-server.d.ts +17 -0
- package/dist/types/providers/anthropic.d.ts +209 -0
- package/dist/types/providers/aws-credential-config.d.ts +19 -0
- package/dist/types/providers/aws-credentials.d.ts +43 -0
- package/dist/types/providers/aws-eventstream.d.ts +38 -0
- package/dist/types/providers/aws-sigv4.d.ts +55 -0
- package/dist/types/providers/azure-openai-responses.d.ts +15 -0
- package/dist/types/providers/composer-discipline.d.ts +26 -0
- package/dist/types/providers/cursor/client-version.d.ts +10 -0
- package/dist/types/providers/cursor/gen/agent_pb.d.ts +13022 -0
- package/dist/types/providers/cursor.d.ts +45 -0
- package/dist/types/providers/error-message.d.ts +27 -0
- package/dist/types/providers/github-copilot-headers.d.ts +40 -0
- package/dist/types/providers/gitlab-duo.d.ts +27 -0
- package/dist/types/providers/google-auth.d.ts +24 -0
- package/dist/types/providers/google-gemini-cli.d.ts +75 -0
- package/dist/types/providers/google-gemini-headers.d.ts +43 -0
- package/dist/types/providers/google-shared.d.ts +179 -0
- package/dist/types/providers/google-types.d.ts +138 -0
- package/dist/types/providers/google-vertex.d.ts +7 -0
- package/dist/types/providers/google.d.ts +4 -0
- package/dist/types/providers/grammar.d.ts +1 -0
- package/dist/types/providers/kimi.d.ts +27 -0
- package/dist/types/providers/mock.d.ts +177 -0
- package/dist/types/providers/ollama.d.ts +41 -0
- package/dist/types/providers/openai-anthropic-shim.d.ts +31 -0
- package/dist/types/providers/openai-bounded-rate-limits.d.ts +3 -0
- package/dist/types/providers/openai-chat-server-schema.d.ts +815 -0
- package/dist/types/providers/openai-chat-server.d.ts +16 -0
- package/dist/types/providers/openai-codex/constants.d.ts +26 -0
- package/dist/types/providers/openai-codex/request-transformer.d.ts +50 -0
- package/dist/types/providers/openai-codex/response-handler.d.ts +18 -0
- package/dist/types/providers/openai-codex-responses.d.ts +68 -0
- package/dist/types/providers/openai-completions-compat.d.ts +27 -0
- package/dist/types/providers/openai-completions.d.ts +33 -0
- package/dist/types/providers/openai-request-transform.d.ts +4 -0
- package/dist/types/providers/openai-responses-server-schema.d.ts +392 -0
- package/dist/types/providers/openai-responses-server.d.ts +17 -0
- package/dist/types/providers/openai-responses-shared.d.ts +104 -0
- package/dist/types/providers/openai-responses.d.ts +32 -0
- package/dist/types/providers/pi-native-client.d.ts +13 -0
- package/dist/types/providers/pi-native-server.d.ts +60 -0
- package/dist/types/providers/register-builtins.d.ts +31 -0
- package/dist/types/providers/synthetic.d.ts +26 -0
- package/dist/types/providers/transform-messages.d.ts +14 -0
- package/dist/types/providers/vision-guard.d.ts +8 -0
- package/dist/types/rate-limit-utils.d.ts +19 -0
- package/dist/types/stream.d.ts +43 -0
- package/dist/types/types.d.ts +882 -0
- package/dist/types/usage/claude.d.ts +3 -0
- package/dist/types/usage/gemini.d.ts +2 -0
- package/dist/types/usage/github-copilot.d.ts +7 -0
- package/dist/types/usage/google-antigravity.d.ts +2 -0
- package/dist/types/usage/grok-cli.d.ts +10 -0
- package/dist/types/usage/kimi.d.ts +2 -0
- package/dist/types/usage/minimax-code.d.ts +2 -0
- package/dist/types/usage/openai-codex.d.ts +3 -0
- package/dist/types/usage/shared.d.ts +1 -0
- package/dist/types/usage/zai.d.ts +2 -0
- package/dist/types/usage.d.ts +258 -0
- package/dist/types/utils/abort.d.ts +19 -0
- package/dist/types/utils/anthropic-auth.d.ts +31 -0
- package/dist/types/utils/discovery/antigravity.d.ts +67 -0
- package/dist/types/utils/discovery/codex.d.ts +38 -0
- package/dist/types/utils/discovery/cursor.d.ts +23 -0
- package/dist/types/utils/discovery/gemini.d.ts +25 -0
- package/dist/types/utils/discovery/index.d.ts +4 -0
- package/dist/types/utils/discovery/openai-compatible.d.ts +74 -0
- package/dist/types/utils/event-stream.d.ts +39 -0
- package/dist/types/utils/fallback-transport.d.ts +66 -0
- package/dist/types/utils/fireworks-model-id.d.ts +10 -0
- package/dist/types/utils/foundry.d.ts +1 -0
- package/dist/types/utils/h2-fetch.d.ts +22 -0
- package/dist/types/utils/http-inspector.d.ts +35 -0
- package/dist/types/utils/idle-iterator.d.ts +67 -0
- package/dist/types/utils/json-parse.d.ts +18 -0
- package/dist/types/utils/oauth/alibaba-coding-plan.d.ts +18 -0
- package/dist/types/utils/oauth/anthropic.d.ts +22 -0
- package/dist/types/utils/oauth/api-key-login.d.ts +35 -0
- package/dist/types/utils/oauth/api-key-validation.d.ts +27 -0
- package/dist/types/utils/oauth/callback-server.d.ts +60 -0
- package/dist/types/utils/oauth/cerebras.d.ts +1 -0
- package/dist/types/utils/oauth/cloudflare-ai-gateway.d.ts +18 -0
- package/dist/types/utils/oauth/cursor.d.ts +15 -0
- package/dist/types/utils/oauth/deepinfra.d.ts +1 -0
- package/dist/types/utils/oauth/deepseek.d.ts +10 -0
- package/dist/types/utils/oauth/firepass.d.ts +1 -0
- package/dist/types/utils/oauth/fireworks.d.ts +1 -0
- package/dist/types/utils/oauth/fugu.d.ts +1 -0
- package/dist/types/utils/oauth/github-copilot.d.ts +38 -0
- package/dist/types/utils/oauth/gitlab-duo.d.ts +3 -0
- package/dist/types/utils/oauth/glm-zcode.d.ts +71 -0
- package/dist/types/utils/oauth/google-antigravity.d.ts +11 -0
- package/dist/types/utils/oauth/google-gemini-cli.d.ts +10 -0
- package/dist/types/utils/oauth/google-oauth-shared.d.ts +28 -0
- package/dist/types/utils/oauth/huggingface.d.ts +19 -0
- package/dist/types/utils/oauth/index.d.ts +39 -0
- package/dist/types/utils/oauth/kagi.d.ts +17 -0
- package/dist/types/utils/oauth/kilo.d.ts +5 -0
- package/dist/types/utils/oauth/kimi.d.ts +21 -0
- package/dist/types/utils/oauth/litellm.d.ts +18 -0
- package/dist/types/utils/oauth/lm-studio.d.ts +17 -0
- package/dist/types/utils/oauth/minimax-code.d.ts +28 -0
- package/dist/types/utils/oauth/moonshot.d.ts +1 -0
- package/dist/types/utils/oauth/nanogpt.d.ts +1 -0
- package/dist/types/utils/oauth/nvidia.d.ts +18 -0
- package/dist/types/utils/oauth/ollama-cloud.d.ts +2 -0
- package/dist/types/utils/oauth/ollama.d.ts +18 -0
- package/dist/types/utils/oauth/openai-codex.d.ts +21 -0
- package/dist/types/utils/oauth/opencode.d.ts +18 -0
- package/dist/types/utils/oauth/parallel.d.ts +17 -0
- package/dist/types/utils/oauth/perplexity.d.ts +9 -0
- package/dist/types/utils/oauth/pkce.d.ts +8 -0
- package/dist/types/utils/oauth/qianfan.d.ts +17 -0
- package/dist/types/utils/oauth/qwen-portal.d.ts +19 -0
- package/dist/types/utils/oauth/synthetic.d.ts +1 -0
- package/dist/types/utils/oauth/tavily.d.ts +17 -0
- package/dist/types/utils/oauth/together.d.ts +1 -0
- package/dist/types/utils/oauth/types.d.ts +45 -0
- package/dist/types/utils/oauth/venice.d.ts +18 -0
- package/dist/types/utils/oauth/vercel-ai-gateway.d.ts +18 -0
- package/dist/types/utils/oauth/vllm.d.ts +16 -0
- package/dist/types/utils/oauth/xai.d.ts +30 -0
- package/dist/types/utils/oauth/xiaomi.d.ts +25 -0
- package/dist/types/utils/oauth/zai.d.ts +18 -0
- package/dist/types/utils/oauth/zenmux.d.ts +1 -0
- package/dist/types/utils/overflow.d.ts +14 -0
- package/dist/types/utils/parse-bind.d.ts +23 -0
- package/dist/types/utils/provider-response.d.ts +3 -0
- package/dist/types/utils/retry-after.d.ts +3 -0
- package/dist/types/utils/retry-budget.d.ts +1 -0
- package/dist/types/utils/retry.d.ts +27 -0
- package/dist/types/utils/schema/adapt.d.ts +24 -0
- package/dist/types/utils/schema/compatibility.d.ts +30 -0
- package/dist/types/utils/schema/dereference.d.ts +11 -0
- package/dist/types/utils/schema/draft.d.ts +10 -0
- package/dist/types/utils/schema/equality.d.ts +4 -0
- package/dist/types/utils/schema/fields.d.ts +49 -0
- package/dist/types/utils/schema/index.d.ts +14 -0
- package/dist/types/utils/schema/json-schema-validator.d.ts +12 -0
- package/dist/types/utils/schema/meta-validator.d.ts +2 -0
- package/dist/types/utils/schema/normalize.d.ts +93 -0
- package/dist/types/utils/schema/root-combinator.d.ts +12 -0
- package/dist/types/utils/schema/spill.d.ts +8 -0
- package/dist/types/utils/schema/stamps.d.ts +25 -0
- package/dist/types/utils/schema/types.d.ts +4 -0
- package/dist/types/utils/schema/wire.d.ts +54 -0
- package/dist/types/utils/schema/zod-decontaminate.d.ts +31 -0
- package/dist/types/utils/sse-debug.d.ts +10 -0
- package/dist/types/utils/tool-call-healing.d.ts +71 -0
- package/dist/types/utils/tool-choice-capability.d.ts +41 -0
- package/dist/types/utils/tool-choice.d.ts +50 -0
- package/dist/types/utils/validation.d.ts +17 -0
- package/dist/types/utils.d.ts +89 -0
- package/package.json +25 -24
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { ResponseInput } from "openai/resources/responses/responses";
|
|
2
|
+
import type { CacheRetention, OpenAIResponsesHistoryPayload, ProviderPayload } from "./types";
|
|
3
|
+
export { isRecord } from "@sayknow-cli/utils";
|
|
4
|
+
export declare function normalizeSystemPrompts(systemPrompt: readonly string[] | string | undefined | null): string[];
|
|
5
|
+
export declare function sanitizeJsonStrings(value: unknown): unknown;
|
|
6
|
+
export declare function toNumber(value: unknown): number | undefined;
|
|
7
|
+
export declare function toPositiveNumber(value: unknown, fallback: number): number;
|
|
8
|
+
export declare function toBoolean(value: unknown): boolean | undefined;
|
|
9
|
+
export declare function normalizeToolCallId(id: string): string;
|
|
10
|
+
type ResponsesToolItemIdPrefix = "fc" | "ctc";
|
|
11
|
+
export declare function normalizeResponsesToolCallId(id: string, itemPrefix?: ResponsesToolItemIdPrefix): {
|
|
12
|
+
callId: string;
|
|
13
|
+
itemId: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Truncate an OpenAI Responses API item ID to 64 characters.
|
|
17
|
+
* IDs exceeding the limit are replaced with a hash-based ID using the given prefix.
|
|
18
|
+
*/
|
|
19
|
+
export declare function truncateResponseItemId(id: string, prefix: string): string;
|
|
20
|
+
export declare function sanitizeOpenAIResponsesHistoryItemsForReplay(items: Array<Record<string, unknown>>): ResponseInput;
|
|
21
|
+
/**
|
|
22
|
+
* Neutralize leaked OpenAI Harmony / control tokens (`<|channel|>`, `<|message|>`,
|
|
23
|
+
* `<|call|>`, `<|constrain|>`, `<|recipient|>`, `<|content|>`, ...) in replayed
|
|
24
|
+
* history text. A subagent whose tool-call channel degenerates can dump raw
|
|
25
|
+
* control-token scaffolding into its reply text; once that poisoned text lands in
|
|
26
|
+
* history the Codex / Responses endpoint rejects every subsequent request with
|
|
27
|
+
* `Request blocked (code=invalid_prompt)`, permanently wedging the session because
|
|
28
|
+
* the offending item is re-sent on each turn. Insert a zero-width space after `<`
|
|
29
|
+
* so the delimiter can no longer be tokenized as a reserved control token while the
|
|
30
|
+
* text stays human-readable.
|
|
31
|
+
*
|
|
32
|
+
* The pattern matches the two control-token shapes only, so ordinary text and pipe
|
|
33
|
+
* syntax is left untouched:
|
|
34
|
+
* - simple form `<|ident|>` — a leading run of identifier chars then `|>`; and
|
|
35
|
+
* - header form `<|role to=recipient|>` — a known Harmony role
|
|
36
|
+
* (`system`/`developer`/`user`/`assistant`/`tool`) followed by a single
|
|
37
|
+
* recipient assignment `to=<recipient>` whose value is an unbounded run of
|
|
38
|
+
* non-delimiter, non-whitespace chars (so long MCP/custom tool recipients like
|
|
39
|
+
* `to=functions.<long.name>` are covered).
|
|
40
|
+
* The header branch is deliberately scoped to the known role + `to=` recipient
|
|
41
|
+
* grammar rather than an arbitrary `key=value`, so request-boundary sanitization
|
|
42
|
+
* never rewrites non-control delimiter text such as `<|foo bar=baz|>`. A single-line
|
|
43
|
+
* body (no `\n`) and the required leading identifier char also leave compact
|
|
44
|
+
* pipe/operator syntax alone — e.g. F# `value <| f |> g` (space after `<|`),
|
|
45
|
+
* `sum<|a+b|>c` (punctuation body), and `<|foo bar|>` (no assignment) never match.
|
|
46
|
+
* The simple branch is a strict superset of the original identifier-only pattern:
|
|
47
|
+
* every marker the old regex caught still matches.
|
|
48
|
+
*/
|
|
49
|
+
export declare function neutralizeReservedControlTokens(text: string): string;
|
|
50
|
+
/**
|
|
51
|
+
* Shape-tolerant classifier for the poisoned-history rejection that wedges
|
|
52
|
+
* gpt-5.6 sessions: `Request blocked (code=invalid_prompt)`. Accepts a raw
|
|
53
|
+
* provider error, an assistant message, or any object carrying a
|
|
54
|
+
* `providerCode` / `transportFailure` / `errorMessage` field, and returns true
|
|
55
|
+
* when the failure is the deterministic `invalid_prompt` content fault rather
|
|
56
|
+
* than a transient upstream error. This is the single shared contract the
|
|
57
|
+
* provider transports and the session-level circuit breaker key on so the
|
|
58
|
+
* classification is explicit (not inferred from a catch-all bucket) and
|
|
59
|
+
* uniformly testable across transports.
|
|
60
|
+
*/
|
|
61
|
+
export declare function isInvalidPromptError(input: unknown): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Neutralize leaked reserved control tokens across every string in an outgoing
|
|
64
|
+
* Responses `input` array. This is the request-boundary complement to the
|
|
65
|
+
* replay-history sanitizer: leaked Harmony markers (`<|channel|>analysis`, ...)
|
|
66
|
+
* can enter the payload from assistant reasoning summaries, live-converted
|
|
67
|
+
* message/tool-output text, or user-authored content — not just replayed
|
|
68
|
+
* history — and every gpt-5.6 request that carries one is rejected with
|
|
69
|
+
* `Request blocked (code=invalid_prompt)`. Walking every string (rather than an
|
|
70
|
+
* item-type allowlist) guarantees no leak source is missed as item shapes
|
|
71
|
+
* evolve; the zero-width-space insertion is idempotent (`<\u200b|` no longer
|
|
72
|
+
* matches `<|`) and keeps the text human-readable.
|
|
73
|
+
*/
|
|
74
|
+
export declare function neutralizeResponsesInputControlTokens<T>(items: readonly T[]): T[];
|
|
75
|
+
export declare function createOpenAIResponsesHistoryPayload(provider: string, items: Array<Record<string, unknown>>, incremental?: boolean): OpenAIResponsesHistoryPayload;
|
|
76
|
+
export declare function getOpenAIResponsesHistoryPayload(providerPayload: ProviderPayload | undefined, currentProvider: string, fallbackProvider?: string): OpenAIResponsesHistoryPayload | undefined;
|
|
77
|
+
export declare function getOpenAIResponsesHistoryItems(providerPayload: ProviderPayload | undefined, currentProvider: string, fallbackProvider?: string): Array<Record<string, unknown>> | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Resolve cache retention preference.
|
|
80
|
+
*
|
|
81
|
+
* Resolution order: explicit request value → `SKC_CACHE_RETENTION` →
|
|
82
|
+
* legacy `PI_CACHE_RETENTION` → `fallback`. Both env vars act as explicit
|
|
83
|
+
* opt-in (`"long"`) or opt-out (any other value) so a provider-specific
|
|
84
|
+
* `fallback` only applies when nothing else is configured. `fallback`
|
|
85
|
+
* defaults to `"short"` to preserve the historical behaviour for callers
|
|
86
|
+
* that don't pass one.
|
|
87
|
+
*/
|
|
88
|
+
export declare function resolveCacheRetention(cacheRetention?: CacheRetention, fallback?: CacheRetention): CacheRetention;
|
|
89
|
+
export declare function isAnthropicOAuthToken(key: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@sayknow-cli/ai",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.4",
|
|
5
5
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
6
6
|
"homepage": "https://sayknow-cli.com",
|
|
7
7
|
"author": "jaybeyond",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"api"
|
|
28
28
|
],
|
|
29
29
|
"main": "./src/index.ts",
|
|
30
|
-
"types": "./
|
|
30
|
+
"types": "./dist/types/index.d.ts",
|
|
31
31
|
"bin": {
|
|
32
32
|
"pi-ai": "./src/cli.ts"
|
|
33
33
|
},
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@anthropic-ai/sdk": "^0.94.0",
|
|
45
45
|
"@bufbuild/protobuf": "^2.12.0",
|
|
46
|
-
"@sayknow-cli/utils": "0.4.
|
|
46
|
+
"@sayknow-cli/utils": "0.4.4",
|
|
47
47
|
"openai": "^6.36.0",
|
|
48
48
|
"partial-json": "^0.1.7",
|
|
49
49
|
"zod": "4.4.3"
|
|
@@ -57,87 +57,88 @@
|
|
|
57
57
|
"files": [
|
|
58
58
|
"src",
|
|
59
59
|
"README.md",
|
|
60
|
-
"CHANGELOG.md"
|
|
60
|
+
"CHANGELOG.md",
|
|
61
|
+
"dist/types"
|
|
61
62
|
],
|
|
62
63
|
"exports": {
|
|
63
64
|
".": {
|
|
64
|
-
"types": "./
|
|
65
|
+
"types": "./dist/types/index.d.ts",
|
|
65
66
|
"import": "./src/index.ts"
|
|
66
67
|
},
|
|
67
68
|
"./*": {
|
|
68
|
-
"types": "./
|
|
69
|
+
"types": "./dist/types/*.d.ts",
|
|
69
70
|
"import": "./src/*.ts"
|
|
70
71
|
},
|
|
71
72
|
"./auth-broker": {
|
|
72
|
-
"types": "./
|
|
73
|
+
"types": "./dist/types/auth-broker/index.d.ts",
|
|
73
74
|
"import": "./src/auth-broker/index.ts"
|
|
74
75
|
},
|
|
75
76
|
"./auth-broker/*": {
|
|
76
|
-
"types": "./
|
|
77
|
+
"types": "./dist/types/auth-broker/*.d.ts",
|
|
77
78
|
"import": "./src/auth-broker/*.ts"
|
|
78
79
|
},
|
|
79
80
|
"./auth-gateway": {
|
|
80
|
-
"types": "./
|
|
81
|
+
"types": "./dist/types/auth-gateway/index.d.ts",
|
|
81
82
|
"import": "./src/auth-gateway/index.ts"
|
|
82
83
|
},
|
|
83
84
|
"./auth-gateway/*": {
|
|
84
|
-
"types": "./
|
|
85
|
+
"types": "./dist/types/auth-gateway/*.d.ts",
|
|
85
86
|
"import": "./src/auth-gateway/*.ts"
|
|
86
87
|
},
|
|
87
88
|
"./models.json": {
|
|
88
|
-
"types": "./
|
|
89
|
+
"types": "./dist/types/models.json.d.d.ts",
|
|
89
90
|
"import": "./src/models.json"
|
|
90
91
|
},
|
|
91
92
|
"./provider-models": {
|
|
92
|
-
"types": "./
|
|
93
|
+
"types": "./dist/types/provider-models/index.d.ts",
|
|
93
94
|
"import": "./src/provider-models/index.ts"
|
|
94
95
|
},
|
|
95
96
|
"./provider-models/*": {
|
|
96
|
-
"types": "./
|
|
97
|
+
"types": "./dist/types/provider-models/*.d.ts",
|
|
97
98
|
"import": "./src/provider-models/*.ts"
|
|
98
99
|
},
|
|
99
100
|
"./providers/*": {
|
|
100
|
-
"types": "./
|
|
101
|
+
"types": "./dist/types/providers/*.d.ts",
|
|
101
102
|
"import": "./src/providers/*.ts"
|
|
102
103
|
},
|
|
103
104
|
"./providers/cursor/gen/*": {
|
|
104
|
-
"types": "./
|
|
105
|
+
"types": "./dist/types/providers/cursor/gen/*.d.ts",
|
|
105
106
|
"import": "./src/providers/cursor/gen/*.ts"
|
|
106
107
|
},
|
|
107
108
|
"./providers/openai-codex/*": {
|
|
108
|
-
"types": "./
|
|
109
|
+
"types": "./dist/types/providers/openai-codex/*.d.ts",
|
|
109
110
|
"import": "./src/providers/openai-codex/*.ts"
|
|
110
111
|
},
|
|
111
112
|
"./usage/*": {
|
|
112
|
-
"types": "./
|
|
113
|
+
"types": "./dist/types/usage/*.d.ts",
|
|
113
114
|
"import": "./src/usage/*.ts"
|
|
114
115
|
},
|
|
115
116
|
"./utils/*": {
|
|
116
|
-
"types": "./
|
|
117
|
+
"types": "./dist/types/utils/*.d.ts",
|
|
117
118
|
"import": "./src/utils/*.ts"
|
|
118
119
|
},
|
|
119
120
|
"./utils/discovery": {
|
|
120
|
-
"types": "./
|
|
121
|
+
"types": "./dist/types/utils/discovery/index.d.ts",
|
|
121
122
|
"import": "./src/utils/discovery/index.ts"
|
|
122
123
|
},
|
|
123
124
|
"./utils/discovery/*": {
|
|
124
|
-
"types": "./
|
|
125
|
+
"types": "./dist/types/utils/discovery/*.d.ts",
|
|
125
126
|
"import": "./src/utils/discovery/*.ts"
|
|
126
127
|
},
|
|
127
128
|
"./utils/oauth": {
|
|
128
|
-
"types": "./
|
|
129
|
+
"types": "./dist/types/utils/oauth/index.d.ts",
|
|
129
130
|
"import": "./src/utils/oauth/index.ts"
|
|
130
131
|
},
|
|
131
132
|
"./utils/oauth/*": {
|
|
132
|
-
"types": "./
|
|
133
|
+
"types": "./dist/types/utils/oauth/*.d.ts",
|
|
133
134
|
"import": "./src/utils/oauth/*.ts"
|
|
134
135
|
},
|
|
135
136
|
"./utils/schema": {
|
|
136
|
-
"types": "./
|
|
137
|
+
"types": "./dist/types/utils/schema/index.d.ts",
|
|
137
138
|
"import": "./src/utils/schema/index.ts"
|
|
138
139
|
},
|
|
139
140
|
"./utils/schema/*": {
|
|
140
|
-
"types": "./
|
|
141
|
+
"types": "./dist/types/utils/schema/*.d.ts",
|
|
141
142
|
"import": "./src/utils/schema/*.ts"
|
|
142
143
|
},
|
|
143
144
|
"./*.js": "./src/*.ts"
|