codeharbor 0.1.9 → 0.1.11

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/.env.example CHANGED
@@ -17,6 +17,11 @@ CODEX_EXTRA_ARGS=
17
17
  # Optional JSON object for additional environment variables passed to codex child process.
18
18
  CODEX_EXTRA_ENV_JSON=
19
19
 
20
+ # Multi-agent workflow (Phase B, opt-in).
21
+ AGENT_WORKFLOW_ENABLED=false
22
+ # Auto-repair rounds after reviewer rejects output.
23
+ AGENT_WORKFLOW_AUTO_REPAIR_MAX_ROUNDS=1
24
+
20
25
  # SQLite state database path.
21
26
  STATE_DB_PATH=data/state.db
22
27
  # Legacy JSON path for one-time migration import.
package/README.md CHANGED
@@ -67,27 +67,33 @@ curl -fsSL https://raw.githubusercontent.com/biglone/CodeHarbor/main/scripts/ins
67
67
  Install first, then enable systemd service with one command:
68
68
 
69
69
  ```bash
70
- sudo "$(command -v codeharbor)" service install
70
+ codeharbor service install
71
71
  ```
72
72
 
73
73
  Install + enable main and admin services:
74
74
 
75
75
  ```bash
76
- sudo "$(command -v codeharbor)" service install --with-admin
76
+ codeharbor service install --with-admin
77
77
  ```
78
78
 
79
79
  Restart installed service(s):
80
80
 
81
81
  ```bash
82
- sudo "$(command -v codeharbor)" service restart --with-admin
82
+ codeharbor service restart --with-admin
83
83
  ```
84
84
 
85
85
  Remove installed services:
86
86
 
87
87
  ```bash
88
- sudo "$(command -v codeharbor)" service uninstall --with-admin
88
+ codeharbor service uninstall --with-admin
89
89
  ```
90
90
 
91
+ Notes:
92
+
93
+ - Service commands auto-elevate with `sudo` when root privileges are required.
94
+ - If your environment blocks interactive `sudo`, use explicit fallback:
95
+ - `sudo <node-bin> <codeharbor-cli-script> service ...`
96
+
91
97
  Enable Admin service at install time:
92
98
 
93
99
  ```bash
@@ -347,9 +353,10 @@ Note: `PUT /api/admin/config/global` writes to `.env` and marks changes as resta
347
353
  1. Start server: `codeharbor admin serve`.
348
354
  2. Open `/settings/global`, set `Admin Token` (if enabled), then click `Save Auth`.
349
355
  3. Adjust global fields and click `Save Global Config` (UI shows restart-required warning).
350
- 4. Open `/settings/rooms`, fill `Room ID + Workdir`, then `Save Room`.
351
- 5. Open `/health` to run connectivity checks (`codex` + Matrix).
352
- 6. Open `/audit` to verify config revisions (actor/summary/payload).
356
+ 4. Use `Restart Main Service` or `Restart Main + Admin` buttons for one-click restart from Admin UI (requires root-capable service context).
357
+ 5. Open `/settings/rooms`, fill `Room ID + Workdir`, then `Save Room`.
358
+ 6. Open `/health` to run connectivity checks (`codex` + Matrix).
359
+ 7. Open `/audit` to verify config revisions (actor/summary/payload).
353
360
 
354
361
  ## Standalone Admin Deployment
355
362
 
@@ -391,6 +398,17 @@ If any check fails, it prints actionable fix commands (for example `codeharbor i
391
398
  - `/status` show session + limiter + metrics + runtime worker status
392
399
  - `/reset` clear bound Codex session and keep conversation active
393
400
  - `/stop` cancel in-flight execution (if running) and reset session context
401
+ - `/agents status` show multi-agent workflow status for current session (when enabled)
402
+ - `/agents run <objective>` run Planner -> Executor -> Reviewer workflow (when enabled)
403
+
404
+ ### Multi-Agent Workflow (Phase B, Opt-In)
405
+
406
+ - `AGENT_WORKFLOW_ENABLED=true`
407
+ - enable `/agents` workflow commands
408
+ - `AGENT_WORKFLOW_AUTO_REPAIR_MAX_ROUNDS`
409
+ - reviewer reject loop upper bound (default `1`)
410
+
411
+ Default is disabled to keep legacy behavior unchanged.
394
412
 
395
413
  ## CLI Compatibility Mode
396
414