@deepseek-ai/dsh-host-frontend-static 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/host/frontend-static/README.md
5
- README.md: 9d959a1031f7d4f8e7fec051504ad5773b33e618
6
- README.zh.md: 85ebaa7729541a61145dfe3b73cdaebfd6e11855
5
+ README.md: e616c048119fc1ce75ad29b002c3298b84169af9
6
+ README.zh.md: a434ea9a7ca6c36a8e1e178a48129aa397491120
package/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- Browsers get the built Web shell from `dsh-host-frontend-static`: it claims the [webserver](../webserver/README.md) fallback seat and serves the built frontend directory with locked semantics — only the dist root and the configured index path render `index.html` (HTTP 200), other existing files are served directly, an absent or non-file target inside the dist root — including a missing configured index — returns an empty 404, traversal outside the dist root is 403, unknown extensions ship as `application/octet-stream`, and non-GET/HEAD without a matching named route is 405. Every successful index response is rendered through the webserver's `renderIndex`, which is how the boot manifest reaches the page. The fallback seat is single-owner: a second claim throws, and unloading the plugin releases the seat.
12
+ Serve the built Web shell to browsers from its configured distribution directory. The root and configured index path render the bootstrapped index; existing assets are served directly, while missing or non-file paths return 404, traversal returns 403, and unsupported methods return 405. Index access requires a valid process token or browser cookie, but static assets remain public. Only one instance can handle unmatched routes at a time; a second activation fails, and unloading the active instance makes unmatched requests return 404.
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-host-frontend-static` 获取已构建的 Web 壳:它占据 [webserver](../webserver/README.zh.md) 回退席位,并按锁定语义服务已构建前端目录——只有 dist 根目录与配置的 index 路径以 HTTP 200 渲染 `index.html`,其他已有文件直接提供,dist 根目录内缺失或非文件的 target(包括配置的 index 缺失)返回空 404,越出 dist 根目录的遍历返回 403,未知扩展名按 `application/octet-stream` 提供,GET/HEAD 之外的方法在没有匹配的具名路由时返回 405。每个成功的 index 响应都经 webserver `renderIndex` 渲染,启动 manifest(元数据清单)就是经这条路径送达页面的。回退席位只有单一所有者:第二次占据会抛错,卸载插件即释放席位。
12
+ 从配置的发布目录向浏览器提供已构建的 Web 壳。根路径与配置的 index 路径渲染包含启动信息的 index;已有资产直接提供,而缺失或非文件路径返回 404、路径遍历返回 403、不支持的方法返回 405。访问 index 需要有效的进程 token 或浏览器 cookie,但静态资产仍可公开访问。同一时间只能有一个实例处理未匹配的路由;第二个实例启动失败,卸载活动实例后,未匹配的请求返回 404。
13
13
 
14
14
  ## 目录
15
15
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-host-frontend-static",
3
3
  "description": "SPA dist server for the Web shell: owns the webserver fallback seat, serving explicit index entries and static assets with traversal rejection and 404 misses",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.5-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -27,8 +27,8 @@
27
27
  ],
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "@deepseek-ai/dsh-host-webserver": "^0.1.3-alpha.2",
31
- "@deepseek-ai/dsh-client-connection": "^0.1.3-alpha.2",
30
+ "@deepseek-ai/dsh-client-connection": "^0.1.5-alpha.2",
31
+ "@deepseek-ai/dsh-host-webserver": "^0.1.5-alpha.2",
32
32
  "@deepseek-ai/cordis": "^4.0.2"
33
33
  },
34
34
  "dependencies": {
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
39
- "@deepseek-ai/dsh-client-connection": "^0.1.3-alpha.2",
40
- "@deepseek-ai/dsh-credentials-local": "^0.1.3-alpha.2",
41
- "@deepseek-ai/dsh-host-webserver": "^0.1.3-alpha.2",
42
- "@deepseek-ai/cordis": "^4.0.2"
39
+ "@deepseek-ai/dsh-client-connection": "^0.1.5-alpha.2",
40
+ "@deepseek-ai/dsh-credentials-local": "^0.1.5-alpha.2",
41
+ "@deepseek-ai/cordis": "^4.0.2",
42
+ "@deepseek-ai/dsh-host-webserver": "^0.1.5-alpha.2"
43
43
  }
44
44
  }