@crewx/sdk 0.9.0-rc.5 → 0.9.0-rc.6
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/config/pricing.d.ts +5 -6
- package/dist/config/pricing.generated.d.ts +2 -0
- package/dist/config/pricing.remote.d.ts +4 -0
- package/dist/config/pricing.types.d.ts +5 -0
- package/dist/esm/index.js +58 -57
- package/dist/esm/testing/index.js +1 -1
- package/dist/index.browser.d.ts +1 -1
- package/dist/index.browser.js +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +59 -58
- package/dist/provider/acp/adapters/claude.d.ts +1 -4
- package/dist/provider/cli/meta.d.ts +8 -2
- package/dist/provider/models.d.ts +26 -0
- package/dist/provider/order.d.ts +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +1 -1
- package/package.json +3 -2
package/dist/config/pricing.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const MODEL_PRICING: Record<string, ModelPricing>;
|
|
1
|
+
import type { ModelPricing } from './pricing.types.js';
|
|
2
|
+
export type { ModelPricing } from './pricing.types.js';
|
|
3
|
+
export { MODEL_PRICING } from './pricing.generated.js';
|
|
4
|
+
export declare function setPricingOverride(models: Record<string, ModelPricing>): void;
|
|
5
|
+
export declare function clearPricingOverride(): void;
|
|
7
6
|
export declare function getPricing(model: string | null | undefined): ModelPricing;
|
|
8
7
|
export declare function calculateCost(inputTokens: number, outputTokens: number, model: string | null | undefined, cachedInputTokens?: number): number;
|
|
9
8
|
export declare function resolveCost(costUsd: number | undefined, inputTokens: number | undefined, outputTokens: number | undefined, cachedInputTokens: number | undefined, model: string | null | undefined): number;
|