Commit Graph
33 Commits
Author SHA1 Message Date
bendtherules 02a3fa4cad refactor: Rename all file/folders to camelCase 2026-04-08 16:09:01 +05:30
bendtherules 3b420b896b refactor(setup): reorder HTMLTextSplitter tag list
- Move `ul` and `ol` earlier in the allowed tags array.
- Remove duplicate and unused tags (`h5`, `h6`, `li`, redundant `ul`/`ol`).
2026-04-06 14:51:44 +05:30
bendtherules a2c8bd31c6 feat(lists): alternate markdown list markers by nesting depth
Ordered lists switch between `1.` (even depth) and `A.` (odd depth).
Unordered lists switch between `-` (even depth) and `*` (odd depth).
Makes nested list structure visually distinct in extracted text.
2026-04-06 13:39:43 +05:30
bendtherules 2c0ccee5e1 fix - Fix normalizeWhitespace removing indents in nested lists 2026-04-06 13:29:20 +05:30
bendtherules 1524d9c804 moved HtmlTextSplitter.test.ts beside source file 2026-04-04 19:32:33 +05:30
bendtherules 88af87b7ae build: Implement formatForIngestion 2026-04-04 19:29:29 +05:30
bendtherules ff1c97af44 fix(agent-tools, setup): standardize metadata keys to lowercase and update HTML ingestion
- Renamed `partIndex`/`totalParts` to `partindex`/`totalparts` in `section_retriever.ts`, `spec_retriever.ts`, and document creation logic.
- Adjusted sorting logic to use the new `partindex` field.
- Updated metadata handling and string interpolation to reference the lowercase keys.
- Fixed import path for `HTMLTextSplitter` and moved the file to `setup/textsplitters/HtmlTextSplitter.ts`.
- Added HTML preprocessing utilities (`addNewlinesAfterBlocks`, `convertTablesToMarkdown`) in ingestion workflow.
- Integrated table-to‑markdown conversion and newline insertion to improve text splitting and document structure.
2026-04-04 12:33:05 +05:30
bendtherules 822597e0e2 feat(setup): enhance ingest summary to track and display chunk sizes per section
- Introduced `SectionInfo` interface to store chunk count and individual chunk sizes.
- Replaced simple section count map with a map of `SectionInfo` for richer data.
- Updated logic to aggregate chunk sizes and counts per section.
- Modified summary output to show total characters, top 5 sections with detailed chunk count, total chars, and a list of chunk sizes.
- Refactored comments and variable names for clarity.
2026-04-04 10:31:14 +05:30
bendtherules f54a14f408 feat(ingest): add summary of all documents
add ChunkInfo interface, improve chunk handling typings, and print ingest summary statistics. This introduces typed chunk metadata, refactors related code, and adds a summary report for document sizes, sections, and chunk distribution
2026-04-03 20:34:05 +05:30
bendtherules 6e5e7a7f4a ingest - Consume HTMLTextSplitter 2026-04-03 13:19:46 +05:30
bendtherules 818bcccead feat: add VS Code configuration for debugging bun
- Add .vscode/extensions.json recommending oven.bun-vscode.
- Add .vscode/launch.json with Bun debug configurations for various scripts.
- Add .vscode/settings.json for TypeScript SDK, debug options, and file exclusions.
- Remove .vscode/ entry from .gitignore.
- Refactor ingest.ts: increase chunk size to 8192 and overlap to 200, raise large document threshold, remove <h1>/<h2> separators, skip sections containing only headings or minimal content, and add warnings for very small chunks.
2026-04-02 13:33:00 +05:30
bendtherules 1ff1038898 refactor(ingest): remove part and parent reference in chunk
- Remove construction of `partRef` and parent section annotations from chunk text
- Directly extract and trim text from HTML chunk using cheerio
- Streamline document creation logic without additional references.
2026-04-01 18:33:57 +05:30
bendtherules f5d3884d5a refactor: move model info to constants
- Added EMBEDDING_MODEL and RERANKER_MODEL to `constants.ts`.
- Updated imports to use these constants in `agent.ts`, `agent_tools/reranker.ts`, and `setup/ingest.ts`.
- Replaced hard‑coded model strings with the new constants for Ollama embeddings and reranker.
2026-04-01 18:31:30 +05:30
bendtherules 85d888c7ba feat(ingest): add splitter, metadata and qwen3-embedding
add HTML‑aware text splitter, raise batch size and large‑doc threshold, enhance progress spinner and error logging, rename ingestSpec to buildSpecDocuments and introduce hierarchical section processing.
2026-04-01 12:49:57 +05:30
bendtherules 3b6e9a9d8f refactor(ingest): restructure section document creation logic and add warnings for oversized documents
- Move full‑section Document creation into an `else` block so it only occurs when no sub‑documents were created.
- Remove premature return that skipped adding the full section.
- Add post‑processing loop to log a warning for any final document exceeding `LARGE_DOC_THRESHOLD`.
2026-03-31 13:54:07 +05:30
bendtherules ac518b7b77 ingest.ts - handle empty db, add loader 2026-03-31 13:46:19 +05:30
bendtherules 8bbd159224 Migrate to langchain 2026-03-31 13:06:59 +05:30
bendtherules f6fc4c652a ingest.ts - brekdown 2026-03-31 12:20:51 +05:30
bendtherules 1de99cbe38 migrate strip-spec-container to TS 2026-03-31 09:12:19 +05:30
bendtherules 12631949b4 setup/ingest.ts: add comments 2026-03-30 18:16:55 +05:30
bendtherules 33cec82c9d feat(build-graph): add comments and pass options 2026-03-30 17:58:39 +05:30
bendtherules cbe6bfdb10 refactor(build_graph): limit emu-clause selection to #spec-container
Search for `emu-clause` elements now performed within the `#spec-container` element instead of the entire document, preventing accidental matches outside the spec container.
2026-03-30 12:43:48 +05:30
bendtherules 2505497846 build: Internal method linking - plan and basic script 2026-03-30 12:43:40 +05:30
bendtherules f19e5ba788 refactor(constants): move SPEC_DIR and CODE_DIR to constants 2026-03-27 17:53:16 +05:30
bendtherules d7d7dc273e fix(ingest): fix any type for index 2026-03-27 17:49:32 +05:30
bendtherules 28c26d319e chore: Type-check fixes 2026-03-27 17:48:02 +05:30
bendtherules 0f5a31137f chore: Lint fixes 2026-03-27 17:47:12 +05:30
bendtherules b6dbcfe91a build: migrate to Typescript + biome 2026-03-27 17:33:58 +05:30
bendtherules 3f0c4c217a feat(build): add logging for spec and code file discovery with warnings when none found
- Log the number of specification HTML files found in `SPEC_DIR`.
- Emit a warning if no specification HTML files are present.
- Log the number of code files found in `CODE_DIR`.
- Emit a warning if no code files are present.
2026-03-27 10:12:48 +05:30
bendtherules 8f26db5a1f chore(setup): replace engine262 submodule with squashed git subtree
Update init_engine262.sh to add the engine262 repository as a squashed subtree instead of a shallow submodule. Adjust usage comments, add existence check for the target directory, and update echo messages accordingly.
2026-03-27 10:06:08 +05:30
bendtherules 355451c9bb chore(setup): make init_engine262.sh executable and use repository root for engine262 target directory 2026-03-27 10:00:38 +05:30
bendtherules 1434dd20af refactor: move build_graph.mjs and ingest.mjs to setup/ 2026-03-27 09:57:04 +05:30
bendtherules f974ab7188 feat(setup): add script to add shallow engine262 submodule
Introduces `setup/init_engine262.sh`, a Bash utility that clones the `engine262` repository as a shallow submodule (depth 1) into `./engine262`. The script adds the submodule, initializes it, and provides a usage comment. It ensures robust execution with `set -euo pipefail`.
2026-03-27 09:55:32 +05:30