opencodekit 0.16.0 → 0.16.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/dist/index.js +1 -1
- package/dist/template/.opencode/AGENTS.md +109 -8
- package/dist/template/.opencode/command/create.md +37 -3
- package/dist/template/.opencode/command/design.md +35 -0
- package/dist/template/.opencode/command/handoff.md +15 -0
- package/dist/template/.opencode/command/init.md +40 -47
- package/dist/template/.opencode/command/plan.md +1 -0
- package/dist/template/.opencode/command/pr.md +15 -0
- package/dist/template/.opencode/command/research.md +3 -0
- package/dist/template/.opencode/command/resume.md +1 -0
- package/dist/template/.opencode/command/review-codebase.md +30 -0
- package/dist/template/.opencode/command/ship.md +43 -0
- package/dist/template/.opencode/command/start.md +1 -0
- package/dist/template/.opencode/command/status.md +24 -1
- package/dist/template/.opencode/command/ui-review.md +31 -0
- package/dist/template/.opencode/command/verify.md +35 -7
- package/dist/template/.opencode/dcp.jsonc +79 -70
- package/dist/template/.opencode/memory/project/tech-stack.md +25 -22
- package/dist/template/.opencode/memory.db +0 -0
- package/dist/template/.opencode/memory.db-shm +0 -0
- package/dist/template/.opencode/memory.db-wal +0 -0
- package/dist/template/.opencode/opencode.json +817 -916
- package/dist/template/.opencode/package.json +2 -1
- package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
- package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
- package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
- package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
- package/dist/template/.opencode/plugin/memory.ts +38 -1
- package/dist/template/.opencode/plugin/sdk/copilot/chat/convert-to-openai-compatible-chat-messages.ts +3 -6
- package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
- package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
- package/dist/template/.opencode/tool/memory-get.ts +143 -0
- package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
- package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
- package/dist/template/.opencode/tool/memory-read.ts +17 -46
- package/dist/template/.opencode/tool/memory-search.ts +131 -28
- package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
- package/dist/template/.opencode/tool/memory-update.ts +21 -26
- package/dist/template/.opencode/tool/observation.ts +112 -100
- package/dist/template/.opencode/tsconfig.json +19 -19
- package/package.json +1 -1
- package/dist/template/.opencode/memory/_templates/README.md +0 -73
- package/dist/template/.opencode/memory/_templates/observation.md +0 -39
- package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
- package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
- package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
- package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
- package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
- package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
- package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
- package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
- package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
- package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
- package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +0 -15
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +0 -31
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +0 -25
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +0 -15
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +0 -40
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +0 -42
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +0 -31
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +0 -23
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +0 -50
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +0 -26
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +0 -29
- package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +0 -15
- package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +0 -28
- package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +0 -43
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +0 -22
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +0 -27
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +0 -35
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +0 -14
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +0 -15
- package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +0 -15
- package/dist/template/.opencode/memory/project/architecture.md +0 -60
- package/dist/template/.opencode/memory/project/command-rules.md +0 -122
- package/dist/template/.opencode/memory/project/commands.md +0 -72
- package/dist/template/.opencode/memory/project/conventions.md +0 -68
- package/dist/template/.opencode/memory/project/gotchas.md +0 -41
- /package/dist/template/.opencode/memory/_templates/{project/tech-stack.md → tech-stack.md} +0 -0
- /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
- /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
|
@@ -14,6 +14,7 @@ Comprehensive UI/UX review with structured scoring and actionable feedback.
|
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
16
|
skill({ name: "beads" }); // Session protocol
|
|
17
|
+
skill({ name: "memory-system" });
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
```typescript
|
|
@@ -22,6 +23,20 @@ skill({ name: "visual-analysis" });
|
|
|
22
23
|
skill({ name: "accessibility-audit" });
|
|
23
24
|
```
|
|
24
25
|
|
|
26
|
+
## Check Memory for Design Context
|
|
27
|
+
|
|
28
|
+
Search for existing design decisions and patterns:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
// Find design system decisions
|
|
32
|
+
memory_search({ query: "design system colors typography", limit: 3 });
|
|
33
|
+
|
|
34
|
+
// Find previous UI reviews and findings
|
|
35
|
+
memory_search({ query: "[component/page] UI review", limit: 3 });
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Apply existing design decisions to the review.
|
|
39
|
+
|
|
25
40
|
## Parse Arguments
|
|
26
41
|
|
|
27
42
|
| Argument | Default | Description |
|
|
@@ -305,3 +320,19 @@ bd dep add <task-id> <bead-id>
|
|
|
305
320
|
| Design from scratch | `/design` |
|
|
306
321
|
| Start implementation | `/start <bead>` |
|
|
307
322
|
| Ship implementation | `/ship <bead>` |
|
|
323
|
+
|
|
324
|
+
## Record Significant Findings
|
|
325
|
+
|
|
326
|
+
For important UI/UX findings worth remembering:
|
|
327
|
+
|
|
328
|
+
```typescript
|
|
329
|
+
observation({
|
|
330
|
+
type: "warning", // or "pattern", "decision"
|
|
331
|
+
title: "UI: [Component/page] [issue type]",
|
|
332
|
+
narrative: "Found [issue] in [location]. Impact: [description]...",
|
|
333
|
+
facts: "[severity], [category], [fix approach]",
|
|
334
|
+
concepts: "ui, accessibility, [component type]",
|
|
335
|
+
bead_id: "$ARGUMENTS", // if applicable
|
|
336
|
+
confidence: "high",
|
|
337
|
+
});
|
|
338
|
+
```
|
|
@@ -15,6 +15,7 @@ Three-dimensional verification before claiming work complete. Inspired by OpenSp
|
|
|
15
15
|
skill({ name: "beads" });
|
|
16
16
|
skill({ name: "verification-before-completion" });
|
|
17
17
|
skill({ name: "systematic-debugging" });
|
|
18
|
+
skill({ name: "memory-system" });
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
## Parse Arguments
|
|
@@ -27,7 +28,17 @@ skill({ name: "systematic-debugging" });
|
|
|
27
28
|
|
|
28
29
|
---
|
|
29
30
|
|
|
30
|
-
## Phase 1:
|
|
31
|
+
## Phase 1: Check Memory for Context
|
|
32
|
+
|
|
33
|
+
Search for relevant verification patterns and past issues:
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
memory_search({ query: "$ARGUMENTS verification issues patterns", limit: 3 });
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Phase 2: Gather Artifacts
|
|
31
42
|
|
|
32
43
|
```bash
|
|
33
44
|
bd show $ARGUMENTS
|
|
@@ -45,7 +56,7 @@ cat .beads/artifacts/$ARGUMENTS/design.md 2>/dev/null
|
|
|
45
56
|
|
|
46
57
|
---
|
|
47
58
|
|
|
48
|
-
## Phase
|
|
59
|
+
## Phase 3: Completeness Check
|
|
49
60
|
|
|
50
61
|
**Are all required artifacts present?**
|
|
51
62
|
|
|
@@ -75,7 +86,7 @@ Extract tasks/criteria from spec.md and verify each is implemented:
|
|
|
75
86
|
|
|
76
87
|
---
|
|
77
88
|
|
|
78
|
-
## Phase
|
|
89
|
+
## Phase 4: Correctness Check
|
|
79
90
|
|
|
80
91
|
**Do the automated gates pass?**
|
|
81
92
|
|
|
@@ -132,7 +143,7 @@ golangci-lint run 2>&1 | tail -10
|
|
|
132
143
|
|
|
133
144
|
---
|
|
134
145
|
|
|
135
|
-
## Phase
|
|
146
|
+
## Phase 5: Coherence Check (skip with --quick)
|
|
136
147
|
|
|
137
148
|
**Do artifacts agree with each other?**
|
|
138
149
|
|
|
@@ -168,7 +179,7 @@ Contradictions found: 1
|
|
|
168
179
|
|
|
169
180
|
---
|
|
170
181
|
|
|
171
|
-
## Phase
|
|
182
|
+
## Phase 6: Verification Summary
|
|
172
183
|
|
|
173
184
|
```
|
|
174
185
|
Verification: $ARGUMENTS
|
|
@@ -200,7 +211,7 @@ Recommendations:
|
|
|
200
211
|
|
|
201
212
|
---
|
|
202
213
|
|
|
203
|
-
## Phase
|
|
214
|
+
## Phase 7: Auto-Fix (if --fix)
|
|
204
215
|
|
|
205
216
|
For fixable issues, attempt automatic resolution:
|
|
206
217
|
|
|
@@ -218,7 +229,7 @@ if (missingTests) {
|
|
|
218
229
|
|
|
219
230
|
---
|
|
220
231
|
|
|
221
|
-
## Phase
|
|
232
|
+
## Phase 8: Update Bead Notes
|
|
222
233
|
|
|
223
234
|
Record verification results in bead:
|
|
224
235
|
|
|
@@ -228,6 +239,23 @@ bd note $ARGUMENTS "Verification: [PASS|PARTIAL|FAIL] - [summary]"
|
|
|
228
239
|
|
|
229
240
|
---
|
|
230
241
|
|
|
242
|
+
## Phase 9: Record Findings
|
|
243
|
+
|
|
244
|
+
If significant issues or patterns discovered:
|
|
245
|
+
|
|
246
|
+
```typescript
|
|
247
|
+
observation({
|
|
248
|
+
type: "discovery",
|
|
249
|
+
title: "Verification findings for $ARGUMENTS",
|
|
250
|
+
narrative: "[Summary of issues found, patterns discovered, or lessons learned]",
|
|
251
|
+
concepts: "verification, testing, quality",
|
|
252
|
+
bead_id: "$ARGUMENTS",
|
|
253
|
+
confidence: "high",
|
|
254
|
+
});
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
231
259
|
## Output
|
|
232
260
|
|
|
233
261
|
```
|
|
@@ -1,72 +1,81 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/Opencode-DCP/opencode-dynamic-context-pruning/dev/dcp.schema.json",
|
|
3
|
+
"enabled": true,
|
|
4
|
+
"debug": false,
|
|
5
|
+
// "minimal" shows prune activity without noise; "detailed" shows token counts
|
|
6
|
+
"pruneNotification": "off",
|
|
7
|
+
// "chat" (in-conversation) or "toast" (system notification) - beta feature
|
|
8
|
+
"pruneNotificationType": "chat",
|
|
9
|
+
// Commands: /dcp context, /dcp stats, /dcp sweep
|
|
10
|
+
"commands": {
|
|
11
|
+
"enabled": true,
|
|
12
|
+
// Protect these from /dcp sweep
|
|
13
|
+
"protectedTools": ["observation", "memory-update", "memory-search"]
|
|
14
|
+
},
|
|
15
|
+
"turnProtection": {
|
|
16
|
+
"enabled": true,
|
|
17
|
+
"turns": 4
|
|
18
|
+
},
|
|
19
|
+
// Protected file patterns - never auto-prune reads of these files
|
|
20
|
+
"protectedFilePatterns": [
|
|
21
|
+
"**/.env*",
|
|
22
|
+
"**/AGENTS.md",
|
|
23
|
+
"**/.opencode/**",
|
|
24
|
+
"**/.beads/**",
|
|
25
|
+
"**/package.json",
|
|
26
|
+
"**/tsconfig.json",
|
|
27
|
+
"**/biome.json"
|
|
28
|
+
],
|
|
29
|
+
"tools": {
|
|
30
|
+
"settings": {
|
|
31
|
+
"nudgeEnabled": true,
|
|
32
|
+
"nudgeFrequency": 10,
|
|
33
|
+
// Protect state-modifying and critical workflow tools
|
|
34
|
+
// LSP excluded: ephemeral exploration, prune after understanding
|
|
35
|
+
"protectedTools": [
|
|
36
|
+
"write",
|
|
37
|
+
"edit",
|
|
38
|
+
"memory-update",
|
|
39
|
+
"observation",
|
|
40
|
+
"skill",
|
|
41
|
+
"skill_mcp",
|
|
42
|
+
"task",
|
|
43
|
+
"batch",
|
|
44
|
+
"todowrite",
|
|
45
|
+
"todoread"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
// Beta: renamed from "discard" - removes tool content without preservation
|
|
49
|
+
"prune": {
|
|
50
|
+
"enabled": true
|
|
51
|
+
},
|
|
52
|
+
// Beta: renamed from "extract" - distills key findings before removing
|
|
53
|
+
"distill": {
|
|
54
|
+
"enabled": true,
|
|
55
|
+
"showDistillation": false
|
|
56
|
+
},
|
|
57
|
+
// Beta: NEW - collapses range of messages + tools into single summary
|
|
58
|
+
"compress": {
|
|
59
|
+
"enabled": true,
|
|
60
|
+
"showCompression": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"strategies": {
|
|
64
|
+
// Dedup = zero LLM cost, high impact - always enable
|
|
65
|
+
"deduplication": {
|
|
66
|
+
"enabled": true,
|
|
67
|
+
"protectedTools": []
|
|
68
|
+
},
|
|
69
|
+
// Supersede writes = zero cost, removes redundant write inputs after read
|
|
70
|
+
// Note: default changed to false in beta, we explicitly enable
|
|
71
|
+
"supersedeWrites": {
|
|
72
|
+
"enabled": true
|
|
73
|
+
},
|
|
74
|
+
// Purge error inputs after N turns
|
|
75
|
+
"purgeErrors": {
|
|
76
|
+
"enabled": true,
|
|
77
|
+
"turns": 4,
|
|
78
|
+
"protectedTools": []
|
|
79
|
+
}
|
|
80
|
+
}
|
|
72
81
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
purpose: Tech stack, constraints, and integrations for AI context injection
|
|
3
|
-
updated: 2026-02-
|
|
3
|
+
updated: 2026-02-02
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Tech Stack
|
|
@@ -9,40 +9,43 @@ This file is automatically injected into ALL AI prompts via `opencode.json` inst
|
|
|
9
9
|
|
|
10
10
|
## Framework & Language
|
|
11
11
|
|
|
12
|
-
- **Framework:**
|
|
13
|
-
- **Language:** TypeScript (strict mode)
|
|
14
|
-
- **Runtime:**
|
|
12
|
+
- **Framework:** CLI tool (cac for argument parsing)
|
|
13
|
+
- **Language:** TypeScript (ESNext, strict mode, bundler moduleResolution)
|
|
14
|
+
- **Runtime:** Bun >= 1.3.2
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## Key Dependencies
|
|
17
17
|
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
20
|
-
- **
|
|
18
|
+
- **CLI Framework:** cac (^6.7.14) - Command-line argument parsing
|
|
19
|
+
- **UI Prompts:** @clack/prompts (^0.7.0) - Interactive CLI prompts
|
|
20
|
+
- **TUI Framework:** @opentui/core (^0.1.72) + @opentui/solid (^0.1.72) - Terminal UI
|
|
21
|
+
- **Validation:** zod (^3.25.76) - Schema validation
|
|
22
|
+
- **Task Tracking:** beads-village (^1.3.3) - Git-backed task management
|
|
23
|
+
- **AI SDK:** @ai-sdk/provider (^3.0.6) - AI provider integration
|
|
21
24
|
|
|
22
|
-
##
|
|
25
|
+
## Build & Tools
|
|
23
26
|
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
27
|
-
- **
|
|
27
|
+
- **Build:** `bun run build.ts` + rsync for template bundling
|
|
28
|
+
- **Lint:** oxlint (^1.38.0) - Fast JavaScript/TypeScript linter
|
|
29
|
+
- **Format:** oxfmt (^0.23.0) - Code formatter
|
|
30
|
+
- **TypeCheck:** TypeScript 5.9.3
|
|
28
31
|
|
|
29
32
|
## Testing
|
|
30
33
|
|
|
31
|
-
- **Unit Tests:**
|
|
32
|
-
- **
|
|
33
|
-
- **
|
|
34
|
+
- **Unit Tests:** bun test (native Bun test runner)
|
|
35
|
+
- **Test Location:** src/\*_/_.test.ts (colocated)
|
|
36
|
+
- **Run Single:** bun test src/commands/init.test.ts
|
|
34
37
|
|
|
35
38
|
## Key Constraints
|
|
36
39
|
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
+
- Must maintain Bun compatibility (engines.bun >= 1.3.2)
|
|
41
|
+
- Node.js not officially supported
|
|
42
|
+
- Build copies .opencode/ to dist/template/ - don't edit dist/ directly
|
|
43
|
+
- Keep .opencode/ structure minimal and focused
|
|
40
44
|
|
|
41
45
|
## Active Integrations
|
|
42
46
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- [Service 3: e.g., Sentry for error tracking]
|
|
47
|
+
- **OpenCode AI:** @opencode-ai/plugin (^1.1.12) - OpenCode integration
|
|
48
|
+
- **Beads CLI:** @beads/bd (^0.29.0) - Task tracking CLI
|
|
46
49
|
|
|
47
50
|
---
|
|
48
51
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|