@the-magic-tower/fixhive-opencode-plugin 0.1.2 → 0.1.4

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
@@ -29,37 +29,44 @@ FixHive ist ein OpenCode-Plugin, das während der Entwicklungssitzungen automati
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## Konfiguration
32
+ ## Schnellstart
33
33
 
34
- Setzen Sie die folgenden Umgebungsvariablen:
34
+ Fügen Sie zu Ihrer OpenCode-Konfiguration hinzu (`opencode.config.ts`):
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **Das war's!** FixHive verbindet sich standardmäßig mit der Community-Wissensdatenbank. Keine Umgebungsvariablen erforderlich.
45
+
46
+ ## Konfiguration (Optional)
47
+
48
+ Umgebungsvariablen zur Anpassung des Verhaltens:
35
49
 
36
50
  ```bash
37
- # Erforderlich für Cloud-Funktionen
51
+ # Eigene Supabase-Instanz statt Community verwenden
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # Optional: Für embedding-basierte semantische Suche
55
+ # Semantische Suche aktivieren (empfohlen)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # Optional: Benutzerdefinierte Mitwirkenden-ID (wird automatisch generiert, wenn nicht gesetzt)
58
+ # Benutzerdefinierte Mitwirkenden-ID (wird automatisch generiert, wenn nicht gesetzt)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## Verwendung
49
-
50
- ### Als OpenCode-Plugin
51
-
52
- Fügen Sie zu Ihrer OpenCode-Konfiguration hinzu (`opencode.config.ts`):
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | Variable | Standard | Beschreibung |
63
+ |----------|----------|--------------|
64
+ | `FIXHIVE_SUPABASE_URL` | Community DB | Supabase-Projekt-URL |
65
+ | `FIXHIVE_SUPABASE_KEY` | Community Key | Supabase Anon-Key |
66
+ | `OPENAI_API_KEY` | Keine | Aktiviert semantische Ähnlichkeitssuche |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | Auto-generiert | Eindeutige Mitwirkenden-ID |
61
68
 
62
- ### Verfügbare Befehle
69
+ ## Verfügbare Befehle
63
70
 
64
71
  | Befehl | Beschreibung |
65
72
  |--------|--------------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | Lösung hoch-/runtervoten |
70
77
  | `fixhive_stats` | Nutzungsstatistiken anzeigen |
71
78
  | `fixhive_helpful` | Melden, dass eine Lösung hilfreich war |
79
+ | `fixhive_report` | Unangemessenen Inhalt melden |
72
80
 
73
81
  ### Beispiel-Workflow
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **Fix anwenden** → Community-Lösung befolgen
78
86
  4. **Lösung teilen** → `fixhive_resolve <error-id> "Fehlende Abhängigkeit installiert"`
79
87
 
80
- ## Cloud-Setup (Supabase)
88
+ ## Self-Hosted Setup (Optional)
81
89
 
82
- 1. Neues Supabase-Projekt erstellen
90
+ Überspringen Sie diesen Abschnitt, wenn Sie die Standard-Community-Wissensdatenbank verwenden.
91
+
92
+ Um Ihr eigenes FixHive-Backend zu betreiben:
93
+
94
+ 1. Neues Supabase-Projekt erstellen (Free-Tier funktioniert)
83
95
  2. Setup-Skript im SQL-Editor ausführen:
84
96
 
85
97
  ```bash
@@ -88,6 +100,12 @@ cat scripts/setup-supabase.sql | pbcopy
88
100
  ```
89
101
 
90
102
  3. Projekt-URL und Anon-Key unter Settings > API abrufen
103
+ 4. Umgebungsvariablen setzen:
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## Architektur
93
111
 
package/README.es.md CHANGED
@@ -29,37 +29,44 @@ FixHive es un plugin de OpenCode que captura automáticamente errores durante la
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## Configuración
32
+ ## Inicio Rápido
33
33
 
34
- Configure las siguientes variables de entorno:
34
+ Agregue a su configuración de OpenCode (`opencode.config.ts`):
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **¡Eso es todo!** FixHive se conecta a la base de conocimientos de la comunidad por defecto. No se requieren variables de entorno.
45
+
46
+ ## Configuración (Opcional)
47
+
48
+ Variables de entorno para personalizar el comportamiento:
35
49
 
36
50
  ```bash
37
- # Requerido para funciones en la nube
51
+ # Use su propia instancia de Supabase en lugar de la comunidad
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # Opcional: Para búsqueda semántica basada en embeddings
55
+ # Habilitar búsqueda semántica (recomendado)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # Opcional: ID de contribuidor personalizado (se genera automáticamente si no se establece)
58
+ # ID de contribuidor personalizado (se genera automáticamente si no se establece)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## Uso
49
-
50
- ### Como Plugin de OpenCode
51
-
52
- Agregue a su configuración de OpenCode (`opencode.config.ts`):
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | Variable | Por Defecto | Descripción |
63
+ |----------|-------------|-------------|
64
+ | `FIXHIVE_SUPABASE_URL` | DB Comunidad | URL del proyecto Supabase |
65
+ | `FIXHIVE_SUPABASE_KEY` | Key Comunidad | Clave anon de Supabase |
66
+ | `OPENAI_API_KEY` | Ninguna | Habilita búsqueda de similitud semántica |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | Auto-generado | ID único de contribuidor |
61
68
 
62
- ### Comandos Disponibles
69
+ ## Comandos Disponibles
63
70
 
64
71
  | Comando | Descripción |
65
72
  |---------|-------------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | Votar a favor/en contra de una solución |
70
77
  | `fixhive_stats` | Ver estadísticas de uso |
71
78
  | `fixhive_helpful` | Reportar que una solución fue útil |
79
+ | `fixhive_report` | Reportar contenido inapropiado |
72
80
 
73
81
  ### Flujo de Trabajo de Ejemplo
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **Aplicar corrección** → Seguir la solución de la comunidad
78
86
  4. **Compartir resolución** → `fixhive_resolve <error-id> "Instalada dependencia faltante"`
79
87
 
80
- ## Configuración en la Nube (Supabase)
88
+ ## Configuración Auto-Alojada (Opcional)
81
89
 
82
- 1. Crear un nuevo proyecto de Supabase
90
+ Omita esta sección si usa la base de conocimientos de la comunidad por defecto.
91
+
92
+ Para ejecutar su propio backend de FixHive:
93
+
94
+ 1. Crear un nuevo proyecto de Supabase (el plan gratuito funciona)
83
95
  2. Ejecutar el script de configuración en el Editor SQL:
84
96
 
85
97
  ```bash
@@ -88,6 +100,12 @@ cat scripts/setup-supabase.sql | pbcopy
88
100
  ```
89
101
 
90
102
  3. Obtener la URL del proyecto y la clave anon desde Settings > API
103
+ 4. Configurar variables de entorno:
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## Arquitectura
93
111
 
package/README.fr.md CHANGED
@@ -29,37 +29,44 @@ FixHive est un plugin OpenCode qui capture automatiquement les erreurs pendant l
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## Configuration
32
+ ## Démarrage Rapide
33
33
 
34
- Définissez les variables d'environnement suivantes :
34
+ Ajoutez à votre configuration OpenCode (`opencode.config.ts`) :
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **C'est tout !** FixHive se connecte par défaut à la base de connaissances communautaire. Aucune variable d'environnement requise.
45
+
46
+ ## Configuration (Optionnel)
47
+
48
+ Variables d'environnement pour personnaliser le comportement :
35
49
 
36
50
  ```bash
37
- # Requis pour les fonctionnalités cloud
51
+ # Utiliser votre propre instance Supabase au lieu de la communauté
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # Optionnel : Pour la recherche sémantique basée sur les embeddings
55
+ # Activer la recherche sémantique (recommandé)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # Optionnel : ID de contributeur personnalisé (généré automatiquement si non défini)
58
+ # ID de contributeur personnalisé (généré automatiquement si non défini)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## Utilisation
49
-
50
- ### En tant que Plugin OpenCode
51
-
52
- Ajoutez à votre configuration OpenCode (`opencode.config.ts`) :
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | Variable | Par Défaut | Description |
63
+ |----------|------------|-------------|
64
+ | `FIXHIVE_SUPABASE_URL` | DB Communauté | URL du projet Supabase |
65
+ | `FIXHIVE_SUPABASE_KEY` | Clé Communauté | Clé anon Supabase |
66
+ | `OPENAI_API_KEY` | Aucune | Active la recherche de similarité sémantique |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | Auto-généré | ID de contributeur unique |
61
68
 
62
- ### Commandes Disponibles
69
+ ## Commandes Disponibles
63
70
 
64
71
  | Commande | Description |
65
72
  |----------|-------------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | Voter pour/contre une solution |
70
77
  | `fixhive_stats` | Voir les statistiques d'utilisation |
71
78
  | `fixhive_helpful` | Signaler qu'une solution a été utile |
79
+ | `fixhive_report` | Signaler un contenu inapproprié |
72
80
 
73
81
  ### Exemple de Flux de Travail
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **Appliquer le correctif** → Suivre la solution de la communauté
78
86
  4. **Partager la résolution** → `fixhive_resolve <error-id> "Dépendance manquante installée"`
79
87
 
80
- ## Configuration Cloud (Supabase)
88
+ ## Configuration Auto-Hébergée (Optionnel)
81
89
 
82
- 1. Créer un nouveau projet Supabase
90
+ Ignorez cette section si vous utilisez la base de connaissances communautaire par défaut.
91
+
92
+ Pour exécuter votre propre backend FixHive :
93
+
94
+ 1. Créer un nouveau projet Supabase (le plan gratuit fonctionne)
83
95
  2. Exécuter le script de configuration dans l'éditeur SQL :
84
96
 
85
97
  ```bash
@@ -88,6 +100,12 @@ cat scripts/setup-supabase.sql | pbcopy
88
100
  ```
89
101
 
90
102
  3. Obtenir l'URL du projet et la clé anon depuis Settings > API
103
+ 4. Configurer les variables d'environnement :
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## Architecture
93
111
 
package/README.ja.md CHANGED
@@ -29,37 +29,44 @@ FixHiveは、開発セッション中にエラーを自動的にキャプチャ
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## 設定
32
+ ## クイックスタート
33
33
 
34
- 以下の環境変数を設定してください:
34
+ OpenCode設定ファイル(`opencode.config.ts`)に追加:
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **以上!** FixHiveはデフォルトでコミュニティナレッジベースに接続します。環境変数の設定は不要です。
45
+
46
+ ## 設定(オプション)
47
+
48
+ 動作をカスタマイズするための環境変数:
35
49
 
36
50
  ```bash
37
- # クラウド機能に必須
51
+ # コミュニティの代わりに自分のSupabaseインスタンスを使用
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # オプション:埋め込みベースのセマンティック検索用
55
+ # セマンティック検索を有効化(推奨)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # オプション:カスタム貢献者ID(未設定の場合は自動生成)
58
+ # カスタム貢献者ID(未設定の場合は自動生成)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## 使用方法
49
-
50
- ### OpenCodeプラグインとして
51
-
52
- OpenCode設定ファイル(`opencode.config.ts`)に追加:
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | 変数 | デフォルト | 説明 |
63
+ |------|------------|------|
64
+ | `FIXHIVE_SUPABASE_URL` | コミュニティDB | SupabaseプロジェクトURL |
65
+ | `FIXHIVE_SUPABASE_KEY` | コミュニティKey | Supabase anonキー |
66
+ | `OPENAI_API_KEY` | なし | セマンティック類似性検索を有効化 |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | 自動生成 | 一意の貢献者ID |
61
68
 
62
- ### 利用可能なコマンド
69
+ ## 利用可能なコマンド
63
70
 
64
71
  | コマンド | 説明 |
65
72
  |----------|------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | ソリューションに投票(賛成/反対) |
70
77
  | `fixhive_stats` | 使用統計を表示 |
71
78
  | `fixhive_helpful` | ソリューションが役立ったことを報告 |
79
+ | `fixhive_report` | 不適切なコンテンツを報告 |
72
80
 
73
81
  ### ワークフロー例
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **修正を適用** → コミュニティソリューションに従う
78
86
  4. **解決を共有** → `fixhive_resolve <error-id> "不足している依存関係をインストール"`
79
87
 
80
- ## クラウドセットアップ(Supabase)
88
+ ## セルフホストセットアップ(オプション)
81
89
 
82
- 1. 新しいSupabaseプロジェクトを作成
90
+ デフォルトのコミュニティナレッジベースを使用する場合は、このセクションをスキップしてください。
91
+
92
+ 独自のFixHiveバックエンドを運用するには:
93
+
94
+ 1. 新しいSupabaseプロジェクトを作成(無料プランで可)
83
95
  2. SQLエディタでセットアップスクリプトを実行:
84
96
 
85
97
  ```bash
@@ -88,6 +100,12 @@ cat scripts/setup-supabase.sql | pbcopy
88
100
  ```
89
101
 
90
102
  3. Settings > APIからプロジェクトURLとanon keyを取得
103
+ 4. 環境変数を設定:
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## アーキテクチャ
93
111
 
package/README.ko.md CHANGED
@@ -29,37 +29,44 @@ FixHive는 개발 세션 중 발생하는 오류를 자동으로 캡처하고,
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## 설정
32
+ ## 빠른 시작
33
33
 
34
- 다음 환경 변수를 설정하세요:
34
+ OpenCode 설정 파일(`opencode.config.ts`)에 추가:
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **끝!** FixHive는 기본적으로 커뮤니티 지식 베이스에 연결됩니다. 환경 변수 설정이 필요 없습니다.
45
+
46
+ ## 설정 (선택사항)
47
+
48
+ 동작을 커스터마이즈하기 위한 환경 변수:
35
49
 
36
50
  ```bash
37
- # 클라우드 기능 필수
51
+ # 커뮤니티 대신 자체 Supabase 인스턴스 사용
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # 선택: 임베딩 기반 시맨틱 검색용
55
+ # 시맨틱 검색 활성화 (권장)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # 선택: 사용자 정의 기여자 ID (미설정시 자동 생성)
58
+ # 사용자 지정 기여자 ID (미설정 자동 생성)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## 사용법
49
-
50
- ### OpenCode 플러그인으로 사용
51
-
52
- OpenCode 설정 파일(`opencode.config.ts`)에 추가:
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | 변수 | 기본값 | 설명 |
63
+ |------|--------|------|
64
+ | `FIXHIVE_SUPABASE_URL` | 커뮤니티 DB | Supabase 프로젝트 URL |
65
+ | `FIXHIVE_SUPABASE_KEY` | 커뮤니티 Key | Supabase anon 키 |
66
+ | `OPENAI_API_KEY` | 없음 | 시맨틱 유사도 검색 활성화 |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | 자동 생성 | 고유 기여자 ID |
61
68
 
62
- ### 사용 가능한 명령어
69
+ ## 사용 가능한 명령어
63
70
 
64
71
  | 명령어 | 설명 |
65
72
  |--------|------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | 솔루션 추천/비추천 |
70
77
  | `fixhive_stats` | 사용 통계 조회 |
71
78
  | `fixhive_helpful` | 솔루션이 도움됐음을 보고 |
79
+ | `fixhive_report` | 부적절한 콘텐츠 신고 |
72
80
 
73
81
  ### 사용 예시 워크플로우
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **수정 적용** → 커뮤니티 솔루션 따라하기
78
86
  4. **해결 공유** → `fixhive_resolve <error-id> "누락된 의존성 설치"`
79
87
 
80
- ## 클라우드 설정 (Supabase)
88
+ ## 자체 호스팅 설정 (선택사항)
81
89
 
82
- 1. Supabase 프로젝트 생성
90
+ 기본 커뮤니티 지식 베이스를 사용하는 경우 이 섹션을 건너뛰세요.
91
+
92
+ 자체 FixHive 백엔드를 운영하려면:
93
+
94
+ 1. 새 Supabase 프로젝트 생성 (무료 플랜 가능)
83
95
  2. SQL 에디터에서 설정 스크립트 실행:
84
96
 
85
97
  ```bash
@@ -88,6 +100,12 @@ cat scripts/setup-supabase.sql | pbcopy
88
100
  ```
89
101
 
90
102
  3. Settings > API에서 프로젝트 URL과 anon key 획득
103
+ 4. 환경 변수 설정:
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## 아키텍처
93
111
 
package/README.md CHANGED
@@ -29,37 +29,44 @@ FixHive is an OpenCode plugin that automatically captures errors during developm
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## Configuration
32
+ ## Quick Start
33
33
 
34
- Set the following environment variables:
34
+ Add to your OpenCode configuration (`opencode.config.ts`):
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **That's it!** FixHive connects to the community knowledge base by default. No environment variables required.
45
+
46
+ ## Configuration (Optional)
47
+
48
+ Environment variables to customize behavior:
35
49
 
36
50
  ```bash
37
- # Required for cloud features
51
+ # Use your own Supabase instance instead of community
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # Optional: For embedding-based semantic search
55
+ # Enable semantic search (recommended)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # Optional: Custom contributor ID (auto-generated if not set)
58
+ # Custom contributor ID (auto-generated if not set)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## Usage
49
-
50
- ### As OpenCode Plugin
51
-
52
- Add to your OpenCode configuration (`opencode.config.ts`):
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | Variable | Default | Description |
63
+ |----------|---------|-------------|
64
+ | `FIXHIVE_SUPABASE_URL` | Community DB | Your Supabase project URL |
65
+ | `FIXHIVE_SUPABASE_KEY` | Community Key | Your Supabase anon key |
66
+ | `OPENAI_API_KEY` | None | Enables semantic similarity search |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | Auto-generated | Your unique contributor ID |
61
68
 
62
- ### Available Commands
69
+ ## Available Commands
63
70
 
64
71
  | Command | Description |
65
72
  |---------|-------------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | Upvote/downvote a solution |
70
77
  | `fixhive_stats` | View usage statistics |
71
78
  | `fixhive_helpful` | Report a solution was helpful |
79
+ | `fixhive_report` | Report inappropriate content |
72
80
 
73
81
  ### Example Workflow
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **Apply fix** → Follow community solution
78
86
  4. **Share resolution** → `fixhive_resolve <error-id> "Installed missing dependency"`
79
87
 
80
- ## Cloud Setup (Supabase)
88
+ ## Self-Hosted Setup (Optional)
81
89
 
82
- 1. Create a new Supabase project
90
+ Skip this section if you're using the default community knowledge base.
91
+
92
+ To run your own FixHive backend:
93
+
94
+ 1. Create a new Supabase project (Free tier works)
83
95
  2. Run the setup script in SQL Editor:
84
96
 
85
97
  ```bash
@@ -88,6 +100,12 @@ cat scripts/setup-supabase.sql | pbcopy
88
100
  ```
89
101
 
90
102
  3. Get your project URL and anon key from Settings > API
103
+ 4. Set environment variables:
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## Architecture
93
111
 
package/README.nl.md CHANGED
@@ -29,37 +29,44 @@ FixHive is een OpenCode-plugin die automatisch fouten vastlegt tijdens ontwikkel
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## Configuratie
32
+ ## Snelstart
33
33
 
34
- Stel de volgende omgevingsvariabelen in:
34
+ Voeg toe aan uw OpenCode-configuratie (`opencode.config.ts`):
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **Dat is alles!** FixHive maakt standaard verbinding met de community-kennisbank. Geen omgevingsvariabelen vereist.
45
+
46
+ ## Configuratie (Optioneel)
47
+
48
+ Omgevingsvariabelen om gedrag aan te passen:
35
49
 
36
50
  ```bash
37
- # Vereist voor cloudfuncties
51
+ # Gebruik uw eigen Supabase-instantie in plaats van community
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # Optioneel: Voor embedding-gebaseerd semantisch zoeken
55
+ # Schakel semantisch zoeken in (aanbevolen)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # Optioneel: Aangepaste bijdrager-ID (automatisch gegenereerd indien niet ingesteld)
58
+ # Aangepaste bijdrager-ID (automatisch gegenereerd indien niet ingesteld)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## Gebruik
49
-
50
- ### Als OpenCode Plugin
51
-
52
- Voeg toe aan uw OpenCode-configuratie (`opencode.config.ts`):
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | Variabele | Standaard | Beschrijving |
63
+ |-----------|-----------|--------------|
64
+ | `FIXHIVE_SUPABASE_URL` | Community DB | Supabase project-URL |
65
+ | `FIXHIVE_SUPABASE_KEY` | Community Key | Supabase anon-sleutel |
66
+ | `OPENAI_API_KEY` | Geen | Schakelt semantische gelijkeniszoekopdracht in |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | Auto-gegenereerd | Unieke bijdrager-ID |
61
68
 
62
- ### Beschikbare Commando's
69
+ ## Beschikbare Commando's
63
70
 
64
71
  | Commando | Beschrijving |
65
72
  |----------|--------------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | Stem voor/tegen een oplossing |
70
77
  | `fixhive_stats` | Bekijk gebruiksstatistieken |
71
78
  | `fixhive_helpful` | Meld dat een oplossing nuttig was |
79
+ | `fixhive_report` | Meld ongepaste inhoud |
72
80
 
73
81
  ### Voorbeeld Workflow
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **Pas fix toe** → Volg de community-oplossing
78
86
  4. **Deel oplossing** → `fixhive_resolve <error-id> "Ontbrekende dependency geïnstalleerd"`
79
87
 
80
- ## Cloud Setup (Supabase)
88
+ ## Self-Hosted Setup (Optioneel)
81
89
 
82
- 1. Maak een nieuw Supabase-project aan
90
+ Sla deze sectie over als u de standaard community-kennisbank gebruikt.
91
+
92
+ Om uw eigen FixHive-backend te draaien:
93
+
94
+ 1. Maak een nieuw Supabase-project aan (gratis tier werkt)
83
95
  2. Voer het setup-script uit in de SQL-editor:
84
96
 
85
97
  ```bash
@@ -87,7 +99,13 @@ cat scripts/setup-supabase.sql | pbcopy
87
99
  # Plak in Supabase SQL-editor
88
100
  ```
89
101
 
90
- 3. Haal uw project-URL en anon-sleutel op via Settings > API
102
+ 3. Haal project-URL en anon-sleutel op via Settings > API
103
+ 4. Stel omgevingsvariabelen in:
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## Architectuur
93
111
 
package/README.zh.md CHANGED
@@ -29,37 +29,44 @@ FixHive 是一个 OpenCode 插件,可在开发会话期间自动捕获错误
29
29
  npm install @the-magic-tower/fixhive-opencode-plugin
30
30
  ```
31
31
 
32
- ## 配置
32
+ ## 快速开始
33
33
 
34
- 设置以下环境变量:
34
+ 添加到 OpenCode 配置文件(`opencode.config.ts`):
35
+
36
+ ```typescript
37
+ import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
38
+
39
+ export default {
40
+ plugins: [FixHivePlugin],
41
+ };
42
+ ```
43
+
44
+ **完成!** FixHive 默认连接到社区知识库。无需设置环境变量。
45
+
46
+ ## 配置(可选)
47
+
48
+ 自定义行为的环境变量:
35
49
 
36
50
  ```bash
37
- # 云端功能必需
51
+ # 使用自己的 Supabase 实例而非社区
38
52
  FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
39
53
  FIXHIVE_SUPABASE_KEY=your-anon-key
40
54
 
41
- # 可选:用于基于嵌入的语义搜索
55
+ # 启用语义搜索(推荐)
42
56
  OPENAI_API_KEY=sk-...
43
57
 
44
- # 可选:自定义贡献者 ID(未设置时自动生成)
58
+ # 自定义贡献者 ID(未设置时自动生成)
45
59
  FIXHIVE_CONTRIBUTOR_ID=your-contributor-id
46
60
  ```
47
61
 
48
- ## 使用方法
49
-
50
- ### 作为 OpenCode 插件
51
-
52
- 添加到 OpenCode 配置文件(`opencode.config.ts`):
53
-
54
- ```typescript
55
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
56
-
57
- export default {
58
- plugins: [FixHivePlugin],
59
- };
60
- ```
62
+ | 变量 | 默认值 | 描述 |
63
+ |------|--------|------|
64
+ | `FIXHIVE_SUPABASE_URL` | 社区 DB | Supabase 项目 URL |
65
+ | `FIXHIVE_SUPABASE_KEY` | 社区 Key | Supabase anon 密钥 |
66
+ | `OPENAI_API_KEY` | 无 | 启用语义相似度搜索 |
67
+ | `FIXHIVE_CONTRIBUTOR_ID` | 自动生成 | 唯一贡献者 ID |
61
68
 
62
- ### 可用命令
69
+ ## 可用命令
63
70
 
64
71
  | 命令 | 描述 |
65
72
  |------|------|
@@ -69,6 +76,7 @@ export default {
69
76
  | `fixhive_vote` | 对解决方案投票(赞/踩) |
70
77
  | `fixhive_stats` | 查看使用统计 |
71
78
  | `fixhive_helpful` | 报告解决方案有帮助 |
79
+ | `fixhive_report` | 举报不当内容 |
72
80
 
73
81
  ### 示例工作流程
74
82
 
@@ -77,9 +85,13 @@ export default {
77
85
  3. **应用修复** → 按照社区解决方案操作
78
86
  4. **共享解决方案** → `fixhive_resolve <error-id> "安装缺失的依赖"`
79
87
 
80
- ## 云端设置(Supabase)
88
+ ## 自托管设置(可选)
81
89
 
82
- 1. 创建新的 Supabase 项目
90
+ 如果使用默认社区知识库,请跳过此部分。
91
+
92
+ 运行自己的 FixHive 后端:
93
+
94
+ 1. 创建新的 Supabase 项目(免费版可用)
83
95
  2. 在 SQL 编辑器中运行设置脚本:
84
96
 
85
97
  ```bash
@@ -88,6 +100,12 @@ cat scripts/setup-supabase.sql | pbcopy
88
100
  ```
89
101
 
90
102
  3. 从 Settings > API 获取项目 URL 和 anon key
103
+ 4. 设置环境变量:
104
+
105
+ ```bash
106
+ FIXHIVE_SUPABASE_URL=https://your-project.supabase.co
107
+ FIXHIVE_SUPABASE_KEY=your-anon-key
108
+ ```
91
109
 
92
110
  ## 架构
93
111
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-magic-tower/fixhive-opencode-plugin",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Community-based error knowledge sharing for OpenCode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -56,6 +56,7 @@
56
56
  "@types/uuid": "^10.0.0",
57
57
  "@typescript-eslint/eslint-plugin": "^8.0.0",
58
58
  "@typescript-eslint/parser": "^8.0.0",
59
+ "@vitest/coverage-v8": "^2.1.9",
59
60
  "eslint": "^9.0.0",
60
61
  "tsup": "^8.2.0",
61
62
  "typescript": "^5.5.0",