LlamaIndex for TypeScript 0.12.1
Last reviewed Sep 19, 2026
Prompt Details
Prompt Composition
4prompts
- JavaScript ES2026102 lines · 3.1K tokens
- Node.js 24101 lines · 5.3K tokens
- TypeScript 746 lines · 1.5K tokens
- LlamaIndex for TypeScript 0.12.164 lines · 2.7K tokens
Total313 lines · 12.7K tokens
CWE Coverage
- 20
- 22
- 59
- 73
- 78
- 79
- 88
- 89
- 95
- 113
- 117
- 200
- 201
- 208
- 209
- 214
- 250
- 295
- 297
- 319
- 323
- 330
- 338
- 346
- 347
- 352
- 354
- 362
- 367
- 377
- 426
- 444
- 459
- 471
- 488
- 494
- 502
- 524
- 532
- 602
- 639
- 653
- 732
- 754
- 770
- 807
- 829
- 837
- 838
- 841
- 862
- 863
- 908
- 915
- 916
- 918
- 922
- 923
- 942
- 943
- 1004
- 1321
- 1333
- 1427
Prompt Preview
Apply the Node.js 24 and TypeScript 7 prompts first. These rules target server-side llamaindex@0.12.1, its @llamaindex/core@0.6.22 and @llamaindex/workflow@1.1.24 dependencies, and @llamaindex/readers@3.1.21 when installed.
Dependency scope and configuration
- Treat LlamaIndexTS as a deprecated, unmaintained dependency: plan migration and assign responsibility for security fixes while existing deployments remain in service.
- Keep the reviewed package graph explicit, including the separately resolved
@llamaindex/workflow-coredependency and optional provider, reader, and vector-store packages. Do not assume their versions matchllamaindex, or that Python LlamaIndex APIs and advisories describe this implementation. - Configure provider endpoints, credentials, models, and transformation implementations on the server. Use explicit instances or
Settings.withLLM,Settings.withEmbedModel, andSettings.withCallbackManageraround construction and execution; per-request assignments to globalSettingscan affect other tenants, and constructed objects can retain earlier instances.
Readers and document metadata
- Configure
SimpleDirectoryReader.loadDatawith a narrowfileExtToReadermap anddefaultReader: null; otherwise unknown extensions fall back toTextFileReader. KeepoverrideReaderserver-owned because it overrides extension selection. - Stage uploads in a bounded private directory before directory ingestion. The recursive walker uses
fs.statand follows symlinks; prevent traversal outside the staging root and recursive cycles.