inferdiff 0.1.0__py3-none-any.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.
- inferdiff/__init__.py +64 -0
- inferdiff/__main__.py +10 -0
- inferdiff/canary.py +1431 -0
- inferdiff/cli.py +490 -0
- inferdiff/detectors.py +423 -0
- inferdiff/dialects/__init__.py +41 -0
- inferdiff/dialects/ollama_ndjson.py +94 -0
- inferdiff/dialects/openai_chat.py +113 -0
- inferdiff/dialects/openai_responses.py +180 -0
- inferdiff/dialects/sglang_native.py +68 -0
- inferdiff/differ.py +649 -0
- inferdiff/exporter.py +482 -0
- inferdiff/probes/__init__.py +5 -0
- inferdiff/probes/base.py +52 -0
- inferdiff/recorder.py +918 -0
- inferdiff/redact.py +355 -0
- inferdiff/schema.py +955 -0
- inferdiff/waterfall.py +771 -0
- inferdiff-0.1.0.dist-info/METADATA +165 -0
- inferdiff-0.1.0.dist-info/RECORD +24 -0
- inferdiff-0.1.0.dist-info/WHEEL +5 -0
- inferdiff-0.1.0.dist-info/entry_points.txt +2 -0
- inferdiff-0.1.0.dist-info/licenses/LICENSE +21 -0
- inferdiff-0.1.0.dist-info/top_level.txt +1 -0
inferdiff/__init__.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""inferdiff: Wire-level canary doctor, regression diff, silent-failure forensics, and HTML waterfall."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__version__ = "0.1.0"
|
|
6
|
+
|
|
7
|
+
from .canary import DoctorReport, ProbeResult, run_doctor
|
|
8
|
+
from .detectors import Finding, audit_trace, detect_d1, detect_d2, detect_d3, detect_d4, detect_d5
|
|
9
|
+
from .differ import DiffReport, DivergencePoint, diff_traces
|
|
10
|
+
from .exporter import render_audit_terminal, render_ci_summary, render_diff_terminal, render_github_issue
|
|
11
|
+
from .recorder import RecorderError, record_stream
|
|
12
|
+
from .schema import (
|
|
13
|
+
EXIT_OK,
|
|
14
|
+
EXIT_SEMANTIC_REGRESSION,
|
|
15
|
+
EXIT_SILENT_PROTOCOL_BREACH,
|
|
16
|
+
EXIT_USAGE_OR_IO_ERROR,
|
|
17
|
+
SCHEMA_VERSION,
|
|
18
|
+
TraceDocument,
|
|
19
|
+
TraceFrame,
|
|
20
|
+
TraceHeader,
|
|
21
|
+
TraceSchemaError,
|
|
22
|
+
TraceSummary,
|
|
23
|
+
load_trace,
|
|
24
|
+
write_trace,
|
|
25
|
+
)
|
|
26
|
+
from .waterfall import render_audit_html, render_diff_html, render_doctor_html
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"__version__",
|
|
30
|
+
"SCHEMA_VERSION",
|
|
31
|
+
"EXIT_OK",
|
|
32
|
+
"EXIT_USAGE_OR_IO_ERROR",
|
|
33
|
+
"EXIT_SILENT_PROTOCOL_BREACH",
|
|
34
|
+
"EXIT_SEMANTIC_REGRESSION",
|
|
35
|
+
"DoctorReport",
|
|
36
|
+
"ProbeResult",
|
|
37
|
+
"run_doctor",
|
|
38
|
+
"Finding",
|
|
39
|
+
"DiffReport",
|
|
40
|
+
"DivergencePoint",
|
|
41
|
+
"TraceDocument",
|
|
42
|
+
"TraceFrame",
|
|
43
|
+
"TraceHeader",
|
|
44
|
+
"TraceSummary",
|
|
45
|
+
"TraceSchemaError",
|
|
46
|
+
"RecorderError",
|
|
47
|
+
"record_stream",
|
|
48
|
+
"load_trace",
|
|
49
|
+
"write_trace",
|
|
50
|
+
"audit_trace",
|
|
51
|
+
"diff_traces",
|
|
52
|
+
"detect_d1",
|
|
53
|
+
"detect_d2",
|
|
54
|
+
"detect_d3",
|
|
55
|
+
"detect_d4",
|
|
56
|
+
"detect_d5",
|
|
57
|
+
"render_audit_terminal",
|
|
58
|
+
"render_diff_terminal",
|
|
59
|
+
"render_github_issue",
|
|
60
|
+
"render_ci_summary",
|
|
61
|
+
"render_audit_html",
|
|
62
|
+
"render_diff_html",
|
|
63
|
+
"render_doctor_html",
|
|
64
|
+
]
|