swixter 0.1.11 → 0.1.12
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/index.js +9 -2
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -14021,7 +14021,7 @@ var CONFIG_VERSION = "2.0.0", EXPORT_VERSION = "1.0.0";
|
|
|
14021
14021
|
var init_versions2 = () => {};
|
|
14022
14022
|
|
|
14023
14023
|
// src/constants/meta.ts
|
|
14024
|
-
var APP_VERSION = "0.1.
|
|
14024
|
+
var APP_VERSION = "0.1.12";
|
|
14025
14025
|
var init_meta = () => {};
|
|
14026
14026
|
|
|
14027
14027
|
// src/constants/install.ts
|
|
@@ -27226,7 +27226,14 @@ class ProxyHandler {
|
|
|
27226
27226
|
if (this.isHealthRequest(request)) {
|
|
27227
27227
|
return null;
|
|
27228
27228
|
}
|
|
27229
|
-
|
|
27229
|
+
const token = this.getBearerToken(request);
|
|
27230
|
+
if (token === SWIXTER_PROXY_AUTH_TOKEN) {
|
|
27231
|
+
return null;
|
|
27232
|
+
}
|
|
27233
|
+
return new Response(JSON.stringify({ error: "Invalid or missing proxy authentication" }), {
|
|
27234
|
+
status: 401,
|
|
27235
|
+
headers: { "Content-Type": "application/json" }
|
|
27236
|
+
});
|
|
27230
27237
|
}
|
|
27231
27238
|
async handleChatCompletions(request) {
|
|
27232
27239
|
return this.forwardToProvider(request, "chat");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swixter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "CLI tool for managing AI coding assistant configurations - easily switch between providers (Claude Code, Codex, Continue) with Anthropic, Ollama, or custom APIs",
|
|
5
5
|
"main": "dist/cli/index.js",
|
|
6
6
|
"module": "dist/cli/index.js",
|