opencode-supertask 0.1.34 → 0.1.36
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 +30 -0
- package/README.md +16 -9
- package/dist/cli/index.js +854 -78
- package/dist/cli/index.js.map +1 -1
- package/dist/gateway/index.js +684 -57
- package/dist/gateway/index.js.map +1 -1
- package/dist/plugin/supertask.js +30 -0
- package/dist/plugin/supertask.js.map +1 -1
- package/dist/web/index.d.ts +19 -1
- package/dist/web/index.js +695 -89
- package/dist/web/index.js.map +1 -1
- package/dist/worker/index.d.ts +3 -1
- package/dist/worker/index.js +18 -3
- package/dist/worker/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
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.36] - 2026-07-18
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `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.
|
|
10
|
+
- 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.
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- 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.
|
|
15
|
+
- `supertask doctor` now diagnoses terminal OpenCode and PM2/Gateway OpenCode separately, preventing a successful interactive shell check from hiding a broken daemon environment.
|
|
16
|
+
- Execution logs now expand directly beneath the run that was clicked instead of appearing at the bottom of the page.
|
|
17
|
+
|
|
18
|
+
[0.1.36]: https://github.com/vbgate/opencode-supertask/compare/v0.1.35...v0.1.36
|
|
19
|
+
|
|
20
|
+
## [0.1.35] - 2026-07-18
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Task and scheduled-task forms now include a server-side project folder browser. After a project is selected, the Dashboard runs that project's local `opencode agent list` and `opencode models` commands and exposes only directly runnable Agents plus the models actually available on the machine.
|
|
25
|
+
- Retry delays, run timeouts, and recurring intervals now use common human-readable presets. Number-and-unit input is shown only after choosing “Custom”; one-time schedules continue to use a local date/time picker.
|
|
26
|
+
- New Worker runs record the exact executable, argument array, and working directory. Execution Logs present the reproducible shell command, model text, failure diagnostics, and tool activity while retaining the complete raw OpenCode JSONL.
|
|
27
|
+
|
|
28
|
+
### Fixed
|
|
29
|
+
|
|
30
|
+
- The model selector now explains that “default” follows the selected Agent/OpenCode configuration and does not pass `-m`, and splits large model catalogs into provider and model selectors.
|
|
31
|
+
- OpenCode subagents are no longer offered as direct `opencode run --agent` choices, avoiding silent fallback to a default primary Agent. Existing task values remain editable for compatibility.
|
|
32
|
+
|
|
33
|
+
[0.1.35]: https://github.com/vbgate/opencode-supertask/compare/v0.1.34...v0.1.35
|
|
34
|
+
|
|
5
35
|
## [0.1.34] - 2026-07-18
|
|
6
36
|
|
|
7
37
|
### Fixed
|
package/README.md
CHANGED
|
@@ -90,7 +90,9 @@ Or open the Web Dashboard:
|
|
|
90
90
|
supertask ui # Opens http://localhost:4680 in browser
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
The Task Queue page groups work by project directory and can create ordinary queued tasks with a model, prompt, priority, batch, retries, and timeout.
|
|
93
|
+
The Task Queue page groups work by project directory and can create ordinary queued tasks with a model, prompt, priority, batch, retries, and timeout. Choose the project with the built-in folder browser; the form then reads that directory's real `opencode agent list` and `opencode models` results. Models are grouped by provider, while only Agents that OpenCode marks as directly runnable are offered. A full worker pool does not reject a new task—it remains pending in SQLite.
|
|
94
|
+
|
|
95
|
+
Retry, timeout, and recurring-interval fields offer common presets first. Number-and-unit controls appear only under **Custom**, while one-time schedules use a local date/time picker. “Use the Agent / OpenCode default model” means SuperTask does not pass `-m`.
|
|
94
96
|
|
|
95
97
|
## SuperTask vs cron, PM2, and shell scripts
|
|
96
98
|
|
|
@@ -126,7 +128,9 @@ supertask uninstall # stop and remove from pm2
|
|
|
126
128
|
supertask gateway # start Gateway in foreground
|
|
127
129
|
supertask ui # open Web Dashboard in browser
|
|
128
130
|
supertask config # show current config
|
|
129
|
-
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
|
|
130
134
|
supertask upgrade # pin latest plugin version and replace Gateway
|
|
131
135
|
|
|
132
136
|
# Task management
|
|
@@ -237,13 +241,13 @@ http://localhost:4680 — 4 pages:
|
|
|
237
241
|
|
|
238
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.
|
|
239
243
|
|
|
240
|
-
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`
|
|
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.
|
|
241
245
|
|
|
242
246
|
| Page | Features |
|
|
243
247
|
|------|----------|
|
|
244
|
-
| Task Queue |
|
|
245
|
-
| Scheduled Tasks | Create and edit model,
|
|
246
|
-
| Execution Logs |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
247
251
|
| System Status | Config editor with saved/active state, PM2-backed save-and-restart, concurrency monitor, and backup-first transactional database clear |
|
|
248
252
|
|
|
249
253
|
## Data
|
|
@@ -303,7 +307,9 @@ supertask gateway # 前台运行:不需要 pm2
|
|
|
303
307
|
supertask ui # 打开 http://127.0.0.1:4680
|
|
304
308
|
```
|
|
305
309
|
|
|
306
|
-
“任务队列”页可按项目目录查看、创建和编辑普通任务,设置 Agent、模型、提示词、优先级、批次、重试和超时;“定时任务”页可创建和编辑 cron
|
|
310
|
+
“任务队列”页可按项目目录查看、创建和编辑普通任务,设置 Agent、模型、提示词、优先级、批次、重试和超时;“定时任务”页可创建和编辑 cron、延迟执行与循环任务。项目目录可直接用文件夹选择器浏览;选定后,页面会在该目录执行本机 `opencode agent list` 和 `opencode models`,只显示可直接运行的 Agent,并按 Provider 分组模型。并发已满时新任务仍会成功入队并等待,不会因当下没有空位而拒绝创建。
|
|
311
|
+
|
|
312
|
+
重试等待、单次超时和循环间隔默认是“30 秒”、“15 分钟”、“每 1 小时”这类直接选项;只有选择“自定义”才显示数字和单位。一次性任务使用本地日期时间选择器。“跟随 Agent / OpenCode 默认模型”表示不传 `-m`。
|
|
307
313
|
|
|
308
314
|
### CLI 语言与命令速查
|
|
309
315
|
|
|
@@ -320,6 +326,7 @@ SUPERTASK_LANG=zh-CN supertask doctor
|
|
|
320
326
|
```bash
|
|
321
327
|
# Gateway 与诊断
|
|
322
328
|
supertask install | uninstall | gateway | ui | doctor
|
|
329
|
+
supertask doctor --smoke --smoke-agent build --smoke-model openai/gpt-5
|
|
323
330
|
|
|
324
331
|
# 普通任务
|
|
325
332
|
supertask add | edit | list | get | status | retry | cancel | delete
|
|
@@ -390,8 +397,8 @@ SuperTask 的定时器会生成普通的持久队列任务,因此定时任务
|
|
|
390
397
|
- **进程守护** — 可选 pm2 崩溃恢复;PM2 kill timeout 不低于 Worker drain 宽限期加 15 秒,`stop/delete` 至少再等待 5 秒并在返回前持续持有可崩溃释放的 SQLite 生命周期锁,macOS 监督器不会击穿 PM2 的 `errored` 熔断;显式 `supertask install` 同时安装/配置有限保留的日志轮转,插件加载不会安装全局依赖
|
|
391
398
|
- **版本感知重启** — 自动恢复继续使用原 PM2 运行环境;显式安装/升级会刷新 OpenCode/Provider 执行环境,同时固定原 PM2、Bun、数据库与配置身份。旧环境无法执行 PM2 时会在删除前拒绝操作,新环境启动失败时完整回滚旧环境
|
|
392
399
|
- **外部升级边界** — Gateway 管理的 OpenCode 任务不能调用 `supertask_upgrade`;升级必须从外部 CLI 或非队列交互会话发起,避免任务终止承载自己的 Gateway
|
|
393
|
-
- **定时任务** — cron / delayed / recurring
|
|
394
|
-
- **Web 控制台** —
|
|
400
|
+
- **定时任务** — cron / delayed / recurring,常用间隔直接选择,只在自定义时输入数字和单位;`maxInstances` 限制自动调度,手动“立即运行一次”始终入队并在全局并发已满时等待
|
|
401
|
+
- **Web 控制台** — 按项目目录显示运行/排队/异常数量,可浏览文件夹并动态读取该项目本机 OpenCode 可运行 Agent/模型,可创建和编辑带提示词、优先级、批次、重试与超时的普通任务和定时任务;执行记录分层展示真实命令、Agent 输出、错误、工具和原始 JSONL;支持配置重启、安全清库、中英文、深浅主题和移动端
|
|
395
402
|
- **Session 追踪** — 自动从 opencode run 输出中捕获 session ID;任务页和执行记录页可复制经过校验的 `opencode --session …` 命令继续会话
|
|
396
403
|
- **安全删除** — 活跃执行必须先取消并收敛;仍被可执行任务依赖的前置任务也不会被误删
|
|
397
404
|
- **安全重试** — 仅在依赖仍存在、同项目且可恢复时重置任务,历史清理并发时不会制造悬空 `pending`
|