@morlay/web-custom-profile 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 +21 -0
- package/README.md +12 -2
- package/cordis.patch.yml +35 -0
- package/icon.svg +5 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +40 -3
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,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @morlay/web-custom-profile
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**前端装配层**:把 `@morlay/dsh-client-modules` 插成行,并停用被它取代的上游行(模块表 `modules`、
|
|
4
|
+
`client-hmr`、`frontend-static`)。
|
|
5
|
+
|
|
6
|
+
- **两种形态都要它**:dev(`dshdev web` / `dshdev desktop`)由工具按 `dsh.bundle.patch` 挂在 patch 栈顶;
|
|
7
|
+
打包形态随 app 的 `dsh.profile.bundles` 进 profile——否则页面会落到上游的静态前端产物上,而产物里并没有它。
|
|
8
|
+
- **它是纯数据包**(只有 patch / locale / icon,没有源码入口),所以清单不是 tsdown 钩子写回的:
|
|
9
|
+
`build` 脚本就是一行 `pnpm exec dshdev manifest`,走同一份推导——出口按文件存在性补、`engines.dsh`
|
|
10
|
+
按 `DEEPSEEK_HARNESS_VERSION` 写(理由见 [`how-to-write.md`](../../../.agents/standards/how-to-write.md)
|
|
11
|
+
的「包出口」)。手改这两段会在下次 `just build` 被覆盖。
|
|
12
|
+
- 前端链路的设计与判据见
|
|
13
|
+
[dsh-client-modules 的设计记录](../../client/dsh-client-modules/.agents/designs/20261013-客户端资源的联邦式预编译.md)。
|
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# 源码面的 client 半:`@deepseek-ai/*` 与本仓库插件包的 `exports["./client"]` 都指到 `src/client/index.ts`,
|
|
2
|
+
# 而 `client-modules` 只会把那个文件当 JS 原样下发——所以要有人把源码半现场打成模块表的工厂脚本。
|
|
3
|
+
# 判据与实现见 [`src/`](../src/index.ts)。
|
|
4
|
+
#
|
|
5
|
+
# 这一层由**两种形态共享**:`dsh-desktopify dev`(web / 桌面)都用 `--patch` 挂它,桌面档还会再叠
|
|
6
|
+
# `desktop.cordis.patch.yml`。宿主进程由 `--import @oxc-node/core/register` 转译,所以这里直接指 TS 源码。
|
|
7
|
+
- insert:
|
|
8
|
+
- id: client-modules
|
|
9
|
+
name: "@morlay/dsh-client-modules"
|
|
10
|
+
|
|
11
|
+
# `web-runtime` **保留**:它同时管两件事——挂 `frontend-static`(服务构建产物里的 index.html,占兜底位)
|
|
12
|
+
# 与**打印 URL、交接默认浏览器**。以前为"不让兜底位跟 vite 抢"把整行停掉,代价是那两件也一起没了
|
|
13
|
+
# (启动后既没有地址行、也不会打开浏览器)。现在留着它:dev 形态下页面仍归 vite,`frontend-static`
|
|
14
|
+
# 只在它自己的路由与兜底上存在,两者按注册顺序共存。
|
|
15
|
+
|
|
16
|
+
# 上游这两行在 dev 形态下用不到,**整行停用**(含它们提供的服务):
|
|
17
|
+
# · `client-modules`——combo 打包、工厂引导器、`/plugins` 路由与**模块表 roster**(`modules` 服务)都在
|
|
18
|
+
# 这一行。页面、入口、资源与依赖预打包由 vite dev server 提供,模块表那一套不再需要;
|
|
19
|
+
# **但它对外承诺的 `modules` 服务面要有人接**:上游 `ui-settings-general` 的 client 插件 inject 它
|
|
20
|
+
# (设置入口占位者),缺了服务那一行就不 apply、侧栏左下角的设置入口整个消失——由
|
|
21
|
+
# `@morlay/dsh-client-modules` 的 client 半补上(见该包的 README);
|
|
22
|
+
# · `client-hmr`——热替换由 vite 的通道接管。
|
|
23
|
+
#
|
|
24
|
+
- id: modules
|
|
25
|
+
disabled: true
|
|
26
|
+
- id: client-hmr
|
|
27
|
+
disabled: true
|
|
28
|
+
|
|
29
|
+
# **插件管理页保留**(`ui-plugin-manager`:它只依赖 `remote.pluginManager*` 那几个 remote 面,
|
|
30
|
+
# 不依赖被停用的模块表);停的只是**设置页里的插件清单**——那两行要 `modules` 服务
|
|
31
|
+
# (模块表 roster)与 bundle 清单,模块表已随 `client-modules` 退场,留着只会是空页。
|
|
32
|
+
- id: ui-settings-plugin-inventory
|
|
33
|
+
disabled: true
|
|
34
|
+
- id: ui-settings-plugins
|
|
35
|
+
disabled: true
|
package/icon.svg
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg width="36" height="36" viewBox="0 0 36 36" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<title>dev profile</title>
|
|
3
|
+
<rect x="6.5" y="6.5" width="23" height="23" rx="6" stroke="currentColor" stroke-width="3" />
|
|
4
|
+
<path d="M12 18h12M18 12v12" stroke="currentColor" stroke-width="3" stroke-linecap="round" />
|
|
5
|
+
</svg>
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/web-custom-profile",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Dev-only dsh profile bundle: mounts @morlay/dsh-client-modules (our vite + federated prebundle frontend chain) and disables the upstream module-table rows it replaces — shared by `dshdev web` and `dshdev desktop`.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"client-modules",
|
|
7
|
+
"dev",
|
|
8
|
+
"dsh",
|
|
9
|
+
"dsh-bundle",
|
|
10
|
+
"dsh-plugin"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/morlay/dsh-plugin.git"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"locale/*.json",
|
|
19
|
+
"icon.svg",
|
|
20
|
+
"cordis.patch.yml",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"exports": {
|
|
24
|
+
"./package.json": "./package.json",
|
|
25
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
26
|
+
"./locale/*.json": "./locale/*.json"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@morlay/dsh-client-modules": "0.2.8"
|
|
30
|
+
},
|
|
31
|
+
"icon": "./icon.svg",
|
|
32
|
+
"engines": {
|
|
33
|
+
"dsh": ">= 0.2.1-rc.1 < 0.2.2"
|
|
34
|
+
},
|
|
35
|
+
"dsh": {
|
|
36
|
+
"bundle": {
|
|
37
|
+
"patch": "./cordis.patch.yml"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"build": "pnpm exec dshdev manifest"
|
|
42
|
+
}
|
|
6
43
|
}
|