dsh-task-board-model
其他 活跃维护

dsh-task-board-model

edelah/dsh-task-board-model

内置任务状态流转、看板分栏、优先级排序等核心逻辑,零外部依赖即可快速集成到各类任务管理、项目协作系统中,支持自定义字段扩展开箱即用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
BSD-3-Clause
开源协议
279 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:edelah/dsh-task-board-model
git clone https://github.com/edelah/dsh-task-board-model.git
git clone git@github.com:edelah/dsh-task-board-model.git
README.md main

dsh-task-board-model

A local fork of the DSH Web GUI task board with per-task model and reasoning-effort pins. It keeps the original kanban, persistence, scheduling, and real-session execution behavior while adding model selection to the new-task and task-detail forms.

What changed

  • Select a provider/model for each task, or leave it at the runtime default.
  • Select an adapter-provided reasoning effort when the chosen model advertises one.
  • Persist the selection in the existing dsh.taskBoard.v1 localStorage ledger.
  • Load choices from the live llm.models catalog, so provider/model names and effort choices are not hard-coded.
  • A pinned-model run creates a dedicated blank session, calls sessions.selectModel before permission and prompt, then runs the task. Unpinned tasks retain the original blank-session reuse path.
  • Existing workspace, agent-preset, permission, cron scheduling, archive, and execution-history behavior is retained.

Important DSH API caveat

The current DSH sessions.selectModel API also saves the accepted selection as the deployment default. The dedicated session prevents task executions from racing over a reused blank session, but it cannot make the selection globally neutral. This plugin therefore documents the behavior rather than pretending that a task pin is isolated from the deployment default. A future DSH API such as persistDefault: false would remove this caveat.

Build and test

cd /home/ubuntu/debug/dsh-task-board-model
pnpm install
pnpm run typecheck
pnpm test
pnpm run build

build emits the host bundle at lib/index.js, the lazy-CJS browser bundle at lib/client.js, and declaration files under lib/types/. The CSS is embedded into the browser bundle because DSH's client module loader expects a self-registering bundle.

Install into DSH Web

Build first, then link the package into the web profile:

cd /home/ubuntu/debug/dsh-task-board-model
pnpm install
pnpm run build
dsh plugin --profile web add link:/home/ubuntu/debug/dsh-task-board-model

The package patch automatically disables the original web-ui-task-board aggregate row (and a standalone ui-task-board row, if present), then inserts ui-task-board-model. Restart the existing dsh web process; a browser refresh alone cannot load a newly composed host/client plugin graph. Verify the current GUI at http://127.0.0.1:3080 after the restart.

To uninstall:

dsh plugin --profile web remove dsh-task-board-model

The task ledger remains in browser storage. Remove it explicitly with:

localStorage.removeItem('dsh.taskBoard.v1')

Layout and data flow

  • src/core/tasks.ts — task records and model-selection normalization.
  • src/core/store.ts — localStorage validation and migration-safe repair.
  • src/core/execution.ts — dedicated-session model application and prompt ordering.
  • src/core/controller.ts — live workspace, preset, and model option snapshots.
  • src/client/board/NewTaskModal.tsx and TaskDetail.tsx — model/effort selectors.
  • src/client/index.ts — DSH runtime/catalog adapters.
  • cordis.patch.yml — profile-bundle replacement row.

Verification performed

  • pnpm test — 8 regression tests pass, including runtime-locale selection.
  • pnpm run typecheck — passes.
  • pnpm run build — host and lazy browser bundles pass.
  • The built browser bundle was evaluated through a fake window.__ModuleLoader__.load registration and exported apply/inject successfully.
  • The package was temporarily linked with dsh plugin --profile web add link:...; dsh --profile web --dump-config showed the original aggregate row disabled and ui-task-board-model inserted. The temporary profile link was removed afterward.

License

BSD 3-Clause, inherited from the original task-board package.