Commit Graph
92 Commits
Author SHA1 Message Date
bendtherules cf522b8085 agent.ts - tools - add zod schema 2026-04-01 17:55:01 +05:30
bendtherules 1bbd6305f7 agent.ts - Update tools, add reranker 2026-04-01 17:54:49 +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 70e42eb727 feat(spec-ingestion): unify breakdown strategy with alwaysBreak flag and inline markers
- Consolidate all structural element breakdowns into a single `breakDownSection` function using an `alwaysBreak` flag.
- Introduce `BREAKDOWN_TAGS` configuration array containing metadata (tag, alwaysBreak, title/id selectors) for each element type.
- Replace previous multi‑phase approach with a unified sequential breakdown flow: `emu-clause` (always extracts children) → `emu-table` → `emu-grammar` → `td` → `p`.
- Add inline markers `[Subsection available: title "X" at sectionid: ID]` where content is removed, enabling parent awareness.
- Update documentation to reflect the new unified breakdown logic, tag table, and hierarchical ID format.
- Adjust threshold handling, recursion depth, and metadata tracking to work with the new unified approach.
2026-03-31 14:45:16 +05:30
bendtherules 9f8148bf62 docs(plans): add plan for parent section breakdown awareness and recursive sequential breakdown
Added a detailed markdown plan outlining fixes for parent section awareness, sequential tag‑based breakdown, and recursive processing of large sections. Includes implementation details, configuration constants, and updated ingestion logic. This new plan file is located at `.opencode/plans/1774872666261-parent-breakdown-fix.md`.
2026-03-31 14:23:17 +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 23dcdd2f4f docs(plans): add migration plan for LlamaIndex → LangChain.js + LanceDB
Added a comprehensive markdown plan (.opencode/plans/1774872124705-glowing-river.md) outlining the migration from LlamaIndex to LangChain.js with LanceDB. Includes updated dependencies, file modification list, and detailed code changes for `ingest.ts` and `agent.ts`. This serves as documentation for the migration process.
2026-03-31 12:21:06 +05:30
bendtherules b3ee712ce9 docs: add AGENTS.md 2026-03-31 12:20:58 +05:30
bendtherules f6fc4c652a ingest.ts - brekdown 2026-03-31 12:20:51 +05:30
bendtherules 5242a30081 agent.ts - add comments 2026-03-31 12:20:32 +05:30
bendtherules 1de99cbe38 migrate strip-spec-container to TS 2026-03-31 09:12:19 +05:30
bendtherules 83f145c576 docs(plans): reformat internal method regex list by moving [[Get]] and [[Set]] to separate line for clarity. 2026-03-30 18:22:08 +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 795a713a86 spec - Cleanup body to only keep "spec-container" 2026-03-27 19:43:07 +05:30
bendtherules ed4360e7cd spec - Remove all style tags 2026-03-27 18:36:24 +05:30
bendtherules f19e5ba788 refactor(constants): move SPEC_DIR and CODE_DIR to constants 2026-03-27 17:53:16 +05:30
bendtherules 8266a17559 remove package.json 2026-03-27 17:50:35 +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 b42a69d9f8 Merge commit '6e92d2345e8231a44556ce7d416451f5f3e6c398' as 'engine262' 2026-03-27 10:07:29 +05:30
bendtherules 6e92d2345e Squashed 'engine262/' content from commit ae71998
git-subtree-dir: engine262
git-subtree-split: ae71998cc5a8315700555135b1ac202a0d6d0b31
2026-03-27 10:07:29 +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
bendtherules 6e3af7575a chore(gitignore): add Graphs section to .gitignore 2026-03-27 09:51:59 +05:30
bendtherules 3106df85fc fix(gitignore): remove leading './' from ignored directories and resources paths 2026-03-27 09:44:32 +05:30
bendtherules 4a4b4971dd refactor(config): centralize storage and graph file paths
- Added `constants.mjs` defining `STORAGE_DIR` and `GRAPH_FILE`.
- Replaced hard‑coded path strings in `agent.mjs`, `build_graph.mjs`, and `ingest.mjs` with imports from the new constants module.
- Updated console log in `ingest.mjs` to reference `STORAGE_DIR`.
- Adjusted `GRAPH_FILE` path to `./graphology/graph.json` via the constant.
2026-03-27 09:40:54 +05:30
bendtherules b8812b9eb7 chore: add vector store directories to .gitignore
Add ignore patterns for ./storage/ and ./graphology/ under a new "Vector stores" section. Ensure .gitignore ends with a newline.
2026-03-27 09:40:22 +05:30
bendtherules 8ed06e495f build: basic setup (gemini-3-flash) 2026-03-26 19:04:48 +05:30
bendtherules 53adacbea3 chore(gitignore): add spec-built folder to gitignore 2026-03-26 17:38:15 +05:30
bendtherules ff992aebc3 chore: add .gitignore with Node.js/JavaScript ignore patterns
- Include common directories (node_modules, dist, build)
- Ignore logs, OS files, coverage, IDE settings, and environment files
- Add placeholders for package lock files and generated docs.
2026-03-26 17:36:50 +05:30
bendtherules eba5af4748 Add spec-built folder 2026-03-26 17:35:36 +05:30
bendtherules d4ee62cc25 Init git 2026-03-26 16:33:23 +05:30