intentumdiff-python 0.0.1__py3-none-win_amd64.whl → 0.0.3b1__py3-none-win_amd64.whl
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.
- intentumdiff/__init__.py +9 -0
- intentumdiff/__main__.py +12 -0
- intentumdiff/_differ_gate.py +0 -136
- intentumdiff/_differ_presentation.py +17 -735
- intentumdiff/_differ_runtime.py +13 -64
- intentumdiff/analysis/compile_commands.py +26 -141
- intentumdiff/analysis/cross_file.py +23 -25
- intentumdiff/analysis/diagnostics.py +1 -164
- intentumdiff/analysis/guardrail_reports.py +31 -33
- intentumdiff/analysis/guardrails.py +111 -188
- intentumdiff/analysis/schema_resolver.py +72 -360
- intentumdiff/analysis/user_schemas.py +57 -254
- intentumdiff/api.py +21 -0
- intentumdiff/cache/sqlite_store.py +5 -23
- intentumdiff/cli/__init__.py +59 -0
- intentumdiff/cli/_commands.py +243 -137
- intentumdiff/cli/_parser.py +51 -56
- intentumdiff/cli/_shared.py +151 -116
- intentumdiff/content_type.py +13 -30
- intentumdiff/core/commit_differ.py +137 -286
- intentumdiff/core/diffignore.py +28 -34
- intentumdiff/core/index.py +16 -18
- intentumdiff/core/indexer.py +148 -169
- intentumdiff/core/models.py +279 -83
- intentumdiff/differ.py +366 -1000
- intentumdiff/github_app.py +40 -27
- intentumdiff/intentumdiff_rust_core/intentumdiff_rust_core.dll +0 -0
- intentumdiff/live_server.py +197 -34
- intentumdiff/lsp/client.py +49 -43
- intentumdiff/lsp/enricher.py +19 -119
- intentumdiff/lsp/exceptions.py +6 -7
- intentumdiff/lsp/servers.py +10 -11
- intentumdiff/lsp_server/_codelens.py +24 -57
- intentumdiff/lsp_server/_diagnostics.py +23 -51
- intentumdiff/lsp_server/_handlers.py +67 -9
- intentumdiff/lsp_server/server.py +28 -8
- intentumdiff/plugins/adapter.py +5 -0
- intentumdiff/plugins/builtins.py +7 -14
- intentumdiff/plugins/exceptions.py +28 -0
- intentumdiff/plugins/hub.py +39 -43
- intentumdiff/plugins/loader.py +229 -215
- intentumdiff/plugins/registry.py +259 -207
- intentumdiff/plugins/registry.schema.json +156 -15
- intentumdiff/plugins/registry_schema.py +47 -140
- intentumdiff/rust_core.py +623 -1326
- intentumdiff/serve/_app.py +26 -35
- intentumdiff/sources/base.py +24 -0
- intentumdiff/sources/file_source.py +15 -2
- intentumdiff/sources/git_source.py +64 -185
- intentumdiff/sources/live_buffer_source.py +45 -5
- intentumdiff/sources/patch_source.py +36 -109
- intentumdiff/vcs/_safe_path.py +7 -0
- intentumdiff/vcs/base.py +6 -0
- intentumdiff/vcs/git_backend.py +1 -1
- intentumdiff/vcs/git_cli.py +0 -27
- intentumdiff/vcs/hg_backend.py +1 -1
- intentumdiff/vcs/perforce_backend.py +7 -1
- intentumdiff/vcs/svn_backend.py +1 -1
- intentumdiff/wasm/abap_parser.wasm +0 -0
- intentumdiff/wasm/adf_parser.wasm +0 -0
- intentumdiff/wasm/asciidoc_parser.wasm +0 -0
- intentumdiff/wasm/asm_parser.wasm +0 -0
- intentumdiff/wasm/assemblyscript_parser.wasm +0 -0
- intentumdiff/wasm/astro_parser.wasm +0 -0
- intentumdiff/wasm/bash_parser.wasm +0 -0
- intentumdiff/wasm/clojure_parser.wasm +0 -0
- intentumdiff/wasm/cmake_parser.wasm +0 -0
- intentumdiff/wasm/cpp_parser.wasm +0 -0
- intentumdiff/wasm/csharp_parser.wasm +0 -0
- intentumdiff/wasm/css_parser.wasm +0 -0
- intentumdiff/wasm/dart_parser.wasm +0 -0
- intentumdiff/wasm/databricks_parser.wasm +0 -0
- intentumdiff/wasm/dax_parser.wasm +0 -0
- intentumdiff/wasm/delphi_parser.wasm +0 -0
- intentumdiff/wasm/dockerfile_parser.wasm +0 -0
- intentumdiff/wasm/elixir_parser.wasm +0 -0
- intentumdiff/wasm/freebasic_parser.wasm +0 -0
- intentumdiff/wasm/generic_parser.wasm +0 -0
- intentumdiff/wasm/gitignore_parser.wasm +0 -0
- intentumdiff/wasm/go_parser.wasm +0 -0
- intentumdiff/wasm/gomod_parser.wasm +0 -0
- intentumdiff/wasm/graphql_parser.wasm +0 -0
- intentumdiff/wasm/groovy_parser.wasm +0 -0
- intentumdiff/wasm/haskell_parser.wasm +0 -0
- intentumdiff/wasm/html_parser.wasm +0 -0
- intentumdiff/wasm/html_renderer.wasm +0 -0
- intentumdiff/wasm/ini_parser.wasm +0 -0
- intentumdiff/wasm/java_parser.wasm +0 -0
- intentumdiff/wasm/js_ts_parser.wasm +0 -0
- intentumdiff/wasm/json_parser.wasm +0 -0
- intentumdiff/wasm/kotlin_parser.wasm +0 -0
- intentumdiff/wasm/latex_parser.wasm +0 -0
- intentumdiff/wasm/llm_renderer.wasm +0 -0
- intentumdiff/wasm/lua_parser.wasm +0 -0
- intentumdiff/wasm/make_parser.wasm +0 -0
- intentumdiff/wasm/markdown_parser.wasm +0 -0
- intentumdiff/wasm/mdx_parser.wasm +0 -0
- intentumdiff/wasm/ocaml_parser.wasm +0 -0
- intentumdiff/wasm/odin_parser.wasm +0 -0
- intentumdiff/wasm/parser_manifest.json +81 -2
- intentumdiff/wasm/patch_renderer.wasm +0 -0
- intentumdiff/wasm/perl_parser.wasm +0 -0
- intentumdiff/wasm/php_parser.wasm +0 -0
- intentumdiff/wasm/plsql_parser.wasm +0 -0
- intentumdiff/wasm/po_parser.wasm +0 -0
- intentumdiff/wasm/postscript_parser.wasm +0 -0
- intentumdiff/wasm/powershell_parser.wasm +0 -0
- intentumdiff/wasm/proto_parser.wasm +0 -0
- intentumdiff/wasm/puppet_parser.wasm +0 -0
- intentumdiff/wasm/python_parser.wasm +0 -0
- intentumdiff/wasm/qsharp_parser.wasm +0 -0
- intentumdiff/wasm/r_parser.wasm +0 -0
- intentumdiff/wasm/reasonml_parser.wasm +0 -0
- intentumdiff/wasm/ruby_parser.wasm +0 -0
- intentumdiff/wasm/rust_parser.wasm +0 -0
- intentumdiff/wasm/sas_parser.wasm +0 -0
- intentumdiff/wasm/scala_parser.wasm +0 -0
- intentumdiff/wasm/scss_parser.wasm +0 -0
- intentumdiff/wasm/sql_parser.wasm +0 -0
- intentumdiff/wasm/squirrel_parser.wasm +0 -0
- intentumdiff/wasm/svelte_parser.wasm +0 -0
- intentumdiff/wasm/swift_parser.wasm +0 -0
- intentumdiff/wasm/terminal_renderer.wasm +0 -0
- intentumdiff/wasm/terraform_parser.wasm +0 -0
- intentumdiff/wasm/toml_parser.wasm +0 -0
- intentumdiff/wasm/tsql_parser.wasm +0 -0
- intentumdiff/wasm/vbnet_parser.wasm +0 -0
- intentumdiff/wasm/vue_parser.wasm +0 -0
- intentumdiff/wasm/wasm_provenance.json +884 -0
- intentumdiff/wasm/wat_parser.wasm +0 -0
- intentumdiff/wasm/xml_parser.wasm +0 -0
- intentumdiff/wasm/yaml_parser.wasm +0 -0
- intentumdiff/wasm/zig_parser.wasm +0 -0
- intentumdiff/watcher.py +15 -17
- intentumdiff_python-0.0.3b1.dist-info/METADATA +188 -0
- intentumdiff_python-0.0.3b1.dist-info/RECORD +164 -0
- {intentumdiff_python-0.0.1.dist-info → intentumdiff_python-0.0.3b1.dist-info}/WHEEL +1 -1
- {intentumdiff_python-0.0.1.dist-info → intentumdiff_python-0.0.3b1.dist-info}/sboms/intentumdiff-rust-core.cyclonedx.json +905 -379
- intentumdiff/analysis/invariances.py +0 -1207
- intentumdiff/analysis/keyed_profiles.py +0 -25
- intentumdiff/analysis/resource_profiles.py +0 -14
- intentumdiff/analysis/text_review.py +0 -46
- intentumdiff/core/cst_serializer.py +0 -101
- intentumdiff/invariances/__init__.py +0 -2
- intentumdiff/invariances/rules.schema.json +0 -283
- intentumdiff/invariances/rules.yaml +0 -349
- intentumdiff_python-0.0.1.dist-info/METADATA +0 -112
- intentumdiff_python-0.0.1.dist-info/RECORD +0 -165
- {intentumdiff_python-0.0.1.dist-info → intentumdiff_python-0.0.3b1.dist-info}/entry_points.txt +0 -0
- {intentumdiff_python-0.0.1.dist-info → intentumdiff_python-0.0.3b1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"""Guardrail keyed-data language set.
|
|
2
|
-
|
|
3
|
-
The schema-shaped keyed matching + label enrichment that once lived here is
|
|
4
|
-
Rust-authoritative (#90 profile enrichment, #91 guardrail keying) — the keying
|
|
5
|
-
runs in the core (``keyed_data_key`` etc. in ``rust-core-host``). Only the
|
|
6
|
-
language set survives, consumed by ``guardrails._parse_rule`` to validate that a
|
|
7
|
-
protected rule targets a supported keyed-data language. Everything else (the
|
|
8
|
-
``KeyedDataProfile`` dataclass, the per-language profile tables, and the Python
|
|
9
|
-
keying/enrichment mirror) was deleted once nothing consumed it (#91).
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
from __future__ import annotations
|
|
13
|
-
|
|
14
|
-
KEYED_DATA_LANGUAGES = frozenset(
|
|
15
|
-
{
|
|
16
|
-
"adf",
|
|
17
|
-
"databricks",
|
|
18
|
-
"databricks-workflow",
|
|
19
|
-
"dbt-config",
|
|
20
|
-
"dbt-packages",
|
|
21
|
-
"dbt-yaml",
|
|
22
|
-
"json",
|
|
23
|
-
"yaml",
|
|
24
|
-
}
|
|
25
|
-
)
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"""Guardrail resource-profile language set.
|
|
2
|
-
|
|
3
|
-
The resource-shaped matching + label enrichment that once lived here is
|
|
4
|
-
Rust-authoritative (#90 profile enrichment, #91 guardrail keying) — the keying
|
|
5
|
-
runs in the core (``resource_profile_key`` etc. in ``rust-core-host``). Only the
|
|
6
|
-
language set survives, consumed by ``guardrails._parse_rule`` to validate that a
|
|
7
|
-
protected rule targets a supported resource language. Everything else (the
|
|
8
|
-
``ResourceProfile`` dataclass and the Python keying/enrichment mirror) was
|
|
9
|
-
deleted once nothing consumed it (#91).
|
|
10
|
-
"""
|
|
11
|
-
|
|
12
|
-
from __future__ import annotations
|
|
13
|
-
|
|
14
|
-
RESOURCE_PROFILE_LANGUAGES = frozenset({"dockerfile", "hcl", "puppet"})
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
intentumdiff.analysis.text_review
|
|
3
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4
|
-
|
|
5
|
-
The generic-text review WRAPPER. Parser token churn is replaced with stable
|
|
6
|
-
line/character spans by the Rust core (``try_rust_generic_text_review`` →
|
|
7
|
-
``text_review_generic.rs``), which is AUTHORITATIVE (readiness #90/#91) — there
|
|
8
|
-
is no Python engine fallback. Only the ``PresentationResult`` DTO and the thin
|
|
9
|
-
Rust wrapper survive here; the former Python mirror implementation was deleted
|
|
10
|
-
once the Rust generic-text review became the only engine.
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
from __future__ import annotations
|
|
14
|
-
|
|
15
|
-
from dataclasses import dataclass, field
|
|
16
|
-
from typing import Any
|
|
17
|
-
|
|
18
|
-
from intentumdiff.core.models import Change, ChangeGroup
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@dataclass(frozen=True)
|
|
22
|
-
class PresentationResult:
|
|
23
|
-
changes: list[Change]
|
|
24
|
-
change_groups: list[ChangeGroup] = field(default_factory=list)
|
|
25
|
-
ignored_style_changes: list[dict[str, Any]] = field(default_factory=list)
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
def normalize_generic_text_for_review(
|
|
29
|
-
changes: list[Change],
|
|
30
|
-
old_source: str,
|
|
31
|
-
new_source: str,
|
|
32
|
-
) -> PresentationResult:
|
|
33
|
-
"""Replace generic parser token churn with line/character text spans.
|
|
34
|
-
|
|
35
|
-
Rust-authoritative (readiness #90/#91): the Rust generic-text review is the
|
|
36
|
-
only implementation. When it declines (backend unavailable, or the input
|
|
37
|
-
exceeds its size cap), the changes pass through unchanged — "if Python didn't
|
|
38
|
-
exist, IntentumDiff still works". The full port lives in ``text_review_generic.rs``.
|
|
39
|
-
"""
|
|
40
|
-
from intentumdiff.rust_core import try_rust_generic_text_review
|
|
41
|
-
|
|
42
|
-
rust_review = try_rust_generic_text_review(old_source, new_source, len(changes))
|
|
43
|
-
if rust_review is not None:
|
|
44
|
-
rust_changes, rust_groups = rust_review
|
|
45
|
-
return PresentationResult(changes=rust_changes, change_groups=rust_groups)
|
|
46
|
-
return PresentationResult(changes=changes)
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
intentumdiff.core.cst_serializer
|
|
3
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4
|
-
|
|
5
|
-
Converts a tree-sitter ``Node`` tree into the canonical JSON string consumed
|
|
6
|
-
by parser plugins (``interpret-cst`` mode).
|
|
7
|
-
|
|
8
|
-
Schema (each node object)
|
|
9
|
-
─────────────────────────
|
|
10
|
-
{
|
|
11
|
-
"type": "<node_type>", // tree-sitter node.type
|
|
12
|
-
"named": true | false, // tree-sitter node.is_named
|
|
13
|
-
"text": "<text>", // only for leaf nodes
|
|
14
|
-
"start_line": 0, // 0-based
|
|
15
|
-
"start_col": 0,
|
|
16
|
-
"end_line": 0,
|
|
17
|
-
"end_col": 0,
|
|
18
|
-
"children": [ ... ] // recursive; omitted for leaves
|
|
19
|
-
}
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
from __future__ import annotations
|
|
23
|
-
|
|
24
|
-
import json
|
|
25
|
-
import logging
|
|
26
|
-
from typing import TYPE_CHECKING, Any
|
|
27
|
-
|
|
28
|
-
logger = logging.getLogger(__name__)
|
|
29
|
-
|
|
30
|
-
if TYPE_CHECKING:
|
|
31
|
-
# tree_sitter.Node is only imported at runtime inside functions so that
|
|
32
|
-
# this module can be imported without tree-sitter being installed in tests
|
|
33
|
-
# that mock out the CST serializer.
|
|
34
|
-
from tree_sitter import Node
|
|
35
|
-
|
|
36
|
-
_MAX_TEXT_BYTES = 4096 # truncate leaf text beyond this to avoid huge payloads
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def _node_to_dict(node: "Node", source_bytes: bytes) -> dict[str, Any]:
|
|
40
|
-
"""Recursively convert a tree-sitter Node to a plain dict.
|
|
41
|
-
|
|
42
|
-
Only *named* nodes are included — anonymous punctuation tokens (``:``,
|
|
43
|
-
``(``, ``)``, keyword literals, etc.) are omitted. This keeps payloads
|
|
44
|
-
small: a typical Python file drops from ~3 000 nodes to ~2 000 nodes and
|
|
45
|
-
reduces the JSON size by 30-50 %. No semantic parser in the plugin
|
|
46
|
-
ecosystem uses unnamed nodes; the generic parser already discards unnamed
|
|
47
|
-
leaf nodes on its own side.
|
|
48
|
-
"""
|
|
49
|
-
start = node.start_point # (row, col) — 0-based
|
|
50
|
-
end = node.end_point
|
|
51
|
-
|
|
52
|
-
obj: dict[str, Any] = {
|
|
53
|
-
"type": node.type,
|
|
54
|
-
"named": node.is_named,
|
|
55
|
-
"start_line": start[0],
|
|
56
|
-
"start_col": start[1],
|
|
57
|
-
"end_line": end[0],
|
|
58
|
-
"end_col": end[1],
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
named_children = node.named_children # list[Node] — unnamed nodes excluded
|
|
62
|
-
if named_children:
|
|
63
|
-
obj["children"] = [_node_to_dict(child, source_bytes) for child in named_children]
|
|
64
|
-
else:
|
|
65
|
-
# Leaf, or a node whose only children are unnamed punctuation.
|
|
66
|
-
# Include the raw source text so plugins can read identifiers / literals.
|
|
67
|
-
raw = source_bytes[node.start_byte : node.end_byte]
|
|
68
|
-
if len(raw) > _MAX_TEXT_BYTES:
|
|
69
|
-
logger.debug(
|
|
70
|
-
"Leaf text truncated: %d bytes → %d for node type %r",
|
|
71
|
-
len(raw), _MAX_TEXT_BYTES, node.type,
|
|
72
|
-
)
|
|
73
|
-
text = raw[:_MAX_TEXT_BYTES].decode("utf-8", errors="replace")
|
|
74
|
-
obj["text"] = text
|
|
75
|
-
|
|
76
|
-
return obj
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
def serialize_cst(root: "Node", source_bytes: bytes) -> str:
|
|
80
|
-
"""
|
|
81
|
-
Serialize a tree-sitter parse tree to a compact JSON string.
|
|
82
|
-
|
|
83
|
-
Parameters
|
|
84
|
-
----------
|
|
85
|
-
root:
|
|
86
|
-
The root ``Node`` returned by ``tree_sitter.Parser.parse()``.
|
|
87
|
-
source_bytes:
|
|
88
|
-
The exact ``bytes`` object that was passed to the parser.
|
|
89
|
-
|
|
90
|
-
Returns
|
|
91
|
-
-------
|
|
92
|
-
str
|
|
93
|
-
A UTF-8 JSON string. Separators are compact (no extra spaces).
|
|
94
|
-
"""
|
|
95
|
-
d = _node_to_dict(root, source_bytes)
|
|
96
|
-
return json.dumps(d, separators=(",", ":"), ensure_ascii=False)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
def deserialize_cst(cst_json: str) -> dict[str, Any]:
|
|
100
|
-
"""Parse a CST JSON string back into a plain dict (for tests / inspection)."""
|
|
101
|
-
return json.loads(cst_json) # type: ignore[no-any-return]
|
|
@@ -1,283 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://intentumdiff.local/schemas/invariances/rules.schema.json",
|
|
4
|
-
"title": "IntentumDiff Invariance Rules",
|
|
5
|
-
"description": "Declarative invariance rule catalogue and runtime rule definitions for IntentumDiff.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"required": ["version", "rules"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"version": {
|
|
11
|
-
"type": "integer",
|
|
12
|
-
"minimum": 1
|
|
13
|
-
},
|
|
14
|
-
"rules": {
|
|
15
|
-
"type": "array",
|
|
16
|
-
"items": {
|
|
17
|
-
"$ref": "#/$defs/rule"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"$defs": {
|
|
22
|
-
"changeGroupKind": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"enum": [
|
|
25
|
-
"MOVED_CODE",
|
|
26
|
-
"REFACTORING",
|
|
27
|
-
"MEANINGFUL_CHANGE",
|
|
28
|
-
"IGNORED_STYLE",
|
|
29
|
-
"NOISE_SUPPRESSED"
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
"equivalenceKind": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"enum": [
|
|
35
|
-
"syntactic_trivia",
|
|
36
|
-
"grammar_equivalence",
|
|
37
|
-
"canonical_value_equivalence",
|
|
38
|
-
"unordered_collection_equivalence",
|
|
39
|
-
"contextual_equivalence",
|
|
40
|
-
"refactoring_equivalence"
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
"evaluator": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"enum": [
|
|
46
|
-
"css_color_equivalence",
|
|
47
|
-
"formatting_suppression_evidence",
|
|
48
|
-
"integer_literal_equivalence",
|
|
49
|
-
"style_only_shortcut_evidence",
|
|
50
|
-
"string_literal_equivalence"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"language": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"enum": [
|
|
56
|
-
"abap",
|
|
57
|
-
"adf",
|
|
58
|
-
"asciidoc",
|
|
59
|
-
"asm",
|
|
60
|
-
"assemblyscript",
|
|
61
|
-
"astro",
|
|
62
|
-
"bash",
|
|
63
|
-
"c",
|
|
64
|
-
"clojure",
|
|
65
|
-
"cpp",
|
|
66
|
-
"csharp",
|
|
67
|
-
"css",
|
|
68
|
-
"dart",
|
|
69
|
-
"databricks-workflow",
|
|
70
|
-
"dax",
|
|
71
|
-
"delphi",
|
|
72
|
-
"dockerfile",
|
|
73
|
-
"elixir",
|
|
74
|
-
"generic",
|
|
75
|
-
"gitignore",
|
|
76
|
-
"go",
|
|
77
|
-
"graphql",
|
|
78
|
-
"groovy",
|
|
79
|
-
"haskell",
|
|
80
|
-
"hcl",
|
|
81
|
-
"html",
|
|
82
|
-
"java",
|
|
83
|
-
"javascript",
|
|
84
|
-
"json",
|
|
85
|
-
"kotlin",
|
|
86
|
-
"latex",
|
|
87
|
-
"lua",
|
|
88
|
-
"m",
|
|
89
|
-
"markdown",
|
|
90
|
-
"ini",
|
|
91
|
-
"gomod",
|
|
92
|
-
"make",
|
|
93
|
-
"cmake",
|
|
94
|
-
"proto",
|
|
95
|
-
"toml",
|
|
96
|
-
"mdx",
|
|
97
|
-
"odin",
|
|
98
|
-
"ocaml",
|
|
99
|
-
"perl",
|
|
100
|
-
"php",
|
|
101
|
-
"plsql",
|
|
102
|
-
"po",
|
|
103
|
-
"postscript",
|
|
104
|
-
"powershell",
|
|
105
|
-
"puppet",
|
|
106
|
-
"python",
|
|
107
|
-
"qsharp",
|
|
108
|
-
"r",
|
|
109
|
-
"reasonml",
|
|
110
|
-
"ruby",
|
|
111
|
-
"rust",
|
|
112
|
-
"sas",
|
|
113
|
-
"scala",
|
|
114
|
-
"scss",
|
|
115
|
-
"sql",
|
|
116
|
-
"squirrel",
|
|
117
|
-
"svelte",
|
|
118
|
-
"swift",
|
|
119
|
-
"tsx",
|
|
120
|
-
"tsql",
|
|
121
|
-
"typescript",
|
|
122
|
-
"vbnet",
|
|
123
|
-
"vue",
|
|
124
|
-
"wat",
|
|
125
|
-
"xml",
|
|
126
|
-
"yaml",
|
|
127
|
-
"zig"
|
|
128
|
-
]
|
|
129
|
-
},
|
|
130
|
-
"risk": {
|
|
131
|
-
"type": "string",
|
|
132
|
-
"enum": ["green", "amber", "red"]
|
|
133
|
-
},
|
|
134
|
-
"stage": {
|
|
135
|
-
"type": "string",
|
|
136
|
-
"enum": [
|
|
137
|
-
"parser_normalization",
|
|
138
|
-
"matcher_scoring",
|
|
139
|
-
"post_diff_refinement",
|
|
140
|
-
"group_emission"
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
"status": {
|
|
144
|
-
"type": "string",
|
|
145
|
-
"enum": ["implemented", "catalog"]
|
|
146
|
-
},
|
|
147
|
-
"stringArray": {
|
|
148
|
-
"type": "array",
|
|
149
|
-
"items": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"minLength": 1
|
|
152
|
-
},
|
|
153
|
-
"uniqueItems": true
|
|
154
|
-
},
|
|
155
|
-
"example": {
|
|
156
|
-
"type": "object",
|
|
157
|
-
"additionalProperties": true
|
|
158
|
-
},
|
|
159
|
-
"rule": {
|
|
160
|
-
"type": "object",
|
|
161
|
-
"additionalProperties": false,
|
|
162
|
-
"required": [
|
|
163
|
-
"id",
|
|
164
|
-
"languages",
|
|
165
|
-
"status",
|
|
166
|
-
"evaluator",
|
|
167
|
-
"group_kind",
|
|
168
|
-
"enabled",
|
|
169
|
-
"risk",
|
|
170
|
-
"equivalence_kind",
|
|
171
|
-
"explanation"
|
|
172
|
-
],
|
|
173
|
-
"properties": {
|
|
174
|
-
"id": {
|
|
175
|
-
"type": "string",
|
|
176
|
-
"minLength": 1,
|
|
177
|
-
"pattern": "^[a-z0-9_.-]+$"
|
|
178
|
-
},
|
|
179
|
-
"languages": {
|
|
180
|
-
"type": "array",
|
|
181
|
-
"minItems": 1,
|
|
182
|
-
"uniqueItems": true,
|
|
183
|
-
"items": {
|
|
184
|
-
"$ref": "#/$defs/language"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"status": {
|
|
188
|
-
"$ref": "#/$defs/status"
|
|
189
|
-
},
|
|
190
|
-
"evaluator": {
|
|
191
|
-
"oneOf": [
|
|
192
|
-
{
|
|
193
|
-
"$ref": "#/$defs/evaluator"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
"type": "null"
|
|
197
|
-
}
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
|
-
"node_types": {
|
|
201
|
-
"$ref": "#/$defs/stringArray"
|
|
202
|
-
},
|
|
203
|
-
"group_kind": {
|
|
204
|
-
"$ref": "#/$defs/changeGroupKind"
|
|
205
|
-
},
|
|
206
|
-
"enabled": {
|
|
207
|
-
"type": "boolean"
|
|
208
|
-
},
|
|
209
|
-
"risk": {
|
|
210
|
-
"$ref": "#/$defs/risk"
|
|
211
|
-
},
|
|
212
|
-
"equivalence_kind": {
|
|
213
|
-
"$ref": "#/$defs/equivalenceKind"
|
|
214
|
-
},
|
|
215
|
-
"explanation": {
|
|
216
|
-
"type": "string",
|
|
217
|
-
"minLength": 1
|
|
218
|
-
},
|
|
219
|
-
"examples": {
|
|
220
|
-
"type": "array",
|
|
221
|
-
"items": {
|
|
222
|
-
"$ref": "#/$defs/example"
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"stage": {
|
|
226
|
-
"$ref": "#/$defs/stage"
|
|
227
|
-
},
|
|
228
|
-
"guarantee": {
|
|
229
|
-
"type": "string",
|
|
230
|
-
"minLength": 1
|
|
231
|
-
},
|
|
232
|
-
"guards": {
|
|
233
|
-
"$ref": "#/$defs/stringArray"
|
|
234
|
-
},
|
|
235
|
-
"source_refs": {
|
|
236
|
-
"$ref": "#/$defs/stringArray"
|
|
237
|
-
},
|
|
238
|
-
"notes": {
|
|
239
|
-
"type": "string"
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
"allOf": [
|
|
243
|
-
{
|
|
244
|
-
"if": {
|
|
245
|
-
"properties": {
|
|
246
|
-
"status": {
|
|
247
|
-
"const": "implemented"
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
"required": ["status"]
|
|
251
|
-
},
|
|
252
|
-
"then": {
|
|
253
|
-
"properties": {
|
|
254
|
-
"evaluator": {
|
|
255
|
-
"$ref": "#/$defs/evaluator"
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"if": {
|
|
262
|
-
"properties": {
|
|
263
|
-
"status": {
|
|
264
|
-
"const": "catalog"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"required": ["status"]
|
|
268
|
-
},
|
|
269
|
-
"then": {
|
|
270
|
-
"properties": {
|
|
271
|
-
"evaluator": {
|
|
272
|
-
"type": "null"
|
|
273
|
-
},
|
|
274
|
-
"enabled": {
|
|
275
|
-
"const": false
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
]
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|