@xagent/x-cli 1.1.105 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- ## 1.1.105 – Logo Assets & NPM Publication Complete
1
+ ## 1.1.107 – Logo Assets & NPM Publication Complete
2
2
 
3
3
  ✅ **Live on NPM**: [@xagent/one-shot](https://www.npmjs.com/package/@xagent/one-shot) - Fully published and ready for global installation
4
4
 
package/dist/index.js CHANGED
@@ -6316,14 +6316,14 @@ var init_ast_parser = __esm({
6316
6316
  });
6317
6317
  const symbols = this.extractTypeScriptSymbols(ast, content);
6318
6318
  const imports = this.extractTypeScriptImports(ast);
6319
- const exports = this.extractTypeScriptExports(ast);
6319
+ const exports$1 = this.extractTypeScriptExports(ast);
6320
6320
  const tree = this.convertTypeScriptAST(ast);
6321
6321
  return {
6322
6322
  language,
6323
6323
  tree,
6324
6324
  symbols,
6325
6325
  imports,
6326
- exports,
6326
+ exports: exports$1,
6327
6327
  errors
6328
6328
  };
6329
6329
  } catch (error) {
@@ -6347,14 +6347,14 @@ var init_ast_parser = __esm({
6347
6347
  const tree = parser.parse(content);
6348
6348
  const symbols = this.extractTreeSitterSymbols(tree.rootNode, content, language);
6349
6349
  const imports = this.extractTreeSitterImports(tree.rootNode, content, language);
6350
- const exports = this.extractTreeSitterExports(tree.rootNode, content, language);
6350
+ const exports$1 = this.extractTreeSitterExports(tree.rootNode, content, language);
6351
6351
  const astTree = this.convertTreeSitterAST(tree.rootNode, content);
6352
6352
  return {
6353
6353
  language,
6354
6354
  tree: astTree,
6355
6355
  symbols,
6356
6356
  imports,
6357
- exports,
6357
+ exports: exports$1,
6358
6358
  errors: []
6359
6359
  };
6360
6360
  }
@@ -6531,13 +6531,13 @@ var init_ast_parser = __esm({
6531
6531
  return imports;
6532
6532
  }
6533
6533
  extractTypeScriptExports(ast) {
6534
- const exports = [];
6534
+ const exports$1 = [];
6535
6535
  const visit = (node) => {
6536
6536
  switch (node.type) {
6537
6537
  case "ExportNamedDeclaration":
6538
6538
  if (node.declaration) {
6539
6539
  if (node.declaration.id?.name) {
6540
- exports.push({
6540
+ exports$1.push({
6541
6541
  name: node.declaration.id.name,
6542
6542
  type: this.getDeclarationType(node.declaration.type),
6543
6543
  startPosition: {
@@ -6548,7 +6548,7 @@ var init_ast_parser = __esm({
6548
6548
  }
6549
6549
  } else if (node.specifiers) {
6550
6550
  node.specifiers.forEach((spec) => {
6551
- exports.push({
6551
+ exports$1.push({
6552
6552
  name: spec.exported.name,
6553
6553
  type: "variable",
6554
6554
  // Default to variable
@@ -6563,7 +6563,7 @@ var init_ast_parser = __esm({
6563
6563
  break;
6564
6564
  case "ExportDefaultDeclaration":
6565
6565
  const name = node.declaration?.id?.name || "default";
6566
- exports.push({
6566
+ exports$1.push({
6567
6567
  name,
6568
6568
  type: this.getDeclarationType(node.declaration?.type) || "default",
6569
6569
  startPosition: {
@@ -6590,7 +6590,7 @@ var init_ast_parser = __esm({
6590
6590
  }
6591
6591
  };
6592
6592
  visit(ast);
6593
- return exports;
6593
+ return exports$1;
6594
6594
  }
6595
6595
  extractTreeSitterSymbols(node, content, language) {
6596
6596
  const symbols = [];
@@ -6675,11 +6675,11 @@ var init_ast_parser = __esm({
6675
6675
  return imports;
6676
6676
  }
6677
6677
  extractTreeSitterExports(node, content, language) {
6678
- const exports = [];
6678
+ const exports$1 = [];
6679
6679
  const visit = (node2) => {
6680
6680
  if (node2.type === "export_statement") {
6681
6681
  const name = this.extractNodeName(node2, "name") || "unknown";
6682
- exports.push({
6682
+ exports$1.push({
6683
6683
  name,
6684
6684
  type: "variable",
6685
6685
  startPosition: {
@@ -6691,7 +6691,7 @@ var init_ast_parser = __esm({
6691
6691
  node2.children?.forEach((child) => visit(child));
6692
6692
  };
6693
6693
  visit(node);
6694
- return exports;
6694
+ return exports$1;
6695
6695
  }
6696
6696
  convertTypeScriptAST(node) {
6697
6697
  return {
@@ -7241,7 +7241,7 @@ var init_dependency_analyzer = __esm({
7241
7241
  const parsed = JSON.parse(parseResult.output);
7242
7242
  if (parsed.success && parsed.result) {
7243
7243
  const imports = parsed.result.imports || [];
7244
- const exports = parsed.result.exports || [];
7244
+ const exports$1 = parsed.result.exports || [];
7245
7245
  const dependencies = await this.resolveImportPaths(
7246
7246
  imports,
7247
7247
  filePath,
@@ -7252,7 +7252,7 @@ var init_dependency_analyzer = __esm({
7252
7252
  filePath: path8__default.relative(rootPath, filePath),
7253
7253
  absolutePath: filePath,
7254
7254
  imports,
7255
- exports,
7255
+ exports: exports$1,
7256
7256
  dependencies,
7257
7257
  dependents: [],
7258
7258
  isEntryPoint: false,
@@ -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.105",
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
- if (_quiet) return;
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) {
@@ -23804,11 +23750,11 @@ var init_toggle_confirmations = __esm({
23804
23750
 
23805
23751
  // package.json
23806
23752
  var require_package = __commonJS({
23807
- "package.json"(exports, module) {
23753
+ "package.json"(exports$1, module) {
23808
23754
  module.exports = {
23809
23755
  type: "module",
23810
23756
  name: "@xagent/one-shot",
23811
- version: "1.1.105",
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",