opencodekit 0.15.21 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/dist/index.js +5 -7
  2. package/dist/template/.opencode/AGENTS.md +85 -23
  3. package/dist/template/.opencode/agent/build.md +88 -7
  4. package/dist/template/.opencode/agent/explore.md +1 -1
  5. package/dist/template/.opencode/agent/general.md +54 -4
  6. package/dist/template/.opencode/agent/looker.md +1 -1
  7. package/dist/template/.opencode/agent/painter.md +1 -1
  8. package/dist/template/.opencode/agent/plan.md +52 -0
  9. package/dist/template/.opencode/agent/review.md +1 -1
  10. package/dist/template/.opencode/agent/scout.md +3 -3
  11. package/dist/template/.opencode/agent/vision.md +1 -1
  12. package/dist/template/.opencode/command/create.md +231 -91
  13. package/dist/template/.opencode/command/design.md +40 -7
  14. package/dist/template/.opencode/command/handoff.md +22 -0
  15. package/dist/template/.opencode/command/init.md +49 -78
  16. package/dist/template/.opencode/command/plan.md +36 -16
  17. package/dist/template/.opencode/command/pr.md +15 -0
  18. package/dist/template/.opencode/command/research.md +3 -0
  19. package/dist/template/.opencode/command/resume.md +8 -18
  20. package/dist/template/.opencode/command/review-codebase.md +30 -0
  21. package/dist/template/.opencode/command/ship.md +199 -0
  22. package/dist/template/.opencode/command/start.md +316 -28
  23. package/dist/template/.opencode/command/status.md +24 -1
  24. package/dist/template/.opencode/command/ui-review.md +36 -7
  25. package/dist/template/.opencode/command/verify.md +307 -0
  26. package/dist/template/.opencode/memory/_templates/prd.md +29 -0
  27. package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
  28. package/dist/template/.opencode/memory/_templates/spec.md +66 -0
  29. package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
  30. package/dist/template/.opencode/memory/_templates/tech-stack.md +50 -0
  31. package/dist/template/.opencode/memory/project/tech-stack.md +53 -0
  32. package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
  33. package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
  34. package/dist/template/.opencode/memory.db +0 -0
  35. package/dist/template/.opencode/memory.db-shm +0 -0
  36. package/dist/template/.opencode/memory.db-wal +0 -0
  37. package/dist/template/.opencode/opencode.json +18 -4
  38. package/dist/template/.opencode/package.json +1 -0
  39. package/dist/template/.opencode/plans/1770006237537-mighty-otter.md +418 -0
  40. package/dist/template/.opencode/plans/1770006913647-glowing-forest.md +170 -0
  41. package/dist/template/.opencode/plans/1770013678126-witty-planet.md +278 -0
  42. package/dist/template/.opencode/plugin/lib/memory-db.ts +828 -0
  43. package/dist/template/.opencode/plugin/memory.ts +38 -1
  44. package/dist/template/.opencode/skill/index-knowledge/SKILL.md +76 -31
  45. package/dist/template/.opencode/skill/memory-system/SKILL.md +110 -55
  46. package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
  47. package/dist/template/.opencode/tool/memory-get.ts +143 -0
  48. package/dist/template/.opencode/tool/memory-maintain.ts +167 -0
  49. package/dist/template/.opencode/tool/memory-migrate.ts +319 -0
  50. package/dist/template/.opencode/tool/memory-read.ts +17 -46
  51. package/dist/template/.opencode/tool/memory-search.ts +131 -28
  52. package/dist/template/.opencode/tool/memory-timeline.ts +105 -0
  53. package/dist/template/.opencode/tool/memory-update.ts +21 -26
  54. package/dist/template/.opencode/tool/observation.ts +112 -100
  55. package/dist/template/.opencode/tsconfig.json +19 -19
  56. package/package.json +1 -1
  57. package/dist/template/.opencode/command/accessibility-check.md +0 -331
  58. package/dist/template/.opencode/command/agent-browser.md +0 -21
  59. package/dist/template/.opencode/command/analyze-mockup.md +0 -423
  60. package/dist/template/.opencode/command/analyze-project.md +0 -295
  61. package/dist/template/.opencode/command/brainstorm.md +0 -373
  62. package/dist/template/.opencode/command/cloudflare.md +0 -70
  63. package/dist/template/.opencode/command/commit.md +0 -245
  64. package/dist/template/.opencode/command/complete-next-task.md +0 -77
  65. package/dist/template/.opencode/command/design-audit.md +0 -480
  66. package/dist/template/.opencode/command/edit-image.md +0 -242
  67. package/dist/template/.opencode/command/finish.md +0 -255
  68. package/dist/template/.opencode/command/fix-ci.md +0 -109
  69. package/dist/template/.opencode/command/fix-types.md +0 -104
  70. package/dist/template/.opencode/command/fix-ui.md +0 -117
  71. package/dist/template/.opencode/command/fix.md +0 -168
  72. package/dist/template/.opencode/command/frontend-design.md +0 -21
  73. package/dist/template/.opencode/command/generate-diagram.md +0 -349
  74. package/dist/template/.opencode/command/generate-icon.md +0 -283
  75. package/dist/template/.opencode/command/generate-image.md +0 -246
  76. package/dist/template/.opencode/command/generate-pattern.md +0 -247
  77. package/dist/template/.opencode/command/generate-storyboard.md +0 -250
  78. package/dist/template/.opencode/command/implement.md +0 -609
  79. package/dist/template/.opencode/command/import-plan.md +0 -406
  80. package/dist/template/.opencode/command/index-knowledge.md +0 -25
  81. package/dist/template/.opencode/command/integration-test.md +0 -424
  82. package/dist/template/.opencode/command/issue.md +0 -102
  83. package/dist/template/.opencode/command/new-feature.md +0 -651
  84. package/dist/template/.opencode/command/opensrc.md +0 -58
  85. package/dist/template/.opencode/command/quick-build.md +0 -238
  86. package/dist/template/.opencode/command/ralph.md +0 -41
  87. package/dist/template/.opencode/command/research-and-implement.md +0 -148
  88. package/dist/template/.opencode/command/research-ui.md +0 -466
  89. package/dist/template/.opencode/command/restore-image.md +0 -424
  90. package/dist/template/.opencode/command/revert-feature.md +0 -386
  91. package/dist/template/.opencode/command/skill-create.md +0 -517
  92. package/dist/template/.opencode/command/skill-optimize.md +0 -556
  93. package/dist/template/.opencode/command/summarize.md +0 -412
  94. package/dist/template/.opencode/command/triage.md +0 -398
  95. package/dist/template/.opencode/memory/_templates/README.md +0 -35
  96. package/dist/template/.opencode/memory/_templates/observation.md +0 -39
  97. package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
  98. package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
  99. package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
  100. package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
  101. package/dist/template/.opencode/memory/_templates/prompt-engineering.md +0 -333
  102. package/dist/template/.opencode/memory/observations/2026-01-22-decision-agents-md-prompt-engineering-improvement.md +0 -29
  103. package/dist/template/.opencode/memory/observations/2026-01-25-decision-agent-roles-build-orchestrates-general-e.md +0 -14
  104. package/dist/template/.opencode/memory/observations/2026-01-25-decision-simplified-swarm-helper-tool-to-fix-type.md +0 -20
  105. package/dist/template/.opencode/memory/observations/2026-01-25-decision-use-beads-as-swarm-board-source-of-truth.md +0 -14
  106. package/dist/template/.opencode/memory/observations/2026-01-25-learning-user-wants-real-swarm-coordination-guida.md +0 -15
  107. package/dist/template/.opencode/memory/observations/2026-01-28-decision-created-deep-research-skill-for-thorough.md +0 -29
  108. package/dist/template/.opencode/memory/observations/2026-01-28-decision-gh-grep-mcp-wrapper-vs-native-grep-searc.md +0 -21
  109. package/dist/template/.opencode/memory/observations/2026-01-28-decision-oracle-tool-optimal-usage-patterns.md +0 -32
  110. package/dist/template/.opencode/memory/observations/2026-01-28-learning-ampcode-deep-mode-research-integration-w.md +0 -42
  111. package/dist/template/.opencode/memory/observations/2026-01-28-pattern-research-delegation-pattern-explore-for-.md +0 -32
  112. package/dist/template/.opencode/memory/observations/2026-01-29-decision-copilot-auth-plugin-rate-limit-handling.md +0 -27
  113. package/dist/template/.opencode/memory/observations/2026-01-29-decision-spec-driven-approach-for-opencodekit.md +0 -21
  114. package/dist/template/.opencode/memory/observations/2026-01-29-learning-karpathy-llm-coding-insights-dec-2025.md +0 -44
  115. package/dist/template/.opencode/memory/observations/2026-01-30-decision-github-copilot-claude-routing-keep-disab.md +0 -32
  116. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-context-management-research-critical-gap.md +0 -14
  117. package/dist/template/.opencode/memory/observations/2026-01-30-discovery-kimi-k2-5-agent-swarm-architecture-patte.md +0 -45
  118. package/dist/template/.opencode/memory/observations/2026-01-30-pattern-swarm-tools-architecture.md +0 -28
  119. package/dist/template/.opencode/memory/observations/2026-01-31-decision-copilot-auth-plugin-updated-with-baseurl.md +0 -63
  120. package/dist/template/.opencode/memory/observations/2026-01-31-decision-created-dedicated-worker-agent-for-swarm.md +0 -20
  121. package/dist/template/.opencode/memory/observations/2026-01-31-decision-rollback-to-v1-1-47-for-copilot-claude-r.md +0 -21
  122. package/dist/template/.opencode/memory/observations/2026-01-31-decision-simplified-swarm-to-task-tool-pattern.md +0 -44
  123. package/dist/template/.opencode/memory/observations/2026-01-31-decision-swarm-architecture-task-tool-over-tmux.md +0 -33
  124. package/dist/template/.opencode/memory/observations/2026-01-31-decision-worker-skills-defined-for-swarm-delegati.md +0 -30
  125. package/dist/template/.opencode/memory/observations/2026-01-31-learning-gpt-reasoning-config-for-github-copilot.md +0 -51
  126. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-auth-comparison-finding.md +0 -61
  127. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-copilot-reasoning-architecture-.md +0 -66
  128. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-custom-tools-api.md +0 -48
  129. package/dist/template/.opencode/memory/observations/2026-01-31-learning-opencode-v1-1-48-skills-as-slash-command.md +0 -21
  130. package/dist/template/.opencode/memory/observations/2026-01-31-learning-swarm-system-simplified-removed-mailbox-.md +0 -30
  131. package/dist/template/.opencode/memory/observations/2026-01-31-learning-v1-1-48-native-copilot-reasoning-via-pr-.md +0 -45
  132. package/dist/template/.opencode/memory/observations/2026-01-31-warning-cannot-add-custom-config-to-opencode-jso.md +0 -18
  133. package/dist/template/.opencode/memory/observations/2026-01-31-warning-copilot-claude-v1-endpoint-returns-404-c.md +0 -48
  134. package/dist/template/.opencode/memory/observations/2026-01-31-warning-opencode-v1-1-48-claude-thinking-block-s.md +0 -51
  135. package/dist/template/.opencode/memory/project/architecture.md +0 -60
  136. package/dist/template/.opencode/memory/project/commands.md +0 -72
  137. package/dist/template/.opencode/memory/project/conventions.md +0 -68
  138. package/dist/template/.opencode/memory/project/gotchas.md +0 -41
  139. package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
  140. package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
  141. package/dist/template/.opencode/tool/notebooklm.ts +0 -488
  142. package/dist/template/.opencode/tool/oracle.ts +0 -240
  143. /package/dist/template/.opencode/memory/{user.example.md → _templates/user.md} +0 -0
  144. /package/dist/template/.opencode/memory/{user.md → project/user.md} +0 -0
@@ -1,424 +0,0 @@
1
- ---
2
- description: Restore, enhance, upscale, or improve image quality using AI
3
- argument-hint: "<image-path> [mode: enhance|upscale|restore|denoise|colorize]"
4
- agent: painter
5
- ---
6
-
7
- # Restore Image: $ARGUMENTS
8
-
9
- Use AI to restore, enhance, or improve image quality.
10
-
11
- ## Phase 1: Parse Input
12
-
13
- ```typescript
14
- const input = "$ARGUMENTS";
15
-
16
- const parseInput = (input: string) => {
17
- const parts = input.split(" ");
18
- const imagePath = parts[0];
19
- const mode = parts[1] || "enhance";
20
-
21
- const validModes = ["enhance", "upscale", "restore", "denoise", "colorize", "sharpen", "deblur"];
22
-
23
- if (!validModes.includes(mode)) {
24
- console.warn(`Unknown mode: ${mode}. Using 'enhance' as default.`);
25
- return { imagePath, mode: "enhance" };
26
- }
27
-
28
- return { imagePath, mode };
29
- };
30
- ```
31
-
32
- ## Phase 2: Analyze Source Image
33
-
34
- ### Load and Examine
35
-
36
- ```typescript
37
- read({ filePath: imagePath }); // Load image for analysis
38
- ```
39
-
40
- ### Quality Assessment
41
-
42
- ```
43
- IMAGE ANALYSIS: [filename]
44
- ━━━━━━━━━━━━━━━━━━━━━━━━━━
45
-
46
- Format: [PNG/JPG/WEBP/etc.]
47
- Dimensions: [width] × [height] px
48
- File Size: [size] KB
49
- Color Depth: [8/16/24/32] bit
50
- Color Space: [sRGB/Adobe RGB/etc.]
51
-
52
- QUALITY METRICS
53
- ───────────────
54
- Overall Quality: [1-10 score]
55
- Sharpness: [Low/Medium/High]
56
- Noise Level: [None/Low/Medium/High]
57
- Compression: [None/Low/Medium/Heavy]
58
- Dynamic Range: [Narrow/Normal/Wide]
59
-
60
- DETECTED ISSUES
61
- ───────────────
62
- [✓/✗] JPEG artifacts
63
- [✓/✗] Noise (ISO grain)
64
- [✓/✗] Motion blur
65
- [✓/✗] Low resolution
66
- [✓/✗] Color degradation
67
- [✓/✗] Overexposure/Underexposure
68
- [✓/✗] Scratches/Damage (for old photos)
69
- ```
70
-
71
- ## Phase 3: Select Restoration Mode
72
-
73
- ### Mode Capabilities
74
-
75
- ```
76
- ┌─────────────────────────────────────────────────────────────────────────┐
77
- │ RESTORATION MODES │
78
- ├─────────────────────────────────────────────────────────────────────────┤
79
- │ │
80
- │ ENHANCE │
81
- │ ├── Improves overall quality │
82
- │ ├── Adjusts brightness, contrast, saturation │
83
- │ ├── Sharpens details │
84
- │ └── Best for: Photos that need general improvement │
85
- │ │
86
- │ UPSCALE │
87
- │ ├── Increases resolution (2x or 4x) │
88
- │ ├── Preserves details using AI │
89
- │ ├── Adds realistic detail in enlargement │
90
- │ └── Best for: Small images that need to be larger │
91
- │ │
92
- │ RESTORE │
93
- │ ├── Removes artifacts and damage │
94
- │ ├── Fixes compression issues │
95
- │ ├── Repairs scratches and tears │
96
- │ └── Best for: Old or damaged photos │
97
- │ │
98
- │ DENOISE │
99
- │ ├── Removes noise while preserving detail │
100
- │ ├── Handles ISO grain and sensor noise │
101
- │ ├── Smooths backgrounds while keeping edges │
102
- │ └── Best for: Low-light or high-ISO photos │
103
- │ │
104
- │ COLORIZE │
105
- │ ├── Adds realistic color to B&W images │
106
- │ ├── Uses AI to predict appropriate colors │
107
- │ ├── Preserves original detail and texture │
108
- │ └── Best for: Historical or B&W photos │
109
- │ │
110
- │ SHARPEN │
111
- │ ├── Enhances edge definition │
112
- │ ├── Brings out fine details │
113
- │ ├── Avoids over-sharpening halos │
114
- │ └── Best for: Slightly soft images │
115
- │ │
116
- │ DEBLUR │
117
- │ ├── Removes motion blur │
118
- │ ├── Corrects camera shake │
119
- │ ├── Recovers lost detail │
120
- │ └── Best for: Blurry photos from movement │
121
- │ │
122
- └─────────────────────────────────────────────────────────────────────────┘
123
- ```
124
-
125
- ### Auto-Mode Selection
126
-
127
- If mode not specified or set to "auto":
128
-
129
- ```typescript
130
- const suggestMode = (analysis: ImageAnalysis) => {
131
- if (analysis.hasJpegArtifacts || analysis.hasDamage) return "restore";
132
- if (analysis.noiseLevel === "high") return "denoise";
133
- if (analysis.isBlurry) return "deblur";
134
- if (analysis.isSmall && analysis.needsEnlargement) return "upscale";
135
- if (analysis.isBlackAndWhite) return "colorize";
136
- if (analysis.isSoft) return "sharpen";
137
- return "enhance"; // Default
138
- };
139
- ```
140
-
141
- ## Phase 4: Apply Restoration
142
-
143
- ### Restoration Parameters
144
-
145
- ```typescript
146
- const restorationParams = {
147
- enhance: {
148
- sharpness: 1.2, // Slight sharpening
149
- contrast: 1.1, // Slight contrast boost
150
- saturation: 1.05, // Subtle saturation
151
- clarity: 1.15, // Midtone contrast
152
- },
153
- upscale: {
154
- factor: 2, // 2x or 4x
155
- model: "real-esrgan", // AI upscaling model
156
- denoise: 0.3, // Light denoising
157
- },
158
- restore: {
159
- removeArtifacts: true,
160
- repairDamage: true,
161
- enhanceColors: true,
162
- },
163
- denoise: {
164
- strength: 0.5, // 0-1, higher = more aggressive
165
- preserveDetail: true,
166
- },
167
- colorize: {
168
- saturation: 0.8, // Avoid over-saturation
169
- style: "natural", // natural, vivid, vintage
170
- },
171
- };
172
- ```
173
-
174
- ### Execute Restoration
175
-
176
- ```
177
- APPLYING RESTORATION
178
- ━━━━━━━━━━━━━━━━━━━━
179
-
180
- Mode: [selected mode]
181
- Input: [original filename]
182
-
183
- Processing Steps:
184
- [1/4] Analyzing image content...
185
- [2/4] Applying AI restoration...
186
- [3/4] Optimizing output...
187
- [4/4] Saving result...
188
-
189
- ⏳ Estimated time: [X seconds]
190
- ```
191
-
192
- ## Phase 5: Output and Comparison
193
-
194
- ### Save Restored Image
195
-
196
- ```typescript
197
- const outputPath = `.opencode/memory/design/restored/${filename}-${mode}-${timestamp}.png`;
198
-
199
- write({
200
- filePath: outputPath,
201
- content: restoredImageData,
202
- });
203
- ```
204
-
205
- ### Generate Comparison
206
-
207
- ```
208
- RESTORATION COMPLETE
209
- ━━━━━━━━━━━━━━━━━━━━
210
-
211
- Before After
212
- ────────────────────────────────────────────
213
- Dimensions 800×600 1600×1200
214
- File Size 45 KB 189 KB
215
- Sharpness Low High
216
- Noise Level High Low
217
- Quality Score 4/10 8/10
218
-
219
-
220
- CHANGES APPLIED
221
- ───────────────
222
- ✓ Resolution increased 2x
223
- ✓ Noise reduced by ~70%
224
- ✓ Sharpness enhanced
225
- ✓ JPEG artifacts removed
226
- ✓ Color vibrancy improved
227
-
228
- OUTPUT
229
- ──────
230
- Path: [outputPath]
231
- Format: PNG (lossless)
232
-
233
- Preview: [Image displayed if in vision-capable context]
234
- ```
235
-
236
- ## Phase 6: Version Management
237
-
238
- ### Track Restoration History
239
-
240
- ```typescript
241
- const historyEntry = {
242
- original: imagePath,
243
- restored: outputPath,
244
- mode: mode,
245
- timestamp: new Date().toISOString(),
246
- parameters: restorationParams[mode],
247
- qualityBefore: analysis.overallScore,
248
- qualityAfter: restoredAnalysis.overallScore,
249
- };
250
-
251
- // Append to history
252
- const historyPath = `.opencode/memory/design/restored/history.json`;
253
- ```
254
-
255
- ### History Format
256
-
257
- ```json
258
- {
259
- "restorations": [
260
- {
261
- "id": "restore-001",
262
- "original": "photos/old-family.jpg",
263
- "outputs": [
264
- {
265
- "mode": "restore",
266
- "path": "restored/old-family-restore-1.png",
267
- "timestamp": "2024-01-15T10:30:00Z"
268
- },
269
- {
270
- "mode": "colorize",
271
- "path": "restored/old-family-colorize-1.png",
272
- "timestamp": "2024-01-15T10:35:00Z"
273
- }
274
- ]
275
- }
276
- ]
277
- }
278
- ```
279
-
280
- ## Examples
281
-
282
- ```bash
283
- /restore-image photo.jpg # Auto-detect best mode
284
- /restore-image photo.jpg enhance # General enhancement
285
- /restore-image photo.jpg upscale # 2x resolution increase
286
- /restore-image old-photo.jpg restore # Fix damage and artifacts
287
- /restore-image noisy.jpg denoise # Remove noise
288
- /restore-image bw-photo.jpg colorize # Add color to B&W
289
- /restore-image soft.jpg sharpen # Increase sharpness
290
- /restore-image blurry.jpg deblur # Remove motion blur
291
- ```
292
-
293
- ## Batch Processing
294
-
295
- For multiple images:
296
-
297
- ```bash
298
- /restore-image "photos/*.jpg" enhance
299
- ```
300
-
301
- ```
302
- BATCH RESTORATION
303
- ━━━━━━━━━━━━━━━━━
304
-
305
- Found: 12 images
306
- Mode: enhance
307
-
308
- Progress:
309
- [████████░░░░░░░░░░░░] 8/12
310
-
311
- Results:
312
- ✓ photo-001.jpg → enhanced (6/10 → 8/10)
313
- ✓ photo-002.jpg → enhanced (5/10 → 7/10)
314
- ✓ photo-003.jpg → enhanced (4/10 → 8/10)
315
- ⚠ photo-004.jpg → skipped (already high quality)
316
- ...
317
-
318
- Summary:
319
- - Processed: 11/12
320
- - Skipped: 1 (already optimized)
321
- - Avg improvement: +2.3 quality points
322
- ```
323
-
324
- ## Quality Presets
325
-
326
- ### Conservative (preserve original character)
327
-
328
- ```typescript
329
- {
330
- sharpness: 1.05,
331
- denoise: 0.2,
332
- preserveGrain: true
333
- }
334
- ```
335
-
336
- ### Balanced (recommended default)
337
-
338
- ```typescript
339
- {
340
- sharpness: 1.2,
341
- denoise: 0.4,
342
- preserveGrain: false
343
- }
344
- ```
345
-
346
- ### Aggressive (maximum enhancement)
347
-
348
- ```typescript
349
- {
350
- sharpness: 1.5,
351
- denoise: 0.7,
352
- contrast: 1.2
353
- }
354
- ```
355
-
356
- ## Error Handling
357
-
358
- ```
359
- [If unsupported format:]
360
- ERROR: Format not supported: .tiff
361
-
362
- Supported formats:
363
- - JPEG (.jpg, .jpeg)
364
- - PNG (.png)
365
- - WebP (.webp)
366
- - BMP (.bmp)
367
-
368
- Convert first: /edit-image photo.tiff --convert png
369
-
370
-
371
- [If image too large:]
372
- WARNING: Image is very large (8000×6000)
373
-
374
- Options:
375
- 1. Process at reduced size (faster, ~30 sec)
376
- 2. Process at full size (slower, ~2 min)
377
- 3. Cancel
378
-
379
- [If restoration fails:]
380
- ERROR: Restoration failed
381
-
382
- Possible causes:
383
- - Image is corrupted
384
- - Insufficient contrast for analysis
385
- - Format incompatibility
386
-
387
- Try:
388
- - Different mode: /restore-image photo.jpg restore
389
- - Manual enhancement: /edit-image photo.jpg
390
- ```
391
-
392
- ## Output Options
393
-
394
- ### Format Selection
395
-
396
- ```bash
397
- /restore-image photo.jpg enhance --format webp # Output as WebP
398
- /restore-image photo.jpg upscale --format png # Output as PNG (lossless)
399
- ```
400
-
401
- ### Quality Settings
402
-
403
- ```bash
404
- /restore-image photo.jpg enhance --quality 90 # JPEG quality 90%
405
- /restore-image photo.jpg upscale --factor 4 # 4x upscale
406
- ```
407
-
408
- ## Limitations
409
-
410
- ```
411
- CURRENT LIMITATIONS
412
- ━━━━━━━━━━━━━━━━━━━
413
-
414
- - Maximum input size: 4096×4096 px
415
- - Maximum upscale: 4x
416
- - Colorization may not match historical accuracy
417
- - Heavy blur may not be fully recoverable
418
- - Severely damaged images may need manual editing
419
-
420
- For best results:
421
- - Start with highest quality source available
422
- - Use mode matching the specific issue
423
- - Review output and iterate if needed
424
- ```