@tensorcost/sdk 1.2.1 → 1.3.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/CHANGELOG.md +27 -0
- package/README.md +33 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -1
- package/dist/config.js.map +1 -1
- package/dist/errors.d.ts +12 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +14 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/providers/anthropic.d.ts.map +1 -1
- package/dist/providers/anthropic.js +22 -3
- package/dist/providers/anthropic.js.map +1 -1
- package/dist/providers/bedrock.d.ts +7 -6
- package/dist/providers/bedrock.d.ts.map +1 -1
- package/dist/providers/bedrock.js +42 -10
- package/dist/providers/bedrock.js.map +1 -1
- package/dist/providers/openai.d.ts.map +1 -1
- package/dist/providers/openai.js +25 -3
- package/dist/providers/openai.js.map +1 -1
- package/dist/providers/vertex.d.ts.map +1 -1
- package/dist/providers/vertex.js +5 -2
- package/dist/providers/vertex.js.map +1 -1
- package/dist/proxy-client.d.ts.map +1 -1
- package/dist/proxy-client.js +25 -9
- package/dist/proxy-client.js.map +1 -1
- package/dist/trace-link.d.ts +24 -0
- package/dist/trace-link.d.ts.map +1 -0
- package/dist/trace-link.js +61 -0
- package/dist/trace-link.js.map +1 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +14 -9
- package/dist/adapters/crewai.d.ts +0 -4
- package/dist/adapters/langchain.d.ts +0 -4
- package/dist/adapters/llamaindex.d.ts +0 -4
- package/dist/adapters/vercel-ai.d.ts +0 -4
- package/dist/admit-client.d.ts +0 -40
- package/dist/applied.d.ts +0 -104
- package/dist/circuit-observations.d.ts +0 -12
- package/dist/circuit.d.ts +0 -67
- package/dist/compliance-guard.d.ts +0 -16
- package/dist/compliance-team.d.ts +0 -11
- package/dist/config.d.ts +0 -28
- package/dist/decision.d.ts +0 -11
- package/dist/dlp.d.ts +0 -16
- package/dist/layer.d.ts +0 -54
- package/dist/prewarm.d.ts +0 -14
- package/dist/providers/anthropic.d.ts +0 -42
- package/dist/providers/detect.d.ts +0 -19
- package/dist/providers/index.d.ts +0 -6
- package/dist/providers/openai.d.ts +0 -47
- package/dist/providers/vertex.d.ts +0 -14
- package/dist/proxy-client.d.ts +0 -132
- package/dist/retry.d.ts +0 -50
- package/dist/runtime.d.ts +0 -24
- package/dist/sdk-layer.d.ts +0 -38
- package/dist/telemetry.d.ts +0 -70
- package/dist/transport.d.ts +0 -68
- package/dist/wrap-overhead.d.ts +0 -32
- package/dist/wrap.d.ts +0 -24
package/dist/wrap.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The single public entry point: `wrap(client, options?)`.
|
|
3
|
-
*
|
|
4
|
-
* Returns the SAME client reference (mutates in place), per the SDK
|
|
5
|
-
* ergonomics non-negotiable: customer changes one line, no other code
|
|
6
|
-
* paths shift.
|
|
7
|
-
*
|
|
8
|
-
* Control layers:
|
|
9
|
-
* off — client returned unchanged (no transport, no hooks)
|
|
10
|
-
* observe — telemetry only
|
|
11
|
-
* govern — admit (metadata) then direct provider call
|
|
12
|
-
* steer/route — proxy in request path (OpenAI / Anthropic only)
|
|
13
|
-
*/
|
|
14
|
-
import { TensorCostConfigError } from "./config.js";
|
|
15
|
-
import { layerRank } from "./layer.js";
|
|
16
|
-
import type { WrapOptions } from "./types.js";
|
|
17
|
-
declare function steerRouteUnsupportedError(provider: string, maxLayer: string): TensorCostConfigError;
|
|
18
|
-
export declare function wrap<T>(client: T, options?: WrapOptions): T;
|
|
19
|
-
export declare const __test__: {
|
|
20
|
-
layerRank: typeof layerRank;
|
|
21
|
-
steerRouteUnsupportedError: typeof steerRouteUnsupportedError;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=wrap.d.ts.map
|