dsh-prompttab 5.0.0 → 5.1.0

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/README.md CHANGED
@@ -6,10 +6,11 @@
6
6
 
7
7
  English | [中文](README.zh.md)
8
8
 
9
- PromptTab is an **intelligent interaction layer** for DeepSeek Harness. It has no sidebar, no panel, no settings page, and no stored data: everything happens inside the composer, on demand.
9
+ PromptTab is an **intelligent interaction layer** for DeepSeek Harness. Its tools open on demand from the composer.
10
10
 
11
11
  - **Tab suggestions** — hold **Tab** in the composer text editor to get an inline next-step prompt, an optimization preview, a continuation, a cursor completion, or a selection action. Nothing is sent automatically.
12
12
  - **Tab + /** — while Tab is held, press `/` to open a read-only, searchable list of every Tab action and related key. It never runs, inserts, or sends anything.
13
+ - **Workflow stages** — press **Alt + Shift + W** in the composer or use the stage button in a Tab preview. Choose a stage to guide the next suggestion in the same conversation. Manage custom workflows from the selector.
13
14
  - **Explain** — select text in the conversation and use the right-click menu to explain it in context. The same menu offers Copy; neither action changes the conversation or the composer.
14
15
  - **Composer history** — `↑` / `↓` browse unsent input history without leaving the composer.
15
16
 
@@ -34,7 +35,7 @@ npm: <https://www.npmjs.com/package/dsh-prompttab>
34
35
  - **Tab + ←**: full-text polish.
35
36
  - With a selection: **Tab** enhances, **Tab + →** expands, **Tab + ←** polishes only the selection.
36
37
  - The preview lists the other Tab actions for the current context, supports **Regenerate**, and never sends automatically.
37
- - **Tab + / reference list** — a read-only, searchable list of the eight Tab actions plus Space, Esc, Shift+Tab, and Tab + /. Search by name, key, scenario, or description; browse with `↑`/`↓`; the header shows the product name and the footer the running plugin version. Esc closes and returns to the composer.
38
+ - **Tab + / reference list** — a read-only, searchable list of the eight Tab actions plus Space, Esc, Shift+Tab, Tab + /, and Alt + Shift + W. Search by name, key, scenario, or description; browse with `↑`/`↓`; the header shows the product name and the footer the running plugin version. Esc closes and returns to the composer.
38
39
  - **Explain selection** — a lightweight explanation of the selected term or sentence, using the current Session model and a short excerpt from the matching assistant reply. It does not change the conversation or the composer.
39
40
  - **Composer history** — `↑` at the start of the composer recalls earlier prompts; `↓` walks toward newer ones and then restores the unsent text.
40
41
 
@@ -46,6 +47,7 @@ npm: <https://www.npmjs.com/package/dsh-prompttab>
46
47
  | Continue at the end / complete at the caret / expand a selection | `Tab` + `→` |
47
48
  | Polish the full prompt / polish a selection | `Tab` + `←` |
48
49
  | Open the read-only Tab action list | `Tab` + `/` |
50
+ | Choose a workflow stage | `Alt + Shift + W` |
49
51
  | Accept the preview | `Space` (while Tab is held) |
50
52
  | Cancel the suggestion | `Esc` |
51
53
  | Leave the composer text editor | `Shift+Tab` |
@@ -87,7 +89,7 @@ dsh plugin --profile web add dsh-prompttab
87
89
  To pin this release:
88
90
 
89
91
  ```bash
90
- dsh plugin --profile web add dsh-prompttab@5.0.0
92
+ dsh plugin --profile web add dsh-prompttab@5.1.0
91
93
  ```
92
94
 
93
95
  ## Install from GitHub
@@ -155,7 +157,7 @@ The plugin has **no Config schema** and no required settings. There is no API ke
155
157
  - No analytics, telemetry, or network calls of its own. Inline suggestions, explanations, and Flow loading use the Session's configured model; the context needed for a suggestion or explanation is sent to that model and consumes tokens. A failed stream may retry once and consume tokens again.
156
158
  - No credential, API key, token, cookie, or account access.
157
159
  - No host filesystem access.
158
- - **No plugin storage**: no `localStorage`, no backup file, no exported data. Explain travels through the Session command log and is not written to this browser's storage.
160
+ - **Workflow storage** — custom definitions are saved through DSH Profile Config. The active workflow stage lives in the current window for each conversation. PromptTab does not write browser storage.
159
161
  - Installing any third-party bundle executes its code inside DSH. Read the source before installing, and pin a commit with `github:qifenglun1/dsh-prompttab#<sha>` if you need a fixed revision.
160
162
 
161
163
  ## Development
package/README.zh.md CHANGED
@@ -6,10 +6,11 @@
6
6
 
7
7
  [English](README.md) | 中文
8
8
 
9
- PromptTab 是 DeepSeek Harness 的**智能交互层**。它没有侧边栏、没有面板、没有设置页,也不保存数据:一切都在输入框内按需发生。
9
+ PromptTab 是 DeepSeek Harness 的**智能交互层**。功能从输入框按需打开。
10
10
 
11
11
  - **Tab 建议**:在输入框文本编辑区内按住 **Tab**,获得行内下一步建议、提示词优化预览、续写、光标位置补全或选区操作。不会自动发送。
12
12
  - **Tab + /**:按住 Tab 时按 `/`,打开只读、可搜索的 Tab 键操作列表。浏览或点击都不会执行、插入或发送。
13
+ - **工作流阶段**:在输入框按 **Alt + Shift + W**,或点击 Tab 预览中的阶段按钮。选择阶段后,在同一对话里继续生成建议。选择器内可管理自定义工作流。
13
14
  - **解释**:在对话中选中文本后使用右键菜单,按当前语境解释;同一菜单还提供复制。两者都不改变对话与输入框。
14
15
  - **输入历史**:`↑` / `↓` 浏览未发送的输入历史,不离开输入框。
15
16
 
@@ -34,7 +35,7 @@ npm:<https://www.npmjs.com/package/dsh-prompttab>
34
35
  - **Tab + ←**:全文润色。
35
36
  - 有选区时:**Tab** 选区增强、**Tab + →** 选区扩写、**Tab + ←** 选区润色。
36
37
  - 预览会列出当前上下文的其它 Tab 用法,支持 **重新生成**,不会自动发送。
37
- - **Tab + / 参考列表**:只读、可搜索,覆盖 8 个 Tab 操作与 Space、Esc、Shift+Tab、Tab + /。可按名称、键位、场景或说明搜索,`↑`/`↓` 浏览,顶部显示产品名,底部显示当前插件版本;Esc 关闭并回到输入框。
38
+ - **Tab + / 参考列表**:只读、可搜索,覆盖 8 个 Tab 操作与 Space、Esc、Shift+Tab、Tab + /、Alt + Shift + W。可按名称、键位、场景或说明搜索,`↑`/`↓` 浏览,顶部显示产品名,底部显示当前插件版本;Esc 关闭并回到输入框。
38
39
  - **解释选中内容**:使用当前会话模型和一小段匹配的助手回复,轻量解释所选名词或句子;不改对话,也不改输入框。
39
40
  - **输入历史**:光标在开头时按 `↑` 回顾更早的提示词,`↓` 向更新方向切换,越过最新一条后恢复未发送的原文。
40
41
 
@@ -46,6 +47,7 @@ npm:<https://www.npmjs.com/package/dsh-prompttab>
46
47
  | 末尾续写 / 光标补全 / 选区扩写 | `Tab` + `→` |
47
48
  | 全文润色 / 选区润色 | `Tab` + `←` |
48
49
  | 打开只读的 Tab 操作列表 | `Tab` + `/` |
50
+ | 选择工作流阶段 | `Alt + Shift + W` |
49
51
  | 采用当前预览 | `Space`(按住 Tab 时) |
50
52
  | 取消当前建议 | `Esc` |
51
53
  | 离开输入框文本编辑区 | `Shift+Tab` |
@@ -87,7 +89,7 @@ dsh plugin --profile web add dsh-prompttab
87
89
  固定版本:
88
90
 
89
91
  ```bash
90
- dsh plugin --profile web add dsh-prompttab@5.0.0
92
+ dsh plugin --profile web add dsh-prompttab@5.1.0
91
93
  ```
92
94
 
93
95
  ## 从 GitHub 安装
@@ -155,7 +157,7 @@ dsh plugin --profile web add dsh-prompttab
155
157
  - 没有自建分析、遥测或网络请求。行内建议、解释和加载动画使用当前会话配置的模型;所需上下文会发送给该模型并消耗 token。流式失败可能重试一次,再次消耗 token。
156
158
  - 不访问凭据、API Key、Token、Cookie 或账号信息。
157
159
  - 不访问宿主机文件系统。
158
- - **零插件存储**:没有 `localStorage`、没有备份文件、不导出数据。解释只通过会话命令日志流转,不写入本浏览器存储。
160
+ - **工作流存储**:自定义工作流定义保存在 DSH Profile 配置中,阶段选择按对话留在当前窗口。PromptTab 不写入浏览器存储。
159
161
  - 安装任何第三方 bundle 都会在 DSH 内执行其代码;安装前请阅读源码,需要固定版本时使用 `github:qifenglun1/dsh-prompttab#<sha>`。
160
162
 
161
163
  ## 开发
package/docs/USAGE.md CHANGED
@@ -4,7 +4,7 @@
4
4
  >
5
5
  > The Intelligent Interaction Layer for AI.
6
6
 
7
- PromptTab is an intelligent interaction layer for DeepSeek Harness. It stays out of the way until you ask for it: there is no sidebar entry, no panel, no settings page, and no stored data.
7
+ PromptTab is an intelligent interaction layer for DeepSeek Harness. Its tools open on demand from the composer.
8
8
 
9
9
  ## Shortcut quick reference
10
10
 
@@ -37,9 +37,16 @@ These bindings live inside the composer text editor. Toolbar controls, dialogs,
37
37
  - **Shift+Tab** always leaves the editor. Everything outside the editor keeps native Tab.
38
38
  - `/` and `@` menus and IME composition keep their own key handling.
39
39
 
40
+ ## Workflow stages
41
+
42
+ 1. Press **Alt + Shift + W** in the composer or use the stage button in a Tab preview. After you select a stage, click the workflow and stage label beside the composer to reopen the selector.
43
+ 2. Choose a stage directly. Use Up/Down and Enter to select, or Esc to close. The current stage is marked in the list. Use **Switch workflow** to pick a different workflow. Presets include Software development, Research and Evidence Synthesis, and Content Creation and Publishing.
44
+ 3. Hold **Tab** to generate a next-step suggestion or optimize plain text. Suggestions use the current conversation and the selected stage. Space adopts a suggestion into the composer.
45
+ 4. Use **Manage workflows → Draft with AI** to describe a task and optionally provide a method or team guideline. Edit the generated stages, preview a suggestion with **Try this stage**, then choose **Save workflow** when satisfied. The same menu also supports creating and copying workflows manually. Saved workflows belong to the current DSH Profile, while each conversation's current selection is kept for the lifetime of the window.
46
+
40
47
  ## Tab + / reference list
41
48
 
42
- - While Tab is held, press `/` to open a non-modal, read-only list of all eight Tab actions plus Space, Esc, Shift+Tab, and Tab + /.
49
+ - While Tab is held, press `/` to open a non-modal, read-only list of all eight Tab actions plus Space, Esc, Shift+Tab, Tab + /, and Alt + Shift + W.
43
50
  - Search by action name, key, scenario, or description; browse with `↑`/`↓`; the count, a "reference only" note, and the running plugin version are shown at the bottom.
44
51
  - The list never executes, inserts, or sends anything, and clicking a row only moves the highlight.
45
52
  - `Esc` or the close button closes it and returns to the composer; clicking outside closes it without stealing focus.
package/docs/USAGE.zh.md CHANGED
@@ -4,7 +4,7 @@
4
4
  >
5
5
  > AI 的智能交互层。
6
6
 
7
- PromptTab 是 DeepSeek Harness 的智能交互层。它平时不出现:没有侧边栏入口、没有面板、没有设置页,也不保存数据。
7
+ PromptTab 是 DeepSeek Harness 的智能交互层。功能从输入框按需打开。
8
8
 
9
9
  ## 快捷键速查
10
10
 
@@ -37,9 +37,16 @@ PromptTab 是 DeepSeek Harness 的智能交互层。它平时不出现:没有
37
37
  - **Shift+Tab** 始终可以离开编辑区;编辑区外保持原生 Tab。
38
38
  - `/`、`@` 菜单和 IME 组合保持自己的按键处理。
39
39
 
40
+ ## 工作流阶段
41
+
42
+ 1. 在输入框按 **Alt + Shift + W**,或点击 Tab 预览中的阶段按钮。选中阶段后,也可以点击输入框旁的「工作流 · 当前阶段」标签重新打开选择器。
43
+ 2. 直接选择阶段。用 ↑ / ↓ 移动、Enter 确认、Esc 关闭。列表会标记当前阶段,点击「切换工作流」可选择其他工作流。内置选项包括「软件开发」「资料调研与证据综合」「内容创作与发布」。
44
+ 3. 按住 **Tab** 生成下一步建议或优化纯文本草稿。建议结合当前对话和所选阶段,按 Space 采用到输入框。
45
+ 4. 打开「管理工作流 → 用 AI 起草」,填写任务描述,并可选填方法或团队规范。生成后可编辑各阶段,点「试用此阶段」用当前对话预览建议,确认后点「保存工作流」。管理页也支持手动新建或复制。自定义定义保存在当前 DSH Profile,各对话的阶段选择在窗口重载后清除。
46
+
40
47
  ## Tab + / 参考列表
41
48
 
42
- - 按住 Tab 时按 `/`,打开非模态、只读的列表,覆盖 8 个 Tab 操作与 Space、Esc、Shift+Tab、Tab + /。
49
+ - 按住 Tab 时按 `/`,打开非模态、只读的列表,覆盖 8 个 Tab 操作与 Space、Esc、Shift+Tab、Tab + /、Alt + Shift + W。
43
50
  - 可按操作名称、键位、适用场景或说明搜索;`↑`/`↓` 浏览;底部显示过滤计数、“仅供查看”说明和当前插件版本。
44
51
  - 列表不会执行、插入或发送任何内容;点击条目只移动高亮。
45
52
  - 按 `Esc` 或关闭按钮关闭并回到输入框;点击外部关闭且不抢占焦点。
package/locale/en.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "PromptTab",
4
- "description": "PromptTab — Think it. Tab it. The Intelligent Interaction Layer for AI. Hold Tab in the composer for an in-place Tab suggestion, Tab + / opens a read-only reference list of every Tab action, and selected text can be explained on demand. No persistent panels, no plugin storage, no background requests.",
4
+ "description": "PromptTab — Think it. Tab it. The Intelligent Interaction Layer for AI. Hold Tab in the composer for an in-place Tab suggestion, Tab + / opens a read-only reference list of every Tab action, and selected text can be explained on demand. Choose a workflow stage to guide suggestions in the same conversation.",
5
5
  "detail": "docs/USAGE.md"
6
6
  }
7
7
  }
package/locale/zh.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "meta": {
3
3
  "title": "PromptTab",
4
- "description": "PromptTab 所思,一键成形。AI 的智能交互层:在输入框按住 Tab,原位给出 Tab 建议;Tab + / 打开只读的 Tab 键操作参考;选中文本时可解释。没有常驻面板,不写入插件存储,也不发起后台请求。",
4
+ "description": "PromptTab 所思,一键成形。AI 的智能交互层:在输入框按住 Tab,原位给出 Tab 建议;Tab + / 打开只读的 Tab 键操作参考;选中文本时可解释。选择工作流阶段,在同一对话中获得符合当前阶段的建议。",
5
5
  "detail": "docs/USAGE.zh.md"
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-prompttab",
3
- "version": "5.0.0",
4
- "description": "PromptTab — Think it. Tab it. The Intelligent Interaction Layer for AI. Hold Tab in the composer for in-place Tab suggestions, open a read-only searchable Tab action list with Tab + /, and explain selected text only when you ask. No persistent panels, no plugin storage, no background requests.",
3
+ "version": "5.1.0",
4
+ "description": "PromptTab — Think it. Tab it. The Intelligent Interaction Layer for AI. Hold Tab in the composer for in-place Tab suggestions, open a read-only searchable Tab action list with Tab + /, and explain selected text only when you ask. Choose a workflow stage to guide suggestions in the same conversation.",
5
5
  "license": "MIT",
6
6
  "author": "qifenglun1",
7
7
  "homepage": "https://github.com/qifenglun1/dsh-prompttab#readme",
@@ -35,6 +35,8 @@
35
35
  "src/client.js",
36
36
  "src/suggestion-strategy.js",
37
37
  "src/suggestion-prompts.js",
38
+ "src/prompt-pack.js",
39
+ "src/workflows.js",
38
40
  "cordis.patch.yml",
39
41
  "locale/*.json",
40
42
  "icon.svg",
@@ -46,8 +48,8 @@
46
48
  "docs/USAGE.zh.md"
47
49
  ],
48
50
  "scripts": {
49
- "check": "node --check src/index.js && node --check src/client.js",
50
- "test": "node --test scripts/tests/prompt-suggestion.test.js scripts/tests/tab-mode-contract.test.js scripts/tests/tab-action-list.test.js scripts/tests/interaction-layer.test.js scripts/tests/manifest.test.js scripts/tests/source-policy.test.js scripts/tests/brand.test.js scripts/tests/design-system.test.js scripts/tests/flow-loading.test.js scripts/tests/generation-architecture.test.js scripts/tests/npm-release-gate.test.js scripts/tests/selection-explain.test.js",
51
+ "check": "node --check src/index.js && node --check src/client.js && node --check src/prompt-pack.js && node --check src/workflows.js",
52
+ "test": "node --test scripts/tests/prompt-suggestion.test.js scripts/tests/tab-mode-contract.test.js scripts/tests/tab-action-list.test.js scripts/tests/interaction-layer.test.js scripts/tests/manifest.test.js scripts/tests/source-policy.test.js scripts/tests/brand.test.js scripts/tests/design-system.test.js scripts/tests/flow-loading.test.js scripts/tests/generation-architecture.test.js scripts/tests/npm-release-gate.test.js scripts/tests/selection-explain.test.js scripts/tests/prompt-config.test.js scripts/tests/workflows.test.js",
51
53
  "verify": "npm run check && npm test && node scripts/check-package.mjs && node scripts/check-policy.mjs",
52
54
  "check:package": "node scripts/check-package.mjs",
53
55
  "check:policy": "node scripts/check-policy.mjs",
@@ -67,5 +69,8 @@
67
69
  "@deepseek-ai/dsh-client-ui-conversation"
68
70
  ]
69
71
  }
72
+ },
73
+ "peerDependencies": {
74
+ "@deepseek-ai/schemastery": "~3.19.0"
70
75
  }
71
76
  }