@tokenslim/cli-binary-darwin-arm64 0.2.0

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.
Files changed (71) hide show
  1. package/README.md +26 -0
  2. package/bin/tokenslim +0 -0
  3. package/bin/tokenslim-server +0 -0
  4. package/config/android_gradle.json +52 -0
  5. package/config/ansi_cleaner.json +31 -0
  6. package/config/ansible.json +47 -0
  7. package/config/artifact_summary.json +56 -0
  8. package/config/bazel.json +45 -0
  9. package/config/build_plugin.route.json +145 -0
  10. package/config/ci_log.json +60 -0
  11. package/config/ci_log.route.json +28 -0
  12. package/config/cloud_log.json +94 -0
  13. package/config/cloudformation.json +43 -0
  14. package/config/db_log.json +51 -0
  15. package/config/dotnet.json +27 -0
  16. package/config/encoding_fallback.json +25 -0
  17. package/config/explain.json +23 -0
  18. package/config/gcc_log.json +62 -0
  19. package/config/generic_text.json +29 -0
  20. package/config/generic_text_plugin.route.json +9 -0
  21. package/config/git_diff.json +30 -0
  22. package/config/helm.json +49 -0
  23. package/config/java_stack.json +54 -0
  24. package/config/json.json +39 -0
  25. package/config/kubernetes_docker.json +31 -0
  26. package/config/markdown.json +27 -0
  27. package/config/maven.json +29 -0
  28. package/config/minify_code.json +29 -0
  29. package/config/ndjson.json +26 -0
  30. package/config/node_error.json +42 -0
  31. package/config/node_plugin.route.json +53 -0
  32. package/config/nodejs.json +44 -0
  33. package/config/noise_filter.json +25 -0
  34. package/config/php_ruby.json +31 -0
  35. package/config/protobuf.json +49 -0
  36. package/config/pulumi.json +47 -0
  37. package/config/pytest.json +42 -0
  38. package/config/python_traceback.json +49 -0
  39. package/config/rust_go.json +44 -0
  40. package/config/shell_session.json +29 -0
  41. package/config/smart_code.json +32 -0
  42. package/config/smart_path.json +25 -0
  43. package/config/spring_boot.json +31 -0
  44. package/config/sql.json +27 -0
  45. package/config/static_rule.json +28 -0
  46. package/config/syslog.json +33 -0
  47. package/config/template_driven.json +25 -0
  48. package/config/terraform.json +49 -0
  49. package/config/unity_unreal.json +27 -0
  50. package/config/vcs.json +35 -0
  51. package/config/vcs_az.json +35 -0
  52. package/config/vcs_bitbucket.json +35 -0
  53. package/config/vcs_bzr.json +33 -0
  54. package/config/vcs_cvs.json +35 -0
  55. package/config/vcs_darcs.json +32 -0
  56. package/config/vcs_fossil.json +33 -0
  57. package/config/vcs_gerrit.json +38 -0
  58. package/config/vcs_gh.json +36 -0
  59. package/config/vcs_git.json +35 -0
  60. package/config/vcs_glab.json +34 -0
  61. package/config/vcs_hg.json +35 -0
  62. package/config/vcs_p4.json +34 -0
  63. package/config/vcs_plugin.route.json +411 -0
  64. package/config/vcs_repo.json +34 -0
  65. package/config/vcs_svn.json +28 -0
  66. package/config/web_log.json +74 -0
  67. package/config/webpack_vite.json +29 -0
  68. package/config/xcode_log.json +40 -0
  69. package/config/xml_html.json +34 -0
  70. package/config/yaml.json +37 -0
  71. package/package.json +26 -0
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "nodejs",
3
+ "description": "Node.js 日志脱水",
4
+ "priority": 180,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": [
11
+ "node_modules",
12
+ "npm ",
13
+ "yarn ",
14
+ "webpack",
15
+ "TypeScript",
16
+ "Error:",
17
+ "at Object.<anonymous>"
18
+ ]
19
+ }
20
+ ],
21
+ "min_match_ratio": 0.1
22
+ },
23
+ "compress": {
24
+ "token_prefix": "$NODE",
25
+ "path_patterns": [
26
+ "node_modules/[\\w@/-]+",
27
+ "/\\.js/:\\d+:\\d+"
28
+ ],
29
+ "dedup": {
30
+ "enabled": true,
31
+ "threshold": 1
32
+ }
33
+ },
34
+ "keep_signals": [
35
+ "Error / TypeError 行",
36
+ "npm ERR! 行",
37
+ "WARN 行"
38
+ ],
39
+ "compress_targets": [
40
+ "npm 下载进度折叠",
41
+ "node_modules 路径压缩"
42
+ ],
43
+ "design_intent": "Node.js 运行时日志脱水:保留错误和 npm 错误,折叠下载进度。"
44
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "noise_filter",
3
+ "description": "噪声过滤",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$NOISE_"
17
+ },
18
+ "keep_signals": [
19
+ "纯文本行(非二进制控制字符)"
20
+ ],
21
+ "compress_targets": [
22
+ "二进制数据(替换为 [BINARY_DATA: Size=..., MD5=...] 标记)"
23
+ ],
24
+ "design_intent": "噪声过滤:检测并替换二进制数据为简短标记,保留纯文本内容。"
25
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "php_ruby",
3
+ "description": "PHP/Ruby 错误栈脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$PHP_RU"
17
+ },
18
+ "keep_signals": [
19
+ "Fatal error: 行(PHP 致命错误)",
20
+ "PHP Stack trace: 行(PHP 堆栈追踪)",
21
+ "Uncaught Error: 行(PHP 未捕获错误)",
22
+ "ActionView::Template::Error(Ruby 模板错误)",
23
+ ".rb: 行(Ruby 文件引用)",
24
+ "rake aborted!(Rake 中止)",
25
+ "HTML 错误页面标题(Whoops! / exception_title)"
26
+ ],
27
+ "compress_targets": [
28
+ "HTML 标签包裹(<html>/<div> 等)"
29
+ ],
30
+ "design_intent": "PHP/Ruby 错误栈脱水:保留错误关键行,折叠 HTML 包裹。"
31
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "protobuf",
3
+ "description": "protoc/buf diagnostic compaction",
4
+ "priority": 96,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": [
11
+ "protoc",
12
+ ".proto:",
13
+ "warning: Field",
14
+ "Type \""
15
+ ]
16
+ }
17
+ ],
18
+ "min_match_ratio": 0.01
19
+ },
20
+ "compress": {
21
+ "token_prefix": "$PB",
22
+ "path_patterns": [
23
+ "[^:\\s]+\\.proto"
24
+ ],
25
+ "dedup": {
26
+ "enabled": true,
27
+ "threshold": 1
28
+ }
29
+ },
30
+ "decompress": {
31
+ "token_prefixes": [
32
+ "$PB",
33
+ "$P"
34
+ ]
35
+ },
36
+ "keep_signals": [
37
+ "error 诊断行(保留错误位置和消息)",
38
+ "warning 诊断行(最多前6个)",
39
+ "错误计数和警告计数(汇总行)",
40
+ "is_error_line 匹配的行(错误信号)"
41
+ ],
42
+ "compress_targets": [
43
+ ".proto 文件路径(替换为 $PB 令牌字典)",
44
+ "多余空白字符(compact_spaces 压缩)",
45
+ "重复的警告(超过6个后丢弃)",
46
+ "非诊断且非错误信号的行(丢弃)"
47
+ ],
48
+ "design_intent": "Protobuf脱水:保留诊断信息,折叠重复警告,压缩文件路径。"
49
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "pulumi",
3
+ "description": "Pulumi preview/up output compaction",
4
+ "priority": 92,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": [
11
+ "Previewing update",
12
+ "Updating (",
13
+ "pulumi:pulumi:Stack",
14
+ "pulumi up"
15
+ ]
16
+ }
17
+ ],
18
+ "min_match_ratio": 0.01
19
+ },
20
+ "compress": {
21
+ "token_prefix": "$PUL",
22
+ "resource_patterns": [
23
+ "[+\\-~]\\s+[\\w:./-]+\\s+[\\w./-]+"
24
+ ],
25
+ "dedup": {
26
+ "enabled": true,
27
+ "threshold": 1
28
+ }
29
+ },
30
+ "decompress": {
31
+ "token_prefixes": [
32
+ "$PUL",
33
+ "$P"
34
+ ]
35
+ },
36
+ "keep_signals": [
37
+ "错误行(保留错误信号,如包含error:的行)",
38
+ "Resources: 行(保留资源计数摘要行)",
39
+ "操作计数汇总(如A: 3 D: 1 M: 2,在行尾添加)"
40
+ ],
41
+ "compress_targets": [
42
+ "详细资源行(匹配+/-~模式的资源行,折叠为操作类型+字典调用的短标记)",
43
+ "资源URN和类型(通过dict_engine.add_path_layered进行令牌字典替换)",
44
+ "非资源非错误非摘要行(可能被丢弃或压缩)"
45
+ ],
46
+ "design_intent": "Pulumi部署输出脱水:保留错误信号和资源操作摘要,折叠详细资源行为操作类型+字典化URN,压缩非关键行。"
47
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "pytest",
3
+ "description": "pytest session and result compaction",
4
+ "priority": 97,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": [
11
+ "pytest",
12
+ "test session starts",
13
+ "collected ",
14
+ "short test summary info",
15
+ "::test_"
16
+ ]
17
+ }
18
+ ],
19
+ "min_match_ratio": 0.01
20
+ },
21
+ "compress": {
22
+ "token_prefix": "$PYTEST",
23
+ "dedup": {
24
+ "enabled": true,
25
+ "threshold": 1
26
+ }
27
+ },
28
+ "keep_signals": [
29
+ "collected 行(测试收集信息)",
30
+ "测试结果行(如 test.py::test_func PASSED)",
31
+ "summary 行(如 1 failed, 10 passed)",
32
+ "测试 session 开始行(如 test session starts)"
33
+ ],
34
+ "compress_targets": [
35
+ "完整测试路径替换为 $PY 令牌字典",
36
+ "重复的测试结果状态合并计数",
37
+ "summary 中为零计数的状态丢弃",
38
+ "状态标签缩写(如 passed->P, failed->F)",
39
+ "多余空格压缩"
40
+ ],
41
+ "design_intent": "pytest脱水:保留测试结果与摘要,折叠重复状态,压缩测试路径和 summary 标签。"
42
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "python_traceback",
3
+ "description": "Python 堆栈跟踪脱水",
4
+ "priority": 160,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": [
11
+ "Traceback (most recent call last):",
12
+ "File \"",
13
+ "in <module>",
14
+ "Python ",
15
+ "Error:",
16
+ "Exception:"
17
+ ]
18
+ }
19
+ ],
20
+ "min_match_ratio": 0.15
21
+ },
22
+ "compress": {
23
+ "token_prefix": "$PY",
24
+ "path_patterns": [
25
+ "File \"[^\"]+\", line \\d+",
26
+ "/site-packages/",
27
+ "/lib/python\\d+\\.\\d+/"
28
+ ],
29
+ "dedup": {
30
+ "enabled": true,
31
+ "threshold": 1
32
+ }
33
+ },
34
+ "keep_signals": [
35
+ "Traceback (most recent call last): 头部",
36
+ "内置异常类名(如 Exception, ValueError 等)",
37
+ "错误消息行(如 ValueError: invalid literal)",
38
+ "文件路径和行号(如 File \"...\", line ..., in ...)",
39
+ "异常链中的连接信息(如直接原因、上下文等)"
40
+ ],
41
+ "compress_targets": [
42
+ "重复的异常堆栈(超过阈值替换为 [DUPLICATE] 标记)",
43
+ "深层堆栈帧(超过阈值截断为 [...])",
44
+ "文件路径(替换为 $PY|FL| 令牌并使用字典)",
45
+ "异常类型和消息(替换为 $PY|EX| 令牌并使用字典)",
46
+ "链式异常计数摘要(多个异常合并为 [CHAINED] 计数)"
47
+ ],
48
+ "design_intent": "Python异常脱水:保留异常类型和关键堆栈信息,折叠重复异常和深层堆栈,压缩路径和异常消息。"
49
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "rust_go",
3
+ "description": "Rust/Go 日志脱水",
4
+ "priority": 160,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": [
11
+ "rustc",
12
+ "cargo",
13
+ "thread '",
14
+ "panicked at",
15
+ "go build",
16
+ "go run"
17
+ ]
18
+ }
19
+ ],
20
+ "min_match_ratio": 0.1
21
+ },
22
+ "compress": {
23
+ "token_prefix": "$RUSTGO",
24
+ "dedup": {
25
+ "enabled": true,
26
+ "threshold": 1
27
+ }
28
+ },
29
+ "keep_signals": [
30
+ "Compiling .. (编译开始,折叠后保留统计行)",
31
+ "Finished .. (编译完成行)",
32
+ "test .. FAILED (失败测试详情)",
33
+ "Warning/error/panic (错误警告行)",
34
+ "goroutine .. [..]: (Go协程信息)",
35
+ "running N tests (测试开始行,被替换为统计)"
36
+ ],
37
+ "compress_targets": [
38
+ "重复的Compiling行折叠为一行计数并隐藏细节",
39
+ "多个测试结果汇总为统计行,仅保留失败详情",
40
+ "长路径替换为字典令牌如$Pn",
41
+ "Go测试输出类似压缩"
42
+ ],
43
+ "design_intent": "Rust/Go日志脱水:保留编译与测试关键信号,折叠重复编译行,压缩测试统计与路径。"
44
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "shell_session",
3
+ "description": "Shell 会话脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$SHELL_"
17
+ },
18
+ "keep_signals": [
19
+ "命令与输出行(未明确丢弃的文本块)"
20
+ ],
21
+ "compress_targets": [
22
+ "shell提示符(如$ # > PS ~$)",
23
+ "ANSI转义序列",
24
+ "多空格(折叠为单个空格)",
25
+ "环境变量赋值行(env var=value)",
26
+ "robocopy/curl/tar进度行"
27
+ ],
28
+ "design_intent": "Shell会话脱水:保留命令和输出,折叠提示符和进度信息。"
29
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "smart_code",
3
+ "description": "Smart code detection and compaction",
4
+ "priority": 100,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "regex",
10
+ "pattern": "^(package|import|from|use |#include|#define)"
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.2
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$SMART",
17
+ "dedup": {
18
+ "enabled": true,
19
+ "threshold": 1
20
+ }
21
+ },
22
+ "keep_signals": [
23
+ "SyntaxError(JavaScript / Python 内置异常)",
24
+ "public(关键字)",
25
+ "short_id(长度≤8的标识符)"
26
+ ],
27
+ "compress_targets": [
28
+ "长自定义标识符(长度>8且非关键字非保留异常)压缩为$PK令牌",
29
+ "连续空格压缩为$S|长度标记"
30
+ ],
31
+ "design_intent": "代码脱水:保留内置异常和关键字标识符,折叠长自定义标识符为字典令牌,压缩连续空格为长度标记。"
32
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "smart_path",
3
+ "description": "智能路径脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$SMART_"
17
+ },
18
+ "keep_signals": [
19
+ "非路径文本(路径之外的文本,原样保留)"
20
+ ],
21
+ "compress_targets": [
22
+ "文件路径(替换为字典令牌)"
23
+ ],
24
+ "design_intent": "智能路径脱水:保留路径上下文,折叠长路径为字典令牌,压缩重复路径。"
25
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "spring_boot",
3
+ "description": "Spring Boot 应用日志脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$SPRING"
17
+ },
18
+ "keep_signals": [
19
+ "Downloaded from 行(Maven 下载完成)",
20
+ "Downloading from 行(Maven 下载开始)",
21
+ "Spring Boot 行(启动标识)",
22
+ "Starting application 行(应用启动)",
23
+ "SPRING_LIFECYCLE_RE 匹配行(Spring 生命周期事件)"
24
+ ],
25
+ "compress_targets": [
26
+ "Maven 下载 URL 替换为 $SPRING 令牌字典(路径折叠)",
27
+ "Spring 生命周期日志中的 logger 包名替换为令牌字典(包名压缩)",
28
+ "Bean 初始化消息中的包名(如配置 extract_beans_packages)折叠为令牌"
29
+ ],
30
+ "design_intent": "Spring Boot 应用日志脱水:保留关键事件(下载、生命周期、启动),折叠 Maven 下载 URL 和 Spring 组件包名。"
31
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "sql",
3
+ "description": "SQL 输出脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$SQL"
17
+ },
18
+ "keep_signals": [
19
+ "SQL关键字(SELECT、INSERT等)所在行",
20
+ "INSERT语句的前缀部分(不被截断)",
21
+ "短SQL语句(完整保留)"
22
+ ],
23
+ "compress_targets": [
24
+ "长INSERT VALUES(超过max_insert_values_len时截断为占位符)"
25
+ ],
26
+ "design_intent": "SQL脱水:保留SQL语句结构,折叠超长INSERT VALUES内容。"
27
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "static_rule",
3
+ "description": "静态规则脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$STATIC"
17
+ },
18
+ "keep_signals": [
19
+ "enter正则匹配的行(区块开始标记)",
20
+ "keep正则匹配的行(重要行,检测分数0.45)",
21
+ "未折叠的独立行(原始内容保留)"
22
+ ],
23
+ "compress_targets": [
24
+ "连续重复的行(合并为带计数的'{行}(x次数)')",
25
+ "超过阈值长度的区块(折叠为'$STATIC[...]'占位符)"
26
+ ],
27
+ "design_intent": "静态规则脱水:保留进入和保留模式匹配的行,折叠重复行和长块。"
28
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "syslog",
3
+ "description": "系统日志脱水",
4
+ "priority": 130,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "regex",
10
+ "pattern": "^[A-Z][a-z]{2}\\s+\\d{1,2}\\s+\\d{2}:\\d{2}:\\d{2}"
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.2
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$SYSLOG",
17
+ "dedup": {
18
+ "enabled": true,
19
+ "threshold": 1
20
+ }
21
+ },
22
+ "keep_signals": [
23
+ "时间戳(月 日 时:分:秒)",
24
+ "消息内容(msg)",
25
+ "PID(进程ID,可选)",
26
+ "非syslog格式的行(原样保留)"
27
+ ],
28
+ "compress_targets": [
29
+ "主机名(替换为$SYS格式中的字典令牌)",
30
+ "进程名(替换为$SYS格式中的字典令牌)"
31
+ ],
32
+ "design_intent": "系统日志脱水:保留时间戳和消息内容,折叠主机名和进程名为字典令牌,压缩重复标识。"
33
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "template_driven",
3
+ "description": "模板驱动输出脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$TEMPLA"
17
+ },
18
+ "keep_signals": [
19
+ "匹配模板模式的行(保留模板固定文本)"
20
+ ],
21
+ "compress_targets": [
22
+ "捕获组中变量部分(压缩为 $TEMPLA 字典令牌)"
23
+ ],
24
+ "design_intent": "模板驱动脱水:保留模板结构,压缩可变部分为字典令牌。"
25
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "terraform",
3
+ "description": "Terraform plan/apply output compaction",
4
+ "priority": 90,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": [
11
+ "Terraform will perform",
12
+ "terraform plan",
13
+ "terraform apply",
14
+ "Plan:"
15
+ ]
16
+ }
17
+ ],
18
+ "min_match_ratio": 0.01
19
+ },
20
+ "compress": {
21
+ "token_prefix": "$TF",
22
+ "resource_patterns": [
23
+ "#\\s+[A-Za-z0-9_./\\-\\[\\]\"]+\\s+will be"
24
+ ],
25
+ "dedup": {
26
+ "enabled": true,
27
+ "threshold": 1
28
+ }
29
+ },
30
+ "decompress": {
31
+ "token_prefixes": [
32
+ "$TF",
33
+ "$P"
34
+ ]
35
+ },
36
+ "keep_signals": [
37
+ "资源变更行:'# 路径 will be 动作' 格式",
38
+ "错误信号行:包含error等关键词的行",
39
+ "计划摘要行:'Plan: X to add, Y to change, Z to destroy'",
40
+ "已知后计算行:'(known after apply)' 行统计"
41
+ ],
42
+ "compress_targets": [
43
+ "长资源路径替换为$TF令牌字典",
44
+ "已知后计算行折叠为计数",
45
+ "计划摘要格式化为简洁摘要",
46
+ "ANSI转义序列被清除"
47
+ ],
48
+ "design_intent": "Terraform脱水:保留资源变更行与错误信号,折叠路径为$TF令牌,压缩计划摘要与已知后计算行。"
49
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "unity_unreal",
3
+ "description": "Unity/Unreal 构建日志脱水",
4
+ "priority": 200,
5
+ "enabled": true,
6
+ "detect": {
7
+ "rules": [
8
+ {
9
+ "type": "any",
10
+ "patterns": []
11
+ }
12
+ ],
13
+ "min_match_ratio": 0.05
14
+ },
15
+ "compress": {
16
+ "token_prefix": "$UNITY_"
17
+ },
18
+ "keep_signals": [
19
+ "LogUObject、LogHAL、LogLinker、FAndroidApp(Unreal引擎日志标签)",
20
+ "Unloading、Building AssetBundle、Shader compilation(Unity构建消息)",
21
+ "Loading .uasset/.prefab/.mat(通用资源加载信息,但可能被聚合)"
22
+ ],
23
+ "compress_targets": [
24
+ "连续的Loading Object行(聚合为一条,计数量)"
25
+ ],
26
+ "design_intent": "Unity/Unreal构建日志脱水:保留Unreal和Unity的日志标签,折叠连续的资源加载噪音。"
27
+ }