dsh-feishu-auth 0.2.0 → 0.2.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/README.md +8 -1
- package/disable.patch.yml +12 -4
- package/enable.patch.yml +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,13 +80,20 @@ dsh web --no-open --host 0.0.0.0 --port 3080 --trusted-host <你的隧道域名>
|
|
|
80
80
|
| 换了地址要重新登录 | 正常:Cookie 按来源隔离,https 隧道与 `http://127.0.0.1` 各算一处 |
|
|
81
81
|
| 被自己关在门外 / 想彻底回退 | 用 `disable.patch.yml` 启动一次(见下),或给那行加 `disabled: true` 后重启 |
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
临时停用(凭证写错、飞书挂了、改错配置把自己锁在外面)—— `--patch` 收的是**路径**,所以指向你实际装的那一份:
|
|
84
84
|
|
|
85
85
|
```sh
|
|
86
|
+
# 从 npm 安装的(推荐):包在 profile 的 node_modules 里
|
|
87
|
+
dsh --profile web --patch ~/.dsh/profiles/web/node_modules/dsh-feishu-auth/disable.patch.yml \
|
|
88
|
+
--no-open --host 0.0.0.0 --port 3080
|
|
89
|
+
|
|
90
|
+
# 本地源码跑的
|
|
86
91
|
dsh --profile web --patch ~/.dsh/plugins/dsh-feishu-auth/disable.patch.yml \
|
|
87
92
|
--no-open --host 0.0.0.0 --port 3080
|
|
88
93
|
```
|
|
89
94
|
|
|
95
|
+
overlay 里只有 `- id: feishu-auth` + `disabled: true`,按 id 覆盖组合包自带的那一行,所以**与代码从哪加载无关**;需要路径的只有 `--patch` 自己。
|
|
96
|
+
|
|
90
97
|
## 文档
|
|
91
98
|
|
|
92
99
|
- [AGENTS.md](AGENTS.md) — 面向 agent 与维护者:安装激活、运维速查、开发约束、改动流程
|
package/disable.patch.yml
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
# Boot the page WITHOUT the Feishu login gate
|
|
2
|
-
# are wrong and the gate is refusing everyone
|
|
1
|
+
# Boot the page WITHOUT the Feishu login gate — the rescue path, e.g. the
|
|
2
|
+
# credentials are wrong and the gate is refusing everyone.
|
|
3
3
|
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
4
|
+
# `--patch` takes a PATH, so point it at the copy you actually have:
|
|
5
|
+
#
|
|
6
|
+
# installed from npm : ~/.dsh/profiles/<profile>/node_modules/dsh-feishu-auth/disable.patch.yml
|
|
7
|
+
# local source tree : ~/.dsh/plugins/dsh-feishu-auth/disable.patch.yml
|
|
8
|
+
#
|
|
9
|
+
# dsh --profile web --patch <that path> --no-open --host 0.0.0.0 --port 3080
|
|
10
|
+
#
|
|
11
|
+
# The row below is id-targeted (`- id: feishu-auth`), so it overrides the
|
|
12
|
+
# bundle's own row no matter where the code was loaded from — only `--patch`
|
|
13
|
+
# needs a real path.
|
|
6
14
|
- id: feishu-auth
|
|
7
15
|
disabled: true
|
package/enable.patch.yml
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# Kept so an existing launch command that passes this overlay keeps working:
|
|
2
2
|
#
|
|
3
|
-
# dsh --profile web --patch
|
|
4
|
-
#
|
|
3
|
+
# dsh --profile web --patch <path>/enable.patch.yml --no-open --host 0.0.0.0 --port 3080
|
|
4
|
+
#
|
|
5
|
+
# `<path>` is whichever copy you have (same rule as disable.patch.yml):
|
|
6
|
+
#
|
|
7
|
+
# installed from npm : ~/.dsh/profiles/<profile>/node_modules/dsh-feishu-auth/
|
|
8
|
+
# local source tree : ~/.dsh/plugins/dsh-feishu-auth/
|
|
5
9
|
#
|
|
6
10
|
# The profile row is enabled by default, so this file is a no-op. To boot the
|
|
7
11
|
# page WITHOUT the login gate, use disable.patch.yml instead.
|