@kenhkl/agent-moss 0.16.5 → 0.16.6

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.
@@ -10,7 +10,13 @@ interface SecurityJudgment {
10
10
  isCredential?: boolean;
11
11
  }
12
12
 
13
- /** 把命令按 shell 的连接符切成若干段,去掉空白段。 */
13
+ /** 把命令按 shell 的连接符切成若干段,去掉空白段。
14
+
15
+ * NEW-FN-M(2026-10)起引号感知:引号内的连接符是字面量不切段
16
+ * (`echo "a; rm b"` 的 `;`、`echo "x|y"` 的 `|`),对齐 Python
17
+ * `logic_rules._split_shell_segments`(双端行为一致的单一事实源)。
18
+ * 此前不引号感知,引号内 `;|&` 被切段后,`rm` 等词脱离 echo 段被当独立命令首词。
19
+ */
14
20
  declare function splitCommandSegments(command: string): string[];
15
21
  /** 提取第一段命令(供重定向写判定等使用;导出供白名单测试断言) */
16
22
  declare function extractFirstCommand(command: string): string;