npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@buddhilive/dsh-client-ui-workflow-run

v0.1.2-alpha.3

Published

Durable workflow-run Conversation Node and nested member disclosure for dsh web

Downloads

51

Readme


description: "dsh Web 客户端的持久化工作流运行 Conversation Node:把顶层工作流运行重建为带嵌套成员折叠的独立聊天节点。" kind: "package-reference"

@buddhilive/dsh-client-ui-workflow-run

English | 中文

概述

dsh-client-ui-workflow-run 是浏览器插件,把持久化的顶层工作流运行重建为 dsh Web 客户端中的独立 Chat 节点。它消费由 dsh-tool-workflow 拥有的四类 tool-workflow/* Session 事件,注册一个 ConversationNodeDefinition,并通过 keyed conversation.chat.node slot 渲染,不改变现有工作流工具卡。运行与每个阶段都是受控 disclosure:挂载时运行中、失败、已取消与已中断层级默认展开,全部完成的层级默认折叠,用户可以点击整行或按 Enter、Space 切换任一层级。只有当所有实时事实同时成立时,成员才可打开子 Session;节点只显示运行、阶段、成员身份与状态。

目录


使用本包

经 dsh-tool-workflow 发起的顶层工作流运行会在对话中显示为独立节点:展开运行查看其阶段,展开阶段查看其成员。阶段组只来自开始过的成员;成员结算只改变状态,不删除或重排成员。

导航节点

运行使用 32 像素行,带常驻 chevron、行内状态点与状态文字;阶段使用 disclosure 行,在主区显示标题与成员数、在固定尾部显示聚合状态;成员使用 16 像素状态点槽、可省略名称区与固定状态列。打开成员的子 Session 需要成员仍在运行、子 id 位于普通 Session 列表、列表行为 origin: 'subagent'、parentId 等于当前 Session,且列表行仍标记运行——远程、仅地址化、父级不符或终态的行都不可交互。

状态与完成

完成状态会立即更新,但只要焦点仍位于展开内容内,自动折叠就会等待焦点离开。若所属 Turn 或 Step 已关闭但终点事件缺失,界面把相应运行或成员显示为已中断,而不改写工具结果。


理解实现

节点是持久化会话事件的确定性回放:tool-workflow/run-start 以 runId 创建唯一 Context,成员开始、成员结束与运行结束事件按日志顺序更新该 Context。只有 update 的历史尾页会保持 pending,直到更早页面补入唯一 start;此后 prepend、完整回放与实时 append 得到相同状态。

展开选择

普通运行更新保留当前选择,首次异常边沿只自动展开一次,正常完成只自动折叠一次;已完成阶段在同一 phase key 下开始新的运行成员时,该 Phase 与外层运行会再次自动展开。若一个完整的新干净周期在同一次渲染中送达且运行仍处于活动状态,Phase 保持折叠,但外层运行会自动展开一次以展示更新后的摘要。Phase 选择由 WorkflowRunPanel 持有,因此关闭并重新打开外层运行不会重置它们;renderer remount 会从持久事实重建每层的初始选择。

装配

本包把 Definition、locale 字典与 workflow-run renderer 都注册为 Cordis effect;移除客户端 entry 会撤销三者。shipped Web bundle 在 ui-conversation 与 ui-tool 之后装配该插件。


进一步探索

以下页面覆盖工具 seam、对话宿主与工具展示层。


模型体验

无。该包是浏览器端 UI 插件层,只渲染持久化工作流记录,不改变模型上下文。

KV Cache 影响

无;该包既不组装也不发送提供方请求。

已知限制与延期工作

这些限制定义哪些运行会产生记录、节点暴露什么;它们是当前包约束。

  • 只有经 dsh-tool-workflow 发起的顶层调用会生成这些记录:嵌套 PTC mode 调用和直接 WorkflowEngine 消费方不会生成。
  • 导航刻意只面向实时运行:终态成员继续保留供复盘,但本节点永不为其提供冷 Session 入口。
  • 节点只显示运行、阶段、成员身份与状态:脚本、输出、错误、日志、用量、静态拓扑与控制操作都不属于本界面。

开发备注

无。