@saoutax/dsh-full-access 0.1.0 → 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.
Files changed (3) hide show
  1. package/README.md +5 -19
  2. package/README.zh.md +5 -19
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,11 @@ English | [简体中文](README.zh.md)
4
4
 
5
5
  A DeepSeek Harness plugin with two jobs: every new session starts in **Full access**, and the composer's permission chip switches modes without the extra risk confirmation.
6
6
 
7
+ > [!CAUTION]
8
+ > Confirm you understand what you are doing before installing. This plugin starts new sessions in Full access and removes the risk confirmation from the composer switch.
9
+ >
10
+ > Full access runs without a sandbox and does not ask for approval per action: the model can read and write any file the current OS account can reach, run commands, and affect this machine and its network. Accidental deletion, unwanted edits, or data leaving the machine can happen in this mode, and are not always reversible. Back up first, keep important data under version control, or run in an isolated environment. Not recommended for complete beginners; do not enable it while you are unsure what these risks mean. Disabling the plugin restores the shipped default permission and confirmation flow.
11
+
7
12
  ## What it changes
8
13
 
9
14
  - **New-session default.** When an Agent is created for a new conversation, the plugin pins the configured preset (default `danger-full-access`) onto that session. Resumed sessions, compacted sessions, and seeded forks keep the permission they inherited.
@@ -26,23 +31,6 @@ The Plugin Manager also installs a bundle from a directory or a packed `.tgz`, w
26
31
 
27
32
  After installation the plugin runs immediately; the Web page reloads its client graph and the composer chip appears in place of the shipped one.
28
33
 
29
- ## Configuration
30
-
31
- | Field | Default | Meaning |
32
- | --------------- | -------------------- | ---------------------------------------------------- |
33
- | `defaultPreset` | `danger-full-access` | Preset pinned into every newly created conversation. |
34
-
35
- The row lives in the profile's `cordis.patch.yml`:
36
-
37
- ```yaml
38
- - id: full-access
39
- name: '@saoutax/dsh-full-access'
40
- config:
41
- defaultPreset: danger-full-access
42
- ```
43
-
44
- The preset has to be one the deployment publishes through `@deepseek-ai/dsh-permission-presets`. When it is not, the plugin logs a warning at activation and leaves new sessions on the composed default.
45
-
46
34
  ## Compatibility and maintenance
47
35
 
48
36
  The plugin registers one extra entry in the existing `conversation.input.permission` slot at a lower priority than the shipped chip; a single slot renders the lowest priority, so the two never render together and disabling this plugin restores the shipped chip. The rest is plain use of public surfaces:
@@ -71,8 +59,6 @@ pnpm run lint # syntax lint
71
59
 
72
60
  Every push to `main` runs CI. On `main`, [release-please](https://github.com/googleapis/release-please) keeps one release PR open with the next version and the CHANGELOG entry. Merging that PR creates the tag and the GitHub Release, attaches the packed `.tgz`, and publishes that exact tag to npm.
73
61
 
74
- The npm job needs a repository secret `NPM_TOKEN`: an npm automation token with publish rights for the `@saoutax` scope. Once the package exists on npm, a trusted publisher (repository `Saoutax/dsh-full-access`, workflow `release.yml`, environment `npm-publish`) can replace the token; see the comment in the workflow.
75
-
76
62
  ## Icons
77
63
 
78
64
  The chip and menu glyphs reproduce the icon set that ships with DeepSeek Harness (MIT), so the control looks like the one it replaces. The plugin's own `icon.svg` is generated at build time from [Lucide](https://lucide.dev) icon data (`unlock-keyhole`); Lucide is licensed under the [ISC License](https://lucide.dev/license) and is used only by the build, never bundled into the client half.
package/README.zh.md CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  一个 DeepSeek Harness 插件,做两件事:新会话默认使用**完全权限**;输入框的权限芯片切换模式时不再弹额外的风险确认。
6
6
 
7
+ > [!CAUTION]
8
+ > 安装前请确认你清楚自己在做什么。本插件让新会话默认进入「完全权限」,并去掉输入框切换时的风险确认。
9
+ >
10
+ > 完全权限不启用沙箱,也不逐次征求批准:模型可以直接读写当前操作系统账号能访问的文件、执行命令,并影响这台机器和网络。误删、误改文件,或把本机数据发送出去,都可能在这个模式下发生,且不一定能撤销。请先做好备份、把重要内容纳入版本控制,或在隔离环境里运行。不建议纯新手安装;不确定这些风险意味着什么时,先不要启用。停用本插件会恢复官方的默认权限与确认流程。
11
+
7
12
  ## 改变的行为
8
13
 
9
14
  - **新会话默认值。** Agent 为新对话创建时,插件把配置的预设(默认 `danger-full-access`)写入该会话。恢复的会话、压缩后的会话和带种子的分叉保留它们继承的权限。
@@ -26,23 +31,6 @@ Plugin Manager 也支持从目录或打包好的 `.tgz` 安装,适合离线安
26
31
 
27
32
  安装后插件立即生效,页面会重建客户端模块图,输入框芯片替换为我们的控件。
28
33
 
29
- ## 配置
30
-
31
- | 字段 | 默认值 | 含义 |
32
- | --------------- | -------------------- | ------------------------ |
33
- | `defaultPreset` | `danger-full-access` | 写入每个新建对话的预设。 |
34
-
35
- 这一行位于 profile 的 `cordis.patch.yml`:
36
-
37
- ```yaml
38
- - id: full-access
39
- name: '@saoutax/dsh-full-access'
40
- config:
41
- defaultPreset: danger-full-access
42
- ```
43
-
44
- 预设必须是本部署通过 `@deepseek-ai/dsh-permission-presets` 发布过的名字。如果不在目录里,插件会在激活时记录一条警告,新会话继续使用组合配置的默认权限。
45
-
46
34
  ## 兼容性与维护
47
35
 
48
36
  插件只在既有的 `conversation.input.permission` 槽里新增一个注册,priority 低于官方芯片;single 槽只渲染 priority 最低的注册,所以两者不会同时出现,停用本插件就恢复官方芯片。其余都是公开接口:
@@ -71,8 +59,6 @@ pnpm run lint # 语法 lint
71
59
 
72
60
  每次推送到 `main` 都会运行 CI。在 `main` 上,[release-please](https://github.com/googleapis/release-please) 会保持一个发布 PR,包含下一个版本号与 CHANGELOG 条目。合并该 PR 后创建 tag 与 GitHub Release,附加打包好的 `.tgz`,并把同一个 tag 发布到 npm。
73
61
 
74
- npm 作业需要仓库 secret `NPM_TOKEN`:一个有 `@saoutax` 作用域发布权限的 npm automation token。包在 npm 上存在之后,可以改用 trusted publisher(仓库 `Saoutax/dsh-full-access`、workflow `release.yml`、environment `npm-publish`)替代 token,工作流注释里写了具体位置。
75
-
76
62
  ## 图标
77
63
 
78
64
  芯片与菜单字形复制自 DeepSeek Harness 自带的图标集(MIT),让控件看起来与被替换的官方控件一致。插件自己的 `icon.svg` 在构建时由 [Lucide](https://lucide.dev) 图标数据生成(`unlock-keyhole`);Lucide 使用 [ISC 许可证](https://lucide.dev/license),只在构建阶段使用,不会打进客户端产物。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saoutax/dsh-full-access",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Default every new session to Full access and drop the risk confirmation from the composer permission chip.",
5
5
  "license": "MIT",
6
6
  "repository": {