@jmanuelcorral/openteam 0.1.0 → 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/.opencode/command/openteam.md +15 -0
- package/AGENTS.md +41 -41
- package/LICENSE +21 -21
- package/README.md +358 -315
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +883 -0
- package/dist/commands/baseline.d.ts +12 -0
- package/dist/commands/baseline.d.ts.map +1 -0
- package/dist/commands/dispatch.d.ts +17 -0
- package/dist/commands/dispatch.d.ts.map +1 -0
- package/dist/commands/doctor.d.ts +10 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/report.d.ts +22 -0
- package/dist/commands/report.d.ts.map +1 -0
- package/dist/commands/types.d.ts +6 -0
- package/dist/commands/types.d.ts.map +1 -0
- package/dist/config/persist.d.ts +14 -0
- package/dist/config/persist.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +407 -6
- package/dist/plugin/commandTool.d.ts +10 -0
- package/dist/plugin/commandTool.d.ts.map +1 -0
- package/dist/telemetry/read.d.ts +14 -0
- package/dist/telemetry/read.d.ts.map +1 -0
- package/package.json +8 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Comandos runtime de openteam (baseline show|set|auto, doctor, report)
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
Usa la herramienta `openteam` para ejecutar el comando indicado por el usuario: $ARGUMENTS
|
|
6
|
+
|
|
7
|
+
Interpreta los argumentos así y llama a la herramienta `openteam` una sola vez:
|
|
8
|
+
|
|
9
|
+
- `baseline show` (o vacío) → `action: "show"`
|
|
10
|
+
- `baseline set <provider/model>` → `action: "set"`, `model: "<provider/model>"`
|
|
11
|
+
- `baseline auto` → `action: "auto"`
|
|
12
|
+
- `doctor` → `action: "doctor"`
|
|
13
|
+
- `report` → `action: "report"`
|
|
14
|
+
|
|
15
|
+
Devuelve la salida de la herramienta tal cual, sin reinterpretarla.
|
package/AGENTS.md
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
# openteam — instrucciones para opencode
|
|
2
|
-
|
|
3
|
-
openteam es un plugin de opencode en **TypeScript + Bun** con routing **local-first** y fallback **FRONTIER cheapest-capable**. La meta es ahorrar coste/tokens frontier sin perder calidad, privacidad ni capacidad en tareas difíciles.
|
|
4
|
-
|
|
5
|
-
## Comandos de verificación
|
|
6
|
-
|
|
7
|
-
- Tests: `bun test`
|
|
8
|
-
- Typecheck: `bun run typecheck`
|
|
9
|
-
- Lint+format: `biome check .`
|
|
10
|
-
- Coverage requerido: global lines >= 85% y branches >= 80%; `src/router/**` al 100%.
|
|
11
|
-
- Determinismo: ejecutar el test específico de router cuando exista (`bun test tests/router/determinism.test.ts` o selector equivalente).
|
|
12
|
-
|
|
13
|
-
## Reglas de arquitectura
|
|
14
|
-
|
|
15
|
-
- Lee `docs/architecture.md`, `docs/testing-and-quality.md` y `PLAN.md` antes de cambios grandes.
|
|
16
|
-
- `router/` es puro: sin I/O, reloj, random, env vars ni logs.
|
|
17
|
-
- `plugin/` contiene hooks opencode; cualquier uso de superficie no documentada necesita test de contrato.
|
|
18
|
-
- `local/` aísla Ollama, LM Studio y Foundry Local.
|
|
19
|
-
- `config/` valida y persiste `.opencode/openteam.json`.
|
|
20
|
-
- `telemetry/` no guarda prompts completos; usa hash y metadatos redactados.
|
|
21
|
-
|
|
22
|
-
## Config y agentes opencode
|
|
23
|
-
|
|
24
|
-
- Config runtime canónica: `.opencode/openteam.json`.
|
|
25
|
-
- Reconciliación: `.openteam/config.json` queda obsoleto frente a la decisión de Rusty.
|
|
26
|
-
- Las definiciones Markdown de agents viven en `.opencode/agent/` en este repo. La documentación pública menciona `.opencode/agents/`; la investigación local verificó que el source soporta ambos.
|
|
27
|
-
- opencode lee este `AGENTS.md` como instrucciones de proyecto (verificado en docs/rules el 2026-07-06).
|
|
28
|
-
|
|
29
|
-
## Convenciones
|
|
30
|
-
|
|
31
|
-
- Documentación y prosa: español.
|
|
32
|
-
- Código, rutas, tipos e identificadores: English.
|
|
33
|
-
- TypeScript strict, ESM only, Zod en boundaries.
|
|
34
|
-
- Biome gobierna lint/format; no introduzcas ESLint/Prettier salvo decisión nueva.
|
|
35
|
-
|
|
36
|
-
## No negociables
|
|
37
|
-
|
|
38
|
-
- No merge sin tests, coverage, typecheck, lint/format y determinismo verdes.
|
|
39
|
-
- No enviar datos `privacySensitive` a frontier con `forceLocalOnSensitive`.
|
|
40
|
-
- No hardcodear un frontier premium como baseline: usar cheapest-capable configurable.
|
|
41
|
-
- No depender de runtimes locales reales, red o secretos en CI.
|
|
1
|
+
# openteam — instrucciones para opencode
|
|
2
|
+
|
|
3
|
+
openteam es un plugin de opencode en **TypeScript + Bun** con routing **local-first** y fallback **FRONTIER cheapest-capable**. La meta es ahorrar coste/tokens frontier sin perder calidad, privacidad ni capacidad en tareas difíciles.
|
|
4
|
+
|
|
5
|
+
## Comandos de verificación
|
|
6
|
+
|
|
7
|
+
- Tests: `bun test`
|
|
8
|
+
- Typecheck: `bun run typecheck`
|
|
9
|
+
- Lint+format: `biome check .`
|
|
10
|
+
- Coverage requerido: global lines >= 85% y branches >= 80%; `src/router/**` al 100%.
|
|
11
|
+
- Determinismo: ejecutar el test específico de router cuando exista (`bun test tests/router/determinism.test.ts` o selector equivalente).
|
|
12
|
+
|
|
13
|
+
## Reglas de arquitectura
|
|
14
|
+
|
|
15
|
+
- Lee `docs/architecture.md`, `docs/testing-and-quality.md` y `PLAN.md` antes de cambios grandes.
|
|
16
|
+
- `router/` es puro: sin I/O, reloj, random, env vars ni logs.
|
|
17
|
+
- `plugin/` contiene hooks opencode; cualquier uso de superficie no documentada necesita test de contrato.
|
|
18
|
+
- `local/` aísla Ollama, LM Studio y Foundry Local.
|
|
19
|
+
- `config/` valida y persiste `.opencode/openteam.json`.
|
|
20
|
+
- `telemetry/` no guarda prompts completos; usa hash y metadatos redactados.
|
|
21
|
+
|
|
22
|
+
## Config y agentes opencode
|
|
23
|
+
|
|
24
|
+
- Config runtime canónica: `.opencode/openteam.json`.
|
|
25
|
+
- Reconciliación: `.openteam/config.json` queda obsoleto frente a la decisión de Rusty.
|
|
26
|
+
- Las definiciones Markdown de agents viven en `.opencode/agent/` en este repo. La documentación pública menciona `.opencode/agents/`; la investigación local verificó que el source soporta ambos.
|
|
27
|
+
- opencode lee este `AGENTS.md` como instrucciones de proyecto (verificado en docs/rules el 2026-07-06).
|
|
28
|
+
|
|
29
|
+
## Convenciones
|
|
30
|
+
|
|
31
|
+
- Documentación y prosa: español.
|
|
32
|
+
- Código, rutas, tipos e identificadores: English.
|
|
33
|
+
- TypeScript strict, ESM only, Zod en boundaries.
|
|
34
|
+
- Biome gobierna lint/format; no introduzcas ESLint/Prettier salvo decisión nueva.
|
|
35
|
+
|
|
36
|
+
## No negociables
|
|
37
|
+
|
|
38
|
+
- No merge sin tests, coverage, typecheck, lint/format y determinismo verdes.
|
|
39
|
+
- No enviar datos `privacySensitive` a frontier con `forceLocalOnSensitive`.
|
|
40
|
+
- No hardcodear un frontier premium como baseline: usar cheapest-capable configurable.
|
|
41
|
+
- No depender de runtimes locales reales, red o secretos en CI.
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Jose Manuel Corral (@jmanuelcorral)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jose Manuel Corral (@jmanuelcorral)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|