@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.
- package/.opencode/command/openteam.md +5 -5
- package/AGENTS.md +50 -35
- 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.js +1123 -232
- package/dist/commands/frontierCatalog.d.ts +27 -0
- package/dist/commands/frontierCatalog.d.ts.map +1 -0
- package/dist/commands/graph.d.ts +65 -0
- package/dist/commands/graph.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 +3 -18
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/config/load.d.ts.map +1 -1
- package/dist/config/migrations.d.ts +27 -0
- package/dist/config/migrations.d.ts.map +1 -0
- package/dist/config/resolve.d.ts +34 -0
- package/dist/config/resolve.d.ts.map +1 -0
- package/dist/config/schema.d.ts +235 -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/context/redaction.d.ts +48 -0
- package/dist/context/redaction.d.ts.map +1 -0
- package/dist/context/schema.d.ts +115 -0
- package/dist/context/schema.d.ts.map +1 -0
- package/dist/context/types.d.ts +8 -0
- package/dist/context/types.d.ts.map +1 -0
- package/dist/contract/opencode.d.ts +1 -1
- package/dist/contract/opencode.d.ts.map +1 -1
- package/dist/graph/events.d.ts +25 -0
- package/dist/graph/events.d.ts.map +1 -0
- package/dist/graph/ids.d.ts +5 -0
- package/dist/graph/ids.d.ts.map +1 -0
- package/dist/graph/planner.d.ts +15 -0
- package/dist/graph/planner.d.ts.map +1 -0
- package/dist/graph/policies.d.ts +34 -0
- package/dist/graph/policies.d.ts.map +1 -0
- package/dist/graph/privacyPolicy.d.ts +29 -0
- package/dist/graph/privacyPolicy.d.ts.map +1 -0
- package/dist/graph/reducer.d.ts +27 -0
- package/dist/graph/reducer.d.ts.map +1 -0
- package/dist/graph/replay.d.ts +20 -0
- package/dist/graph/replay.d.ts.map +1 -0
- package/dist/graph/reviewerPolicy.d.ts +27 -0
- package/dist/graph/reviewerPolicy.d.ts.map +1 -0
- package/dist/graph/schema.d.ts +220 -0
- package/dist/graph/schema.d.ts.map +1 -0
- package/dist/graph/types.d.ts +40 -0
- package/dist/graph/types.d.ts.map +1 -0
- package/dist/graph/validate.d.ts +19 -0
- package/dist/graph/validate.d.ts.map +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +873 -88
- 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/graphCancellation.d.ts +84 -0
- package/dist/orchestrator/graphCancellation.d.ts.map +1 -0
- package/dist/orchestrator/graphEffects.d.ts +63 -0
- package/dist/orchestrator/graphEffects.d.ts.map +1 -0
- package/dist/orchestrator/graphReview.d.ts +84 -0
- package/dist/orchestrator/graphReview.d.ts.map +1 -0
- package/dist/orchestrator/graphRuntime.d.ts +69 -0
- package/dist/orchestrator/graphRuntime.d.ts.map +1 -0
- package/dist/orchestrator/opencodeSessionAdapter.d.ts +117 -0
- package/dist/orchestrator/opencodeSessionAdapter.d.ts.map +1 -0
- package/dist/orchestrator/roles.d.ts +1 -1
- package/dist/orchestrator/roles.d.ts.map +1 -1
- package/dist/orchestrator/sdd.d.ts +38 -2
- package/dist/orchestrator/sdd.d.ts.map +1 -1
- package/dist/orchestrator/sddCompiler.d.ts +44 -0
- package/dist/orchestrator/sddCompiler.d.ts.map +1 -0
- package/dist/orchestrator/sessionReconciler.d.ts +74 -0
- package/dist/orchestrator/sessionReconciler.d.ts.map +1 -0
- package/dist/orchestrator/shadowComparator.d.ts +62 -0
- package/dist/orchestrator/shadowComparator.d.ts.map +1 -0
- 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/graph/codec.d.ts +52 -0
- package/dist/storage/graph/codec.d.ts.map +1 -0
- package/dist/storage/graph/fsGraphJournal.d.ts +3 -0
- package/dist/storage/graph/fsGraphJournal.d.ts.map +1 -0
- package/dist/storage/graph/importLegacy.d.ts +62 -0
- package/dist/storage/graph/importLegacy.d.ts.map +1 -0
- package/dist/storage/graph/memoryGraphJournal.d.ts +11 -0
- package/dist/storage/graph/memoryGraphJournal.d.ts.map +1 -0
- package/dist/storage/graph/migrateLegacyBriefs.d.ts +32 -0
- package/dist/storage/graph/migrateLegacyBriefs.d.ts.map +1 -0
- package/dist/storage/graph/projections.d.ts +31 -0
- package/dist/storage/graph/projections.d.ts.map +1 -0
- package/dist/storage/graph/provider.d.ts +52 -0
- package/dist/storage/graph/provider.d.ts.map +1 -0
- package/dist/storage/graph/recovery.d.ts +38 -0
- package/dist/storage/graph/recovery.d.ts.map +1 -0
- package/dist/storage/graph/runRegistry.d.ts +17 -0
- package/dist/storage/graph/runRegistry.d.ts.map +1 -0
- package/dist/storage/graph/snapshot.d.ts +44 -0
- package/dist/storage/graph/snapshot.d.ts.map +1 -0
- package/dist/storage/graph/workspaceLease.d.ts +36 -0
- package/dist/storage/graph/workspaceLease.d.ts.map +1 -0
- package/dist/storage/graph/writer.d.ts +20 -0
- package/dist/storage/graph/writer.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/graphProjection.d.ts +36 -0
- package/dist/telemetry/graphProjection.d.ts.map +1 -0
- 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,56 @@
|
|
|
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
|
-
-
|
|
12
|
-
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
- `router/`
|
|
17
|
-
- `plugin/`
|
|
18
|
-
- `local/`
|
|
19
|
-
- `config/`
|
|
20
|
-
- `telemetry/`
|
|
21
|
-
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
- opencode
|
|
28
|
-
|
|
29
|
-
##
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
- TypeScript strict, ESM only, Zod
|
|
34
|
-
- Biome
|
|
35
|
-
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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.
|