@m14i/sith 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 +123 -0
- package/assets/images/logo.png +0 -0
- package/dist/92.index.js +5137 -0
- package/dist/assets/images/logo.png +0 -0
- package/dist/commands/docker.d.ts +4 -0
- package/dist/commands/docker.d.ts.map +1 -0
- package/dist/config.d.ts +12 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +79 -0
- package/dist/package.json +1 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Sith
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="assets/images/logo.png" alt="Sith Logo" width="400">
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
> Turn your context to the dark side.
|
|
8
|
+
|
|
9
|
+
Standardize and share your OpenCode setup with a fully dockerized environment, designed for seamless collaboration and CI integration.
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
No installation required! Run with npx:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npx @m14i/sith
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Interactive Menu (Default)
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx @m14i/sith
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
This will present you with options to:
|
|
26
|
+
- 🔨 Build Docker image
|
|
27
|
+
|
|
28
|
+
### Quick Build
|
|
29
|
+
|
|
30
|
+
Build the Docker image directly:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npx @m14i/sith docker --build
|
|
34
|
+
# or
|
|
35
|
+
npx @m14i/sith --build
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Interactive Shell
|
|
39
|
+
|
|
40
|
+
Run an interactive shell in the Docker container:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx @m14i/sith shell
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This will:
|
|
47
|
+
- Mount current directory to `/workspace`
|
|
48
|
+
- Load full Nix environment with all tools
|
|
49
|
+
- Make OpenCode CLI available
|
|
50
|
+
- Pass your `GITHUB_TOKEN` environment variable
|
|
51
|
+
|
|
52
|
+
## Commands
|
|
53
|
+
|
|
54
|
+
### `npx @m14i/sith` (default)
|
|
55
|
+
Launches the interactive menu.
|
|
56
|
+
|
|
57
|
+
### `npx @m14i/sith docker --build`
|
|
58
|
+
Build the Docker image.
|
|
59
|
+
|
|
60
|
+
### `npx @m14i/sith shell`
|
|
61
|
+
Run interactive shell in the Docker container.
|
|
62
|
+
|
|
63
|
+
## Features
|
|
64
|
+
|
|
65
|
+
- **Interactive Menu**: Navigate with arrow keys, select with Enter
|
|
66
|
+
- **Direct Commands**: Build or shell access without menu
|
|
67
|
+
- **Dockerized Environment**: Consistent setup across machines
|
|
68
|
+
- **Nix Integration**: Full development environment with all tools
|
|
69
|
+
- **CI-Ready**: Standardize builds across local and CI pipelines
|
|
70
|
+
|
|
71
|
+
## Development
|
|
72
|
+
|
|
73
|
+
For contributors working on the CLI:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Install dependencies
|
|
77
|
+
pnpm install
|
|
78
|
+
|
|
79
|
+
# Run in development mode (no build)
|
|
80
|
+
pnpm dev
|
|
81
|
+
|
|
82
|
+
# Build and test
|
|
83
|
+
pnpm dev:build # Build and run CLI
|
|
84
|
+
pnpm dev:shell # Build and launch shell
|
|
85
|
+
|
|
86
|
+
# Type checking
|
|
87
|
+
pnpm typecheck
|
|
88
|
+
|
|
89
|
+
# Clean build artifacts
|
|
90
|
+
pnpm clean
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Publishing
|
|
94
|
+
|
|
95
|
+
Automated releases using semantic-release and conventional commits.
|
|
96
|
+
|
|
97
|
+
### For Maintainers
|
|
98
|
+
|
|
99
|
+
**Commit Format:**
|
|
100
|
+
- `feat:` - New feature (triggers minor version bump)
|
|
101
|
+
- `fix:` - Bug fix (triggers patch version bump)
|
|
102
|
+
- `BREAKING CHANGE:` - Breaking change (triggers major version bump)
|
|
103
|
+
- `chore:`, `docs:`, `style:` - No release
|
|
104
|
+
|
|
105
|
+
**Release Process:**
|
|
106
|
+
1. Commit changes following conventional commit format
|
|
107
|
+
2. Push to `main` branch
|
|
108
|
+
3. GitHub Action automatically:
|
|
109
|
+
- Analyzes commits and determines version bump
|
|
110
|
+
- Generates CHANGELOG.md
|
|
111
|
+
- Creates GitHub release
|
|
112
|
+
- Publishes to npm
|
|
113
|
+
|
|
114
|
+
**Example:**
|
|
115
|
+
```bash
|
|
116
|
+
git commit -m "feat: add new interactive menu option"
|
|
117
|
+
git push origin main
|
|
118
|
+
# Automatic release triggered!
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**Requirements:**
|
|
122
|
+
- `NPM_TOKEN` secret configured in GitHub repository settings
|
|
123
|
+
- Commits must follow conventional commit format
|
|
Binary file
|