Self-contained web PDF workspace — PDF.js viewer + Hanzo AI side panel — for the surface lawyers spend the most time in (filings, discovery, executed contracts). Cross-platform (any browser), no Adobe license. - PDF.js (pdfjs-dist 4.10.38) renders pages to canvas and extracts per-page text; worker bundled and shipped beside app.js. - Right panel mirrors @hanzo/office-addin: model picker, quick-action chips, streamed replies over api.hanzo.ai/v1/chat/completions (SSE), /v1/models. - Law-office quick actions: summarize; extract parties/dates/obligations; find & explain risky clauses; explain the selection; draft a summary memo. - Honest large-PDF context windowing (buildContext): caps attached text at a char budget, windows whole-document or from the current page, and prepends a context note naming the exact page range sent — never claims the full doc when truncated. Pure and unit-tested. - Auth: pasted hk- key validated against /v1/models before save (localStorage); OAuth via hanzo.id documented as the additive future path. - esbuild build.js, vitest (44 tests), tsc clean. Endpoints: api.hanzo.ai /v1 only.
15 lines
347 B
JSON
15 lines
347 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "ESNext",
|
|
"moduleResolution": "bundler",
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true
|
|
},
|
|
"include": ["src/**/*.ts", "tests/**/*.ts"]
|
|
}
|