opencodekit 0.15.21 → 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 (144) hide show
  1. package/dist/index.js +5 -7
  2. package/dist/template/.opencode/AGENTS.md +85 -23
  3. package/dist/template/.opencode/agent/build.md +88 -7
  4. package/dist/template/.opencode/agent/explore.md +1 -1
  5. package/dist/template/.opencode/agent/general.md +54 -4
  6. package/dist/template/.opencode/agent/looker.md +1 -1
  7. package/dist/template/.opencode/agent/painter.md +1 -1
  8. package/dist/template/.opencode/agent/plan.md +52 -0
  9. package/dist/template/.opencode/agent/review.md +1 -1
  10. package/dist/template/.opencode/agent/scout.md +3 -3
  11. package/dist/template/.opencode/agent/vision.md +1 -1
  12. package/dist/template/.opencode/command/create.md +231 -91
  13. package/dist/template/.opencode/command/design.md +40 -7
  14. package/dist/template/.opencode/command/handoff.md +22 -0
  15. package/dist/template/.opencode/command/init.md +49 -78
  16. package/dist/template/.opencode/command/plan.md +36 -16
  17. package/dist/template/.opencode/command/pr.md +15 -0
  18. package/dist/template/.opencode/command/research.md +3 -0
  19. package/dist/template/.opencode/command/resume.md +8 -18
  20. package/dist/template/.opencode/command/review-codebase.md +30 -0
  21. package/dist/template/.opencode/command/ship.md +199 -0
  22. package/dist/template/.opencode/command/start.md +316 -28
  23. package/dist/template/.opencode/command/status.md +24 -1
  24. package/dist/template/.opencode/command/ui-review.md +36 -7
  25. package/dist/template/.opencode/command/verify.md +307 -0
  26. package/dist/template/.opencode/memory/_templates/prd.md +29 -0
  27. package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
  28. package/dist/template/.opencode/memory/_templates/spec.md +66 -0
  29. package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
  30. package/dist/template/.opencode/memory/_templates/tech-stack.md +50 -0
  31. package/dist/template/.opencode/memory/project/tech-stack.md +53 -0
  32. package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
  33. package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
  34. package/dist/template/.opencode/memory.db +0 -0
  35. package/dist/template/.opencode/memory.db-shm +0 -0
  36. package/dist/template/.opencode/memory.db-wal +0 -0
  37. package/dist/template/.opencode/opencode.json +18 -4
  38. package/dist/template/.opencode/package.json +1 -0
  39. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
  40. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
  41. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
  42. package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
  43. package/dist/template/.opencode/plugin/memory.ts +38 -1
  44. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
  45. package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
  46. package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
  47. package/dist/template/.opencode/tool/memory-get.ts +143 -0
  48. package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
  49. package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
  50. package/dist/template/.opencode/tool/memory-read.ts +17 -46
  51. package/dist/template/.opencode/tool/memory-search.ts +131 -28
  52. package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
  53. package/dist/template/.opencode/tool/memory-update.ts +21 -26
  54. package/dist/template/.opencode/tool/observation.ts +112 -100
  55. package/dist/template/.opencode/tsconfig.json +19 -19
  56. package/package.json +1 -1
  57. package/dist/template/.opencode/command/accessibility-check.md +0 -331
  58. package/dist/template/.opencode/command/agent-browser.md +0 -21
  59. package/dist/template/.opencode/command/analyze-mockup.md +0 -423
  60. package/dist/template/.opencode/command/analyze-project.md +0 -295
  61. package/dist/template/.opencode/command/brainstorm.md +0 -373
  62. package/dist/template/.opencode/command/cloudflare.md +0 -70
  63. package/dist/template/.opencode/command/commit.md +0 -245
  64. package/dist/template/.opencode/command/complete-next-task.md +0 -77
  65. package/dist/template/.opencode/command/design-audit.md +0 -480
  66. package/dist/template/.opencode/command/edit-image.md +0 -242
  67. package/dist/template/.opencode/command/finish.md +0 -255
  68. package/dist/template/.opencode/command/fix-ci.md +0 -109
  69. package/dist/template/.opencode/command/fix-types.md +0 -104
  70. package/dist/template/.opencode/command/fix-ui.md +0 -117
  71. package/dist/template/.opencode/command/fix.md +0 -168
  72. package/dist/template/.opencode/command/frontend-design.md +0 -21
  73. package/dist/template/.opencode/command/generate-diagram.md +0 -349
  74. package/dist/template/.opencode/command/generate-icon.md +0 -283
  75. package/dist/template/.opencode/command/generate-image.md +0 -246
  76. package/dist/template/.opencode/command/generate-pattern.md +0 -247
  77. package/dist/template/.opencode/command/generate-storyboard.md +0 -250
  78. package/dist/template/.opencode/command/implement.md +0 -609
  79. package/dist/template/.opencode/command/import-plan.md +0 -406
  80. package/dist/template/.opencode/command/index-knowledge.md +0 -25
  81. package/dist/template/.opencode/command/integration-test.md +0 -424
  82. package/dist/template/.opencode/command/issue.md +0 -102
  83. package/dist/template/.opencode/command/new-feature.md +0 -651
  84. package/dist/template/.opencode/command/opensrc.md +0 -58
  85. package/dist/template/.opencode/command/quick-build.md +0 -238
  86. package/dist/template/.opencode/command/ralph.md +0 -41
  87. package/dist/template/.opencode/command/research-and-implement.md +0 -148
  88. package/dist/template/.opencode/command/research-ui.md +0 -466
  89. package/dist/template/.opencode/command/restore-image.md +0 -424
  90. package/dist/template/.opencode/command/revert-feature.md +0 -386
  91. package/dist/template/.opencode/command/skill-create.md +0 -517
  92. package/dist/template/.opencode/command/skill-optimize.md +0 -556
  93. package/dist/template/.opencode/command/summarize.md +0 -412
  94. package/dist/template/.opencode/command/triage.md +0 -398
  95. package/dist/template/.opencode/memory/_templates/README.md +0 -35
  96. package/dist/template/.opencode/memory/_templates/observation.md +0 -39
  97. package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
  98. package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
  99. package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
  100. package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
  101. package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
  102. package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
  103. package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
  104. package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
  105. package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
  106. package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
  107. package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
  108. package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
  109. package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
  110. package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
  111. package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
  112. package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
  113. package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
  114. package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
  115. package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
  116. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
  117. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
  118. package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
  119. package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
  120. package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
  121. package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
  122. package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
  123. package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
  124. package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
  125. package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
  126. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
  127. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
  128. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
  129. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
  130. package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
  131. package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
  132. package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
  133. package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
  134. package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
  135. package/dist/template/.opencode/memory/project/architecture.md +0 -60
  136. package/dist/template/.opencode/memory/project/commands.md +0 -72
  137. package/dist/template/.opencode/memory/project/conventions.md +0 -68
  138. package/dist/template/.opencode/memory/project/gotchas.md +0 -41
  139. package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
  140. package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
  141. package/dist/template/.opencode/tool/notebooklm.ts +0 -488
  142. package/dist/template/.opencode/tool/oracle.ts +0 -240
  143. /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
  144. /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
@@ -1,240 +0,0 @@
1
- import { tool } from "@opencode-ai/plugin";
2
-
3
- /**
4
- * Oracle Tool - Get second opinions from alternative AI models
5
- *
6
- * Uses ProxyPal to access various models for:
7
- * - Validating complex architectural decisions
8
- * - Cross-checking debugging hypotheses
9
- * - Getting alternative perspectives on tricky problems
10
- * - Breaking out of reasoning ruts
11
- */
12
-
13
- // Default to Gemini 3 Pro for deep reasoning (has thinking capability)
14
- const DEFAULT_MODEL = "gpt-5.2-codex";
15
-
16
- // Available oracle models with their strengths
17
- const ORACLE_MODELS: Record<string, { name: string; strength: string }> = {
18
- "gpt-5.2-codex": {
19
- name: "GPT-5.2 Codex",
20
- strength: "Strong code understanding and generation",
21
- },
22
- "gemini-3-pro-preview": {
23
- name: "Gemini 3 Pro",
24
- strength: "Deep reasoning with thinking capability",
25
- },
26
- };
27
-
28
- interface OracleRequest {
29
- question: string;
30
- context?: string;
31
- model?: string;
32
- mode?: "validate" | "alternative" | "critique" | "brainstorm";
33
- }
34
-
35
- interface ChatMessage {
36
- role: "system" | "user" | "assistant";
37
- content: string;
38
- }
39
-
40
- interface ChatResponse {
41
- choices?: Array<{
42
- message?: {
43
- content?: string;
44
- };
45
- }>;
46
- error?: {
47
- message?: string;
48
- };
49
- }
50
-
51
- const SYSTEM_PROMPTS: Record<string, string> = {
52
- validate: `You are a validation oracle. Your job is to critically examine the reasoning, approach, or solution presented to you.
53
-
54
- Look for:
55
- - Logical flaws or gaps in reasoning
56
- - Edge cases that weren't considered
57
- - Assumptions that may not hold
58
- - Better alternatives if they exist
59
-
60
- Be direct and specific. If the approach is sound, say so briefly. If there are issues, explain them clearly.`,
61
-
62
- alternative: `You are an alternative perspective oracle. Your job is to suggest completely different approaches to the problem.
63
-
64
- Focus on:
65
- - Different architectural patterns
66
- - Alternative technologies or libraries
67
- - Unconventional but valid solutions
68
- - Trade-offs the user may not have considered
69
-
70
- Don't just validate - actively look for different ways to solve the problem.`,
71
-
72
- critique: `You are a critical review oracle. Your job is to stress-test ideas and find weaknesses.
73
-
74
- Examine:
75
- - Security implications
76
- - Performance concerns
77
- - Maintainability issues
78
- - Scalability problems
79
- - Edge cases and failure modes
80
-
81
- Be constructively critical. Point out problems but suggest how to address them.`,
82
-
83
- brainstorm: `You are a brainstorming oracle. Your job is to expand on ideas and generate new possibilities.
84
-
85
- Generate:
86
- - Extensions to the proposed approach
87
- - Creative variations
88
- - Combinations with other techniques
89
- - Future-proofing considerations
90
-
91
- Be generative and expansive. Build on the ideas presented.`,
92
- };
93
-
94
- export default tool({
95
- description: `Get a second opinion from a different AI model for complex reasoning tasks.
96
-
97
- Use when:
98
- - Validating architectural decisions before implementing
99
- - Cross-checking debugging hypotheses
100
- - Getting alternative perspectives on tricky problems
101
- - Breaking out of reasoning ruts or confirmation bias
102
-
103
- Modes:
104
- - validate: Check if reasoning is sound (default)
105
- - alternative: Get completely different approaches
106
- - critique: Stress-test ideas for weaknesses
107
- - brainstorm: Expand and generate new possibilities
108
-
109
- Models available:
110
- ${Object.entries(ORACLE_MODELS)
111
- .map(([id, info]) => `- ${id}: ${info.strength}`)
112
- .join("\n")}
113
-
114
- Examples:
115
- oracle({ question: "Is JWT the right choice for this API?", context: "Building a microservices auth system" })
116
- oracle({ question: "Review this debugging approach", mode: "critique" })
117
- oracle({ question: "What other ways could we implement caching?", mode: "alternative", model: "gpt-5.2-codex" })
118
- `,
119
- args: {
120
- question: tool.schema
121
- .string()
122
- .describe("The question or problem to get a second opinion on"),
123
- context: tool.schema
124
- .string()
125
- .optional()
126
- .describe(
127
- "Additional context about the problem, constraints, or current approach",
128
- ),
129
- model: tool.schema
130
- .string()
131
- .optional()
132
- .describe(
133
- `Model to use for oracle (default: ${DEFAULT_MODEL}). Options: ${Object.keys(ORACLE_MODELS).join(", ")}`,
134
- ),
135
- mode: tool.schema
136
- .string()
137
- .optional()
138
- .describe(
139
- "Oracle mode: validate (default), alternative, critique, or brainstorm",
140
- ),
141
- },
142
- execute: async (args) => {
143
- const {
144
- question,
145
- context,
146
- model = DEFAULT_MODEL,
147
- mode = "validate",
148
- } = args as OracleRequest;
149
-
150
- if (!question || question.trim() === "") {
151
- return "Error: question is required";
152
- }
153
-
154
- // Validate model
155
- const modelInfo = ORACLE_MODELS[model];
156
- if (!modelInfo) {
157
- return `Error: Unknown model "${model}". Available models: ${Object.keys(ORACLE_MODELS).join(", ")}`;
158
- }
159
-
160
- // Validate mode
161
- const validModes = ["validate", "alternative", "critique", "brainstorm"];
162
- if (!validModes.includes(mode)) {
163
- return `Error: Unknown mode "${mode}". Available modes: ${validModes.join(", ")}`;
164
- }
165
-
166
- // Get system prompt for mode
167
- const systemPrompt = SYSTEM_PROMPTS[mode];
168
-
169
- // Build user message
170
- let userMessage = question;
171
- if (context) {
172
- userMessage = `Context:\n${context}\n\nQuestion:\n${question}`;
173
- }
174
-
175
- const messages: ChatMessage[] = [
176
- { role: "system", content: systemPrompt },
177
- { role: "user", content: userMessage },
178
- ];
179
-
180
- // Call ProxyPal API
181
- const PROXYPAL_BASE = "http://127.0.0.1:8317/v1";
182
-
183
- try {
184
- const response = await fetch(`${PROXYPAL_BASE}/chat/completions`, {
185
- method: "POST",
186
- headers: {
187
- "Content-Type": "application/json",
188
- Authorization: "Bearer proxypal-local",
189
- },
190
- body: JSON.stringify({
191
- model,
192
- messages,
193
- temperature: 0.7,
194
- max_tokens: 4096,
195
- }),
196
- });
197
-
198
- if (!response.ok) {
199
- const errorText = await response.text();
200
- return `Error: Oracle API returned ${response.status}: ${errorText}`;
201
- }
202
-
203
- const data = (await response.json()) as ChatResponse;
204
-
205
- if (data.error) {
206
- return `Error: ${data.error.message || "Unknown error from oracle"}`;
207
- }
208
-
209
- const content = data.choices?.[0]?.message?.content;
210
- if (!content) {
211
- return "Error: Oracle returned empty response";
212
- }
213
-
214
- // Format response with metadata
215
- return `## Oracle Response (${modelInfo.name})
216
- **Mode**: ${mode}
217
- **Strength**: ${modelInfo.strength}
218
-
219
- ---
220
-
221
- ${content}
222
-
223
- ---
224
- *Second opinion from ${model}*`;
225
- } catch (error: unknown) {
226
- const message = error instanceof Error ? error.message : String(error);
227
-
228
- if (
229
- message.includes("ECONNREFUSED") ||
230
- message.includes("fetch failed")
231
- ) {
232
- return `Error: Cannot connect to ProxyPal at ${PROXYPAL_BASE}.
233
-
234
- To start ProxyPal, run: proxypal start`;
235
- }
236
-
237
- return `Error: Oracle query failed: ${message}`;
238
- }
239
- },
240
- });