@elizaos/cli 1.2.4 → 1.2.7
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/bun-exec-KJOLGZOL.js +21 -0
- package/dist/{chunk-2XI6N7KN.js → chunk-2ZF5OAMV.js} +322 -69
- package/dist/chunk-3YTIOEFK.js +202 -0
- package/dist/chunk-AQ6OMR2A.js +14 -0
- package/dist/{chunk-JZG5QBNT.js → chunk-E54G6FI7.js} +32 -6
- package/dist/{chunk-PSSTO76B.js → chunk-KKAK7OQA.js} +100 -104
- package/dist/chunk-Y5IA2UZ2.js +154 -0
- package/dist/commands/agent/actions/index.js +4 -3
- package/dist/commands/agent/index.js +4 -3
- package/dist/commands/create/actions/index.d.ts +6 -2
- package/dist/commands/create/actions/index.js +8 -7
- package/dist/commands/create/index.js +6 -6
- package/dist/commands/shared/index.js +1 -1
- package/dist/index.js +323 -258
- package/dist/{plugin-creator-5CER524N.js → plugin-creator-Y2NWASXI.js} +16 -15
- package/dist/{registry-SN5V2VXR.js → registry-K2OCCRXO.js} +4 -3
- package/dist/templates/plugin-quick-starter/README.md +214 -0
- package/dist/templates/plugin-quick-starter/bunfig.toml +10 -0
- package/dist/templates/plugin-quick-starter/package.json +76 -0
- package/dist/templates/plugin-quick-starter/scripts/install-test-deps.js +53 -0
- package/dist/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +209 -0
- package/dist/templates/plugin-quick-starter/src/__tests__/test-utils.ts +162 -0
- package/dist/templates/plugin-quick-starter/src/index.ts +4 -0
- package/dist/templates/plugin-quick-starter/src/plugin.ts +272 -0
- package/dist/templates/plugin-quick-starter/tsconfig.build.json +11 -0
- package/dist/templates/plugin-quick-starter/tsconfig.json +28 -0
- package/dist/templates/plugin-quick-starter/tsup.config.ts +20 -0
- package/dist/templates/plugin-starter/package.json +2 -2
- package/dist/templates/plugin-starter/scripts/install-test-deps.js +7 -3
- package/dist/templates/plugin-starter/src/__tests__/build-order.test.ts +51 -0
- package/dist/templates/plugin-starter/src/__tests__/vite-config-utils.ts +33 -0
- package/dist/templates/plugin-starter/src/plugin.ts +13 -15
- package/dist/templates/plugin-starter/tsup.config.ts +1 -1
- package/dist/templates/plugin-starter/vite.config.ts +1 -1
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-starter/scripts/install-test-deps.js +7 -3
- package/dist/templates/project-starter/src/__tests__/build-order.test.ts +59 -0
- package/dist/templates/project-starter/src/__tests__/character-plugin-ordering.test.ts +11 -110
- package/dist/templates/project-starter/src/__tests__/vite-config-utils.ts +33 -0
- package/dist/templates/project-starter/src/character.ts +14 -17
- package/dist/templates/project-starter/tsup.config.ts +1 -1
- package/dist/templates/project-tee-starter/package.json +3 -3
- package/dist/templates/project-tee-starter/src/character.ts +3 -0
- package/dist/{utils-DTW3XU6O.js → utils-QSRUVLAT.js} +4 -3
- package/package.json +6 -6
- package/templates/plugin-quick-starter/README.md +214 -0
- package/templates/plugin-quick-starter/bunfig.toml +10 -0
- package/templates/plugin-quick-starter/package.json +76 -0
- package/templates/plugin-quick-starter/scripts/install-test-deps.js +53 -0
- package/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +209 -0
- package/templates/plugin-quick-starter/src/__tests__/test-utils.ts +162 -0
- package/templates/plugin-quick-starter/src/index.ts +4 -0
- package/templates/plugin-quick-starter/src/plugin.ts +272 -0
- package/templates/plugin-quick-starter/tsconfig.build.json +11 -0
- package/templates/plugin-quick-starter/tsconfig.json +28 -0
- package/templates/plugin-quick-starter/tsup.config.ts +20 -0
- package/templates/plugin-starter/package.json +2 -2
- package/templates/plugin-starter/scripts/install-test-deps.js +7 -3
- package/templates/plugin-starter/src/__tests__/build-order.test.ts +51 -0
- package/templates/plugin-starter/src/__tests__/vite-config-utils.ts +33 -0
- package/templates/plugin-starter/src/plugin.ts +13 -15
- package/templates/plugin-starter/tsup.config.ts +1 -1
- package/templates/plugin-starter/vite.config.ts +1 -1
- package/templates/project-starter/package.json +4 -4
- package/templates/project-starter/scripts/install-test-deps.js +7 -3
- package/templates/project-starter/src/__tests__/build-order.test.ts +59 -0
- package/templates/project-starter/src/__tests__/character-plugin-ordering.test.ts +11 -110
- package/templates/project-starter/src/__tests__/vite-config-utils.ts +33 -0
- package/templates/project-starter/src/character.ts +14 -17
- package/templates/project-starter/tsup.config.ts +1 -1
- package/templates/project-tee-starter/package.json +3 -3
- package/templates/project-tee-starter/src/character.ts +3 -0
- package/dist/chunk-5DYKNYEY.js +0 -2262
- package/dist/chunk-XB5JBFO6.js +0 -41
- package/dist/chunk-ZWDXDKSA.js +0 -281
- package/dist/setup-UQOWDHFN.js +0 -20
- package/dist/templates/plugin-starter/dist/index.js +0 -391
- package/dist/templates/plugin-starter/dist/index.js.map +0 -1
- package/templates/plugin-starter/dist/.vite/manifest.json +0 -11
- package/templates/plugin-starter/dist/index.d.ts +0 -14
- package/templates/plugin-starter/dist/index.js +0 -391
- package/templates/plugin-starter/dist/index.js.map +0 -1
package/dist/chunk-XB5JBFO6.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { createRequire } from 'module';
|
|
3
|
-
const require = createRequire(import.meta.url);
|
|
4
|
-
|
|
5
|
-
var __create = Object.create;
|
|
6
|
-
var __defProp = Object.defineProperty;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
10
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
12
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
13
|
-
}) : x)(function(x) {
|
|
14
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
15
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
16
|
-
});
|
|
17
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
-
};
|
|
20
|
-
var __copyProps = (to, from, except, desc) => {
|
|
21
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
-
for (let key of __getOwnPropNames(from))
|
|
23
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
-
}
|
|
26
|
-
return to;
|
|
27
|
-
};
|
|
28
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
30
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
31
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
32
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
33
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
34
|
-
mod
|
|
35
|
-
));
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
__require,
|
|
39
|
-
__commonJS,
|
|
40
|
-
__toESM
|
|
41
|
-
};
|
package/dist/chunk-ZWDXDKSA.js
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { createRequire } from 'module';
|
|
3
|
-
const require = createRequire(import.meta.url);
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
ensureElizaDir,
|
|
7
|
-
installPluginWithSpinner,
|
|
8
|
-
promptAndStoreAnthropicKey,
|
|
9
|
-
promptAndStoreGoogleKey,
|
|
10
|
-
promptAndStoreOllamaConfig,
|
|
11
|
-
promptAndStoreOllamaEmbeddingConfig,
|
|
12
|
-
promptAndStoreOpenAIKey,
|
|
13
|
-
promptAndStoreOpenRouterKey,
|
|
14
|
-
promptAndStorePostgresUrl,
|
|
15
|
-
setupPgLite
|
|
16
|
-
} from "./chunk-PSSTO76B.js";
|
|
17
|
-
|
|
18
|
-
// src/commands/create/actions/setup.ts
|
|
19
|
-
import { existsSync } from "fs";
|
|
20
|
-
import fs from "fs/promises";
|
|
21
|
-
async function createProjectDirectories(targetDir) {
|
|
22
|
-
await ensureElizaDir(targetDir);
|
|
23
|
-
}
|
|
24
|
-
async function setupAIModelConfig(aiModel, envFilePath, isNonInteractive = false) {
|
|
25
|
-
try {
|
|
26
|
-
switch (aiModel) {
|
|
27
|
-
case "local": {
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
case "openai": {
|
|
31
|
-
if (isNonInteractive) {
|
|
32
|
-
let content = "";
|
|
33
|
-
if (existsSync(envFilePath)) {
|
|
34
|
-
content = await fs.readFile(envFilePath, "utf8");
|
|
35
|
-
}
|
|
36
|
-
if (content && !content.endsWith("\n")) {
|
|
37
|
-
content += "\n";
|
|
38
|
-
}
|
|
39
|
-
content += "\n# AI Model Configuration\n";
|
|
40
|
-
content += "# OpenAI Configuration\n";
|
|
41
|
-
content += "OPENAI_API_KEY=your_openai_api_key_here\n";
|
|
42
|
-
content += "# Get your API key from: https://platform.openai.com/api-keys\n";
|
|
43
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
44
|
-
} else {
|
|
45
|
-
await promptAndStoreOpenAIKey(envFilePath);
|
|
46
|
-
}
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
case "claude": {
|
|
50
|
-
if (isNonInteractive) {
|
|
51
|
-
let content = "";
|
|
52
|
-
if (existsSync(envFilePath)) {
|
|
53
|
-
content = await fs.readFile(envFilePath, "utf8");
|
|
54
|
-
}
|
|
55
|
-
if (content && !content.endsWith("\n")) {
|
|
56
|
-
content += "\n";
|
|
57
|
-
}
|
|
58
|
-
content += "\n# AI Model Configuration\n";
|
|
59
|
-
content += "# Anthropic API Configuration\n";
|
|
60
|
-
content += "ANTHROPIC_API_KEY=your_anthropic_api_key_here\n";
|
|
61
|
-
content += "# Get your API key from: https://console.anthropic.com/\n";
|
|
62
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
63
|
-
} else {
|
|
64
|
-
await promptAndStoreAnthropicKey(envFilePath);
|
|
65
|
-
}
|
|
66
|
-
break;
|
|
67
|
-
}
|
|
68
|
-
case "openrouter": {
|
|
69
|
-
if (isNonInteractive) {
|
|
70
|
-
let content = "";
|
|
71
|
-
if (existsSync(envFilePath)) {
|
|
72
|
-
content = await fs.readFile(envFilePath, "utf8");
|
|
73
|
-
}
|
|
74
|
-
if (content && !content.endsWith("\n")) {
|
|
75
|
-
content += "\n";
|
|
76
|
-
}
|
|
77
|
-
content += "\n# AI Model Configuration\n";
|
|
78
|
-
content += "# OpenRouter Configuration\n";
|
|
79
|
-
content += "OPENROUTER_API_KEY=your_openrouter_api_key_here\n";
|
|
80
|
-
content += "# Get your API key from: https://openrouter.ai/keys\n";
|
|
81
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
82
|
-
} else {
|
|
83
|
-
await promptAndStoreOpenRouterKey(envFilePath);
|
|
84
|
-
}
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
case "ollama": {
|
|
88
|
-
if (isNonInteractive) {
|
|
89
|
-
let content = "";
|
|
90
|
-
if (existsSync(envFilePath)) {
|
|
91
|
-
content = await fs.readFile(envFilePath, "utf8");
|
|
92
|
-
}
|
|
93
|
-
if (content && !content.endsWith("\n")) {
|
|
94
|
-
content += "\n";
|
|
95
|
-
}
|
|
96
|
-
content += "\n# AI Model Configuration\n";
|
|
97
|
-
content += "# Ollama Configuration\n";
|
|
98
|
-
content += "OLLAMA_API_ENDPOINT=http://localhost:11434\n";
|
|
99
|
-
content += "OLLAMA_MODEL=llama2\n";
|
|
100
|
-
content += "USE_OLLAMA_TEXT_MODELS=true\n";
|
|
101
|
-
content += "# Make sure Ollama is installed and running: https://ollama.ai/\n";
|
|
102
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
103
|
-
} else {
|
|
104
|
-
await promptAndStoreOllamaConfig(envFilePath);
|
|
105
|
-
}
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
case "google": {
|
|
109
|
-
if (isNonInteractive) {
|
|
110
|
-
let content = "";
|
|
111
|
-
if (existsSync(envFilePath)) {
|
|
112
|
-
content = await fs.readFile(envFilePath, "utf8");
|
|
113
|
-
}
|
|
114
|
-
if (content && !content.endsWith("\n")) {
|
|
115
|
-
content += "\n";
|
|
116
|
-
}
|
|
117
|
-
content += "\n# AI Model Configuration\n";
|
|
118
|
-
content += "# Google Generative AI Configuration\n";
|
|
119
|
-
content += "GOOGLE_GENERATIVE_AI_API_KEY=your_google_api_key_here\n";
|
|
120
|
-
content += "# Get your API key from: https://aistudio.google.com/apikey\n";
|
|
121
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
122
|
-
} else {
|
|
123
|
-
await promptAndStoreGoogleKey(envFilePath);
|
|
124
|
-
}
|
|
125
|
-
break;
|
|
126
|
-
}
|
|
127
|
-
default:
|
|
128
|
-
console.warn(`Unknown AI model: ${aiModel}, skipping configuration`);
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
} catch (error) {
|
|
132
|
-
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
|
133
|
-
console.error(`Failed to set up AI model configuration: ${errorMessage}`);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
function hasValidApiKey(content, keyName) {
|
|
137
|
-
const regex = new RegExp(`^${keyName}=(.+)$`, "m");
|
|
138
|
-
const match = content.match(regex);
|
|
139
|
-
if (!match) return false;
|
|
140
|
-
const value = match[1].trim();
|
|
141
|
-
return value !== "" && !value.includes("your_") && !value.includes("_here") && !value.includes("PLACEHOLDER") && !value.includes("placeholder");
|
|
142
|
-
}
|
|
143
|
-
async function setupEmbeddingModelConfig(embeddingModel, envFilePath, isNonInteractive = false) {
|
|
144
|
-
try {
|
|
145
|
-
let content = "";
|
|
146
|
-
if (existsSync(envFilePath)) {
|
|
147
|
-
content = await fs.readFile(envFilePath, "utf8");
|
|
148
|
-
}
|
|
149
|
-
if (content && !content.endsWith("\n")) {
|
|
150
|
-
content += "\n";
|
|
151
|
-
}
|
|
152
|
-
switch (embeddingModel) {
|
|
153
|
-
case "local": {
|
|
154
|
-
content += "\n# Embedding Model Configuration (Fallback)\n";
|
|
155
|
-
content += "# Using local embeddings - no additional configuration needed\n";
|
|
156
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
157
|
-
break;
|
|
158
|
-
}
|
|
159
|
-
case "openai": {
|
|
160
|
-
if (!hasValidApiKey(content, "OPENAI_API_KEY")) {
|
|
161
|
-
if (isNonInteractive) {
|
|
162
|
-
if (!content.includes("OPENAI_API_KEY=")) {
|
|
163
|
-
content += "\n# Embedding Model Configuration (Fallback)\n";
|
|
164
|
-
content += "# OpenAI Embeddings Configuration\n";
|
|
165
|
-
content += "OPENAI_API_KEY=your_openai_api_key_here\n";
|
|
166
|
-
content += "# Get your API key from: https://platform.openai.com/api-keys\n";
|
|
167
|
-
}
|
|
168
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
169
|
-
} else {
|
|
170
|
-
await promptAndStoreOpenAIKey(envFilePath);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
break;
|
|
174
|
-
}
|
|
175
|
-
case "ollama": {
|
|
176
|
-
if (!hasValidApiKey(content, "OLLAMA_API_ENDPOINT")) {
|
|
177
|
-
if (isNonInteractive) {
|
|
178
|
-
if (!content.includes("OLLAMA_API_ENDPOINT=")) {
|
|
179
|
-
content += "\n# Embedding Model Configuration (Fallback)\n";
|
|
180
|
-
content += "# Ollama Embeddings Configuration\n";
|
|
181
|
-
content += "OLLAMA_API_ENDPOINT=http://localhost:11434\n";
|
|
182
|
-
content += "OLLAMA_EMBEDDING_MODEL=nomic-embed-text\n";
|
|
183
|
-
content += "USE_OLLAMA_EMBEDDINGS=true\n";
|
|
184
|
-
content += "# Make sure Ollama is installed and running: https://ollama.ai/\n";
|
|
185
|
-
}
|
|
186
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
187
|
-
} else {
|
|
188
|
-
await promptAndStoreOllamaEmbeddingConfig(envFilePath);
|
|
189
|
-
}
|
|
190
|
-
} else {
|
|
191
|
-
if (isNonInteractive) {
|
|
192
|
-
if (!content.includes("OLLAMA_EMBEDDING_MODEL")) {
|
|
193
|
-
content += "OLLAMA_EMBEDDING_MODEL=nomic-embed-text\n";
|
|
194
|
-
}
|
|
195
|
-
if (!content.includes("USE_OLLAMA_EMBEDDINGS")) {
|
|
196
|
-
content += "USE_OLLAMA_EMBEDDINGS=true\n";
|
|
197
|
-
}
|
|
198
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
199
|
-
} else {
|
|
200
|
-
await promptAndStoreOllamaEmbeddingConfig(envFilePath);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
case "google": {
|
|
206
|
-
if (!hasValidApiKey(content, "GOOGLE_GENERATIVE_AI_API_KEY")) {
|
|
207
|
-
if (isNonInteractive) {
|
|
208
|
-
if (!content.includes("GOOGLE_GENERATIVE_AI_API_KEY=")) {
|
|
209
|
-
content += "\n# Embedding Model Configuration (Fallback)\n";
|
|
210
|
-
content += "# Google Generative AI Embeddings Configuration\n";
|
|
211
|
-
content += "GOOGLE_GENERATIVE_AI_API_KEY=your_google_api_key_here\n";
|
|
212
|
-
content += "# Get your API key from: https://aistudio.google.com/apikey\n";
|
|
213
|
-
}
|
|
214
|
-
await fs.writeFile(envFilePath, content, "utf8");
|
|
215
|
-
} else {
|
|
216
|
-
await promptAndStoreGoogleKey(envFilePath);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
default:
|
|
222
|
-
console.warn(`Unknown embedding model: ${embeddingModel}, skipping configuration`);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
} catch (error) {
|
|
226
|
-
const errorMessage = error instanceof Error ? error.message : "Unknown error";
|
|
227
|
-
console.error(`Failed to set up embedding model configuration: ${errorMessage}`);
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
function resolveModelToPlugin(modelName) {
|
|
231
|
-
const modelToPlugin = {
|
|
232
|
-
openai: "openai",
|
|
233
|
-
claude: "anthropic",
|
|
234
|
-
anthropic: "anthropic",
|
|
235
|
-
openrouter: "openrouter",
|
|
236
|
-
ollama: "ollama",
|
|
237
|
-
google: "google-genai"
|
|
238
|
-
};
|
|
239
|
-
return modelToPlugin[modelName] || null;
|
|
240
|
-
}
|
|
241
|
-
async function installModelPlugin(modelName, targetDir, purpose = "") {
|
|
242
|
-
const pluginName = resolveModelToPlugin(modelName);
|
|
243
|
-
if (!pluginName) {
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
await installPluginWithSpinner(pluginName, targetDir, purpose);
|
|
247
|
-
}
|
|
248
|
-
async function setupProjectEnvironment(targetDir, database, aiModel, embeddingModel, isNonInteractive = false) {
|
|
249
|
-
await createProjectDirectories(targetDir);
|
|
250
|
-
const envFilePath = `${targetDir}/.env`;
|
|
251
|
-
if (database === "postgres") {
|
|
252
|
-
if (!isNonInteractive) {
|
|
253
|
-
await promptAndStorePostgresUrl(envFilePath);
|
|
254
|
-
}
|
|
255
|
-
} else if (database === "pglite") {
|
|
256
|
-
await setupPgLite(void 0, `${targetDir}/.env`, targetDir);
|
|
257
|
-
}
|
|
258
|
-
if (!isNonInteractive) {
|
|
259
|
-
await setupAIModelConfig(aiModel, envFilePath, isNonInteractive);
|
|
260
|
-
if (embeddingModel) {
|
|
261
|
-
await setupEmbeddingModelConfig(embeddingModel, envFilePath, isNonInteractive);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
if (aiModel !== "local") {
|
|
265
|
-
await installModelPlugin(aiModel, targetDir);
|
|
266
|
-
}
|
|
267
|
-
if (embeddingModel && embeddingModel !== "local") {
|
|
268
|
-
const aiPluginName = resolveModelToPlugin(aiModel);
|
|
269
|
-
const embeddingPluginName = resolveModelToPlugin(embeddingModel);
|
|
270
|
-
if (embeddingPluginName && embeddingPluginName !== aiPluginName) {
|
|
271
|
-
await installModelPlugin(embeddingModel, targetDir, "for embeddings");
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export {
|
|
277
|
-
createProjectDirectories,
|
|
278
|
-
setupAIModelConfig,
|
|
279
|
-
setupEmbeddingModelConfig,
|
|
280
|
-
setupProjectEnvironment
|
|
281
|
-
};
|
package/dist/setup-UQOWDHFN.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { createRequire } from 'module';
|
|
3
|
-
const require = createRequire(import.meta.url);
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
createProjectDirectories,
|
|
7
|
-
setupAIModelConfig,
|
|
8
|
-
setupEmbeddingModelConfig,
|
|
9
|
-
setupProjectEnvironment
|
|
10
|
-
} from "./chunk-ZWDXDKSA.js";
|
|
11
|
-
import "./chunk-PSSTO76B.js";
|
|
12
|
-
import "./chunk-5DYKNYEY.js";
|
|
13
|
-
import "./chunk-F24MS2YR.js";
|
|
14
|
-
import "./chunk-XB5JBFO6.js";
|
|
15
|
-
export {
|
|
16
|
-
createProjectDirectories,
|
|
17
|
-
setupAIModelConfig,
|
|
18
|
-
setupEmbeddingModelConfig,
|
|
19
|
-
setupProjectEnvironment
|
|
20
|
-
};
|