@jmanuelcorral/openteam 0.1.37 → 0.1.40
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 +5 -5
- package/AGENTS.md +27 -27
- package/README.es.md +759 -0
- package/README.md +213 -480
- package/dist/capabilities/types.d.ts +1 -1
- package/dist/cli/consoleServe.d.ts.map +1 -1
- package/dist/cli/setupAdapters.d.ts.map +1 -1
- package/dist/cli.js +1122 -250
- package/dist/commands/frontierCatalog.d.ts +27 -0
- package/dist/commands/frontierCatalog.d.ts.map +1 -0
- package/dist/commands/orchestratorAgent.d.ts +2 -1
- package/dist/commands/orchestratorAgent.d.ts.map +1 -1
- package/dist/commands/setup.d.ts +16 -18
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/config/schema.d.ts +196 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/console/assets.d.ts +9 -0
- package/dist/console/assets.d.ts.map +1 -0
- package/dist/console/render.d.ts.map +1 -1
- package/dist/contract/opencode.d.ts +1 -1
- package/dist/contract/opencode.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +835 -87
- package/dist/local/embeddings.d.ts +29 -0
- package/dist/local/embeddings.d.ts.map +1 -0
- package/dist/local/extractClient.d.ts +31 -0
- package/dist/local/extractClient.d.ts.map +1 -0
- package/dist/local/openai-compatible.d.ts +1 -0
- package/dist/local/openai-compatible.d.ts.map +1 -1
- package/dist/mcp/semanticRecall.d.ts +25 -0
- package/dist/mcp/semanticRecall.d.ts.map +1 -0
- package/dist/mcp/server.d.ts +22 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/memory/consolidate.d.ts +21 -0
- package/dist/memory/consolidate.d.ts.map +1 -0
- package/dist/memory/extract.d.ts +68 -0
- package/dist/memory/extract.d.ts.map +1 -0
- package/dist/memory/fold.d.ts +24 -0
- package/dist/memory/fold.d.ts.map +1 -0
- package/dist/memory/index.d.ts +18 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/inject.d.ts +29 -0
- package/dist/memory/inject.d.ts.map +1 -0
- package/dist/memory/log.d.ts +16 -0
- package/dist/memory/log.d.ts.map +1 -0
- package/dist/memory/merge.d.ts +38 -0
- package/dist/memory/merge.d.ts.map +1 -0
- package/dist/memory/rank.d.ts +32 -0
- package/dist/memory/rank.d.ts.map +1 -0
- package/dist/memory/recall.d.ts +30 -0
- package/dist/memory/recall.d.ts.map +1 -0
- package/dist/memory/temporal.d.ts +39 -0
- package/dist/memory/temporal.d.ts.map +1 -0
- package/dist/memory/types.d.ts +159 -0
- package/dist/memory/types.d.ts.map +1 -0
- package/dist/memory/vector.d.ts +18 -0
- package/dist/memory/vector.d.ts.map +1 -0
- package/dist/orchestrator/roles.d.ts +1 -1
- package/dist/orchestrator/roles.d.ts.map +1 -1
- package/dist/plugin/hooks.d.ts +13 -0
- package/dist/plugin/hooks.d.ts.map +1 -1
- package/dist/plugin/memoryInject.d.ts +25 -0
- package/dist/plugin/memoryInject.d.ts.map +1 -0
- package/dist/router/chooseModel.d.ts.map +1 -1
- package/dist/router/cost.d.ts +4 -0
- package/dist/router/cost.d.ts.map +1 -0
- package/dist/router/frontierBaseline.d.ts +13 -0
- package/dist/router/frontierBaseline.d.ts.map +1 -0
- package/dist/router/modelSelection.d.ts +18 -0
- package/dist/router/modelSelection.d.ts.map +1 -0
- package/dist/storage/index/memoryConsolidate.d.ts +24 -0
- package/dist/storage/index/memoryConsolidate.d.ts.map +1 -0
- package/dist/storage/index/memoryIndex.d.ts +52 -0
- package/dist/storage/index/memoryIndex.d.ts.map +1 -0
- package/dist/storage/index/memoryRecall.d.ts +23 -0
- package/dist/storage/index/memoryRecall.d.ts.map +1 -0
- package/dist/storage/index/memoryRuntime.d.ts +41 -0
- package/dist/storage/index/memoryRuntime.d.ts.map +1 -0
- package/dist/telemetry/events.d.ts +3 -1
- package/dist/telemetry/events.d.ts.map +1 -1
- package/dist/telemetry/hash.d.ts.map +1 -1
- package/dist/web/server.d.ts +4 -0
- package/dist/web/server.d.ts.map +1 -1
- package/package.json +14 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: openteam runtime commands (baseline show|set|auto, doctor, agents, console, report)
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Use the `openteam` tool to execute the command indicated by the user: $ARGUMENTS
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Interpret the arguments like this and call the `openteam` tool exactly once:
|
|
8
8
|
|
|
9
|
-
- `baseline 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
|
-
|
|
17
|
+
Return the tool output as-is, without reinterpreting it.
|
package/AGENTS.md
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
# openteam —
|
|
1
|
+
# openteam — instructions for opencode
|
|
2
2
|
|
|
3
|
-
openteam
|
|
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
|
-
##
|
|
5
|
+
## Verification commands
|
|
6
6
|
|
|
7
7
|
- Tests: `bun test`
|
|
8
8
|
- Typecheck: `bun run typecheck`
|
|
9
9
|
- Lint+format: `biome check .`
|
|
10
|
-
-
|
|
11
|
-
-
|
|
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
12
|
|
|
13
|
-
##
|
|
13
|
+
## Architecture rules
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
- `router/`
|
|
17
|
-
- `plugin/`
|
|
18
|
-
- `local/`
|
|
19
|
-
- `config/`
|
|
20
|
-
- `telemetry/`
|
|
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
21
|
|
|
22
|
-
##
|
|
22
|
+
## opencode config and agents
|
|
23
23
|
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
- opencode
|
|
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
28
|
|
|
29
|
-
##
|
|
29
|
+
## Conventions
|
|
30
30
|
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
- TypeScript strict, ESM only, Zod
|
|
34
|
-
- Biome
|
|
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
35
|
|
|
36
|
-
##
|
|
36
|
+
## Non-negotiables
|
|
37
37
|
|
|
38
|
-
- No merge
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
38
|
+
- No merge without tests, coverage, typecheck, lint/format, and determinism green.
|
|
39
|
+
- Do not send `privacySensitive` data to frontier with `forceLocalOnSensitive`.
|
|
40
|
+
- Do not hardcode a premium frontier as the baseline: use a configurable cheapest-capable one.
|
|
41
|
+
- Do not depend on real local runtimes, network, or secrets in CI.
|