@vladimirven/openswe 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +27 -134
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,163 +4,56 @@ openswe is an AI coding agent (opencode, claude code) orchestration tool. It con
4
4
 
5
5
  ## Requirements
6
6
 
7
- - Bun (runtime)
8
- - Zig (required to build OpenTUI native dependency)
9
- - tmux (session management)
10
- - Git
11
- - GitHub CLI (`gh`) with an authenticated account
12
- - macOS or Linux (TUI dependencies assume a POSIX environment)
7
+ Before running openswe, ensure you have the following installed:
13
8
 
14
- ## Install
9
+ - **Git**: For version control operations.
10
+ - **GitHub CLI (`gh`)**: Must be installed and authenticated (`gh auth login`).
11
+ - **tmux**: Required for session management and isolation.
15
12
 
16
- ```bash
17
- git clone <repo-url>
18
- cd openswe
19
- bun install
20
- ```
21
-
22
- ## Installation as Command
23
-
24
- To run `openswe` from anywhere in your terminal:
25
-
26
- ### Option 1: Development Link (Recommended for contributors)
27
-
28
- This links the current project directory so changes are reflected immediately.
29
-
30
- ```bash
31
- cd openswe
32
- chmod +x src/index.ts
33
- bun link
34
- ```
35
-
36
- You can now run `openswe` from any directory.
37
-
38
- ### Option 2: Standalone Binary (Compiled)
39
-
40
- To create a single executable file that can be moved anywhere (even to machines without Bun installed):
41
-
42
- ```bash
43
- bun build ./src/index.ts --compile --outfile openswe
44
- mv openswe /usr/local/bin/
45
- ```
46
-
47
- ### Option 3: Manual Linking
48
-
49
- If you prefer to manually link the script:
50
-
51
- ```bash
52
- chmod +x src/index.ts
53
- ln -s $(pwd)/src/index.ts /usr/local/bin/openswe
54
- ```
55
-
56
- ### Option 4: Bun Global Install
13
+ ## Installation
57
14
 
58
- You can install it globally from the local folder:
15
+ ### macOS & Linux (Homebrew)
59
16
 
60
17
  ```bash
61
- bun add -g .
18
+ brew install vladimirven001/tap/openswe
62
19
  ```
63
20
 
64
- ## Quick Start
21
+ ### NPM / Bun (Global)
65
22
 
66
- ```bash
67
- bun run dev
68
- ```
69
-
70
- If you want to run directly without the dev script:
23
+ You can also install `openswe` globally using your preferred Node.js package manager:
71
24
 
72
25
  ```bash
73
- bun src/index.ts
74
- ```
75
-
76
- ## CLI Usage
77
-
78
- Run `openswe` with the following options:
26
+ # npm
27
+ npm install -g @vladimirven/openswe
79
28
 
80
- ```bash
81
- bun src/index.ts [options]
29
+ # bun
30
+ bun add -g @vladimirven/openswe
82
31
  ```
83
32
 
84
- Options:
85
-
86
- - `--repo`, `-r`: GitHub repo in `owner/repo` format (used in setup wizard)
87
- - `--setup`: Force re-run the setup wizard
88
- - `--status`: Show project status without launching the TUI
89
- - `--backend`: AI backend (`opencode` or `claude`)
90
- - `--max-sessions`: Maximum concurrent sessions
91
- - `--debug`: Enable debug logging
33
+ ## Usage
92
34
 
93
- Examples:
35
+ Start openswe in your project directory:
94
36
 
95
37
  ```bash
96
- bun src/index.ts --repo owner/repo
97
- bun src/index.ts --status
98
- bun src/index.ts --backend opencode --max-sessions 3
38
+ openswe
99
39
  ```
100
40
 
101
- ## Configuration
102
-
103
- OpenSWE supports configuration via CLI flags, environment variables, and a global config file. Precedence is:
104
-
105
- 1. CLI flags (highest)
106
- 2. Environment variables
107
- 3. Global config file: `~/.config/openswe/config.toml`
108
- 4. Built-in defaults (lowest)
109
-
110
- ### Environment Variables
111
-
112
- - `OPENSWE_BACKEND`: `opencode` or `claude`
113
- - `OPENSWE_MAX_SESSIONS`: positive integer
114
- - `OPENSWE_LOG_LEVEL`: `debug`, `info`, `warn`, or `error`
115
- - `OPENSWE_PR_AUTO_CREATE`: `true` or `false`
116
- - `OPENSWE_PR_DRAFT`: `true` or `false`
117
-
118
- ## Workspace Behavior
119
-
120
- OpenSWE detects the working directory and chooses a setup path:
121
-
122
- 1. `.openswe/` exists: load existing project
123
- 2. `.git/` exists: offer to adopt the repo
124
- 3. `--repo` flag: clone into current directory
125
- 4. Empty directory: run setup wizard
126
-
127
- Sessions run inside Git worktrees under `.worktrees/{issue-number}/` and project state lives in `.openswe/state.db`.
128
-
129
- ## Scripts
41
+ Or specify a repository directly:
130
42
 
131
43
  ```bash
132
- bun run dev # Run the CLI in development mode
133
- bun run build # Build to dist/
134
- bun test # Run all tests
135
- bunx tsc --noEmit # Type check (required after each iteration)
136
- ```
137
-
138
- ## Project Structure
139
-
140
- ```text
141
- src/
142
- ├── index.ts # CLI entry point with yargs
143
- ├── app.tsx # Main Solid.js TUI application
144
- ├── components/ # TUI components (SessionList, Preview, modals)
145
- ├── core/ # Session state machine, tmux manager, parser, queue
146
- ├── workspace/ # Detect/init workspace, path utilities
147
- ├── github/ # gh CLI wrapper, issues, PR creation
148
- ├── git/ # Clone, worktree operations
149
- ├── store/ # SQLite db, sessions/tasks/project CRUD
150
- ├── config/ # Types, global loader, defaults, env
151
- ├── prompts/ # SWE system prompt template
152
- └── utils/ # Logger, ID generation, formatting
44
+ openswe --repo owner/repo
153
45
  ```
154
46
 
155
- ## Build Output
47
+ ### Common Options
156
48
 
157
- The build outputs a Bun-targeted bundle in `dist/`:
49
+ - `--repo <owner/repo>`: Start on a specific GitHub repository.
50
+ - `--backend <name>`: Choose AI backend (`opencode` or `claude`).
51
+ - `--help`: Show all available options.
158
52
 
159
- ```bash
160
- bun run build
161
- ```
53
+ ## How It Works
162
54
 
163
- ## Troubleshooting
55
+ OpenSWE detects your current context to determine how to proceed:
164
56
 
165
- - If `@opentui/core` fails to install/build, verify Zig is installed and available in `PATH`.
166
- - If setup fails, confirm `gh auth status` shows an authenticated GitHub account.
57
+ 1. **Existing Project**: If run in a folder with `.openswe/`, it loads the existing project state.
58
+ 2. **Git Repo**: If run in a Git repository, it offers to adopt it.
59
+ 3. **New Setup**: If run in an empty folder, it launches a setup wizard.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vladimirven/openswe",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "AI coding agent (opencode, claude code) orchestration tool for tackling github issues",
5
5
  "homepage": "https://github.com/vladimirven001/openswe#readme",
6
6
  "bugs": {