stage-switch
其他 活跃维护

stage-switch

ai4rpg/stage-switch

将长任务拆分为独立阶段,支持阶段间无缝切换与状态保持,每个阶段可单独调试与协作,让复杂流水线更易编排和维护。

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

stage-switch

English | 中文

This workspace provides stage collaboration for the DeepSeek Harness: it splits a long-running task into named stages, each with its own instruction and optional display alias. The model requests switches through the goto_stage tool — reviewed by the user, with a handoff document and archived history on a full transition — and the user can switch directly with /stage. Every switch is a durable session-log record, so resumed, forked, or compacted sessions recover their stage.

This repository is one npm workspace publishing two packages:

Package Directory What it is
@ai4rpg/dsh-stage-switch stage-switch/ The stage-collaboration plugin: logged per-agent stage state, the goto_stage tool with its user-reviewed transition, the handoff document, and the /stage command.
@ai4rpg/dsh-ui-sidebar-stage ui-sidebar-stage/ The right-Sidebar stage tab of the Web client: an Atlas-style current-stage hero, stage journey, per-stage counters, and a command palette (display aliases shown where configured), plus a live tab title and a composer stage pill. It prefers the Host stage projection's wire view once the session has a stage record, and otherwise folds the session's durable stage records client-side.

They publish separately because they mount on different planes of the harness — the plugin on a preset-scoped row, the tab on a host-plane row — but share one history and one lockfile. Each package keeps its own README (installation, configuration, deployment) and npm identity; the plugin's decision record is stage-switch/docs/DESIGN.md.

Development

npm install          # workspace install (hoisted: single @deepseek-ai/* copies)
npm run typecheck    # both packages
npm test             # both packages
npm run build        # both packages

The root scripts aggregate the per-package scripts; run one package by workspace name, e.g. npm test -w stage-switch. The sidebar package has one opt-in extra, npm run test:integration -w ui-sidebar-stage, which needs a local dsh source checkout — see its README.

License

MIT. Each package carries its own LICENSE file.