@jcanizalez7/clauxy 0.2.1 → 0.2.3
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.md +1 -1
- package/dist/cli.js +39 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/@jcanizalez7/clauxy)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
|
|
8
|
-
> **Note:** Clauxy is in early development.
|
|
8
|
+
> **Note:** Clauxy is in early development. **GitHub Copilot with Anthropic models is stable and recommended.** ChatGPT and Google Gemini support are experimental and may have issues as providers update their APIs. Feedback and contributions are welcome!
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
package/dist/cli.js
CHANGED
|
@@ -2796,7 +2796,7 @@ Models configured:`);
|
|
|
2796
2796
|
// package.json
|
|
2797
2797
|
var package_default = {
|
|
2798
2798
|
name: "@jcanizalez7/clauxy",
|
|
2799
|
-
version: "0.2.
|
|
2799
|
+
version: "0.2.3",
|
|
2800
2800
|
description: "Multi-provider AI proxy for Claude Code (GitHub Copilot, ChatGPT Plus, Google Gemini)",
|
|
2801
2801
|
type: "module",
|
|
2802
2802
|
bin: {
|
|
@@ -2964,8 +2964,45 @@ var main = defineCommand({
|
|
|
2964
2964
|
});
|
|
2965
2965
|
}
|
|
2966
2966
|
});
|
|
2967
|
+
var SUBCOMMANDS = ["run", "auth", "model", "models", "--help", "-h", "--version", "-v"];
|
|
2967
2968
|
function cli() {
|
|
2968
|
-
|
|
2969
|
+
const args = process.argv.slice(2);
|
|
2970
|
+
const firstArg = args.find((arg) => !arg.startsWith("-"));
|
|
2971
|
+
if (firstArg && !SUBCOMMANDS.includes(firstArg)) {
|
|
2972
|
+
let logLevel = "warn";
|
|
2973
|
+
let connect = false;
|
|
2974
|
+
let provider;
|
|
2975
|
+
let port;
|
|
2976
|
+
const claudeArgs = [];
|
|
2977
|
+
for (let i = 0;i < args.length; i++) {
|
|
2978
|
+
const arg = args[i];
|
|
2979
|
+
if (arg === "-l" || arg === "--log-level") {
|
|
2980
|
+
logLevel = args[++i] || "warn";
|
|
2981
|
+
} else if (arg === "-c" || arg === "--connect") {
|
|
2982
|
+
connect = true;
|
|
2983
|
+
} else if (arg === "-p" || arg === "--provider") {
|
|
2984
|
+
provider = args[++i];
|
|
2985
|
+
} else if (arg === "--port") {
|
|
2986
|
+
const portStr = args[++i];
|
|
2987
|
+
port = portStr ? parseInt(portStr, 10) : undefined;
|
|
2988
|
+
} else if (arg.startsWith("--log-level=")) {
|
|
2989
|
+
logLevel = arg.split("=")[1];
|
|
2990
|
+
} else if (arg.startsWith("--provider=")) {
|
|
2991
|
+
provider = arg.split("=")[1];
|
|
2992
|
+
} else if (arg.startsWith("--port=")) {
|
|
2993
|
+
port = parseInt(arg.split("=")[1], 10);
|
|
2994
|
+
} else if (arg.startsWith("-p=")) {
|
|
2995
|
+
provider = arg.split("=")[1];
|
|
2996
|
+
} else if (arg.startsWith("-l=")) {
|
|
2997
|
+
logLevel = arg.split("=")[1];
|
|
2998
|
+
} else {
|
|
2999
|
+
claudeArgs.push(arg);
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
wrapperCommand({ logLevel, connect, provider, port, claudeArgs });
|
|
3003
|
+
} else {
|
|
3004
|
+
runMain(main);
|
|
3005
|
+
}
|
|
2969
3006
|
}
|
|
2970
3007
|
|
|
2971
3008
|
// cli.ts
|