bosun 0.28.4 → 0.29.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/package.json +5 -2
- package/desktop/AGENTS.md +0 -62
- package/desktop/package-lock.json +0 -4193
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bosun",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"description": "AI-powered orchestrator supervisor — manages AI agent executors with failover, auto-restarts on failure, analyzes crashes with Codex SDK, creates PRs via Vibe-Kanban API, and sends Telegram notifications. Supports N executors with weighted distribution, multi-repo projects, and auto-setup.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache 2.0",
|
|
@@ -127,7 +127,10 @@
|
|
|
127
127
|
"conflict-resolver.mjs",
|
|
128
128
|
"copilot-shell.mjs",
|
|
129
129
|
"diff-stats.mjs",
|
|
130
|
-
"desktop/",
|
|
130
|
+
"desktop/main.mjs",
|
|
131
|
+
"desktop/launch.mjs",
|
|
132
|
+
"desktop/preload.mjs",
|
|
133
|
+
"desktop/package.json",
|
|
131
134
|
"desktop-shortcut.mjs",
|
|
132
135
|
"error-detector.mjs",
|
|
133
136
|
"fetch-runtime.mjs",
|
package/desktop/AGENTS.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Bosun Desktop — AGENTS Guide
|
|
2
|
-
|
|
3
|
-
## Module Overview
|
|
4
|
-
- Purpose: Native desktop shell for the Bosun control center, bundling the UI server and opening it in a desktop window.
|
|
5
|
-
- Use when: Updating desktop packaging, launch flow, auto-update, or native window behavior.
|
|
6
|
-
- Key entry points: `scripts/bosun/desktop/main.mjs:1`, `scripts/bosun/desktop/launch.mjs:1`, `scripts/bosun/ui-server.mjs:1`.
|
|
7
|
-
|
|
8
|
-
## Architecture
|
|
9
|
-
- The desktop app dynamically imports Bosun’s UI server and runs it locally, then loads the UI with a session token.
|
|
10
|
-
- Packaged builds copy the `scripts/bosun/` runtime into app resources and start from there.
|
|
11
|
-
- Entry points:
|
|
12
|
-
- `main.mjs` starts the UI server and creates the BrowserWindow.
|
|
13
|
-
- `launch.mjs` installs Electron (if needed) and runs the desktop app in dev.
|
|
14
|
-
|
|
15
|
-
```mermaid
|
|
16
|
-
flowchart TD
|
|
17
|
-
Desktop[desktop/main.mjs] --> UiServer[ui-server.mjs]
|
|
18
|
-
UiServer --> UI[ui/index.html]
|
|
19
|
-
Desktop --> Window[BrowserWindow]
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Core Concepts
|
|
23
|
-
- Local UI server: desktop app embeds the same UI server used by the Telegram Mini App.
|
|
24
|
-
- Session token: desktop loads `/?token=...` so the UI server sets a session cookie.
|
|
25
|
-
- Packaged runtime: `extraResources` copies the Bosun runtime into app resources.
|
|
26
|
-
|
|
27
|
-
## Usage Examples
|
|
28
|
-
|
|
29
|
-
### Launch in dev
|
|
30
|
-
```bash
|
|
31
|
-
node scripts/bosun/desktop/launch.mjs
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Build installers
|
|
35
|
-
```bash
|
|
36
|
-
cd scripts/bosun/desktop
|
|
37
|
-
npm install
|
|
38
|
-
npm run dist
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Implementation Patterns
|
|
42
|
-
- Always resolve the Bosun runtime root with `resolveBosunRoot()` when packaged.
|
|
43
|
-
- Use dynamic import to load `ui-server.mjs` so packaged resources are used.
|
|
44
|
-
- Keep auto-update behind `BOSUN_DESKTOP_AUTO_UPDATE=1` to avoid noisy failures in dev.
|
|
45
|
-
|
|
46
|
-
## Configuration
|
|
47
|
-
- Desktop packaging config lives in `scripts/bosun/desktop/package.json:20`.
|
|
48
|
-
- Auto-update is opt-in via `BOSUN_DESKTOP_AUTO_UPDATE=1`.
|
|
49
|
-
- Optional update feed override: `BOSUN_DESKTOP_UPDATE_URL`.
|
|
50
|
-
- To skip Electron auto-install in dev, set `BOSUN_DESKTOP_SKIP_INSTALL=1`.
|
|
51
|
-
|
|
52
|
-
## Testing
|
|
53
|
-
- Bosun tests: `cd scripts/bosun && npm test`
|
|
54
|
-
- Desktop smoke: `node scripts/bosun/desktop/launch.mjs`
|
|
55
|
-
|
|
56
|
-
## Troubleshooting
|
|
57
|
-
- Electron missing
|
|
58
|
-
- Cause: Desktop dependencies not installed.
|
|
59
|
-
- Fix: `npm -C scripts/bosun/desktop install` or set `BOSUN_DESKTOP_SKIP_INSTALL=1` to avoid auto-install.
|
|
60
|
-
- UI server fails to start
|
|
61
|
-
- Cause: Port conflict or missing runtime files.
|
|
62
|
-
- Fix: Ensure the packaged `bosun/` runtime exists and retry with a clean start.
|