File tree Expand file tree Collapse file tree 2 files changed +0
-53
lines changed
src/hooks/non-interactive-env Expand file tree Collapse file tree 2 files changed +0
-53
lines changed Original file line number Diff line number Diff line change @@ -9,49 +9,3 @@ export const NON_INTERACTIVE_ENV: Record<string, string> = {
99 GCM_INTERACTIVE : "never" ,
1010 HOMEBREW_NO_AUTO_UPDATE : "1" ,
1111}
12-
13- export const TUI_PATTERNS = [
14- / \b (?: v i m ? | n v i m | n a n o | e m a c s | p i c o | j o e | m i c r o | h e l i x | h x ) \b / ,
15- / ^ \s * (?: p y t h o n | p y t h o n 3 | i p y t h o n | n o d e | b u n | d e n o | i r b | p r y | g h c i | e r l | i e x | l u a | R ) \s * $ / ,
16- / \b t o p \b (? ! \s + \| ) / ,
17- / \b h t o p \b / ,
18- / \b b t o p \b / ,
19- / \b l e s s \b (? ! \s + \| ) / ,
20- / \b m o r e \b (? ! \s + \| ) / ,
21- / \b m a n \b / ,
22- / \b w a t c h \b / ,
23- / \b n c u r s e s \b / ,
24- / \b d i a l o g \b / ,
25- / \b w h i p t a i l \b / ,
26- / \b m c \b / ,
27- / \b r a n g e r \b / ,
28- / \b n n n \b / ,
29- / \b l f \b / ,
30- / \b v i f m \b / ,
31- / \b g i t u i \b / ,
32- / \b l a z y g i t \b / ,
33- / \b l a z y d o c k e r \b / ,
34- / \b k 9 s \b / ,
35- / \b s e l e c t \b .* \b i n \b / ,
36- ]
37-
38- export const TUI_SUGGESTION = `
39- [non-interactive-env]
40- This command requires a full interactive terminal (TUI) which cannot be emulated.
41-
42- **Recommendation**: Use tmux for TUI commands.
43-
44- Example with interactive-terminal skill:
45- \`\`\`
46- # Start a tmux session
47- tmux new-session -d -s interactive
48-
49- # Send your command
50- tmux send-keys -t interactive 'your-command-here' Enter
51-
52- # Capture output
53- tmux capture-pane -t interactive -p
54- \`\`\`
55-
56- Or use the 'interactive-terminal' skill for easier workflow.
57- `
Original file line number Diff line number Diff line change 11export interface NonInteractiveEnvConfig {
22 disabled ?: boolean
33}
4-
5- export interface TUICheckResult {
6- isTUI : boolean
7- reason ?: string
8- command ?: string
9- matchedPattern ?: string
10- }
You can’t perform that action at this time.
0 commit comments