liteagents 2.4.0
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/CHANGELOG.md +441 -0
- package/LICENSE +21 -0
- package/README.md +179 -0
- package/cli.js +230 -0
- package/docs/.gitkeep +1 -0
- package/docs/CONTRIBUTING.md +739 -0
- package/docs/DUAL_PUBLISH_SUMMARY.md +177 -0
- package/docs/ERROR_HANDLING_IMPLEMENTATION.md +327 -0
- package/docs/GITHUB_PACKAGES.md +181 -0
- package/docs/GITHUB_SETUP.md +158 -0
- package/docs/INSTALLATION_DEMO.md +691 -0
- package/docs/INSTALLATION_LOCATIONS.md +299 -0
- package/docs/INSTALLER_GUIDE.md +1586 -0
- package/docs/INTEGRATION_ISSUES_9.1.md +341 -0
- package/docs/KNOWLEDGE_BASE.md +727 -0
- package/docs/MIGRATION.md +384 -0
- package/docs/PACKAGE_BASELINE.md +557 -0
- package/docs/PACKAGE_VALIDATION_REPORT.md +427 -0
- package/docs/PASS_INTEGRATION.md +307 -0
- package/docs/PASS_QUICK_START.md +150 -0
- package/docs/PRIVACY.md +203 -0
- package/docs/PUBLISHING.md +494 -0
- package/docs/QUICK-START.md +318 -0
- package/docs/RELEASE_NOTES_1.2.0.md +323 -0
- package/docs/SECURITY.md +317 -0
- package/docs/SILENT_MODE_GUIDE.md +526 -0
- package/docs/SKILLS_CONVERSION.md +154 -0
- package/docs/TESTING.md +582 -0
- package/docs/TEST_COVERAGE.md +347 -0
- package/docs/TROUBLESHOOTING.md +788 -0
- package/docs/UPDATED_VARIANT_CONFIGURATION.md +274 -0
- package/docs/VARIANT_CONFIGURATION.md +440 -0
- package/installer/cli.js +761 -0
- package/installer/installation-engine.js +1536 -0
- package/installer/package-manager.js +640 -0
- package/installer/path-manager.js +427 -0
- package/installer/report-template.js +298 -0
- package/installer/verification-system.js +274 -0
- package/package.json +83 -0
- package/packages/ampcode/AGENT.md +58 -0
- package/packages/ampcode/README.md +17 -0
- package/packages/ampcode/agents/1-create-prd.md +175 -0
- package/packages/ampcode/agents/2-generate-tasks.md +190 -0
- package/packages/ampcode/agents/3-process-task-list.md +225 -0
- package/packages/ampcode/agents/code-developer.md +198 -0
- package/packages/ampcode/agents/context-builder.md +142 -0
- package/packages/ampcode/agents/feature-planner.md +199 -0
- package/packages/ampcode/agents/market-researcher.md +89 -0
- package/packages/ampcode/agents/orchestrator.md +116 -0
- package/packages/ampcode/agents/quality-assurance.md +115 -0
- package/packages/ampcode/agents/system-architect.md +135 -0
- package/packages/ampcode/agents/ui-designer.md +184 -0
- package/packages/ampcode/commands/brainstorming.md +56 -0
- package/packages/ampcode/commands/code-review.md +107 -0
- package/packages/ampcode/commands/condition-based-waiting/example.ts +158 -0
- package/packages/ampcode/commands/condition-based-waiting.md +122 -0
- package/packages/ampcode/commands/debug.md +20 -0
- package/packages/ampcode/commands/docs-builder/templates.md +572 -0
- package/packages/ampcode/commands/docs-builder.md +106 -0
- package/packages/ampcode/commands/explain.md +18 -0
- package/packages/ampcode/commands/git-commit.md +14 -0
- package/packages/ampcode/commands/optimize.md +20 -0
- package/packages/ampcode/commands/refactor.md +21 -0
- package/packages/ampcode/commands/review.md +18 -0
- package/packages/ampcode/commands/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/ampcode/commands/root-cause-tracing.md +176 -0
- package/packages/ampcode/commands/security.md +21 -0
- package/packages/ampcode/commands/ship.md +18 -0
- package/packages/ampcode/commands/skill-creator/scripts/init_skill.py +303 -0
- package/packages/ampcode/commands/skill-creator/scripts/package_skill.py +110 -0
- package/packages/ampcode/commands/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/ampcode/commands/skill-creator.md +211 -0
- package/packages/ampcode/commands/stash.md +45 -0
- package/packages/ampcode/commands/systematic-debugging.md +297 -0
- package/packages/ampcode/commands/test-driven-development.md +390 -0
- package/packages/ampcode/commands/test-generate.md +18 -0
- package/packages/ampcode/commands/testing-anti-patterns.md +304 -0
- package/packages/ampcode/commands/verification-before-completion.md +152 -0
- package/packages/ampcode/settings.json +13 -0
- package/packages/ampcode/variants.json +8 -0
- package/packages/claude/CLAUDE.md +58 -0
- package/packages/claude/README.md +23 -0
- package/packages/claude/agents/1-create-prd.md +175 -0
- package/packages/claude/agents/2-generate-tasks.md +190 -0
- package/packages/claude/agents/3-process-task-list.md +225 -0
- package/packages/claude/agents/code-developer.md +198 -0
- package/packages/claude/agents/context-builder.md +142 -0
- package/packages/claude/agents/feature-planner.md +199 -0
- package/packages/claude/agents/market-researcher.md +89 -0
- package/packages/claude/agents/orchestrator.md +117 -0
- package/packages/claude/agents/quality-assurance.md +115 -0
- package/packages/claude/agents/system-architect.md +135 -0
- package/packages/claude/agents/ui-designer.md +184 -0
- package/packages/claude/commands/debug.md +20 -0
- package/packages/claude/commands/explain.md +18 -0
- package/packages/claude/commands/git-commit.md +14 -0
- package/packages/claude/commands/optimize.md +20 -0
- package/packages/claude/commands/refactor.md +21 -0
- package/packages/claude/commands/review.md +18 -0
- package/packages/claude/commands/security.md +21 -0
- package/packages/claude/commands/ship.md +18 -0
- package/packages/claude/commands/stash.md +45 -0
- package/packages/claude/commands/test-generate.md +18 -0
- package/packages/claude/skills/brainstorming/SKILL.md +56 -0
- package/packages/claude/skills/code-review/SKILL.md +107 -0
- package/packages/claude/skills/code-review/code-reviewer.md +146 -0
- package/packages/claude/skills/condition-based-waiting/SKILL.md +122 -0
- package/packages/claude/skills/condition-based-waiting/example.ts +158 -0
- package/packages/claude/skills/docs-builder/SKILL.md +106 -0
- package/packages/claude/skills/docs-builder/references/templates.md +572 -0
- package/packages/claude/skills/root-cause-tracing/SKILL.md +176 -0
- package/packages/claude/skills/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/claude/skills/skill-creator/LICENSE.txt +202 -0
- package/packages/claude/skills/skill-creator/SKILL.md +211 -0
- package/packages/claude/skills/skill-creator/scripts/init_skill.py +303 -0
- package/packages/claude/skills/skill-creator/scripts/package_skill.py +110 -0
- package/packages/claude/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/claude/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/packages/claude/skills/systematic-debugging/SKILL.md +296 -0
- package/packages/claude/skills/systematic-debugging/test-academic.md +14 -0
- package/packages/claude/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/packages/claude/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/packages/claude/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/packages/claude/skills/test-driven-development/SKILL.md +392 -0
- package/packages/claude/skills/testing-anti-patterns/SKILL.md +304 -0
- package/packages/claude/skills/verification-before-completion/SKILL.md +152 -0
- package/packages/claude/variants.json +9 -0
- package/packages/droid/AGENTS.md +52 -0
- package/packages/droid/README.md +17 -0
- package/packages/droid/change_settings.json +61 -0
- package/packages/droid/commands/brainstorming.md +56 -0
- package/packages/droid/commands/code-review.md +107 -0
- package/packages/droid/commands/condition-based-waiting/example.ts +158 -0
- package/packages/droid/commands/condition-based-waiting.md +122 -0
- package/packages/droid/commands/debug.md +20 -0
- package/packages/droid/commands/docs-builder/templates.md +572 -0
- package/packages/droid/commands/docs-builder.md +106 -0
- package/packages/droid/commands/explain.md +18 -0
- package/packages/droid/commands/git-commit.md +14 -0
- package/packages/droid/commands/optimize.md +20 -0
- package/packages/droid/commands/refactor.md +21 -0
- package/packages/droid/commands/review.md +18 -0
- package/packages/droid/commands/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/droid/commands/root-cause-tracing.md +176 -0
- package/packages/droid/commands/security.md +21 -0
- package/packages/droid/commands/ship.md +18 -0
- package/packages/droid/commands/skill-creator/scripts/init_skill.py +303 -0
- package/packages/droid/commands/skill-creator/scripts/package_skill.py +110 -0
- package/packages/droid/commands/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/droid/commands/skill-creator.md +211 -0
- package/packages/droid/commands/stash.md +45 -0
- package/packages/droid/commands/systematic-debugging.md +297 -0
- package/packages/droid/commands/test-driven-development.md +390 -0
- package/packages/droid/commands/test-generate.md +18 -0
- package/packages/droid/commands/testing-anti-patterns.md +304 -0
- package/packages/droid/commands/verification-before-completion.md +152 -0
- package/packages/droid/droids/1-create-prd.md +170 -0
- package/packages/droid/droids/2-generate-tasks.md +190 -0
- package/packages/droid/droids/3-process-task-list.md +225 -0
- package/packages/droid/droids/code-developer.md +198 -0
- package/packages/droid/droids/context-builder.md +142 -0
- package/packages/droid/droids/feature-planner.md +199 -0
- package/packages/droid/droids/market-researcher.md +89 -0
- package/packages/droid/droids/orchestrator.md +116 -0
- package/packages/droid/droids/quality-assurance.md +115 -0
- package/packages/droid/droids/system-architect.md +135 -0
- package/packages/droid/droids/ui-designer.md +184 -0
- package/packages/droid/variants.json +8 -0
- package/packages/opencode/AGENTS.md +52 -0
- package/packages/opencode/README.md +17 -0
- package/packages/opencode/agent/1-create-prd.md +179 -0
- package/packages/opencode/agent/2-generate-tasks.md +194 -0
- package/packages/opencode/agent/3-process-task-list.md +229 -0
- package/packages/opencode/agent/code-developer.md +202 -0
- package/packages/opencode/agent/context-builder.md +146 -0
- package/packages/opencode/agent/feature-planner.md +203 -0
- package/packages/opencode/agent/market-researcher.md +93 -0
- package/packages/opencode/agent/orchestrator.md +120 -0
- package/packages/opencode/agent/quality-assurance.md +119 -0
- package/packages/opencode/agent/system-architect.md +139 -0
- package/packages/opencode/agent/ui-designer.md +188 -0
- package/packages/opencode/command/brainstorming.md +56 -0
- package/packages/opencode/command/code-review.md +107 -0
- package/packages/opencode/command/condition-based-waiting/example.ts +158 -0
- package/packages/opencode/command/condition-based-waiting.md +122 -0
- package/packages/opencode/command/debug.md +20 -0
- package/packages/opencode/command/docs-builder/templates.md +572 -0
- package/packages/opencode/command/docs-builder.md +106 -0
- package/packages/opencode/command/explain.md +18 -0
- package/packages/opencode/command/git-commit.md +14 -0
- package/packages/opencode/command/optimize.md +20 -0
- package/packages/opencode/command/refactor.md +21 -0
- package/packages/opencode/command/review.md +18 -0
- package/packages/opencode/command/root-cause-tracing/find-polluter.sh +63 -0
- package/packages/opencode/command/root-cause-tracing.md +176 -0
- package/packages/opencode/command/security.md +21 -0
- package/packages/opencode/command/ship.md +18 -0
- package/packages/opencode/command/skill-creator/scripts/init_skill.py +303 -0
- package/packages/opencode/command/skill-creator/scripts/package_skill.py +110 -0
- package/packages/opencode/command/skill-creator/scripts/quick_validate.py +65 -0
- package/packages/opencode/command/skill-creator.md +211 -0
- package/packages/opencode/command/stash.md +45 -0
- package/packages/opencode/command/systematic-debugging.md +297 -0
- package/packages/opencode/command/test-driven-development.md +390 -0
- package/packages/opencode/command/test-generate.md +18 -0
- package/packages/opencode/command/testing-anti-patterns.md +304 -0
- package/packages/opencode/command/verification-before-completion.md +152 -0
- package/packages/opencode/opencode.jsonc +201 -0
- package/packages/opencode/variants.json +8 -0
- package/packages/subagentic-manual.md +349 -0
- package/postinstall.js +21 -0
- package/tools/ampcode/manifest-template.json +14 -0
- package/tools/claude/manifest-template.json +14 -0
- package/tools/droid/manifest-template.json +14 -0
- package/tools/opencode/manifest-template.json +14 -0
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
# Migration Guide - Agentic Kit
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This guide helps you migrate from older versions of Agentic Kit to the new interactive installer system. The new system introduces variant-based installations (Lite/Standard/Pro) and improved multi-tool support.
|
|
6
|
+
|
|
7
|
+
## What's New in Version 1.2.0
|
|
8
|
+
|
|
9
|
+
### Major Changes
|
|
10
|
+
1. **Variant System**: Choose between Lite, Standard, or Pro packages
|
|
11
|
+
2. **Multi-Tool Support**: Install multiple AI tools (Claude, Opencode, Ampcode, Droid)
|
|
12
|
+
3. **Interactive Installer**: Step-by-step guided installation process
|
|
13
|
+
4. **Manifest Files**: Each installation now includes a manifest.json for tracking
|
|
14
|
+
5. **Resume Capability**: Interrupted installations can be resumed
|
|
15
|
+
6. **Rollback Support**: Failed installations automatically roll back
|
|
16
|
+
|
|
17
|
+
### File Structure Changes
|
|
18
|
+
|
|
19
|
+
**Old Structure** (< 1.2.0):
|
|
20
|
+
```
|
|
21
|
+
~/.claude/
|
|
22
|
+
├── agents/
|
|
23
|
+
├── skills/
|
|
24
|
+
├── resources/
|
|
25
|
+
└── hooks/
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**New Structure** (>= 1.2.0):
|
|
29
|
+
```
|
|
30
|
+
~/.claude/
|
|
31
|
+
├── agents/
|
|
32
|
+
├── skills/
|
|
33
|
+
├── resources/
|
|
34
|
+
├── hooks/
|
|
35
|
+
└── manifest.json ← NEW: Installation metadata
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Automatic Migration Detection
|
|
39
|
+
|
|
40
|
+
### How It Works
|
|
41
|
+
|
|
42
|
+
When you run the new installer, it automatically:
|
|
43
|
+
1. Checks for existing installations at default paths
|
|
44
|
+
2. Detects if they're from older versions (no manifest.json)
|
|
45
|
+
3. Prompts you to migrate: `"Legacy installation detected. Migrate to new installer? (Y/n)"`
|
|
46
|
+
|
|
47
|
+
### Migration Process
|
|
48
|
+
|
|
49
|
+
If you choose to migrate (`Y`), the installer will:
|
|
50
|
+
|
|
51
|
+
1. **Scan Existing Files**
|
|
52
|
+
- Counts agents, skills, resources, hooks in current installation
|
|
53
|
+
- Analyzes directory structure
|
|
54
|
+
|
|
55
|
+
2. **Classify Variant**
|
|
56
|
+
- 3 agents, 0 skills → Classified as **Lite**
|
|
57
|
+
- 13 agents, 1-8 skills → Classified as **Standard**
|
|
58
|
+
- 13 agents, 9+ skills → Classified as **Pro**
|
|
59
|
+
- Custom configurations → Classified as **Custom** (closest match)
|
|
60
|
+
|
|
61
|
+
3. **Create Manifest**
|
|
62
|
+
- Generates manifest.json with detected configuration
|
|
63
|
+
- Records file counts and paths
|
|
64
|
+
- Preserves installation timestamp
|
|
65
|
+
|
|
66
|
+
4. **Preserve Customizations**
|
|
67
|
+
- Existing files are not modified
|
|
68
|
+
- Custom agents/skills are retained
|
|
69
|
+
- User-created content is preserved
|
|
70
|
+
|
|
71
|
+
5. **Validation**
|
|
72
|
+
- Verifies all files are accessible
|
|
73
|
+
- Checks manifest integrity
|
|
74
|
+
- Reports any issues
|
|
75
|
+
|
|
76
|
+
### Example Migration
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
$ node installer/cli.js
|
|
80
|
+
|
|
81
|
+
Welcome to Agentic Kit Installer v1.2.0
|
|
82
|
+
|
|
83
|
+
⚠ Legacy installation detected at ~/.claude
|
|
84
|
+
Found: 13 agents, 5 skills, 1 resource, 2 hooks
|
|
85
|
+
This appears to be from version < 1.2.0 (no manifest.json)
|
|
86
|
+
|
|
87
|
+
Migrate to new installer? (Y/n): y
|
|
88
|
+
|
|
89
|
+
Analyzing installation...
|
|
90
|
+
✓ Classified as: Standard variant
|
|
91
|
+
✓ All files accessible
|
|
92
|
+
|
|
93
|
+
Creating manifest...
|
|
94
|
+
✓ manifest.json created
|
|
95
|
+
|
|
96
|
+
Migration complete!
|
|
97
|
+
Your installation is now compatible with v1.2.0
|
|
98
|
+
You can now use upgrade/downgrade features
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Manual Migration
|
|
102
|
+
|
|
103
|
+
If you prefer to migrate manually or the automatic migration fails:
|
|
104
|
+
|
|
105
|
+
### Step 1: Backup Your Installation
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Backup Claude installation
|
|
109
|
+
cp -r ~/.claude ~/.claude.backup
|
|
110
|
+
|
|
111
|
+
# Backup other tools if installed
|
|
112
|
+
cp -r ~/.config/opencode ~/.config/opencode.backup
|
|
113
|
+
cp -r ~/.amp ~/.amp.backup
|
|
114
|
+
cp -r ~/.factory ~/.factory.backup
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Step 2: Count Your Components
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Count agents
|
|
121
|
+
ls ~/.claude/agents/*.md | wc -l
|
|
122
|
+
|
|
123
|
+
# Count skills
|
|
124
|
+
ls ~/.claude/skills/*.md 2>/dev/null | wc -l
|
|
125
|
+
|
|
126
|
+
# Count resources
|
|
127
|
+
ls ~/.claude/resources/* 2>/dev/null | wc -l
|
|
128
|
+
|
|
129
|
+
# Count hooks
|
|
130
|
+
ls ~/.claude/hooks/*.js 2>/dev/null | wc -l
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Step 3: Determine Your Variant
|
|
134
|
+
|
|
135
|
+
Based on component counts:
|
|
136
|
+
- **Lite**: 3 agents, 0 skills
|
|
137
|
+
- **Standard**: 13 agents, 1-8 skills
|
|
138
|
+
- **Pro**: 13 agents, 9+ skills
|
|
139
|
+
|
|
140
|
+
### Step 4: Create Manifest Manually
|
|
141
|
+
|
|
142
|
+
Create `~/.claude/manifest.json`:
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"tool": "claude",
|
|
147
|
+
"variant": "standard",
|
|
148
|
+
"version": "1.2.0",
|
|
149
|
+
"installed_at": "2025-01-15T10:00:00Z",
|
|
150
|
+
"migrated_from": "legacy",
|
|
151
|
+
"components": {
|
|
152
|
+
"agents": 13,
|
|
153
|
+
"skills": 5,
|
|
154
|
+
"resources": 1,
|
|
155
|
+
"hooks": 2
|
|
156
|
+
},
|
|
157
|
+
"paths": {
|
|
158
|
+
"agents": "~/.claude/agents",
|
|
159
|
+
"skills": "~/.claude/skills",
|
|
160
|
+
"resources": "~/.claude/resources",
|
|
161
|
+
"hooks": "~/.claude/hooks"
|
|
162
|
+
},
|
|
163
|
+
"files": {
|
|
164
|
+
"total": 21,
|
|
165
|
+
"size": "1.5MB"
|
|
166
|
+
},
|
|
167
|
+
"migration": {
|
|
168
|
+
"from_version": "unknown",
|
|
169
|
+
"migrated_at": "2025-01-15T10:00:00Z",
|
|
170
|
+
"migration_type": "manual"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
### Step 5: Verify Migration
|
|
176
|
+
|
|
177
|
+
Run the installer to verify:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
node installer/cli.js
|
|
181
|
+
|
|
182
|
+
# Installer should recognize your installation
|
|
183
|
+
# and offer upgrade/downgrade options
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Migrating Custom Configurations
|
|
187
|
+
|
|
188
|
+
### Custom Agents
|
|
189
|
+
|
|
190
|
+
If you have custom agents:
|
|
191
|
+
|
|
192
|
+
1. Keep them in the `agents/` directory
|
|
193
|
+
2. They will be preserved during migration
|
|
194
|
+
3. Update manifest.json to include them in count
|
|
195
|
+
4. Consider adding them to a custom variant in `variants.json`
|
|
196
|
+
|
|
197
|
+
### Custom Skills
|
|
198
|
+
|
|
199
|
+
Custom skills are preserved automatically:
|
|
200
|
+
|
|
201
|
+
1. Left in `skills/` directory
|
|
202
|
+
2. Counted in manifest
|
|
203
|
+
3. Can be used with any variant
|
|
204
|
+
|
|
205
|
+
### Custom Paths
|
|
206
|
+
|
|
207
|
+
If you installed to custom paths (not default locations):
|
|
208
|
+
|
|
209
|
+
1. Migration will detect the installation location
|
|
210
|
+
2. Manifest will record the custom path
|
|
211
|
+
3. Future upgrades will respect the custom path
|
|
212
|
+
|
|
213
|
+
Example for custom path `/custom/path/claude`:
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
node installer/cli.js
|
|
217
|
+
# When prompted, enter your custom path
|
|
218
|
+
# Migration will detect and preserve it
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Troubleshooting Migration
|
|
222
|
+
|
|
223
|
+
### Issue: Migration Not Detected
|
|
224
|
+
|
|
225
|
+
**Symptom**: Installer doesn't detect legacy installation
|
|
226
|
+
|
|
227
|
+
**Solutions**:
|
|
228
|
+
1. Check installation path is correct:
|
|
229
|
+
```bash
|
|
230
|
+
ls ~/.claude/agents/*.md
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
2. Verify directory structure:
|
|
234
|
+
```bash
|
|
235
|
+
find ~/.claude -type d
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
3. Check permissions:
|
|
239
|
+
```bash
|
|
240
|
+
ls -la ~/.claude
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
### Issue: Variant Classification Wrong
|
|
244
|
+
|
|
245
|
+
**Symptom**: Installer classifies your installation as wrong variant
|
|
246
|
+
|
|
247
|
+
**Solution**: Manually create manifest with correct variant:
|
|
248
|
+
```bash
|
|
249
|
+
# Edit ~/.claude/manifest.json
|
|
250
|
+
# Change "variant" field to correct value
|
|
251
|
+
nano ~/.claude/manifest.json
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### Issue: Custom Files Not Detected
|
|
255
|
+
|
|
256
|
+
**Symptom**: Custom agents/skills not counted in migration
|
|
257
|
+
|
|
258
|
+
**Solution**:
|
|
259
|
+
1. Ensure files have correct extensions (.md for agents/skills)
|
|
260
|
+
2. Verify files are in correct directories
|
|
261
|
+
3. Check file permissions are readable
|
|
262
|
+
|
|
263
|
+
### Issue: Migration Fails
|
|
264
|
+
|
|
265
|
+
**Symptom**: Migration process encounters errors
|
|
266
|
+
|
|
267
|
+
**Solutions**:
|
|
268
|
+
1. Run with verbose logging:
|
|
269
|
+
```bash
|
|
270
|
+
DEBUG=* node installer/cli.js
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
2. Try manual migration (see above)
|
|
274
|
+
|
|
275
|
+
3. Restore from backup and try again:
|
|
276
|
+
```bash
|
|
277
|
+
rm -rf ~/.claude
|
|
278
|
+
cp -r ~/.claude.backup ~/.claude
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
4. Report issue on GitHub with error message
|
|
282
|
+
|
|
283
|
+
## Rollback to Old Version
|
|
284
|
+
|
|
285
|
+
If you need to rollback to pre-1.2.0 version:
|
|
286
|
+
|
|
287
|
+
### Option 1: Remove Manifest Only
|
|
288
|
+
|
|
289
|
+
```bash
|
|
290
|
+
# Remove manifest.json only
|
|
291
|
+
rm ~/.claude/manifest.json
|
|
292
|
+
|
|
293
|
+
# Your installation will still work with older tools
|
|
294
|
+
# But won't be recognized by new installer
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### Option 2: Full Restore from Backup
|
|
298
|
+
|
|
299
|
+
```bash
|
|
300
|
+
# Remove new installation
|
|
301
|
+
rm -rf ~/.claude
|
|
302
|
+
|
|
303
|
+
# Restore backup
|
|
304
|
+
cp -r ~/.claude.backup ~/.claude
|
|
305
|
+
|
|
306
|
+
# Reinstall old version
|
|
307
|
+
npm install -g agentflow@1.1.0
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
## Migration Checklist
|
|
311
|
+
|
|
312
|
+
Before migrating, verify:
|
|
313
|
+
|
|
314
|
+
- [ ] Backup of current installation exists
|
|
315
|
+
- [ ] All custom agents/skills are backed up
|
|
316
|
+
- [ ] Current installation is working correctly
|
|
317
|
+
- [ ] Have disk space for temporary files
|
|
318
|
+
- [ ] Node.js version is compatible (v14+)
|
|
319
|
+
|
|
320
|
+
After migrating, verify:
|
|
321
|
+
|
|
322
|
+
- [ ] manifest.json exists in installation directory
|
|
323
|
+
- [ ] All agents are still present
|
|
324
|
+
- [ ] All skills are still present
|
|
325
|
+
- [ ] Custom files are preserved
|
|
326
|
+
- [ ] Tool still works correctly
|
|
327
|
+
- [ ] Can run upgrade/downgrade commands
|
|
328
|
+
|
|
329
|
+
## FAQ
|
|
330
|
+
|
|
331
|
+
### Q: Will migration delete my custom agents/skills?
|
|
332
|
+
|
|
333
|
+
**A**: No. Migration preserves all existing files. It only adds a manifest.json.
|
|
334
|
+
|
|
335
|
+
### Q: Can I migrate multiple tools at once?
|
|
336
|
+
|
|
337
|
+
**A**: Yes. Run the installer once, and it will detect and migrate all legacy installations.
|
|
338
|
+
|
|
339
|
+
### Q: What if I have a very old version (< 1.0.0)?
|
|
340
|
+
|
|
341
|
+
**A**: The migration process works for all versions. Very old versions may require manual manifest creation.
|
|
342
|
+
|
|
343
|
+
### Q: Will migration affect my running tools?
|
|
344
|
+
|
|
345
|
+
**A**: No. Migration doesn't restart or modify running processes. Your tools continue working during migration.
|
|
346
|
+
|
|
347
|
+
### Q: Can I undo a migration?
|
|
348
|
+
|
|
349
|
+
**A**: Yes. Simply delete the manifest.json file to "unmigrate". Or restore from backup.
|
|
350
|
+
|
|
351
|
+
### Q: Do I need to migrate?
|
|
352
|
+
|
|
353
|
+
**A**: Not required if you're happy with your current setup. However, migration enables:
|
|
354
|
+
- Upgrade/downgrade between variants
|
|
355
|
+
- Better uninstall support
|
|
356
|
+
- Resume capability for updates
|
|
357
|
+
- Multi-tool management
|
|
358
|
+
|
|
359
|
+
### Q: Will future updates require migration?
|
|
360
|
+
|
|
361
|
+
**A**: Once migrated to v1.2.0+, future updates will use the new system. No further migrations needed.
|
|
362
|
+
|
|
363
|
+
## Support
|
|
364
|
+
|
|
365
|
+
If you encounter issues during migration:
|
|
366
|
+
|
|
367
|
+
1. **Check Documentation**: Review this guide and INSTALLER_GUIDE.md
|
|
368
|
+
2. **GitHub Issues**: https://github.com/amrhas82/agentflow/issues
|
|
369
|
+
3. **Debug Mode**: Run with `DEBUG=* node installer/cli.js`
|
|
370
|
+
4. **Manual Migration**: Follow manual migration steps above
|
|
371
|
+
|
|
372
|
+
## Version Compatibility
|
|
373
|
+
|
|
374
|
+
| Old Version | New Version | Migration | Notes |
|
|
375
|
+
|-------------|-------------|-----------|-------|
|
|
376
|
+
| < 1.0.0 | 1.2.0+ | Supported | May require manual manifest |
|
|
377
|
+
| 1.0.0 - 1.1.x | 1.2.0+ | Automatic | Fully supported |
|
|
378
|
+
| 1.2.0+ | 1.2.0+ | Not needed | Already using new system |
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
**Last Updated**: January 2025
|
|
383
|
+
**Version**: 1.0
|
|
384
|
+
**Applies to**: Agentic Kit v1.2.0+
|