Skip to content

Adding Tome Creator Extension#1701

Merged
hulto merged 11 commits intomainfrom
JonLMyers/Eldritch-vscode-Extension
Mar 5, 2026
Merged

Adding Tome Creator Extension#1701
hulto merged 11 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 ⏱️
2743    ±0 2743    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#1501 2743 2743 0 0 0 0 39.4s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
2743 0 0 5.9s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
TestDockerExecutor_Build_ContextCancellation 1 5.9s 5.9s
eldritch-libsys: std::dll_inject_impl::tests::test_dll_inject_simple 1 5.1s 5.1s
TestInteractiveShell 1 5.1s 5.1s
TestOtherStreamOutput 1 5.0s 5.0s
imix::bin/imix: install::tests::test_install_execution 3 1.6s 4.7s
imix::bin/imix: install::tests::test_install_execution 3 1.6s 4.7s
imix::bin/imix: install::tests::test_install_execution 3 1.6s 4.7s
TestDockerExecutor_Build_SimpleEcho 1 3.8s 3.8s
imix::bin/imix: tests::task_tests::test_task_streaming_error 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_error 3 3.0s 3.0s

🎉 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

JonLMyers and others added 2 commits February 27, 2026 21:37
- Created `scripts/bundle-assets.js` to read docs and tomes at build time and generate `src/assets.ts`.
- Added `prebuild` script to `package.json` to trigger asset bundling.
- Refactored `src/index.ts` to use embedded assets instead of runtime file reading.
- Removed unused `src/docs.ts` and `src/examples.ts`.
- Added `src/assets.ts` to `.gitignore`.

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>
@JonLMyers
Copy link
Collaborator Author

@hulto Eldritch PR for your review. All changes from previous comments are added. Awaiting tests.

Copy link
Collaborator

@hulto hulto left a comment

Choose a reason for hiding this comment

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

LGTM

@hulto hulto added this pull request to the merge queue Mar 4, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 4, 2026
@hulto hulto enabled auto-merge March 5, 2026 01:57
@hulto hulto added this pull request to the merge queue Mar 5, 2026
Merged via the queue into main with commit 6ed1c07 Mar 5, 2026
8 checks passed
@hulto hulto deleted the JonLMyers/Eldritch-vscode-Extension branch March 5, 2026 02:23
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