@by-lua/lspec-subagents 1.0.1 → 1.0.4
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 +38 -49
- package/install.sh +3 -3
- package/package.json +3 -3
- package/uninstall.sh +1 -1
- package/update.sh +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
# lspec-subagents
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**9 specialized sub-agents for PI.dev** — extensão standalone com modelo centralizado de configuração.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Inspirado no oh-my-opencode-slim. Fork do `@tintinweb/pi-subagents` — agentes padrão (general-purpose, Explore, Plan) **completamente removidos**, só os9 L-Spec existem.
|
|
6
|
+
|
|
7
|
+
## Instalação, Atualizar, Desinstalar
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Instalar
|
|
11
|
+
pi install npm:bylua-lspec-subagents
|
|
12
|
+
|
|
13
|
+
# Atualizar
|
|
14
|
+
pi update npm:bylua-lspec-subagents
|
|
15
|
+
|
|
16
|
+
# Desinstalar
|
|
17
|
+
pi uninstall npm:bylua-lspec-subagents
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
> Alternativa (Git): `curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/install.sh | bash`
|
|
6
21
|
|
|
7
22
|
## Agentes
|
|
8
23
|
|
|
@@ -50,45 +65,27 @@ Pode usar qualquer modelo disponível no seu provedor. O observer precisa de um
|
|
|
50
65
|
2. Global (`~/.pi/agent/lspec-model-config.json`)
|
|
51
66
|
3. Defaults embutidos (claude-sonnet-4, gpt-4o-mini, claude-opus-4)
|
|
52
67
|
|
|
53
|
-
##
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/install.sh | bash
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
O instalador faz 2 passos:
|
|
60
|
-
1. `pi install git:github.com/by-lua/lspec-subagents` — instala a extensão standalone
|
|
61
|
-
2. Copia os 9 agent `.md` files pra `~/.pi/agents/` + cria `lspec-model-config.json` (se não existir)
|
|
62
|
-
|
|
63
|
-
Requer: `git`, `pi` (PI.dev).
|
|
64
|
-
|
|
65
|
-
### Dependências Opcionais (Recomendadas)
|
|
68
|
+
## Como usar
|
|
66
69
|
|
|
67
|
-
|
|
70
|
+
No PI, use o tool `Agent` com o tipo do agente:
|
|
68
71
|
|
|
69
|
-
```bash
|
|
70
|
-
pi install npm:pi-cymbal # Code navigation (explorer, oracle, fixer, orchestrator)
|
|
71
|
-
pi install npm:@davehardy20/pi-lsp-tools # LSP-powered code tools (explorer, fixer, oracle)
|
|
72
|
-
pi install npm:pi-mermaid # Mermaid diagrams (orchestrator, designer)
|
|
73
72
|
```
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
### Atualizar
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/update.sh | bash
|
|
73
|
+
Agent(agent_type="explorer", prompt="Find all React components in src/")
|
|
74
|
+
Agent(agent_type="orchestrator", prompt="Run L-Spec Discovery for the auth feature")
|
|
81
75
|
```
|
|
82
76
|
|
|
83
|
-
|
|
77
|
+
Ou customize agentes `.md` em `.pi/agents/` para sobrescrever os defaults.
|
|
84
78
|
|
|
85
|
-
|
|
86
|
-
curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/uninstall.sh | bash
|
|
87
|
-
```
|
|
79
|
+
## Diferenças do pi-subagents original
|
|
88
80
|
|
|
89
|
-
|
|
81
|
+
- ✅ **9 agentes L-Spec** embutidos no código (não override por .md)
|
|
82
|
+
- ✅ **Zero agentes padrão** — general-purpose/Explore/Plan removidos do source
|
|
83
|
+
- ✅ **Placeholders de modelo** (`{{model:orchestrator}}`)
|
|
84
|
+
- ✅ **Config JSON centralizada** (projeto + global + defaults)
|
|
85
|
+
- ✅ **Fallback** mudou de `general-purpose` pra `orchestrator`
|
|
86
|
+
- ✅ **Extensão standalone** — não depende do pacote npm @tintinweb
|
|
90
87
|
|
|
91
|
-
|
|
88
|
+
## Instalação manual (sem npm)
|
|
92
89
|
|
|
93
90
|
```bash
|
|
94
91
|
pi install git:github.com/by-lua/lspec-subagents # extensão standalone
|
|
@@ -98,26 +95,18 @@ cp /tmp/lspec-sub/lspec-model-config.example.json ~/.pi/agent/lspec-model-config
|
|
|
98
95
|
rm -rf /tmp/lspec-sub
|
|
99
96
|
```
|
|
100
97
|
|
|
101
|
-
##
|
|
98
|
+
## Atualizar / Desinstalar
|
|
102
99
|
|
|
103
|
-
|
|
100
|
+
```bash
|
|
101
|
+
# Atualizar
|
|
102
|
+
curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/update.sh | bash
|
|
104
103
|
|
|
104
|
+
# Desinstalar
|
|
105
|
+
curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/uninstall.sh | bash
|
|
105
106
|
```
|
|
106
|
-
Agent(agent_type="explorer", prompt="Find all React components in src/")
|
|
107
|
-
Agent(agent_type="orchestrator", prompt="Run L-Spec Discovery for the auth feature")
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Ou customize agentes `.md` em `.pi/agents/` para sobrescrever os defaults.
|
|
111
107
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
- ✅ **9 agentes L-Spec** embutidos no código (não override por .md)
|
|
115
|
-
- ✅ **Zero agentes padrão** — general-purpose/Explore/Plan removidos do source
|
|
116
|
-
- ✅ **Placeholders de modelo** (`{{model:orchestrator}}`)
|
|
117
|
-
- ✅ **Config JSON centralizada** (projeto + global + defaults)
|
|
118
|
-
- ✅ **Fallback** mudou de `general-purpose` pra `orchestrator`
|
|
119
|
-
- ✅ **Extensão standalone** — não depende do pacote npm @tintinweb
|
|
108
|
+
Remove extensão + 9 agent .md files. Preserva `lspec-model-config.json`.
|
|
120
109
|
|
|
121
110
|
## Licença
|
|
122
111
|
|
|
123
|
-
MIT — fork de `@tintinweb/pi-subagents` (MIT).
|
|
112
|
+
MIT — fork de `@tintinweb/pi-subagents` (MIT).
|
package/install.sh
CHANGED
|
@@ -31,11 +31,11 @@ fi
|
|
|
31
31
|
echo -e "${BLUE}→ Removendo extensões conflitantes...${NC}"
|
|
32
32
|
pi remove "npm:@tintinweb/pi-subagents" 2>/dev/null && echo -e " ${YELLOW}⊘${NC} Removido npm:@tintinweb/pi-subagents (conflito)"
|
|
33
33
|
pi remove "git:github.com/by-lua/lspec-subagents" 2>/dev/null
|
|
34
|
-
pi remove "npm
|
|
34
|
+
pi remove "npm:bylua-lspec-subagents" 2>/dev/null
|
|
35
35
|
|
|
36
36
|
# ── Passo 1: Instalar extensão via npm ──
|
|
37
37
|
echo -e "${BLUE}→ Instalando @by-lua/lspec-subagents via npm...${NC}"
|
|
38
|
-
pi install "npm
|
|
38
|
+
pi install "npm:bylua-lspec-subagents" 2>/dev/null
|
|
39
39
|
echo -e " ${GREEN}✓${NC} Extensão instalada (9 agentes L-Spec + /agents)"
|
|
40
40
|
|
|
41
41
|
# ── Passo 2: Clonar e copiar .md de agentes ──
|
|
@@ -69,7 +69,7 @@ echo ""
|
|
|
69
69
|
echo -e "${GREEN}✓ lspec-subagents instalado!${NC} ($agent_count .md agents | extensão @by-lua/lspec-subagents)"
|
|
70
70
|
echo ""
|
|
71
71
|
echo "Agentes: orchestrator | explorer | librarian | oracle | designer | fixer | observer | council | councillor"
|
|
72
|
-
echo "Extensão: pi install npm
|
|
72
|
+
echo "Extensão: pi install npm:bylua-lspec-subagents"
|
|
73
73
|
echo "Config: ~/.pi/agent/lspec-model-config.json"
|
|
74
74
|
echo "Atualizar: curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/update.sh | bash"
|
|
75
75
|
echo "Desinstalar: curl -fsSL https://raw.githubusercontent.com/by-lua/lspec-subagents/main/uninstall.sh | bash"
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@by-lua/lspec-subagents",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "L-Spec Subagents \u2014 9 specialized agents for PI.dev with centralized model config (inspired by oh-my-opencode-slim). Forked from @tintinweb/pi-subagents.",
|
|
5
|
-
"author": "Lua
|
|
5
|
+
"author": "Lua (https://github.com/by-lua)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"extensions": [
|
|
46
46
|
"./dist/index.js"
|
|
47
47
|
],
|
|
48
|
-
"image": "https://raw.githubusercontent.com/lua/lspec-subagents/main/media/screenshot.png"
|
|
48
|
+
"image": "https://raw.githubusercontent.com/by-lua/lspec-subagents/main/media/screenshot.png"
|
|
49
49
|
}
|
|
50
50
|
}
|
package/uninstall.sh
CHANGED
|
@@ -21,7 +21,7 @@ echo ""
|
|
|
21
21
|
# ── Remover extensão ──
|
|
22
22
|
echo -e "${BLUE}→ Removendo extensão...${NC}"
|
|
23
23
|
if command -v pi &>/dev/null; then
|
|
24
|
-
pi remove "npm
|
|
24
|
+
pi remove "npm:bylua-lspec-subagents" 2>/dev/null
|
|
25
25
|
pi remove "git:github.com/by-lua/lspec-subagents" 2>/dev/null
|
|
26
26
|
echo -e " ${GREEN}✓${NC} Extensão removida"
|
|
27
27
|
else
|
package/update.sh
CHANGED
|
@@ -27,9 +27,9 @@ fi
|
|
|
27
27
|
|
|
28
28
|
# ── Reinstalar extensão via npm ──
|
|
29
29
|
echo -e "${BLUE}→ Reinstalando extensão...${NC}"
|
|
30
|
-
pi remove "npm
|
|
30
|
+
pi remove "npm:bylua-lspec-subagents" 2>/dev/null
|
|
31
31
|
pi remove "git:github.com/by-lua/lspec-subagents" 2>/dev/null
|
|
32
|
-
pi install "npm
|
|
32
|
+
pi install "npm:bylua-lspec-subagents" 2>/dev/null
|
|
33
33
|
echo -e " ${GREEN}✓${NC} Extensão atualizada (@by-lua/lspec-subagents)"
|
|
34
34
|
|
|
35
35
|
# ── Reinstalar .md agents ──
|