From 1cb494daa6077dc4947e630027b65dcfb41300dc Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Thu, 23 Jul 2026 02:28:49 +0800 Subject: [PATCH] =?UTF-8?q?docs(agent):=20=E8=AE=A1=E5=88=92=E5=9B=9E?= =?UTF-8?q?=E5=A1=AB=20cleanHosts=20=E5=8E=BB=E9=87=8D=E7=9A=84=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=90=8E=E4=BF=AE=E8=AE=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 --- docs/private-dest-acl-plan.html | 1 + docs/superpowers/plans/2026-07-23-private-dest-acl.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/private-dest-acl-plan.html b/docs/private-dest-acl-plan.html index b4f020e..dcbda86 100644 --- a/docs/private-dest-acl-plan.html +++ b/docs/private-dest-acl-plan.html @@ -428,6 +428,7 @@ func (c Config) ACLLastGoodPath() string { return filepath.Join(c.StateDir, &quo
cd server && go build ./... && go test ./internal/agentd/...
 git add server/internal/agentd/acl.go server/internal/agentd/acl_test.go server/internal/agentd/config.go
 git commit -m "feat(agent): 私有目的地 ACL 配置类型与 fail-closed 加载语义"
+

执行后修订(2026-07-23,提交 d4156b8:审查指出上面的 cleanHostswarp.go 既有的 cleanDomains 是同包内逐字重复的逻辑。已按用户裁决改为 cleanDomains 委托 cleanHostsfunc (wc *WarpConfig) cleanDomains() []string { return cleanHosts(wc.Domains) },并移除 warp.go 中变为未使用的 strings import)。若日后照本计划重新实现,请直接采用委托版本,不要写回两份重复实现。


Task 2: 由 ACL 产出 route 规则对(放行 + 兜底拒绝)

Files:

diff --git a/docs/superpowers/plans/2026-07-23-private-dest-acl.md b/docs/superpowers/plans/2026-07-23-private-dest-acl.md index eee0c4e..bfe16d7 100644 --- a/docs/superpowers/plans/2026-07-23-private-dest-acl.md +++ b/docs/superpowers/plans/2026-07-23-private-dest-acl.md @@ -429,6 +429,8 @@ git add server/internal/agentd/acl.go server/internal/agentd/acl_test.go server/ git commit -m "feat(agent): 私有目的地 ACL 配置类型与 fail-closed 加载语义" ``` +> **执行后修订(2026-07-23,提交 `d4156b8`)**:审查指出上面的 `cleanHosts` 与 `warp.go` 既有的 `cleanDomains` 是同包内逐字重复的逻辑。已按用户裁决改为 **`cleanDomains` 委托 `cleanHosts`**(`func (wc *WarpConfig) cleanDomains() []string { return cleanHosts(wc.Domains) }`,并移除 `warp.go` 中变为未使用的 `strings` import)。**若日后照本计划重新实现,请直接采用委托版本,不要写回两份重复实现。** + --- ### Task 2: 由 ACL 产出 route 规则对(放行 + 兜底拒绝)