perf(coding-agent): optimized documentation indexing via compressed blob
- Replaced raw TypeScript documentation map with a lazily-inflated gzip blob. - Reduced bundled binary/npm package size by approximately 0.9MB. - Encapsulated index logic into `docs-index.ts` to separate header metadata from content. - Added `postpack` and robust `try/finally` patterns in build scripts to ensure clean artifacts. - Implemented disk-based fallback during development to maintain existing developer experience.
This commit is contained in:
@@ -20,8 +20,6 @@
|
||||
"ignore": [
|
||||
// Generated from `packages/natives/scripts/native-index.template.js` via gen-enums.ts.
|
||||
"packages/natives/native/index.js",
|
||||
// Generated by `packages/coding-agent/scripts/generate-docs-index.ts`.
|
||||
"packages/coding-agent/src/internal-urls/docs-index.generated.ts",
|
||||
// Embedded HTML asset shipped as a static template, not a code module.
|
||||
"packages/coding-agent/src/export/html/template.js",
|
||||
// Generated/owned upstream — see packages/ai/scripts/generate-models.ts.
|
||||
|
||||
Reference in New Issue
Block a user