@kenhkl/agent-moss 0.17.35 → 0.17.36

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/dist/cli.js CHANGED
@@ -14377,6 +14377,14 @@ async function analyzeRoute(c) {
14377
14377
  try {
14378
14378
  const body = await c.req.json();
14379
14379
  const req = AnalyzeRequestSchema.parse(normalizeObservablePayload(body));
14380
+ const unmappedTool = String(
14381
+ req.metadata?.unmapped_tool || ""
14382
+ );
14383
+ if (unmappedTool) {
14384
+ degradedNotes.push(
14385
+ `\u3010\u5DF2\u964D\u7EA7\u3011\u5DE5\u5177\u540D '${unmappedTool}' \u672A\u8BC6\u522B\u4E3A\u6807\u51C6\u52A8\u4F5C\u7C7B\u578B\uFF1A\u4F9D\u8D56\u52A8\u4F5C\u7C7B\u578B\u7684 L2 \u89C4\u5219\uFF08\u8BFB\u540E\u5199 / \u7EC4\u5408\u94FE / \u6388\u6743\uFF09\u53EF\u80FD\u672A\u751F\u6548\uFF1BL1\uFF08\u547D\u4EE4\u5185\u5BB9\uFF09\u4E0E L3 \u6B63\u5E38\u3002\u53EF\u5728 AgentGate \u914D\u7F6E AGENT_GATE_TOOL_NAME_MAP \u8865\u5145\u6620\u5C04\uFF08\u5982 {"${unmappedTool}": "read"}\uFF09\u3002`
14386
+ );
14387
+ }
14380
14388
  let osType = req.os_type;
14381
14389
  if (!osType) {
14382
14390
  osType = process.platform === "win32" ? "windows" : "linux";
package/dist/server.js CHANGED
@@ -14035,6 +14035,14 @@ async function analyzeRoute(c) {
14035
14035
  try {
14036
14036
  const body = await c.req.json();
14037
14037
  const req = AnalyzeRequestSchema.parse(normalizeObservablePayload(body));
14038
+ const unmappedTool = String(
14039
+ req.metadata?.unmapped_tool || ""
14040
+ );
14041
+ if (unmappedTool) {
14042
+ degradedNotes.push(
14043
+ `\u3010\u5DF2\u964D\u7EA7\u3011\u5DE5\u5177\u540D '${unmappedTool}' \u672A\u8BC6\u522B\u4E3A\u6807\u51C6\u52A8\u4F5C\u7C7B\u578B\uFF1A\u4F9D\u8D56\u52A8\u4F5C\u7C7B\u578B\u7684 L2 \u89C4\u5219\uFF08\u8BFB\u540E\u5199 / \u7EC4\u5408\u94FE / \u6388\u6743\uFF09\u53EF\u80FD\u672A\u751F\u6548\uFF1BL1\uFF08\u547D\u4EE4\u5185\u5BB9\uFF09\u4E0E L3 \u6B63\u5E38\u3002\u53EF\u5728 AgentGate \u914D\u7F6E AGENT_GATE_TOOL_NAME_MAP \u8865\u5145\u6620\u5C04\uFF08\u5982 {"${unmappedTool}": "read"}\uFF09\u3002`
14044
+ );
14045
+ }
14038
14046
  let osType = req.os_type;
14039
14047
  if (!osType) {
14040
14048
  osType = process.platform === "win32" ? "windows" : "linux";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kenhkl/agent-moss",
3
- "version": "0.17.35",
3
+ "version": "0.17.36",
4
4
  "description": "Multi-layer security analysis engine for AI agents (TypeScript)",
5
5
  "type": "module",
6
6
  "main": "dist/server.js",