@deepseek-ai/dsh-client-ui-reference 0.1.3-alpha.2 → 0.1.5-alpha.2

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.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/ui-reference/README.md
5
- README.md: ecabff50060ac80c21c223fa64a898184a619aba
6
- README.zh.md: f8c5ec7a664aa28efa3f836106af46049480fe56
5
+ README.md: 7d09db53e2ef1fec35837b60f2822559e513d3e7
6
+ README.zh.md: 3f4623bc594baee7e895a711359c974b51a410fc
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-client-ui-reference` is the unified Web `@file` and `@session` reference source: it registers the `reference` entry in the composer's inline-suggestion machinery so a user typing `@` sees file and session candidates in one list. Files order before sessions, sections are labelled with locale-registered terms, and either candidate domain can fail independently without blocking the other. Each row carries only what distinguishes it: a file names its parent directory and nothing at the workspace root, a session names its workspace only when that workspace is not the current one, and a drilled directory listing names none because its breadcrumb already does. A pick inserts an atomic inline reference file, folder, and session alike — whose hidden serialized and clipboard form is the natural text the shared `@path` grammar defines; a directory row additionally carries a drill verb (Tab or the row's chevron) that keeps plain editable path text and the menu active at its trailing slash so the user can descend another level. Selecting a session routes through the session-reference service, which validates the mention and captures model context at the pre-step boundary; this package itself registers no prompt or tool.
12
+ Use `dsh-client-ui-reference` when Web users need to mention files, folders, or sessions from one `@` completion menu. It lists files before sessions and keeps either group available when the other cannot load. Picking a file, folder, or session inserts an atomic reference with a stable clipboard form; folder rows also let users descend without closing completion. File rows omit redundant root locations, and session rows show a workspace only when it differs from the current one. Session mentions are validated before model context is captured, while browsing candidates has no model effect.
13
13
 
14
14
  ## Table of Contents
15
15
 
package/README.zh.md CHANGED
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-client-ui-reference` 是统一的 Web `@file` 与 `@session` 引用 source:它把 `reference` 条目注册进编辑器的行内建议机制,让用户在输入 `@` 时于同一个列表中看到文件与会话候选。文件排在会话之前,分组标题使用注册在 locale 字典中的标签,任一候选领域失败都会独立降级、不阻塞另一领域。每一行只承载能区分它的信息:文件显示其父目录、位于工作区根目录时不显示;会话仅在其工作区不是当前工作区时显示该工作区;下钻后的目录列表不显示位置,因为面包屑已经承载了它。选择一项会插入原子行内引用——文件、文件夹与会话皆然——其隐藏的序列化与剪贴板形式就是共享 `@path` 语法所定义的自然文本;目录行额外携带一个钻取动词(Tab 或行尾 chevron),保持可编辑的路径纯文本并让菜单在尾部斜杠处保持活跃,用户可以继续进入下一层。选择会话会经 session-reference 服务路由,该服务校验 mention 并在 pre-step 边界捕获模型上下文;本包自身不注册任何提示词或工具。
12
+ Web 用户需要从同一个 `@` 补全菜单提及文件、文件夹或会话时,可以使用 `dsh-client-ui-reference`。菜单先列出文件,再列出会话;其中一组无法加载时,另一组仍然可用。选择文件、文件夹或会话会插入带稳定剪贴板形式的原子引用;文件夹行还允许用户在不关闭补全的情况下继续下钻。文件行省略多余的根目录位置,会话行仅在工作区与当前工作区不同时显示该工作区。会话 mention 会在捕获模型上下文前接受校验,而浏览候选项不会影响模型。
13
13
 
14
14
  ## 目录
15
15
 
package/lib/client.js CHANGED
@@ -23,10 +23,6 @@ window.__ModuleLoader__.load({
23
23
  }
24
24
  //#endregion
25
25
  //#region ../../util/workspace-path/src/index.ts
26
- /**
27
- * Browser-safe Workspace path and display helpers.
28
- * @module @deepseek-ai/dsh-util-workspace-path
29
- */
30
26
  /** Whether a path uses a Windows drive or UNC prefix. */
31
27
  function isWindowsStylePath(value) {
32
28
  return /^[A-Za-z]:[/\\]/.test(value) || value.startsWith("\\\\");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-ui-reference",
3
3
  "description": "Unified Web @file and @session reference source",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -42,18 +42,18 @@
42
42
  "@deepseek-ai/cordis": "^4.0.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@deepseek-ai/dsh-api-remotes": "^0.1.3-alpha.2",
46
- "@deepseek-ai/dsh-api-session-controller": "^0.1.3-alpha.2",
47
- "@deepseek-ai/dsh-client-connection": "^0.1.3-alpha.2",
48
- "@deepseek-ai/dsh-client-locale": "^0.1.3-alpha.2",
49
- "@deepseek-ai/dsh-client-test-runtime": "^0.1.3-alpha.2",
50
- "@deepseek-ai/dsh-client-ui-input-trigger": "^0.1.3-alpha.2",
51
- "@deepseek-ai/dsh-client-ui-slots": "^0.1.3-alpha.2",
52
- "@deepseek-ai/dsh-client-ui-primitives": "^0.1.3-alpha.2",
53
- "@deepseek-ai/dsh-file-reference": "^0.1.3-alpha.2",
54
- "@deepseek-ai/dsh-session-reference": "^0.1.3-alpha.2",
55
- "@deepseek-ai/dsh-util-workspace-path": "^0.1.3-alpha.2",
56
- "@deepseek-ai/dsh-typert-protocol": "^0.1.3-alpha.2",
45
+ "@deepseek-ai/dsh-api-remotes": "^0.1.5-alpha.2",
46
+ "@deepseek-ai/dsh-client-connection": "^0.1.5-alpha.2",
47
+ "@deepseek-ai/dsh-client-locale": "^0.1.5-alpha.2",
48
+ "@deepseek-ai/dsh-client-test-runtime": "^0.1.5-alpha.2",
49
+ "@deepseek-ai/dsh-client-ui-input-trigger": "^0.1.5-alpha.2",
50
+ "@deepseek-ai/dsh-api-session-controller": "^0.1.5-alpha.2",
51
+ "@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.2",
52
+ "@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.2",
53
+ "@deepseek-ai/dsh-file-reference": "^0.1.5-alpha.2",
54
+ "@deepseek-ai/dsh-session-reference": "^0.1.5-alpha.2",
55
+ "@deepseek-ai/dsh-typert-protocol": "^0.1.5-alpha.2",
56
+ "@deepseek-ai/dsh-util-workspace-path": "^0.1.5-alpha.2",
57
57
  "@deepseek-ai/cordis": "^4.0.2"
58
58
  },
59
59
  "files": [