termux-dev 1.2.0 → 1.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/assets/banner.svg CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
  <!-- Tagline & Badge -->
27
27
  <text x="425" y="142" font-family="system-ui, -apple-system, sans-serif" font-size="14" font-weight="600" fill="#8b949e" text-anchor="middle" letter-spacing="3">
28
- THE TERMINAL-NATIVE AI CODING AGENT <tspan fill="#00f2fe" font-weight="bold">v1.2.0</tspan>
28
+ THE TERMINAL-NATIVE AI CODING AGENT <tspan fill="#00f2fe" font-weight="bold">v1.2.2</tspan>
29
29
  </text>
30
30
 
31
31
  <!-- Top Accent Line -->
package/dist/cli/index.js CHANGED
@@ -351,6 +351,10 @@ function resetTerminalTheme() {
351
351
  }
352
352
  let activeAbortHandler = null;
353
353
  process.on('exit', () => {
354
+ if (process.stdin.isTTY) {
355
+ process.stdin.setRawMode(false);
356
+ }
357
+ process.stdout.write('\x1B[?25h');
354
358
  resetTerminalTheme();
355
359
  });
356
360
  process.on('SIGINT', () => {
@@ -358,6 +362,11 @@ process.on('SIGINT', () => {
358
362
  activeAbortHandler();
359
363
  }
360
364
  else {
365
+ if (process.stdin.isTTY) {
366
+ process.stdin.setRawMode(false);
367
+ process.stdin.pause();
368
+ }
369
+ process.stdout.write('\x1B[?25h'); // restore cursor
361
370
  resetTerminalTheme();
362
371
  process.exit(0);
363
372
  }
@@ -382,7 +391,7 @@ function drawLogo() {
382
391
  theme.colorFn(' █▀▀▄ █▀▀▀ █ █ █ █'),
383
392
  theme.colorFn(' █ █ █▀▀▀ ▀▄▀ ▀▄▀ '),
384
393
  theme.colorFn(' █▄▄▀ █▄▄▄ ▀ ▀ ▀ '),
385
- ' ' + theme.boldFn('v1.2.0'),
394
+ ' ' + theme.boldFn('v1.2.2'),
386
395
  ''
387
396
  ];
388
397
  for (const line of logo) {
@@ -397,7 +406,7 @@ function drawLogo() {
397
406
  indent + theme.colorFn('▀▀▀█▀▀▀ █▀▀▀ █▀▀█ █▄ ▄█ █ █ ▀▄ ▄▀ █▀▀▄ █▀▀▀ █ █'),
398
407
  indent + theme.colorFn(' █ █▀▀▀ █▄▄▀ █ █ █ █ █ █ ▀▀ █ █ █▀▀▀ █ █'),
399
408
  indent + theme.colorFn(' █ █▄▄▄ █ ▀▄ █ █ ▀▄▄▀ ▄▀ ▀▄ █▄▄▀ █▄▄▄ ▀▄▀ '),
400
- indent + theme.boldFn('v1.2.0'),
409
+ indent + theme.boldFn('v1.2.2'),
401
410
  ''
402
411
  ];
403
412
  for (const line of logo) {
@@ -540,11 +549,11 @@ export async function main() {
540
549
  };
541
550
  });
542
551
  try {
543
- console.clear();
544
- const selected = await select({
552
+ clearTerminalScreen();
553
+ const selected = await search({
545
554
  message: `${pc.bold('🎨 Pick a theme to personalize your workspace:')}`,
546
- choices: themeChoices,
547
- pageSize: 10
555
+ source: async () => themeChoices,
556
+ pageSize: 6
548
557
  });
549
558
  if (selected) {
550
559
  config.theme = selected;
@@ -676,7 +685,7 @@ export async function main() {
676
685
  const maxIterLabel = maxIter >= 9999 ? 'Unlimited' : `${maxIter} steps`;
677
686
  const currentTh = getCurrentTheme();
678
687
  const choice = await select({
679
- message: `${pc.bold('⚙️ Settings')} ${pc.dim(`(devx v1.2.0 • theme: ${currentTh.name})`)}`,
688
+ message: `${pc.bold('⚙️ Settings')} ${pc.dim(`(devx v1.2.2 • theme: ${currentTh.name})`)}`,
680
689
  choices: [
681
690
  {
682
691
  name: `🎨 Color Theme: ${currentTh.emoji} ${currentTh.name}`,
@@ -717,7 +726,7 @@ export async function main() {
717
726
  description: 'Limit how many tool steps (file edits, terminal commands) agent can do per request'
718
727
  },
719
728
  {
720
- name: `${currentTh.colorFn('✨ About devx')} ${pc.dim('(v1.2.0 by ApvCode)')}`,
729
+ name: `${currentTh.colorFn('✨ About devx')} ${pc.dim('(v1.2.2 by ApvCode)')}`,
721
730
  value: 'about',
722
731
  description: 'Terminal-Native AI Coding Agent created by ApvCode (https://github.com/apvcode/Termux-Dev)'
723
732
  },
@@ -733,7 +742,7 @@ export async function main() {
733
742
  continue;
734
743
  }
735
744
  if (choice === 'about') {
736
- p.note(`⚡ devx v1.2.0 — Terminal-Native AI Coding Agent\n` +
745
+ p.note(`⚡ devx v1.2.2 — Terminal-Native AI Coding Agent\n` +
737
746
  `🎨 Theme: ${currentTh.emoji} ${currentTh.name}\n` +
738
747
  `👤 Author: ApvCode (https://github.com/apvcode)\n` +
739
748
  `🌟 Repository: https://github.com/apvcode/Termux-Dev\n` +
@@ -139,7 +139,7 @@ function renderDirectoryHtml(dirPath, relPath, files, port) {
139
139
  ${parentLink}
140
140
  ${items || '<li style="padding: 20px; text-align: center; color: #6e7681;">No visible files in this directory</li>'}
141
141
  </ul>
142
- <div class="footer">devx v1.2.0 &bull; Terminal-Native AI Assistant</div>
142
+ <div class="footer">devx v1.2.2 &bull; Terminal-Native AI Assistant</div>
143
143
  </div>
144
144
  </body>
145
145
  </html>`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-dev",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Ultra-fast, terminal-native AI coding assistant and agent built for Android Termux, Windows, macOS, and Linux.",
5
5
  "main": "dist/cli/index.js",
6
6
  "type": "module",