dsh-perm-gate 5.5.3 → 5.5.5
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/CHANGELOG.md +5 -0
- package/CHANGELOG.pt.md +313 -0
- package/INSTALL.ja.md +3 -1
- package/INSTALL.ko.md +3 -1
- package/INSTALL.md +3 -1
- package/INSTALL.pt.md +227 -0
- package/INSTALL.zh.md +3 -1
- package/README.ja.md +5 -2
- package/README.ko.md +5 -2
- package/README.md +19 -3
- package/README.pt.md +669 -0
- package/README.zh.md +5 -2
- package/dsh.plugin.json +3 -2
- package/lib/client.js +210 -3
- package/lib/client.js.map +1 -1
- package/lib/grant.d.ts +11 -0
- package/lib/grant.js +13 -0
- package/lib/index.js +25 -0
- package/lib/runtime.d.ts +6 -0
- package/lib/runtime.js +4 -0
- package/lib/tui-command.d.ts +64 -0
- package/lib/tui-command.js +137 -0
- package/locale/pt.json +1 -0
- package/package.json +4 -1
package/README.ja.md
CHANGED
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
- [中文 README](./README.zh.md)
|
|
5
5
|
- [日本語 README](./README.ja.md)
|
|
6
6
|
- [한국어 README](./README.ko.md)
|
|
7
|
+
- [Português README](./README.pt.md)
|
|
7
8
|
- [Installation guide](./INSTALL.md)
|
|
8
9
|
- [中文安装指南](./INSTALL.zh.md)
|
|
9
10
|
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
10
11
|
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
12
|
+
- [Guia de instalação em português](./INSTALL.pt.md)
|
|
11
13
|
- [Changelog](./CHANGELOG.md)
|
|
12
14
|
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
13
15
|
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
16
|
+
- [Changelog em português](./CHANGELOG.pt.md)
|
|
14
17
|
|
|
15
18
|
> **互換性に関する注記:** v2.0.0 は `ja` / `ko` 辞書を同梱しますが、公式 DSH の
|
|
16
19
|
> `LocaleRuntime` が公開するのは `zh` / `en` のみです(`LOCALE_IDS = ["zh", "en"]`)。
|
|
@@ -64,7 +67,7 @@ fail-closed を徹底します:P0 の判定は、grant・ルール・分類器
|
|
|
64
67
|
|
|
65
68
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
66
69
|
- **対応する DSH ホスト:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` `0.2.1-rc.5` `0.2.2-rc.1`(0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 の 21 rc)
|
|
67
|
-
- **ランタイム検証済み:** `0.1.0-rc.2`, `0.1.0-rc.3`, `0.1.0-rc.6`, `0.1.0-rc.7`, `0.1.0-rc.8`, `0.1.1-rc.1`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`(証跡は `.compat-results/`)
|
|
70
|
+
- **ランタイム検証済み:** `0.1.0-rc.2`, `0.1.0-rc.3`, `0.1.0-rc.6`, `0.1.0-rc.7`, `0.1.0-rc.8`, `0.1.1-rc.1`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`, `0.2.1-rc.5`, `0.2.2-rc.1`(証跡は `.compat-results/`)
|
|
68
71
|
<!-- host-compat:end -->
|
|
69
72
|
|
|
70
73
|
## 背景
|
|
@@ -109,7 +112,7 @@ dsh plugin --profile web add dsh-perm-gate
|
|
|
109
112
|
|
|
110
113
|
インストール・アップグレード・移行・トラブルシューティングの詳細は
|
|
111
114
|
[日本語インストールガイド](./INSTALL.ja.md)([English](./INSTALL.md) /
|
|
112
|
-
[中文](./INSTALL.zh.md) / [한국어](./INSTALL.ko.md))にあります。
|
|
115
|
+
[中文](./INSTALL.zh.md) / [한국어](./INSTALL.ko.md) / [Português](./INSTALL.pt.md))にあります。
|
|
113
116
|
|
|
114
117
|
## 設定
|
|
115
118
|
|
package/README.ko.md
CHANGED
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
- [中文 README](./README.zh.md)
|
|
5
5
|
- [日本語 README](./README.ja.md)
|
|
6
6
|
- [한국어 README](./README.ko.md)
|
|
7
|
+
- [Português README](./README.pt.md)
|
|
7
8
|
- [Installation guide](./INSTALL.md)
|
|
8
9
|
- [中文安装指南](./INSTALL.zh.md)
|
|
9
10
|
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
10
11
|
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
12
|
+
- [Guia de instalação em português](./INSTALL.pt.md)
|
|
11
13
|
- [Changelog](./CHANGELOG.md)
|
|
12
14
|
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
13
15
|
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
16
|
+
- [Changelog em português](./CHANGELOG.pt.md)
|
|
14
17
|
|
|
15
18
|
> **호환성 안내:** v2.0.0은 `ja` / `ko` 사전을 포함하지만, 공식 DSH의 `LocaleRuntime`은
|
|
16
19
|
> `zh` / `en`만 노출합니다(`LOCALE_IDS = ["zh", "en"]`). 기본 DSH에서 `ja` / `ko`를
|
|
@@ -62,7 +65,7 @@ DeepSeek Harness용 단일·자족적·결정론 우선·fail-closed 권한 게
|
|
|
62
65
|
|
|
63
66
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
64
67
|
- **지원하는 DSH 호스트:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` `0.2.1-rc.5` `0.2.2-rc.1` (0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1 라인의 21개 rc)
|
|
65
|
-
- **런타임 검증됨:** `0.1.0-rc.2`, `0.1.0-rc.3`, `0.1.0-rc.6`, `0.1.0-rc.7`, `0.1.0-rc.8`, `0.1.1-rc.1`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2` (증적은 `.compat-results/`)
|
|
68
|
+
- **런타임 검증됨:** `0.1.0-rc.2`, `0.1.0-rc.3`, `0.1.0-rc.6`, `0.1.0-rc.7`, `0.1.0-rc.8`, `0.1.1-rc.1`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`, `0.2.1-rc.5`, `0.2.2-rc.1` (증적은 `.compat-results/`)
|
|
66
69
|
<!-- host-compat:end -->
|
|
67
70
|
|
|
68
71
|
## 배경
|
|
@@ -106,7 +109,7 @@ dsh plugin --profile web add dsh-perm-gate
|
|
|
106
109
|
|
|
107
110
|
설치·업그레이드·이전·문제 해결의 전체 절차는
|
|
108
111
|
[한국어 설치 안내](./INSTALL.ko.md)([English](./INSTALL.md) /
|
|
109
|
-
[中文](./INSTALL.zh.md) / [日本語](./INSTALL.ja.md))에 있습니다.
|
|
112
|
+
[中文](./INSTALL.zh.md) / [日本語](./INSTALL.ja.md) / [Português](./INSTALL.pt.md))에 있습니다.
|
|
110
113
|
|
|
111
114
|
## 설정
|
|
112
115
|
|
package/README.md
CHANGED
|
@@ -4,13 +4,16 @@
|
|
|
4
4
|
- [中文 README](./README.zh.md)
|
|
5
5
|
- [日本語 README](./README.ja.md)
|
|
6
6
|
- [한국어 README](./README.ko.md)
|
|
7
|
+
- [Português README](./README.pt.md)
|
|
7
8
|
- [Installation guide](./INSTALL.md)
|
|
8
9
|
- [中文安装指南](./INSTALL.zh.md)
|
|
9
10
|
- [日本語インストールガイド](./INSTALL.ja.md)
|
|
10
11
|
- [한국어 설치 안내](./INSTALL.ko.md)
|
|
12
|
+
- [Guia de instalação em português](./INSTALL.pt.md)
|
|
11
13
|
- [Changelog](./CHANGELOG.md)
|
|
12
14
|
- [日本語 changelog](./CHANGELOG.ja.md)
|
|
13
15
|
- [한국어 changelog](./CHANGELOG.ko.md)
|
|
16
|
+
- [Changelog em português](./CHANGELOG.pt.md)
|
|
14
17
|
|
|
15
18
|
> **Compatibility note:** v2.0.0 ships `ja` / `ko` dictionaries, but official DSH exposes
|
|
16
19
|
> only `zh` / `en` through `LocaleRuntime` (`LOCALE_IDS = ["zh", "en"]`). On stock DSH,
|
|
@@ -60,7 +63,7 @@ Strictly fail-closed: a P0 decision is never overridden by a grant, a rule, the
|
|
|
60
63
|
|
|
61
64
|
<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->
|
|
62
65
|
- **Supported DSH hosts:** `0.1.0-rc.2` `0.1.0-rc.3` `0.1.0-rc.6` `0.1.0-rc.7` `0.1.0-rc.8` `0.1.1-rc.1` `0.1.1-rc.2` `0.1.2-rc.1` `0.1.5-rc.1` `0.1.5-rc.2` `0.1.5-rc.3` `0.1.7-rc.1` `0.1.7-rc.2` `0.2.0-rc.1` `0.2.0-rc.2` `0.2.1-rc.1` `0.2.1-rc.2` `0.2.1-rc.3` `0.2.1-rc.4` `0.2.1-rc.5` `0.2.2-rc.1` (21 rc releases across lines 0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1)
|
|
63
|
-
- **Runtime-verified:** `0.1.0-rc.2`, `0.1.0-rc.3`, `0.1.0-rc.6`, `0.1.0-rc.7`, `0.1.0-rc.8`, `0.1.1-rc.1`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2` — evidence in `.compat-results/`
|
|
66
|
+
- **Runtime-verified:** `0.1.0-rc.2`, `0.1.0-rc.3`, `0.1.0-rc.6`, `0.1.0-rc.7`, `0.1.0-rc.8`, `0.1.1-rc.1`, `0.1.1-rc.2`, `0.1.2-rc.1`, `0.1.5-rc.1`, `0.1.5-rc.2`, `0.1.5-rc.3`, `0.1.7-rc.1`, `0.1.7-rc.2`, `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`, `0.2.1-rc.2`, `0.2.1-rc.3`, `0.2.1-rc.4`, `0.2.1-rc.5`, `0.2.2-rc.1` — evidence in `.compat-results/`
|
|
64
67
|
<!-- host-compat:end -->
|
|
65
68
|
|
|
66
69
|
## Why
|
|
@@ -130,7 +133,7 @@ dsh plugin --profile web add dsh-perm-gate
|
|
|
130
133
|
|
|
131
134
|
Full install, upgrade, migration and troubleshooting steps live in the
|
|
132
135
|
[Installation guide](./INSTALL.md) — also available in
|
|
133
|
-
[中文](./INSTALL.zh.md) / [日本語](./INSTALL.ja.md) / [한국어](./INSTALL.ko.md).
|
|
136
|
+
[中文](./INSTALL.zh.md) / [日本語](./INSTALL.ja.md) / [한국어](./INSTALL.ko.md) / [Português](./INSTALL.pt.md).
|
|
134
137
|
|
|
135
138
|
## Configuration
|
|
136
139
|
|
|
@@ -624,4 +627,17 @@ npm run build
|
|
|
624
627
|
|
|
625
628
|
## License
|
|
626
629
|
|
|
627
|
-
[MIT](./LICENSE)
|
|
630
|
+
[MIT](./LICENSE)
|
|
631
|
+
|
|
632
|
+
## TUI 终端面(dsh-tui)
|
|
633
|
+
|
|
634
|
+
dsh-tui 不加载插件的 client 半边(面板/卡片/设置页),也调不到插件自有 RPC;工具调用只显示一行摘要。人可读、人可操作的面只剩宿主斜杠命令。输出约定:单行 ≤100 字符、总行 ≤40、无 ANSI、两空格对齐;写操作默认 dry、加 `--yes` 才执行;`--json` 输出单行 JSON。
|
|
635
|
+
|
|
636
|
+
| 命令 | 作用 |
|
|
637
|
+
|---|---|
|
|
638
|
+
| `/gate` | 规则文件路径、默认动作、allow/deny/ask 计数 |
|
|
639
|
+
| `/gate rules` | 规则计数摘要 |
|
|
640
|
+
| `/gate why <command>` | 对一条命令干跑判定链(不执行) |
|
|
641
|
+
| `/gate history` | 最近 10 条判定/审批(审计环,`--n=20`) |
|
|
642
|
+
|
|
643
|
+
命令由插件自己在宿主侧注册(`ctx.inject(['commands'], …)`):命令服务缺席的老宿主线上不激活、不报错。
|