Conversation
- 注册 agent.pre_rules 权限与 islandcaller_call 前置规则 - 命中“点名/随机点名/抽N个同学”时直接调用 call_island_caller - 仅当 ClassIsland 端探测到 IslandCaller 可用时才注册规则,避免抢占 SecRandom 关键词 - 增加前置规则解析/渲染单测(npm test) - SKILL.md / README 补充 IslandCaller 工具与名单管理说明
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
响应 SECTL/SecAgent#3:让「ClassIsland 联动」连接插件能够调用 ClassIsland 端插件的
call_island_caller工具驱动 IslandCaller 随机点名,并仿照SecRandom-SecAgent-Connector的前置规则在匹配“点名”类指令时绕过 LLM 直接触发。改动
secagent-plugin.json:版本 1.0.2 → 1.1.0;权限新增agent.pre_rules。main.mjs:parseIslandCallerPreRule/renderIslandCallerResult(已导出便于测试)。正则匹配「点名/点个名/随机点名/抽人/抽N个同学/在ClassIsland里点名」等(含中文/阿拉伯数字人数)。list_island_caller_profiles)才注册islandcaller_call前置规则,避免同时安装 SecRandom 联动插件时抢占「点名/抽人」关键词;连接时注册、断开时注销(与现有 5 秒刷新机制一致)。call_island_caller并渲染「已随机点名 N 人:…」;未安装/未就绪时渲染工具返回的友好文案。skills/classisland/SKILL.md、README.md:补充 IslandCaller 工具契约与名单管理说明(call_island_caller、list_island_caller_profiles、read_island_caller_roster、write_island_caller_roster)。package.json/test/main.test.mjs(新增):npm test用例覆盖规则匹配、人数解析与结果渲染。验证
node --check main.mjs通过;npm test8/8 通过;npm run build产出dist/classisland-connector-1.1.0.zip。注意事项
classisland-connector-1.1.0.zip),市场索引刷新后 SecAgent 会自动更新。