@jmanuelcorral/openteam 0.1.38 → 0.1.41

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.
Files changed (162) hide show
  1. package/.opencode/command/openteam.md +5 -5
  2. package/AGENTS.md +50 -35
  3. package/README.es.md +759 -0
  4. package/README.md +213 -480
  5. package/dist/capabilities/types.d.ts +1 -1
  6. package/dist/cli/consoleServe.d.ts.map +1 -1
  7. package/dist/cli.js +1123 -232
  8. package/dist/commands/frontierCatalog.d.ts +27 -0
  9. package/dist/commands/frontierCatalog.d.ts.map +1 -0
  10. package/dist/commands/graph.d.ts +65 -0
  11. package/dist/commands/graph.d.ts.map +1 -0
  12. package/dist/commands/orchestratorAgent.d.ts +2 -1
  13. package/dist/commands/orchestratorAgent.d.ts.map +1 -1
  14. package/dist/commands/setup.d.ts +3 -18
  15. package/dist/commands/setup.d.ts.map +1 -1
  16. package/dist/config/load.d.ts.map +1 -1
  17. package/dist/config/migrations.d.ts +27 -0
  18. package/dist/config/migrations.d.ts.map +1 -0
  19. package/dist/config/resolve.d.ts +34 -0
  20. package/dist/config/resolve.d.ts.map +1 -0
  21. package/dist/config/schema.d.ts +235 -0
  22. package/dist/config/schema.d.ts.map +1 -1
  23. package/dist/console/assets.d.ts +9 -0
  24. package/dist/console/assets.d.ts.map +1 -0
  25. package/dist/console/render.d.ts.map +1 -1
  26. package/dist/context/redaction.d.ts +48 -0
  27. package/dist/context/redaction.d.ts.map +1 -0
  28. package/dist/context/schema.d.ts +115 -0
  29. package/dist/context/schema.d.ts.map +1 -0
  30. package/dist/context/types.d.ts +8 -0
  31. package/dist/context/types.d.ts.map +1 -0
  32. package/dist/contract/opencode.d.ts +1 -1
  33. package/dist/contract/opencode.d.ts.map +1 -1
  34. package/dist/graph/events.d.ts +25 -0
  35. package/dist/graph/events.d.ts.map +1 -0
  36. package/dist/graph/ids.d.ts +5 -0
  37. package/dist/graph/ids.d.ts.map +1 -0
  38. package/dist/graph/planner.d.ts +15 -0
  39. package/dist/graph/planner.d.ts.map +1 -0
  40. package/dist/graph/policies.d.ts +34 -0
  41. package/dist/graph/policies.d.ts.map +1 -0
  42. package/dist/graph/privacyPolicy.d.ts +29 -0
  43. package/dist/graph/privacyPolicy.d.ts.map +1 -0
  44. package/dist/graph/reducer.d.ts +27 -0
  45. package/dist/graph/reducer.d.ts.map +1 -0
  46. package/dist/graph/replay.d.ts +20 -0
  47. package/dist/graph/replay.d.ts.map +1 -0
  48. package/dist/graph/reviewerPolicy.d.ts +27 -0
  49. package/dist/graph/reviewerPolicy.d.ts.map +1 -0
  50. package/dist/graph/schema.d.ts +220 -0
  51. package/dist/graph/schema.d.ts.map +1 -0
  52. package/dist/graph/types.d.ts +40 -0
  53. package/dist/graph/types.d.ts.map +1 -0
  54. package/dist/graph/validate.d.ts +19 -0
  55. package/dist/graph/validate.d.ts.map +1 -0
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +873 -88
  58. package/dist/local/embeddings.d.ts +29 -0
  59. package/dist/local/embeddings.d.ts.map +1 -0
  60. package/dist/local/extractClient.d.ts +31 -0
  61. package/dist/local/extractClient.d.ts.map +1 -0
  62. package/dist/local/openai-compatible.d.ts +1 -0
  63. package/dist/local/openai-compatible.d.ts.map +1 -1
  64. package/dist/mcp/semanticRecall.d.ts +25 -0
  65. package/dist/mcp/semanticRecall.d.ts.map +1 -0
  66. package/dist/mcp/server.d.ts +22 -0
  67. package/dist/mcp/server.d.ts.map +1 -1
  68. package/dist/memory/consolidate.d.ts +21 -0
  69. package/dist/memory/consolidate.d.ts.map +1 -0
  70. package/dist/memory/extract.d.ts +68 -0
  71. package/dist/memory/extract.d.ts.map +1 -0
  72. package/dist/memory/fold.d.ts +24 -0
  73. package/dist/memory/fold.d.ts.map +1 -0
  74. package/dist/memory/index.d.ts +18 -0
  75. package/dist/memory/index.d.ts.map +1 -0
  76. package/dist/memory/inject.d.ts +29 -0
  77. package/dist/memory/inject.d.ts.map +1 -0
  78. package/dist/memory/log.d.ts +16 -0
  79. package/dist/memory/log.d.ts.map +1 -0
  80. package/dist/memory/merge.d.ts +38 -0
  81. package/dist/memory/merge.d.ts.map +1 -0
  82. package/dist/memory/rank.d.ts +32 -0
  83. package/dist/memory/rank.d.ts.map +1 -0
  84. package/dist/memory/recall.d.ts +30 -0
  85. package/dist/memory/recall.d.ts.map +1 -0
  86. package/dist/memory/temporal.d.ts +39 -0
  87. package/dist/memory/temporal.d.ts.map +1 -0
  88. package/dist/memory/types.d.ts +159 -0
  89. package/dist/memory/types.d.ts.map +1 -0
  90. package/dist/memory/vector.d.ts +18 -0
  91. package/dist/memory/vector.d.ts.map +1 -0
  92. package/dist/orchestrator/graphCancellation.d.ts +84 -0
  93. package/dist/orchestrator/graphCancellation.d.ts.map +1 -0
  94. package/dist/orchestrator/graphEffects.d.ts +63 -0
  95. package/dist/orchestrator/graphEffects.d.ts.map +1 -0
  96. package/dist/orchestrator/graphReview.d.ts +84 -0
  97. package/dist/orchestrator/graphReview.d.ts.map +1 -0
  98. package/dist/orchestrator/graphRuntime.d.ts +69 -0
  99. package/dist/orchestrator/graphRuntime.d.ts.map +1 -0
  100. package/dist/orchestrator/opencodeSessionAdapter.d.ts +117 -0
  101. package/dist/orchestrator/opencodeSessionAdapter.d.ts.map +1 -0
  102. package/dist/orchestrator/roles.d.ts +1 -1
  103. package/dist/orchestrator/roles.d.ts.map +1 -1
  104. package/dist/orchestrator/sdd.d.ts +38 -2
  105. package/dist/orchestrator/sdd.d.ts.map +1 -1
  106. package/dist/orchestrator/sddCompiler.d.ts +44 -0
  107. package/dist/orchestrator/sddCompiler.d.ts.map +1 -0
  108. package/dist/orchestrator/sessionReconciler.d.ts +74 -0
  109. package/dist/orchestrator/sessionReconciler.d.ts.map +1 -0
  110. package/dist/orchestrator/shadowComparator.d.ts +62 -0
  111. package/dist/orchestrator/shadowComparator.d.ts.map +1 -0
  112. package/dist/plugin/hooks.d.ts +13 -0
  113. package/dist/plugin/hooks.d.ts.map +1 -1
  114. package/dist/plugin/memoryInject.d.ts +25 -0
  115. package/dist/plugin/memoryInject.d.ts.map +1 -0
  116. package/dist/router/chooseModel.d.ts.map +1 -1
  117. package/dist/router/cost.d.ts +4 -0
  118. package/dist/router/cost.d.ts.map +1 -0
  119. package/dist/router/frontierBaseline.d.ts +13 -0
  120. package/dist/router/frontierBaseline.d.ts.map +1 -0
  121. package/dist/router/modelSelection.d.ts +18 -0
  122. package/dist/router/modelSelection.d.ts.map +1 -0
  123. package/dist/storage/graph/codec.d.ts +52 -0
  124. package/dist/storage/graph/codec.d.ts.map +1 -0
  125. package/dist/storage/graph/fsGraphJournal.d.ts +3 -0
  126. package/dist/storage/graph/fsGraphJournal.d.ts.map +1 -0
  127. package/dist/storage/graph/importLegacy.d.ts +62 -0
  128. package/dist/storage/graph/importLegacy.d.ts.map +1 -0
  129. package/dist/storage/graph/memoryGraphJournal.d.ts +11 -0
  130. package/dist/storage/graph/memoryGraphJournal.d.ts.map +1 -0
  131. package/dist/storage/graph/migrateLegacyBriefs.d.ts +32 -0
  132. package/dist/storage/graph/migrateLegacyBriefs.d.ts.map +1 -0
  133. package/dist/storage/graph/projections.d.ts +31 -0
  134. package/dist/storage/graph/projections.d.ts.map +1 -0
  135. package/dist/storage/graph/provider.d.ts +52 -0
  136. package/dist/storage/graph/provider.d.ts.map +1 -0
  137. package/dist/storage/graph/recovery.d.ts +38 -0
  138. package/dist/storage/graph/recovery.d.ts.map +1 -0
  139. package/dist/storage/graph/runRegistry.d.ts +17 -0
  140. package/dist/storage/graph/runRegistry.d.ts.map +1 -0
  141. package/dist/storage/graph/snapshot.d.ts +44 -0
  142. package/dist/storage/graph/snapshot.d.ts.map +1 -0
  143. package/dist/storage/graph/workspaceLease.d.ts +36 -0
  144. package/dist/storage/graph/workspaceLease.d.ts.map +1 -0
  145. package/dist/storage/graph/writer.d.ts +20 -0
  146. package/dist/storage/graph/writer.d.ts.map +1 -0
  147. package/dist/storage/index/memoryConsolidate.d.ts +24 -0
  148. package/dist/storage/index/memoryConsolidate.d.ts.map +1 -0
  149. package/dist/storage/index/memoryIndex.d.ts +52 -0
  150. package/dist/storage/index/memoryIndex.d.ts.map +1 -0
  151. package/dist/storage/index/memoryRecall.d.ts +23 -0
  152. package/dist/storage/index/memoryRecall.d.ts.map +1 -0
  153. package/dist/storage/index/memoryRuntime.d.ts +41 -0
  154. package/dist/storage/index/memoryRuntime.d.ts.map +1 -0
  155. package/dist/telemetry/events.d.ts +3 -1
  156. package/dist/telemetry/events.d.ts.map +1 -1
  157. package/dist/telemetry/graphProjection.d.ts +36 -0
  158. package/dist/telemetry/graphProjection.d.ts.map +1 -0
  159. package/dist/telemetry/hash.d.ts.map +1 -1
  160. package/dist/web/server.d.ts +4 -0
  161. package/dist/web/server.d.ts.map +1 -1
  162. package/package.json +14 -6
@@ -1,12 +1,12 @@
1
1
  ---
2
- description: Comandos runtime de openteam (baseline show|set|auto, doctor, agents, console, report)
2
+ description: openteam runtime commands (baseline show|set|auto, doctor, agents, console, report)
3
3
  ---
4
4
 
5
- Usa la herramienta `openteam` para ejecutar el comando indicado por el usuario: $ARGUMENTS
5
+ Use the `openteam` tool to execute the command indicated by the user: $ARGUMENTS
6
6
 
7
- Interpreta los argumentos así y llama a la herramienta `openteam` una sola vez:
7
+ Interpret the arguments like this and call the `openteam` tool exactly once:
8
8
 
9
- - `baseline show` (o vacío) → `action: "show"`
9
+ - `baseline show` (or empty) → `action: "show"`
10
10
  - `baseline set <provider/model>` → `action: "set"`, `model: "<provider/model>"`
11
11
  - `baseline auto` → `action: "auto"`
12
12
  - `doctor` → `action: "doctor"`
@@ -14,4 +14,4 @@ Interpreta los argumentos así y llama a la herramienta `openteam` una sola vez:
14
14
  - `console` → `action: "console"`
15
15
  - `report` → `action: "report"`
16
16
 
17
- Devuelve la salida de la herramienta tal cual, sin reinterpretarla.
17
+ Return the tool output as-is, without reinterpreting it.
package/AGENTS.md CHANGED
@@ -1,41 +1,56 @@
1
- # openteam — instrucciones para opencode
1
+ # openteam — instructions for opencode
2
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.
3
+ openteam is an opencode plugin built with **TypeScript + Bun** with **local-first** routing and a **FRONTIER cheapest-capable** fallback. The goal is to save frontier cost/tokens without losing quality, privacy, or capability on hard tasks.
4
4
 
5
- ## Comandos de verificación
5
+ ## Verification commands
6
6
 
7
7
  - Tests: `bun test`
8
8
  - Typecheck: `bun run typecheck`
9
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.
10
+ - Required coverage: global lines >= 85% and branches >= 80%; `src/router/**` at 100%.
11
+ - Determinism: run the specific router test when it exists (`bun test tests/router/determinism.test.ts` or an equivalent selector).
12
+
13
+ ## Architecture rules
14
+
15
+ - Read `docs/architecture.md`, `docs/testing-and-quality.md`, and `PLAN.md` before large changes.
16
+ - `router/` is pure: no I/O, clock, random, env vars, or logs.
17
+ - `plugin/` contains opencode hooks; any use of an undocumented surface needs a contract test.
18
+ - `local/` isolates Ollama, LM Studio, and Foundry Local.
19
+ - `config/` validates and persists `.opencode/openteam.json`.
20
+ - `telemetry/` does not store full prompts; it uses a hash and redacted metadata.
21
+
22
+ ## opencode config and agents
23
+
24
+ - Canonical runtime config: `.opencode/openteam.json`.
25
+ - Reconciliation: `.openteam/config.json` is obsolete relative to the current decision.
26
+ - Agent Markdown definitions live in `.opencode/agent/` in this repo. Public documentation mentions `.opencode/agents/`; local research verified the source supports both.
27
+ - opencode reads this `AGENTS.md` as project instructions (verified in docs/rules on 2026-07-06).
28
+
29
+ ## Conventions
30
+
31
+ - Documentation and prose: English (a Spanish README localization is maintained as `README.es.md`).
32
+ - Code, paths, types, and identifiers: English.
33
+ - TypeScript strict, ESM only, Zod at boundaries.
34
+ - Biome governs lint/format; do not introduce ESLint/Prettier unless a new decision is made.
35
+
36
+ ## Test-first with Gherkin
37
+
38
+ - **Default workflow for behavioral work is Test-First with Gherkin.** Before implementing a
39
+ story in `src/graph/**`, `src/context/**`, `src/storage/graph/**`, or `src/orchestrator/**`,
40
+ first write the `.feature` scenarios derived from the story's "Testable acceptance", watch
41
+ them fail, then implement until green.
42
+ - Functional tests run on the in-repo, **dependency-free** Gherkin harness at
43
+ `tests/functional/gherkin/` (parser + runner). Do not add Cucumber or any BDD dependency:
44
+ it would violate the supply-chain policy.
45
+ - Feature files live under `tests/functional/features/**`; step definitions are inlined in the
46
+ matching `tests/functional/*.test.ts` so they do not drag coverage. Steps drive the **real**
47
+ modules; only injected I/O ports (filesystem, clock, session client) may be deterministic fakes.
48
+ - Backfill is incremental: as we touch or extend an area, add the missing Gherkin coverage and
49
+ pay down technical debt rather than leaving gaps.
50
+
51
+ ## Non-negotiables
52
+
53
+ - No merge without tests, coverage, typecheck, lint/format, and determinism green.
54
+ - Do not send `privacySensitive` data to frontier with `forceLocalOnSensitive`.
55
+ - Do not hardcode a premium frontier as the baseline: use a configurable cheapest-capable one.
56
+ - Do not depend on real local runtimes, network, or secrets in CI.