@premai/api-sdk 1.0.41 → 1.0.43
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/README.md +184 -39
- package/dist/anthropic/count-tokens-route.d.ts +3 -0
- package/dist/anthropic/from-openai.d.ts +33 -0
- package/dist/anthropic/http.d.ts +19 -0
- package/dist/anthropic/messages-route.d.ts +3 -0
- package/dist/anthropic/models-route.d.ts +3 -0
- package/dist/anthropic/to-openai.d.ts +35 -0
- package/dist/bare.cjs +25981 -0
- package/dist/bare.d.ts +31 -0
- package/dist/bare.mjs +25938 -0
- package/dist/cli-claude.d.ts +2 -0
- package/dist/cli-claude.mjs +3304 -0
- package/dist/cli.mjs +2959 -0
- package/dist/core.browser.cjs +159 -20
- package/dist/core.browser.mjs +159 -20
- package/dist/index.cjs +1506 -237
- package/dist/index.d.ts +5 -3
- package/dist/index.mjs +1506 -239
- package/dist/launcher/claude-code.d.ts +1 -0
- package/dist/launcher/model-picker.d.ts +7 -0
- package/dist/launcher/proxy-subprocess.d.ts +13 -0
- package/dist/launcher/text-input.d.ts +3 -0
- package/dist/openai/routes.d.ts +3 -0
- package/dist/server/create-app.d.ts +8 -0
- package/dist/server/discovery.d.ts +7 -0
- package/dist/server/route-prefix.d.ts +9 -0
- package/dist/server/runtime.d.ts +8 -0
- package/dist/server/start.d.ts +4 -0
- package/dist/server.d.ts +7 -5
- package/dist/types.d.ts +9 -3
- package/package.json +20 -10
- package/dist/bare-global.d.ts +0 -4
- package/dist/bare-global.mjs +0 -30
- package/dist/cli.cjs +0 -1699
package/dist/bare.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "bare-process/global";
|
|
2
|
+
import "bare-abort-controller/global";
|
|
3
|
+
import "bare-buffer/global";
|
|
4
|
+
import "bare-encoding/global";
|
|
5
|
+
import "bare-crypto/global";
|
|
6
|
+
import "bare-url/global";
|
|
7
|
+
import "bare-events/global";
|
|
8
|
+
import "bare-form-data/global";
|
|
9
|
+
import "bare-fetch/global";
|
|
10
|
+
export interface BareWasm3Options {
|
|
11
|
+
/**
|
|
12
|
+
* Called after each WASM export returns. Used inside BareKit worklets to
|
|
13
|
+
* unblock the IPC event loop after synchronous wasm3 execution.
|
|
14
|
+
* Typically: `() => pipe.write(Buffer.from('\n'))`.
|
|
15
|
+
*/
|
|
16
|
+
ioNudge?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Absolute on-disk path to the WASM file. Only needed when running
|
|
19
|
+
* inside a bundled environment (BareKit / bare-pack) where the WASM
|
|
20
|
+
* binary's `__dirname` resolves to a virtual path.
|
|
21
|
+
*/
|
|
22
|
+
wasmPath?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Install the `WebAssembly` polyfill.
|
|
26
|
+
* Required inside BareKit worklets on iOS / Android where the platform's
|
|
27
|
+
* native WebAssembly is unavailable or JIT-locked
|
|
28
|
+
*/
|
|
29
|
+
export declare function installBareWasm3(options?: BareWasm3Options): Promise<void>;
|
|
30
|
+
export * from "./core";
|
|
31
|
+
export { default } from "./core";
|