@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.
- package/README.md +73 -7
- package/bin/codemie-opencode.js +11 -0
- package/dist/agents/codemie-code/agent.d.ts +17 -1
- package/dist/agents/codemie-code/agent.d.ts.map +1 -1
- package/dist/agents/codemie-code/agent.js +62 -3
- package/dist/agents/codemie-code/agent.js.map +1 -1
- package/dist/agents/codemie-code/index.d.ts +1 -0
- package/dist/agents/codemie-code/index.d.ts.map +1 -1
- package/dist/agents/codemie-code/index.js +28 -2
- package/dist/agents/codemie-code/index.js.map +1 -1
- package/dist/agents/codemie-code/prompts.d.ts +12 -3
- package/dist/agents/codemie-code/prompts.d.ts.map +1 -1
- package/dist/agents/codemie-code/prompts.js +25 -5
- package/dist/agents/codemie-code/prompts.js.map +1 -1
- package/dist/agents/codemie-code/types.d.ts +3 -0
- package/dist/agents/codemie-code/types.d.ts.map +1 -1
- package/dist/agents/codemie-code/types.js.map +1 -1
- package/dist/agents/core/AgentCLI.d.ts.map +1 -1
- package/dist/agents/core/AgentCLI.js +3 -1
- package/dist/agents/core/AgentCLI.js.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.js +33 -0
- package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
- package/dist/agents/core/session/BaseSessionAdapter.d.ts +25 -0
- package/dist/agents/core/session/BaseSessionAdapter.d.ts.map +1 -1
- package/dist/agents/core/session/discovery-types.d.ts +53 -0
- package/dist/agents/core/session/discovery-types.d.ts.map +1 -0
- package/dist/agents/core/session/discovery-types.js +8 -0
- package/dist/agents/core/session/discovery-types.js.map +1 -0
- package/dist/agents/core/types.d.ts +45 -0
- package/dist/agents/core/types.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.d.ts +44 -1
- package/dist/agents/plugins/claude/claude.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude/claude.plugin.js +214 -0
- package/dist/agents/plugins/claude/claude.plugin.js.map +1 -1
- package/dist/agents/plugins/claude/plugin/README.md +40 -2
- package/dist/agents/plugins/claude/plugin/claude-templates/README.md +5 -5
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/CLAUDE.md.template +177 -436
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/code-review-agent-template.md.template +49 -82
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/refactor-cleaner-agent.md.template +337 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/solution-architect-agent.md.template +129 -419
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/agents/unit-tester-agent.md.template +146 -693
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/api/api-patterns.md.template +110 -138
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/architecture.md.template +197 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/data/database-patterns.md.template +171 -91
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/development/development-practices.md.template +219 -131
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/security/security-practices.md.template +223 -98
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/standards/code-quality.md.template +131 -95
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/testing/testing-patterns.md.template +247 -75
- package/dist/agents/plugins/claude/plugin/commands/README.md +133 -0
- package/dist/agents/plugins/claude/plugin/commands/codemie-init.md +336 -544
- package/dist/agents/plugins/claude/plugin/commands/codemie-subagents.md +232 -503
- package/dist/agents/plugins/claude/plugin/commands/memory-add.md +311 -30
- package/dist/agents/plugins/claude/plugin/commands/memory-refresh.md +218 -39
- package/dist/agents/plugins/gemini/gemini.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/gemini/gemini.plugin.js +0 -3
- package/dist/agents/plugins/gemini/gemini.plugin.js.map +1 -1
- package/dist/agents/plugins/opencode/index.d.ts +8 -0
- package/dist/agents/plugins/opencode/index.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/index.js +12 -0
- package/dist/agents/plugins/opencode/index.js.map +1 -0
- package/dist/agents/plugins/opencode/opencode-message-types.d.ts +207 -0
- package/dist/agents/plugins/opencode/opencode-message-types.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/opencode-message-types.js +59 -0
- package/dist/agents/plugins/opencode/opencode-message-types.js.map +1 -0
- package/dist/agents/plugins/opencode/opencode-model-configs.d.ts +65 -0
- package/dist/agents/plugins/opencode/opencode-model-configs.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/opencode-model-configs.js +184 -0
- package/dist/agents/plugins/opencode/opencode-model-configs.js.map +1 -0
- package/dist/agents/plugins/opencode/opencode.paths.d.ts +62 -0
- package/dist/agents/plugins/opencode/opencode.paths.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/opencode.paths.js +148 -0
- package/dist/agents/plugins/opencode/opencode.paths.js.map +1 -0
- package/dist/agents/plugins/opencode/opencode.plugin.d.ts +35 -0
- package/dist/agents/plugins/opencode/opencode.plugin.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/opencode.plugin.js +338 -0
- package/dist/agents/plugins/opencode/opencode.plugin.js.map +1 -0
- package/dist/agents/plugins/opencode/opencode.session.d.ts +77 -0
- package/dist/agents/plugins/opencode/opencode.session.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/opencode.session.js +424 -0
- package/dist/agents/plugins/opencode/opencode.session.js.map +1 -0
- package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts +25 -0
- package/dist/agents/plugins/opencode/opencode.storage-utils.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/opencode.storage-utils.js +96 -0
- package/dist/agents/plugins/opencode/opencode.storage-utils.js.map +1 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts +30 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js +116 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.conversations-processor.js.map +1 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts +102 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.d.ts.map +1 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js +584 -0
- package/dist/agents/plugins/opencode/session/processors/opencode.metrics-processor.js.map +1 -0
- package/dist/agents/registry.d.ts.map +1 -1
- package/dist/agents/registry.js +2 -0
- package/dist/agents/registry.js.map +1 -1
- package/dist/cli/commands/doctor/checks/AgentsCheck.d.ts +5 -0
- package/dist/cli/commands/doctor/checks/AgentsCheck.d.ts.map +1 -1
- package/dist/cli/commands/doctor/checks/AgentsCheck.js +29 -0
- package/dist/cli/commands/doctor/checks/AgentsCheck.js.map +1 -1
- package/dist/cli/commands/install.d.ts.map +1 -1
- package/dist/cli/commands/install.js +86 -7
- package/dist/cli/commands/install.js.map +1 -1
- package/dist/cli/commands/opencode-metrics.d.ts +13 -0
- package/dist/cli/commands/opencode-metrics.d.ts.map +1 -0
- package/dist/cli/commands/opencode-metrics.js +200 -0
- package/dist/cli/commands/opencode-metrics.js.map +1 -0
- package/dist/cli/commands/setup.d.ts.map +1 -1
- package/dist/cli/commands/setup.js +113 -0
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/commands/skill.d.ts +6 -0
- package/dist/cli/commands/skill.d.ts.map +1 -0
- package/dist/cli/commands/skill.js +196 -0
- package/dist/cli/commands/skill.js.map +1 -0
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +34 -6
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/index.js +4 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/migrations/003-remove-hooks-node.migration.d.ts +22 -0
- package/dist/migrations/003-remove-hooks-node.migration.d.ts.map +1 -0
- package/dist/migrations/003-remove-hooks-node.migration.js +103 -0
- package/dist/migrations/003-remove-hooks-node.migration.js.map +1 -0
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +1 -1
- package/dist/migrations/index.js.map +1 -1
- package/dist/providers/plugins/sso/sso.http-client.js +2 -2
- package/dist/providers/plugins/sso/sso.http-client.js.map +1 -1
- package/dist/providers/plugins/sso/sso.setup-steps.d.ts.map +1 -1
- package/dist/providers/plugins/sso/sso.setup-steps.js +14 -10
- package/dist/providers/plugins/sso/sso.setup-steps.js.map +1 -1
- package/dist/skills/core/SkillDiscovery.d.ts +83 -0
- package/dist/skills/core/SkillDiscovery.d.ts.map +1 -0
- package/dist/skills/core/SkillDiscovery.js +237 -0
- package/dist/skills/core/SkillDiscovery.js.map +1 -0
- package/dist/skills/core/SkillManager.d.ts +86 -0
- package/dist/skills/core/SkillManager.d.ts.map +1 -0
- package/dist/skills/core/SkillManager.js +155 -0
- package/dist/skills/core/SkillManager.js.map +1 -0
- package/dist/skills/core/types.d.ts +120 -0
- package/dist/skills/core/types.d.ts.map +1 -0
- package/dist/skills/core/types.js +20 -0
- package/dist/skills/core/types.js.map +1 -0
- package/dist/skills/index.d.ts +12 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +12 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/utils/content-loader.d.ts +25 -0
- package/dist/skills/utils/content-loader.d.ts.map +1 -0
- package/dist/skills/utils/content-loader.js +161 -0
- package/dist/skills/utils/content-loader.js.map +1 -0
- package/dist/skills/utils/frontmatter.d.ts +60 -0
- package/dist/skills/utils/frontmatter.d.ts.map +1 -0
- package/dist/skills/utils/frontmatter.js +114 -0
- package/dist/skills/utils/frontmatter.js.map +1 -0
- package/dist/skills/utils/pattern-matcher.d.ts +60 -0
- package/dist/skills/utils/pattern-matcher.d.ts.map +1 -0
- package/dist/skills/utils/pattern-matcher.js +97 -0
- package/dist/skills/utils/pattern-matcher.js.map +1 -0
- package/dist/utils/installation-detector.d.ts +22 -0
- package/dist/utils/installation-detector.d.ts.map +1 -0
- package/dist/utils/installation-detector.js +49 -0
- package/dist/utils/installation-detector.js.map +1 -0
- package/dist/utils/native-installer.d.ts +49 -0
- package/dist/utils/native-installer.d.ts.map +1 -0
- package/dist/utils/native-installer.js +194 -0
- package/dist/utils/native-installer.js.map +1 -0
- package/dist/utils/version-utils.d.ts +50 -0
- package/dist/utils/version-utils.d.ts.map +1 -0
- package/dist/utils/version-utils.js +92 -0
- package/dist/utils/version-utils.js.map +1 -0
- package/package.json +5 -2
- package/scripts/copy-mr-skill-to-global.ts +252 -0
- package/scripts/demo-hooks.sh +125 -0
- package/scripts/test-hooks.sh +196 -0
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/INDEX.md +0 -205
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/TEMPLATE_SIZES.md +0 -74
- package/dist/agents/plugins/claude/plugin/claude-templates/templates/guides/architecture/layered-architecture.md.template +0 -143
- 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
|
|
1
|
+
# Add New Knowledge to Project Documentation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Purpose**: Capture important learnings from the current session that should persist for future work.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
10
|
+
Projects may use any combination of these systems or none at all.
|
|
8
11
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
304
|
+
## Quick Decision Guide
|
|
34
305
|
|
|
35
|
-
|
|
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
|
-
**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
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
|
|
1
|
+
# Refresh and Audit Project Documentation
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Purpose**: Verify and update project documentation to reflect current implementation.
|
|
4
4
|
|
|
5
|
-
**
|
|
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
|
-
|
|
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
|
-
|
|
15
|
+
## Additional user's input
|
|
16
|
+
Additional context/input from user: $ARGUMENTS. Might be empty by default.
|
|
20
17
|
|
|
21
|
-
|
|
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
|
-
|
|
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
|
-
**
|
|
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
|
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
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
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
**
|
|
48
|
-
|
|
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
|
|
52
|
-
-
|
|
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
|
-
|
|
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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
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AAI,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;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"}
|
|
@@ -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"}
|