@the-magic-tower/fixhive-opencode-plugin 0.1.33 → 0.1.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.de.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  > Community-basiertes Fehlerwissen-Sharing für OpenCode
15
15
 
16
- **Neueste Version: v0.1.31** - Bun-Runtime-Kompatibilitätsprobleme behoben. Das Plugin funktioniert jetzt korrekt mit OpenCode.
16
+ **Neueste Version: v0.1.34** - Bun-Runtime-Kompatibilitätsprobleme behoben. Das Plugin funktioniert jetzt korrekt mit OpenCode.
17
17
 
18
18
  FixHive ist ein OpenCode-Plugin, das während der Entwicklungssitzungen automatisch Fehler erfasst, eine Community-Wissensdatenbank nach Lösungen abfragt und gelöste Fehler mit anderen Entwicklern teilt.
19
19
 
package/README.es.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  > Sistema de Compartición de Conocimiento de Errores Basado en la Comunidad para OpenCode
15
15
 
16
- **Última versión: v0.1.31** - Corregidos problemas de compatibilidad con Bun runtime. El plugin ahora funciona correctamente con OpenCode.
16
+ **Última versión: v0.1.34** - Corregidos problemas de compatibilidad con Bun runtime. El plugin ahora funciona correctamente con OpenCode.
17
17
 
18
18
  FixHive es un plugin de OpenCode que captura automáticamente errores durante las sesiones de desarrollo, consulta una base de conocimientos comunitaria para encontrar soluciones y comparte errores resueltos con otros desarrolladores.
19
19
 
package/README.fr.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  > Partage de Connaissances d'Erreurs Basé sur la Communauté pour OpenCode
15
15
 
16
- **Dernière version : v0.1.31** - Correction des problèmes de compatibilité avec le runtime Bun. Le plugin fonctionne maintenant correctement avec OpenCode.
16
+ **Dernière version : v0.1.34** - Correction des problèmes de compatibilité avec le runtime Bun. Le plugin fonctionne maintenant correctement avec OpenCode.
17
17
 
18
18
  FixHive est un plugin OpenCode qui capture automatiquement les erreurs pendant les sessions de développement, interroge une base de connaissances communautaire pour trouver des solutions et partage les erreurs résolues avec d'autres développeurs.
19
19
 
package/README.ja.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  > OpenCode向けコミュニティベースのエラー知識共有システム
15
15
 
16
- **最新版: v0.1.31** - Bunランタイム互換性の問題を修正。プラグインがOpenCodeで正常に動作するようになりました。
16
+ **最新版: v0.1.34** - Bunランタイム互換性の問題を修正。プラグインがOpenCodeで正常に動作するようになりました。
17
17
 
18
18
  FixHiveは、開発セッション中にエラーを自動的にキャプチャし、コミュニティナレッジベースからソリューションを検索し、解決したエラーを他の開発者と共有するOpenCodeプラグインです。
19
19
 
package/README.ko.md CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  > 커뮤니티 기반 오류 지식 공유 시스템 - OpenCode 플러그인
28
28
 
29
- **최신: v0.1.31** - Bun 런타임 호환성 문제 해결. 플러그인이 OpenCode에서 정상 동작합니다.
29
+ **최신: v0.1.34** - 이미 해결된 에러 재업로드 문제 해결.
30
30
 
31
31
  FixHive는 개발 세션 중 발생하는 오류를 자동으로 감지하고, 커뮤니티 지식 베이스에서 해결책을 검색하며, 해결된 오류를 다른 개발자들과 공유하는 OpenCode 플러그인입니다.
32
32
 
package/README.md CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  > Community-based Error Knowledge Sharing for OpenCode
28
28
 
29
- **Latest: v0.1.31** - Bun runtime compatibility fixed. Plugin now works correctly with OpenCode.
29
+ **Latest: v0.1.34** - Fixed re-uploading already resolved errors to cloud.
30
30
 
31
31
  FixHive is an OpenCode plugin that automatically captures errors during development sessions, queries a community knowledge base for solutions, and shares resolved errors with other developers.
32
32
 
@@ -403,6 +403,66 @@ const solutions = await cloud.searchSimilar({
403
403
 
404
404
  ## Troubleshooting
405
405
 
406
+ ### Upgrade Plugin Version
407
+
408
+ If you're experiencing issues with an older version of FixHive, follow these steps to upgrade:
409
+
410
+ #### 1. Check Current Version
411
+
412
+ Run OpenCode and check the startup logs:
413
+ ```bash
414
+ opencode
415
+ ```
416
+
417
+ Look for:
418
+ ```
419
+ [FixHive] Plugin loaded
420
+ ```
421
+
422
+ #### 2. Clear OpenCode Cache
423
+
424
+ Remove the cached plugin files and reinstall:
425
+
426
+ ```bash
427
+ # Method 1: Clear FixHive cache only
428
+ rm -rf ~/.cache/opencode/node_modules/@the-magic-tower*
429
+
430
+ # Method 2: Clear entire OpenCode cache (if above doesn't work)
431
+ rm -rf ~/.cache/opencode/node_modules/
432
+ ```
433
+
434
+ #### 3. Reinstall Plugin
435
+
436
+ Navigate to your project directory and reinstall:
437
+
438
+ ```bash
439
+ cd /your/project/path
440
+ npm install @the-magic-tower/fixhive-opencode-plugin@latest
441
+ ```
442
+
443
+ #### 4. Restart OpenCode
444
+
445
+ ```bash
446
+ opencode
447
+ ```
448
+
449
+ You should see updated logs with the latest version:
450
+ ```
451
+ [FixHive] Plugin loaded
452
+ [FixHive] Project: /your/project/path
453
+ [FixHive] Cloud: enabled
454
+ [FixHive] Ready - use fixhive_stats to verify
455
+ ```
456
+
457
+ #### 5. Verify Installation
458
+
459
+ Run the stats command to verify:
460
+ ```typescript
461
+ fixhive_stats
462
+ ```
463
+
464
+ This will show you the current local statistics. If you're using the cloud features, check that the connection is working properly.
465
+
406
466
  ### Verify Plugin is Working
407
467
 
408
468
  When the plugin loads successfully, you'll see:
package/README.nl.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  > Community-gebaseerd Foutkennis Delen voor OpenCode
15
15
 
16
- **Laatste versie: v0.1.31** - Bun runtime compatibiliteitsproblemen opgelost. Plugin werkt nu correct met OpenCode.
16
+ **Laatste versie: v0.1.34** - Bun runtime compatibiliteitsproblemen opgelost. Plugin werkt nu correct met OpenCode.
17
17
 
18
18
  FixHive is een OpenCode-plugin die automatisch fouten vastlegt tijdens ontwikkelsessies, een community-kennisbank raadpleegt voor oplossingen en opgeloste fouten deelt met andere ontwikkelaars.
19
19
 
package/README.zh.md CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  > OpenCode 社区错误知识共享系统
15
15
 
16
- **最新版本: v0.1.31** - 修复 Bun 运行时兼容性问题。插件现已在 OpenCode 中正常运行。
16
+ **最新版本: v0.1.34** - 修复 Bun 运行时兼容性问题。插件现已在 OpenCode 中正常运行。
17
17
 
18
18
  FixHive 是一个 OpenCode 插件,可在开发会话期间自动捕获错误,从社区知识库查询解决方案,并与其他开发者共享已解决的错误。
19
19
 
package/dist/index.js CHANGED
@@ -27580,6 +27580,21 @@ async function createLocalStore(projectDirectory) {
27580
27580
  return stmt.all(limit).map((row) => rowToRecord(row));
27581
27581
  },
27582
27582
  markResolved(id, data) {
27583
+ const record2 = getErrorById(id);
27584
+ if (!record2) {
27585
+ return null;
27586
+ }
27587
+ if (record2.status === "resolved") {
27588
+ console.log(`[FixHive:LocalStore] Error ${id.slice(0, 8)} already resolved, updating resolution...`);
27589
+ const updateStmt = db.prepare(`
27590
+ UPDATE error_records
27591
+ SET resolution = ?,
27592
+ resolution_code = ?
27593
+ WHERE id = ?
27594
+ `);
27595
+ updateStmt.run(data.resolution, data.resolutionCode || null, id);
27596
+ return getErrorById(id);
27597
+ }
27583
27598
  const stmt = db.prepare(`
27584
27599
  UPDATE error_records
27585
27600
  SET status = 'resolved',
@@ -1 +1 @@
1
- {"version":3,"file":"local-store.d.ts","sourceRoot":"","sources":["../../src/storage/local-store.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EACV,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAU3B;;GAEG;AACH,UAAU,eAAe;IACvB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACvC,KAAK,IAAI,IAAI,CAAC;CACf;AAED,UAAU,gBAAgB;IACxB,GAAG,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG;QAAE,OAAO,EA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WAAW,IAAI,eAAe,CAAC;CAChC;AA2BD;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAySpF;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU;;CAEtB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-magic-tower/fixhive-opencode-plugin",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Community-based error knowledge sharing for OpenCode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",