opencode-session 0.1.0 → 0.1.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 +77 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# opencode-session
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/opencode-session)
|
|
4
|
+
[](https://opensource.org/licenses/MIT)
|
|
5
|
+
|
|
6
|
+
CLI tool to manage [OpenCode](https://opencode.ai) sessions.
|
|
7
|
+
|
|
8
|
+
## Demo
|
|
9
|
+
|
|
10
|
+
[](https://asciinema.org/a/gkCmlcfjw6CrwoM6)
|
|
11
|
+
|
|
12
|
+
## Prerequisites
|
|
13
|
+
|
|
14
|
+
- [Bun](https://bun.sh/) >= 1.0.0
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
bun install -g opencode-session
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Or run directly:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
bunx opencode-session
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
opencode-session [options]
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Options
|
|
35
|
+
|
|
36
|
+
| Flag | Description |
|
|
37
|
+
| --------------- | ------------------- |
|
|
38
|
+
| `-h, --help` | Show help message |
|
|
39
|
+
| `-v, --version` | Show version number |
|
|
40
|
+
|
|
41
|
+
## Keyboard Shortcuts
|
|
42
|
+
|
|
43
|
+
### Navigation
|
|
44
|
+
|
|
45
|
+
| Key | Action |
|
|
46
|
+
| --------- | ------------------------- |
|
|
47
|
+
| `j` / `↓` | Move down |
|
|
48
|
+
| `k` / `↑` | Move up |
|
|
49
|
+
| `Space` | Toggle selection |
|
|
50
|
+
| `a` | Select all / Deselect all |
|
|
51
|
+
| `Enter` | Confirm action |
|
|
52
|
+
|
|
53
|
+
### Actions
|
|
54
|
+
|
|
55
|
+
| Key | Action |
|
|
56
|
+
| --- | --------------------------------- |
|
|
57
|
+
| `d` | Delete selected item(s) |
|
|
58
|
+
| `D` | Delete ALL (in orphans/logs view) |
|
|
59
|
+
| `o` | View orphan sessions |
|
|
60
|
+
| `p` | View projects |
|
|
61
|
+
| `l` | View log files |
|
|
62
|
+
| `r` | Reload data |
|
|
63
|
+
|
|
64
|
+
### General
|
|
65
|
+
|
|
66
|
+
| Key | Action |
|
|
67
|
+
| ----------- | -------------- |
|
|
68
|
+
| `Esc` / `q` | Go back / Quit |
|
|
69
|
+
| `?` | Show help |
|
|
70
|
+
|
|
71
|
+
## Contributing
|
|
72
|
+
|
|
73
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
[MIT](LICENSE)
|