@jcanizalez7/clauxy 0.2.7 → 0.2.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.js +21 -12
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -296,10 +296,13 @@ class CopilotProvider {
|
|
|
296
296
|
return this.models;
|
|
297
297
|
}
|
|
298
298
|
async authenticate() {
|
|
299
|
+
const TOP = "┌" + "─".repeat(49) + "┐";
|
|
300
|
+
const BOT = "└" + "─".repeat(49) + "┘";
|
|
301
|
+
const SIDE = "│";
|
|
299
302
|
console.log(`
|
|
300
|
-
|
|
301
|
-
console.log(
|
|
302
|
-
console.log(
|
|
303
|
+
${TOP}`);
|
|
304
|
+
console.log(`${SIDE} GitHub Copilot - Device Authorization ${SIDE}`);
|
|
305
|
+
console.log(`${BOT}
|
|
303
306
|
`);
|
|
304
307
|
try {
|
|
305
308
|
const deviceResponse = await fetch("https://github.com/login/device/code", {
|
|
@@ -604,10 +607,13 @@ class ChatGPTProvider {
|
|
|
604
607
|
return this.models;
|
|
605
608
|
}
|
|
606
609
|
async authenticate() {
|
|
610
|
+
const TOP = "┌" + "─".repeat(49) + "┐";
|
|
611
|
+
const BOT = "└" + "─".repeat(49) + "┘";
|
|
612
|
+
const SIDE = "│";
|
|
607
613
|
console.log(`
|
|
608
|
-
|
|
609
|
-
console.log(
|
|
610
|
-
console.log(
|
|
614
|
+
${TOP}`);
|
|
615
|
+
console.log(`${SIDE} ChatGPT Plus/Pro - OAuth Authentication ${SIDE}`);
|
|
616
|
+
console.log(`${BOT}
|
|
611
617
|
`);
|
|
612
618
|
try {
|
|
613
619
|
const pkce = generatePKCE();
|
|
@@ -847,10 +853,13 @@ class GoogleProvider {
|
|
|
847
853
|
return this.models;
|
|
848
854
|
}
|
|
849
855
|
async authenticate() {
|
|
856
|
+
const TOP = "┌" + "─".repeat(49) + "┐";
|
|
857
|
+
const BOT = "└" + "─".repeat(49) + "┘";
|
|
858
|
+
const SIDE = "│";
|
|
850
859
|
console.log(`
|
|
851
|
-
|
|
852
|
-
console.log(
|
|
853
|
-
console.log(
|
|
860
|
+
${TOP}`);
|
|
861
|
+
console.log(`${SIDE} Google Gemini - OAuth Authentication ${SIDE}`);
|
|
862
|
+
console.log(`${BOT}
|
|
854
863
|
`);
|
|
855
864
|
try {
|
|
856
865
|
const pkce = generatePKCE2();
|
|
@@ -2640,7 +2649,7 @@ async function wrapperCommand(options) {
|
|
|
2640
2649
|
let proxyServer = null;
|
|
2641
2650
|
if (requestedPort && await isClauxyRunning(requestedPort)) {
|
|
2642
2651
|
proxyPort = requestedPort;
|
|
2643
|
-
console.log(`${colors.green(">")} ${colors.bold("Clauxy")} reusing
|
|
2652
|
+
console.log(`${colors.green(">")} ${colors.bold("Clauxy")} reusing ${colors.cyan(`localhost:${proxyPort}`)}`);
|
|
2644
2653
|
} else {
|
|
2645
2654
|
const { startProxy: startProxy2 } = await init_proxy().then(() => exports_proxy);
|
|
2646
2655
|
const server = await startProxy2({
|
|
@@ -2651,7 +2660,7 @@ async function wrapperCommand(options) {
|
|
|
2651
2660
|
});
|
|
2652
2661
|
proxyServer = server;
|
|
2653
2662
|
proxyPort = server.port;
|
|
2654
|
-
console.log(`${colors.green(">")} ${colors.bold("Clauxy")}
|
|
2663
|
+
console.log(`${colors.green(">")} ${colors.bold("Clauxy")} on ${colors.cyan(`localhost:${proxyPort}`)}`);
|
|
2655
2664
|
}
|
|
2656
2665
|
const claude = Bun.spawn(["claude"], {
|
|
2657
2666
|
env: {
|
|
@@ -2827,7 +2836,7 @@ Models configured:`);
|
|
|
2827
2836
|
// package.json
|
|
2828
2837
|
var package_default = {
|
|
2829
2838
|
name: "@jcanizalez7/clauxy",
|
|
2830
|
-
version: "0.2.
|
|
2839
|
+
version: "0.2.9",
|
|
2831
2840
|
description: "Multi-provider AI proxy for Claude Code (GitHub Copilot, ChatGPT Plus, Google Gemini)",
|
|
2832
2841
|
type: "module",
|
|
2833
2842
|
bin: {
|