@shuji-bonji/pdf-reader-mcp 0.12.0 → 0.14.0

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +181 -0
  2. package/dist/constants.js.map +1 -1
  3. package/dist/errors.d.ts.map +1 -1
  4. package/dist/errors.js.map +1 -1
  5. package/dist/index.js +8 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/schemas/common.d.ts +2 -2
  8. package/dist/schemas/common.d.ts.map +1 -1
  9. package/dist/schemas/common.js +1 -2
  10. package/dist/schemas/common.js.map +1 -1
  11. package/dist/schemas/tier1.d.ts +22 -98
  12. package/dist/schemas/tier1.d.ts.map +1 -1
  13. package/dist/schemas/tier2.d.ts +18 -78
  14. package/dist/schemas/tier2.d.ts.map +1 -1
  15. package/dist/schemas/tier3.d.ts +6 -26
  16. package/dist/schemas/tier3.d.ts.map +1 -1
  17. package/dist/services/content-stream-service.js.map +1 -1
  18. package/dist/services/page-renderer.d.ts +25 -0
  19. package/dist/services/page-renderer.d.ts.map +1 -1
  20. package/dist/services/page-renderer.js +160 -62
  21. package/dist/services/page-renderer.js.map +1 -1
  22. package/dist/services/page-renderer.worker.mjs +104 -0
  23. package/dist/services/pdfjs-service.js.map +1 -1
  24. package/dist/services/reading-scope.d.ts +115 -0
  25. package/dist/services/reading-scope.d.ts.map +1 -0
  26. package/dist/services/reading-scope.js +123 -0
  27. package/dist/services/reading-scope.js.map +1 -0
  28. package/dist/services/struct-tree-service.js.map +1 -1
  29. package/dist/services/struct-tree-walker.js.map +1 -1
  30. package/dist/services/text-extractability-service.js.map +1 -1
  31. package/dist/services/validation-service.d.ts.map +1 -1
  32. package/dist/services/validation-service.js +78 -15
  33. package/dist/services/validation-service.js.map +1 -1
  34. package/dist/tools/index.d.ts +1 -1
  35. package/dist/tools/index.d.ts.map +1 -1
  36. package/dist/tools/index.js +0 -4
  37. package/dist/tools/index.js.map +1 -1
  38. package/dist/tools/tier1/get-metadata.d.ts +1 -1
  39. package/dist/tools/tier1/get-metadata.d.ts.map +1 -1
  40. package/dist/tools/tier1/get-metadata.js +0 -3
  41. package/dist/tools/tier1/get-metadata.js.map +1 -1
  42. package/dist/tools/tier1/get-page-count.d.ts +1 -1
  43. package/dist/tools/tier1/get-page-count.d.ts.map +1 -1
  44. package/dist/tools/tier1/get-page-count.js +0 -3
  45. package/dist/tools/tier1/get-page-count.js.map +1 -1
  46. package/dist/tools/tier1/read-images.d.ts +1 -1
  47. package/dist/tools/tier1/read-images.d.ts.map +1 -1
  48. package/dist/tools/tier1/read-images.js +0 -3
  49. package/dist/tools/tier1/read-images.js.map +1 -1
  50. package/dist/tools/tier1/read-text.d.ts +1 -1
  51. package/dist/tools/tier1/read-text.d.ts.map +1 -1
  52. package/dist/tools/tier1/read-text.js +49 -37
  53. package/dist/tools/tier1/read-text.js.map +1 -1
  54. package/dist/tools/tier1/read-url.d.ts +1 -1
  55. package/dist/tools/tier1/read-url.d.ts.map +1 -1
  56. package/dist/tools/tier1/read-url.js +62 -41
  57. package/dist/tools/tier1/read-url.js.map +1 -1
  58. package/dist/tools/tier1/render-page.d.ts +1 -1
  59. package/dist/tools/tier1/render-page.d.ts.map +1 -1
  60. package/dist/tools/tier1/render-page.js +2 -3
  61. package/dist/tools/tier1/render-page.js.map +1 -1
  62. package/dist/tools/tier1/search-text.d.ts +1 -1
  63. package/dist/tools/tier1/search-text.d.ts.map +1 -1
  64. package/dist/tools/tier1/search-text.js +66 -58
  65. package/dist/tools/tier1/search-text.js.map +1 -1
  66. package/dist/tools/tier1/summarize.d.ts +1 -1
  67. package/dist/tools/tier1/summarize.d.ts.map +1 -1
  68. package/dist/tools/tier1/summarize.js +71 -40
  69. package/dist/tools/tier1/summarize.js.map +1 -1
  70. package/dist/tools/tier2/extract-structured-text.d.ts +1 -1
  71. package/dist/tools/tier2/extract-structured-text.d.ts.map +1 -1
  72. package/dist/tools/tier2/extract-structured-text.js +38 -31
  73. package/dist/tools/tier2/extract-structured-text.js.map +1 -1
  74. package/dist/tools/tier2/extract-tables.d.ts +1 -1
  75. package/dist/tools/tier2/extract-tables.d.ts.map +1 -1
  76. package/dist/tools/tier2/extract-tables.js +0 -8
  77. package/dist/tools/tier2/extract-tables.js.map +1 -1
  78. package/dist/tools/tier2/inspect-annotations.d.ts +1 -1
  79. package/dist/tools/tier2/inspect-annotations.d.ts.map +1 -1
  80. package/dist/tools/tier2/inspect-annotations.js +0 -3
  81. package/dist/tools/tier2/inspect-annotations.js.map +1 -1
  82. package/dist/tools/tier2/inspect-fonts.d.ts +1 -1
  83. package/dist/tools/tier2/inspect-fonts.d.ts.map +1 -1
  84. package/dist/tools/tier2/inspect-fonts.js +0 -3
  85. package/dist/tools/tier2/inspect-fonts.js.map +1 -1
  86. package/dist/tools/tier2/inspect-signatures.d.ts +1 -1
  87. package/dist/tools/tier2/inspect-signatures.d.ts.map +1 -1
  88. package/dist/tools/tier2/inspect-signatures.js +0 -3
  89. package/dist/tools/tier2/inspect-signatures.js.map +1 -1
  90. package/dist/tools/tier2/inspect-structure.d.ts +1 -1
  91. package/dist/tools/tier2/inspect-structure.d.ts.map +1 -1
  92. package/dist/tools/tier2/inspect-structure.js +0 -3
  93. package/dist/tools/tier2/inspect-structure.js.map +1 -1
  94. package/dist/tools/tier2/inspect-tags.d.ts +1 -1
  95. package/dist/tools/tier2/inspect-tags.d.ts.map +1 -1
  96. package/dist/tools/tier2/inspect-tags.js +0 -3
  97. package/dist/tools/tier2/inspect-tags.js.map +1 -1
  98. package/dist/tools/tier2/locate-objects.d.ts +1 -1
  99. package/dist/tools/tier2/locate-objects.d.ts.map +1 -1
  100. package/dist/tools/tier2/locate-objects.js +0 -3
  101. package/dist/tools/tier2/locate-objects.js.map +1 -1
  102. package/dist/tools/tier3/compare-structure.d.ts +1 -1
  103. package/dist/tools/tier3/compare-structure.d.ts.map +1 -1
  104. package/dist/tools/tier3/compare-structure.js +2 -3
  105. package/dist/tools/tier3/compare-structure.js.map +1 -1
  106. package/dist/tools/tier3/validate-metadata.d.ts +1 -1
  107. package/dist/tools/tier3/validate-metadata.d.ts.map +1 -1
  108. package/dist/tools/tier3/validate-metadata.js +0 -3
  109. package/dist/tools/tier3/validate-metadata.js.map +1 -1
  110. package/dist/tools/tier3/validate-tagged.d.ts +1 -1
  111. package/dist/tools/tier3/validate-tagged.d.ts.map +1 -1
  112. package/dist/tools/tier3/validate-tagged.js +2 -3
  113. package/dist/tools/tier3/validate-tagged.js.map +1 -1
  114. package/dist/types.d.ts +56 -13
  115. package/dist/types.d.ts.map +1 -1
  116. package/dist/utils/batch-processor.js.map +1 -1
  117. package/dist/utils/error-handler.d.ts.map +1 -1
  118. package/dist/utils/error-handler.js +15 -2
  119. package/dist/utils/error-handler.js.map +1 -1
  120. package/dist/utils/formatter.d.ts.map +1 -1
  121. package/dist/utils/formatter.js +41 -17
  122. package/dist/utils/formatter.js.map +1 -1
  123. package/package.json +9 -6
package/CHANGELOG.md CHANGED
@@ -5,6 +5,187 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.14.0] - 2026-08-30
9
+
10
+ Text-returning tools now say which of the readings behind their answer were
11
+ actually done. Output shapes change — read **Changed** before upgrading.
12
+
13
+ ### Fixed
14
+
15
+ - **`read_url` returned an error for every input.** The bytes fetched from the
16
+ URL were handed to pdfjs and then, concurrently, to the extractability
17
+ observation. pdfjs takes ownership of the `Uint8Array` it is given and moves
18
+ its buffer to a worker, so the second reader saw zero bytes and reported
19
+ `Failed to parse PDF document (line:0 col:0 offset=0): No PDF header found`.
20
+ Measured over the 40-specimen smoke set: 40 of 40 calls were `isError`. Each
21
+ reader now gets its own copy of the bytes.
22
+
23
+ - **The error a caller received for an unreadable file was decided by a race.**
24
+ `read_text`, `read_url`, `search_text`, `summarize` and
25
+ `extract_structured_text` each ran two readings inside `Promise.all`, which
26
+ rejects with whichever rejected first. Twelve calls with the same file
27
+ returned `INVALID_PDF` ten times and `INTERNAL_ERROR` twice, with different
28
+ `hint` and `next_actions` each way. Taking the same golden twice, with
29
+ nothing changed, produced three differences.
30
+
31
+ - **A damaged file was reported as this server's fault.** pdf-lib's parse
32
+ failures (`Failed to parse ...`, `No PDF header found`,
33
+ `Expected instance of PDF...`) fell through to `INTERNAL_ERROR`; they are
34
+ `INVALID_PDF`.
35
+
36
+ - **A 3.4 KB file could stop the server for good.** `render_page` called PDFium
37
+ on the main thread, and PDFium runs synchronously inside WebAssembly. Two
38
+ files in the veraPDF corpus (`TWG test suite A018-pdfa2-pass-b.pdf` and
39
+ `-fail-b.pdf`) never came back: twenty minutes in, the process still had to be
40
+ killed. A timer set to fire every second during the call fired zero times —
41
+ the event loop was blocked, so no timeout written in JavaScript could have
42
+ interrupted it.
43
+
44
+ The cause is in the file, and it is not a violation. The page is filled with a
45
+ tiling pattern (ISO 32000-2 §8.7.3.1) whose `/YStep` is `-1.175e-38`. Table 74
46
+ says `XStep` and `YStep` "may be either positive or negative but shall not be
47
+ zero"; this is not zero. It is the smallest magnitude a float32 can hold, so
48
+ tiling 500 points at that step asks for more than 10^38 tiles.
49
+
50
+ Rendering now runs in a worker thread with a **20-second budget per page**
51
+ (`PDF_READER_RENDER_TIMEOUT_MS` overrides it, or `pageTimeoutMs` in-process).
52
+ `worker.terminate()` does stop a wedged PDFium — measured. Pages rendered
53
+ before the stuck one are still returned; the stuck page is named in `omitted`
54
+ with the reason; pages after it are reported separately as `not attempted`,
55
+ because "could not be rendered" and "never started" are different answers.
56
+
57
+ The worker is `src/services/page-renderer.worker.mjs` — plain JavaScript, not
58
+ TypeScript, and it imports nothing from `src`. Node runs it as it is: Node 20
59
+ has no type stripping and Node 22 does not enable it in every release, so a
60
+ `.ts` worker fails with `Unknown file extension ".ts"` (it did, on both CI Node
61
+ versions). For the same reason the worker only produces pixels; the BGRA-to-RGB
62
+ conversion, the downscale and the encoding stay on the calling side, with the
63
+ bitmap handed over as a transferable so nothing is copied. `npm run build`
64
+ copies the worker into `dist` (`scripts/copy-worker.mjs`), and a test fails if
65
+ that coupling is broken.
66
+
67
+ ### Changed
68
+
69
+ - **Two readings, reported separately (#26).** Taking the characters off a page
70
+ (pdfjs) and observing whether those characters have a route to Unicode
71
+ (ISO 32000-2 §9.10.1, pdf-lib) are separate questions that fail separately.
72
+ Over 2,931 corpus files: 2,927 both succeeded, 3 had the text but not the
73
+ observation, and 1 had neither. In those 3 the tool returned an error and
74
+ **threw away text it had already extracted** — 13, 0 and 86 characters.
75
+
76
+ Every text-returning tool now carries `scope`:
77
+
78
+ ```jsonc
79
+ { "scope": { "textExtraction": { "status": "read" },
80
+ "extractabilityObservation": {
81
+ "status": "failed", "code": "INVALID_PDF", "reason": "..." } },
82
+ "pages": [ … ] }
83
+ ```
84
+
85
+ Only when *neither* reading could be done is the call an error, and it then
86
+ names both reasons in `detail.cause`.
87
+
88
+ - **Output shapes.** `read_text` and `read_url` return `{ scope, pages }` where
89
+ they returned a bare array of pages. `search_text`,
90
+ `extract_structured_text` and `summarize` gain `scope`.
91
+
92
+ - **`null` where a reading did not happen — never `0`, `false` or `""`.**
93
+ "Not read" and "read and found nothing" are different answers.
94
+
95
+ | Field | `null` means | The observed answer |
96
+ | --- | --- | --- |
97
+ | `PageText.text` | the extraction did not run | `""` — it ran and produced no characters |
98
+ | `SearchResult.totalMatches` / `matches` | the search did not run | `0` / `[]` — searched, nothing found |
99
+ | `StructuredTextResult.isTagged` / `elements` | the structure tree was not read | `false` / `[]` — read, no tags |
100
+ | `PdfSummary.metadata` / `textPreview` / `imageCount` / `hasText` / `textExtractability` / `unreadablePages` | that reading did not run | the value it measured |
101
+
102
+ When the observation could not run, pages carry no `extractability` field at
103
+ all rather than one filled with zeros: `0` fonts observed and "not observed"
104
+ are different answers.
105
+
106
+ - **`summarize.next` stays silent about a premise it did not observe.** It used
107
+ to derive its suggestions from metadata; with metadata unread it now suggests
108
+ nothing rather than reasoning from absence.
109
+
110
+ - **`validate_tagged` no longer passes a check it could not make.** TAG-005
111
+ judges Figure tags against the number of images the page draws. When that
112
+ count could not be observed, the check previously fell into the branch for
113
+ "no images", which counted as a pass. It is now excluded from `totalChecks`
114
+ and listed in the new `notChecked` field with the reason.
115
+
116
+ - **`compare_structure` names which file it could not read.** The comparison
117
+ still needs both files, but the error says which of the two failed, and that
118
+ the other one was fine.
119
+
120
+ - **The message for a password-protected file describes what happened.** It
121
+ said "pdf-reader-mcp does not support encrypted PDFs"; the text cannot be
122
+ extracted because the file encryption key is derived from the user password
123
+ (ISO 32000-2 §7.6.4.3.2), while the structure observation continues over what
124
+ is not encrypted.
125
+
126
+ ### Added
127
+
128
+ - `src/services/reading-scope.ts` — the shared shape for the above.
129
+ - `tests/e2e/15-reading-scope.test.ts` — 15 tests pinning all four combinations
130
+ of the two readings, including that twelve identical calls return one code.
131
+ - `scripts/probe-read-halves.mjs` — runs the two readings separately and counts
132
+ the four combinations over a corpus.
133
+ - `scripts/golden-specimens-halves.mjs` — one specimen per combination. The
134
+ `fail/ok` case did not exist anywhere in the 2,931-file corpus; it needs a
135
+ document with a non-empty user password, so it is built with qpdf under
136
+ `--static-id` to keep the bytes identical run to run.
137
+ - `scripts/golden.mjs` — freezes the output of all 19 tools across 23 calls, so
138
+ the pdf-lib removal that follows can be attributed difference by difference.
139
+ - `scripts/golden-specimens-render.mjs` and
140
+ `tests/e2e/16-render-timeout.test.ts` — a three-page specimen whose second
141
+ page never finishes rasterising, built from the clause rather than copied from
142
+ the corpus, plus the four tests that pin the behaviour above.
143
+
144
+ ## [0.13.0] - 2026-08-27
145
+
146
+ Infrastructure only: no tool gained or lost a capability, and no tool's output
147
+ changed. Four things reach callers — read **Changed** before upgrading.
148
+
149
+ ### Changed
150
+
151
+ - **Node 18 is no longer supported.** `engines.node` is `>=20` (was `>=18`).
152
+ - **MCP SDK v1 → v2** (`@modelcontextprotocol/sdk@^1.6.1` →
153
+ `@modelcontextprotocol/server@^2.0.0`). One difference reaches callers: a
154
+ `tools/call` naming a tool this server does not have now comes back as a
155
+ **JSON-RPC error** (code `-32602`), where v1 returned a tool result with
156
+ `isError: true`. Client code that only reads `isError` will not see it, and
157
+ `await client.callTool(...)` throws instead of resolving. Failures of input
158
+ validation — a missing required argument, a key the schema does not declare —
159
+ still arrive as `isError: true`.
160
+ - **Arguments the input schema does not declare are now rejected.** All 19
161
+ tools take a `.strict()` object, so an undeclared key fails the call with
162
+ `-32602 Unrecognized key`. Until now such a key was silently dropped and the
163
+ call ran: `tools/list` already stated `additionalProperties: false`, but that
164
+ statement was produced by zod 3's JSON Schema conversion and nothing enforced
165
+ it — zod 3's default for an object is *strip*, not *strict*. The statement and
166
+ the behaviour now agree.
167
+ - **`inputSchema` in `tools/list`**: `$schema` is now
168
+ `https://json-schema.org/draft/2020-12/schema` (was draft-07) for all 19
169
+ tools. `additionalProperties: false` is unchanged in the response — what
170
+ changed is that it is now true of the running server. One bound moved:
171
+ `locate_objects`' `object_numbers` items now carry
172
+ `maximum: 9007199254740991` alongside `minimum: 1` — zod 4 writes the safe
173
+ integer bound that zod 3 left out. It is the only property in the 19 tools
174
+ whose schema body changed. Tool names, descriptions and `required` are
175
+ unchanged — measured tool by tool against 0.12.0 with
176
+ `scripts/tools-list-snapshot.mjs`, which speaks raw JSON-RPC over stdio
177
+ rather than using an SDK client.
178
+ - `zod` moves from `^3.23.8` to `^4.2.0` — the version all four servers in the
179
+ family now share. `typescript` moves to `^7.0.2` (a devDependency).
180
+
181
+ ### Added
182
+
183
+ - `npm run check:public-types` fails if a type from the MCP SDK or from zod
184
+ appears in the published `.d.ts`. The published surface must not force a
185
+ consumer onto our versions of those.
186
+ - `npm run check:engines` compares `engines.node` against what the dependency
187
+ tree asks for, and runs in CI alongside a lockfile check.
188
+
8
189
  ## [0.12.0] - 2026-08-23
9
190
 
10
191
  ### Added
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"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C,GAAY,EAAc,EAAE,CAAC,CAAC;QACvC,MAAM,EAAE,YAAY;QACpB,MAAM,EAAE,mCAAmC;QAC3C,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS;KACnC,CAAC;CACM,CAAC"}
package/dist/index.js CHANGED
@@ -12,8 +12,8 @@ const _originalConsoleLog = console.log;
12
12
  const _originalConsoleWarn = console.warn;
13
13
  console.log = (...args) => console.error('[log]', ...args);
14
14
  console.warn = (...args) => console.error('[warn]', ...args);
15
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
16
- import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
15
+ import { McpServer } from '@modelcontextprotocol/server';
16
+ import { StdioServerTransport } from '@modelcontextprotocol/server/stdio';
17
17
  import { SERVER_NAME, SERVER_VERSION } from './constants.js';
18
18
  import { registerAllTools } from './tools/index.js';
19
19
  /**
@@ -45,6 +45,12 @@ What it does NOT do:
45
45
  therefore never on its own evidence that a page has no text. When a page cannot be read as
46
46
  text, render_page rasterises it (PDFium-WASM, optional dependency) so a vision model can
47
47
  read the pixels instead.
48
+ - No collapsing of two readings into one verdict. Taking the characters off a page and
49
+ observing whether those characters have a route to Unicode are separate readings that
50
+ can fail separately, so every text-returning tool reports which of them were done under
51
+ \`scope\`, and a field whose reading did not happen is \`null\` — never zero, false or an
52
+ empty string. "Not read" and "read and found nothing" are different answers, and this
53
+ server keeps them apart.
48
54
 
49
55
  It DOES map content to coordinates: locate_objects turns an object number into a page and a
50
56
  rectangle, and extract_structured_text with include_bbox does the same for a structure element.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,8CAA8C;AAC9C,sEAAsE;AACtE,sEAAsE;AACtE,MAAM,mBAAmB,GAAG,OAAO,CAAC,GAAG,CAAC;AACxC,MAAM,oBAAoB,G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,WAAW,KAAK,cAAc,oBAAoB,CAAC,CAAC;AACvE,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -8,7 +8,7 @@ export declare const FilePathSchema: z.ZodString;
8
8
  /** Optional page range parameter */
9
9
  export declare const PagesSchema: z.ZodOptional<z.ZodString>;
10
10
  /** Response format parameter */
11
- export declare const ResponseFormatSchema: z.ZodDefault<z.ZodNativeEnum<typeof ResponseFormat>>;
11
+ export declare const ResponseFormatSchema: z.ZodDefault<z.ZodEnum<typeof ResponseFormat>>;
12
12
  /** URL parameter for remote PDFs */
13
- export declare const UrlSchema: z.ZodString;
13
+ export declare const UrlSchema: z.ZodURL;
14
14
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,8CAA8C;AAC9C,eAAO,MAAM,cAAc,aAGqD,CAAC;AAEjF,oCAAoC;AACpC,eAAO,MAAM,WAAW,4BAGmE,CAAC;AAE5F,gCAAgC;AAChC,eAAO,MAAM,oBAAoB,sDAGsD,CAAC;AAExF,oCAAoC;AACpC,eAAO,MAAM,SAAS,aAGmC,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,8CAA8C;AAC9C,eAAO,MAAM,cAAc,aAGqD,CAAC;AAEjF,oCAAoC;AACpC,eAAO,MAAM,WAAW,4BAGmE,CAAC;AAE5F,gCAAgC;AAChC,eAAO,MAAM,oBAAoB,gDAGsD,CAAC;AAExF,oCAAoC;AACpC,eAAO,MAAM,SAAS,UAEmC,CAAC"}
@@ -15,12 +15,11 @@ export const PagesSchema = z
15
15
  .describe('Page range to process. Format: "1-5", "3", or "1,3,5-7". Omit for all pages.');
16
16
  /** Response format parameter */
17
17
  export const ResponseFormatSchema = z
18
- .nativeEnum(ResponseFormat)
18
+ .enum(ResponseFormat)
19
19
  .default(ResponseFormat.MARKDOWN)
20
20
  .describe('Output format: "markdown" for human-readable, "json" for structured data');
21
21
  /** URL parameter for remote PDFs */
22
22
  export const UrlSchema = z
23
- .string()
24
23
  .url('Must be a valid URL')
25
24
  .describe('URL pointing to a PDF file (HTTP or HTTPS)');
26
25
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;KAC/B,QAAQ,CAAC,mEAAmE,CAAC,CAAC;AAEjF,oCAAoC;AACpC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CAAC,8EAA8E,CAAC,CAAC;AAE5F,gCAAgC;AAChC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,UAAU,CAAC,cAAc,CAAC;KAC1B,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC;KAChC,QAAQ,CAAC,0EAA0E,CAAC,CAAC;AAExF,oCAAoC;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC;KACvB,MAAM,EAAE;KACR,GAAG,CAAC,qBAAqB,CAAC;KAC1B,QAAQ,CAAC,4CAA4C,CAAC,CAAC"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,8CAA8C;AAC9C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;KAC/B,QAAQ,CAAC,mEAAmE,CAAC,CAAC;AAEjF,oCAAoC;AACpC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC;KACzB,MAAM,EAAE;KACR,QAAQ,EAAE;KACV,QAAQ,CAAC,8EAA8E,CAAC,CAAC;AAE5F,gCAAgC;AAChC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,IAAI,CAAC,cAAc,CAAC;KACpB,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC;KAChC,QAAQ,CAAC,0EAA0E,CAAC,CAAC;AAExF,oCAAoC;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC;KACvB,GAAG,CAAC,qBAAqB,CAAC;KAC1B,QAAQ,CAAC,4CAA4C,CAAC,CAAC"}
@@ -5,22 +5,12 @@ import { z } from 'zod';
5
5
  /** get_page_count */
6
6
  export declare const GetPageCountSchema: z.ZodObject<{
7
7
  file_path: z.ZodString;
8
- }, "strict", z.ZodTypeAny, {
9
- file_path: string;
10
- }, {
11
- file_path: string;
12
- }>;
8
+ }, z.core.$strict>;
13
9
  /** get_metadata */
14
10
  export declare const GetMetadataSchema: z.ZodObject<{
15
11
  file_path: z.ZodString;
16
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
17
- }, "strict", z.ZodTypeAny, {
18
- file_path: string;
19
- response_format: import("../constants.js").ResponseFormat;
20
- }, {
21
- file_path: string;
22
- response_format?: import("../constants.js").ResponseFormat | undefined;
23
- }>;
12
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
13
+ }, z.core.$strict>;
24
14
  /**
25
15
  * `split_columns` — Issue #3: column-aware extraction for untagged
26
16
  * multi-column PDFs.
@@ -48,22 +38,10 @@ export declare const CompactWhitespaceSchema: z.ZodOptional<z.ZodBoolean>;
48
38
  export declare const ReadTextSchema: z.ZodObject<{
49
39
  file_path: z.ZodString;
50
40
  pages: z.ZodOptional<z.ZodString>;
51
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
41
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
52
42
  split_columns: z.ZodOptional<z.ZodNumber>;
53
43
  compact_whitespace: z.ZodOptional<z.ZodBoolean>;
54
- }, "strict", z.ZodTypeAny, {
55
- file_path: string;
56
- response_format: import("../constants.js").ResponseFormat;
57
- pages?: string | undefined;
58
- split_columns?: number | undefined;
59
- compact_whitespace?: boolean | undefined;
60
- }, {
61
- file_path: string;
62
- response_format?: import("../constants.js").ResponseFormat | undefined;
63
- pages?: string | undefined;
64
- split_columns?: number | undefined;
65
- compact_whitespace?: boolean | undefined;
66
- }>;
44
+ }, z.core.$strict>;
67
45
  /** search_text */
68
46
  export declare const SearchTextSchema: z.ZodObject<{
69
47
  file_path: z.ZodString;
@@ -71,22 +49,8 @@ export declare const SearchTextSchema: z.ZodObject<{
71
49
  pages: z.ZodOptional<z.ZodString>;
72
50
  context_chars: z.ZodDefault<z.ZodNumber>;
73
51
  max_results: z.ZodDefault<z.ZodNumber>;
74
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
75
- }, "strict", z.ZodTypeAny, {
76
- file_path: string;
77
- response_format: import("../constants.js").ResponseFormat;
78
- query: string;
79
- context_chars: number;
80
- max_results: number;
81
- pages?: string | undefined;
82
- }, {
83
- file_path: string;
84
- query: string;
85
- response_format?: import("../constants.js").ResponseFormat | undefined;
86
- pages?: string | undefined;
87
- context_chars?: number | undefined;
88
- max_results?: number | undefined;
89
- }>;
52
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
53
+ }, z.core.$strict>;
90
54
  /**
91
55
  * `read_images` — Issue #22: the response is now real image files, and its size
92
56
  * is bounded.
@@ -99,56 +63,27 @@ export declare const SearchTextSchema: z.ZodObject<{
99
63
  export declare const ReadImagesSchema: z.ZodObject<{
100
64
  file_path: z.ZodString;
101
65
  pages: z.ZodOptional<z.ZodString>;
102
- format: z.ZodOptional<z.ZodEnum<["png", "jpeg"]>>;
66
+ format: z.ZodOptional<z.ZodEnum<{
67
+ jpeg: "jpeg";
68
+ png: "png";
69
+ }>>;
103
70
  quality: z.ZodOptional<z.ZodNumber>;
104
71
  max_width: z.ZodOptional<z.ZodNumber>;
105
72
  max_height: z.ZodOptional<z.ZodNumber>;
106
- }, "strict", z.ZodTypeAny, {
107
- file_path: string;
108
- pages?: string | undefined;
109
- format?: "png" | "jpeg" | undefined;
110
- quality?: number | undefined;
111
- max_width?: number | undefined;
112
- max_height?: number | undefined;
113
- }, {
114
- file_path: string;
115
- pages?: string | undefined;
116
- format?: "png" | "jpeg" | undefined;
117
- quality?: number | undefined;
118
- max_width?: number | undefined;
119
- max_height?: number | undefined;
120
- }>;
73
+ }, z.core.$strict>;
121
74
  /** read_url */
122
75
  export declare const ReadUrlSchema: z.ZodObject<{
123
- url: z.ZodString;
76
+ url: z.ZodURL;
124
77
  pages: z.ZodOptional<z.ZodString>;
125
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
78
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
126
79
  split_columns: z.ZodOptional<z.ZodNumber>;
127
80
  compact_whitespace: z.ZodOptional<z.ZodBoolean>;
128
- }, "strict", z.ZodTypeAny, {
129
- url: string;
130
- response_format: import("../constants.js").ResponseFormat;
131
- pages?: string | undefined;
132
- split_columns?: number | undefined;
133
- compact_whitespace?: boolean | undefined;
134
- }, {
135
- url: string;
136
- response_format?: import("../constants.js").ResponseFormat | undefined;
137
- pages?: string | undefined;
138
- split_columns?: number | undefined;
139
- compact_whitespace?: boolean | undefined;
140
- }>;
81
+ }, z.core.$strict>;
141
82
  /** summarize */
142
83
  export declare const SummarizeSchema: z.ZodObject<{
143
84
  file_path: z.ZodString;
144
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
145
- }, "strict", z.ZodTypeAny, {
146
- file_path: string;
147
- response_format: import("../constants.js").ResponseFormat;
148
- }, {
149
- file_path: string;
150
- response_format?: import("../constants.js").ResponseFormat | undefined;
151
- }>;
85
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
86
+ }, z.core.$strict>;
152
87
  /**
153
88
  * `render_page` — Issue #23: rasterise pages for documents whose text cannot
154
89
  * be read as text.
@@ -163,23 +98,12 @@ export declare const RenderPageSchema: z.ZodObject<{
163
98
  pages: z.ZodString;
164
99
  dpi: z.ZodOptional<z.ZodNumber>;
165
100
  max_width: z.ZodOptional<z.ZodNumber>;
166
- format: z.ZodOptional<z.ZodEnum<["png", "jpeg"]>>;
101
+ format: z.ZodOptional<z.ZodEnum<{
102
+ jpeg: "jpeg";
103
+ png: "png";
104
+ }>>;
167
105
  quality: z.ZodOptional<z.ZodNumber>;
168
- }, "strict", z.ZodTypeAny, {
169
- file_path: string;
170
- pages: string;
171
- format?: "png" | "jpeg" | undefined;
172
- quality?: number | undefined;
173
- max_width?: number | undefined;
174
- dpi?: number | undefined;
175
- }, {
176
- file_path: string;
177
- pages: string;
178
- format?: "png" | "jpeg" | undefined;
179
- quality?: number | undefined;
180
- max_width?: number | undefined;
181
- dpi?: number | undefined;
182
- }>;
106
+ }, z.core.$strict>;
183
107
  export type GetPageCountInput = z.infer<typeof GetPageCountSchema>;
184
108
  export type GetMetadataInput = z.infer<typeof GetMetadataSchema>;
185
109
  export type ReadTextInput = z.infer<typeof ReadTextSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"tier1.d.ts","sourceRoot":"","sources":["../../src/schemas/tier1.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,qBAAqB;AACrB,eAAO,MAAM,kBAAkB;;;;;;EAIpB,CAAC;AAEZ,mBAAmB;AACnB,eAAO,MAAM,iBAAiB;;;;;;;;;EAKnB,CAAC;AAEZ;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,4BAW5B,CAAC;AAEJ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,uBAAuB,6BAOjC,CAAC;AAEJ,gBAAgB;AAChB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;EAQhB,CAAC;AAEZ,kBAAkB;AAClB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAyBlB,CAAC;AAEZ;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAsClB,CAAC;AAEZ,eAAe;AACf,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;EAQf,CAAC;AAEZ,gBAAgB;AAChB,eAAO,MAAM,eAAe;;;;;;;;;EAKjB,CAAC;AAEZ;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAiClB,CAAC;AAGZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,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,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AACjE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC3D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC/D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACzD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAC7D,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -5,109 +5,49 @@ import { z } from 'zod';
5
5
  /** inspect_structure */
6
6
  export declare const InspectStructureSchema: z.ZodObject<{
7
7
  file_path: z.ZodString;
8
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
9
- }, "strict", z.ZodTypeAny, {
10
- file_path: string;
11
- response_format: import("../constants.js").ResponseFormat;
12
- }, {
13
- file_path: string;
14
- response_format?: import("../constants.js").ResponseFormat | undefined;
15
- }>;
8
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
9
+ }, z.core.$strict>;
16
10
  /** inspect_tags */
17
11
  export declare const InspectTagsSchema: z.ZodObject<{
18
12
  file_path: z.ZodString;
19
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
20
- }, "strict", z.ZodTypeAny, {
21
- file_path: string;
22
- response_format: import("../constants.js").ResponseFormat;
23
- }, {
24
- file_path: string;
25
- response_format?: import("../constants.js").ResponseFormat | undefined;
26
- }>;
13
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
14
+ }, z.core.$strict>;
27
15
  /** inspect_fonts */
28
16
  export declare const InspectFontsSchema: z.ZodObject<{
29
17
  file_path: z.ZodString;
30
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
31
- }, "strict", z.ZodTypeAny, {
32
- file_path: string;
33
- response_format: import("../constants.js").ResponseFormat;
34
- }, {
35
- file_path: string;
36
- response_format?: import("../constants.js").ResponseFormat | undefined;
37
- }>;
18
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
19
+ }, z.core.$strict>;
38
20
  /** inspect_annotations */
39
21
  export declare const InspectAnnotationsSchema: z.ZodObject<{
40
22
  file_path: z.ZodString;
41
23
  pages: z.ZodOptional<z.ZodString>;
42
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
43
- }, "strict", z.ZodTypeAny, {
44
- file_path: string;
45
- response_format: import("../constants.js").ResponseFormat;
46
- pages?: string | undefined;
47
- }, {
48
- file_path: string;
49
- response_format?: import("../constants.js").ResponseFormat | undefined;
50
- pages?: string | undefined;
51
- }>;
24
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
25
+ }, z.core.$strict>;
52
26
  /** locate_objects */
53
27
  export declare const LocateObjectsSchema: z.ZodObject<{
54
28
  file_path: z.ZodString;
55
- object_numbers: z.ZodArray<z.ZodNumber, "many">;
56
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
57
- }, "strict", z.ZodTypeAny, {
58
- file_path: string;
59
- response_format: import("../constants.js").ResponseFormat;
60
- object_numbers: number[];
61
- }, {
62
- file_path: string;
63
- object_numbers: number[];
64
- response_format?: import("../constants.js").ResponseFormat | undefined;
65
- }>;
29
+ object_numbers: z.ZodArray<z.ZodNumber>;
30
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
31
+ }, z.core.$strict>;
66
32
  /** extract_structured_text */
67
33
  export declare const ExtractStructuredTextSchema: z.ZodObject<{
68
34
  file_path: z.ZodString;
69
35
  pages: z.ZodOptional<z.ZodString>;
70
- roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
71
37
  include_bbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
72
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
73
- }, "strict", z.ZodTypeAny, {
74
- file_path: string;
75
- response_format: import("../constants.js").ResponseFormat;
76
- include_bbox: boolean;
77
- pages?: string | undefined;
78
- roles?: string[] | undefined;
79
- }, {
80
- file_path: string;
81
- response_format?: import("../constants.js").ResponseFormat | undefined;
82
- pages?: string | undefined;
83
- roles?: string[] | undefined;
84
- include_bbox?: boolean | undefined;
85
- }>;
38
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
39
+ }, z.core.$strict>;
86
40
  /** inspect_signatures */
87
41
  export declare const InspectSignaturesSchema: z.ZodObject<{
88
42
  file_path: z.ZodString;
89
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
90
- }, "strict", z.ZodTypeAny, {
91
- file_path: string;
92
- response_format: import("../constants.js").ResponseFormat;
93
- }, {
94
- file_path: string;
95
- response_format?: import("../constants.js").ResponseFormat | undefined;
96
- }>;
43
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
44
+ }, z.core.$strict>;
97
45
  /** extract_tables — Tagged PDF Table → Markdown */
98
46
  export declare const ExtractTablesSchema: z.ZodObject<{
99
47
  file_path: z.ZodString;
100
48
  pages: z.ZodOptional<z.ZodString>;
101
- response_format: z.ZodDefault<z.ZodNativeEnum<typeof import("../constants.js").ResponseFormat>>;
102
- }, "strict", z.ZodTypeAny, {
103
- file_path: string;
104
- response_format: import("../constants.js").ResponseFormat;
105
- pages?: string | undefined;
106
- }, {
107
- file_path: string;
108
- response_format?: import("../constants.js").ResponseFormat | undefined;
109
- pages?: string | undefined;
110
- }>;
49
+ response_format: z.ZodDefault<z.ZodEnum<typeof import("../constants.js").ResponseFormat>>;
50
+ }, z.core.$strict>;
111
51
  export type InspectStructureInput = z.infer<typeof InspectStructureSchema>;
112
52
  export type InspectTagsInput = z.infer<typeof InspectTagsSchema>;
113
53
  export type InspectFontsInput = z.infer<typeof InspectFontsSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"tier2.d.ts","sourceRoot":"","sources":["../../src/schemas/tier2.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,wBAAwB;AACxB,eAAO,MAAM,sBAAsB;;;;;;;;;EAKxB,CAAC;AAEZ,mBAAmB;AACnB,eAAO,MAAM,iBAAiB;;;;;;;;;EAKnB,CAAC;AAEZ,oBAAoB;AACpB,eAAO,MAAM,kBAAkB;;;;;;;;;EAKpB,CAAC;AAEZ,0BAA0B;AAC1B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAM1B,CAAC;AAEZ,qBAAqB;AACrB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAarB,CAAC;AAEZ,8BAA8B;AAC9B,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;EA2B7B,CAAC;AAEZ,yBAAyB;AACzB,eAAO,MAAM,uBAAuB;;;;;;;;;EAKzB,CAAC;AAEZ,mDAAmD;AACnD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAMrB,CAAC;AAGZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAA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