@hugo.bastidas/agent-foundation 0.2.0 → 0.2.1
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 +37 -7
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,12 +1,41 @@
|
|
|
1
1
|
# agent-foundation
|
|
2
2
|
|
|
3
3
|
CLI que instala convenciones personales de trabajo para agentes de IA
|
|
4
|
-
(`AGENT_FOUNDATION.md`) en las instrucciones globales de Claude Code, Codex
|
|
5
|
-
OpenCode. Una sola fuente de verdad para convenciones de código,
|
|
6
|
-
estructura de proyectos y documentación — aplicada de forma idempotente
|
|
7
|
-
todos los hosts.
|
|
4
|
+
(`AGENT_FOUNDATION.md`) en las instrucciones globales de Claude Code, Codex,
|
|
5
|
+
OpenCode y Pi Agent. Una sola fuente de verdad para convenciones de código,
|
|
6
|
+
commits, estructura de proyectos y documentación — aplicada de forma idempotente
|
|
7
|
+
en todos los hosts.
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Instalación interactiva
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx -y @hugo.bastidas/agent-foundation
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Muestra un menú para elegir la acción y los hosts:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
,_,
|
|
19
|
+
(O,O)
|
|
20
|
+
( )
|
|
21
|
+
" "
|
|
22
|
+
agent-foundation v0.2.0
|
|
23
|
+
Install your AI agent conventions
|
|
24
|
+
|
|
25
|
+
◆ Choose an action
|
|
26
|
+
│ ● Install
|
|
27
|
+
│ ○ Remove
|
|
28
|
+
│ ○ Status
|
|
29
|
+
│ ○ Exit
|
|
30
|
+
|
|
31
|
+
◆ Target hosts (space to select, enter to confirm)
|
|
32
|
+
│ ◻ Claude Code
|
|
33
|
+
│ ◻ Codex
|
|
34
|
+
│ ◻ OpenCode
|
|
35
|
+
│ ◻ Pi Agent
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Uso no-interactivo
|
|
10
39
|
|
|
11
40
|
```bash
|
|
12
41
|
# instalar en todos los hosts
|
|
@@ -19,7 +48,7 @@ npx -y @hugo.bastidas/agent-foundation install --host claude,codex
|
|
|
19
48
|
npx -y @hugo.bastidas/agent-foundation status
|
|
20
49
|
|
|
21
50
|
# desinstalar
|
|
22
|
-
npx -y @hugo.bastidas/agent-foundation remove
|
|
51
|
+
npx -y @hugo.bastidas/agent-foundation remove --host all
|
|
23
52
|
```
|
|
24
53
|
|
|
25
54
|
## Qué hace
|
|
@@ -36,6 +65,7 @@ Por cada host seleccionado:
|
|
|
36
65
|
| Claude Code | `~/.claude/CLAUDE.md` |
|
|
37
66
|
| Codex | `~/.codex/AGENTS.md` |
|
|
38
67
|
| OpenCode | `~/.config/opencode/AGENTS.md` |
|
|
68
|
+
| Pi Agent | `~/.pi/agent/AGENTS.md` |
|
|
39
69
|
|
|
40
70
|
La operación es idempotente: re-ejecutar `install` actualiza el bloque sin
|
|
41
71
|
duplicarlo. `remove` elimina el bloque y el sidecar dejando intacto el resto
|
|
@@ -45,7 +75,7 @@ del archivo.
|
|
|
45
75
|
|
|
46
76
|
```bash
|
|
47
77
|
npm install
|
|
48
|
-
npm run build
|
|
78
|
+
npm run build # esbuild + tsc
|
|
49
79
|
npm test
|
|
50
80
|
```
|
|
51
81
|
|
package/dist/cli.js
CHANGED
|
@@ -1356,7 +1356,7 @@ var OWL = `
|
|
|
1356
1356
|
" "`;
|
|
1357
1357
|
function printBanner() {
|
|
1358
1358
|
console.log(OWL);
|
|
1359
|
-
console.log(` agent-foundation v${"0.2.
|
|
1359
|
+
console.log(` agent-foundation v${"0.2.1"}`);
|
|
1360
1360
|
console.log(" Install your AI agent conventions\n");
|
|
1361
1361
|
}
|
|
1362
1362
|
async function selectHosts() {
|
package/package.json
CHANGED