opencodekit 0.16.0 → 0.16.1

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 (119) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/template/.opencode/AGENTS.md +64 -3
  3. package/dist/template/.opencode/command/create.md +34 -0
  4. package/dist/template/.opencode/command/design.md +35 -0
  5. package/dist/template/.opencode/command/handoff.md +15 -0
  6. package/dist/template/.opencode/command/init.md +40 -47
  7. package/dist/template/.opencode/command/plan.md +1 -0
  8. package/dist/template/.opencode/command/pr.md +15 -0
  9. package/dist/template/.opencode/command/research.md +3 -0
  10. package/dist/template/.opencode/command/resume.md +1 -0
  11. package/dist/template/.opencode/command/review-codebase.md +30 -0
  12. package/dist/template/.opencode/command/ship.md +43 -0
  13. package/dist/template/.opencode/command/start.md +1 -0
  14. package/dist/template/.opencode/command/status.md +24 -1
  15. package/dist/template/.opencode/command/ui-review.md +31 -0
  16. package/dist/template/.opencode/command/verify.md +35 -7
  17. package/dist/template/.opencode/memory/project/tech-stack.md +25 -22
  18. package/dist/template/.opencode/memory.db +0 -0
  19. package/dist/template/.opencode/memory.db-shm +0 -0
  20. package/dist/template/.opencode/memory.db-wal +0 -0
  21. package/dist/template/.opencode/opencode.json +817 -916
  22. package/dist/template/.opencode/package.json +1 -0
  23. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
  24. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
  25. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
  26. package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
  27. package/dist/template/.opencode/plugin/memory.ts +38 -1
  28. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
  29. package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
  30. package/dist/template/.opencode/tool/memory-get.ts +143 -0
  31. package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
  32. package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
  33. package/dist/template/.opencode/tool/memory-read.ts +17 -46
  34. package/dist/template/.opencode/tool/memory-search.ts +131 -28
  35. package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
  36. package/dist/template/.opencode/tool/memory-update.ts +21 -26
  37. package/dist/template/.opencode/tool/observation.ts +112 -100
  38. package/dist/template/.opencode/tsconfig.json +19 -19
  39. package/package.json +1 -1
  40. package/dist/template/.opencode/memory/_templates/README.md +0 -73
  41. package/dist/template/.opencode/memory/_templates/observation.md +0 -39
  42. package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
  43. package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
  44. package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
  45. package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
  46. package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
  47. package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
  48. package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
  49. package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
  50. package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
  51. package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
  52. package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
  53. package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
  54. package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
  55. package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
  56. package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
  57. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
  58. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
  59. package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
  60. package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
  61. package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
  62. package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
  63. package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
  64. package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
  65. package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
  66. package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
  67. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
  68. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
  69. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
  70. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
  71. package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
  72. package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
  73. package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
  74. package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
  75. package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
  76. package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +0 -15
  77. package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +0 -31
  78. package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +0 -25
  79. package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +0 -14
  80. package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +0 -15
  81. package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +0 -40
  82. package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +0 -42
  83. package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +0 -14
  84. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +0 -31
  85. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +0 -14
  86. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +0 -23
  87. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +0 -14
  88. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +0 -14
  89. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +0 -14
  90. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +0 -14
  91. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +0 -14
  92. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +0 -14
  93. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +0 -14
  94. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +0 -14
  95. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +0 -50
  96. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +0 -26
  97. package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +0 -29
  98. package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +0 -15
  99. package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +0 -28
  100. package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +0 -43
  101. package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +0 -14
  102. package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +0 -22
  103. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +0 -27
  104. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +0 -35
  105. package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +0 -14
  106. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +0 -14
  107. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +0 -14
  108. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +0 -14
  109. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +0 -14
  110. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +0 -15
  111. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +0 -15
  112. package/dist/template/.opencode/memory/project/architecture.md +0 -60
  113. package/dist/template/.opencode/memory/project/command-rules.md +0 -122
  114. package/dist/template/.opencode/memory/project/commands.md +0 -72
  115. package/dist/template/.opencode/memory/project/conventions.md +0 -68
  116. package/dist/template/.opencode/memory/project/gotchas.md +0 -41
  117. /package/dist/template/.opencode/memory/_templates/{project/tech-stack.md → tech-stack.md} +0 -0
  118. /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
  119. /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
@@ -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: Gather Artifacts
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 2: Completeness Check
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 3: Correctness Check
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 4: Coherence Check (skip with --quick)
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 5: Verification Summary
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 6: Auto-Fix (if --fix)
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 7: Update Bead Notes
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,6 +1,6 @@
1
1
  ---
2
2
  purpose: Tech stack, constraints, and integrations for AI context injection
3
- updated: 2026-02-01
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:** [e.g., Next.js 15, React 19]
13
- - **Language:** TypeScript (strict mode)
14
- - **Runtime:** [e.g., Node.js 22, Bun 1.x]
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
- ## Styling & UI
16
+ ## Key Dependencies
17
17
 
18
- - **CSS:** [e.g., Tailwind CSS v4]
19
- - **Components:** [e.g., shadcn/ui, Radix Primitives]
20
- - **Design System:** [e.g., Custom tokens in tailwind.config.ts]
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
- ## Data & State
25
+ ## Build & Tools
23
26
 
24
- - **Database:** [e.g., PostgreSQL via Supabase]
25
- - **ORM:** [e.g., Drizzle, Prisma]
26
- - **State Management:** [e.g., Zustand, React Query]
27
- - **API Style:** [e.g., REST, tRPC, GraphQL]
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:** [e.g., Vitest]
32
- - **E2E Tests:** [e.g., Playwright]
33
- - **Coverage Target:** [e.g., 80%]
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
- - [Constraint 1: e.g., Must work offline]
38
- - [Constraint 2: e.g., WCAG 2.1 AA compliance required]
39
- - [Constraint 3: e.g., Bundle size < 500KB]
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
- - [Service 1: e.g., Stripe for payments]
44
- - [Service 2: e.g., Resend for email]
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