opencode-supertask 0.1.35 → 0.1.37

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/CHANGELOG.md CHANGED
@@ -2,6 +2,29 @@
2
2
 
3
3
  All notable user-facing changes are recorded here. This project follows semantic versioning while it is in the `0.x` development series.
4
4
 
5
+ ## [0.1.37] - 2026-07-18
6
+
7
+ ### Fixed
8
+
9
+ - Gateway-managed OpenCode runs now set `PWD` to the task working directory, preventing OpenCode server errors when PM2's saved `PWD` differs from the task's `cwd`.
10
+
11
+ [0.1.37]: https://github.com/vbgate/opencode-supertask/compare/v0.1.36...v0.1.37
12
+
13
+ ## [0.1.36] - 2026-07-18
14
+
15
+ ### Added
16
+
17
+ - `supertask doctor --smoke` now queues a real Gateway-managed OpenCode task and verifies its exact response. Agent, model, project directory, and timeout are selectable; ordinary `doctor` remains free of model calls.
18
+ - Task, scheduled-task, and run details now open as labeled, human-readable summaries. Raw JSON remains available in a collapsed troubleshooting section and can still be copied.
19
+
20
+ ### Fixed
21
+
22
+ - PM2 install, upgrade, and stale-Gateway replacement now execute `opencode --version` using the exact target Gateway environment before stopping the old process. A broken saved `PATH`, executable, or cwd fails closed without disrupting the working Gateway.
23
+ - `supertask doctor` now diagnoses terminal OpenCode and PM2/Gateway OpenCode separately, preventing a successful interactive shell check from hiding a broken daemon environment.
24
+ - Execution logs now expand directly beneath the run that was clicked instead of appearing at the bottom of the page.
25
+
26
+ [0.1.36]: https://github.com/vbgate/opencode-supertask/compare/v0.1.35...v0.1.36
27
+
5
28
  ## [0.1.35] - 2026-07-18
6
29
 
7
30
  ### Added
package/README.md CHANGED
@@ -128,7 +128,9 @@ supertask uninstall # stop and remove from pm2
128
128
  supertask gateway # start Gateway in foreground
129
129
  supertask ui # open Web Dashboard in browser
130
130
  supertask config # show current config
131
- supertask doctor [--json] # end-to-end runtime diagnostics
131
+ supertask doctor [--json] # static end-to-end runtime diagnostics
132
+ supertask doctor --smoke [--smoke-agent build] [--smoke-model provider/model]
133
+ # queue one real Gateway/OpenCode verification task
132
134
  supertask upgrade # pin latest plugin version and replace Gateway
133
135
 
134
136
  # Task management
@@ -239,13 +241,13 @@ http://localhost:4680 — 4 pages:
239
241
 
240
242
  The responsive Dashboard supports Chinese and English plus system, light, and dark themes. Language is stored in a same-site cookie, while theme preference stays in browser local storage; both survive refreshes without changing Gateway configuration.
241
243
 
242
- Health endpoint: `GET http://localhost:4680/health` returns 200 only after Gateway startup completes and its internal loops remain active without an unrecovered loop failure. `supertask doctor` also checks OpenCode, SQLite, PM2 readiness, Dashboard health, log rotation, and on macOS the loaded LaunchAgent plus its recoverable PM2 dump. It requires the effective OpenCode plugin configuration to use one exact version, verifies that exact cache package, and compares it with the global CLI, actual PM2 Gateway entry, and ready-lock version; floating `@latest`/`@next` paths or any component version mismatch fail diagnostics.
244
+ Health endpoint: `GET http://localhost:4680/health` returns 200 only after Gateway startup completes and its internal loops remain active without an unrecovered loop failure. `supertask doctor` checks OpenCode separately in the invoking terminal and in PM2's saved Gateway environment, then checks SQLite, PM2 readiness, Dashboard health, log rotation, and on macOS the loaded LaunchAgent plus its recoverable PM2 dump. It requires the effective OpenCode plugin configuration to use one exact version, verifies that exact cache package, and compares it with the global CLI, actual PM2 Gateway entry, and ready-lock version; floating `@latest`/`@next` paths or any component version mismatch fail diagnostics. Add `--smoke` only when a real model call is desired; it queues a normal high-priority task and verifies the exact marker returned by OpenCode.
243
245
 
244
246
  | Page | Features |
245
247
  |------|----------|
246
- | Task Queue | Browse a project folder, load its runnable Agents/models, see running/queued/error counts, create or edit prioritized tasks, retry, cancel, guarded delete, and copy a validated `opencode --session …` command |
248
+ | Task Queue | Browse a project folder, load its runnable Agents/models, see running/queued/error counts, create or edit prioritized tasks, open human-readable details, retry, cancel, guarded delete, and copy a validated `opencode --session …` command |
247
249
  | Scheduled Tasks | Create and edit model, Agent, prompt, project directory, schedule, retries, and timeout with common duration presets; Run now always queues a task |
248
- | Execution Logs | Structured Agent output, errors, tools, exact reproducible command, raw OpenCode JSONL, and session tracking |
250
+ | Execution Logs | Structured Agent output, errors, tools, and exact reproducible command expanded directly beneath the selected run; raw OpenCode JSONL remains a secondary troubleshooting view |
249
251
  | System Status | Config editor with saved/active state, PM2-backed save-and-restart, concurrency monitor, and backup-first transactional database clear |
250
252
 
251
253
  ## Data
@@ -324,6 +326,7 @@ SUPERTASK_LANG=zh-CN supertask doctor
324
326
  ```bash
325
327
  # Gateway 与诊断
326
328
  supertask install | uninstall | gateway | ui | doctor
329
+ supertask doctor --smoke --smoke-agent build --smoke-model openai/gpt-5
327
330
 
328
331
  # 普通任务
329
332
  supertask add | edit | list | get | status | retry | cancel | delete