@seflless/ghosttown 1.3.0 → 1.3.1
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 +29 -0
- package/bin/ascii.js +1 -2
- package/bin/ghosttown.js +5 -842
- package/bin/ght.js +13 -0
- package/bin/gt.js +13 -0
- package/package.json +7 -2
- package/scripts/build-wasm.sh +56 -0
- package/scripts/cli-publish.js +228 -0
- package/scripts/postinstall.js +113 -0
- package/src/cli.js +944 -0
package/README.md
CHANGED
|
@@ -4,6 +4,35 @@ Ghost town let's you continue terminal sessions from other devices using a brows
|
|
|
4
4
|
|
|
5
5
|
We're building this to make it easy to build web apps using coding agents, while on the go.
|
|
6
6
|
|
|
7
|
+
## CLI Commands
|
|
8
|
+
|
|
9
|
+
After installing ghosttown globally (`npm install -g @seflless/ghosttown`), you can use any of these commands:
|
|
10
|
+
|
|
11
|
+
| Command | Description |
|
|
12
|
+
| ----------- | --------------------------- |
|
|
13
|
+
| `ghosttown` | Primary command (canonical) |
|
|
14
|
+
| `gt` | Short alias |
|
|
15
|
+
| `ght` | Alternative alias |
|
|
16
|
+
|
|
17
|
+
All three commands behave identically.
|
|
18
|
+
|
|
19
|
+
**Note:** The `gt` alias may conflict with other tools (e.g., `go-task/gt`). If you experience conflicts, use `ght` or the full `ghosttown` command instead.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
# Start the web terminal server
|
|
23
|
+
ghosttown
|
|
24
|
+
|
|
25
|
+
# Start on a specific port
|
|
26
|
+
ghosttown -p 3000
|
|
27
|
+
|
|
28
|
+
# Run a command in a new tmux session
|
|
29
|
+
ghosttown vim
|
|
30
|
+
ghosttown "npm run dev"
|
|
31
|
+
|
|
32
|
+
# Show help
|
|
33
|
+
ghosttown --help
|
|
34
|
+
```
|
|
35
|
+
|
|
7
36
|
# Credits
|
|
8
37
|
|
|
9
38
|
- [Ghostty](https://ghostty.org/)
|
package/bin/ascii.js
CHANGED
|
@@ -142,8 +142,7 @@ export async function asciiArt(imagePath, options = {}) {
|
|
|
142
142
|
|
|
143
143
|
// If running directly, execute the function
|
|
144
144
|
const isMainModule =
|
|
145
|
-
import.meta.url === `file://${process.argv[1]}` ||
|
|
146
|
-
process.argv[1]?.endsWith('/ascii.js');
|
|
145
|
+
import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith('/ascii.js');
|
|
147
146
|
|
|
148
147
|
if (isMainModule) {
|
|
149
148
|
const imagePath = process.argv[2] || 'demo/images/ghosts.png';
|