@the-magic-tower/fixhive-opencode-plugin 0.2.0-beta.1 → 0.2.0-beta.2
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 +6 -7
- package/README.es.md +6 -7
- package/README.fr.md +6 -7
- package/README.ja.md +6 -7
- package/README.ko.md +5 -4
- package/README.md +5 -32
- package/README.nl.md +6 -7
- package/README.zh.md +6 -7
- package/dist/index.js +2 -17
- package/dist/plugin/index.d.ts.map +1 -1
- package/package.json +1 -1
package/README.de.md
CHANGED
|
@@ -33,14 +33,13 @@ npm install @the-magic-tower/fixhive-opencode-plugin
|
|
|
33
33
|
|
|
34
34
|
## Schnellstart
|
|
35
35
|
|
|
36
|
-
Fügen Sie zu Ihrer OpenCode-Konfiguration hinzu (
|
|
36
|
+
Fügen Sie zu Ihrer OpenCode-Konfiguration hinzu (`~/.config/opencode/opencode.json`):
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"$schema": "https://opencode.ai/config.json",
|
|
41
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
42
|
+
}
|
|
44
43
|
```
|
|
45
44
|
|
|
46
45
|
**Das war's!** FixHive verbindet sich standardmäßig mit der Community-Wissensdatenbank. Keine Umgebungsvariablen erforderlich.
|
package/README.es.md
CHANGED
|
@@ -33,14 +33,13 @@ npm install @the-magic-tower/fixhive-opencode-plugin
|
|
|
33
33
|
|
|
34
34
|
## Inicio Rápido
|
|
35
35
|
|
|
36
|
-
Agregue a su configuración de OpenCode (
|
|
36
|
+
Agregue a su configuración de OpenCode (`~/.config/opencode/opencode.json`):
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"$schema": "https://opencode.ai/config.json",
|
|
41
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
42
|
+
}
|
|
44
43
|
```
|
|
45
44
|
|
|
46
45
|
**¡Eso es todo!** FixHive se conecta a la base de conocimientos de la comunidad por defecto. No se requieren variables de entorno.
|
package/README.fr.md
CHANGED
|
@@ -33,14 +33,13 @@ npm install @the-magic-tower/fixhive-opencode-plugin
|
|
|
33
33
|
|
|
34
34
|
## Démarrage Rapide
|
|
35
35
|
|
|
36
|
-
Ajoutez à votre configuration OpenCode (
|
|
36
|
+
Ajoutez à votre configuration OpenCode (`~/.config/opencode/opencode.json`) :
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"$schema": "https://opencode.ai/config.json",
|
|
41
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
42
|
+
}
|
|
44
43
|
```
|
|
45
44
|
|
|
46
45
|
**C'est tout !** FixHive se connecte par défaut à la base de connaissances communautaire. Aucune variable d'environnement requise.
|
package/README.ja.md
CHANGED
|
@@ -33,14 +33,13 @@ npm install @the-magic-tower/fixhive-opencode-plugin
|
|
|
33
33
|
|
|
34
34
|
## クイックスタート
|
|
35
35
|
|
|
36
|
-
OpenCode
|
|
36
|
+
OpenCode設定ファイル(`~/.config/opencode/opencode.json`)に追加:
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"$schema": "https://opencode.ai/config.json",
|
|
41
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
42
|
+
}
|
|
44
43
|
```
|
|
45
44
|
|
|
46
45
|
**以上!** FixHiveはデフォルトでコミュニティナレッジベースに接続します。環境変数の設定は不要です。
|
package/README.ko.md
CHANGED
|
@@ -53,13 +53,14 @@ npm install @the-magic-tower/fixhive-opencode-plugin
|
|
|
53
53
|
npm install @the-magic-tower/fixhive-opencode-plugin
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
### 2. OpenCode 설정
|
|
56
|
+
### 2. OpenCode 설정 파일에 추가
|
|
57
|
+
|
|
58
|
+
`~/.config/opencode/opencode.json` 또는 프로젝트의 `opencode.json`:
|
|
57
59
|
|
|
58
60
|
```json
|
|
59
61
|
{
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
]
|
|
62
|
+
"$schema": "https://opencode.ai/config.json",
|
|
63
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
63
64
|
}
|
|
64
65
|
```
|
|
65
66
|
|
package/README.md
CHANGED
|
@@ -61,46 +61,19 @@ rm -rf .fixhive/
|
|
|
61
61
|
|
|
62
62
|
## Installation
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
npm install @the-magic-tower/fixhive-opencode-plugin
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Quick Start
|
|
69
|
-
|
|
70
|
-
### 1. Install the package
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
npm install @the-magic-tower/fixhive-opencode-plugin
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
### 2. Add to your OpenCode configuration (`opencode.json`)
|
|
64
|
+
Add FixHive to your OpenCode configuration file (`~/.config/opencode/opencode.json` or project `opencode.json`):
|
|
77
65
|
|
|
78
66
|
```json
|
|
79
67
|
{
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
]
|
|
68
|
+
"$schema": "https://opencode.ai/config.json",
|
|
69
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
83
70
|
}
|
|
84
71
|
```
|
|
85
72
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
opencode
|
|
90
|
-
```
|
|
73
|
+
Then run OpenCode - the plugin will be automatically installed and loaded.
|
|
91
74
|
|
|
92
75
|
**That's it!** FixHive connects to the community knowledge base by default. No environment variables required.
|
|
93
76
|
|
|
94
|
-
You'll see these logs when the plugin loads successfully:
|
|
95
|
-
```
|
|
96
|
-
[FixHive] Starting plugin initialization (CodeCaseDB v2.0)
|
|
97
|
-
[FixHive] Plugin loaded
|
|
98
|
-
[FixHive] Project: /your/project/path
|
|
99
|
-
[FixHive] Cloud: enabled
|
|
100
|
-
[FixHive] Device: abc12345...
|
|
101
|
-
[FixHive] Ready - use fixhive_search_cases to find solutions
|
|
102
|
-
```
|
|
103
|
-
|
|
104
77
|
## How It Works
|
|
105
78
|
|
|
106
79
|
```
|
|
@@ -366,7 +339,7 @@ MIT - see [LICENSE](LICENSE) for details.
|
|
|
366
339
|
## Related Packages
|
|
367
340
|
|
|
368
341
|
- [@the-magic-tower/fixhive-shared](https://github.com/TheMagicTower/fixhive-shared) - Shared utilities
|
|
369
|
-
- [@the-magic-tower/fixhive-claude-code](https://github.com/TheMagicTower/
|
|
342
|
+
- [@the-magic-tower/fixhive-claude-code](https://github.com/TheMagicTower/FixHiveMono) - Claude Code plugin
|
|
370
343
|
|
|
371
344
|
## Acknowledgments
|
|
372
345
|
|
package/README.nl.md
CHANGED
|
@@ -33,14 +33,13 @@ npm install @the-magic-tower/fixhive-opencode-plugin
|
|
|
33
33
|
|
|
34
34
|
## Snelstart
|
|
35
35
|
|
|
36
|
-
Voeg toe aan uw OpenCode-configuratie (
|
|
36
|
+
Voeg toe aan uw OpenCode-configuratie (`~/.config/opencode/opencode.json`):
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"$schema": "https://opencode.ai/config.json",
|
|
41
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
42
|
+
}
|
|
44
43
|
```
|
|
45
44
|
|
|
46
45
|
**Dat is alles!** FixHive maakt standaard verbinding met de community-kennisbank. Geen omgevingsvariabelen vereist.
|
package/README.zh.md
CHANGED
|
@@ -33,14 +33,13 @@ npm install @the-magic-tower/fixhive-opencode-plugin
|
|
|
33
33
|
|
|
34
34
|
## 快速开始
|
|
35
35
|
|
|
36
|
-
添加到 OpenCode
|
|
36
|
+
添加到 OpenCode 配置文件(`~/.config/opencode/opencode.json`):
|
|
37
37
|
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
38
|
+
```json
|
|
39
|
+
{
|
|
40
|
+
"$schema": "https://opencode.ai/config.json",
|
|
41
|
+
"plugin": ["@the-magic-tower/fixhive-opencode-plugin@beta"]
|
|
42
|
+
}
|
|
44
43
|
```
|
|
45
44
|
|
|
46
45
|
**完成!** FixHive 默认连接到社区知识库。无需设置环境变量。
|
package/dist/index.js
CHANGED
|
@@ -22249,12 +22249,7 @@ var COMMUNITY_SUPABASE = {
|
|
|
22249
22249
|
anonKey: "sb_publishable_w3Y2uo-0vb4bFVamntChVw_Aqi0rv2y"
|
|
22250
22250
|
};
|
|
22251
22251
|
var FixHivePlugin = async (ctx) => {
|
|
22252
|
-
console.log("[FixHive] Starting plugin initialization (CodeCaseDB v2.0)");
|
|
22253
22252
|
const config2 = loadConfig();
|
|
22254
|
-
console.log("[FixHive] Plugin loaded");
|
|
22255
|
-
console.log(`[FixHive] Project: ${ctx.directory}`);
|
|
22256
|
-
console.log(`[FixHive] Cloud: ${config2.supabaseUrl ? "enabled" : "disabled"}`);
|
|
22257
|
-
console.log(`[FixHive] Device: ${config2.deviceId.slice(0, 8)}...`);
|
|
22258
22253
|
let cloudClient = null;
|
|
22259
22254
|
if (config2.supabaseUrl && config2.supabaseAnonKey) {
|
|
22260
22255
|
try {
|
|
@@ -22263,11 +22258,7 @@ var FixHivePlugin = async (ctx) => {
|
|
|
22263
22258
|
supabaseKey: config2.supabaseAnonKey,
|
|
22264
22259
|
deviceId: config2.deviceId
|
|
22265
22260
|
});
|
|
22266
|
-
|
|
22267
|
-
} catch (err) {
|
|
22268
|
-
console.error("[FixHive] Failed to initialize cloud client:", err);
|
|
22269
|
-
console.error("[FixHive] Falling back to offline mode");
|
|
22270
|
-
}
|
|
22261
|
+
} catch {}
|
|
22271
22262
|
}
|
|
22272
22263
|
const pluginContext = {
|
|
22273
22264
|
sessionId: "",
|
|
@@ -22276,10 +22267,6 @@ var FixHivePlugin = async (ctx) => {
|
|
|
22276
22267
|
framework: detectFramework(ctx.directory),
|
|
22277
22268
|
packages: detectPackages(ctx.directory)
|
|
22278
22269
|
};
|
|
22279
|
-
if (pluginContext.language) {
|
|
22280
|
-
console.log(`[FixHive] Detected: ${pluginContext.language}${pluginContext.framework ? ` / ${pluginContext.framework}` : ""}`);
|
|
22281
|
-
}
|
|
22282
|
-
console.log("[FixHive] Ready - use fixhive_search_cases to find solutions");
|
|
22283
22270
|
const errorProducingTools = ["bash", "edit", "write", "read", "terminal"];
|
|
22284
22271
|
return {
|
|
22285
22272
|
"tool.execute.after": async (input, output) => {
|
|
@@ -22287,9 +22274,7 @@ var FixHivePlugin = async (ctx) => {
|
|
|
22287
22274
|
return;
|
|
22288
22275
|
const hasError = detectErrorInOutput(output.output);
|
|
22289
22276
|
if (hasError) {
|
|
22290
|
-
|
|
22291
|
-
console.log("[FixHive] Use fixhive_search_cases with a normalized error signature to find solutions");
|
|
22292
|
-
output.title = `${output.title} [FixHive: Error detected - use fixhive_search_cases]`;
|
|
22277
|
+
output.title = `${output.title} [FixHive: Error detected]`;
|
|
22293
22278
|
}
|
|
22294
22279
|
},
|
|
22295
22280
|
"chat.message": async (input, _output) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AA0ClD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AA0ClD;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAuD3B,CAAC;AAyIF,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED