dsh-session-curator 0.1.2 → 0.2.0
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.md +2 -2
- package/README.zh-CN.md +1 -1
- package/lib/client.js +1645 -328
- package/lib/host/fs-utils.js +44 -3
- package/lib/host/open.js +104 -0
- package/lib/host/retention.js +24 -0
- package/lib/host/routes.js +22 -1
- package/lib/host/session-manager.js +267 -20
- package/lib/host/trash.js +99 -10
- package/lib/index.js +6 -2
- package/package.json +13 -10
- package/scripts/activation.mjs +0 -358
- package/scripts/build.mjs +0 -96
- package/scripts/client.mjs +0 -691
- package/scripts/smoke.mjs +0 -382
package/README.md
CHANGED
|
@@ -33,9 +33,9 @@ From GitHub instead of npm:
|
|
|
33
33
|
dsh plugin --profile desktop add github:Motues/dsh-session-curator
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
The command runs pnpm inside that profile and records the package in both `dependencies` and `dsh.profile.bundles`. Restart DSH to pick up the host half; the client half only needs a page
|
|
36
|
+
The command runs pnpm inside that profile and records the package in both `dependencies` and `dsh.profile.bundles`. Restart DSH to pick up the host half; the client half only needs a page refresh.
|
|
37
37
|
|
|
38
|
-
The published package is dependency-free and needs no build: `lib/` is plain ESM JavaScript(`lib/index.js` for the host half, `lib/client.js` for the client bundle). Sources live in `src/` as TypeScript; contributors run `
|
|
38
|
+
The published package is dependency-free and needs no build: `lib/` is plain ESM JavaScript(`lib/index.js` for the host half, `lib/client.js` for the client bundle). Sources live in `src/` as TypeScript; contributors run `pnpm install` once and `pnpm run build` (tsc for the host half, esbuild for the client bundle) to regenerate `lib/`.
|
|
39
39
|
|
|
40
40
|
## License
|
|
41
41
|
|
package/README.zh-CN.md
CHANGED
|
@@ -35,7 +35,7 @@ dsh plugin --profile desktop add github:Motues/dsh-session-curator
|
|
|
35
35
|
|
|
36
36
|
这条命令在那个 profile 目录里跑 pnpm,并把这个包同时记进 `dependencies` 和 `dsh.profile.bundles`。宿主半区需要重启 DSH 生效,客户端半区刷新页面即可。
|
|
37
37
|
|
|
38
|
-
发布出去的包零运行时依赖、安装方无需构建:`lib/` 就是普通 ESM JavaScript(`lib/index.js` 宿主半区,`lib/client.js` 客户端束)。源码是 `src/` 下的 TypeScript:贡献者 `
|
|
38
|
+
发布出去的包零运行时依赖、安装方无需构建:`lib/` 就是普通 ESM JavaScript(`lib/index.js` 宿主半区,`lib/client.js` 客户端束)。源码是 `src/` 下的 TypeScript:贡献者 `pnpm install` 一次,再用`pnpm run build`(宿主半区走 tsc、客户端束走 esbuild)重新生成 `lib/`。
|
|
39
39
|
|
|
40
40
|
## 许可
|
|
41
41
|
|