@morlay/x-use-bundle 0.0.0-stage → 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 morlay
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,34 @@
1
- # Temporary Holding Version
1
+ # @morlay/x-use-bundle
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![NPM Version](https://img.shields.io/npm/v/%2540morlay%252Fx-use-bundle)](https://www.npmjs.com/package/@morlay/x-use-bundle)
4
+ [![NPM Downloads](https://img.shields.io/npm/dw/%40morlay%2Fx-use-bundle)](https://www.npmjs.com/package/@morlay/x-use-bundle)
5
+
6
+ 通用 MCP 接法的一次装齐:两条 `dsh-mcp-client` 行分别以 stdio 起 `agent-browser mcp` 与
7
+ `agent-desktop mcp`,工具以 `mcp__agent-browser__*` / `mcp__agent-desktop__*` 进入模型目录。
8
+
9
+ | 装什么 | 数据从哪来 |
10
+ | ---------------------- | ------------------------- |
11
+ | `mcp-agent-browser` 行 | 本包的 `tsdown.config.ts` |
12
+ | `mcp-agent-desktop` 行 | 本包的 `tsdown.config.ts` |
13
+
14
+ ## 用法
15
+
16
+ 把包名加进 profile 的 `dsh.profile.bundles`,或在插件页启用。前提只有一条:对应的 bin 在宿主的 `PATH` 里
17
+ (`agent-browser` / `agent-desktop`)。**没装就是没有这组工具**:两行都用 MCP 客户端默认的
18
+ `failOnStartupError: false`,命令找不到时该行照常激活、只是不产出工具,宿主其余部分不受影响。
19
+
20
+ 两条都是**宿主级**挂载:一个 server 进程、所有会话共用同一个浏览器 / 桌面会话(page、tab、前台窗口会互相
21
+ 看见)。要每会话独立 Chromium 或把已有浏览器独占给一个会话,用 `browser-use` + 提供方那一套。
22
+
23
+ 要在打包形态里补 PATH(例如 mise 的 shim 不在 GUI 启动的环境里),用宿主侧的启动环境处理,而不是在本包钉
24
+ 绝对路径。要改 `agent-browser mcp` / `agent-desktop mcp` 的参数(`--tools`、`--session`、`--headed`),在
25
+ profile 的覆盖层里改对应行的 `config.args`;MCP 客户端字段见上游
26
+ [`dsh-mcp-client`](../../../vendor/deepseek-harness/packages/mcp/mcp-client/README.zh.md)。
27
+
28
+ ## 链接
29
+
30
+ - [MCP 客户端](../../../vendor/deepseek-harness/packages/mcp/mcp-client/README.zh.md):服务器配置、工具命名与限制。
31
+ - [MCP 资源](../../../vendor/deepseek-harness/packages/mcp/mcp-resources/README.zh.md):随附 profile 提供的资源发现与读取。
32
+ - [浏览器操作子系统](../../../vendor/deepseek-harness/docs/subsystems/browser-use.zh.md):需要会话级隔离时的提供方接法。
33
+
34
+ **插件页不挂长文**:`locale/*.json` 的 `meta.detail` 指向空文件 [`docs/detail.md`](./docs/detail.md);本 README 仍是包门面。
@@ -0,0 +1,18 @@
1
+ # 本文件由 packages/bundles/x-use-bundle/tsdown.config.ts 生成,请勿手工编辑
2
+ - insert:
3
+ - id: mcp-agent-browser
4
+ name: "@deepseek-ai/dsh-mcp-client"
5
+ config:
6
+ serverName: agent-browser
7
+ transport: stdio
8
+ command: agent-browser
9
+ args:
10
+ - mcp
11
+ - id: mcp-agent-desktop
12
+ name: "@deepseek-ai/dsh-mcp-client"
13
+ config:
14
+ serverName: agent-desktop
15
+ transport: stdio
16
+ command: agent-desktop
17
+ args:
18
+ - mcp
@@ -0,0 +1 @@
1
+ export {}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export {};
package/docs/detail.md ADDED
File without changes
package/icon.svg ADDED
@@ -0,0 +1,24 @@
1
+ <svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <rect x="5.6" y="7.4" width="24.8" height="21.2" rx="4.2" stroke="url(#window)" stroke-width="3" />
3
+ <path d="M5.6 14.4h24.8" stroke="url(#bar)" stroke-width="3" />
4
+ <path d="M10.2 11.2h.02M13.6 11.2h.02M17 11.2h.02" stroke="url(#dots)" stroke-width="3" stroke-linecap="round" />
5
+ <path d="m19.4 18.6 8.2 3.6-3.6 1.2-1.2 3.6-3.4-8.4Z" stroke="url(#cursor)" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" />
6
+ <defs>
7
+ <linearGradient id="window" x1="5.6" y1="7.4" x2="30.4" y2="28.6" gradientUnits="userSpaceOnUse">
8
+ <stop stop-color="#9FD0FF" />
9
+ <stop offset="1" stop-color="#2F6FD0" />
10
+ </linearGradient>
11
+ <linearGradient id="bar" x1="5.6" y1="14.4" x2="30.4" y2="14.4" gradientUnits="userSpaceOnUse">
12
+ <stop stop-color="#CFE6FF" />
13
+ <stop offset="1" stop-color="#5B95E8" />
14
+ </linearGradient>
15
+ <linearGradient id="dots" x1="10.2" y1="11.2" x2="17" y2="11.2" gradientUnits="userSpaceOnUse">
16
+ <stop stop-color="#E4F1FF" />
17
+ <stop offset="1" stop-color="#7FB0F0" />
18
+ </linearGradient>
19
+ <linearGradient id="cursor" x1="19.4" y1="18.6" x2="27.6" y2="27" gradientUnits="userSpaceOnUse">
20
+ <stop stop-color="#BFE2FF" />
21
+ <stop offset="1" stop-color="#3B7BDC" />
22
+ </linearGradient>
23
+ </defs>
24
+ </svg>
package/locale/en.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "Browser & Desktop Use (MCP)",
4
+ "description": "Two generic dsh-mcp-client rows mounting agent-browser's and agent-desktop's stdio MCP servers; tools arrive as mcp__agent-browser__* and mcp__agent-desktop__*. Commands resolve from the global PATH, so a missing binary simply leaves its tools out.",
5
+ "detail": "docs/detail.md"
6
+ }
7
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "meta": {
3
+ "title": "浏览器与桌面操作(MCP)",
4
+ "description": "两行通用 dsh-mcp-client:分别挂 agent-browser 与 agent-desktop 的 stdio MCP server,工具以 mcp__agent-browser__* / mcp__agent-desktop__* 进入模型目录;命令走全局 PATH 里的 bin,没装则对应工具不出现。",
5
+ "detail": "docs/detail.md"
6
+ }
7
+ }
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "@morlay/x-use-bundle",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.2",
4
+ "description": "通用 MCP 接法的一次装齐:agent-browser 与 agent-desktop 各一行 dsh-mcp-client,工具以 mcp__agent-browser__* / mcp__agent-desktop__* 进入模型目录;命令走全局 PATH 里的 bin,没装则该功能自然不可用。",
5
+ "keywords": [
6
+ "agent-browser",
7
+ "agent-desktop",
8
+ "bundle-entry",
9
+ "dsh",
10
+ "dsh-bundle",
11
+ "dsh-plugin",
12
+ "mcp"
13
+ ],
14
+ "license": "MIT",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/morlay/dsh-plugin.git"
18
+ },
19
+ "files": [
20
+ "locale/*.json",
21
+ "docs",
22
+ "dist",
23
+ "icon.svg",
24
+ "src",
25
+ "cordis.patch.yml",
26
+ "!**/__tests__"
27
+ ],
28
+ "type": "module",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.mts",
32
+ "default": "./dist/index.mjs"
33
+ },
34
+ "./package.json": "./package.json",
35
+ "./cordis.patch.yml": "./cordis.patch.yml",
36
+ "./locale/*.json": "./locale/*.json"
37
+ },
38
+ "dependencies": {
39
+ "@deepseek-ai/dsh-mcp-client": "^0.2.2-rc.1"
40
+ },
41
+ "devDependencies": {
42
+ "@local/devkit": "0.1.0"
43
+ },
44
+ "peerDependencies": {
45
+ "@deepseek-ai/cordis": "^4.1.0"
46
+ },
47
+ "icon": "./icon.svg",
48
+ "engines": {
49
+ "dsh": ">= 0.2.2-rc.1 < 0.2.3"
50
+ },
51
+ "dsh": {
52
+ "bundle": {
53
+ "patch": "./cordis.patch.yml"
54
+ }
55
+ },
56
+ "scripts": {
57
+ "build": "pnpm exec tsdown"
58
+ }
6
59
  }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export {};