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 +1 -1
- package/dist/cli/index.js +18 -9
- package/dist/cli/server.js +1 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
544
|
-
const selected = await
|
|
552
|
+
clearTerminalScreen();
|
|
553
|
+
const selected = await search({
|
|
545
554
|
message: `${pc.bold('🎨 Pick a theme to personalize your workspace:')}`,
|
|
546
|
-
|
|
547
|
-
pageSize:
|
|
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.
|
|
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.
|
|
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.
|
|
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` +
|
package/dist/cli/server.js
CHANGED
|
@@ -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.
|
|
142
|
+
<div class="footer">devx v1.2.2 • Terminal-Native AI Assistant</div>
|
|
143
143
|
</div>
|
|
144
144
|
</body>
|
|
145
145
|
</html>`;
|
package/package.json
CHANGED