Commit 6289dae
authored
release: v0.4.2 — background daemon, env autoload, cwd-agnostic config, Linear pickup fixes (#50)
* feat: detach openswarm start into a background daemon
- `openswarm start` now spawns a detached child and returns immediately
- adds `openswarm stop` (SIGTERM + PID cleanup) and `openswarm status`
- logs stream to ~/.config/openswarm/logs/openswarm.log
- PID file at ~/.config/openswarm/openswarm.pid, with stale-file recovery
- `--foreground` / `-F` preserves the previous attached behavior for debugging
- bump to 0.4.2
* feat: bundle @intrect/cxt and expose it to spawned workers
- add @intrect/cxt ^0.1.0 as a runtime dependency
- inject OpenSwarm's own node_modules/.bin into PATH for every worker/planner
CLI spawn via new buildWorkerEnv helper
- user's shell PATH and ~/.claude/* are untouched — cxt is only visible to
processes OpenSwarm itself starts
- worker prompt templates (en/ko) now list cxt as an available tool so agents
know they can run it for entity lookup, FTS search, and bad-smell scans
* feat: auto-load .env so the daemon picks up LINEAR_API_KEY/LINEAR_TEAM_ID
Before: `openswarm start` run from a non-interactive shell without the Linear
(or Discord) vars exported silently fell through config validation with
"Linear credentials not set — disabling Linear integration", so no issues
were ever picked up even though the keys sat in .env.
Now index.ts loads the first .env it finds (\$OPENSWARM_ENV → dir of
\$OPENSWARM_CONFIG → cwd → ~/.config/openswarm → ~/.openswarm), without
overwriting values already present in process.env. A shell export still wins.
Verified: daemon now logs `[Linear] Fetching issues for all:false` →
`[HB] ✓ Found 100 tasks from Linear`, vs the previous
`⏭ Linear not configured — skipping`.
* fix: pick up Linear issues across all configured teams + projects
Heartbeat was missing analogModeling issues even with the project enabled,
because the fetch + filter pipeline silently dropped them at three points:
- enabledProjects matched paths byte-equal, so macOS/Windows case-insensitive
filesystems treated AnalogModeling and analogModeling as different entries.
Fixed in autonomousRunner.isProjectEnabled.
- linear.getMyIssues issued a single { team: { in: [...] } } query capped at
first: 50 — one busy team monopolized the page and starved smaller teams.
Switched to an adaptive fetch: one wide query first, fall back to per-team
fan-out only when the first page saturates. PER_TEAM cap raised from 50
to 100.
- core/service.ts heartbeat fetcher was using full mode (3 resolver calls
per issue: project + comments + labels). At ~200 issues × 4 HB/hour that
was tripping Linear's 3500 req/hr ceiling. Switched to slim mode (1 call
per issue, project only). Comment-based task-state hydration is sacrificed
on this path.
- taskState.getTaskReadiness only reactivated decomposed tasks if Linear
state was Todo or In Progress. In Review now counts as actionable too,
so reviewer feedback on a decomposed task gets picked up rather than
ignored.1 parent 5c33d5f commit 6289dae
15 files changed
Lines changed: 567 additions & 39 deletions
File tree
- src
- adapters
- automation
- cli
- core
- linear
- locale/prompts
- support
- taskState
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
79 | 94 | | |
80 | 95 | | |
81 | 96 | | |
82 | | - | |
83 | | - | |
| 97 | + | |
84 | 98 | | |
85 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
86 | 102 | | |
87 | 103 | | |
88 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
170 | 218 | | |
171 | | - | |
172 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
173 | 235 | | |
174 | 236 | | |
175 | 237 | | |
| |||
0 commit comments