diff --git a/adapters/intent/gate.go b/adapters/intent/gate.go index 3033e96..b666874 100644 --- a/adapters/intent/gate.go +++ b/adapters/intent/gate.go @@ -33,11 +33,13 @@ type Options struct { // NewFromOverlay 从 JSON overlay 构造闸门,并把 guard 域标成受保护域。 // 命令行用它,这样命令本身不必 import agent-intent。 +// NFKC 开启:全角/兼容等价输入与词条同形折叠(与 backend intentgate 一致)。 func NewFromOverlay(ctx context.Context, fsys fs.FS, roots ...string) (*Gate, error) { return New(ctx, Options{ IntentOptions: intent.Options{ GuardDomains: []string{"guard"}, ProtectedDomains: []string{"guard"}, + NFKC: true, }, FS: fsys, Roots: roots, diff --git a/deps/agent-intent b/deps/agent-intent index 65aaebc..2554b50 160000 --- a/deps/agent-intent +++ b/deps/agent-intent @@ -1 +1 @@ -Subproject commit 65aaebca1ea69ab7d48eda51d33ef1d4eea5a0bf +Subproject commit 2554b509e81383308f6264e2b3d03e443bb0d113