@amirtechai/xclaude 0.2.0 → 0.2.2
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.mjs +48 -51
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1695,7 +1695,7 @@ import { createInterface } from "readline";
|
|
|
1695
1695
|
import { existsSync as existsSync4 } from "fs";
|
|
1696
1696
|
import { homedir as homedir4 } from "os";
|
|
1697
1697
|
import { join as join4 } from "path";
|
|
1698
|
-
function needsFirstRunSetup(env = process.env) {
|
|
1698
|
+
function needsFirstRunSetup(env = process.env, globalProfilePath = GLOBAL_PROFILE_PATH) {
|
|
1699
1699
|
if (env.CLAUDE_CODE_USE_OPENAI || env.CLAUDE_CODE_USE_GEMINI || env.CLAUDE_CODE_USE_GITHUB || env.CLAUDE_CODE_USE_BEDROCK || env.CLAUDE_CODE_USE_VERTEX || env.CLAUDE_CODE_USE_FOUNDRY) {
|
|
1700
1700
|
return false;
|
|
1701
1701
|
}
|
|
@@ -1705,7 +1705,7 @@ function needsFirstRunSetup(env = process.env) {
|
|
|
1705
1705
|
if (existsSync4(join4(process.cwd(), PROFILE_FILE_NAME))) {
|
|
1706
1706
|
return false;
|
|
1707
1707
|
}
|
|
1708
|
-
if (existsSync4(
|
|
1708
|
+
if (existsSync4(globalProfilePath)) {
|
|
1709
1709
|
return false;
|
|
1710
1710
|
}
|
|
1711
1711
|
return true;
|
|
@@ -120306,9 +120306,8 @@ function detectProvider() {
|
|
|
120306
120306
|
if (alias in codexAliases) {
|
|
120307
120307
|
const resolved = codexAliases[alias];
|
|
120308
120308
|
displayModel = resolved.model;
|
|
120309
|
-
if (resolved.reasoningEffort)
|
|
120309
|
+
if (resolved.reasoningEffort)
|
|
120310
120310
|
displayModel = `${displayModel} (${resolved.reasoningEffort})`;
|
|
120311
|
-
}
|
|
120312
120311
|
}
|
|
120313
120312
|
return { name, model: displayModel, baseUrl, isLocal };
|
|
120314
120313
|
}
|
|
@@ -120326,14 +120325,14 @@ function printStartupScreen() {
|
|
|
120326
120325
|
const W2 = 62;
|
|
120327
120326
|
const out = [];
|
|
120328
120327
|
out.push("");
|
|
120329
|
-
const allLogo = [...
|
|
120328
|
+
const allLogo = [...LOGO_X, "", ...LOGO_CLAUDE];
|
|
120330
120329
|
const total = allLogo.length;
|
|
120331
120330
|
for (let i2 = 0;i2 < total; i2++) {
|
|
120332
120331
|
const t = total > 1 ? i2 / (total - 1) : 0;
|
|
120333
120332
|
if (allLogo[i2] === "") {
|
|
120334
120333
|
out.push("");
|
|
120335
120334
|
} else {
|
|
120336
|
-
out.push(paintLine(allLogo[i2],
|
|
120335
|
+
out.push(paintLine(allLogo[i2], BLUE_GRAD, t));
|
|
120337
120336
|
}
|
|
120338
120337
|
}
|
|
120339
120338
|
out.push("");
|
|
@@ -120344,7 +120343,7 @@ function printStartupScreen() {
|
|
|
120344
120343
|
const padK = k.padEnd(9);
|
|
120345
120344
|
return [` ${DIM}${rgb(...DIMCOL)}${padK}${RESET} ${rgb(...c5)}${v}${RESET}`, ` ${padK} ${v}`.length];
|
|
120346
120345
|
};
|
|
120347
|
-
const provC = p.isLocal ? [
|
|
120346
|
+
const provC = p.isLocal ? [80, 200, 120] : ACCENT;
|
|
120348
120347
|
let [r, l] = lbl("Provider", p.name, provC);
|
|
120349
120348
|
out.push(boxRow(r, W2, l));
|
|
120350
120349
|
[r, l] = lbl("Model", p.model);
|
|
@@ -120353,41 +120352,41 @@ function printStartupScreen() {
|
|
|
120353
120352
|
[r, l] = lbl("Endpoint", ep);
|
|
120354
120353
|
out.push(boxRow(r, W2, l));
|
|
120355
120354
|
out.push(`${rgb(...BORDER)}╠${"═".repeat(W2 - 2)}╣${RESET}`);
|
|
120356
|
-
const sC = p.isLocal ? [
|
|
120355
|
+
const sC = p.isLocal ? [80, 200, 120] : ACCENT;
|
|
120357
120356
|
const sL = p.isLocal ? "local" : "cloud";
|
|
120358
120357
|
const sRow = ` ${rgb(...sC)}●${RESET} ${DIM}${rgb(...DIMCOL)}${sL}${RESET} ${DIM}${rgb(...DIMCOL)}Ready — type ${RESET}${rgb(...ACCENT)}/help${RESET}${DIM}${rgb(...DIMCOL)} to begin${RESET}`;
|
|
120359
120358
|
const sLen = ` ● ${sL} Ready — type /help to begin`.length;
|
|
120360
120359
|
out.push(boxRow(sRow, W2, sLen));
|
|
120361
120360
|
out.push(`${rgb(...BORDER)}╚${"═".repeat(W2 - 2)}╝${RESET}`);
|
|
120362
|
-
out.push(` ${DIM}${rgb(...DIMCOL)}xclaude ${RESET}${rgb(...ACCENT)}v${"0.2.
|
|
120361
|
+
out.push(` ${DIM}${rgb(...DIMCOL)}xclaude ${RESET}${rgb(...ACCENT)}v${"0.2.2"}${RESET}`);
|
|
120363
120362
|
out.push("");
|
|
120364
120363
|
process.stdout.write(out.join(`
|
|
120365
120364
|
`) + `
|
|
120366
120365
|
`);
|
|
120367
120366
|
}
|
|
120368
|
-
var ESC = "\x1B[", RESET, DIM, rgb = (r, g, b) => `${ESC}38;2;${r};${g};${b}m`,
|
|
120367
|
+
var ESC = "\x1B[", RESET, DIM, rgb = (r, g, b) => `${ESC}38;2;${r};${g};${b}m`, BLUE_GRAD, ACCENT, CREAM, DIMCOL, BORDER, LOGO_X, LOGO_CLAUDE;
|
|
120369
120368
|
var init_StartupScreen = __esm(() => {
|
|
120370
120369
|
RESET = `${ESC}0m`;
|
|
120371
120370
|
DIM = `${ESC}2m`;
|
|
120372
|
-
|
|
120373
|
-
[
|
|
120374
|
-
[
|
|
120375
|
-
[
|
|
120376
|
-
[
|
|
120377
|
-
[
|
|
120378
|
-
[
|
|
120371
|
+
BLUE_GRAD = [
|
|
120372
|
+
[0, 40, 160],
|
|
120373
|
+
[0, 80, 210],
|
|
120374
|
+
[0, 127, 255],
|
|
120375
|
+
[30, 160, 255],
|
|
120376
|
+
[70, 195, 255],
|
|
120377
|
+
[110, 225, 255]
|
|
120379
120378
|
];
|
|
120380
|
-
ACCENT = [
|
|
120381
|
-
CREAM = [
|
|
120382
|
-
DIMCOL = [
|
|
120383
|
-
BORDER = [
|
|
120384
|
-
|
|
120385
|
-
`
|
|
120386
|
-
`
|
|
120387
|
-
`
|
|
120388
|
-
`
|
|
120389
|
-
`
|
|
120390
|
-
`
|
|
120379
|
+
ACCENT = [0, 127, 255];
|
|
120380
|
+
CREAM = [200, 225, 255];
|
|
120381
|
+
DIMCOL = [70, 110, 175];
|
|
120382
|
+
BORDER = [30, 75, 150];
|
|
120383
|
+
LOGO_X = [
|
|
120384
|
+
` ██╗ ██╗`,
|
|
120385
|
+
` ╚██╗ ██╔╝`,
|
|
120386
|
+
` ╚███╔╝ `,
|
|
120387
|
+
` ██╔██╗ `,
|
|
120388
|
+
` ██╔╝ ╚██╗`,
|
|
120389
|
+
` ╚═╝ ╚═╝`
|
|
120391
120390
|
];
|
|
120392
120391
|
LOGO_CLAUDE = [
|
|
120393
120392
|
` ████████╗ ██╗ ████████╗ ██╗ ██╗ ████████╗ ████████╗`,
|
|
@@ -125727,16 +125726,13 @@ function startCapturingEarlyInput() {
|
|
|
125727
125726
|
process.stdin.setEncoding("utf8");
|
|
125728
125727
|
process.stdin.setRawMode(true);
|
|
125729
125728
|
process.stdin.ref();
|
|
125730
|
-
|
|
125731
|
-
|
|
125732
|
-
|
|
125733
|
-
if (typeof chunk === "string") {
|
|
125734
|
-
processChunk(chunk);
|
|
125735
|
-
}
|
|
125736
|
-
chunk = process.stdin.read();
|
|
125729
|
+
dataHandler = (chunk) => {
|
|
125730
|
+
if (typeof chunk === "string") {
|
|
125731
|
+
processChunk(chunk);
|
|
125737
125732
|
}
|
|
125738
125733
|
};
|
|
125739
|
-
process.stdin.on("
|
|
125734
|
+
process.stdin.on("data", dataHandler);
|
|
125735
|
+
process.stdin.resume();
|
|
125740
125736
|
} catch {
|
|
125741
125737
|
isCapturing = false;
|
|
125742
125738
|
}
|
|
@@ -125791,10 +125787,11 @@ function stopCapturingEarlyInput() {
|
|
|
125791
125787
|
return;
|
|
125792
125788
|
}
|
|
125793
125789
|
isCapturing = false;
|
|
125794
|
-
if (
|
|
125795
|
-
process.stdin.removeListener("
|
|
125796
|
-
|
|
125790
|
+
if (dataHandler) {
|
|
125791
|
+
process.stdin.removeListener("data", dataHandler);
|
|
125792
|
+
dataHandler = null;
|
|
125797
125793
|
}
|
|
125794
|
+
process.stdin.pause();
|
|
125798
125795
|
}
|
|
125799
125796
|
function consumeEarlyInput() {
|
|
125800
125797
|
stopCapturingEarlyInput();
|
|
@@ -125811,7 +125808,7 @@ function seedEarlyInput(text) {
|
|
|
125811
125808
|
function isCapturingEarlyInput() {
|
|
125812
125809
|
return isCapturing;
|
|
125813
125810
|
}
|
|
125814
|
-
var earlyInputBuffer = "", isCapturing = false,
|
|
125811
|
+
var earlyInputBuffer = "", isCapturing = false, dataHandler = null;
|
|
125815
125812
|
var init_earlyInput = __esm(() => {
|
|
125816
125813
|
init_intl();
|
|
125817
125814
|
});
|
|
@@ -144545,7 +144542,7 @@ var init_App = __esm(() => {
|
|
|
144545
144542
|
internal_eventEmitter = new EventEmitter3;
|
|
144546
144543
|
keyParseState = INITIAL_STATE;
|
|
144547
144544
|
incompleteEscapeTimer = null;
|
|
144548
|
-
stdinMode = process.env.
|
|
144545
|
+
stdinMode = process.env.XCLAUDE_STDIN_DATA_MODE === "1" ? "data" : "readable";
|
|
144549
144546
|
NORMAL_TIMEOUT = 50;
|
|
144550
144547
|
PASTE_TIMEOUT = 500;
|
|
144551
144548
|
querier = new TerminalQuerier(this.props.stdout);
|
|
@@ -370546,7 +370543,7 @@ function getAnthropicEnvMetadata() {
|
|
|
370546
370543
|
function getBuildAgeMinutes() {
|
|
370547
370544
|
if (false)
|
|
370548
370545
|
;
|
|
370549
|
-
const buildTime = new Date("2026-04-
|
|
370546
|
+
const buildTime = new Date("2026-04-11T20:58:44.280Z").getTime();
|
|
370550
370547
|
if (isNaN(buildTime))
|
|
370551
370548
|
return;
|
|
370552
370549
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -397304,7 +397301,7 @@ function buildPrimarySection() {
|
|
|
397304
397301
|
}, undefined, false, undefined, this);
|
|
397305
397302
|
return [{
|
|
397306
397303
|
label: "Version",
|
|
397307
|
-
value: "0.2.
|
|
397304
|
+
value: "0.2.2"
|
|
397308
397305
|
}, {
|
|
397309
397306
|
label: "Session name",
|
|
397310
397307
|
value: nameValue
|
|
@@ -462411,7 +462408,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
462411
462408
|
var call58 = async () => {
|
|
462412
462409
|
return {
|
|
462413
462410
|
type: "text",
|
|
462414
|
-
value: `${"99.0.0"} (built ${"2026-04-
|
|
462411
|
+
value: `${"99.0.0"} (built ${"2026-04-11T20:58:44.280Z"})`
|
|
462415
462412
|
};
|
|
462416
462413
|
}, version2, version_default;
|
|
462417
462414
|
var init_version = __esm(() => {
|
|
@@ -535357,7 +535354,7 @@ function WelcomeV2() {
|
|
|
535357
535354
|
dimColor: true,
|
|
535358
535355
|
children: [
|
|
535359
535356
|
"v",
|
|
535360
|
-
"0.2.
|
|
535357
|
+
"0.2.2",
|
|
535361
535358
|
" "
|
|
535362
535359
|
]
|
|
535363
535360
|
}, undefined, true, undefined, this)
|
|
@@ -535557,7 +535554,7 @@ function WelcomeV2() {
|
|
|
535557
535554
|
dimColor: true,
|
|
535558
535555
|
children: [
|
|
535559
535556
|
"v",
|
|
535560
|
-
"0.2.
|
|
535557
|
+
"0.2.2",
|
|
535561
535558
|
" "
|
|
535562
535559
|
]
|
|
535563
535560
|
}, undefined, true, undefined, this)
|
|
@@ -535783,7 +535780,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
535783
535780
|
dimColor: true,
|
|
535784
535781
|
children: [
|
|
535785
535782
|
"v",
|
|
535786
|
-
"0.2.
|
|
535783
|
+
"0.2.2",
|
|
535787
535784
|
" "
|
|
535788
535785
|
]
|
|
535789
535786
|
}, undefined, true, undefined, this);
|
|
@@ -536037,7 +536034,7 @@ function AppleTerminalWelcomeV2(t0) {
|
|
|
536037
536034
|
dimColor: true,
|
|
536038
536035
|
children: [
|
|
536039
536036
|
"v",
|
|
536040
|
-
"0.2.
|
|
536037
|
+
"0.2.2",
|
|
536041
536038
|
" "
|
|
536042
536039
|
]
|
|
536043
536040
|
}, undefined, true, undefined, this);
|
|
@@ -556604,7 +556601,7 @@ Usage: claude --remote "your task description"`, () => gracefulShutdown(1));
|
|
|
556604
556601
|
pendingHookMessages
|
|
556605
556602
|
}, renderAndRun);
|
|
556606
556603
|
}
|
|
556607
|
-
}).version("0.2.
|
|
556604
|
+
}).version("0.2.2 (Xclaude)", "-v, --version", "Output the version number");
|
|
556608
556605
|
program2.option("-w, --worktree [name]", "Create a new git worktree for this session (optionally specify a name)");
|
|
556609
556606
|
program2.option("--tmux", "Create a tmux session for the worktree (requires --worktree). Uses iTerm2 native panes when available; use --tmux=classic for traditional tmux.");
|
|
556610
556607
|
if (canUserConfigureAdvisor()) {
|
|
@@ -557174,7 +557171,7 @@ function validateProviderEnvOrExit() {
|
|
|
557174
557171
|
async function main2() {
|
|
557175
557172
|
const args = process.argv.slice(2);
|
|
557176
557173
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v" || args[0] === "-V")) {
|
|
557177
|
-
console.log(`${"0.2.
|
|
557174
|
+
console.log(`${"0.2.2"} (Xclaude)`);
|
|
557178
557175
|
return;
|
|
557179
557176
|
}
|
|
557180
557177
|
if (args.includes("--setup") || args[0] === "setup") {
|
|
@@ -557306,4 +557303,4 @@ async function main2() {
|
|
|
557306
557303
|
}
|
|
557307
557304
|
main2();
|
|
557308
557305
|
|
|
557309
|
-
//# debugId=
|
|
557306
|
+
//# debugId=9754835AC65C039F64756E2164756E21
|