@kimchitest/opencode-otel-plugin 1.0.7 → 1.0.9

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 (2) hide show
  1. package/README.md +20 -20
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # OpenCode OTEL Plugin for Kimchi
1
+ # OpenCode OTEL Plugin for AI Enabler
2
2
 
3
- Sends usage telemetry from OpenCode to the Kimchi service.
3
+ Sends usage telemetry from OpenCode to the AI Enabler service.
4
4
 
5
5
  OpenCode version 1.2.20+
6
6
 
@@ -12,19 +12,19 @@ Add to your `~/.config/opencode/opencode.json`:
12
12
 
13
13
  ```json
14
14
  {
15
- "plugin": ["@kimchitest/opencode-otel-plugin"]
15
+ "plugin": ["@kimchitest/opencode-otel-plugin@latest"]
16
16
  }
17
17
  ```
18
18
 
19
- To pin to a specific version (recommended for stability):
19
+ To pin to a specific version:
20
20
 
21
21
  ```json
22
22
  {
23
- "plugin": ["@kimchitest/opencode-otel-plugin@1.0.6"]
23
+ "plugin": ["@kimchitest/opencode-otel-plugin@1.0.7"]
24
24
  }
25
25
  ```
26
26
 
27
- Set environment variables (see [Configuration](#configuration) section below), then restart OpenCode.
27
+ Set environment variables (see Configuration section below), then restart OpenCode.
28
28
 
29
29
  ### Option 2: Local plugin
30
30
 
@@ -35,7 +35,7 @@ mkdir -p ~/.config/opencode/plugins
35
35
  cp plugin.ts ~/.config/opencode/plugins/otel.ts
36
36
  ```
37
37
 
38
- 2. Set environment variables (see [Configuration](#configuration) section below)
38
+ 2. Set environment variables (see Configuration section below)
39
39
 
40
40
  3. Restart OpenCode.
41
41
 
@@ -58,8 +58,8 @@ mkdir -p .opencode/plugins
58
58
  | Variable | Required | Description |
59
59
  |----------|----------|-------------|
60
60
  | `OPENCODE_ENABLE_TELEMETRY` | Yes | Set to `1` to enable telemetry |
61
- | `OPENCODE_OTLP_ENDPOINT` | Yes | Kimchi logs ingest endpoint URL |
62
- | `OPENCODE_OTLP_HEADERS` | Yes | Authorization header with your Kimchi API key |
61
+ | `OPENCODE_OTLP_ENDPOINT` | Yes | AI Enabler logs ingest endpoint URL |
62
+ | `OPENCODE_OTLP_HEADERS` | Yes | Authorization header with your AI Enabler API key |
63
63
 
64
64
  #### Example Environment Variables
65
65
 
@@ -69,11 +69,11 @@ Add these to your shell config (`~/.zshrc`, `~/.bashrc`, etc.):
69
69
  # Enable the plugin
70
70
  export OPENCODE_ENABLE_TELEMETRY=1
71
71
 
72
- # Kimchi endpoint for log ingestion
72
+ # AI Enabler endpoint for log ingestion
73
73
  export OPENCODE_OTLP_ENDPOINT=https://api.cast.ai/ai-optimizer/v1beta/logs:ingest
74
74
 
75
- # Authorization header with your Kimchi API key
76
- export OPENCODE_OTLP_HEADERS="Authorization=Bearer YOUR_API_KEY_HERE"
75
+ # Authorization header with your AI Enabler API key
76
+ export OPENCODE_OTLP_HEADERS="Authorization=Bearer YOUR_API_KEY"
77
77
  ```
78
78
 
79
79
  After adding, restart your shell or run `source ~/.zshrc`.
@@ -103,19 +103,19 @@ The plugin reads provider information from your OpenCode config (`~/.config/open
103
103
  | `perplexity` | Perplexity |
104
104
  | `hosted_vllm` | Hosted vLLM |
105
105
  | `bedrock` | AWS Bedrock |
106
- | `kimchi` | Kimchi (serverless models) |
106
+ | `ai-enabler` | AI Enabler (serverless models) |
107
107
 
108
- > **Important:** If your provider key does not match one of the valid values listed above, the request will be **rejected** and you will see an error toast notification in OpenCode. Make sure to use a provider key from the list above to ensure your usage data is recorded correctly.
108
+ > **Important:** If your provider key does not match one of the valid values above, the request will be rejected. You will see an error toast notification in OpenCode.
109
109
 
110
110
  ### Example OpenCode Config
111
111
 
112
112
  ```json
113
113
  {
114
- "model": "kimchi/glm-5-fp8",
114
+ "model": "ai-enabler/glm-5-fp8",
115
115
  "provider": {
116
- "kimchi": {
116
+ "ai-enabler": {
117
117
  "npm": "@ai-sdk/openai-compatible",
118
- "name": "Kimchi",
118
+ "name": "AI Enabler",
119
119
  "options": {
120
120
  "baseURL": "https://llm.cast.ai/openai/v1",
121
121
  "apiKey": "your-api-key"
@@ -148,9 +148,9 @@ The plugin sends `api_request` events for each completed assistant message with
148
148
 
149
149
  ## Troubleshooting
150
150
 
151
- The plugin shows error notifications via OpenCode toasts when issues occur:
151
+ The plugin shows error notifications via OpenCode toasts when issues occur.
152
152
 
153
- ### Error Toast Messages
153
+ ### Common Errors
154
154
 
155
155
  - **"Invalid provider"** - Your provider key is not recognized. Update your `opencode.json` to use a valid provider key from the list above.
156
156
  - **"Telemetry error"** - Other errors (network issues, auth failures, etc.)
@@ -158,6 +158,6 @@ The plugin shows error notifications via OpenCode toasts when issues occur:
158
158
  ### Debugging Steps
159
159
 
160
160
  1. Verify environment variables are set correctly
161
- 2. Check your Kimchi API key is valid
161
+ 2. Check that your AI Enabler API key is valid
162
162
  3. Ensure the provider key in your OpenCode config matches a valid value
163
163
  4. Verify the endpoint URL is correct
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@kimchitest/opencode-otel-plugin",
3
- "version": "1.0.7",
4
- "description": "OpenCode OTEL plugin for Kimchi - sends usage telemetry",
3
+ "version": "1.0.9",
4
+ "description": "OpenCode OTEL plugin for AI Enabler - sends usage telemetry",
5
5
  "main": "plugin.ts",
6
6
  "type": "module",
7
7
  "keywords": [
8
8
  "opencode",
9
9
  "otel",
10
10
  "opentelemetry",
11
- "kimchi",
11
+ "ai-enabler",
12
12
  "telemetry"
13
13
  ],
14
- "author": "Kimchi Team",
14
+ "author": "AI Enabler Team",
15
15
  "license": "MIT",
16
16
  "repository": {
17
17
  "type": "git",