agroplan-ai-cli 1.0.5 → 1.0.6
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 +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -609,7 +609,6 @@ function openCommand() {
|
|
|
609
609
|
// src/commands/setup.ts
|
|
610
610
|
import { existsSync as existsSync6, cpSync, rmSync } from "fs";
|
|
611
611
|
import { join as join3, dirname as dirname2 } from "path";
|
|
612
|
-
var __dirname = "C:\\Users\\Defal\\Documents\\Projetos\\AgroPlan\\tools\\agroplan-cli\\src\\commands";
|
|
613
612
|
async function setupCommand(force = false, pythonPath) {
|
|
614
613
|
console.log(`\uD83D\uDEE0\uFE0F Configurando AgroPlan AI - API Local
|
|
615
614
|
`);
|
|
@@ -741,9 +740,16 @@ async function setupCommand(force = false, pythonPath) {
|
|
|
741
740
|
return;
|
|
742
741
|
}
|
|
743
742
|
console.log(" \u2705 Servidor web configurado");
|
|
744
|
-
|
|
743
|
+
let version = "1.0.5";
|
|
744
|
+
try {
|
|
745
|
+
const packagePath = __require.resolve("agroplan-ai-cli/package.json");
|
|
746
|
+
const packageJson = __require(packagePath);
|
|
747
|
+
version = packageJson.version || "1.0.5";
|
|
748
|
+
} catch {
|
|
749
|
+
version = "1.0.5";
|
|
750
|
+
}
|
|
745
751
|
saveSetupState({
|
|
746
|
-
version
|
|
752
|
+
version,
|
|
747
753
|
installedAt: new Date().toISOString(),
|
|
748
754
|
backendPath: backendDir,
|
|
749
755
|
python: python.version || "unknown",
|
|
@@ -774,7 +780,7 @@ var COMMANDS = {
|
|
|
774
780
|
open: "Abre o AgroPlan AI no navegador"
|
|
775
781
|
};
|
|
776
782
|
function showHelp() {
|
|
777
|
-
console.log("\uD83C\uDF31 AgroPlan AI - CLI Local v1.0.
|
|
783
|
+
console.log("\uD83C\uDF31 AgroPlan AI - CLI Local v1.0.6");
|
|
778
784
|
console.log(` Launcher para modo local acelerado
|
|
779
785
|
`);
|
|
780
786
|
console.log("\uD83D\uDCCB Comandos dispon\xEDveis:");
|