mm_power 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -166,7 +166,7 @@ console.log(result || '所有权限检查通过');
166
166
  ### RBAC与字段权限结合示例
167
167
 
168
168
  ```javascript
169
- const { Power } = require('./index');
169
+ const { Power } = require('mm_power');
170
170
 
171
171
  // 创建权限实例
172
172
  const power = new Power();
@@ -381,4 +381,13 @@ mm_power鉴权模块经过全面的功能验证,完全满足您的需求:
381
381
 
382
382
  ---
383
383
 
384
- 查看更多使用示例,请查看 [EXAMPLES.md](EXAMPLES.md) 文件。
384
+ 查看更多使用示例,请查看 [EXAMPLES.md](EXAMPLES.md) 文件。
385
+
386
+ ## 工具契约(LLM 可调用)
387
+
388
+ 本模块 `tool/` 下登记以下工具契约,实现位于 `lib/tools/<name>/`,`tool/<name>/index.js` 仅为薄适配层。
389
+ 其它模块可直接 `require('<pkg>').tools.<name>` 复用实现,无需经过工具注册面。
390
+
391
+ | 工具名 | 标题 | 说明 |
392
+ | --- | --- | --- |
393
+ | `power` | RBAC 权限校验 | 管理组/字段等级/综合权限校验 |