Skip to content

Releases: CJ-SH/dsh-plugin-trellis-statusline

dsh-plugin-trellis-statusline v0.3.0

Choose a tag to compare

@CJ-SH CJ-SH released this 21 Oct 01:40

v0.3.0 makes the workspace-activity pill actionable: when a session has no Trellis task of its own and the pill reads 工作区 N 个活动任务, clicking it now opens the list of that workspace's tasks.

What's new

  • Clickable workspace list. Every row carries the priority, title and state of one task the count covers; the dropdown is flat (no parent/subtask role, nothing highlighted as "current"), because a workspace listing is not one session's task.
  • One walk, two answers. The Host builds the count and the list in the same traversal, so activeTasks and the number of rows cannot disagree.
  • Backward compatible. A Host that predates the list (a count-only reply) keeps the old non-clickable pill, and a reply whose list does not account for the count stays inert instead of opening a contradictory menu.
  • Dismissal unchanged. Outside click, Escape, a session switch, an emptied list, or the dock going away all close the menu and release its listeners.
  • The task-tree dropdown and the read-only guarantees are unchanged; status/read still never carries a title or the workspace list.

Verification · 276 assertions across the Host, client, cell and cross-half harnesses

Compatibility · dsh ^0.2.0-rc.1 or a later 0.2.x with the web profile, Node ^22.19.0 || >=24.0.0, and a Trellis-managed workspace

Install / upgrade

dsh plugin --profile web add github:CJ-SH/dsh-plugin-trellis-statusline

Then restart dsh — plugins load at boot.

Links · Repository · 中文说明 · Design notes


v0.3.0 让“工作区 N 个活动任务”胶囊可以点击:会话没有自己的 Trellis 任务时,展开该工作区里的任务清单。

新增

  • 可点击的工作区任务列表。 每行显示一项被计数任务的优先级、标题与状态;列表是扁平的(不标父任务/子任务,也不高亮“当前任务”),因为工作区清单不是某一个会话的任务。
  • 一次遍历,两个答案。 Host 在同一次读取里生成计数和列表,activeTasks 与行数不会互相矛盾。
  • 向后兼容。 旧 Host 只返回计数时保持原来的不可点击胶囊;列表行数与计数对不上时同样保持不可点击,不打开自相矛盾的菜单。
  • 关闭行为保持一致。 外部点击、Esc、切换会话、列表清空、dock 隐藏都会关闭菜单并释放监听器。
  • 任务树下拉与只读保证不变;status/read 仍然不携带标题或工作区列表。

验证 · Host、client、cell、跨半部四个测试套件共 276 条断言

兼容 · dsh ^0.2.0-rc.1 或更新的 0.2.x(web profile)、Node ^22.19.0 || >=24.0.0、一个 Trellis 托管的工作区

安装 / 升级

dsh plugin --profile web add github:CJ-SH/dsh-plugin-trellis-statusline

之后重启 dsh —— 插件在启动时加载。

链接 · 仓库 · English README · 设计笔记

dsh-plugin-trellis-statusline v0.2.0

Choose a tag to compare

@CJ-SH CJ-SH released this 30 Sep 01:49

First public release of dsh-plugin-trellis-statusline — it shows the active Trellis task of the current workspace in the dsh web chat, the job the Claude Code statusline.py hook does in a terminal.

Highlights

  • One compact pill in the session header, and in the composer dock on a brand-new session.
  • It reads [priority] title · status and marks the task's role in its tree (parent / subtask); a task in a tree opens a dropdown that indents the real structure and highlights the current session's task.
  • A session with no task of its own shows the workspace's active task count — never another session's task.
  • Strictly read-only: it never starts, switches or archives a task, and writes nothing into Trellis.
  • Nothing to configure, and no placeholder: an absent pill is the failure mode, by design.

Compatibility · dsh ^0.2.0-rc.1 or a later 0.2.x with the web profile, Node ^22.19.0 || >=24.0.0, and a Trellis-managed workspace

Install

dsh plugin --profile web add github:CJ-SH/dsh-plugin-trellis-statusline

  • This release also brings a bilingual README (README.md / README.zh.md) and a docs/design-notes.md technical note carrying the contracts that used to sit in the README.
  • 本次发版同时带来中英双语 README(README.md / README.zh.md)与 docs/design-notes.md 技术笔记,原先堆在 README 里的契约搬进了那里。

Links · Repository · 中文说明


dsh-plugin-trellis-statusline 首个公开版本 —— 在 dsh 的 Web 对话页显示当前工作区正在进行的 Trellis 任务,也就是终端里 Claude Code statusline.py 钩子做的那件事。

主要能力

  • 会话头部一枚常驻胶囊;全新会话则在输入卡片正上方的 composer 停靠行。
  • 胶囊读作 [优先级] 标题 · 状态,并标出该任务在任务树中的角色(父任务 / 子任务);树中的任务可点击,下拉按真实结构缩进并高亮当前会话的任务。
  • 会话没有自己的任务时显示本工作区的活动任务数量,绝不显示别的会话的任务。
  • 严格只读:从不启动、切换或归档任务,也不向 Trellis 写入任何内容。
  • 无需配置,也没有占位符:胶囊不出现本身就是失败模式。

兼容 · dsh ^0.2.0-rc.1 或更新的 0.2.x(web profile)、Node ^22.19.0 || >=24.0.0、一个 Trellis 托管的工作区

安装

dsh plugin --profile web add github:CJ-SH/dsh-plugin-trellis-statusline