Skip to content

Adding Tome Creator Extension#1701

Open
JonLMyers wants to merge 8 commits intomainfrom
JonLMyers/Eldritch-vscode-Extension
Open

Adding Tome Creator Extension#1701
JonLMyers wants to merge 8 commits intomainfrom
JonLMyers/Eldritch-vscode-Extension

Conversation

@JonLMyers
Copy link
Collaborator

What type of PR is this?

/kind feature

What this PR does / why we need it:

This PR adds a Tome creation extension that uses a user defined AI model and MCP server to ease the creation of Eldritch powered tomes.

Which issue(s) this PR fixes:

Fixes #

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
562    ±0 562    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#822 562 562 0 0 0 0 16.8s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
562 0 0 1.7s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
TestGetRandomName/NoDuplicates 1 1.7s 1.7s
TestGetRandomName 1 1.7s 1.7s
TestCreateTestData 1 1.1s 1.1s
TestPreventPubSubColdStarts_ZeroInterval 1 1.0s 1.0s
TestGCPDriver_Failure 1 1.0s 1.0s
src/context/FilterContext/tests/FilterControls.test.tsx: FilterControls > Filter lock/unlock toggle > should toggle isLocked when lock button is clicked 1 767ms 767ms
TestAPI 1 650ms 650ms
TestFetchAsset 1 600ms 600ms
TestFetchAsset/Large_File 1 590ms 590ms
TestPortalIntegration 1 530ms 530ms

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

JonLMyers and others added 7 commits February 4, 2026 22:40
* feat: generate vscode-tome-builder documentation and examples from source

- Add `scripts/generate-assets.ts` to read documentation and tome examples from the repo root.
- Update `package.json` to run generation before compilation.
- Update `tsconfig.json` to exclude the scripts directory.
- Update `docs.ts` and `examples.ts` with generated content.

Co-authored-by: JonLMyers <14082284+JonLMyers@users.noreply.github.com>

* feat: generate vscode-tome-builder assets from source

- Add `scripts/generate-assets.ts` to read documentation and tome examples from the repo root.
- Update `package.json` to run generation before compilation.
- Update `tsconfig.json` to exclude the scripts directory.
- Update `.gitignore` to ignore generated `docs.ts` and `examples.ts` in `mcp-server/src`.
- Remove existing `docs.ts` and `examples.ts` to stop tracking them.

Co-authored-by: JonLMyers <14082284+JonLMyers@users.noreply.github.com>

* feat: vscode-tome-builder reads docs and examples from disk at runtime

- Update `mcp-server/src/docs.ts` to locate the repo root and read markdown docs from `docs/_docs/user-guide/`.
- Update `mcp-server/src/examples.ts` to locate the repo root and read tome examples from `tavern/tomes/`.
- Update `mcp-server/src/index.ts` to use the new runtime file reading functions.
- Revert previous build-time generation scripts and config changes.

Co-authored-by: JonLMyers <14082284+JonLMyers@users.noreply.github.com>

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: JonLMyers <14082284+JonLMyers@users.noreply.github.com>
- Update `mcp-server/src/index.ts` to locate the repo root and read markdown docs from `docs/_docs/user-guide/` and tome examples from `tavern/tomes/` at runtime.
- Remove redundant `mcp-server/src/docs.ts` and `mcp-server/src/examples.ts` files.
- Revert previous build-time generation scripts, config changes, and dependencies.
- Revert `.gitignore` changes as no files are generated anymore.

Co-authored-by: JonLMyers <14082284+JonLMyers@users.noreply.github.com>
- **vscode-tome-builder**: Switch to runtime parsing for documentation and examples.
    - `index.ts` now locates repo root and reads files directly.
    - Removed redundant `docs.ts` and `examples.ts`.
- **eldritch-lsp**: Create new Rust Language Server crate.
    - Located in `implants/lib/eldritch/eldritch-lsp`.
    - Added to `implants` workspace.
    - Features linter with optimization hooks (`LintRule`).
    - Indexes standard library from `implants/lib/eldritch/stdlib`.
    - Integrates `eldritch-core` for parsing.

Co-authored-by: JonLMyers <14082284+JonLMyers@users.noreply.github.com>
}

export function getEldritchDoc(): string {
return readDocFile('docs/_docs/user-guide/eldritch.md');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does typescript have an embed at build time option?
This won't work if we build the package in CI AFAIK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants