@xagent/x-cli 1.1.106 → 1.1.107
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/index.js +3 -57
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -18500,7 +18500,7 @@ var init_package = __esm({
|
|
|
18500
18500
|
package_default = {
|
|
18501
18501
|
type: "module",
|
|
18502
18502
|
name: "@xagent/one-shot",
|
|
18503
|
-
version: "1.1.
|
|
18503
|
+
version: "1.1.107",
|
|
18504
18504
|
description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal with automatic documentation updates.",
|
|
18505
18505
|
main: "dist/index.js",
|
|
18506
18506
|
module: "dist/index.js",
|
|
@@ -21439,66 +21439,12 @@ __export(use_console_setup_exports, {
|
|
|
21439
21439
|
useConsoleSetup: () => useConsoleSetup
|
|
21440
21440
|
});
|
|
21441
21441
|
function printWelcomeBanner(_quiet = false) {
|
|
21442
|
-
|
|
21443
|
-
const isTTY = !!process.stdout.isTTY;
|
|
21444
|
-
if (isTTY) {
|
|
21445
|
-
process.stdout.write("\x1B[?25l");
|
|
21446
|
-
process.stdout.write("\x1B[H");
|
|
21447
|
-
process.stdout.write("\x1B[2J");
|
|
21448
|
-
process.stdout.write("\x1B[3J");
|
|
21449
|
-
process.stdout.write("\x1B[H");
|
|
21450
|
-
}
|
|
21451
|
-
const isFancy = process.env.X_CLI_ASCII !== "block";
|
|
21452
|
-
const fancyAscii = String.raw`__/\\\_______/\\\______________________/\\\\\\\\\__/\\\______________/\\\\\\\\\\\_
|
|
21453
|
-
_\///\\\___/\\\/____________________/\\\////////__\/\\\_____________\/////\\\///__
|
|
21454
|
-
___\///\\\\\\/____________________/\\\/___________\/\\\_________________\/\\\_____
|
|
21455
|
-
_____\//\\\\_______/\\\\\\\\\\\__/\\\_____________\/\\\_________________\/\\\_____
|
|
21456
|
-
______\/\\\\______\///////////__\/\\\_____________\/\\\_________________\/\\\_____
|
|
21457
|
-
______/\\\\\\___________________\//\\\____________\/\\\_________________\/\\\_____
|
|
21458
|
-
____/\\\////\\\__________________\///\\\__________\/\\\_________________\/\\\_____
|
|
21459
|
-
__/\\\/___\///\\\__________________\////\\\\\\\\\_\/\\\\\\\\\\\\\\\__/\\\\\\\\\\\_
|
|
21460
|
-
_\///_______\///______________________\/////////__\///////////////__\///////////__`;
|
|
21461
|
-
const blockAscii = String.raw`\x1b[34m ████ ████████ ████ ████
|
|
21462
|
-
████████ ██████████████ ████████
|
|
21463
|
-
██████████ ██████████████ ████████
|
|
21464
|
-
██████████ ██████████████ ████████
|
|
21465
|
-
████████ ██████████████ ████████
|
|
21466
|
-
████ ████████ ████ ████\x1b[0m`;
|
|
21467
|
-
const asciiArt = (isFancy ? fancyAscii : blockAscii).normalize("NFC");
|
|
21468
|
-
process.stdout.write(asciiArt + "\n");
|
|
21469
|
-
const welcomeBanner = [
|
|
21470
|
-
"",
|
|
21471
|
-
`\x1B[32m Welcome to X-CLI v${package_default.version} \u26A1\x1B[0m`,
|
|
21472
|
-
"",
|
|
21473
|
-
`\x1B[36m \u{1F680} Claude Code-level intelligence in your terminal!\x1B[0m`,
|
|
21474
|
-
"",
|
|
21475
|
-
`\x1B[33m \u2714 Ready. Type your first command or paste code to begin.\x1B[0m`,
|
|
21476
|
-
"",
|
|
21477
|
-
`\x1B[35m \u{1F4A1} Quick Start Tips:\x1B[0m`,
|
|
21478
|
-
"",
|
|
21479
|
-
` \u2022 Ask anything: "Create a React component" or "Debug this Python script"`,
|
|
21480
|
-
` \u2022 Edit files: "Add error handling to app.js"`,
|
|
21481
|
-
` \u2022 Run commands: "Set up a new Node.js project"`,
|
|
21482
|
-
` \u2022 Get help: Type "/help" for all commands`,
|
|
21483
|
-
"",
|
|
21484
|
-
`\x1B[35m \u{1F6E0}\uFE0F Power Features:\x1B[0m`,
|
|
21485
|
-
"",
|
|
21486
|
-
` \u2022 Auto-edit mode: Press Shift+Tab to toggle hands-free editing`,
|
|
21487
|
-
` \u2022 Project memory: Create .xcli/GROK.md to customize behavior`,
|
|
21488
|
-
` \u2022 Documentation: Run "/init-agent" for .agent docs system`,
|
|
21489
|
-
` \u2022 Error recovery: Run "/heal" after errors to add guardrails`,
|
|
21490
|
-
"",
|
|
21491
|
-
`\x1B[37m Type your request in natural language. Ctrl+C to clear, 'exit' to quit.\x1B[0m`,
|
|
21492
|
-
""
|
|
21493
|
-
].join("\n");
|
|
21494
|
-
process.stdout.write(welcomeBanner);
|
|
21495
|
-
if (isTTY) process.stdout.write("\x1B[?25h");
|
|
21442
|
+
return;
|
|
21496
21443
|
}
|
|
21497
21444
|
function useConsoleSetup(_quiet = false) {
|
|
21498
21445
|
}
|
|
21499
21446
|
var init_use_console_setup = __esm({
|
|
21500
21447
|
"src/hooks/use-console-setup.ts"() {
|
|
21501
|
-
init_package();
|
|
21502
21448
|
}
|
|
21503
21449
|
});
|
|
21504
21450
|
function useSessionLogging(chatHistory) {
|
|
@@ -23808,7 +23754,7 @@ var require_package = __commonJS({
|
|
|
23808
23754
|
module.exports = {
|
|
23809
23755
|
type: "module",
|
|
23810
23756
|
name: "@xagent/one-shot",
|
|
23811
|
-
version: "1.1.
|
|
23757
|
+
version: "1.1.107",
|
|
23812
23758
|
description: "An open-source AI agent that brings advanced AI capabilities directly into your terminal with automatic documentation updates.",
|
|
23813
23759
|
main: "dist/index.js",
|
|
23814
23760
|
module: "dist/index.js",
|