solid-translate 0.2.0 → 1.0.0
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/chunk-CIKZ6PF7.js +1005 -0
- package/dist/chunk-FYS2JH42.js +31 -0
- package/dist/cli.js +4 -3
- package/dist/dist-7F5KHPJB.js +1165 -0
- package/dist/dist-TDQGTVYG.js +956 -0
- package/dist/dist-ZA6JWKFH.js +2805 -0
- package/package.json +5 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
__commonJS,
|
|
30
|
+
__toESM
|
|
31
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
#!/usr/bin/env node
|
|
3
|
+
import "./chunk-FYS2JH42.js";
|
|
3
4
|
|
|
4
5
|
// src/cli.ts
|
|
5
6
|
import {
|
|
@@ -218,7 +219,7 @@ async function createModel(config) {
|
|
|
218
219
|
const modelId = config.model || "gpt-4o-mini";
|
|
219
220
|
try {
|
|
220
221
|
if (provider === "openai" || provider === "openrouter") {
|
|
221
|
-
const { createOpenAI } = await import("
|
|
222
|
+
const { createOpenAI } = await import("./dist-ZA6JWKFH.js");
|
|
222
223
|
if (provider === "openrouter") {
|
|
223
224
|
const openrouter = createOpenAI({
|
|
224
225
|
baseURL: "https://openrouter.ai/api/v1",
|
|
@@ -232,14 +233,14 @@ async function createModel(config) {
|
|
|
232
233
|
return openai(modelId);
|
|
233
234
|
}
|
|
234
235
|
if (provider === "anthropic") {
|
|
235
|
-
const { createAnthropic } = await import("
|
|
236
|
+
const { createAnthropic } = await import("./dist-7F5KHPJB.js");
|
|
236
237
|
const anthropic = createAnthropic({
|
|
237
238
|
apiKey: process.env.ANTHROPIC_API_KEY
|
|
238
239
|
});
|
|
239
240
|
return anthropic(modelId);
|
|
240
241
|
}
|
|
241
242
|
if (provider === "google") {
|
|
242
|
-
const { createGoogleGenerativeAI } = await import("
|
|
243
|
+
const { createGoogleGenerativeAI } = await import("./dist-TDQGTVYG.js");
|
|
243
244
|
const google = createGoogleGenerativeAI({
|
|
244
245
|
apiKey: process.env.GOOGLE_API_KEY
|
|
245
246
|
});
|