@danhachuel/prodmaker 0.1.1 → 0.1.2
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/CHANGELOG.md +9 -0
- package/MANUAL-INSTALACAO.md +6 -0
- package/app/main.py +2 -2
- package/package.json +1 -1
- package/scripts/cli.mjs +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
Todas as versões seguem a etiqueta visual `MAJOR.MINOR.PATCH` com patch de dois dígitos
|
|
4
4
|
(o registry NPM normaliza `0.1.00` → `0.1.0`).
|
|
5
5
|
|
|
6
|
+
## 0.1.02 — 2026-10-25
|
|
7
|
+
|
|
8
|
+
- Launcher: caixa da URL em ASCII puro (evita mojibake de caracteres Unicode no CMD/Windows).
|
|
9
|
+
- Documentação (README/MANUAL): ressalva obrigatória — os comandos npx devem ser executados
|
|
10
|
+
**fora da pasta do repositório** (dentro dela o npx prioriza o projeto local sem
|
|
11
|
+
`node_modules/.bin`); para desenvolvimento local usar `node scripts\cli.mjs`.
|
|
12
|
+
- Validado ponta a ponta com o pacote publicado no registry (install com venv + deps,
|
|
13
|
+
auto-migração de porta 8188→8189, health e SPA servidos).
|
|
14
|
+
|
|
6
15
|
## 0.1.01 — 2026-10-25
|
|
7
16
|
|
|
8
17
|
- **Parte 2 — Frontend React + Vite + Tailwind (base AdsX 1:1).**
|
package/MANUAL-INSTALACAO.md
CHANGED
|
@@ -66,3 +66,9 @@ Verifica Node, Python, venv, dependências, storage, backend e porta.
|
|
|
66
66
|
| Porta 8188 ocupada | O launcher migra para 8189–8199 automaticamente; confira a URL impressa. |
|
|
67
67
|
| `settings.json corrompido` | O sistema preserva a cópia em `storage/state/settings.corrupt.json` e não sobrescreve. Restaure manualmente. |
|
|
68
68
|
| Erro no Windows sobre scripts desabilitados | Use `npx.cmd` (CMD/MobaXterm) em vez do `npx` do PowerShell. |
|
|
69
|
+
| `'prodmaker' não é reconhecido` ao rodar o npx | Execute os comandos npx **fora da pasta do repositório** (ex.: `%USERPROFILE%`). Dentro da pasta do projeto, o npx prioriza o pacote local (que não tem `node_modules/.bin`). Para desenvolvimento local use `node scripts\cli.mjs` na raiz do repositório. |
|
|
70
|
+
|
|
71
|
+
## Importante
|
|
72
|
+
|
|
73
|
+
- **Nunca rode os comandos npx dentro de `C:\Users\danha\Documents\REPOSITORIO\ProdMaker`** — o npx entende que você quer executar o projeto local. Use qualquer outra pasta.
|
|
74
|
+
- O ProdMaker **nunca abre o navegador** (REGRA ZERO): após iniciar, abra manualmente a URL impressa no terminal.
|
package/app/main.py
CHANGED
|
@@ -12,7 +12,7 @@ from fastapi.responses import FileResponse, HTMLResponse
|
|
|
12
12
|
from fastapi.staticfiles import StaticFiles
|
|
13
13
|
from pydantic import BaseModel
|
|
14
14
|
|
|
15
|
-
APP_VERSION = "0.1.
|
|
15
|
+
APP_VERSION = "0.1.02"
|
|
16
16
|
COOKIE_NAME = "prodmaker_session"
|
|
17
17
|
SESSION_DAYS = 30
|
|
18
18
|
|
|
@@ -261,7 +261,7 @@ def health():
|
|
|
261
261
|
|
|
262
262
|
@app.get("/api/version")
|
|
263
263
|
def version():
|
|
264
|
-
return {"version": APP_VERSION, "canonical": "0.1.
|
|
264
|
+
return {"version": APP_VERSION, "canonical": "0.1.2"}
|
|
265
265
|
|
|
266
266
|
|
|
267
267
|
@app.get("/api/settings")
|
package/package.json
CHANGED
package/scripts/cli.mjs
CHANGED
|
@@ -14,7 +14,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
14
14
|
const PKG_ROOT = path.resolve(__dirname, "..");
|
|
15
15
|
const APP_DIR = path.join(PKG_ROOT, "app");
|
|
16
16
|
const REQUIREMENTS = path.join(PKG_ROOT, "requirements.txt");
|
|
17
|
-
const APP_VERSION = "0.1.
|
|
17
|
+
const APP_VERSION = "0.1.02";
|
|
18
18
|
const DEFAULT_PORT = 8188;
|
|
19
19
|
|
|
20
20
|
const STORAGE_FOLDERS = ["state", "pages", "produtos", "artifacts", "downloads", "logs"];
|
|
@@ -78,12 +78,13 @@ function venvPython(home) {
|
|
|
78
78
|
|
|
79
79
|
function printUrlBox(port) {
|
|
80
80
|
const url = `http://localhost:${port}`;
|
|
81
|
+
const line = (text) => `| ${text}${" ".repeat(Math.max(0, 43 - text.length))}|`;
|
|
81
82
|
console.log("");
|
|
82
|
-
console.log("
|
|
83
|
-
console.log("
|
|
84
|
-
console.log(
|
|
85
|
-
console.log("
|
|
86
|
-
console.log("
|
|
83
|
+
console.log("+" + "-".repeat(45) + "+");
|
|
84
|
+
console.log(line("ProdMaker rodando em:"));
|
|
85
|
+
console.log(line(`>>> ${url}`));
|
|
86
|
+
console.log(line("Abra esta URL MANUALMENTE no navegador."));
|
|
87
|
+
console.log("+" + "-".repeat(45) + "+");
|
|
87
88
|
console.log("");
|
|
88
89
|
}
|
|
89
90
|
|