Enable NFKC folding in the squad intent gate and bump the intent pin
Why: Both intent hosts should fold compatibility-equivalent input (backend intentgate already does); the nested pin carries the I1 command model the gate depends on. Evidence: adapters/intent suite ok; all five squad modules green. Impact: NFKC on in NewFromOverlay; nested agent-intent at 2554b50.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user