clawmux 0.3.8 → 0.3.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.
package/dist/cli.cjs CHANGED
@@ -85,7 +85,7 @@ var import_node_child_process = require("node:child_process");
85
85
  var import_node_os = require("node:os");
86
86
 
87
87
  // src/proxy/router.ts
88
- var VERSION = process.env.npm_package_version ?? "0.3.8";
88
+ var VERSION = process.env.npm_package_version ?? "0.3.9";
89
89
  function jsonResponse(body, status = 200) {
90
90
  return new Response(JSON.stringify(body), {
91
91
  status,
@@ -109,6 +109,22 @@ var routes = [
109
109
  handler: async () => jsonResponse({ message: "stats not implemented yet" }),
110
110
  key: "/stats"
111
111
  },
112
+ {
113
+ method: "GET",
114
+ match: (p) => p === "/v1/models",
115
+ handler: async () => jsonResponse({
116
+ object: "list",
117
+ data: [
118
+ {
119
+ id: "auto",
120
+ object: "model",
121
+ created: 0,
122
+ owned_by: "clawmux"
123
+ }
124
+ ]
125
+ }),
126
+ key: "/v1/models"
127
+ },
112
128
  {
113
129
  method: "POST",
114
130
  match: (p) => p === "/v1/messages",
package/dist/index.cjs CHANGED
@@ -108,7 +108,7 @@ __export(exports_src, {
108
108
  module.exports = __toCommonJS(exports_src);
109
109
 
110
110
  // src/proxy/router.ts
111
- var VERSION = process.env.npm_package_version ?? "0.3.8";
111
+ var VERSION = process.env.npm_package_version ?? "0.3.9";
112
112
  function jsonResponse(body, status = 200) {
113
113
  return new Response(JSON.stringify(body), {
114
114
  status,
@@ -132,6 +132,22 @@ var routes = [
132
132
  handler: async () => jsonResponse({ message: "stats not implemented yet" }),
133
133
  key: "/stats"
134
134
  },
135
+ {
136
+ method: "GET",
137
+ match: (p) => p === "/v1/models",
138
+ handler: async () => jsonResponse({
139
+ object: "list",
140
+ data: [
141
+ {
142
+ id: "auto",
143
+ object: "model",
144
+ created: 0,
145
+ owned_by: "clawmux"
146
+ }
147
+ ]
148
+ }),
149
+ key: "/v1/models"
150
+ },
135
151
  {
136
152
  method: "POST",
137
153
  match: (p) => p === "/v1/messages",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawmux",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Smart model routing + context compression proxy for OpenClaw",
5
5
  "type": "module",
6
6
  "bin": {