@codemieai/code 0.0.33 → 0.0.34

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 (180) hide show
  1. package/README.md +73 -7
  2. package/bin/codemie-opencode.js +11 -0
  3. package/dist/agents/codemie-code/agent.d.ts +17 -1
  4. package/dist/agents/codemie-code/agent.d.ts.map +1 -1
  5. package/dist/agents/codemie-code/agent.js +62 -3
  6. package/dist/agents/codemie-code/agent.js.map +1 -1
  7. package/dist/agents/codemie-code/index.d.ts +1 -0
  8. package/dist/agents/codemie-code/index.d.ts.map +1 -1
  9. package/dist/agents/codemie-code/index.js +28 -2
  10. package/dist/agents/codemie-code/index.js.map +1 -1
  11. package/dist/agents/codemie-code/prompts.d.ts +12 -3
  12. package/dist/agents/codemie-code/prompts.d.ts.map +1 -1
  13. package/dist/agents/codemie-code/prompts.js +25 -5
  14. package/dist/agents/codemie-code/prompts.js.map +1 -1
  15. package/dist/agents/codemie-code/types.d.ts +3 -0
  16. package/dist/agents/codemie-code/types.d.ts.map +1 -1
  17. package/dist/agents/codemie-code/types.js.map +1 -1
  18. package/dist/agents/core/AgentCLI.d.ts.map +1 -1
  19. package/dist/agents/core/AgentCLI.js +3 -1
  20. package/dist/agents/core/AgentCLI.js.map +1 -1
  21. package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
  22. package/dist/agents/core/BaseAgentAdapter.js +33 -0
  23. package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
  24. package/dist/agents/core/session/BaseSessionAdapter.d.ts +25 -0
  25. package/dist/agents/core/session/BaseSessionAdapter.d.ts.map +1 -1
  26. package/dist/agents/core/session/discovery-types.d.ts +53 -0
  27. package/dist/agents/core/session/discovery-types.d.ts.map +1 -0
  28. package/dist/agents/core/session/discovery-types.js +8 -0
  29. package/dist/agents/core/session/discovery-types.js.map +1 -0
  30. package/dist/agents/core/types.d.ts +45 -0
  31. package/dist/agents/core/types.d.ts.map +1 -1
  32. package/dist/agents/plugins/claude/claude.plugin.d.ts +44 -1
  33. package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -1
  34. package/dist/agents/plugins/claude/claude.plugin.js +214 -0
  35. package/dist/agents/plugins/claude/claude.plugin.js.map +1 -1
  36. package/dist/agents/plugins/claude/plugin/README.md +40 -2
  37. package/dist/agents/plugins/claude/plugin/claude-templates/README.md +5 -5
  38. package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +177 -436
  39. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/code-review-agent-template.md.template +49 -82
  40. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/refactor-cleaner-agent.md.template +337 -0
  41. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/solution-architect-agent.md.template +129 -419
  42. package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/unit-tester-agent.md.template +146 -693
  43. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +110 -138
  44. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/architecture.md.template +197 -0
  45. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +171 -91
  46. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +219 -131
  47. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +223 -98
  48. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +131 -95
  49. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +247 -75
  50. package/dist/agents/plugins/claude/plugin/commands/README.md +133 -0
  51. package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +336 -544
  52. package/dist/agents/plugins/claude/plugin/commands/codemie-subagents.md +232 -503
  53. package/dist/agents/plugins/claude/plugin/commands/memory-add.md +311 -30
  54. package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +218 -39
  55. package/dist/agents/plugins/gemini/gemini.plugin.d.ts.map +1 -1
  56. package/dist/agents/plugins/gemini/gemini.plugin.js +0 -3
  57. package/dist/agents/plugins/gemini/gemini.plugin.js.map +1 -1
  58. package/dist/agents/plugins/opencode/index.d.ts +8 -0
  59. package/dist/agents/plugins/opencode/index.d.ts.map +1 -0
  60. package/dist/agents/plugins/opencode/index.js +12 -0
  61. package/dist/agents/plugins/opencode/index.js.map +1 -0
  62. package/dist/agents/plugins/opencode/opencode-message-types.d.ts +207 -0
  63. package/dist/agents/plugins/opencode/opencode-message-types.d.ts.map +1 -0
  64. package/dist/agents/plugins/opencode/opencode-message-types.js +59 -0
  65. package/dist/agents/plugins/opencode/opencode-message-types.js.map +1 -0
  66. package/dist/agents/plugins/opencode/opencode-model-configs.d.ts +65 -0
  67. package/dist/agents/plugins/opencode/opencode-model-configs.d.ts.map +1 -0
  68. package/dist/agents/plugins/opencode/opencode-model-configs.js +184 -0
  69. package/dist/agents/plugins/opencode/opencode-model-configs.js.map +1 -0
  70. package/dist/agents/plugins/opencode/opencode.paths.d.ts +62 -0
  71. package/dist/agents/plugins/opencode/opencode.paths.d.ts.map +1 -0
  72. package/dist/agents/plugins/opencode/opencode.paths.js +148 -0
  73. package/dist/agents/plugins/opencode/opencode.paths.js.map +1 -0
  74. package/dist/agents/plugins/opencode/opencode.plugin.d.ts +35 -0
  75. package/dist/agents/plugins/opencode/opencode.plugin.d.ts.map +1 -0
  76. package/dist/agents/plugins/opencode/opencode.plugin.js +338 -0
  77. package/dist/agents/plugins/opencode/opencode.plugin.js.map +1 -0
  78. package/dist/agents/plugins/opencode/opencode.session.d.ts +77 -0
  79. package/dist/agents/plugins/opencode/opencode.session.d.ts.map +1 -0
  80. package/dist/agents/plugins/opencode/opencode.session.js +424 -0
  81. package/dist/agents/plugins/opencode/opencode.session.js.map +1 -0
  82. package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts +25 -0
  83. package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts.map +1 -0
  84. package/dist/agents/plugins/opencode/opencode.storage-utils.js +96 -0
  85. package/dist/agents/plugins/opencode/opencode.storage-utils.js.map +1 -0
  86. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts +30 -0
  87. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts.map +1 -0
  88. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js +116 -0
  89. package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js.map +1 -0
  90. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts +102 -0
  91. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts.map +1 -0
  92. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js +584 -0
  93. package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js.map +1 -0
  94. package/dist/agents/registry.d.ts.map +1 -1
  95. package/dist/agents/registry.js +2 -0
  96. package/dist/agents/registry.js.map +1 -1
  97. package/dist/cli/commands/doctor/checks/AgentsCheck.d.ts +5 -0
  98. package/dist/cli/commands/doctor/checks/AgentsCheck.d.ts.map +1 -1
  99. package/dist/cli/commands/doctor/checks/AgentsCheck.js +29 -0
  100. package/dist/cli/commands/doctor/checks/AgentsCheck.js.map +1 -1
  101. package/dist/cli/commands/install.d.ts.map +1 -1
  102. package/dist/cli/commands/install.js +86 -7
  103. package/dist/cli/commands/install.js.map +1 -1
  104. package/dist/cli/commands/opencode-metrics.d.ts +13 -0
  105. package/dist/cli/commands/opencode-metrics.d.ts.map +1 -0
  106. package/dist/cli/commands/opencode-metrics.js +200 -0
  107. package/dist/cli/commands/opencode-metrics.js.map +1 -0
  108. package/dist/cli/commands/setup.d.ts.map +1 -1
  109. package/dist/cli/commands/setup.js +113 -0
  110. package/dist/cli/commands/setup.js.map +1 -1
  111. package/dist/cli/commands/skill.d.ts +6 -0
  112. package/dist/cli/commands/skill.d.ts.map +1 -0
  113. package/dist/cli/commands/skill.js +196 -0
  114. package/dist/cli/commands/skill.js.map +1 -0
  115. package/dist/cli/commands/update.d.ts.map +1 -1
  116. package/dist/cli/commands/update.js +34 -6
  117. package/dist/cli/commands/update.js.map +1 -1
  118. package/dist/cli/index.js +4 -0
  119. package/dist/cli/index.js.map +1 -1
  120. package/dist/migrations/003-remove-hooks-node.migration.d.ts +22 -0
  121. package/dist/migrations/003-remove-hooks-node.migration.d.ts.map +1 -0
  122. package/dist/migrations/003-remove-hooks-node.migration.js +103 -0
  123. package/dist/migrations/003-remove-hooks-node.migration.js.map +1 -0
  124. package/dist/migrations/index.d.ts +1 -0
  125. package/dist/migrations/index.d.ts.map +1 -1
  126. package/dist/migrations/index.js +1 -1
  127. package/dist/migrations/index.js.map +1 -1
  128. package/dist/providers/plugins/sso/sso.http-client.js +2 -2
  129. package/dist/providers/plugins/sso/sso.http-client.js.map +1 -1
  130. package/dist/providers/plugins/sso/sso.setup-steps.d.ts.map +1 -1
  131. package/dist/providers/plugins/sso/sso.setup-steps.js +14 -10
  132. package/dist/providers/plugins/sso/sso.setup-steps.js.map +1 -1
  133. package/dist/skills/core/SkillDiscovery.d.ts +83 -0
  134. package/dist/skills/core/SkillDiscovery.d.ts.map +1 -0
  135. package/dist/skills/core/SkillDiscovery.js +237 -0
  136. package/dist/skills/core/SkillDiscovery.js.map +1 -0
  137. package/dist/skills/core/SkillManager.d.ts +86 -0
  138. package/dist/skills/core/SkillManager.d.ts.map +1 -0
  139. package/dist/skills/core/SkillManager.js +155 -0
  140. package/dist/skills/core/SkillManager.js.map +1 -0
  141. package/dist/skills/core/types.d.ts +120 -0
  142. package/dist/skills/core/types.d.ts.map +1 -0
  143. package/dist/skills/core/types.js +20 -0
  144. package/dist/skills/core/types.js.map +1 -0
  145. package/dist/skills/index.d.ts +12 -0
  146. package/dist/skills/index.d.ts.map +1 -0
  147. package/dist/skills/index.js +12 -0
  148. package/dist/skills/index.js.map +1 -0
  149. package/dist/skills/utils/content-loader.d.ts +25 -0
  150. package/dist/skills/utils/content-loader.d.ts.map +1 -0
  151. package/dist/skills/utils/content-loader.js +161 -0
  152. package/dist/skills/utils/content-loader.js.map +1 -0
  153. package/dist/skills/utils/frontmatter.d.ts +60 -0
  154. package/dist/skills/utils/frontmatter.d.ts.map +1 -0
  155. package/dist/skills/utils/frontmatter.js +114 -0
  156. package/dist/skills/utils/frontmatter.js.map +1 -0
  157. package/dist/skills/utils/pattern-matcher.d.ts +60 -0
  158. package/dist/skills/utils/pattern-matcher.d.ts.map +1 -0
  159. package/dist/skills/utils/pattern-matcher.js +97 -0
  160. package/dist/skills/utils/pattern-matcher.js.map +1 -0
  161. package/dist/utils/installation-detector.d.ts +22 -0
  162. package/dist/utils/installation-detector.d.ts.map +1 -0
  163. package/dist/utils/installation-detector.js +49 -0
  164. package/dist/utils/installation-detector.js.map +1 -0
  165. package/dist/utils/native-installer.d.ts +49 -0
  166. package/dist/utils/native-installer.d.ts.map +1 -0
  167. package/dist/utils/native-installer.js +194 -0
  168. package/dist/utils/native-installer.js.map +1 -0
  169. package/dist/utils/version-utils.d.ts +50 -0
  170. package/dist/utils/version-utils.d.ts.map +1 -0
  171. package/dist/utils/version-utils.js +92 -0
  172. package/dist/utils/version-utils.js.map +1 -0
  173. package/package.json +5 -2
  174. package/scripts/copy-mr-skill-to-global.ts +252 -0
  175. package/scripts/demo-hooks.sh +125 -0
  176. package/scripts/test-hooks.sh +196 -0
  177. package/dist/agents/plugins/claude/plugin/claude-templates/templates/INDEX.md +0 -205
  178. package/dist/agents/plugins/claude/plugin/claude-templates/templates/TEMPLATE_SIZES.md +0 -74
  179. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/layered-architecture.md.template +0 -143
  180. package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/project-structure.md.template +0 -127
@@ -1,44 +1,325 @@
1
- # Add New Knowledge to CLAUDE Memory Files
1
+ # Add New Knowledge to Project Documentation
2
2
 
3
- FYI: You, Claude Code, manage persistent memory using `CLAUDE.md` files for shared project context. The system recursively searches upward from the current working directory to load all relevant `CLAUDE.md` files, ensuring project-level context is available. Subdirectory `CLAUDE.md` files are only loaded when working within those subfolders, keeping the active context focused and efficient.
3
+ **Purpose**: Capture important learnings from the current session that should persist for future work.
4
4
 
5
- Additionally, placing a `CLAUDE.md` in your home directory (e.g., `~/.claude/CLAUDE.md`) provides a global, cross-project memory that is merged into every session under your home directory.
5
+ **Context**: You manage persistent memory using documentation systems. Common approaches:
6
+ - **CLAUDE.md files** - Project-specific context loaded recursively from working directory
7
+ - **Structured guides** - Organized documentation by topic/category (if present)
8
+ - **README/docs** - Traditional documentation files
6
9
 
7
- ## Summary of Memory File Behavior
10
+ Projects may use any combination of these systems or none at all.
8
11
 
9
- **Shared Project Memory (`CLAUDE.md`)**:
10
- - Located in the repository root or any working directory
11
- - Checked into version control for team-wide context sharing
12
- - Loaded recursively from the current directory up to the root
12
+ ---
13
+ ## Additional user's input
14
+ Additional context/input from user: $ARGUMENTS. Might be empty by default.
15
+
16
+ ## When to Add Documentation
17
+
18
+ **✅ DO add documentation when**:
19
+ - You learned something **non-obvious** about the project
20
+ - User corrected a **pattern or approach** you used
21
+ - You struggled to find critical information that should be documented
22
+ - You discovered an important **architectural decision** or **gotcha**
23
+ - User provided context about "**why**" something is done a certain way
24
+ - You had to infer important details that aren't clear from code alone
25
+ - A pattern contradicts common conventions for this language/framework
26
+
27
+ **❌ DON'T add documentation when**:
28
+ - Information is **obvious from well-written code**
29
+ - It's a **one-time fix** or edge case
30
+ - It's **implementation details** that may change frequently
31
+ - User just made a **typo correction** or minor fix
32
+ - Information already exists in documentation
33
+ - It's **standard practice** (not project-specific)
34
+
35
+ **Rule of Thumb**: If you would struggle with this again in a future session without documentation, add it. If it's obvious or self-evident, skip it.
36
+
37
+ ---
38
+
39
+ ## Step 1: Identify What You Learned
40
+
41
+ Reflect on the session:
42
+
43
+ **Documentation Triggers**:
44
+ - [ ] I was corrected on an implementation pattern
45
+ - [ ] I learned about a project-specific convention
46
+ - [ ] I discovered non-obvious behavior or gotcha
47
+ - [ ] I struggled to locate important information
48
+ - [ ] I learned architectural decisions or "why" behind choices
49
+ - [ ] I found out about critical integration points
50
+ - [ ] I discovered error handling or security patterns
51
+ - [ ] I learned testing or tooling conventions
52
+ - [ ] I discovered how components interact
53
+
54
+ **What specifically did I learn?**
55
+ - Specific pattern: _____
56
+ - Why it matters: _____
57
+ - Where it applies: _____
58
+
59
+ ---
60
+
61
+ ## Step 2: Determine Scope
62
+
63
+ **Broad Knowledge** (affects multiple components or entire project):
64
+ - Architectural patterns
65
+ - Error handling conventions
66
+ - Logging patterns
67
+ - Security practices
68
+ - Testing strategies
69
+ - Code quality standards
70
+ - Build/deployment processes
71
+
72
+ → Add to **project-wide documentation** (root CLAUDE.md, main docs, or broad guides)
73
+
74
+ **Specific Knowledge** (affects one component/module):
75
+ - Module-specific patterns
76
+ - Component integration details
77
+ - Directory-specific conventions
78
+ - Local gotchas or behaviors
79
+
80
+ → Add to **component documentation** (component CLAUDE.md or specific doc section)
13
81
 
14
- **On-Demand Subdirectory Loading**:
15
- - `CLAUDE.md` files in child folders are loaded only when editing files in those subfolders
16
- - Prevents unnecessary context bloat
82
+ ---
83
+
84
+ ## Step 3: Find Documentation Location
85
+
86
+ **Discover existing documentation**:
87
+ ```bash
88
+ # Find CLAUDE.md files
89
+ find . -name "CLAUDE.md" -not -path "*/node_modules/*" -not -path "*/.git/*"
90
+
91
+ # Check for documentation directories
92
+ ls -la docs/ documentation/ .claude/guides/ 2>/dev/null
93
+ ```
94
+
95
+ **Decision Tree**:
17
96
 
18
- **Global User Memory (`~/.claude/CLAUDE.md`)**:
19
- - Acts as a personal, cross-project memory
20
- - Automatically merged into sessions under your home directory
97
+ ```
98
+ Is knowledge broad/project-wide?
99
+ ├─ YES Add to root documentation
100
+ │ ├─ Root CLAUDE.md (if exists)
101
+ │ ├─ README.md or ARCHITECTURE.md
102
+ │ ├─ docs/ or documentation/ directory
103
+ │ └─ Create root CLAUDE.md if none exists
104
+
105
+ └─ NO (component-specific) → Add to component documentation
106
+ ├─ Component CLAUDE.md (if exists)
107
+ ├─ Component README.md
108
+ └─ Create component CLAUDE.md if appropriate
109
+ ```
110
+
111
+ **Common Patterns**:
112
+ - **Root CLAUDE.md**: Project overview, architecture, main patterns
113
+ - **Component CLAUDE.md**: `src/[module]/CLAUDE.md`, `lib/[feature]/CLAUDE.md`
114
+ - **Structured docs**: `docs/architecture.md`, `docs/development.md`, etc.
115
+ - **README files**: High-level overview, setup, common patterns
21
116
 
22
117
  ---
23
118
 
24
- ## Instructions
119
+ ## Step 4: Format the Knowledge
120
+
121
+ **For CLAUDE.md Files**:
122
+
123
+ ```markdown
124
+ ## [Topic Area or Module Name]
125
+
126
+ **[Specific Pattern/Knowledge]**:
127
+ - **What**: Brief description of the pattern/approach
128
+ - **Why**: Reason or context for this decision
129
+ - **Where**: Applicable locations or when to use it
130
+ - **Gotcha**: Non-obvious behavior (if any)
25
131
 
26
- If during your session:
27
- * You learned something new about the project
28
- * I corrected you on a specific implementation detail
29
- * I corrected source code you generated
30
- * You struggled to find specific information and had to infer details about the project
31
- * You lost track of the project structure and had to look up information in the source code
132
+ **Example** (if helpful):
133
+ ```[language]
134
+ // Concise code example demonstrating pattern
135
+ ```
136
+ ```
137
+
138
+ **For Structured Documentation**:
139
+
140
+ ```markdown
141
+ ## [Pattern/Topic Name]
142
+
143
+ **Context**: When/why this pattern is used
144
+
145
+ **Pattern**:
146
+ [Description of the approach]
147
+
148
+ **Example**:
149
+ ```[language]
150
+ // Code example demonstrating pattern
151
+ ```
152
+
153
+ **Rationale**: Why we do it this way
154
+
155
+ **Common Pitfalls**: What to avoid
156
+ ```
157
+
158
+ ---
159
+
160
+ ## Step 5: Add the Documentation
161
+
162
+ **For CLAUDE.md Files**:
163
+ 1. Open or create the appropriate CLAUDE.md file
164
+ 2. Find relevant section or create new heading
165
+ 3. Add knowledge in structured format
166
+ 4. Keep it concise and scannable
167
+ 5. Include example only if pattern isn't obvious
168
+
169
+ **For Other Documentation**:
170
+ 1. Locate the appropriate file (README, ARCHITECTURE, etc.)
171
+ 2. Find relevant section or create one
172
+ 3. Add information following existing format/style
173
+ 4. Keep consistent with rest of document
174
+ 5. Update table of contents if applicable
175
+
176
+ **Quality Checklist**:
177
+ - [ ] Clearly states what the pattern/knowledge is
178
+ - [ ] Explains why it matters (not just what)
179
+ - [ ] Specific enough to be actionable
180
+ - [ ] Concise (no unnecessary words)
181
+ - [ ] Example included if pattern is non-obvious
182
+ - [ ] Placed in most logical location
183
+ - [ ] Doesn't duplicate existing documentation
184
+
185
+ ---
186
+
187
+ ## Step 6: Cross-Reference (if applicable)
188
+
189
+ If knowledge spans multiple areas or files:
190
+
191
+ **In CLAUDE.md**:
192
+ ```markdown
193
+ **Related Documentation**:
194
+ - See [ARCHITECTURE.md](./ARCHITECTURE.md) for system design
195
+ - See [src/auth/CLAUDE.md](./src/auth/CLAUDE.md) for auth patterns
196
+ ```
197
+
198
+ **In structured docs**:
199
+ ```markdown
200
+ **See also**:
201
+ - [Component Documentation](../component/CLAUDE.md)
202
+ - [Related Guide](./related-guide.md)
203
+ ```
204
+
205
+ ---
206
+
207
+ ## Common Documentation Patterns
208
+
209
+ **Architectural Decisions**:
210
+ ```markdown
211
+ ## Architecture
212
+
213
+ **[Decision Name]**: We use [pattern/approach]
214
+ - **Rationale**: [Why this choice was made]
215
+ - **Trade-offs**: [What we gained/lost]
216
+ - **Alternative considered**: [What we didn't choose and why]
217
+ ```
218
+
219
+ **Error Handling**:
220
+ ```markdown
221
+ ## Error Handling
222
+
223
+ - Use [specific error types/classes] for [scenario]
224
+ - Always [pattern] when [condition]
225
+ - Never [anti-pattern] because [reason]
226
+ ```
227
+
228
+ **Testing Conventions**:
229
+ ```markdown
230
+ ## Testing
231
+
232
+ - Test files: [location pattern]
233
+ - Mocking: [approach and tools]
234
+ - Coverage: [requirements]
235
+ - Gotcha: [non-obvious testing behavior]
236
+ ```
237
+
238
+ **Integration Points**:
239
+ ```markdown
240
+ ## [External Service/Component]
241
+
242
+ - **Authentication**: [method]
243
+ - **Configuration**: [where/how]
244
+ - **Error handling**: [approach]
245
+ - **Gotcha**: [non-obvious behavior]
246
+ ```
247
+
248
+ ---
249
+
250
+ ## Examples (Generic, adapt to your project)
251
+
252
+ **Broad Pattern → Project Documentation**:
253
+ ```
254
+ Learning: "Project uses custom error classes for each failure category"
255
+ Location: Root CLAUDE.md or docs/development.md
256
+ Section: Error Handling
257
+ ```
258
+
259
+ **Component-Specific → Component Documentation**:
260
+ ```
261
+ Learning: "Auth module requires initialization before any API calls"
262
+ Location: src/auth/CLAUDE.md
263
+ Section: Setup and Initialization
264
+ ```
265
+
266
+ **Architectural → Architecture Documentation**:
267
+ ```
268
+ Learning: "System uses event-driven architecture with message queue"
269
+ Location: ARCHITECTURE.md or root CLAUDE.md
270
+ Section: System Architecture
271
+ ```
272
+
273
+ **Gotcha → Relevant Documentation**:
274
+ ```
275
+ Learning: "Database connections must be manually closed in serverless"
276
+ Location: src/database/CLAUDE.md or docs/database.md
277
+ Section: Connection Management
278
+ ```
279
+
280
+ ---
281
+
282
+ ## Common Pitfalls to Avoid
283
+
284
+ **❌ Don't**:
285
+ - Document what's obvious from code
286
+ - Add every minor detail or edge case
287
+ - Duplicate information across multiple files
288
+ - Include temporary workarounds or TODOs
289
+ - Write exhaustive implementation details
290
+ - Add information that changes frequently
291
+ - Over-document standard language features
292
+
293
+ **✅ Do**:
294
+ - Focus on "why" and "gotchas"
295
+ - Keep it concise and actionable
296
+ - Place in most specific applicable location
297
+ - Cross-reference related documentation
298
+ - Update existing docs rather than creating new files
299
+ - Validate information is still accurate before adding
300
+ - Document decisions and trade-offs
301
+
302
+ ---
32
303
 
33
- ...that is relevant, was not known initially, and should be persisted, add it to the appropriate `CLAUDE.md` file. If the information is relevant for a subdirectory only, place or update it in the `CLAUDE.md` file within that subdirectory.
304
+ ## Quick Decision Guide
34
305
 
35
- When specific information belongs to a particular subcomponent, ensure you place it in the CLAUDE file for that component.
306
+ **Question Flow**:
307
+ 1. Is this **non-obvious** and **worth remembering**?
308
+ → NO: Skip
309
+ 2. Is it **broad/reusable** across components?
310
+ → YES: Add to project-wide docs
311
+ 3. Is it **component-specific**?
312
+ → YES: Add to component docs
313
+ 4. Does it **already exist** in documentation?
314
+ → YES: Update if outdated, skip if accurate
315
+ 5. Will I **struggle without** this in future sessions?
316
+ → YES: Add it / NO: Skip
36
317
 
37
- **For example (CodeMie CLI)**:
38
- * Information about agent plugins → `src/agents/CLAUDE.md`
39
- * Information about provider integration → `src/providers/CLAUDE.md`
40
- * Information about CLI commands `src/cli/CLAUDE.md`
41
- * Information about analytics system → `src/analytics/CLAUDE.md`
42
- * Information about workflow management `src/workflows/CLAUDE.md`
318
+ **File Selection**:
319
+ - **Project pattern** Root CLAUDE.md, README, or main docs
320
+ - **Component behavior** Component CLAUDE.md or README
321
+ - **Architecture** ARCHITECTURE.md or root CLAUDE.md
322
+ - **Setup/workflow** README.md or CONTRIBUTING.md
323
+ - **API patterns** Relevant component or API docs
43
324
 
44
- This ensures important knowledge is retained and available in future sessions.
325
+ **Remember**: Less documentation that's accurate and maintained is better than comprehensive documentation that becomes stale. Focus on capturing **critical, non-obvious knowledge** that helps future work.
@@ -1,54 +1,233 @@
1
- # Refresh and Audit CLAUDE Memory Files
1
+ # Refresh and Audit Project Documentation
2
2
 
3
- **Instructions:**
3
+ **Purpose**: Verify and update project documentation to reflect current implementation.
4
4
 
5
- **Step 1: Get Overview**
5
+ **CRITICAL**: Not every code change requires documentation updates. Only update documentation when:
6
+ - Implementation patterns have actually changed
7
+ - New architectural decisions were made
8
+ - Critical information is missing or incorrect
9
+ - Non-obvious behaviors have been introduced
6
10
 
7
- List all CLAUDE.md files in the project hierarchy and identify key directories that should have documentation.
11
+ If documentation accurately reflects the current codebase, no changes are needed.
8
12
 
9
- Key directories to check:
10
- * Root directory → `CLAUDE.md`
11
- * Agent system → `src/agents/CLAUDE.md`
12
- * Provider system → `src/providers/CLAUDE.md`
13
- * CLI commands → `src/cli/CLAUDE.md`
14
- * Analytics system → `src/analytics/CLAUDE.md`
15
- * Workflow management → `src/workflows/CLAUDE.md`
16
13
 
17
- **Step 2: Iterative Review**
18
14
 
19
- Process each directory systematically, starting with the root `CLAUDE.md` file:
15
+ ## Additional user's input
16
+ Additional context/input from user: $ARGUMENTS. Might be empty by default.
20
17
 
21
- **If CLAUDE.md exists:**
22
- - Load the current content
23
- - Compare documented patterns against actual implementation
24
- - Identify outdated, incorrect, or missing information
18
+ ## Step 1: Discover What Documentation Exists
25
19
 
26
- **If CLAUDE.md does NOT exist:**
27
- - Follow the memory-init process (see `.claude/commands/memory-init.md`):
28
- 1. Investigate architecture of the directory and subdirectories
29
- 2. Analyze design patterns, dependencies, abstractions, naming conventions
30
- 3. Create new CLAUDE.md file capturing this knowledge
20
+ Identify documentation systems in this project:
31
21
 
32
- **Step 3: Update and Refactor**
22
+ **A. Structured Guides** (if present):
23
+ Common locations to check:
24
+ - `docs/`, `.claude/guides/`, `.codemie/guides/`, `documentation/`
25
+ - Look for topical organization (architecture, development, testing, etc.)
33
26
 
34
- For each memory file (existing or newly created):
35
- - Verify all technical claims against the current codebase
36
- - Remove obsolete information
37
- - Consolidate duplicate entries
38
- - Ensure information is in the most appropriate file
27
+ **B. CLAUDE.md Files** (if present):
28
+ - Root `CLAUDE.md` (project overview)
29
+ - Component-specific `CLAUDE.md` in subdirectories
30
+ - Common in: `src/`, `lib/`, feature directories
39
31
 
40
- When information belongs to a specific subcomponent, ensure it's placed correctly:
41
- * Agent-specific patterns `src/agents/CLAUDE.md`
42
- * Provider integration details `src/providers/CLAUDE.md`
43
- * CLI command patterns → `src/cli/CLAUDE.md`
44
- * Analytics system details → `src/analytics/CLAUDE.md`
45
- * Workflow management patterns → `src/workflows/CLAUDE.md`
32
+ **C. Other Documentation**:
33
+ - `README.md`, `CONTRIBUTING.md`, `ARCHITECTURE.md`
34
+ - Wiki, Confluence, or external docs (mentioned in README)
46
35
 
47
- **Documentation Content Guidelines (applies to both new and refreshed files):**
48
- - Purpose and responsibility of this module
36
+ **Note**: Projects may have any combination of these, or none at all.
37
+
38
+ ---
39
+
40
+ ## Step 2: Review Recent Changes
41
+
42
+ Before reviewing documentation, understand what changed:
43
+
44
+ 1. **Check recent commits**: `git log --oneline -10`
45
+ 2. **Check current changes**: `git status` and `git diff`
46
+ 3. **Identify impact areas**:
47
+ - Did architectural patterns change?
48
+ - Were new components/modules added?
49
+ - Did core approaches evolve (error handling, testing, etc.)?
50
+ - Were security practices updated?
51
+ - Did integrations or APIs change?
52
+
53
+ **Decision Point**: If changes are minor (bug fixes, typos, small refactors), documentation likely doesn't need updates. Only proceed if changes affect patterns, architecture, or critical knowledge.
54
+
55
+ ---
56
+
57
+ ## Step 3: Audit Structured Guides (if present)
58
+
59
+ For each guide/doc file that exists:
60
+
61
+ **Review Process**:
62
+ 1. Load the content
63
+ 2. Compare documented patterns against actual implementation
64
+ 3. Check if described approaches still match the codebase
65
+ 4. Identify outdated, incorrect, or missing information
66
+
67
+ **Update Only If**:
68
+ - [ ] Pattern described no longer matches implementation
69
+ - [ ] New pattern emerged that should be documented
70
+ - [ ] Critical information is missing or incorrect
71
+ - [ ] Examples reference deleted/renamed code
72
+ - [ ] Security or architectural decisions changed
73
+
74
+ **Common Documentation Topics** (adapt to your project):
75
+ - Architecture and system design
76
+ - Error handling and logging patterns
77
+ - Testing strategies and setup
78
+ - Security practices
79
+ - API patterns and conventions
80
+ - Database/data patterns
81
+ - Development workflow
82
+ - Deployment and operations
83
+
84
+ ---
85
+
86
+ ## Step 4: Audit CLAUDE.md Files (if present)
87
+
88
+ For each CLAUDE.md file:
89
+
90
+ **Find CLAUDE.md Files**:
91
+ ```bash
92
+ find . -name "CLAUDE.md" -not -path "*/node_modules/*" -not -path "*/.git/*"
93
+ ```
94
+
95
+ **Review Process**:
96
+ 1. Load current content
97
+ 2. Compare against actual implementation in that directory
98
+ 3. Check if file structure/organization changed
99
+ 4. Identify outdated, incorrect, or missing information
100
+
101
+ **Update Only If**:
102
+ - [ ] Module purpose or responsibility changed
103
+ - [ ] Key architectural decisions evolved
104
+ - [ ] Important implementation details missing
105
+ - [ ] Documented patterns no longer used
106
+ - [ ] New gotchas or non-obvious behaviors introduced
107
+
108
+ **Typical CLAUDE.md Content** (adapt to project style):
109
+ - Purpose and responsibility of module
49
110
  - Key architectural decisions
50
111
  - Important implementation details
51
- - Common patterns used throughout the code
52
- - Any gotchas or non-obvious behaviors
112
+ - Common patterns used
113
+ - Non-obvious behaviors or gotchas
114
+ - Integration points with other modules
115
+
116
+ ---
117
+
118
+ ## Step 5: Determine What Needs Updating
119
+
120
+ Categorize findings:
121
+
122
+ **Definitely Update**:
123
+ - Documented pattern now incorrect
124
+ - Missing critical information for understanding
125
+ - Security or architectural approach changed
126
+ - Examples reference non-existent code
127
+ - Misleading or confusing content
128
+
129
+ **Probably Update**:
130
+ - New project-wide pattern should be documented
131
+ - Testing strategy evolved
132
+ - Integration points changed
133
+ - Important context missing
134
+
135
+ **No Update Needed**:
136
+ - Bug fixes that don't affect patterns
137
+ - Code refactoring maintaining same approach
138
+ - Typo fixes or variable renames
139
+ - Documentation already accurate
140
+ - Changes are self-evident from code
141
+
142
+ ---
143
+
144
+ ## Step 6: Execute Selective Updates
145
+
146
+ Only modify files where changes are actually needed:
147
+
148
+ **For Structured Guides**:
149
+ 1. Edit specific sections that are outdated
150
+ 2. Update code examples if references changed
151
+ 3. Add new patterns only if broadly applicable
152
+ 4. Remove obsolete information
153
+ 5. Keep content focused and concise
154
+
155
+ **For CLAUDE.md Files**:
156
+ 1. Verify technical claims against current code
157
+ 2. Update specific sections that changed
158
+ 3. Add new critical information
159
+ 4. Remove obsolete patterns
160
+ 5. Ensure info is in most appropriate file
161
+
162
+ **Content Placement**:
163
+ - **Broad patterns** (used across project) → Root docs or main CLAUDE.md
164
+ - **Component-specific** (local to one area) → Component CLAUDE.md or specific guide section
165
+ - **Project-wide conventions** → Root README or CLAUDE.md
166
+ - **Module implementation details** → Module-level CLAUDE.md
167
+
168
+ ---
169
+
170
+ ## Step 7: Validate Changes
171
+
172
+ Before finalizing:
173
+
174
+ **Accuracy Check**:
175
+ - [ ] All technical claims verified against current code
176
+ - [ ] Examples reference existing files/functions
177
+ - [ ] Patterns match actual implementation
178
+ - [ ] No contradictions between different docs
179
+
180
+ **Relevance Check**:
181
+ - [ ] Information is actionable
182
+ - [ ] Content helps future understanding
183
+ - [ ] No duplicate information across files
184
+ - [ ] No obsolete references
185
+
186
+ **Quality Check**:
187
+ - [ ] Clear and concise language
188
+ - [ ] Examples are accurate
189
+ - [ ] Proper markdown formatting
190
+ - [ ] Links work (if any)
191
+
192
+ ---
193
+
194
+ ## Key Principles
195
+
196
+ **Accuracy Over Completeness**:
197
+ - Better to have less documentation that's accurate
198
+ - Don't document what's obvious from well-written code
199
+ - Focus on "why" and "gotchas", not "what" (code shows "what")
200
+
201
+ **Selective Updates**:
202
+ - Not every commit requires documentation changes
203
+ - Only update when patterns or understanding actually shifts
204
+ - If in doubt, verify against actual implementation
205
+
206
+ **Appropriate Placement**:
207
+ - Put information where it's most useful
208
+ - Avoid duplication across files
209
+ - Component-specific → component docs
210
+ - Project-wide → root docs
211
+
212
+ **Maintainability**:
213
+ - Keep documentation focused
214
+ - Remove outdated content promptly
215
+ - Cross-reference related docs
216
+ - Use examples sparingly but effectively
217
+
218
+ ---
219
+
220
+ ## Decision Checklist
221
+
222
+ Before making changes, ask:
223
+
224
+ 1. **Is this change needed?** (Does doc mismatch implementation?)
225
+ 2. **Is it significant?** (Will this help future understanding?)
226
+ 3. **Where should it go?** (Most specific applicable location)
227
+ 4. **What's the scope?** (Component-specific or project-wide?)
228
+ 5. **Is it accurate?** (Verified against current code?)
229
+ 6. **Is it clear?** (Would someone else understand this?)
230
+
231
+ **If unsure**: Verify implementation first, then update documentation.
53
232
 
54
- Focus on clarity, accuracy, and relevance. Remove any information that no longer serves the project.
233
+ **Remember**: Documentation serves the code, not vice versa. Focus on critical, non-obvious knowledge that helps future work.
@@ -1 +1 @@
1
- {"version":3,"file":"gemini.plugin.d.ts","sourceRoot":"","sources":["../../../../src/agents/plugins/gemini/gemini.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAoF7F;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,aA2ClC,CAAC;AAEF;;GAEG;AACH,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,kBAAkB,CAAyB;;IAYnD;;;OAGG;IACH,kBAAkB,IAAI,eAAe;IAIrC;;OAEG;IACH,iBAAiB,IAAI,cAAc;IAInC;;;OAGG;IACH,qBAAqB,IAAI,sBAAsB;CAGhD"}
1
+ {"version":3,"file":"gemini.plugin.d.ts","sourceRoot":"","sources":["../../../../src/agents/plugins/gemini/gemini.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AAoF7F;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAwClC,CAAC;AAEF;;GAEG;AACH,qBAAa,YAAa,SAAQ,gBAAgB;IAChD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,kBAAkB,CAAyB;;IAYnD;;;OAGG;IACH,kBAAkB,IAAI,eAAe;IAIrC;;OAEG;IACH,iBAAiB,IAAI,cAAc;IAInC;;;OAGG;IACH,qBAAqB,IAAI,sBAAsB;CAGhD"}
@@ -102,9 +102,6 @@ export const GeminiPluginMetadata = {
102
102
  },
103
103
  tools: {
104
104
  enableHooks: true
105
- },
106
- hooks: {
107
- enabled: true
108
105
  }
109
106
  });
110
107
  return env;
@@ -1 +1 @@
1
- {"version":3,"file":"gemini.plugin.js","sourceRoot":"","sources":["../../../../src/agents/plugins/gemini/gemini.plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,+DAA+D;AAC/D,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,yCAAyC;IAEtD,UAAU,EAAE,oBAAoB;IAChC,UAAU,EAAE,QAAQ;IAEpB,UAAU,EAAE;QACV,OAAO,EAAE,CAAC,wBAAwB,EAAE,iBAAiB,CAAC;QACtD,MAAM,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;QAC5C,KAAK,EAAE,CAAC,cAAc,CAAC;KACxB;IAED,kBAAkB,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC;IAC7C,oBAAoB,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,qBAAqB;IAClE,iBAAiB,EAAE,CAAC,cAAc,CAAC;IAEnC,SAAS,EAAE;QACT,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,gBAAgB;KAC7B;IAED,YAAY,EAAE;QACZ,QAAQ,EAAE;YACR,IAAI,EAAE,MAAe;YACrB,MAAM,EAAE,IAAI;SACb;KACF;IAED,qDAAqD;IACrD,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KAAK,WAAkC,GAAsB;YACtE,qDAAqD;YACrD,MAAM,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;YAEnD,sEAAsE;YACtE,MAAM,IAAI,CAAC,cAAc,CACvB,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,EACjD;gBACE,QAAQ,EAAE;oBACR,IAAI,EAAE;wBACJ,YAAY,EAAE,gBAAgB;qBAC/B;iBACF;gBACD,KAAK,EAAE;oBACL,WAAW,EAAE,IAAI;iBAClB;gBACD,KAAK,EAAE;oBACL,OAAO,EAAE,IAAI;iBACd;aACF,CACF,CAAC;YAEF,OAAO,GAAG,CAAC;QACb,CAAC;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACxC,eAAe,CAAkB;IACjC,cAAc,CAAiB;IAC/B,kBAAkB,CAAyB;IAEnD;QACE,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,yEAAyE;QACzE,IAAI,CAAC,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC;QACnD,sDAAsD;QACtD,IAAI,CAAC,cAAc,GAAG,IAAI,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;QACrE,0EAA0E;QAC1E,IAAI,CAAC,kBAAkB,GAAG,IAAI,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;CACF"}
1
+ {"version":3,"file":"gemini.plugin.js","sourceRoot":"","sources":["../../../../src/agents/plugins/gemini/gemini.plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,g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ACF,CAAC;YAEF,OAAO,GAAG,CAAC;QACb,CAAC;KACF;CACF,CAAC;AAEF;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,gBAAgB;IACxC,eAAe,CAAkB;IACjC,cAAc,CAAiB;IAC/B,kBAAkB,CAAyB;IAEnD;QACE,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAC5B,yEAAyE;QACzE,IAAI,CAAC,eAAe,GAAG,IAAI,qBAAqB,EAAE,CAAC;QACnD,sDAAsD;QACtD,IAAI,CAAC,cAAc,GAAG,IAAI,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;QACrE,0EAA0E;QAC1E,IAAI,CAAC,kBAAkB,GAAG,IAAI,wBAAwB,CAAC,oBAAoB,CAAC,CAAC;IAC/E,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,OAAO,IAAI,CAAC,cAAc,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,qBAAqB;QACnB,OAAO,IAAI,CAAC,kBAAkB,CAAC;IACjC,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ export { OpenCodePlugin, OpenCodePluginMetadata } from './opencode.plugin.js';
2
+ export { OPENCODE_MODEL_CONFIGS, getModelConfig, type OpenCodeModelConfig } from './opencode-model-configs.js';
3
+ export { OpenCodeSessionAdapter } from './opencode.session.js';
4
+ export { getOpenCodeStoragePath, getOpenCodeSessionsPath, getOpenCodeMessagesPath, getOpenCodePartsPath, getSessionStoragePath } from './opencode.paths.js';
5
+ export type { OpenCodeSession, OpenCodeMessage, OpenCodePart, OpenCodeTokens } from './opencode-message-types.js';
6
+ export { isTextPart, isToolPart, isFilePart, isReasoningPart, isStepFinishPart, isAssistantMessage } from './opencode-message-types.js';
7
+ export type { SessionDiscoveryOptions, SessionDescriptor } from '../../core/session/discovery-types.js';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/agents/plugins/opencode/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,KAAK,mBAAmB,EACzB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,oBAAoB,EAEpB,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACZ,cAAc,EACf,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,uCAAuC,CAAC"}