@tokenslim/cli-binary-linux-x64-gnu 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.
- package/README.md +26 -0
- package/bin/tokenslim +0 -0
- package/bin/tokenslim-server +0 -0
- package/config/android_gradle.json +52 -0
- package/config/ansi_cleaner.json +31 -0
- package/config/ansible.json +47 -0
- package/config/artifact_summary.json +56 -0
- package/config/bazel.json +45 -0
- package/config/build_plugin.route.json +145 -0
- package/config/ci_log.json +60 -0
- package/config/ci_log.route.json +28 -0
- package/config/cloud_log.json +94 -0
- package/config/cloudformation.json +43 -0
- package/config/db_log.json +51 -0
- package/config/dotnet.json +27 -0
- package/config/encoding_fallback.json +25 -0
- package/config/explain.json +23 -0
- package/config/gcc_log.json +62 -0
- package/config/generic_text.json +29 -0
- package/config/generic_text_plugin.route.json +9 -0
- package/config/git_diff.json +30 -0
- package/config/helm.json +49 -0
- package/config/java_stack.json +54 -0
- package/config/json.json +39 -0
- package/config/kubernetes_docker.json +31 -0
- package/config/markdown.json +27 -0
- package/config/maven.json +29 -0
- package/config/minify_code.json +29 -0
- package/config/ndjson.json +26 -0
- package/config/node_error.json +42 -0
- package/config/node_plugin.route.json +53 -0
- package/config/nodejs.json +44 -0
- package/config/noise_filter.json +25 -0
- package/config/php_ruby.json +31 -0
- package/config/protobuf.json +49 -0
- package/config/pulumi.json +47 -0
- package/config/pytest.json +42 -0
- package/config/python_traceback.json +49 -0
- package/config/rust_go.json +44 -0
- package/config/shell_session.json +29 -0
- package/config/smart_code.json +32 -0
- package/config/smart_path.json +25 -0
- package/config/spring_boot.json +31 -0
- package/config/sql.json +27 -0
- package/config/static_rule.json +28 -0
- package/config/syslog.json +33 -0
- package/config/template_driven.json +25 -0
- package/config/terraform.json +49 -0
- package/config/unity_unreal.json +27 -0
- package/config/vcs.json +35 -0
- package/config/vcs_az.json +35 -0
- package/config/vcs_bitbucket.json +35 -0
- package/config/vcs_bzr.json +33 -0
- package/config/vcs_cvs.json +35 -0
- package/config/vcs_darcs.json +32 -0
- package/config/vcs_fossil.json +33 -0
- package/config/vcs_gerrit.json +38 -0
- package/config/vcs_gh.json +36 -0
- package/config/vcs_git.json +35 -0
- package/config/vcs_glab.json +34 -0
- package/config/vcs_hg.json +35 -0
- package/config/vcs_p4.json +34 -0
- package/config/vcs_plugin.route.json +411 -0
- package/config/vcs_repo.json +34 -0
- package/config/vcs_svn.json +28 -0
- package/config/web_log.json +74 -0
- package/config/webpack_vite.json +29 -0
- package/config/xcode_log.json +40 -0
- package/config/xml_html.json +34 -0
- package/config/yaml.json +37 -0
- package/package.json +27 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vcs",
|
|
3
|
+
"enabled": true,
|
|
4
|
+
"priority": 100,
|
|
5
|
+
"skills": [
|
|
6
|
+
"status",
|
|
7
|
+
"diff",
|
|
8
|
+
"log",
|
|
9
|
+
"review",
|
|
10
|
+
"route"
|
|
11
|
+
],
|
|
12
|
+
"workspace_commands": {
|
|
13
|
+
"vcs:git": [
|
|
14
|
+
"git status",
|
|
15
|
+
"git diff",
|
|
16
|
+
"git log"
|
|
17
|
+
],
|
|
18
|
+
"vcs:svn": [
|
|
19
|
+
"svn status",
|
|
20
|
+
"svn log"
|
|
21
|
+
],
|
|
22
|
+
"vcs:hg": [
|
|
23
|
+
"hg status",
|
|
24
|
+
"hg log"
|
|
25
|
+
],
|
|
26
|
+
"vcs:p4": [
|
|
27
|
+
"p4 opened",
|
|
28
|
+
"p4 changes"
|
|
29
|
+
],
|
|
30
|
+
"vcs:cvs": [
|
|
31
|
+
"cvs status",
|
|
32
|
+
"cvs log"
|
|
33
|
+
],
|
|
34
|
+
"vcs:bzr": [
|
|
35
|
+
"bzr status",
|
|
36
|
+
"bzr log"
|
|
37
|
+
],
|
|
38
|
+
"vcs:fossil": [
|
|
39
|
+
"fossil status",
|
|
40
|
+
"fossil timeline"
|
|
41
|
+
],
|
|
42
|
+
"vcs:darcs": [
|
|
43
|
+
"darcs whatsnew",
|
|
44
|
+
"darcs log"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"route": {
|
|
48
|
+
"command_keywords": [
|
|
49
|
+
"git",
|
|
50
|
+
"svn",
|
|
51
|
+
"hg",
|
|
52
|
+
"p4",
|
|
53
|
+
"cvs",
|
|
54
|
+
"bzr",
|
|
55
|
+
"fossil",
|
|
56
|
+
"darcs",
|
|
57
|
+
"gh",
|
|
58
|
+
"glab",
|
|
59
|
+
"az",
|
|
60
|
+
"bitbucket",
|
|
61
|
+
"repo",
|
|
62
|
+
"gerrit"
|
|
63
|
+
],
|
|
64
|
+
"route_group": "vcs"
|
|
65
|
+
},
|
|
66
|
+
"run_parse_hints": {
|
|
67
|
+
"git": {
|
|
68
|
+
"options_with_value": ["-C", "-c", "--git-dir", "--work-tree", "--namespace", "--exec-path", "--config-env"],
|
|
69
|
+
"inline_value_prefixes": ["-C", "-c", "--git-dir=", "--work-tree=", "--namespace=", "--exec-path=", "--config-env="]
|
|
70
|
+
},
|
|
71
|
+
"svn": {
|
|
72
|
+
"options_with_value": ["-r", "-c", "--revision", "--change", "--username", "--password", "--config-dir", "--config-option", "--targets", "--changelist", "--depth", "--accept", "--extensions", "--diff-cmd", "--editor-cmd", "--native-eol", "--limit", "--search", "--search-and", "--with-revprop"],
|
|
73
|
+
"inline_value_prefixes": ["-r", "-c", "--revision=", "--change=", "--username=", "--password=", "--config-dir=", "--config-option=", "--targets=", "--changelist=", "--depth=", "--accept=", "--extensions=", "--diff-cmd=", "--editor-cmd=", "--native-eol=", "--limit=", "--search=", "--search-and=", "--with-revprop="]
|
|
74
|
+
},
|
|
75
|
+
"hg": {
|
|
76
|
+
"options_with_value": ["-R", "--repository", "--cwd", "--config", "--configfile", "--encoding", "--encodingmode"],
|
|
77
|
+
"inline_value_prefixes": ["-R", "--repository=", "--cwd=", "--config=", "--configfile=", "--encoding=", "--encodingmode="]
|
|
78
|
+
},
|
|
79
|
+
"p4": {
|
|
80
|
+
"options_with_value": ["-b", "-c", "-d", "-H", "-p", "-P", "-u", "-x", "-C", "-Q", "-L", "-r", "-v", "-z"],
|
|
81
|
+
"inline_value_prefixes": ["-b", "-c", "-d", "-H", "-p", "-P", "-u", "-x", "-C", "-Q", "-L", "-r", "-v", "-z"]
|
|
82
|
+
},
|
|
83
|
+
"cvs": {
|
|
84
|
+
"options_with_value": ["-b", "-d", "-e", "-s", "-T", "-x", "-z", "--allow-root"],
|
|
85
|
+
"inline_value_prefixes": ["-b", "-d", "-e", "-s", "-T", "-x", "-z", "--allow-root="]
|
|
86
|
+
},
|
|
87
|
+
"bzr": {
|
|
88
|
+
"options_with_value": ["-d", "--directory", "--config-dir", "--transport"],
|
|
89
|
+
"inline_value_prefixes": ["-d", "--directory=", "--config-dir=", "--transport="]
|
|
90
|
+
},
|
|
91
|
+
"fossil": {
|
|
92
|
+
"options_with_value": ["-R", "--repository", "-U", "--user", "--ssl-identity", "--ssh-command", "--httptrace", "--sqltrace", "--systemtrace", "--user-override"],
|
|
93
|
+
"inline_value_prefixes": ["-R", "-U", "--repository=", "--user=", "--ssl-identity=", "--ssh-command=", "--httptrace=", "--sqltrace=", "--systemtrace=", "--user-override="]
|
|
94
|
+
},
|
|
95
|
+
"darcs": {
|
|
96
|
+
"options_with_value": ["--repo", "--repodir", "--context", "--store"],
|
|
97
|
+
"inline_value_prefixes": ["--repo=", "--repodir=", "--context=", "--store="]
|
|
98
|
+
},
|
|
99
|
+
"gh": {
|
|
100
|
+
"options_with_value": ["-R", "--repo", "--hostname", "--jq", "--json", "--template", "--cache", "--config-dir", "--shell"],
|
|
101
|
+
"inline_value_prefixes": ["-R", "--repo=", "--hostname=", "--jq=", "--json=", "--template=", "--cache=", "--config-dir=", "--shell="]
|
|
102
|
+
},
|
|
103
|
+
"glab": {
|
|
104
|
+
"options_with_value": ["-R", "--repo", "--host", "--api-host", "--token", "--output", "--fields", "--config-dir", "--shell"],
|
|
105
|
+
"inline_value_prefixes": ["-R", "--repo=", "--host=", "--api-host=", "--token=", "--output=", "--fields=", "--config-dir=", "--shell="]
|
|
106
|
+
},
|
|
107
|
+
"az": {
|
|
108
|
+
"options_with_value": ["--subscription", "--output", "--query", "--tenant", "--defaults"],
|
|
109
|
+
"inline_value_prefixes": ["--subscription=", "--output=", "--query=", "--tenant=", "--defaults="]
|
|
110
|
+
},
|
|
111
|
+
"bitbucket": {
|
|
112
|
+
"options_with_value": ["--workspace", "--server", "--output", "--token", "--profile"],
|
|
113
|
+
"inline_value_prefixes": ["--workspace=", "--server=", "--output=", "--token=", "--profile="]
|
|
114
|
+
},
|
|
115
|
+
"repo": {
|
|
116
|
+
"options_with_value": ["--color", "--event-log", "--git-trace2-event-log", "--git-trace2-event-target", "--outer-manifest-name", "--outer-manifest-path", "--repo-rev", "--repo-url", "--submanifest-path"],
|
|
117
|
+
"inline_value_prefixes": ["--color=", "--event-log=", "--git-trace2-event-log=", "--git-trace2-event-target=", "--outer-manifest-name=", "--outer-manifest-path=", "--repo-rev=", "--repo-url=", "--submanifest-path="]
|
|
118
|
+
},
|
|
119
|
+
"gerrit": {
|
|
120
|
+
"options_with_value": ["--host", "--port", "--project", "--user", "--format"],
|
|
121
|
+
"inline_value_prefixes": ["--host=", "--port=", "--project=", "--user=", "--format="]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"run_tool_aliases": {
|
|
125
|
+
"git": "git",
|
|
126
|
+
"gh": "git",
|
|
127
|
+
"glab": "git",
|
|
128
|
+
"az": "git",
|
|
129
|
+
"bitbucket": "git",
|
|
130
|
+
"repo": "git",
|
|
131
|
+
"gerrit": "git",
|
|
132
|
+
"svn": "svn",
|
|
133
|
+
"hg": "hg",
|
|
134
|
+
"p4": "p4",
|
|
135
|
+
"cvs": "cvs",
|
|
136
|
+
"bzr": "bzr",
|
|
137
|
+
"fossil": "fossil",
|
|
138
|
+
"darcs": "darcs"
|
|
139
|
+
},
|
|
140
|
+
"run_intents": {
|
|
141
|
+
"git": {
|
|
142
|
+
"status": "status",
|
|
143
|
+
"diff": "diff",
|
|
144
|
+
"log": "log",
|
|
145
|
+
"reflog": "log",
|
|
146
|
+
"blame": "other",
|
|
147
|
+
"show": "diff",
|
|
148
|
+
"add": "other",
|
|
149
|
+
"rm": "other",
|
|
150
|
+
"shortlog": "log",
|
|
151
|
+
"branch": "other",
|
|
152
|
+
"checkout": "other",
|
|
153
|
+
"switch": "other",
|
|
154
|
+
"merge": "other",
|
|
155
|
+
"rebase": "other",
|
|
156
|
+
"reset": "other",
|
|
157
|
+
"stash": "other",
|
|
158
|
+
"fetch": "other",
|
|
159
|
+
"pull": "log",
|
|
160
|
+
"push": "log",
|
|
161
|
+
"remote": "other",
|
|
162
|
+
"tag": "other",
|
|
163
|
+
"cherry-pick": "other",
|
|
164
|
+
"revert": "other",
|
|
165
|
+
"bisect": "other",
|
|
166
|
+
"restore": "other",
|
|
167
|
+
"clean": "other",
|
|
168
|
+
"submodule": "other",
|
|
169
|
+
"worktree": "other",
|
|
170
|
+
"grep": "other"
|
|
171
|
+
},
|
|
172
|
+
"svn": {
|
|
173
|
+
"status": "status",
|
|
174
|
+
"st": "status",
|
|
175
|
+
"diff": "diff",
|
|
176
|
+
"log": "log",
|
|
177
|
+
"info": "status",
|
|
178
|
+
"blame": "log",
|
|
179
|
+
"annotate": "log",
|
|
180
|
+
"add": "other",
|
|
181
|
+
"delete": "other",
|
|
182
|
+
"move": "other",
|
|
183
|
+
"copy": "other",
|
|
184
|
+
"commit": "log",
|
|
185
|
+
"update": "status",
|
|
186
|
+
"checkout": "other",
|
|
187
|
+
"revert": "other",
|
|
188
|
+
"merge": "log",
|
|
189
|
+
"switch": "other",
|
|
190
|
+
"resolve": "other",
|
|
191
|
+
"cleanup": "other",
|
|
192
|
+
"propget": "other",
|
|
193
|
+
"proplist": "other",
|
|
194
|
+
"list": "other",
|
|
195
|
+
"cat": "other",
|
|
196
|
+
"mkdir": "other",
|
|
197
|
+
"export": "other",
|
|
198
|
+
"import": "other",
|
|
199
|
+
"lock": "other",
|
|
200
|
+
"unlock": "other",
|
|
201
|
+
"relocate": "other",
|
|
202
|
+
"propset": "other"
|
|
203
|
+
},
|
|
204
|
+
"hg": {
|
|
205
|
+
"status": "status",
|
|
206
|
+
"st": "status",
|
|
207
|
+
"diff": "diff",
|
|
208
|
+
"log": "log",
|
|
209
|
+
"summary": "status",
|
|
210
|
+
"annotate": "log",
|
|
211
|
+
"add": "other",
|
|
212
|
+
"remove": "other",
|
|
213
|
+
"rename": "other",
|
|
214
|
+
"commit": "log",
|
|
215
|
+
"update": "status",
|
|
216
|
+
"branch": "other",
|
|
217
|
+
"pull": "log",
|
|
218
|
+
"push": "log",
|
|
219
|
+
"graft": "other",
|
|
220
|
+
"histedit": "other",
|
|
221
|
+
"rebase": "other",
|
|
222
|
+
"shelve": "other",
|
|
223
|
+
"unshelve": "other",
|
|
224
|
+
"revert": "other",
|
|
225
|
+
"cat": "other",
|
|
226
|
+
"heads": "log",
|
|
227
|
+
"outgoing": "log",
|
|
228
|
+
"incoming": "log",
|
|
229
|
+
"backout": "other",
|
|
230
|
+
"uncommit": "other",
|
|
231
|
+
"forget": "other",
|
|
232
|
+
"parents": "log",
|
|
233
|
+
"tip": "log",
|
|
234
|
+
"tag": "other",
|
|
235
|
+
"tags": "log",
|
|
236
|
+
"clone": "log",
|
|
237
|
+
"branches": "log",
|
|
238
|
+
"merge": "other",
|
|
239
|
+
"rollback": "other",
|
|
240
|
+
"phase": "other",
|
|
241
|
+
"bookmarks": "other",
|
|
242
|
+
"copy": "other",
|
|
243
|
+
"move": "other",
|
|
244
|
+
"purge": "other",
|
|
245
|
+
"archive": "other",
|
|
246
|
+
"verify": "other",
|
|
247
|
+
"identify": "other",
|
|
248
|
+
"paths": "other",
|
|
249
|
+
"config": "other",
|
|
250
|
+
"summarize": "status",
|
|
251
|
+
"transplant": "other"
|
|
252
|
+
},
|
|
253
|
+
"p4": {
|
|
254
|
+
"opened": "status",
|
|
255
|
+
"changes": "status",
|
|
256
|
+
"describe": "log",
|
|
257
|
+
"diff": "diff",
|
|
258
|
+
"branch": "other",
|
|
259
|
+
"submit": "other",
|
|
260
|
+
"sync": "status",
|
|
261
|
+
"edit": "other",
|
|
262
|
+
"add": "other",
|
|
263
|
+
"delete": "other",
|
|
264
|
+
"revert": "other",
|
|
265
|
+
"integrate": "other",
|
|
266
|
+
"resolve": "other",
|
|
267
|
+
"reconcile": "other",
|
|
268
|
+
"shelve": "other",
|
|
269
|
+
"unshelve": "other",
|
|
270
|
+
"files": "status",
|
|
271
|
+
"client": "other",
|
|
272
|
+
"fstat": "other",
|
|
273
|
+
"print": "other",
|
|
274
|
+
"filelog": "log",
|
|
275
|
+
"workspaces": "other",
|
|
276
|
+
"where": "other",
|
|
277
|
+
"info": "other",
|
|
278
|
+
"have": "status",
|
|
279
|
+
"label": "other",
|
|
280
|
+
"labels": "log",
|
|
281
|
+
"dirs": "other",
|
|
282
|
+
"users": "other",
|
|
283
|
+
"move": "other",
|
|
284
|
+
"copy": "other",
|
|
285
|
+
"branches": "other",
|
|
286
|
+
"tag": "other",
|
|
287
|
+
"passwd": "other",
|
|
288
|
+
"protect": "other",
|
|
289
|
+
"triggers": "other",
|
|
290
|
+
"depot": "other",
|
|
291
|
+
"diff2": "diff"
|
|
292
|
+
},
|
|
293
|
+
"cvs": {
|
|
294
|
+
"status": "status",
|
|
295
|
+
"diff": "diff",
|
|
296
|
+
"log": "log",
|
|
297
|
+
"annotate": "log",
|
|
298
|
+
"history": "log",
|
|
299
|
+
"add": "other",
|
|
300
|
+
"remove": "other",
|
|
301
|
+
"commit": "log",
|
|
302
|
+
"update": "status",
|
|
303
|
+
"checkout": "other",
|
|
304
|
+
"tag": "log",
|
|
305
|
+
"edit": "other",
|
|
306
|
+
"unedit": "other",
|
|
307
|
+
"release": "other"
|
|
308
|
+
},
|
|
309
|
+
"bzr": {
|
|
310
|
+
"status": "status",
|
|
311
|
+
"diff": "diff",
|
|
312
|
+
"missing": "status",
|
|
313
|
+
"log": "log",
|
|
314
|
+
"add": "other",
|
|
315
|
+
"remove": "other",
|
|
316
|
+
"commit": "log",
|
|
317
|
+
"update": "status",
|
|
318
|
+
"branch": "log",
|
|
319
|
+
"pull": "log",
|
|
320
|
+
"push": "log",
|
|
321
|
+
"merge": "log",
|
|
322
|
+
"resolve": "other",
|
|
323
|
+
"revert": "other"
|
|
324
|
+
},
|
|
325
|
+
"fossil": {
|
|
326
|
+
"status": "status",
|
|
327
|
+
"diff": "diff",
|
|
328
|
+
"changes": "status",
|
|
329
|
+
"timeline": "log",
|
|
330
|
+
"add": "other",
|
|
331
|
+
"rm": "other",
|
|
332
|
+
"commit": "log",
|
|
333
|
+
"update": "status",
|
|
334
|
+
"sync": "log",
|
|
335
|
+
"checkout": "other",
|
|
336
|
+
"merge": "log",
|
|
337
|
+
"stash": "log",
|
|
338
|
+
"undo": "log",
|
|
339
|
+
"tag": "other"
|
|
340
|
+
},
|
|
341
|
+
"darcs": {
|
|
342
|
+
"whatsnew": "status",
|
|
343
|
+
"status": "status",
|
|
344
|
+
"diff": "diff",
|
|
345
|
+
"log": "log",
|
|
346
|
+
"changes": "log",
|
|
347
|
+
"record": "log",
|
|
348
|
+
"pull": "log",
|
|
349
|
+
"push": "log",
|
|
350
|
+
"rebase": "other",
|
|
351
|
+
"add": "other",
|
|
352
|
+
"remove": "other",
|
|
353
|
+
"revert": "other",
|
|
354
|
+
"tag": "other",
|
|
355
|
+
"amend": "log",
|
|
356
|
+
"amend-record": "log",
|
|
357
|
+
"obliterate": "other"
|
|
358
|
+
},
|
|
359
|
+
"gh": {
|
|
360
|
+
"pr": "other",
|
|
361
|
+
"issue": "other",
|
|
362
|
+
"run": "other",
|
|
363
|
+
"api": "other",
|
|
364
|
+
"auth": "other",
|
|
365
|
+
"repo": "other",
|
|
366
|
+
"actions": "other",
|
|
367
|
+
"deploy": "other",
|
|
368
|
+
"secret": "other",
|
|
369
|
+
"release": "other",
|
|
370
|
+
"gist": "other",
|
|
371
|
+
"workflow": "other"
|
|
372
|
+
},
|
|
373
|
+
"glab": {
|
|
374
|
+
"mr": "other",
|
|
375
|
+
"issue": "other",
|
|
376
|
+
"repo": "other",
|
|
377
|
+
"auth": "other",
|
|
378
|
+
"ci": "other",
|
|
379
|
+
"pipeline": "other",
|
|
380
|
+
"release": "other"
|
|
381
|
+
},
|
|
382
|
+
"az": {
|
|
383
|
+
"repos": "other"
|
|
384
|
+
},
|
|
385
|
+
"bitbucket": {
|
|
386
|
+
"pr": "other",
|
|
387
|
+
"issue": "other",
|
|
388
|
+
"repo": "other"
|
|
389
|
+
},
|
|
390
|
+
"repo": {
|
|
391
|
+
"status": "status",
|
|
392
|
+
"sync": "log",
|
|
393
|
+
"upload": "log",
|
|
394
|
+
"start": "other",
|
|
395
|
+
"stage": "other",
|
|
396
|
+
"checkout": "other",
|
|
397
|
+
"forall": "other",
|
|
398
|
+
"diff": "diff",
|
|
399
|
+
"branches": "other",
|
|
400
|
+
"list": "other",
|
|
401
|
+
"init": "other"
|
|
402
|
+
},
|
|
403
|
+
"gerrit": {
|
|
404
|
+
"query": "log",
|
|
405
|
+
"ls-projects": "other",
|
|
406
|
+
"review": "other",
|
|
407
|
+
"push": "log",
|
|
408
|
+
"checkout": "status"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vcs_repo",
|
|
3
|
+
"description": "Android Repo 命令输出脱水",
|
|
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": "$VCS_RE"
|
|
17
|
+
},
|
|
18
|
+
"keep_signals": [
|
|
19
|
+
"repo sync/status/upload 命令锚点(第一行)",
|
|
20
|
+
"project 行:项目路径与状态/哈希",
|
|
21
|
+
"推送映射行:HEAD -> refs/...",
|
|
22
|
+
"diff 文件路径(压缩为 D:前缀)",
|
|
23
|
+
"hunk 头(压缩后格式)"
|
|
24
|
+
],
|
|
25
|
+
"compress_targets": [
|
|
26
|
+
"进度噪音行:Downloading..., Syncing: ..., Syncing done.",
|
|
27
|
+
"SSH/HTTPS URL 行",
|
|
28
|
+
"重复的命令锚点(仅保留第一行)",
|
|
29
|
+
"URL 行:ssh://, http://, https://",
|
|
30
|
+
"diff 行中 a/ b/ 路径前缀(压缩为 D:)",
|
|
31
|
+
"hunk 头中空格和上下文(压缩为 @@-a,b->c,d@@)"
|
|
32
|
+
],
|
|
33
|
+
"design_intent": "Android Repo 命令输出脱水:保留命令锚点和项目/状态/推送信息,折叠进度条、URL 等噪音,压缩 diff 文件路径和 hunk 头。"
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vcs_svn",
|
|
3
|
+
"description": "SVN 命令输出脱水",
|
|
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": "$VCS_SV"
|
|
17
|
+
},
|
|
18
|
+
"keep_signals": [
|
|
19
|
+
"原始命令锚点",
|
|
20
|
+
"文件变更状态(A/D/M/U/C)",
|
|
21
|
+
"commit 信息"
|
|
22
|
+
],
|
|
23
|
+
"compress_targets": [
|
|
24
|
+
"长路径替换为 $SVN 令牌字典",
|
|
25
|
+
"重复行去重"
|
|
26
|
+
],
|
|
27
|
+
"design_intent": "SVN 命令输出脱水:保留命令锚点和变更状态,压缩路径。"
|
|
28
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "web_log",
|
|
3
|
+
"description": "Web access log v3 semantic aggregation for Nginx, Apache, ingress, Uvicorn, Envoy/Istio, CloudFront/IIS W3C, Cloudflare, native ALB, and cloud-wrapped CSV/JSON/table/plain access logs with dictionaries, routine folding, noise diagnostics, scan/burst spotlight, anomalies, and slow request signals",
|
|
4
|
+
"priority": 170,
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"detect": {
|
|
7
|
+
"rules": [
|
|
8
|
+
{
|
|
9
|
+
"type": "regex",
|
|
10
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+\\.\\d+"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "regex",
|
|
14
|
+
"pattern": "INFO:\\s+\\d+\\.\\d+\\.\\d+\\.\\d+:\\d+\\s+-\\s+\\\"(GET|POST|PUT|PATCH|DELETE)"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"type": "regex",
|
|
18
|
+
"pattern": "\\\"(request_method|ClientRequestMethod|httpRequest|message)\\\""
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "regex",
|
|
22
|
+
"pattern": "^#Fields:\\s+.*cs-method.*sc-status"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "regex",
|
|
26
|
+
"pattern": "^\\[\\d{4}-\\d{2}-\\d{2}T[^\\]]+\\]\\s+\\\"(GET|POST|PUT|PATCH|DELETE)"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"min_match_ratio": 0.2
|
|
30
|
+
},
|
|
31
|
+
"compress": {
|
|
32
|
+
"token_prefix": "$W",
|
|
33
|
+
"dedup": {
|
|
34
|
+
"enabled": true,
|
|
35
|
+
"threshold": 1
|
|
36
|
+
},
|
|
37
|
+
"semantic_aggregate": {
|
|
38
|
+
"enabled": true,
|
|
39
|
+
"dimensions": [
|
|
40
|
+
"summary",
|
|
41
|
+
"status",
|
|
42
|
+
"method",
|
|
43
|
+
"top_url",
|
|
44
|
+
"top_ip",
|
|
45
|
+
"top_ua",
|
|
46
|
+
"top_ref",
|
|
47
|
+
"dict_ip",
|
|
48
|
+
"dict_ua",
|
|
49
|
+
"routine",
|
|
50
|
+
"anomaly",
|
|
51
|
+
"scan",
|
|
52
|
+
"burst",
|
|
53
|
+
"slow"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"keep_signals": [
|
|
58
|
+
"$W|SUMMARY行(健康摘要)",
|
|
59
|
+
"异常行(如4xx/5xx错误)",
|
|
60
|
+
"慢请求行(slow lines)",
|
|
61
|
+
"原始错误日志行(error_log_pattern匹配的)"
|
|
62
|
+
],
|
|
63
|
+
"compress_targets": [
|
|
64
|
+
"IP地址替换为字典令牌",
|
|
65
|
+
"URI路径替换为分层字典令牌",
|
|
66
|
+
"User-Agent替换为字典令牌",
|
|
67
|
+
"时间戳压缩为紧凑格式(YYYY-MM-DD HH:MM:SS)",
|
|
68
|
+
"流路径(如/stream/xxx)折叠为前8字符",
|
|
69
|
+
"URL编码解码(%20等替换)",
|
|
70
|
+
"多个连续空格压缩为一个",
|
|
71
|
+
"重复的详细记录聚合为标准摘要"
|
|
72
|
+
],
|
|
73
|
+
"design_intent": "Web访问日志脱水:保留异常/慢请求信号,折叠常规记录为紧凑摘要,压缩IP/UA/路径等冗余字段。"
|
|
74
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webpack_vite",
|
|
3
|
+
"description": "Webpack/Vite 构建日志脱水",
|
|
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": "$WEBPAC"
|
|
17
|
+
},
|
|
18
|
+
"keep_signals": [
|
|
19
|
+
"ERROR in 行(编译错误)",
|
|
20
|
+
"Module parse failed 行(模块解析失败)",
|
|
21
|
+
"warning: 行(构建警告)",
|
|
22
|
+
"⚠️ 行(警告符号)"
|
|
23
|
+
],
|
|
24
|
+
"compress_targets": [
|
|
25
|
+
"噪音行(is_noise_line 过滤的废话行)",
|
|
26
|
+
"长路径(可能通过字典替换)"
|
|
27
|
+
],
|
|
28
|
+
"design_intent": "Webpack/Vite 构建日志脱水:保留错误和警告行,折叠资产列表,压缩噪音行。"
|
|
29
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xcode_log",
|
|
3
|
+
"description": "Xcode 构建日志脱水",
|
|
4
|
+
"priority": 180,
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"detect": {
|
|
7
|
+
"rules": [
|
|
8
|
+
{
|
|
9
|
+
"type": "any",
|
|
10
|
+
"patterns": [
|
|
11
|
+
"xcodebuild",
|
|
12
|
+
"CompileC ",
|
|
13
|
+
"Linking ",
|
|
14
|
+
"Build succeeded",
|
|
15
|
+
"Build failed"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"min_match_ratio": 0.1
|
|
20
|
+
},
|
|
21
|
+
"compress": {
|
|
22
|
+
"token_prefix": "$XCODE",
|
|
23
|
+
"dedup": {
|
|
24
|
+
"enabled": true,
|
|
25
|
+
"threshold": 1
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"keep_signals": [
|
|
29
|
+
"CompileC 行(编译命令)",
|
|
30
|
+
"Linking 行(链接命令)",
|
|
31
|
+
"clang 行(编译命令)",
|
|
32
|
+
"Build succeeded/failed 行(构建结果)"
|
|
33
|
+
],
|
|
34
|
+
"compress_targets": [
|
|
35
|
+
"/dev/null 探针行(clang/libtool,批量折叠为 $XC|PROBE|x)",
|
|
36
|
+
"编译命令中的路径参数(替换为字典令牌 $XC|C|)",
|
|
37
|
+
"编译命令中的源文件路径(压缩为 $XC|C| 的一部分)"
|
|
38
|
+
],
|
|
39
|
+
"design_intent": "Xcode构建日志脱水:保留编译链接命令骨架,折叠/dev/null探针噪音,压缩路径参数。"
|
|
40
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "xml_html",
|
|
3
|
+
"description": "XML and HTML structure compaction",
|
|
4
|
+
"priority": 150,
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"detect": {
|
|
7
|
+
"rules": [
|
|
8
|
+
{
|
|
9
|
+
"type": "regex",
|
|
10
|
+
"pattern": "^\\s*<[a-zA-Z]"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "regex",
|
|
14
|
+
"pattern": "^\\s*<!DOCTYPE"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"min_match_ratio": 0.3
|
|
18
|
+
},
|
|
19
|
+
"compress": {
|
|
20
|
+
"token_prefix": "$XML",
|
|
21
|
+
"dedup": {
|
|
22
|
+
"enabled": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"keep_signals": [
|
|
26
|
+
"XML/HTML标签(如 <div>)",
|
|
27
|
+
"标签属性(如 class=\"example\")",
|
|
28
|
+
"文本内容(标签之间的文字)"
|
|
29
|
+
],
|
|
30
|
+
"compress_targets": [
|
|
31
|
+
"标签间的空白字符(换行、缩进等)"
|
|
32
|
+
],
|
|
33
|
+
"design_intent": "XML/HTML脱水:保留标签结构和文本内容,折叠标签间的空白字符,压缩冗余空格。"
|
|
34
|
+
}
|