@jidekaixin2dian/dsh-file-actions 0.1.18 → 0.1.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.20 — 2026-11-06
4
+
5
+ - 修复右键「已编辑 …」文件变更卡片无反应:卡片每行的已解析路径由宿主写在
6
+ `aria-describedby` 指向的隐藏节点里,直接读取即可,不解析本地化按钮文案;
7
+ 悬停差异预览则读 `data-changes-preview-path`。
8
+ - Fix the dead right-click on "edited …" changed-file cards: each row's
9
+ resolved path is published by the host in the hidden `aria-describedby`
10
+ target, so read that instead of parsing localized labels; the hover diff
11
+ preview exposes `data-changes-preview-path`.
12
+ - 修复右键指向图片的 Markdown 链接无反应:宿主把图片渲染成自带预览按钮而非
13
+ `<a href>`,现从内部 `<img>` 的 `/api/file?path=…` 文件路由 URL 解析出绝对
14
+ 路径(issue #16、#17)。
15
+ - Fix the dead right-click on Markdown links pointing at images: the host
16
+ renders them as its own preview button rather than `<a href>`; the absolute
17
+ path is now recovered from the inner `<img>`'s `/api/file?path=…` file-route
18
+ URL (issues #16, #17).
19
+
20
+ - 设置页导航图标迁移到官方 `settings.section.icon` 槽位(DSH 0.2.2 新增,按分区 id
21
+ 匹配),插件卸载后还原默认图标;未声明该槽位的宿主(rc.2–rc.5)自动回退到原有
22
+ DOM 装饰方式,行为不变。
23
+ - Migrate the settings navigation icon to the official `settings.section.icon`
24
+ slot (new in DSH 0.2.2, matched by section id) with clean unregistration;
25
+ hosts that do not declare the slot (rc.2–rc.5) keep the previous DOM
26
+ decoration fallback unchanged.
27
+ - 兼容验证扩展到 DSH 0.2.2-alpha.3 与 0.2.2-rc.1:0.2.2 系列引入统一右键菜单等
28
+ 客户端变化,43 项宿主套件在两档宿主全部通过,右键菜单共存无冲突;rc.5 仍是
29
+ 默认固定宿主,保留 rc.2–rc.4 回归。
30
+ - Extend verified host coverage to DSH 0.2.2-alpha.3 and 0.2.2-rc.1. The 0.2.2
31
+ line introduces a unified context menu and other client changes; the 43-item
32
+ host suite passes on both hosts with the right-click behavior coexisting, and
33
+ rc.5 stays the default pinned host with rc.2–rc.4 retained.
34
+ - 「在浏览器中打开」的非活动内容窗口收紧 sandbox:媒体、图片与纯文本不再授予
35
+ `allow-scripts`,仅内置 PDF 查看器保留脚本上下文;opaque origin 不变。
36
+ - Tighten the browser-preview sandbox for non-active content: media, images and
37
+ plain text no longer get `allow-scripts`; only the built-in PDF viewer keeps a
38
+ scripting context. The opaque origin is unchanged.
39
+ - 宿主套件加固:全局测试超时与重量级 runtime 用例超时上调,toast 断言改为对
40
+ 事件记录轮询——Windows CI runner 停顿不再被误判为失败;断言语义不变。
41
+ - Harden the host suite: longer global and heavy-runtime-test budgets, and toast
42
+ assertions that poll a recorded log, so stalled Windows CI runners no longer
43
+ read as failures; assertions are unchanged.
44
+
45
+ ## 0.1.19 — 2026-10-31
46
+
47
+ - 设置页新增中英文「项目与反馈」区域,可打开 File Actions GitHub 项目或新建反馈。
48
+ - Add bilingual project and issue links to the settings page.
49
+ - 设置下拉框改为统一圆角选项面板:选中勾、悬停高亮、箭头旋转与双向开合动画;支持键盘选择、Esc/外部点击收起、屏幕边缘避让和减少动画偏好。
50
+ - Style settings dropdown panels and animate opening and closing, with keyboard navigation, dismissal, viewport positioning and reduced-motion support.
51
+ - 优化设置页分组、紧凑行布局与亮暗/窄屏适配;侧栏缩短为「文件操作 / File Actions」,保留详情中英文全名,新增文件与指针图标。
52
+ - Refine settings layout and theme support, shorten the sidebar label, and add a file-and-pointer icon while retaining the full bilingual detail name.
53
+ - 新增原生设置侧栏入口:首选应用查看/取消/清除、完整/精简菜单、引用前后文范围,以及关联应用缓存清理;沿用原有首选应用数据,默认行为保持不变。
54
+ - 设置按当前客户端保存,存储失败保留旧值并提示;缓存清理隔离尚未完成的旧查询,卸载时注销入口。菜单与页面内容保留原生 DOM,仅使用宿主 React 作为设置槽的挂载适配,不新增运行时依赖。
55
+
56
+ - 新增「查看引用上下文」:只读行号预览、高亮引用行与有限前后文;沿用 UTF-8、2 MiB、工作区外明确确认,关闭、切换目标或会话后忽略迟到结果。
57
+ - 新增「复制片段及来源」:复制相对路径、行段与原始引用正文;保留内部换行,动态 Markdown 围栏保护代码内容,复制前核对文件版本。
58
+ - 中英文详情名称同时保留中文与英文,更新简介;默认兼容验证宿主升级至 DSH rc.5,并保留 rc.2 / rc.3 / rc.4。行列跳转暂缓,rc.5 官方接口仍无位置字段。
59
+ - Add read-only reference context and source-attributed excerpt copying. Preserve the existing file access gates and reject stale reads; verify DSH rc.5 while retaining earlier host coverage.
60
+
3
61
  ## 0.1.18 — 2026-10-30
4
62
 
5
63
  - 新增「复制引用行」:带行号的文本引用可复制对应整行或行段;保留原始内部换行,沿用 UTF-8、2 MiB 与工作区外确认限制;超出文件范围时拒绝复制。
package/README.en.md CHANGED
@@ -1,10 +1,10 @@
1
- # File Actions
1
+ # File Actions · 文件与链接操作
2
2
 
3
- **Turn a file reference in your conversation into the next action.**
3
+ **Right-click a file from your agent's conversation to open, preview or use it.**
4
4
 
5
- [中文](README.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-file-actions/v/0.1.18) · [Marketplace](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-file-actions/) · [Download](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest) · [Changelog](CHANGELOG.md)
5
+ [中文](README.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-file-actions/v/0.1.19) · [Marketplace](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-file-actions/) · [Download](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest) · [Changelog](CHANGELOG.md)
6
6
 
7
- Once a model gives you a file, the next step is usually to open it, keep editing or take its contents elsewhere. File Actions puts application choices, reveal, copy, preview and save into one context menu across chat references, delivery cards, tool results and sidebars that expose file paths.
7
+ File Actions is a file and link context-menu plugin for DeepSeek Harness (DSH). Right-click a file reference or delivery card in an agent conversation to open, reveal, preview, copy or save it. The menu also supports tool results and sidebars that expose file paths.
8
8
 
9
9
  ![File menu appearance example](assets/preview-glass.png)
10
10
 
@@ -17,17 +17,35 @@ Once a model gives you a file, the next step is usually to open it, keep editing
17
17
  | View and export | Preview supported documents and media, copy text, save a local file |
18
18
  | Share a link | Open, copy the URL or text, copy as Markdown |
19
19
 
20
+ ## Image, video and file-reference previews
21
+
22
+ - **Image preview:** right-click an image reference to see an available thumbnail in the menu; click the thumbnail to enlarge it. Thumbnail reads are limited to 8 MiB.
23
+ - **Video preview:** the menu can show a thumbnail extracted from a video. Open supported formats in the browser to play the full video. Thumbnails depend on browser decoding and are unavailable for files over 8 MiB or when decoding fails; browser previews and saved copies are limited to 64 MiB.
24
+ - **Continue editing a delivered file:** use **Open with** from its conversation reference to search associated applications and save a preference by file type without changing OS defaults.
25
+ - **Code reference context:** when a reference retains line numbers, preview the referenced lines and surrounding context or copy the excerpt with its source path. These actions cannot recover line numbers hidden by the host.
26
+ - **Paths, text and links:** copy absolute or relative paths, filenames, valid UTF-8 text and referenced lines; copy a web link's URL, text or Markdown. File-content and referenced-line reads are limited to 2 MiB.
27
+ - **Keyboard and menu settings:** open the menu with `Shift+F10` and navigate with arrows and Enter. Choose a full or compact menu and adjust the number of context lines in reference previews.
28
+
29
+ ![Right-clicking a file reference in a demonstration conversation](assets/preview-conversation.png)
30
+
31
+ ![Video thumbnail in a demonstration conversation's file menu](assets/preview-video.png)
32
+
33
+ Screenshots are from an earlier isolated demonstration environment; the interface may change between versions.
34
+
20
35
  ## Downloads
21
36
 
22
- | GitHub release assets · all releases | npm 0.1.17 · past 7 days |
23
- |---|---|
24
- | [**350 downloads**](https://api.github.com/repos/jidekaixin2dian/dsh-file-actions/releases?per_page=100) | [**191 downloads**](https://api.npmjs.org/versions/@jidekaixin2dian%2Fdsh-file-actions/last-week) |
37
+ As of **2026-10-31**, the File Actions npm package and GitHub Release archives have received **2,000+ download requests** combined:
25
38
 
26
- Snapshot: **2026-10-29**. GitHub counts release-asset requests, including checksums; npm counts downloads of the named version. Requests can include repeat installs and automation, so these are not unique-user counts and the two columns are not added together. Click a number for its live source.
39
+ | Source | Scope | Requests |
40
+ |---|---|---:|
41
+ | [npm package](https://api.npmjs.org/downloads/point/2026-10-23:2026-10-31/@jidekaixin2dian%2Fdsh-file-actions) | All versions, 2026-10-23 through 2026-10-31 | 1,799 |
42
+ | [GitHub Releases](https://api.github.com/repos/jidekaixin2dian/dsh-file-actions/releases?per_page=100) | `dsh-file-actions.tgz` across all releases, excluding checksums | 440 |
43
+
44
+ This is a sum of requests across two channels. It may include repeat installs and automation and **does not represent unique users or deduplicated installs**. Counts are a snapshot; the links provide the npm date-range total and individual GitHub asset counts.
27
45
 
28
46
  ## Install and update
29
47
 
30
- Requires **DSH >=0.2.1-rc.2 and Node >=24**. CI verifies DSH rc.2 / rc.3 / rc.4.
48
+ Requires **DSH >=0.2.1-rc.2 and Node >=24**. CI verifies DSH rc.2 / rc.3 / rc.4 / rc.5 / 0.2.2-alpha.3 / 0.2.2-rc.1.
31
49
 
32
50
  Search for **dsh-file-actions** in the marketplace and verify author **jidekaixin2dian**. Existing users can check updates under installed plugins. Catalog and registry mirrors may take time to refresh.
33
51
 
@@ -60,13 +78,27 @@ dsh plugin --profile desktop remove @jidekaixin2dian/dsh-file-actions
60
78
  2. Search **Open with** and star an application to remember it for that file type. OS defaults stay unchanged.
61
79
  3. Enlarge image thumbnails or view supported documents, audio and video in the browser.
62
80
  4. For text references such as `src/app.ts:42:7` or `notes.md#L42-L48`, choose **Copy referenced lines** to copy that line or range. Locations beyond the current file show an error instead of copying the whole file.
81
+ 5. Choose **View reference context** for a read-only view with line numbers, highlighted referenced lines and nearby context. **Copy excerpt with source** includes the relative path, line range and referenced text, without the surrounding context. Preview display is bounded for long lines and large selections; copying retains the complete referenced lines. Reading outside the workspace requires confirmation before any content is read.
63
82
 
64
- The option appears only when the reference retains its line numbers. If the host renders a link as a button exposing only its path, hidden line information cannot be recovered.
83
+ Referenced-line copying and context preview appear only when the reference retains its line numbers. If the host renders a link as a button exposing only its path, hidden line information cannot be recovered.
65
84
 
66
85
  Keyboard: `Shift+F10` opens the menu, `↑ ↓` move, `→` enters a submenu, `Enter` runs and `Esc` closes. `Shift+right-click` gives the page's own handler priority.
67
86
 
68
87
  The marketplace checks versions and installs after your click; it does not silently upgrade in the background. Restart DSH when requested.
69
88
 
89
+ ## Settings
90
+
91
+ Open **File Actions** in the DSH settings sidebar (**文件操作** in Chinese); the page retains the full bilingual name:
92
+
93
+ - **Menu display**: full by default; compact mode keeps common open, reveal, reference preview, copy and save actions.
94
+ - **Reference context**: 4, 8 or 16 lines before and after, with 8 as the default. This does not change which referenced lines are copied.
95
+ - **Preferred applications**: view and remove individual preferences or clear them all. Set new preferences from a file's **Open with** menu.
96
+ - **Application cache**: clear after installing or removing applications. The next file menu queries again; preferences are retained.
97
+
98
+ Changes take effect immediately and persist in this browser or Desktop client. Resetting menu and preview defaults retains preferred applications. Preferences do not change system defaults or sync automatically to other clients.
99
+
100
+ Use **Project and feedback** at the bottom of settings to visit this plugin's GitHub repository or report an issue. Ideas and suggestions are welcome.
101
+
70
102
  ## Boundaries
71
103
 
72
104
  - File operations use official DSH APIs and path authorization. Application lists depend on system associations; the plugin does not repair registry entries.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # File Actions · 文件与链接操作
1
+ # 文件与链接操作 · File Actions
2
2
 
3
- **从聊天里的文件引用,直接到你要做的操作。**
3
+ **在对话里右键 Agent 给出的文件,打开、预览或继续处理。**
4
4
 
5
- [English](README.en.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-file-actions/v/0.1.18) · [插件市场](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-file-actions/) · [下载](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest) · [更新记录](CHANGELOG.md)
5
+ [English](README.en.md) · [npm](https://www.npmjs.com/package/@jidekaixin2dian/dsh-file-actions/v/0.1.19) · [插件市场](https://awesome-dsh-plugin.com/p/jidekaixin2dian/dsh-file-actions/) · [下载](https://github.com/jidekaixin2dian/dsh-file-actions/releases/latest) · [更新记录](CHANGELOG.md)
6
6
 
7
- 模型给出文件后,下一步通常是打开、继续编辑,或把内容带走。File Actions 把打开方式、文件定位、路径与内容复制、预览和另存放进一个右键菜单,覆盖聊天引用、交付卡片、工具结果及提供文件路径的侧栏。
7
+ File Actions 是 DeepSeek Harness(DSH)的文件和链接右键插件。Agent 在对话中给出文件后,直接右键文件引用或交付卡片,就能从插件菜单打开、定位、预览、复制或另存;也支持工具结果及提供文件路径的侧栏。
8
8
 
9
9
  ![文件右键菜单外观示例](assets/preview-glass.png)
10
10
 
@@ -17,17 +17,35 @@
17
17
  | 查看与带走内容 | 预览支持的文档、图片或媒体;复制文本;另存为本地文件 |
18
18
  | 分享链接 | 打开网页,复制链接、链接文字或 Markdown |
19
19
 
20
+ ## 图片、视频与文件引用
21
+
22
+ - **图片预览**:右键图片引用,菜单内显示可用的缩略图;点击缩略图可以放大查看,不必先切换到图片应用。缩略图读取上限为 8 MiB。
23
+ - **视频预览**:右键视频引用,可在菜单中查看从视频提取的画面缩略图;支持的格式还能通过「在浏览器中打开」播放完整视频。缩略图依赖浏览器解码,文件超过 8 MiB 或无法解码时不会显示;浏览器预览及另存上限为 64 MiB。
24
+ - **交付文件接着编辑**:从当前对话的文件引用进入「打开方式」,搜索系统关联的应用并按文件类型收藏首选,不修改系统默认应用。
25
+ - **代码引用上下文**:保留行号的引用可只读查看引用行及前后文,也可复制引用片段和来源路径;宿主未暴露行号时无法使用这些操作。
26
+ - **路径、正文与链接**:复制绝对或相对路径、文件名、有效 UTF-8 文本与引用行;网页链接可复制地址、文字或 Markdown。文件内容和引用行限 2 MiB。
27
+ - **键盘操作与菜单设置**:用 `Shift+F10` 打开菜单,方向键与 Enter 选择执行;可切换完整或精简菜单,并调整引用预览的前后文行数。
28
+
29
+ ![演示环境中右键对话内的文件引用](assets/preview-conversation.png)
30
+
31
+ ![演示环境中视频引用的菜单缩略图](assets/preview-video.png)
32
+
33
+ 图片来自此前的隔离演示环境;界面会随版本变化。
34
+
20
35
  ## 下载情况
21
36
 
22
- | GitHub Release 资源 · 历史累计 | npm 0.1.17 · 近 7 日 |
23
- |---|---|
24
- | [**350 次下载**](https://api.github.com/repos/jidekaixin2dian/dsh-file-actions/releases?per_page=100) | [**191 次下载**](https://api.npmjs.org/versions/@jidekaixin2dian%2Fdsh-file-actions/last-week) |
37
+ 截至 **2026-10-31**,File Actions 的 npm 包与 GitHub Release 安装包合计 **2,000+ 次下载请求**:
25
38
 
26
- 统计快照:**2026-10-29**。GitHub 包含安装包、校验文件等资源请求;npm 仅统计表中版本。下载可能包含重复安装和自动化请求,不代表独立用户数,两列不相加。点击数字可查看实时来源。
39
+ | 来源 | 统计范围 | 请求次数 |
40
+ |---|---|---:|
41
+ | [npm 包](https://api.npmjs.org/downloads/point/2026-10-23:2026-10-31/@jidekaixin2dian%2Fdsh-file-actions) | 2026-10-23 至 2026-10-31,全部版本 | 1,799 |
42
+ | [GitHub Release](https://api.github.com/repos/jidekaixin2dian/dsh-file-actions/releases?per_page=100) | 全部版本的 `dsh-file-actions.tgz`,不含校验文件 | 440 |
43
+
44
+ 这是两种渠道的请求次数之和,可能包含重复安装与自动化请求,**不代表独立用户数或去重安装量**。数字为当日快照;来源链接分别提供 npm 区间统计和 GitHub 各资源计数。
27
45
 
28
46
  ## 安装与更新
29
47
 
30
- 需要 **DSH >=0.2.1-rc.2、Node >=24**;持续验证 DSH rc.2 / rc.3 / rc.4。
48
+ 需要 **DSH >=0.2.1-rc.2、Node >=24**;持续验证 DSH rc.2 / rc.3 / rc.4 / rc.5 / 0.2.2-alpha.3 / 0.2.2-rc.1。
31
49
 
32
50
  在插件市场搜索 **dsh-file-actions**,确认作者为 **jidekaixin2dian** 后安装;已有用户在「已安装」中检查更新。市场数据与 npm 镜像可能有同步延迟。
33
51
 
@@ -62,17 +80,31 @@ dsh plugin --profile desktop remove @jidekaixin2dian/dsh-file-actions
62
80
  2. 选择「打开方式」可搜索应用,点击星标保存当前文件类型的首选;不会改变系统默认应用。
63
81
  3. 图片支持缩略图与放大预览;支持的文档、音视频可在浏览器中查看。
64
82
  4. 对 `src/app.ts:42:7` 或 `notes.md#L42-L48` 这类文本引用,可选「复制引用行」复制该行或该段,不必复制整个文件。行号超出当前文件范围时会提示,不会改为复制全文。
83
+ 5. 选择「查看引用上下文」,在只读预览中查看行号、高亮引用行及少量前后文;「复制片段及来源」一次带走相对路径、行号与引用正文,不包含额外上下文。长行或较大引用会在预览中缩短显示,复制保留完整引用行。
65
84
 
66
- 该选项仅在引用仍保留行号时出现;宿主若把链接渲染为仅暴露路径的按钮,插件无法恢复已隐藏的行号。
85
+ 引用行复制和上下文预览仅在引用仍保留行号时出现;宿主若把链接渲染为仅暴露路径的按钮,插件无法恢复已隐藏的行号。
67
86
 
68
87
  键盘:`Shift+F10` 打开菜单,`↑ ↓` 移动,`→` 进入子菜单,`Enter` 执行,`Esc` 关闭。`Shift+右键` 优先交给页面原有菜单。
69
88
 
70
89
  更新由市场检查并在你点击后安装,不会静默后台升级;需要时按提示重启 DSH。
71
90
 
91
+ ## 设置
92
+
93
+ 在 DSH 设置侧栏打开 **文件操作**(英文界面为 **File Actions**);页面保留完整中英文名称:
94
+
95
+ - **菜单显示**:默认完整菜单;精简模式保留常用打开、定位、引用预览、复制和另存操作。
96
+ - **引用前后文**:前后各 4 / 8 / 16 行,默认各 8 行;不改变引用正文的复制范围。
97
+ - **首选应用**:查看已设置的文件类型,单独取消或全部清除;选择新首选仍在文件的「打开方式」菜单中完成。
98
+ - **关联应用缓存**:安装或卸载应用后可清除缓存,下次右键重新查询;保留首选应用。
99
+
100
+ 修改立即生效,并保留在当前浏览器或 Desktop 客户端。恢复菜单与预览默认设置不会清除首选应用;这些偏好不会修改系统默认应用,也不会自动同步到其他客户端。
101
+
102
+ 页尾的「项目与反馈」可打开本插件的 GitHub 项目或新建反馈;欢迎提出问题和改进想法。
103
+
72
104
  ## 使用边界
73
105
 
74
106
  - 打开与定位沿用 DSH 官方接口和路径授权;应用列表取决于系统关联。失效关联可能导致列表不可用,插件不会修改注册表。
75
- - 复制内容与引用行仅支持 **有效 UTF-8、文件最大 2 MiB**。引用行按整行复制,保留所选行之间的原始换行;列号不裁剪内容。工作区外复制需要明确确认;确认不可用时取消读取。
107
+ - 复制内容与引用行仅支持 **有效 UTF-8、文件最大 2 MiB**。引用行按整行复制,保留所选行之间的原始换行;列号不裁剪内容。工作区外复制或引用上下文预览需要先明确确认;确认不可用时取消读取。
76
108
  - 另存为和浏览器预览最多读取 **64 MiB**,分块内容不一致时中止;不是文件系统原子快照。
77
109
  - HTML / SVG 默认静态预览并阻止脚本和外部资源。仅在信任文件后启用脚本与联网;预览仍与 DSH 页面隔离。相对资源可能不可用,点击文件内链接属于主动导航。
78
110
  - 编辑器打开暂不跳到行列位置;另存为使用浏览器下载行为。插件用于 DSH 图形 / Web 界面,终端界面不适用。
Binary file
Binary file
package/icon.svg CHANGED
@@ -1,7 +1,13 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="dsh-file-actions">
2
- <rect width="64" height="64" rx="14" fill="#1b1d21"/>
3
- <path d="M18 16h18l10 10v22a4 4 0 0 1-4 4H18a4 4 0 0 1-4-4V20a4 4 0 0 1 4-4z" fill="none" stroke="#e8e8e8" stroke-width="2.4" stroke-linejoin="round"/>
4
- <path d="M36 16v10h10" fill="none" stroke="#e8e8e8" stroke-width="2.4" stroke-linejoin="round"/>
5
- <circle cx="45" cy="45" r="11" fill="#c8f663"/>
6
- <path d="M40.5 45h9M45 40.5v9" stroke="#1b1d21" stroke-width="2.6" stroke-linecap="round"/>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="File Actions">
2
+ <defs>
3
+ <linearGradient id="surface" x1="8" y1="4" x2="56" y2="62" gradientUnits="userSpaceOnUse">
4
+ <stop stop-color="#3578ef"/>
5
+ <stop offset="1" stop-color="#158eaa"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="1" y="1" width="62" height="62" rx="15" fill="url(#surface)"/>
9
+ <rect x="1.5" y="1.5" width="61" height="61" rx="14.5" fill="none" stroke="#fff" stroke-opacity=".16"/>
10
+ <path d="M34 13H19a3 3 0 0 0-3 3v31a3 3 0 0 0 3 3h22a3 3 0 0 0 3-3V23z" fill="#fff" fill-opacity=".12" stroke="#fff" stroke-width="2.4" stroke-linejoin="round"/>
11
+ <path d="M34 13v10h10M23 31h9M23 37h6" fill="none" stroke="#fff" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
12
+ <path d="m34 35 16 10-8 2-3.5 8z" fill="#fff" stroke="#176b9d" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
7
13
  </svg>