unified-tvdevelopment-cli 1.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fernando Augusto Haeser
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,253 @@
1
+ # TV Dev Manager
2
+
3
+ > Universal TUI for Smart TV development — LG webOS · Samsung Tizen · Amazon Fire TV · Android TV
4
+
5
+ A single terminal interface to manage devices, build, package, deploy, inspect logs, transfer files, and run shell commands across all major Smart TV platforms.
6
+
7
+ ---
8
+
9
+ ## Requirements
10
+
11
+ - **Node.js** ≥ 18
12
+ - Platform CLI tools installed and on `PATH`:
13
+
14
+ | Platform | Required Tools |
15
+ |---|---|
16
+ | LG webOS | [`ares-cli`](https://webostv.developer.lge.com/develop/tools/cli-introduction) |
17
+ | Samsung Tizen | [`tizen`](https://developer.samsung.com/smarttv/develop/getting-started/setting-up-sdk/installing-tv-sdk.html) + `sdb` |
18
+ | Amazon Fire TV | `adb` + [`inputd-cli`](https://developer.amazon.com/docs/fire-tv/remote-input.html) |
19
+ | Android TV | `adb` + `gradle` / Android SDK |
20
+
21
+ ---
22
+
23
+ ## Install
24
+
25
+ **One-liner (macOS / Linux):**
26
+
27
+ ```bash
28
+ curl -fsSL https://raw.githubusercontent.com/FernandoHaeser/unified-tvdevelopment-cli/main/install.sh | bash
29
+ ```
30
+
31
+ **Beta channel:**
32
+
33
+ ```bash
34
+ curl -fsSL https://raw.githubusercontent.com/FernandoHaeser/unified-tvdevelopment-cli/main/install.sh | bash -s -- --beta
35
+ ```
36
+
37
+ **Windows (PowerShell):**
38
+
39
+ ```powershell
40
+ irm https://raw.githubusercontent.com/FernandoHaeser/unified-tvdevelopment-cli/main/install.ps1 | iex
41
+ ```
42
+
43
+ **Via npm:**
44
+
45
+ ```bash
46
+ npm install -g unified-tvdevelopment-cli
47
+ ```
48
+
49
+ ---
50
+
51
+ ## Usage
52
+
53
+ ```bash
54
+ tvdev
55
+ ```
56
+
57
+ On launch, select your target platform. The TUI opens with a sidebar listing all available screens for that platform.
58
+
59
+ ---
60
+
61
+ ## Navigation
62
+
63
+ | Key | Action |
64
+ |---|---|
65
+ | `↑` / `↓` | Move cursor |
66
+ | `Enter` | Select / confirm |
67
+ | `Esc` | Back / return to sidebar |
68
+ | `p` | Switch platform (from sidebar) |
69
+ | `q` | Quit |
70
+
71
+ > All screens are keyboard-driven. No mouse required.
72
+
73
+ ---
74
+
75
+ ## Screens
76
+
77
+ ### Dashboard
78
+ Overview of connected devices and installed apps. Quick-action shortcuts `[1]`–`[6]` jump directly to any screen, or use `↑↓` + `Enter`.
79
+
80
+ ---
81
+
82
+ ### Devices
83
+
84
+ Manage TV devices / emulator connections.
85
+
86
+ | Platform | Actions |
87
+ |---|---|
88
+ | **webOS** | Add device (name, host, SSH port, username, password) · Remove · Set default · Refresh |
89
+ | **Tizen** | Connect via SDB (host, port) · Disconnect · Refresh |
90
+ | **Fire TV** | Connect via ADB (host, port) · Disconnect · Set active · Refresh |
91
+ | **Android TV** | Connect via ADB (host, port) · Disconnect · Set active · Refresh |
92
+
93
+ Keys: `[a]` add/connect · `[d]` remove/disconnect · `[s]` set default (webOS) · `[r]` refresh · `Enter` set active (ADB platforms)
94
+
95
+ ---
96
+
97
+ ### Generate App _(webOS, Tizen)_
98
+
99
+ Scaffold a new app from official templates.
100
+
101
+ 1. Pick a template (`↑↓` + `Enter`)
102
+ 2. Fill in the form fields (`Tab` / `Enter` to advance, `Esc` to go back)
103
+ 3. App is generated in the specified output directory
104
+
105
+ ---
106
+
107
+ ### Package & Deploy / Install APK
108
+
109
+ Build, package, and install an app to a connected device.
110
+
111
+ **webOS / Tizen:** Enter source directory → auto-packages to `.ipk` / `.wgt` → confirm install → optionally launch.
112
+
113
+ **Fire TV / Android TV:** Enter APK path → confirm install → optionally launch.
114
+
115
+ Keys: `Enter` advance · `[y]` / `[n]` confirm prompts · `[r]` restart
116
+
117
+ ---
118
+
119
+ ### Build _(Android TV, Tizen)_
120
+
121
+ Run Gradle or Tizen build tasks directly from the TUI.
122
+
123
+ | Platform | Tasks |
124
+ |---|---|
125
+ | **Android TV** | Debug Build · Release Build · Run Tests · Clean |
126
+ | **Tizen** | Build Web App · Package → .wgt |
127
+
128
+ Select task → enter project directory → `Enter` to build.
129
+
130
+ ---
131
+
132
+ ### App Manager
133
+
134
+ List, launch, stop, and uninstall apps on the connected device.
135
+
136
+ | Symbol | Meaning |
137
+ |---|---|
138
+ | `▶ RUN` | App is running |
139
+ | `■ STOP` | App is stopped |
140
+
141
+ Keys: `↑↓` navigate · `Enter` / `[l]` launch or stop · `[d]` uninstall · `[r]` refresh
142
+
143
+ ---
144
+
145
+ ### Log Viewer
146
+
147
+ Live log stream from the connected device (tail-follows output).
148
+
149
+ Keys: `[p]` pause/resume · `[c]` clear · `[r]` restart stream
150
+
151
+ Color-coded output: errors in red, warnings in yellow.
152
+
153
+ ---
154
+
155
+ ### File Transfer
156
+
157
+ Push files to or pull files from the device.
158
+
159
+ 1. `[p]` push (host → device) or `[l]` pull (device → host)
160
+ 2. Enter source path → `Enter`
161
+ 3. Enter destination path → `Enter` to transfer
162
+
163
+ ---
164
+
165
+ ### Shell
166
+
167
+ Run arbitrary shell commands on the connected device.
168
+
169
+ - Type command and press `Enter`
170
+ - `↑` / `↓` navigate command history
171
+ - `Ctrl+C` clear output
172
+
173
+ ---
174
+
175
+ ### Inspector _(webOS)_
176
+
177
+ Launch `ares-inspect` for a selected app. Opens the Web Inspector URL for debugging in a browser.
178
+
179
+ For other platforms, shows step-by-step debug setup instructions (Chrome DevTools, ADB forwarding, etc.).
180
+
181
+ ---
182
+
183
+ ### Input Simulator _(Amazon Fire TV)_
184
+
185
+ Send remote control key events to a Fire TV device via `inputd-cli`.
186
+
187
+ - `↑↓` select key group · `→` / `Enter` enter key list
188
+ - `↑↓` select key · `Enter` send
189
+ - `←` / `Esc` back to groups
190
+
191
+ Groups: Navigation · System · Media · Volume · Numbers
192
+
193
+ ---
194
+
195
+ ### Emulator _(Tizen, Android TV)_
196
+
197
+ List and launch AVDs / Tizen emulators.
198
+
199
+ Keys: `↑↓` select · `Enter` launch · `[r]` refresh
200
+
201
+ ---
202
+
203
+ ## Platform Screen Matrix
204
+
205
+ | Screen | webOS | Tizen | Fire TV | Android TV |
206
+ |---|:---:|:---:|:---:|:---:|
207
+ | Dashboard | ✓ | ✓ | ✓ | ✓ |
208
+ | Devices | ✓ | ✓ | ✓ | ✓ |
209
+ | Generate App | ✓ | ✓ | | |
210
+ | Package & Deploy | ✓ | ✓ | ✓ | ✓ |
211
+ | Build | | ✓ | | ✓ |
212
+ | App Manager | ✓ | ✓ | ✓ | ✓ |
213
+ | Log Viewer | ✓ | ✓ | ✓ | ✓ |
214
+ | File Transfer | ✓ | ✓ | ✓ | ✓ |
215
+ | Shell | ✓ | ✓ | ✓ | ✓ |
216
+ | Web Inspector | ✓ | | ✓* | ✓* |
217
+ | Input Simulator | | | ✓ | |
218
+ | Emulator | | ✓ | | ✓ |
219
+
220
+ _* Inspector screen shows platform debug setup guide_
221
+
222
+ ---
223
+
224
+ ## Development
225
+
226
+ ```bash
227
+ # Clone
228
+ git clone https://github.com/FernandoHaeser/unified-tvdevelopment-cli
229
+ cd unified-tvdevelopment-cli
230
+
231
+ # Install dependencies
232
+ npm install
233
+
234
+ # Build and run
235
+ npm run dev
236
+
237
+ # Build only
238
+ npm run build
239
+
240
+ # Tests
241
+ npm test
242
+ npm run test:unit
243
+ npm run test:integration
244
+ npm run test:coverage
245
+ ```
246
+
247
+ Built with [Ink](https://github.com/vadimdemedes/ink) (React for CLIs) + [esbuild](https://esbuild.github.io/).
248
+
249
+ ---
250
+
251
+ ## License
252
+
253
+ MIT