ocb-cli 1.0.9 → 1.1.0

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/dist/proxy.js CHANGED
@@ -125,12 +125,14 @@ app.use((req, res, next) => {
125
125
  res.header("Access-Control-Allow-Origin", "*");
126
126
  res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
127
127
  res.header("Access-Control-Allow-Headers", "Content-Type, Authorization, x-api-key");
128
- res.header("Content-Type", "application/json");
129
128
  if (req.method === "OPTIONS")
130
129
  return res.sendStatus(200);
131
130
  next();
132
131
  });
133
- app.get("/", (req, res) => res.send(generateHTML()));
132
+ app.get("/", (req, res) => {
133
+ res.header("Content-Type", "text/html");
134
+ res.send(generateHTML());
135
+ });
134
136
  app.get("/health", (req, res) => {
135
137
  res.json({ status: "ok", timestamp: Date.now(), models: availableModels.length, providers: Object.keys(providers).length });
136
138
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocb-cli",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "description": "OpenCode Bridge - Use OpenCode AI models in Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/proxy.js",
package/src/proxy.ts CHANGED
@@ -154,12 +154,14 @@ app.use((req, res, next) => {
154
154
  res.header("Access-Control-Allow-Origin", "*");
155
155
  res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
156
156
  res.header("Access-Control-Allow-Headers", "Content-Type, Authorization, x-api-key");
157
- res.header("Content-Type", "application/json");
158
157
  if (req.method === "OPTIONS") return res.sendStatus(200);
159
158
  next();
160
159
  });
161
160
 
162
- app.get("/", (req, res) => res.send(generateHTML()));
161
+ app.get("/", (req, res) => {
162
+ res.header("Content-Type", "text/html");
163
+ res.send(generateHTML());
164
+ });
163
165
 
164
166
  app.get("/health", (req, res) => {
165
167
  res.json({ status: "ok", timestamp: Date.now(), models: availableModels.length, providers: Object.keys(providers).length });