intentumdiff-python 0.0.2b2__py3-none-win_arm64.whl → 0.0.3b1__py3-none-win_arm64.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 +7 -0
- intentumdiff/_differ_gate.py +0 -136
- intentumdiff/_differ_presentation.py +1 -72
- intentumdiff/_differ_runtime.py +0 -17
- intentumdiff/analysis/cross_file.py +21 -21
- intentumdiff/analysis/diagnostics.py +1 -164
- intentumdiff/analysis/guardrail_reports.py +24 -28
- intentumdiff/analysis/guardrails.py +2 -67
- intentumdiff/analysis/schema_resolver.py +23 -87
- intentumdiff/analysis/user_schemas.py +2 -17
- intentumdiff/cli/_commands.py +70 -71
- intentumdiff/cli/_parser.py +40 -55
- intentumdiff/cli/_shared.py +55 -4
- intentumdiff/core/commit_differ.py +65 -99
- intentumdiff/core/indexer.py +0 -1
- intentumdiff/core/models.py +226 -69
- intentumdiff/differ.py +125 -432
- intentumdiff/github_app.py +5 -8
- intentumdiff/intentumdiff_rust_core/intentumdiff_rust_core.dll +0 -0
- intentumdiff/live_server.py +17 -17
- intentumdiff/lsp/client.py +42 -42
- intentumdiff/lsp/servers.py +10 -11
- intentumdiff/lsp_server/_handlers.py +1 -1
- intentumdiff/lsp_server/server.py +0 -1
- intentumdiff/plugins/exceptions.py +24 -0
- intentumdiff/plugins/hub.py +38 -41
- intentumdiff/plugins/registry.py +10 -10
- intentumdiff/plugins/registry.schema.json +156 -15
- intentumdiff/plugins/registry_schema.py +47 -140
- intentumdiff/rust_core.py +112 -775
- intentumdiff/serve/_app.py +23 -25
- intentumdiff/sources/git_source.py +0 -183
- intentumdiff/vcs/git_cli.py +0 -47
- 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/cpp_parser.wasm +0 -0
- intentumdiff/wasm/csharp_parser.wasm +0 -0
- intentumdiff/wasm/databricks_parser.wasm +0 -0
- intentumdiff/wasm/dax_parser.wasm +0 -0
- intentumdiff/wasm/dockerfile_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/graphql_parser.wasm +0 -0
- intentumdiff/wasm/groovy_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/make_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/perl_parser.wasm +0 -0
- intentumdiff/wasm/php_parser.wasm +0 -0
- intentumdiff/wasm/plsql_parser.wasm +0 -0
- intentumdiff/wasm/postscript_parser.wasm +0 -0
- intentumdiff/wasm/powershell_parser.wasm +0 -0
- intentumdiff/wasm/python_parser.wasm +0 -0
- intentumdiff/wasm/qsharp_parser.wasm +0 -0
- intentumdiff/wasm/reasonml_parser.wasm +0 -0
- intentumdiff/wasm/rust_parser.wasm +0 -0
- intentumdiff/wasm/sas_parser.wasm +0 -0
- intentumdiff/wasm/sql_parser.wasm +0 -0
- intentumdiff/wasm/svelte_parser.wasm +0 -0
- intentumdiff/wasm/swift_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 +219 -219
- intentumdiff/wasm/wat_parser.wasm +0 -0
- intentumdiff/wasm/yaml_parser.wasm +0 -0
- intentumdiff/watcher.py +15 -17
- {intentumdiff_python-0.0.2b2.dist-info → intentumdiff_python-0.0.3b1.dist-info}/METADATA +38 -6
- intentumdiff_python-0.0.3b1.dist-info/RECORD +164 -0
- {intentumdiff_python-0.0.2b2.dist-info → intentumdiff_python-0.0.3b1.dist-info}/sboms/intentumdiff-rust-core.cyclonedx.json +2 -2
- intentumdiff/analysis/invariances.py +0 -208
- intentumdiff/analysis/keyed_profiles.py +0 -25
- intentumdiff/analysis/resource_profiles.py +0 -14
- intentumdiff/analysis/text_review.py +0 -47
- intentumdiff/invariances/__init__.py +0 -2
- intentumdiff/invariances/rules.schema.json +0 -283
- intentumdiff/invariances/rules.yaml +0 -349
- intentumdiff_python-0.0.2b2.dist-info/RECORD +0 -171
- {intentumdiff_python-0.0.2b2.dist-info → intentumdiff_python-0.0.3b1.dist-info}/WHEEL +0 -0
- {intentumdiff_python-0.0.2b2.dist-info → intentumdiff_python-0.0.3b1.dist-info}/entry_points.txt +0 -0
- {intentumdiff_python-0.0.2b2.dist-info → intentumdiff_python-0.0.3b1.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
|
Binary file
|
intentumdiff/watcher.py
CHANGED
|
@@ -13,7 +13,7 @@ from __future__ import annotations
|
|
|
13
13
|
import threading
|
|
14
14
|
import datetime
|
|
15
15
|
from pathlib import Path
|
|
16
|
-
from typing import TYPE_CHECKING, Callable
|
|
16
|
+
from typing import TYPE_CHECKING, Callable
|
|
17
17
|
|
|
18
18
|
from watchdog.events import FileSystemEvent, FileSystemEventHandler
|
|
19
19
|
from watchdog.observers import Observer
|
|
@@ -52,7 +52,11 @@ def _is_temp_file(path: str) -> bool:
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
class _WatchEventHandler(FileSystemEventHandler):
|
|
55
|
-
"""Filters transient files and dispatches modified/created paths to FileWatcher.
|
|
55
|
+
"""Filters transient files and dispatches modified/created/deleted paths to FileWatcher.
|
|
56
|
+
|
|
57
|
+
A deletion is debounced like a save, so delete-then-create (an atomic save) is one review;
|
|
58
|
+
a file core finds missing when its timer fires is reported as deleted, never reviewed (#326).
|
|
59
|
+
"""
|
|
56
60
|
|
|
57
61
|
def __init__(self, watcher: FileWatcher) -> None:
|
|
58
62
|
super().__init__()
|
|
@@ -66,14 +70,8 @@ class _WatchEventHandler(FileSystemEventHandler):
|
|
|
66
70
|
return
|
|
67
71
|
self._watcher._schedule_diff(path)
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if event.is_directory:
|
|
72
|
-
return
|
|
73
|
-
path = str(event.src_path)
|
|
74
|
-
if _is_temp_file(path):
|
|
75
|
-
return
|
|
76
|
-
self._watcher._schedule_diff(path)
|
|
73
|
+
on_created = on_modified # atomic-rename saves (VS Code on Windows, vim 'writebackup')
|
|
74
|
+
on_deleted = on_modified # see the class docstring
|
|
77
75
|
|
|
78
76
|
def on_moved(self, event: FileSystemEvent) -> None:
|
|
79
77
|
"""Handles rename-into-place saves (common on Windows with ReadDirectoryChangesW)."""
|
|
@@ -233,9 +231,9 @@ class FileWatcher:
|
|
|
233
231
|
f"[dim]— untracked (no version at {self._ref!r})[/dim]"
|
|
234
232
|
)
|
|
235
233
|
return
|
|
236
|
-
except FileNotFoundError:
|
|
237
|
-
|
|
238
|
-
return
|
|
234
|
+
except FileNotFoundError: # core: no working-tree file; deleted, not re-created (#326)
|
|
235
|
+
msg = f"{abs_path} — deleted (deletions are not reviewed while watching)"
|
|
236
|
+
return self._out.print(msg, style="dim", markup=False)
|
|
239
237
|
except PluginNotFoundError:
|
|
240
238
|
# No parser registered for this file extension — silently ignore
|
|
241
239
|
return
|
|
@@ -249,11 +247,11 @@ class FileWatcher:
|
|
|
249
247
|
ts = datetime.datetime.now().strftime("%H:%M:%S")
|
|
250
248
|
self._out.print(Rule(title=f"[cyan]{rel_path_str}[/cyan] [dim]{ts}[/dim]"))
|
|
251
249
|
|
|
252
|
-
if
|
|
253
|
-
self._out.print(f"[dim]{rel_path_str} — no changes[/dim]")
|
|
254
|
-
return
|
|
255
|
-
if diff.is_style_only:
|
|
250
|
+
if diff.is_style_only: # core's flag first: a style-only record has no changes (#310)
|
|
256
251
|
self._out.print(f"[dim]{rel_path_str} — style changes only[/dim]")
|
|
257
252
|
return
|
|
253
|
+
if not diff.changes and not diff.is_fallback and diff.completeness != "incomplete":
|
|
254
|
+
self._out.print(f"[dim]{rel_path_str} — no changes[/dim]")
|
|
255
|
+
return
|
|
258
256
|
|
|
259
257
|
self._render_fn(diff)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: intentumdiff-python
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3b1
|
|
4
4
|
Requires-Dist: click>=8.1
|
|
5
5
|
Requires-Dist: pydantic>=2.7
|
|
6
6
|
Requires-Dist: rich>=13.0
|
|
@@ -74,11 +74,12 @@ does: **meaningful**, **refactoring**, **moved**, or **ignored style**.
|
|
|
74
74
|
pip install --pre intentumdiff-python
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
0.0.
|
|
77
|
+
0.0.3b1 is a pre-release, so `--pre` is needed. Without it pip finds no installable version,
|
|
78
|
+
because the only stable release, 0.0.1, has been yanked.
|
|
78
79
|
Requires **Python 3.12+**. The wheel bundles the Rust engine and language parser
|
|
79
80
|
components; built-in parsing needs no separate component download.
|
|
80
81
|
|
|
81
|
-
**
|
|
82
|
+
**Platform limitation:** PowerShell is unavailable on Windows ARM64
|
|
82
83
|
because of the tracked compiler limitation in [#42](https://github.com/buchochelliq-labs/intentumdiff-python/issues/42).
|
|
83
84
|
Rust reports this parser as unavailable; the package does not substitute a Python engine.
|
|
84
85
|
|
|
@@ -118,7 +119,7 @@ intentumdiff file old.py new.py
|
|
|
118
119
|
intentumdiff git --help # diff against a ref in a git repository
|
|
119
120
|
```
|
|
120
121
|
|
|
121
|
-
## See the
|
|
122
|
+
## See the CLI
|
|
122
123
|
|
|
123
124
|
This real installed-wheel recording changes the assigned value from `1` to `2`.
|
|
124
125
|
Rust reports one modification; the main diff panel and table use **rs-rich**.
|
|
@@ -126,10 +127,41 @@ Rust reports one modification; the main diff panel and table use **rs-rich**.
|
|
|
126
127
|
[](https://github.com/buchochelliq-labs/intentumdiff-docs/blob/1c082d29f58a616136290db7003baec96aa3c200/docs/assets/cli/current/meaningful.mp4)
|
|
127
128
|
|
|
128
129
|
[Watch the CLI examples and read their exact provenance](https://github.com/buchochelliq-labs/intentumdiff-docs/blob/1c082d29f58a616136290db7003baec96aa3c200/docs/cli-demos/index.md).
|
|
129
|
-
The recordings use the verified Python #98 Linux wheel
|
|
130
|
-
|
|
130
|
+
The recordings use the verified Python #98 Linux wheel (an earlier 0.0.2b1 candidate) and
|
|
131
|
+
**rs-rich-record**; they predate 0.0.3b1.
|
|
131
132
|
Standalone guardrail reports and errors still use the existing presentation paths.
|
|
132
133
|
|
|
134
|
+
## Complete, equivalent and incomplete reviews
|
|
135
|
+
|
|
136
|
+
Every diff says how complete it is, in `diff.completeness`. The verdict comes from the
|
|
137
|
+
engine; Python never guesses it.
|
|
138
|
+
|
|
139
|
+
| `completeness` | Meaning |
|
|
140
|
+
|---|---|
|
|
141
|
+
| `"complete"` | `diff.changes` is the review. |
|
|
142
|
+
| `"equivalent"` | The sources differ, but the engine proved they mean the same thing (for example JSON keys that were only reordered). `diff.metadata["equivalence_proof"]` names the rule when there is one. |
|
|
143
|
+
| `"incomplete"` | The sources differ, but the engine could not explain the change. This is **not** "no changes". |
|
|
144
|
+
|
|
145
|
+
For an incomplete review, `diff.incomplete.message` is the engine's explanation and
|
|
146
|
+
`diff.incomplete.source_ranges` lists the line ranges it could not explain. The CLI prints
|
|
147
|
+
that message in place of "No changes detected", and repeats it on stderr.
|
|
148
|
+
|
|
149
|
+
### Reporting a bug: `--report-bug`
|
|
150
|
+
|
|
151
|
+
When a review is incomplete, the CLI can help you report it. With `--report-bug` (on
|
|
152
|
+
`file`, `git`, `patch` and `string`), or when run in an interactive terminal, it prints the
|
|
153
|
+
issue title and body the engine wrote and asks `[y/N]` before opening anything:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
intentumdiff file old.py new.py --report-bug
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Only an explicit `y` opens the pre-filled GitHub issue in your browser. If the link can
|
|
160
|
+
only carry a shortened report, the CLI says so; the printed body is the full report to
|
|
161
|
+
paste. Without a terminal nothing is ever opened. The report holds only the engine's text:
|
|
162
|
+
no file names, paths or source code. All of this goes to stderr, so JSON and other machine
|
|
163
|
+
output are unchanged.
|
|
164
|
+
|
|
133
165
|
## Documentation
|
|
134
166
|
|
|
135
167
|
**https://buchochelliq-labs.github.io/intentumdiff-docs/**
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
intentumdiff/__init__.py,sha256=ugJaK2oLodDuFpb2DyDYnvxjvd7qDZ1Rhx6wZN0GFHE,4077
|
|
2
|
+
intentumdiff/__main__.py,sha256=JDHOO-Pa4riEs38C3KdJyDpbCXfB2EUpP0DvzEYlEdI,444
|
|
3
|
+
intentumdiff/_differ_gate.py,sha256=d-chOBkSYfSYIYN90snKciOOjNZEeHYHYVdlyDr9LUo,3088
|
|
4
|
+
intentumdiff/_differ_presentation.py,sha256=yzWiQy-wKUwKeatUCWo4LkuQUomRWK_OrOpFOkXAli0,2538
|
|
5
|
+
intentumdiff/_differ_runtime.py,sha256=eqFrWLcu1ultIkL3IXdBhS8cnc7XOjnr8-0bFo3Nn7o,10764
|
|
6
|
+
intentumdiff/analysis/__init__.py,sha256=2A8p7W2BaclTBxOOpv1BBk9Gp5ycx4uH63O1q-lWZJ8,25
|
|
7
|
+
intentumdiff/analysis/compile_commands.py,sha256=6bWqX2OPvB0KUJb_GUN6_bcRHLH0USB-J_EZJ5kuizg,1709
|
|
8
|
+
intentumdiff/analysis/cross_file.py,sha256=d03WpaKfoCvSd_k9I8CyUSfdcYM507fYgEbpgIsqpTw,2764
|
|
9
|
+
intentumdiff/analysis/diagnostics.py,sha256=YyiQQPNyqh_R3v9EWD_g4w07hO3xLL-dOtmKBrd2aPY,5041
|
|
10
|
+
intentumdiff/analysis/guardrail_reports.py,sha256=h6xfCJ0ZWgyYefuqwfi-1dmaVZEh31KEvJwp4Jgl_NY,8700
|
|
11
|
+
intentumdiff/analysis/guardrails.py,sha256=qAK8eZm9RuKdDg6I9R3OHH1R7SMnbifvGkABdXALGMM,9998
|
|
12
|
+
intentumdiff/analysis/schema_resolver.py,sha256=QK6N7q2Ru1q1pGPus09FgxbB2O4AvJpKVTSV4Eyyz8E,19230
|
|
13
|
+
intentumdiff/analysis/user_schemas.py,sha256=MTMrky7RUspSmADvZ3ow38wuatpOu2UxBAkoIt9MBp8,9339
|
|
14
|
+
intentumdiff/api.py,sha256=G9BfVAptwIRdzRJp80ux67g320qOQsuypCs7sK_i2yI,1003
|
|
15
|
+
intentumdiff/assets.py,sha256=ekLSJlJzD1Ans2L9Ji8JLeqJ-36HVKwcIXApw6Ujn5M,1110
|
|
16
|
+
intentumdiff/cache/__init__.py,sha256=JAA2FV3i2zIz1XyL9cAgeH1Ll6CUx3aDmm39g-jzLH4,1141
|
|
17
|
+
intentumdiff/cache/duckdb_store.py,sha256=TyiJ-vmdHy5c9Wq1kTqS26TrEJL5XK5x43g7_CjG69w,3905
|
|
18
|
+
intentumdiff/cache/sqlite_store.py,sha256=8XIgJTSb8AiUY9ZEb8wGcnxOImywosyveMP9BxgUFDA,5122
|
|
19
|
+
intentumdiff/cache/store.py,sha256=D1z_WHL42J0b6HnZib_VCZwvXCZjdHz0z1Q_XkiKH8s,6944
|
|
20
|
+
intentumdiff/cli/__init__.py,sha256=5IAUsJgud5RxvyaGqBt5WnyzHWRaJ7HZLXvwSohFN4w,7846
|
|
21
|
+
intentumdiff/cli/_commands.py,sha256=9nirEspgAWmC2QZq7Hj9wQlecU1vLWhGtkLU_Bd5Lp0,85291
|
|
22
|
+
intentumdiff/cli/_parser.py,sha256=e5fO3l7WML9TT4abqWUOhvh0ETxJc6mNZquHqVBlC9c,42173
|
|
23
|
+
intentumdiff/cli/_shared.py,sha256=D-yyuvBMpRD9lPb7k-RQWykVtqto5IY4dm_OoUAWiQk,24061
|
|
24
|
+
intentumdiff/content_type.py,sha256=F_wiPjPQqAflPglbibIS_5TRCAJfnp7VcO9IcZZsiSk,1575
|
|
25
|
+
intentumdiff/core/__init__.py,sha256=7B-dE9Y5OFpm01nVCPo7M5kN2diA5z7pOHzb5GAFf54,21
|
|
26
|
+
intentumdiff/core/commit_differ.py,sha256=AZgADse-T_RqbsLKaY89ekym6AqVhQSpV9Uigh9P8H8,18667
|
|
27
|
+
intentumdiff/core/config.py,sha256=W0Ltd6iDahBoEjOTsG-iBXrztiTXu0Bn1QzitHUzw7A,1948
|
|
28
|
+
intentumdiff/core/diffignore.py,sha256=xRQXPzxcm9loUs9mBBWcjjnbEBHT5jILXmQtYMfC9iM,3169
|
|
29
|
+
intentumdiff/core/index.py,sha256=mEdpIYx7-NU4-MYb0zjF847Jp2apjoXXbkB0BaSvWW0,8061
|
|
30
|
+
intentumdiff/core/indexer.py,sha256=l7J7zDii81EtijIBBunPn7y8B4krkdoHWCOBHRU2HXI,32006
|
|
31
|
+
intentumdiff/core/models.py,sha256=A3El5XSb2My-tfuXOPNmhUkSksEPZrwHoDiSs84_uMQ,42084
|
|
32
|
+
intentumdiff/differ.py,sha256=nPOCACawKCupo7iURGYCFg17-94F_6UAhAP-82BMMuk,71751
|
|
33
|
+
intentumdiff/github_app.py,sha256=0P8_JbNh4_kKv2VGQ3SZ7sov0qIgZBv5p5h4Nkt5jJg,11349
|
|
34
|
+
intentumdiff/intentumdiff_rust_core/__init__.py,sha256=B2Ay4R2SMS_V2LeaC6Cz7YrMlIvfdpGfm_jHRHYK70I,153
|
|
35
|
+
intentumdiff/intentumdiff_rust_core/ffi.py,sha256=Yk2PZ6AViYBJnGlRtzZlFdsaoXJp-yVJrb9pIr3i7XI,366
|
|
36
|
+
intentumdiff/intentumdiff_rust_core/intentumdiff_rust_core.dll,sha256=6nRy1uzReQGJNIJrc-45gRffySAc7ASPGbE_gHxmzBM,25446912
|
|
37
|
+
intentumdiff/live_server.py,sha256=pp2WEkMZ4Wro2e9jtjY9Enwy_yQsQRagaQJ8ULI-Xeo,61381
|
|
38
|
+
intentumdiff/lsp/__init__.py,sha256=A1OgDGEOtCG2pv1CY0HmVQO2_emIHP23C_Us_WcBcsM,2197
|
|
39
|
+
intentumdiff/lsp/client.py,sha256=UqNdKXrmi7qh6tBFkEBN0rMtcxS6mvH0JAhJ88N6UeQ,23520
|
|
40
|
+
intentumdiff/lsp/config.py,sha256=XAhn1MXgfQnRu6zxF1eWsW43lM74zqkvcIg3Hd1CLqs,3308
|
|
41
|
+
intentumdiff/lsp/enricher.py,sha256=unuxokZqlTWZhNK8DWZY0ubjKeXnJhmc8i10XC107sA,4483
|
|
42
|
+
intentumdiff/lsp/exceptions.py,sha256=YaUh6gVUj-D8mRPOgsTuTNuwT14pxwClrSbfaG0odqc,817
|
|
43
|
+
intentumdiff/lsp/launcher.py,sha256=3GETQ18nIr5VLuKZKpplLJMVx78UgQqCDLwYDNCw7ro,10464
|
|
44
|
+
intentumdiff/lsp/servers.py,sha256=36aEDEKl1zzwi48zUWcIDZTMYNlSHcJqkFJuRmW10qc,13457
|
|
45
|
+
intentumdiff/lsp_server/__init__.py,sha256=R11YIZ4iIQYF_GBjOly4c2GBgIjfFTadf-btpnFuheQ,323
|
|
46
|
+
intentumdiff/lsp_server/_codelens.py,sha256=VLdYM3HADXtkRyEPbg0EuhfxHazTItgPYujCVrAPp30,1437
|
|
47
|
+
intentumdiff/lsp_server/_diagnostics.py,sha256=s3TSNdZBOyZ7_m5eEzhvBt-DxRuvKvkqHsqNiB1uqIU,1490
|
|
48
|
+
intentumdiff/lsp_server/_handlers.py,sha256=cno5HAf7nsAoTngFNoLS4QkLF_vuipb36HRnfwvivJE,9085
|
|
49
|
+
intentumdiff/lsp_server/server.py,sha256=RRIIEhPuNq7b1Tu-OAjxrUksHERnQgP0rF6DbknOHmY,9021
|
|
50
|
+
intentumdiff/plugins/__init__.py,sha256=s2XapvTxOyryKHwH4xrJbkMs_7DeuK5j8C65lJYpImU,24
|
|
51
|
+
intentumdiff/plugins/adapter.py,sha256=FuloefLtDTvtkHeOkN7IQRIey4TaG5sAMD5oDH2X2SY,13976
|
|
52
|
+
intentumdiff/plugins/builtins.py,sha256=wUyd0nF80DfpSrvJRu07f6UHEJgKzf4ooTHWjfJwOqY,6585
|
|
53
|
+
intentumdiff/plugins/exceptions.py,sha256=G0AoZn7QuY4hkSDpCnJp4FPZs6J_Yb-fYppp2i9N4kI,4392
|
|
54
|
+
intentumdiff/plugins/hub.py,sha256=Zn4g7eqbr2zmvk7RoAflELx_kQZCFdqQNZsrTw8D3kw,47323
|
|
55
|
+
intentumdiff/plugins/language_metadata.py,sha256=FudCrjFP3y2fRUzgKVJOA5_GVzIMALWvPe1_UuRA_YA,7380
|
|
56
|
+
intentumdiff/plugins/loader.py,sha256=iwRk7YE5jSXMcHopihZNWNrkmokJ9s_1ZRTRw9piNNw,52626
|
|
57
|
+
intentumdiff/plugins/registry.py,sha256=kcaZ-qyAMSy8HzCjW00dFtxH31qzDDOFg0ava-Wt3cY,48778
|
|
58
|
+
intentumdiff/plugins/registry.schema.json,sha256=rY5OKIZERyjIv7b6hEGLa7gYlU4dSLOxocsoPJSebKE,9025
|
|
59
|
+
intentumdiff/plugins/registry_schema.py,sha256=AcNtRH1b3sUzDFA1cUExC3h0dMjLktbjtfQOtzf6mnc,8627
|
|
60
|
+
intentumdiff/plugins/wit/plugin.wit,sha256=1eSWmS6RBrmI6jcHgzAotC13ABFVfCdODXNlWNabPbE,15341
|
|
61
|
+
intentumdiff/rust_core.py,sha256=uh7kZHtBnufTRhYHAzavl8mVGCdpGpZJPZz2I6qZyWE,74331
|
|
62
|
+
intentumdiff/serve/__init__.py,sha256=mi4xS8bJuAmZ9HD07BvRgBT4b7yseXM_JUCt1ZH1DIk,421
|
|
63
|
+
intentumdiff/serve/_app.py,sha256=yBR4vEqqOiQUWpBOpgGqwNRO7NKUT5obDzwgkb2oDJE,18638
|
|
64
|
+
intentumdiff/serve/_static/index.html,sha256=jBt17htVkvY-QgvgBxwUPPMBTOFZDTNtFblDLLiEYpk,9516
|
|
65
|
+
intentumdiff/serve/_static/playground.js,sha256=LDcIKQY-DoQRSjIIxbPMYpxeZH_n_YZS9eIkseALK-U,17864
|
|
66
|
+
intentumdiff/sources/__init__.py,sha256=sw1VHFuQtdxrDX4DD54CMDGukHTf0Vgu8XJckAuyIeg,24
|
|
67
|
+
intentumdiff/sources/base.py,sha256=0axhpotrrN--suiFwDcKqf07uUnY-oMJpPIhR8L9grA,1977
|
|
68
|
+
intentumdiff/sources/file_source.py,sha256=WZzvfCtk2rAsyc_qxhnQvOpGsWyS9kHBitNGKITVqes,2028
|
|
69
|
+
intentumdiff/sources/git_source.py,sha256=DS4lY5fFP0iFC8b5ymkCcZwpON6rOcAEqjX5AXwpdPY,10098
|
|
70
|
+
intentumdiff/sources/live_buffer_source.py,sha256=6isctlwBuiRVFn9OsIYlTeZkbsXf7DE2r6kq5m-pGXE,6403
|
|
71
|
+
intentumdiff/sources/patch_source.py,sha256=HzbbE3bz5gEzkknBjHSInsOFEbhABWP57eoHxryroo8,2342
|
|
72
|
+
intentumdiff/sources/string_source.py,sha256=qxGTZzV91qVeuew3t2b2BJc1-IXy1Dh4I3c2fnla_gk,1193
|
|
73
|
+
intentumdiff/testing.py,sha256=WUEqvHtXb3APiiFC0CSVz0pO_z_slXT9ceaJfFAZDS0,6264
|
|
74
|
+
intentumdiff/vcs/__init__.py,sha256=GA8GDSPqBHoxneTkl7pW0Is6bCg0z_sGweJYKhY0fwQ,1311
|
|
75
|
+
intentumdiff/vcs/_safe_path.py,sha256=L7H5eLOd_gnoilwPS9ToYPnrSTek74WhgE5jCXrVnlM,1977
|
|
76
|
+
intentumdiff/vcs/base.py,sha256=E-uIB2wgdsF2k5ld4XBy-a34GcFHynunCxhw4xpaqbQ,5234
|
|
77
|
+
intentumdiff/vcs/git_backend.py,sha256=CRZ4biJ4TyE8L2nTJJx02Yj8YZ81E1l76kjJYKCyFH0,3593
|
|
78
|
+
intentumdiff/vcs/git_cli.py,sha256=niplt2MTThb8WIUho5tII1SqcoSraHvLFdlEnQTntHc,2776
|
|
79
|
+
intentumdiff/vcs/hg_backend.py,sha256=pj9hwlS2z7ytcfPVcKHXha9u0hTQX5XnZMNJoFYw1A0,3666
|
|
80
|
+
intentumdiff/vcs/perforce_backend.py,sha256=cYvKDs5QtiPPP53WFATFebYKm0V3vDNE98i0SxeS2q8,4693
|
|
81
|
+
intentumdiff/vcs/svn_backend.py,sha256=v4at83GhYaJjHVTUiBlHDEvNFadChI4IFCVHfhMycr4,4171
|
|
82
|
+
intentumdiff/wasm/.gitkeep,sha256=TLEtgVRPDFnMuHzV7_4lGNOW6dptqkbMYYQ9vhMpOIs,119
|
|
83
|
+
intentumdiff/wasm/abap_parser.wasm,sha256=d-YSaWem71bvzm4KAmOiuDzLKUm6K5w-_UWxoFTTcFg,685833
|
|
84
|
+
intentumdiff/wasm/adf_parser.wasm,sha256=0VN8pAvhap4ZEpDqBXmzIYDTYEBOMF9yZYid1Z4As3U,232390
|
|
85
|
+
intentumdiff/wasm/asciidoc_parser.wasm,sha256=l4O-7oexbO1smkr-BYvCYhPxyl17NJzb7R8flBvNmRw,141918
|
|
86
|
+
intentumdiff/wasm/asm_parser.wasm,sha256=-eilnGQv60nb2yD0w6Jng-fsyNIbeFBh3E80dCEQ6os,274712
|
|
87
|
+
intentumdiff/wasm/assemblyscript_parser.wasm,sha256=9k3I4s24VGSgzmXoVnyztF2OOfX4jRCUrUTsQgLdv9Y,1688110
|
|
88
|
+
intentumdiff/wasm/astro_parser.wasm,sha256=d3KmEyY61BiImOoG7LvX7uyu9s9yYSAr4PRqpp2V87s,164680
|
|
89
|
+
intentumdiff/wasm/bash_parser.wasm,sha256=RM18Kjr7JuAkKLR95L_sTyo61wQBTt3gK_xT-MjZe1Q,1766238
|
|
90
|
+
intentumdiff/wasm/clojure_parser.wasm,sha256=t7k4niQuDGealFqAqWmZHkA1BkhES8zLbVj7zVk6w5I,350252
|
|
91
|
+
intentumdiff/wasm/cmake_parser.wasm,sha256=8wdN0-SmsLtV9zMLFWrn1wO8Yz6IfiexqKSSqGi0qlk,328350
|
|
92
|
+
intentumdiff/wasm/cpp_parser.wasm,sha256=p-lW2MViEuvGmA061maKEPN-6bag0zJYnRVTMNzIq2g,4485663
|
|
93
|
+
intentumdiff/wasm/csharp_parser.wasm,sha256=5O3LrhquZ6WU6lmLRV_RQtMvWX_zVEe87KvPqsu9XbE,5637717
|
|
94
|
+
intentumdiff/wasm/css_parser.wasm,sha256=AUwoVB3rnZKFsi3KFRD0R-uymeyiqT7LJcrZ4weFuEU,443898
|
|
95
|
+
intentumdiff/wasm/dart_parser.wasm,sha256=72q1RwqdQe5EXGzruwEtQQb_Xjy3EA0IXuKMY9jQJa4,1502119
|
|
96
|
+
intentumdiff/wasm/databricks_parser.wasm,sha256=sbpvuElWgu6jN5RP_rEcrMSFI0UzMhGGhensaWN_juA,434811
|
|
97
|
+
intentumdiff/wasm/dax_parser.wasm,sha256=43uXVQSmyhIjBXr48myeBe-XUU5r59KzQ85YR-o3gG0,158314
|
|
98
|
+
intentumdiff/wasm/delphi_parser.wasm,sha256=CRc0tAQAf5mbgru0OEd9LHmLUDX42j4YEvGmbgel1CQ,1275382
|
|
99
|
+
intentumdiff/wasm/dockerfile_parser.wasm,sha256=X-3GG4HGPxlTYV-VAdKqPhDcDDRZ3fxDkux3rwEwLO4,507724
|
|
100
|
+
intentumdiff/wasm/elixir_parser.wasm,sha256=TqRzjv6NBFRjJdaF5MkaOr-lo9YXdV-pX41ETO8uvM8,1741749
|
|
101
|
+
intentumdiff/wasm/freebasic_parser.wasm,sha256=Z5uDJqOIJomJ0X3z7noKalKzSqgSrHEMzv-Db0vB8Xg,141736
|
|
102
|
+
intentumdiff/wasm/generic_parser.wasm,sha256=xvPJXdKMRdc8EJs4_Fe3JlNS2CQd7Fa4ACkS51erIS4,123134
|
|
103
|
+
intentumdiff/wasm/gitignore_parser.wasm,sha256=hOthuVfxUHjCYFo6Vi5IJF46_jlZIPxaZYh8OmcM9OE,133174
|
|
104
|
+
intentumdiff/wasm/go_parser.wasm,sha256=S2AhbitrWMfKiU_aa3JLzlfrYFaVlRDZmW4YVBEWooU,457352
|
|
105
|
+
intentumdiff/wasm/gomod_parser.wasm,sha256=-BjgHTZPnyR_-YUBIMVogrKflUUjFmtJwUJ2zAIs5Xc,250035
|
|
106
|
+
intentumdiff/wasm/graphql_parser.wasm,sha256=l0AuMN8ZfWx9sH8T3bWigbZSpa3bkT8GSTBzSGPKXv8,148477
|
|
107
|
+
intentumdiff/wasm/groovy_parser.wasm,sha256=lS-4LxClnZyqWY7uUENnk1Wp_7g6VBqRvApyNBe8iXc,1264573
|
|
108
|
+
intentumdiff/wasm/haskell_parser.wasm,sha256=wkhpx9ehxx-P0FdBB__oi8uBbzuokkPPmtIHVrLEJ8o,4082747
|
|
109
|
+
intentumdiff/wasm/html_parser.wasm,sha256=Oq1OC3HECJkC9AxlAhCSX_aW_-veAl81YqF4NBkb5Ww,282221
|
|
110
|
+
intentumdiff/wasm/html_renderer.wasm,sha256=QHlOI2X0-WDP0SUImQewnNtGsdcs957AMFFsRiguIow,100747
|
|
111
|
+
intentumdiff/wasm/ini_parser.wasm,sha256=3GZeiXCoki9w5271cilyk9s21oAqmNWsE6dLtRnlONA,252672
|
|
112
|
+
intentumdiff/wasm/java_parser.wasm,sha256=WAAh_IPDLz_BFxHqzgaa7vowxbgasEQN2T0Fq16x_LY,659694
|
|
113
|
+
intentumdiff/wasm/js_ts_parser.wasm,sha256=mmAAO1rF_e9xcGSMzJftyU7X1vuEc8P3bk50dplYqh4,3536373
|
|
114
|
+
intentumdiff/wasm/json_parser.wasm,sha256=_7iGzwmDc7AYqw0h7NwEwJKGGcIMobIJYaQNc4QY0v0,252054
|
|
115
|
+
intentumdiff/wasm/kotlin_parser.wasm,sha256=tRVR0JymdmcAt7ZVyzPxbclvg9Oz_gXry_lbHgk9nXg,143711
|
|
116
|
+
intentumdiff/wasm/latex_parser.wasm,sha256=66zXQ8G_KfNpPX_oswVtdRCq6MneXhfiJKoIM2GV8aw,138381
|
|
117
|
+
intentumdiff/wasm/llm_renderer.wasm,sha256=aRpFpiBV_IoTz6IfWNAk9XftEZwG2r9U6KoTe0Dj2Zo,98996
|
|
118
|
+
intentumdiff/wasm/lua_parser.wasm,sha256=6fqxd0PvKDtJIY2rYzJCqssQKOBFcPMj4KD700yircs,312796
|
|
119
|
+
intentumdiff/wasm/make_parser.wasm,sha256=Msc-6qUBU4v7nk5AgHnHlSo9Bl1gpWo-RehxEUsEW8A,430068
|
|
120
|
+
intentumdiff/wasm/markdown_parser.wasm,sha256=BUFewnmJ6OuiZR90QHJahlZwuzJIpkjC5Fa09tdQLp0,744689
|
|
121
|
+
intentumdiff/wasm/mdx_parser.wasm,sha256=QpLYebrPGcNV4QFne7mEBBc3in44hG6o-VZFJybCaTM,187544
|
|
122
|
+
intentumdiff/wasm/ocaml_parser.wasm,sha256=h1iRixcLwoneLulFhRA-7TA5wGnuNoGOx-kFaecZ624,143542
|
|
123
|
+
intentumdiff/wasm/odin_parser.wasm,sha256=hI4HFmn515FHiXKbs0vSO-LzNZaKs8H42W_alzSW2i0,2486328
|
|
124
|
+
intentumdiff/wasm/parser_manifest.json,sha256=Aw2Y4nwwaLqzawcNEDTxpw6ruLJf1NlSwRIgXGaUbcI,13608
|
|
125
|
+
intentumdiff/wasm/patch_renderer.wasm,sha256=DVnkMWqnuKrnCyz5SkZWfrVMjtKEhNWPRXoIPtaziMo,96977
|
|
126
|
+
intentumdiff/wasm/perl_parser.wasm,sha256=Q3YchKbU0R77fhfmf2rmtquw7xOs_YJQN6p1e7kxWYc,5074347
|
|
127
|
+
intentumdiff/wasm/php_parser.wasm,sha256=6Swppl1RWgDrghgBADdqLkCn9E5uPOC5gY8jkUXTYTk,1342560
|
|
128
|
+
intentumdiff/wasm/plsql_parser.wasm,sha256=ENxzum5yiTQrnGz1f_Yr677R2Xn4HH5tYMUpkWj8YfE,145191
|
|
129
|
+
intentumdiff/wasm/po_parser.wasm,sha256=CSgA-OYeS21iypFL5WyFBHiRPHmN7OP-oC7km-n8lww,141400
|
|
130
|
+
intentumdiff/wasm/postscript_parser.wasm,sha256=yyjf1bPQdtUKiPFQJiUxsPdpPqPtZLl3gT-Ni8B6qrk,139224
|
|
131
|
+
intentumdiff/wasm/powershell_parser.wasm,sha256=tHz_Fa459z91PCa6u3-rs5MInD2sHcHR70PRq6SeP_A,1555290
|
|
132
|
+
intentumdiff/wasm/proto_parser.wasm,sha256=1pLnqtmnWbLVVn19xe6yxfa8LlTY5h2QjfpXbwTfWGo,365462
|
|
133
|
+
intentumdiff/wasm/puppet_parser.wasm,sha256=N458Tiq86Fi-0b_U-wgCdVnVQ42DSkePLZwsIcIGaUU,413977
|
|
134
|
+
intentumdiff/wasm/python_parser.wasm,sha256=yWjYPnY4sCbk0NCGcTH_8UOr41IOs0v8hFOu5Fimfgg,703219
|
|
135
|
+
intentumdiff/wasm/qsharp_parser.wasm,sha256=mSsjCxUXwxEtAdxuPMkXXpafdWbT1wzbdN-DlmNY5vA,162432
|
|
136
|
+
intentumdiff/wasm/r_parser.wasm,sha256=qOSO_jQDqSsUhAcuiMM89jPdDk5f1FZMH2o2mvz-DIc,731801
|
|
137
|
+
intentumdiff/wasm/reasonml_parser.wasm,sha256=zkNf-sCMffuND5ZsB5Cew26-mguu-Lw3skvr1Mhmj5k,146668
|
|
138
|
+
intentumdiff/wasm/ruby_parser.wasm,sha256=ofJRYIwi4yh24LBqwOSdmzox8wydTsr9OvmG--0pgIc,2420897
|
|
139
|
+
intentumdiff/wasm/rust_parser.wasm,sha256=wVlcF067M9kYaCbBdjOGdy-ZIFGgNL1usdrqfH8zE0Y,1367976
|
|
140
|
+
intentumdiff/wasm/sas_parser.wasm,sha256=x5Zr1JUkzpHF5FZNty1P2LnRBxGKRSNVBJVRqfJMwWA,166819
|
|
141
|
+
intentumdiff/wasm/scala_parser.wasm,sha256=4WmlYYo7a02XPVfgKBm_j_BOx7Fc3fvhmrYpPJjO1t4,5253864
|
|
142
|
+
intentumdiff/wasm/scss_parser.wasm,sha256=C96anKzuFSblC0phjQnHPjeh0VU8erNSMoh3wjD8o7w,473512
|
|
143
|
+
intentumdiff/wasm/sql_parser.wasm,sha256=ECVcWC0ExV2sW_Yas-Zh_QsKt3QAIWOzeLqsLNobCjw,2758666
|
|
144
|
+
intentumdiff/wasm/squirrel_parser.wasm,sha256=F5BcA8EJ1e6-2AoSIvwCUIbIzOSyVlizSrIL5O7p3uI,741279
|
|
145
|
+
intentumdiff/wasm/svelte_parser.wasm,sha256=tXyGhYn9rI6F36ZXDC4DapP3vZq9Obq45p9W0P-8FxY,176069
|
|
146
|
+
intentumdiff/wasm/swift_parser.wasm,sha256=GeTfQLoPeOdMyMcPKpTxkGjCZWpXbaNGikd4nJd1d6w,144729
|
|
147
|
+
intentumdiff/wasm/terminal_renderer.wasm,sha256=gY5cmeX5DBdhQksT7Nf5DoQh9JXU15edk5HkJ73DfNg,79231
|
|
148
|
+
intentumdiff/wasm/terraform_parser.wasm,sha256=eLPGLWvXAcDWeHD9KA6T5y4wcuoI1Vm2t6UHiShY5JA,365996
|
|
149
|
+
intentumdiff/wasm/toml_parser.wasm,sha256=rx7FG0frsydADix5n_c6mRs-Le24vyCob9wInUWEWHY,276774
|
|
150
|
+
intentumdiff/wasm/tsql_parser.wasm,sha256=KQTiRt3UdYzI49ZtaAliDybs0nAWvKLNhZ6NHnMPc-s,152054
|
|
151
|
+
intentumdiff/wasm/vbnet_parser.wasm,sha256=z-9cj7QP0ft7q86VH3gP0m30E3GUWLAMNjGRBVgTSXk,143624
|
|
152
|
+
intentumdiff/wasm/vue_parser.wasm,sha256=mjlkCDLRDBeK-IDXR-M14NgJi3bDwqNAiV1WcQuJQJc,159511
|
|
153
|
+
intentumdiff/wasm/wasm_provenance.json,sha256=dr7_FwihvLJ-V_Ko9ojNXkRztHIcy1kRo5QqCHC2Sj8,39466
|
|
154
|
+
intentumdiff/wasm/wat_parser.wasm,sha256=FEEEUPJ2pz9a09-YOTPifMhipd3egmabDMVOikhBTXA,139613
|
|
155
|
+
intentumdiff/wasm/xml_parser.wasm,sha256=K9jya65Pn9DlpFKO-m0BmhKLrNYHIUAWCfY4AbEOioo,327444
|
|
156
|
+
intentumdiff/wasm/yaml_parser.wasm,sha256=-XsJMEyH5zoRNV7v6_upjnNqpbt8lZ8nafiD_ERgH7Q,441157
|
|
157
|
+
intentumdiff/wasm/zig_parser.wasm,sha256=hSBUWJQWHQbDAlWPewp-PXoxJ6QgySespfwPUIuhJeY,949434
|
|
158
|
+
intentumdiff/watcher.py,sha256=0uZj4fY3IgugYvQzH-483XEGCMtUtkGDo4-OUizLguQ,10313
|
|
159
|
+
intentumdiff_python-0.0.3b1.dist-info/METADATA,sha256=l3jeiS0YkJjKMdiTao5p-IunN72bZBnlond_fmyDB2E,8331
|
|
160
|
+
intentumdiff_python-0.0.3b1.dist-info/WHEEL,sha256=NMcgpbgSQKFPcOlxqemqcJWw9mOLJ5cWmlwQILii2R4,94
|
|
161
|
+
intentumdiff_python-0.0.3b1.dist-info/entry_points.txt,sha256=LdXADFEs1_IzSdasqWp__kb9PjtGU0HoDI2dcyISGyI,4310
|
|
162
|
+
intentumdiff_python-0.0.3b1.dist-info/licenses/LICENSE,sha256=hJSJ840dZT-zhZgwY8R_QOzoWG_XTTzKJyMup5T4qi8,1103
|
|
163
|
+
intentumdiff_python-0.0.3b1.dist-info/sboms/intentumdiff-rust-core.cyclonedx.json,sha256=pFucHyJtn7d2K8k-WuiJF79tphoS5e3wokDYCg5lSo8,382413
|
|
164
|
+
intentumdiff_python-0.0.3b1.dist-info/RECORD,,
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.5",
|
|
4
4
|
"version": 1,
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:58abf982-4db2-4659-b94f-08fba7a81d24",
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2026-11-
|
|
7
|
+
"timestamp": "2026-11-18T10:41:42.117771300Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "CycloneDX",
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
intentumdiff.analysis.invariances
|
|
3
|
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
4
|
-
|
|
5
|
-
Validated, data-only invariance rule catalogue.
|
|
6
|
-
|
|
7
|
-
All semantic evaluation and evidence construction are Rust-owned. The packaged
|
|
8
|
-
YAML declares metadata only; this module contains no Python semantic pipeline.
|
|
9
|
-
"""
|
|
10
|
-
|
|
11
|
-
from __future__ import annotations
|
|
12
|
-
|
|
13
|
-
from dataclasses import dataclass, field
|
|
14
|
-
from functools import lru_cache
|
|
15
|
-
from importlib import resources
|
|
16
|
-
from typing import Any, Literal
|
|
17
|
-
|
|
18
|
-
import yaml
|
|
19
|
-
from pydantic import BaseModel, Field, field_validator, model_validator
|
|
20
|
-
|
|
21
|
-
from intentumdiff.core.models import Change, ChangeGroup, ChangeGroupKind
|
|
22
|
-
|
|
23
|
-
_ALLOWED_EVALUATORS = frozenset(
|
|
24
|
-
{
|
|
25
|
-
"css_color_equivalence",
|
|
26
|
-
"style_only_shortcut_evidence",
|
|
27
|
-
"integer_literal_equivalence",
|
|
28
|
-
"string_literal_equivalence",
|
|
29
|
-
"formatting_suppression_evidence",
|
|
30
|
-
"parser_normalization",
|
|
31
|
-
"number_literal_equivalence",
|
|
32
|
-
}
|
|
33
|
-
)
|
|
34
|
-
_KNOWN_LANGUAGE_IDS = frozenset(
|
|
35
|
-
{
|
|
36
|
-
"abap",
|
|
37
|
-
"adf",
|
|
38
|
-
"asciidoc",
|
|
39
|
-
"asm",
|
|
40
|
-
"assemblyscript",
|
|
41
|
-
"astro",
|
|
42
|
-
"bash",
|
|
43
|
-
"c",
|
|
44
|
-
"clojure",
|
|
45
|
-
"cpp",
|
|
46
|
-
"csharp",
|
|
47
|
-
"css",
|
|
48
|
-
"dart",
|
|
49
|
-
"databricks-workflow",
|
|
50
|
-
"dax",
|
|
51
|
-
"delphi",
|
|
52
|
-
"gitignore",
|
|
53
|
-
"dockerfile",
|
|
54
|
-
"elixir",
|
|
55
|
-
"freebasic",
|
|
56
|
-
"generic",
|
|
57
|
-
"go",
|
|
58
|
-
"graphql",
|
|
59
|
-
"groovy",
|
|
60
|
-
"haskell",
|
|
61
|
-
"hcl",
|
|
62
|
-
"html",
|
|
63
|
-
"java",
|
|
64
|
-
"javascript",
|
|
65
|
-
"json",
|
|
66
|
-
"kotlin",
|
|
67
|
-
"latex",
|
|
68
|
-
"lua",
|
|
69
|
-
"m",
|
|
70
|
-
"markdown",
|
|
71
|
-
"ini",
|
|
72
|
-
"gomod",
|
|
73
|
-
"make",
|
|
74
|
-
"cmake",
|
|
75
|
-
"proto",
|
|
76
|
-
"toml",
|
|
77
|
-
"mdx",
|
|
78
|
-
"ocaml",
|
|
79
|
-
"odin",
|
|
80
|
-
"perl",
|
|
81
|
-
"php",
|
|
82
|
-
"plsql",
|
|
83
|
-
"po",
|
|
84
|
-
"postscript",
|
|
85
|
-
"powershell",
|
|
86
|
-
"puppet",
|
|
87
|
-
"python",
|
|
88
|
-
"qsharp",
|
|
89
|
-
"r",
|
|
90
|
-
"reasonml",
|
|
91
|
-
"ruby",
|
|
92
|
-
"rust",
|
|
93
|
-
"sas",
|
|
94
|
-
"scala",
|
|
95
|
-
"scss",
|
|
96
|
-
"sql",
|
|
97
|
-
"squirrel",
|
|
98
|
-
"svelte",
|
|
99
|
-
"swift",
|
|
100
|
-
"tsx",
|
|
101
|
-
"tsql",
|
|
102
|
-
"typescript",
|
|
103
|
-
"vbnet",
|
|
104
|
-
"vue",
|
|
105
|
-
"wat",
|
|
106
|
-
"xml",
|
|
107
|
-
"yaml",
|
|
108
|
-
"zig",
|
|
109
|
-
}
|
|
110
|
-
)
|
|
111
|
-
class InvarianceRuleDefinition(BaseModel, frozen=True):
|
|
112
|
-
"""Validated declaration for one packaged invariance rule."""
|
|
113
|
-
|
|
114
|
-
id: str = Field(min_length=1)
|
|
115
|
-
languages: tuple[str, ...] = Field(min_length=1)
|
|
116
|
-
status: Literal["implemented", "catalog"] = "implemented"
|
|
117
|
-
evaluator: str | None = None
|
|
118
|
-
node_types: tuple[str, ...] = Field(default_factory=tuple)
|
|
119
|
-
group_kind: ChangeGroupKind = ChangeGroupKind.IGNORED_STYLE
|
|
120
|
-
enabled: bool = True
|
|
121
|
-
risk: Literal["green", "amber", "red"] = "amber"
|
|
122
|
-
equivalence_kind: str = "canonical_value_equivalence"
|
|
123
|
-
explanation: str = Field(min_length=1)
|
|
124
|
-
examples: tuple[dict[str, Any], ...] = Field(default_factory=tuple)
|
|
125
|
-
stage: str | None = None
|
|
126
|
-
guarantee: str | None = None
|
|
127
|
-
guards: tuple[str, ...] = Field(default_factory=tuple)
|
|
128
|
-
source_refs: tuple[str, ...] = Field(default_factory=tuple)
|
|
129
|
-
notes: str = ""
|
|
130
|
-
|
|
131
|
-
@field_validator("evaluator")
|
|
132
|
-
@classmethod
|
|
133
|
-
def _known_evaluator(cls, value: str | None) -> str | None:
|
|
134
|
-
if value is not None and value not in _ALLOWED_EVALUATORS:
|
|
135
|
-
raise ValueError(f"unknown invariance evaluator: {value}")
|
|
136
|
-
return value
|
|
137
|
-
|
|
138
|
-
@field_validator("languages")
|
|
139
|
-
@classmethod
|
|
140
|
-
def _known_languages(cls, value: tuple[str, ...]) -> tuple[str, ...]:
|
|
141
|
-
unknown = sorted(set(value) - _KNOWN_LANGUAGE_IDS)
|
|
142
|
-
if unknown:
|
|
143
|
-
raise ValueError(f"unknown invariance languages: {unknown}")
|
|
144
|
-
return value
|
|
145
|
-
|
|
146
|
-
@field_validator("languages", "node_types", "guards", "source_refs", mode="before")
|
|
147
|
-
@classmethod
|
|
148
|
-
def _tuple_from_list(cls, value: Any) -> tuple[str, ...]:
|
|
149
|
-
if value is None:
|
|
150
|
-
return tuple()
|
|
151
|
-
return tuple(value)
|
|
152
|
-
|
|
153
|
-
@model_validator(mode="after")
|
|
154
|
-
def _status_consistency(self) -> InvarianceRuleDefinition:
|
|
155
|
-
if self.status == "implemented" and self.evaluator is None:
|
|
156
|
-
raise ValueError("implemented invariance rules require an evaluator")
|
|
157
|
-
if self.status == "catalog" and self.enabled:
|
|
158
|
-
raise ValueError("catalog invariance rules must be disabled")
|
|
159
|
-
return self
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
class InvarianceRuleSet(BaseModel, frozen=True):
|
|
163
|
-
"""Top-level packaged rule file shape."""
|
|
164
|
-
|
|
165
|
-
version: int = Field(ge=1)
|
|
166
|
-
rules: tuple[InvarianceRuleDefinition, ...] = Field(default_factory=tuple)
|
|
167
|
-
|
|
168
|
-
@field_validator("rules", mode="before")
|
|
169
|
-
@classmethod
|
|
170
|
-
def _tuple_rules(cls, value: Any) -> tuple[Any, ...]:
|
|
171
|
-
return tuple(value or ())
|
|
172
|
-
|
|
173
|
-
@model_validator(mode="after")
|
|
174
|
-
def _unique_rule_ids(self) -> InvarianceRuleSet:
|
|
175
|
-
seen: set[str] = set()
|
|
176
|
-
duplicates: set[str] = set()
|
|
177
|
-
for rule in self.rules:
|
|
178
|
-
if rule.id in seen:
|
|
179
|
-
duplicates.add(rule.id)
|
|
180
|
-
seen.add(rule.id)
|
|
181
|
-
if duplicates:
|
|
182
|
-
raise ValueError(f"duplicate invariance rule ids: {sorted(duplicates)}")
|
|
183
|
-
return self
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
@dataclass(frozen=True)
|
|
187
|
-
class InvarianceResult:
|
|
188
|
-
changes: list[Change]
|
|
189
|
-
change_groups: list[ChangeGroup] = field(default_factory=list)
|
|
190
|
-
ignored_style_changes: list[dict[str, Any]] = field(default_factory=list)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
@lru_cache(maxsize=1)
|
|
194
|
-
def load_builtin_invariance_rules() -> tuple[InvarianceRuleDefinition, ...]:
|
|
195
|
-
"""Load and validate packaged built-in invariance rules."""
|
|
196
|
-
|
|
197
|
-
rule_path = resources.files("intentumdiff.invariances").joinpath("rules.yaml")
|
|
198
|
-
raw = yaml.safe_load(rule_path.read_text(encoding="utf-8")) or {}
|
|
199
|
-
return InvarianceRuleSet.model_validate(raw).rules
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
def builtin_invariance_rule(rule_id: str) -> InvarianceRuleDefinition | None:
|
|
203
|
-
"""Return a packaged invariance rule by id, if present."""
|
|
204
|
-
|
|
205
|
-
for rule in load_builtin_invariance_rules():
|
|
206
|
-
if rule.id == rule_id:
|
|
207
|
-
return rule
|
|
208
|
-
return None
|
|
@@ -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,47 +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. Only an explicit Rust-certified LCS size-cap decline
|
|
37
|
-
passes through the existing change DTOs. An unavailable Rust handler or
|
|
38
|
-
malformed response raises rather than manufacturing a successful review.
|
|
39
|
-
The implementation lives in ``text_review_generic.rs``.
|
|
40
|
-
"""
|
|
41
|
-
from intentumdiff.rust_core import try_rust_generic_text_review
|
|
42
|
-
|
|
43
|
-
rust_review = try_rust_generic_text_review(old_source, new_source, len(changes))
|
|
44
|
-
if rust_review is not None:
|
|
45
|
-
rust_changes, rust_groups = rust_review
|
|
46
|
-
return PresentationResult(changes=rust_changes, change_groups=rust_groups)
|
|
47
|
-
return PresentationResult(changes=changes)
|