@the-magic-tower/fixhive-opencode-plugin 0.1.6 → 0.1.8

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.ko.md CHANGED
@@ -45,18 +45,38 @@ npm install @the-magic-tower/fixhive-opencode-plugin
45
45
 
46
46
  ## 빠른 시작
47
47
 
48
- OpenCode 설정 파일(`opencode.config.ts`)에 추가:
48
+ ### 1. 패키지 설치
49
49
 
50
- ```typescript
51
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
50
+ ```bash
51
+ npm install @the-magic-tower/fixhive-opencode-plugin
52
+ ```
53
+
54
+ ### 2. OpenCode 설정 파일(`opencode.json`)에 추가
55
+
56
+ ```json
57
+ {
58
+ "plugins": [
59
+ "@the-magic-tower/fixhive-opencode-plugin"
60
+ ]
61
+ }
62
+ ```
52
63
 
53
- export default {
54
- plugins: [FixHivePlugin],
55
- };
64
+ ### 3. OpenCode 실행
65
+
66
+ ```bash
67
+ opencode
56
68
  ```
57
69
 
58
70
  **끝입니다!** FixHive는 기본적으로 커뮤니티 지식 베이스에 연결됩니다. 환경 변수 설정이 필요 없습니다.
59
71
 
72
+ 플러그인이 정상 로드되면 다음 로그가 출력됩니다:
73
+ ```
74
+ [FixHive] Plugin loaded
75
+ [FixHive] Project: /your/project/path
76
+ [FixHive] Cloud: enabled
77
+ [FixHive] Ready - use fixhive_stats to verify
78
+ ```
79
+
60
80
  ## 작동 원리
61
81
 
62
82
  ```
package/README.md CHANGED
@@ -45,18 +45,38 @@ npm install @the-magic-tower/fixhive-opencode-plugin
45
45
 
46
46
  ## Quick Start
47
47
 
48
- Add to your OpenCode configuration (`opencode.config.ts`):
48
+ ### 1. Install the package
49
49
 
50
- ```typescript
51
- import FixHivePlugin from '@the-magic-tower/fixhive-opencode-plugin';
50
+ ```bash
51
+ npm install @the-magic-tower/fixhive-opencode-plugin
52
+ ```
53
+
54
+ ### 2. Add to your OpenCode configuration (`opencode.json`)
55
+
56
+ ```json
57
+ {
58
+ "plugins": [
59
+ "@the-magic-tower/fixhive-opencode-plugin"
60
+ ]
61
+ }
62
+ ```
52
63
 
53
- export default {
54
- plugins: [FixHivePlugin],
55
- };
64
+ ### 3. Run OpenCode
65
+
66
+ ```bash
67
+ opencode
56
68
  ```
57
69
 
58
70
  **That's it!** FixHive connects to the community knowledge base by default. No environment variables required.
59
71
 
72
+ You'll see these logs when the plugin loads successfully:
73
+ ```
74
+ [FixHive] Plugin loaded
75
+ [FixHive] Project: /your/project/path
76
+ [FixHive] Cloud: enabled
77
+ [FixHive] Ready - use fixhive_stats to verify
78
+ ```
79
+
60
80
  ## How It Works
61
81
 
62
82
  ```
package/dist/index.js CHANGED
@@ -1602,6 +1602,9 @@ var DEFAULT_CONFIG = {
1602
1602
  };
1603
1603
  var FixHivePlugin = async (ctx) => {
1604
1604
  const config = loadConfig();
1605
+ console.log("[FixHive] Plugin loaded");
1606
+ console.log(`[FixHive] Project: ${ctx.directory}`);
1607
+ console.log(`[FixHive] Cloud: ${config.supabaseUrl ? "enabled" : "disabled"}`);
1605
1608
  const privacyFilter = new PrivacyFilter();
1606
1609
  const filterContext = createFilterContext(ctx.directory);
1607
1610
  const errorDetector = new ErrorDetector(privacyFilter);
@@ -1622,6 +1625,10 @@ var FixHivePlugin = async (ctx) => {
1622
1625
  language: detectLanguage(ctx.directory),
1623
1626
  framework: detectFramework(ctx.directory)
1624
1627
  };
1628
+ if (pluginContext.language) {
1629
+ console.log(`[FixHive] Detected: ${pluginContext.language}${pluginContext.framework ? ` / ${pluginContext.framework}` : ""}`);
1630
+ }
1631
+ console.log("[FixHive] Ready - use fixhive_stats to verify");
1625
1632
  const errorProducingTools = ["bash", "edit", "write", "read", "terminal"];
1626
1633
  return {
1627
1634
  // ============ Tool Execution Hook ============
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-magic-tower/fixhive-opencode-plugin",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Community-based error knowledge sharing for OpenCode",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",