@jini-ai/diagnostics 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @jini-ai/diagnostics
|
|
2
2
|
|
|
3
|
+
## 0.5.3 — 2026-10-15
|
|
4
|
+
|
|
5
|
+
- The public-page browser capture uses a fixed 1,000,000-char raw-HTML cap instead of `maxChars * 4` (0625844e), so a large style head no longer eats the readable-text budget; `maxChars` still caps the text.
|
|
6
|
+
|
|
3
7
|
## 0.5.1
|
|
4
8
|
|
|
5
9
|
### Patch Changes
|
|
@@ -75,6 +75,7 @@ export declare function createJsonCapture(_required: Record<string, never>, { ma
|
|
|
75
75
|
};
|
|
76
76
|
/** Self-contained browser script: DOM and computed styles are native browser capabilities.
|
|
77
77
|
* Ships as a string to avoid esbuild's module-scoped __name helper leaking into evaluation.
|
|
78
|
+
* HTML has a fixed transport cap so a large style head cannot consume the readable-text budget.
|
|
78
79
|
* Scans at most 5000 nodes, caps images and every emitted string before crossing the browser port. */
|
|
79
80
|
export declare function publicPageExpression({ maxChars, textMode }: {
|
|
80
81
|
maxChars: number;
|
|
@@ -80,10 +80,11 @@ export function createJsonCapture(_required, { maxResponses = 20, perBodyChars =
|
|
|
80
80
|
}
|
|
81
81
|
/** Self-contained browser script: DOM and computed styles are native browser capabilities.
|
|
82
82
|
* Ships as a string to avoid esbuild's module-scoped __name helper leaking into evaluation.
|
|
83
|
+
* HTML has a fixed transport cap so a large style head cannot consume the readable-text budget.
|
|
83
84
|
* Scans at most 5000 nodes, caps images and every emitted string before crossing the browser port. */
|
|
84
85
|
export function publicPageExpression({ maxChars, textMode = "full" }, _options = {}) {
|
|
85
86
|
return `(() => {
|
|
86
|
-
const cap = ${maxChars}; const htmlCap =
|
|
87
|
+
const cap = ${maxChars}; const htmlCap = 1_000_000;
|
|
87
88
|
const mode = ${JSON.stringify(textMode)}; const textCap = mode === 'summary' ? Math.min(1000, cap) : cap;
|
|
88
89
|
const images = []; const seen = new Set(); let imagesTruncated = false;
|
|
89
90
|
const add = (raw, alt) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/diagnostics",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Diagnostics-bundle tooling: JSON/text secret redaction, log-source collection, manifest building, and zip packaging for support exports.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@vitest/coverage-v8": "^2.1.9",
|
|
84
84
|
"jszip": "^3.10.1",
|
|
85
|
-
"@jini-ai/core": "^0.4.
|
|
85
|
+
"@jini-ai/core": "^0.4.6"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@jini-ai/core": "^0.4.
|
|
88
|
+
"@jini-ai/core": "^0.4.6"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"jszip": "^3.10.1"
|