mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-20 16:02:00 +08:00
feat(skills): merge unavailable tools into footnote, bind cache to token, prune stale caches, warn on remote plain HTTP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
056f2d4ea3
commit
05bfd97c6e
19 changed files with 1100 additions and 496 deletions
|
|
@ -54,7 +54,7 @@ test('registerGroupSkills appends disabled footnote; skips disabled groups', asy
|
|||
lang: 'zh',
|
||||
})
|
||||
assert.ok(registered.length >= 1)
|
||||
assert.match(registered[0].content, /以下工具已禁用:netx__execManagedNe,不要调用/)
|
||||
assert.match(registered[0].content, /以下工具已禁用或当前 token 无权使用:netx__execManagedNe,不要调用/)
|
||||
dispose()
|
||||
|
||||
registered.length = 0
|
||||
|
|
@ -71,6 +71,6 @@ test('registerGroupSkills appends disabled footnote; skips disabled groups', asy
|
|||
disabledByGroup: { ops: ['netx__execManagedNe'] },
|
||||
lang: 'en',
|
||||
})
|
||||
assert.match(registered[0].content, /The following tools are disabled: netx__execManagedNe/)
|
||||
assert.match(registered[0].content, /disabled or not granted to this token: netx__execManagedNe/)
|
||||
dispose3()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue