@elmohq/cli 0.2.7 → 0.2.9
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/index.js +17 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -418,7 +418,7 @@ async function configureProvidersInteractive(env) {
|
|
|
418
418
|
const mode = await p.select({
|
|
419
419
|
message: "Setup mode",
|
|
420
420
|
options: [
|
|
421
|
-
{ value: "recommended", label: "Recommended — one scraper + one direct API
|
|
421
|
+
{ value: "recommended", label: "Recommended — one scraper + one direct API" },
|
|
422
422
|
{ value: "custom", label: "Custom — pick each provider individually" },
|
|
423
423
|
],
|
|
424
424
|
initialValue: "recommended",
|
|
@@ -590,7 +590,7 @@ async function collectOlostep(env, targets) {
|
|
|
590
590
|
}
|
|
591
591
|
async function pickScraperTargets(args) {
|
|
592
592
|
const selected = (await p.multiselect({
|
|
593
|
-
message: `
|
|
593
|
+
message: `LLM Providers to track via ${args.providerLabel}`,
|
|
594
594
|
options: args.allModels.map((model) => ({ value: model, label: model })),
|
|
595
595
|
required: true,
|
|
596
596
|
initialValues: [...DEFAULT_SCRAPER_MODELS],
|
|
@@ -622,7 +622,7 @@ async function collectAnthropic(env, targets) {
|
|
|
622
622
|
assertNotCancelled(model);
|
|
623
623
|
const slug = model || DEFAULT_ANTHROPIC_MODEL;
|
|
624
624
|
const webSearch = await p.confirm({
|
|
625
|
-
message: "Enable
|
|
625
|
+
message: "Enable web search? (recommended, but more expensive)",
|
|
626
626
|
initialValue: true,
|
|
627
627
|
});
|
|
628
628
|
assertNotCancelled(webSearch);
|
|
@@ -650,7 +650,7 @@ async function collectOpenAI(env, targets) {
|
|
|
650
650
|
assertNotCancelled(model);
|
|
651
651
|
const slug = model || DEFAULT_OPENAI_MODEL;
|
|
652
652
|
const webSearch = await p.confirm({
|
|
653
|
-
message: "Enable
|
|
653
|
+
message: "Enable web search? (recommended, but more expensive)",
|
|
654
654
|
initialValue: true,
|
|
655
655
|
});
|
|
656
656
|
assertNotCancelled(webSearch);
|
|
@@ -678,7 +678,7 @@ async function collectMistral(env, targets) {
|
|
|
678
678
|
assertNotCancelled(model);
|
|
679
679
|
const slug = model || DEFAULT_MISTRAL_MODEL;
|
|
680
680
|
const webSearch = await p.confirm({
|
|
681
|
-
message: "Enable
|
|
681
|
+
message: "Enable web search? (recommended, but more expensive)",
|
|
682
682
|
initialValue: true,
|
|
683
683
|
});
|
|
684
684
|
assertNotCancelled(webSearch);
|
|
@@ -706,7 +706,7 @@ async function collectOpenRouter(env, targets) {
|
|
|
706
706
|
assertNotCancelled(model);
|
|
707
707
|
const slug = model || DEFAULT_OPENROUTER_MODEL;
|
|
708
708
|
const webSearch = await p.confirm({
|
|
709
|
-
message: "
|
|
709
|
+
message: "Enable web search? (recommended, but more expensive)",
|
|
710
710
|
initialValue: true,
|
|
711
711
|
});
|
|
712
712
|
assertNotCancelled(webSearch);
|
|
@@ -714,7 +714,7 @@ async function collectOpenRouter(env, targets) {
|
|
|
714
714
|
}
|
|
715
715
|
async function collectDataForSEO(env, targets) {
|
|
716
716
|
const enable = await p.confirm({
|
|
717
|
-
message: `Configure ${pc.bold("DataForSEO")}? (Google AI Mode scraping
|
|
717
|
+
message: `Configure ${pc.bold("DataForSEO")}? (Google AI Mode scraping)`,
|
|
718
718
|
initialValue: false,
|
|
719
719
|
});
|
|
720
720
|
assertNotCancelled(enable);
|
|
@@ -939,6 +939,7 @@ function buildComposeYaml(options) {
|
|
|
939
939
|
if (options.postgresMode === "docker") {
|
|
940
940
|
services.push(buildPostgresService());
|
|
941
941
|
services.push(buildDbMigrateService({
|
|
942
|
+
dev: options.dev,
|
|
942
943
|
dockerfilePath,
|
|
943
944
|
repoRoot: options.repoRoot,
|
|
944
945
|
}));
|
|
@@ -991,18 +992,15 @@ function buildPostgresService() {
|
|
|
991
992
|
].join("\n");
|
|
992
993
|
}
|
|
993
994
|
function buildDbMigrateService(options) {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
" build:",
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
"
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
" postgres:",
|
|
1004
|
-
" condition: service_healthy",
|
|
1005
|
-
].join("\n");
|
|
995
|
+
const lines = ["db-migrate:"];
|
|
996
|
+
if (options.dev) {
|
|
997
|
+
lines.push(" build:", ` context: ${options.repoRoot}`, ` dockerfile: ${options.dockerfilePath}`, " target: migrate");
|
|
998
|
+
}
|
|
999
|
+
else {
|
|
1000
|
+
lines.push(" image: elmohq/elmo-db-migrate:latest");
|
|
1001
|
+
}
|
|
1002
|
+
lines.push(" environment:", " - DATABASE_URL=postgres://postgres:postgres@postgres:5432/elmo", " depends_on:", " postgres:", " condition: service_healthy");
|
|
1003
|
+
return lines.join("\n");
|
|
1006
1004
|
}
|
|
1007
1005
|
function buildWebService(options) {
|
|
1008
1006
|
const lines = ["web:"];
|