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,126 +1,53 @@
|
|
|
1
|
-
"""
|
|
2
|
-
intentumdiff.sources.patch_source
|
|
3
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4
|
-
|
|
5
|
-
Reconstruct old/new content from a unified diff patch string.
|
|
6
|
-
|
|
7
|
-
Typical use-case: diffing an LLM-generated patch (e.g. GitHub Copilot output)
|
|
8
|
-
without access to the original file.
|
|
1
|
+
"""Thin source adapter for Rust-owned unified patch reconstruction.
|
|
9
2
|
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
With original content, every hunk is validated at its declared position. Without
|
|
4
|
+
it, a regular modification can only reconstruct a contiguous excerpt, which is
|
|
5
|
+
explicitly warned and exposed through ``is_partial``. Set ``require_complete``
|
|
6
|
+
to reject excerpts. Unknown prefixes/gaps and multi-file patches are rejected.
|
|
12
7
|
"""
|
|
13
|
-
|
|
14
8
|
from __future__ import annotations
|
|
15
9
|
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
from unidiff import PatchSet
|
|
10
|
+
import json
|
|
11
|
+
import warnings
|
|
12
|
+
from typing import Any
|
|
20
13
|
|
|
21
14
|
from intentumdiff.sources.base import Source
|
|
22
15
|
|
|
23
16
|
|
|
24
|
-
|
|
25
|
-
"""
|
|
26
|
-
Reconstruct the patched (new) content by applying hunks from a unified diff.
|
|
27
|
-
|
|
28
|
-
We do a line-based apply; this is intentionally simple — we are not a full
|
|
29
|
-
``patch`` utility. For complex patches (binary, context mismatch) an
|
|
30
|
-
error is raised.
|
|
31
|
-
"""
|
|
32
|
-
patchset = PatchSet(io.StringIO(patch_text))
|
|
33
|
-
if not patchset:
|
|
34
|
-
return original
|
|
35
|
-
|
|
36
|
-
patched_file = patchset[0] # we support single-file patches here
|
|
37
|
-
old_lines = original.splitlines(keepends=True)
|
|
38
|
-
new_lines: list[str] = []
|
|
39
|
-
old_idx = 0 # 1-based line cursor
|
|
40
|
-
|
|
41
|
-
for hunk in patched_file:
|
|
42
|
-
# Copy context lines before this hunk
|
|
43
|
-
hunk_start = hunk.source_start # 1-based
|
|
44
|
-
while old_idx < hunk_start - 1:
|
|
45
|
-
new_lines.append(old_lines[old_idx])
|
|
46
|
-
old_idx += 1
|
|
47
|
-
|
|
48
|
-
for line in hunk:
|
|
49
|
-
if line.is_context:
|
|
50
|
-
new_lines.append(old_lines[old_idx])
|
|
51
|
-
old_idx += 1
|
|
52
|
-
elif line.is_added:
|
|
53
|
-
new_lines.append(line.value)
|
|
54
|
-
elif line.is_removed:
|
|
55
|
-
old_idx += 1 # skip removed original line
|
|
56
|
-
|
|
57
|
-
# Trailing context
|
|
58
|
-
while old_idx < len(old_lines):
|
|
59
|
-
new_lines.append(old_lines[old_idx])
|
|
60
|
-
old_idx += 1
|
|
61
|
-
|
|
62
|
-
return "".join(new_lines)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
def _extract_filename(patch_text: str) -> str:
|
|
66
|
-
"""Extract the target filename from the ``+++`` header of a patch."""
|
|
67
|
-
for line in patch_text.splitlines():
|
|
68
|
-
if line.startswith("+++ "):
|
|
69
|
-
raw = line[4:].strip()
|
|
70
|
-
# Strip leading "b/" git prefix
|
|
71
|
-
path = raw[2:] if raw.startswith("b/") else raw
|
|
72
|
-
return path
|
|
73
|
-
return "unknown"
|
|
17
|
+
class PatchExcerptWarning(UserWarning):
|
|
18
|
+
"""The patch does not establish complete original-file content."""
|
|
74
19
|
|
|
75
20
|
|
|
76
21
|
class PatchSource(Source):
|
|
77
|
-
"""
|
|
78
|
-
Reconstruct old and new content from a unified diff patch.
|
|
22
|
+
"""Reconstruct one text file with the shared Rust engine.
|
|
79
23
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Full unified diff string (as produced by ``git diff``, GitHub Copilot,
|
|
84
|
-
or similar tools).
|
|
85
|
-
original_content:
|
|
86
|
-
The original (old) file content. If omitted, the old content is
|
|
87
|
-
reconstructed from the patch's ``-`` lines (best-effort).
|
|
88
|
-
language_hint:
|
|
89
|
-
Optional language override.
|
|
90
|
-
filename:
|
|
91
|
-
Display filename. If omitted, extracted from the ``+++`` header.
|
|
24
|
+
``original_content`` provides the complete base. Without it, creation/deletion
|
|
25
|
+
patches can establish complete content; regular patches yield an explicitly
|
|
26
|
+
labelled excerpt. ``filename`` and ``language_hint`` are optional overrides.
|
|
92
27
|
"""
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
patch_text:
|
|
97
|
-
|
|
98
|
-
language_hint: str | None = None,
|
|
99
|
-
filename: str | None = None,
|
|
100
|
-
) -> None:
|
|
101
|
-
self._patch_text = patch_text
|
|
102
|
-
self._original = original_content
|
|
28
|
+
def __init__(self, patch_text: str, original_content: str | None = None,
|
|
29
|
+
language_hint: str | None = None, filename: str | None = None,
|
|
30
|
+
*, require_complete: bool = False) -> None:
|
|
31
|
+
self._request = {"patch_text": patch_text, "original_content": original_content,
|
|
32
|
+
"filename": filename, "require_complete": require_complete}
|
|
103
33
|
self._language_hint = language_hint
|
|
104
|
-
self.
|
|
34
|
+
self._result: dict[str, Any] | None = None
|
|
35
|
+
self._warned = False
|
|
105
36
|
|
|
106
|
-
def
|
|
107
|
-
if self.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
37
|
+
def _content(self) -> dict[str, Any]:
|
|
38
|
+
if self._result is None:
|
|
39
|
+
from intentumdiff.rust_core import _c_abi_call
|
|
40
|
+
self._result = _c_abi_call("reconstruct_patch", json.dumps(self._request))
|
|
41
|
+
return self._result
|
|
111
42
|
|
|
112
|
-
|
|
113
|
-
|
|
43
|
+
@property
|
|
44
|
+
def is_partial(self) -> bool:
|
|
45
|
+
"""Whether Rust identified the reconstructed content as an excerpt."""
|
|
46
|
+
return self._content()["scope"] == "excerpt"
|
|
114
47
|
|
|
115
|
-
def
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
if line.startswith("-"):
|
|
122
|
-
lines.append(line[1:])
|
|
123
|
-
elif line.startswith(" "):
|
|
124
|
-
lines.append(line[1:])
|
|
125
|
-
# Lines starting with '+' are new — skip them
|
|
126
|
-
return "".join(lines)
|
|
48
|
+
def get_content(self) -> tuple[str, str, str, str | None]:
|
|
49
|
+
result = self._content()
|
|
50
|
+
if result["warning"] and not self._warned:
|
|
51
|
+
warnings.warn(result["warning"], PatchExcerptWarning, stacklevel=2)
|
|
52
|
+
self._warned = True
|
|
53
|
+
return result["old_content"], result["new_content"], result["filename"], self._language_hint
|
intentumdiff/vcs/_safe_path.py
CHANGED
|
@@ -48,3 +48,10 @@ def safe_working_tree_path(root: str | Path, file_path: str) -> Path:
|
|
|
48
48
|
f"Unsafe file path: {file_path!r} - resolved path escapes {root_path!s}."
|
|
49
49
|
) from None
|
|
50
50
|
return candidate
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def safe_policy_path(root: str | Path, file_path: str) -> str:
|
|
54
|
+
"""Locate policy context for a repository blob without following its live leaf."""
|
|
55
|
+
relative = Path(safe_relative_path(file_path))
|
|
56
|
+
parent = safe_working_tree_path(root, str(relative.parent))
|
|
57
|
+
return str(parent / relative.name)
|
intentumdiff/vcs/base.py
CHANGED
|
@@ -115,6 +115,12 @@ class VcsBackend(ABC):
|
|
|
115
115
|
# Future: semantic-merge hooks (non-abstract stubs)
|
|
116
116
|
# ------------------------------------------------------------------
|
|
117
117
|
|
|
118
|
+
def guardrail_policy_path(self, path: str) -> str:
|
|
119
|
+
"""Physical policy context for a backend-relative historical file."""
|
|
120
|
+
from intentumdiff.vcs._safe_path import safe_policy_path
|
|
121
|
+
|
|
122
|
+
return safe_policy_path(self.resolve_root(), path)
|
|
123
|
+
|
|
118
124
|
def get_merge_base(self, ref_a: str, ref_b: str) -> str: # pragma: no cover
|
|
119
125
|
"""Return the common ancestor revision of *ref_a* and *ref_b*.
|
|
120
126
|
|
intentumdiff/vcs/git_backend.py
CHANGED
|
@@ -71,7 +71,7 @@ class GitVcsBackend(VcsBackend):
|
|
|
71
71
|
"""Return the on-disk content of *path* in the working tree."""
|
|
72
72
|
full_path = safe_working_tree_path(self._root, _safe_path(path))
|
|
73
73
|
try:
|
|
74
|
-
return full_path.read_text(encoding="utf-8", errors="
|
|
74
|
+
return full_path.read_text(encoding="utf-8", errors="strict")
|
|
75
75
|
except FileNotFoundError:
|
|
76
76
|
return ""
|
|
77
77
|
|
intentumdiff/vcs/git_cli.py
CHANGED
|
@@ -71,30 +71,3 @@ def run_git_bytes(
|
|
|
71
71
|
return proc.stdout
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
def parse_name_status_z(data: bytes) -> "list[tuple[str, str, str]]":
|
|
75
|
-
"""Parse ``git diff --name-status -z`` output into ``(code, old_path, new_path)``.
|
|
76
|
-
|
|
77
|
-
For Add/Delete/Modify a single path follows the status; for Rename/Copy two
|
|
78
|
-
paths follow (old then new). Paths are NUL-separated (``-z``).
|
|
79
|
-
"""
|
|
80
|
-
tokens = [t for t in data.split(b"\0") if t]
|
|
81
|
-
entries: list[tuple[str, str, str]] = []
|
|
82
|
-
idx = 0
|
|
83
|
-
while idx < len(tokens):
|
|
84
|
-
status = tokens[idx].decode("ascii", errors="replace")
|
|
85
|
-
idx += 1
|
|
86
|
-
code = status[:1]
|
|
87
|
-
if code in {"R", "C"}:
|
|
88
|
-
if idx + 1 >= len(tokens):
|
|
89
|
-
break
|
|
90
|
-
old_path = tokens[idx].decode("utf-8", errors="replace")
|
|
91
|
-
new_path = tokens[idx + 1].decode("utf-8", errors="replace")
|
|
92
|
-
idx += 2
|
|
93
|
-
else:
|
|
94
|
-
if idx >= len(tokens):
|
|
95
|
-
break
|
|
96
|
-
old_path = tokens[idx].decode("utf-8", errors="replace")
|
|
97
|
-
new_path = old_path
|
|
98
|
-
idx += 1
|
|
99
|
-
entries.append((code, old_path, new_path))
|
|
100
|
-
return entries
|
intentumdiff/vcs/hg_backend.py
CHANGED
|
@@ -70,7 +70,7 @@ class HgVcsBackend(VcsBackend):
|
|
|
70
70
|
"""Return on-disk content of *path* in the Mercurial working directory."""
|
|
71
71
|
full_path = safe_working_tree_path(self._root, path)
|
|
72
72
|
try:
|
|
73
|
-
return full_path.read_text(encoding="utf-8", errors="
|
|
73
|
+
return full_path.read_text(encoding="utf-8", errors="strict")
|
|
74
74
|
except FileNotFoundError:
|
|
75
75
|
return ""
|
|
76
76
|
|
|
@@ -89,7 +89,7 @@ class PerforceVcsBackend(VcsBackend):
|
|
|
89
89
|
"""Return on-disk content of *path* (relative to the workspace root)."""
|
|
90
90
|
full_path = safe_working_tree_path(self._root, path)
|
|
91
91
|
try:
|
|
92
|
-
return full_path.read_text(encoding="utf-8", errors="
|
|
92
|
+
return full_path.read_text(encoding="utf-8", errors="strict")
|
|
93
93
|
except FileNotFoundError:
|
|
94
94
|
return ""
|
|
95
95
|
|
|
@@ -107,3 +107,9 @@ class PerforceVcsBackend(VcsBackend):
|
|
|
107
107
|
def resolve_root(self) -> Path:
|
|
108
108
|
"""Return the Perforce workspace (client) root path."""
|
|
109
109
|
return Path(self._root)
|
|
110
|
+
|
|
111
|
+
def guardrail_policy_path(self, path: str) -> str:
|
|
112
|
+
"""Use Rust's authoritative client-view mapping for a depot identity."""
|
|
113
|
+
from intentumdiff import rust_core
|
|
114
|
+
|
|
115
|
+
return rust_core.p4_policy_path(self._root, path)
|
intentumdiff/vcs/svn_backend.py
CHANGED
|
@@ -79,7 +79,7 @@ class SvnVcsBackend(VcsBackend):
|
|
|
79
79
|
"""Return on-disk content of *path* in the SVN working copy."""
|
|
80
80
|
full_path = safe_working_tree_path(self._root, path)
|
|
81
81
|
try:
|
|
82
|
-
return full_path.read_text(encoding="utf-8", errors="
|
|
82
|
+
return full_path.read_text(encoding="utf-8", errors="strict")
|
|
83
83
|
except FileNotFoundError:
|
|
84
84
|
return ""
|
|
85
85
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
intentumdiff/wasm/go_parser.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -8,8 +8,11 @@
|
|
|
8
8
|
".asm": "asm",
|
|
9
9
|
".astro": "astro",
|
|
10
10
|
".c": "c",
|
|
11
|
+
".cfg": "ini",
|
|
11
12
|
".cjs": "javascript",
|
|
12
13
|
".clj": "clojure",
|
|
14
|
+
".cmake": "cmake",
|
|
15
|
+
".conf": "ini",
|
|
13
16
|
".cpp": "cpp",
|
|
14
17
|
".cs": "csharp",
|
|
15
18
|
".css": "css",
|
|
@@ -20,9 +23,11 @@
|
|
|
20
23
|
".ddl": "sql",
|
|
21
24
|
".dml": "sql",
|
|
22
25
|
".dockerignore": "gitignore",
|
|
26
|
+
".editorconfig": "ini",
|
|
23
27
|
".eslintignore": "gitignore",
|
|
24
28
|
".ex": "elixir",
|
|
25
29
|
".gcloudignore": "gitignore",
|
|
30
|
+
".gitconfig": "ini",
|
|
26
31
|
".gitignore": "gitignore",
|
|
27
32
|
".go": "go",
|
|
28
33
|
".gql": "graphql",
|
|
@@ -33,6 +38,7 @@
|
|
|
33
38
|
".hs": "haskell",
|
|
34
39
|
".htm": "html",
|
|
35
40
|
".html": "html",
|
|
41
|
+
".ini": "ini",
|
|
36
42
|
".java": "java",
|
|
37
43
|
".js": "javascript",
|
|
38
44
|
".json": "json",
|
|
@@ -41,11 +47,13 @@
|
|
|
41
47
|
".latex": "latex",
|
|
42
48
|
".lua": "lua",
|
|
43
49
|
".m": "m",
|
|
50
|
+
".make": "make",
|
|
44
51
|
".markdown": "markdown",
|
|
45
52
|
".md": "markdown",
|
|
46
53
|
".mdown": "markdown",
|
|
47
54
|
".mdx": "mdx",
|
|
48
55
|
".mjs": "javascript",
|
|
56
|
+
".mk": "make",
|
|
49
57
|
".mkd": "markdown",
|
|
50
58
|
".mkdn": "markdown",
|
|
51
59
|
".ml": "ocaml",
|
|
@@ -61,6 +69,7 @@
|
|
|
61
69
|
".pot": "po",
|
|
62
70
|
".pp": "puppet",
|
|
63
71
|
".prettierignore": "gitignore",
|
|
72
|
+
".proto": "proto",
|
|
64
73
|
".ps": "postscript",
|
|
65
74
|
".ps1": "powershell",
|
|
66
75
|
".py": "python",
|
|
@@ -79,6 +88,8 @@
|
|
|
79
88
|
".svelte": "svelte",
|
|
80
89
|
".swift": "swift",
|
|
81
90
|
".tex": "latex",
|
|
91
|
+
".tf": "hcl",
|
|
92
|
+
".toml": "toml",
|
|
82
93
|
".ts": "typescript",
|
|
83
94
|
".tsql": "tsql",
|
|
84
95
|
".tsx": "tsx",
|
|
@@ -86,12 +97,17 @@
|
|
|
86
97
|
".vb": "vbnet",
|
|
87
98
|
".vscodeignore": "gitignore",
|
|
88
99
|
".vue": "vue",
|
|
100
|
+
".wast": "wast",
|
|
89
101
|
".wat": "wat",
|
|
90
102
|
".xml": "xml",
|
|
91
103
|
".yaml": "yaml",
|
|
92
104
|
".yml": "yaml",
|
|
93
105
|
".zig": "zig",
|
|
94
|
-
"
|
|
106
|
+
"CMakeLists.txt": "cmake",
|
|
107
|
+
"Dockerfile": "dockerfile",
|
|
108
|
+
"GNUmakefile": "make",
|
|
109
|
+
"Makefile": "make",
|
|
110
|
+
"go.mod": "gomod"
|
|
95
111
|
},
|
|
96
112
|
"parsers": {
|
|
97
113
|
"abap": {
|
|
@@ -159,6 +175,14 @@
|
|
|
159
175
|
"plugin_id": "clojure",
|
|
160
176
|
"wasm": "clojure_parser.wasm"
|
|
161
177
|
},
|
|
178
|
+
"cmake": {
|
|
179
|
+
"extensions": [
|
|
180
|
+
"CMakeLists.txt",
|
|
181
|
+
".cmake"
|
|
182
|
+
],
|
|
183
|
+
"plugin_id": "cmake",
|
|
184
|
+
"wasm": "cmake_parser.wasm"
|
|
185
|
+
},
|
|
162
186
|
"cpp": {
|
|
163
187
|
"extensions": [
|
|
164
188
|
".cpp"
|
|
@@ -187,6 +211,11 @@
|
|
|
187
211
|
"plugin_id": "dart",
|
|
188
212
|
"wasm": "dart_parser.wasm"
|
|
189
213
|
},
|
|
214
|
+
"databricks": {
|
|
215
|
+
"extensions": [],
|
|
216
|
+
"plugin_id": "databricks-workflow",
|
|
217
|
+
"wasm": "databricks_parser.wasm"
|
|
218
|
+
},
|
|
190
219
|
"databricks-workflow": {
|
|
191
220
|
"extensions": [
|
|
192
221
|
".yml"
|
|
@@ -251,6 +280,13 @@
|
|
|
251
280
|
"plugin_id": "go",
|
|
252
281
|
"wasm": "go_parser.wasm"
|
|
253
282
|
},
|
|
283
|
+
"gomod": {
|
|
284
|
+
"extensions": [
|
|
285
|
+
"go.mod"
|
|
286
|
+
],
|
|
287
|
+
"plugin_id": "gomod",
|
|
288
|
+
"wasm": "gomod_parser.wasm"
|
|
289
|
+
},
|
|
254
290
|
"graphql": {
|
|
255
291
|
"extensions": [
|
|
256
292
|
".gql",
|
|
@@ -275,7 +311,8 @@
|
|
|
275
311
|
},
|
|
276
312
|
"hcl": {
|
|
277
313
|
"extensions": [
|
|
278
|
-
".hcl"
|
|
314
|
+
".hcl",
|
|
315
|
+
".tf"
|
|
279
316
|
],
|
|
280
317
|
"plugin_id": "hcl",
|
|
281
318
|
"wasm": "terraform_parser.wasm"
|
|
@@ -288,6 +325,17 @@
|
|
|
288
325
|
"plugin_id": "html",
|
|
289
326
|
"wasm": "html_parser.wasm"
|
|
290
327
|
},
|
|
328
|
+
"ini": {
|
|
329
|
+
"extensions": [
|
|
330
|
+
".ini",
|
|
331
|
+
".cfg",
|
|
332
|
+
".conf",
|
|
333
|
+
".editorconfig",
|
|
334
|
+
".gitconfig"
|
|
335
|
+
],
|
|
336
|
+
"plugin_id": "ini",
|
|
337
|
+
"wasm": "ini_parser.wasm"
|
|
338
|
+
},
|
|
291
339
|
"java": {
|
|
292
340
|
"extensions": [
|
|
293
341
|
".java"
|
|
@@ -341,6 +389,16 @@
|
|
|
341
389
|
"plugin_id": "m",
|
|
342
390
|
"wasm": "dax_parser.wasm"
|
|
343
391
|
},
|
|
392
|
+
"make": {
|
|
393
|
+
"extensions": [
|
|
394
|
+
"Makefile",
|
|
395
|
+
"GNUmakefile",
|
|
396
|
+
".mk",
|
|
397
|
+
".make"
|
|
398
|
+
],
|
|
399
|
+
"plugin_id": "make",
|
|
400
|
+
"wasm": "make_parser.wasm"
|
|
401
|
+
},
|
|
344
402
|
"markdown": {
|
|
345
403
|
"extensions": [
|
|
346
404
|
".markdown",
|
|
@@ -417,6 +475,13 @@
|
|
|
417
475
|
"plugin_id": "powershell",
|
|
418
476
|
"wasm": "powershell_parser.wasm"
|
|
419
477
|
},
|
|
478
|
+
"proto": {
|
|
479
|
+
"extensions": [
|
|
480
|
+
".proto"
|
|
481
|
+
],
|
|
482
|
+
"plugin_id": "proto",
|
|
483
|
+
"wasm": "proto_parser.wasm"
|
|
484
|
+
},
|
|
420
485
|
"puppet": {
|
|
421
486
|
"extensions": [
|
|
422
487
|
".pp"
|
|
@@ -519,6 +584,13 @@
|
|
|
519
584
|
"plugin_id": "swift",
|
|
520
585
|
"wasm": "swift_parser.wasm"
|
|
521
586
|
},
|
|
587
|
+
"toml": {
|
|
588
|
+
"extensions": [
|
|
589
|
+
".toml"
|
|
590
|
+
],
|
|
591
|
+
"plugin_id": "toml",
|
|
592
|
+
"wasm": "toml_parser.wasm"
|
|
593
|
+
},
|
|
522
594
|
"tsql": {
|
|
523
595
|
"extensions": [
|
|
524
596
|
".tsql"
|
|
@@ -556,6 +628,13 @@
|
|
|
556
628
|
"plugin_id": "vue",
|
|
557
629
|
"wasm": "vue_parser.wasm"
|
|
558
630
|
},
|
|
631
|
+
"wast": {
|
|
632
|
+
"extensions": [
|
|
633
|
+
".wast"
|
|
634
|
+
],
|
|
635
|
+
"plugin_id": "wat",
|
|
636
|
+
"wasm": "wat_parser.wasm"
|
|
637
|
+
},
|
|
559
638
|
"wat": {
|
|
560
639
|
"extensions": [
|
|
561
640
|
".wat"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
intentumdiff/wasm/po_parser.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
intentumdiff/wasm/r_parser.wasm
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|