pokt-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/README.md +26 -3
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -8,14 +8,37 @@ CLI de **Vibe Coding** com IA: OpenRouter, Ollama (local e cloud), Gemini e prov
|
|
|
8
8
|
|
|
9
9
|
## Instalação
|
|
10
10
|
|
|
11
|
+
O pacote no npm chama-se **`pokt-cli`**; o comando no terminal é **`pokt`** (ou **`pokt-cli`**).
|
|
12
|
+
|
|
11
13
|
```bash
|
|
12
|
-
# Instalação global
|
|
14
|
+
# Instalação global (recomendado para o comando `pokt` no PATH)
|
|
13
15
|
npm install -g pokt-cli
|
|
14
16
|
|
|
15
|
-
#
|
|
16
|
-
npx pokt-cli
|
|
17
|
+
# Sem instalar (sempre funciona em qualquer máquina)
|
|
18
|
+
npx --yes pokt-cli
|
|
17
19
|
```
|
|
18
20
|
|
|
21
|
+
### O comando `pokt` não é reconhecido?
|
|
22
|
+
|
|
23
|
+
1. **Instalação local** (`npm install pokt-cli` dentro de um projeto): o `pokt` **não** fica no PATH global. Use:
|
|
24
|
+
- `npx pokt-cli` ou
|
|
25
|
+
- `npm exec pokt-cli` ou
|
|
26
|
+
- `./node_modules/.bin/pokt` (Git Bash / WSL / macOS/Linux).
|
|
27
|
+
|
|
28
|
+
2. **Windows – pasta do npm no PATH**: após `npm install -g pokt-cli`, o executável fica na pasta global do npm. Confira:
|
|
29
|
+
```bash
|
|
30
|
+
npm config get prefix
|
|
31
|
+
```
|
|
32
|
+
O diretório **`prefix`** e a subpasta **`prefix\bin`** (ou no Windows muitas vezes **`%AppData%\npm`**) precisam estar no **PATH** do sistema. Reinicie o terminal após alterar.
|
|
33
|
+
|
|
34
|
+
3. **Windows PowerShell – “running scripts is disabled”**: o npm cria `pokt.ps1`. Se a política bloquear scripts, use **Prompt de Comando (cmd)** para rodar `pokt`, ou:
|
|
35
|
+
```powershell
|
|
36
|
+
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
|
|
37
|
+
```
|
|
38
|
+
Ou continue usando **`npx pokt-cli`**, que costuma contornar o problema.
|
|
39
|
+
|
|
40
|
+
4. **Linux/macOS – “bad interpreter” ou comando não encontrado**: em versões antigas publicadas com **CRLF** no arquivo da CLI, reinstale a versão mais recente (`npm install -g pokt-cli@latest`).
|
|
41
|
+
|
|
19
42
|
## Uso
|
|
20
43
|
|
|
21
44
|
Sem argumentos, o Pokt abre um menu interativo:
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pokt-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Vibe Coding AI CLI for OpenRouter and Ollama",
|
|
5
5
|
"main": "./dist/bin/pokt.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"pokt": "dist/bin/pokt.js"
|
|
8
|
+
"pokt": "dist/bin/pokt.js",
|
|
9
|
+
"pokt-cli": "dist/bin/pokt.js"
|
|
9
10
|
},
|
|
10
11
|
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
+
"build": "tsc && node scripts/ensure-bin-lf.js",
|
|
12
13
|
"start": "node ./dist/bin/pokt.js",
|
|
13
14
|
"dev": "tsx ./src/bin/pokt.ts",
|
|
14
15
|
"prepublishOnly": "npm run build"
|