@woosau/dsh-custom-env 0.0.0-stage → 0.1.1

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) 2026 ownduck
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,53 @@
1
- # Temporary Holding Version
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.
1
+ # dsh-custom-env
2
+
3
+ English | [中文](README.zh-CN.md)
4
+
5
+ Community DeepSeek Harness plugin: manage `$DSH_HOME/.env` from **Settings → Environment**. Not an official DeepSeek AI product.
6
+
7
+ Edits apply to the Host immediately and sync to the Windows / macOS user environment (new terminals pick up OS changes). Linux user-env sync is not supported.
8
+
9
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
10
+
11
+ ## Features
12
+
13
+ - CRUD for `$DSH_HOME/.env` in Settings
14
+ - Hot-apply to the current Host process
15
+ - Sync to Windows / macOS user environment
16
+ - Rejects bootstrap names (`PATH`, `DSH_*`, `XDG_*`, …)
17
+ - Optional **Install** for the `dsh` CLI used by this Host (Windows / macOS)
18
+
19
+ ## Install
20
+
21
+ Requires a working DSH install with the `dsh` CLI. Use profile `desktop` or `web`.
22
+
23
+ ```powershell
24
+ dsh plugin --profile desktop add @woosau/dsh-custom-env
25
+ ```
26
+
27
+ ```powershell
28
+ dsh plugin --profile web add @woosau/dsh-custom-env
29
+ ```
30
+
31
+ GitHub: `dsh plugin --profile desktop add github:ownduck/dsh-custom-env`
32
+
33
+ Close Desktop first if `plugin` hits `EPERM` on the profile `package.json`. GitHub installs may need `allowBuilds.koffi: true` in the profile `pnpm-workspace.yaml` (native `koffi`). Then restart DSH and open **Settings → Environment**.
34
+
35
+ ## Uninstall
36
+
37
+ ```powershell
38
+ dsh plugin --profile desktop remove @woosau/dsh-custom-env
39
+ ```
40
+
41
+ ## Usage
42
+
43
+ 1. Open **Settings → Environment**
44
+ 2. Edit as a draft: **Confirm** writes `.env` and live Host/OS; **Cancel** reverts the inputs
45
+ 3. After Confirm, restart tips appear for new/changed rows; **Restore** writes back the Host-start value
46
+ 4. Restart DSH or open a new terminal for the full OS effect
47
+ 5. Use **Install** in the dsh block only when offered (Windows user PATH / macOS `/usr/local/bin/dsh`; may replace Desktop’s link on macOS)
48
+
49
+ Do not put bootstrap names (including `PATH`) in `.env`.
50
+
51
+ ## License
52
+
53
+ MIT
@@ -0,0 +1,53 @@
1
+ # dsh-custom-env
2
+
3
+ [English](README.md) | 中文
4
+
5
+ 社区 DeepSeek Harness 插件:在 **设置 → 环境变量** 管理 `$DSH_HOME/.env`。非 DeepSeek AI 官方产品。
6
+
7
+ 保存后立即作用于 Host,并同步到 Windows / macOS 用户环境(新开终端可见 OS 侧变更)。不同步 Linux 用户环境。
8
+
9
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
10
+
11
+ ## 功能
12
+
13
+ - 设置页管理 `$DSH_HOME/.env`
14
+ - 热写当前 Host 进程
15
+ - 同步 Windows / macOS 用户环境
16
+ - 拒绝 bootstrap 名(`PATH`、`DSH_*`、`XDG_*` 等)
17
+ - 可选为本 Host **安装** `dsh` CLI(Windows / macOS)
18
+
19
+ ## 安装
20
+
21
+ 需已安装 DSH 且可用 `dsh` CLI。profile 选 `desktop` 或 `web`。
22
+
23
+ ```powershell
24
+ dsh plugin --profile desktop add @woosau/dsh-custom-env
25
+ ```
26
+
27
+ ```powershell
28
+ dsh plugin --profile web add @woosau/dsh-custom-env
29
+ ```
30
+
31
+ GitHub:`dsh plugin --profile desktop add github:ownduck/dsh-custom-env`
32
+
33
+ 若 `plugin` 报 profile `package.json` 的 `EPERM`,先退出 Desktop。从 GitHub 安装时,profile 的 `pnpm-workspace.yaml` 可能需要 `allowBuilds.koffi: true`(原生依赖 `koffi`)。然后重启 DSH,打开 **设置 → 环境变量**。
34
+
35
+ ## 卸载
36
+
37
+ ```powershell
38
+ dsh plugin --profile desktop remove @woosau/dsh-custom-env
39
+ ```
40
+
41
+ ## 使用
42
+
43
+ 1. 打开 **设置 → 环境变量**
44
+ 2. 草稿编辑:**确定** 写入 `.env` 并热写 Host/OS;**取消** 只恢复输入框
45
+ 3. 确定后新增/修改行旁有重启提示;**恢复** 可写回 Host 启动时的值
46
+ 4. 完整生效请重启 DSH 或新开终端
47
+ 5. **dsh** 区块仅在出现按钮时点 **安装**(Windows 用户 PATH / macOS `/usr/local/bin/dsh`;macOS 上可能覆盖 Desktop 的链接)
48
+
49
+ 不要把 bootstrap 名(含 `PATH`)写进 `.env`。
50
+
51
+ ## 许可证
52
+
53
+ MIT
@@ -0,0 +1,3 @@
1
+ - insert:
2
+ - id: custom-env
3
+ name: '@woosau/dsh-custom-env'