-
Notifications
You must be signed in to change notification settings - Fork 313
Add OpenRouter support #490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
453c1d2
chore: add changeset for GitHub Pages documentation
glassBead-tc 87677d5
feat: add GitHub Pages documentation structure
glassBead-tc 7742e15
docs: add GitHub Pages landing page explaining .src.md format
glassBead-tc 59ff4ed
docs: add navigation links to README
glassBead-tc ba92a7b
docs: rename API Reference to Technical Reference for better accuracy
glassBead-tc 9cc1b45
Add OpenRouter support.
glassBead-tc 46345bc
Provide means for user to select model and enter API key for OpenRout…
glassBead-tc b36ec3c
Add CLAUDE.md dev guide for agentic assistants; gitignore docs folder
glassBead-tc d87144a
Remove docs directory from repository
glassBead-tc 12a3b27
Merge pull request #1 from glassBead-tc/feat/OpenRouter
glassBead-tc e7e627e
Autopopulate available OpenRouter models.
glassBead-tc a677a06
Merge pull request #2 from glassBead-tc/feat/OpenRouter
glassBead-tc a1fd792
Remove CLAUDE.md. fix TypeScript issues in formatModelName funcion in…
glassBead-tc 1445f90
Merge pull request #3 from glassBead-tc/feat/490Edits
glassBead-tc d820280
minor: update formatting
glassBead-tc 385fffe
Merge pull request #4 from glassBead-tc/feat/490Edits
glassBead-tc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@srcbook/web': patch | ||
| --- | ||
|
|
||
| - Add essential support for OpenRouter models. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@srcbook/web': patch | ||
| --- | ||
|
|
||
| Auto-populate available models in Settings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| 'srcbook': patch | ||
| --- | ||
|
|
||
| Add GitHub Pages documentation repository structure and configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,4 +42,7 @@ srcbook/lib/**/* | |
| # Aide | ||
| *.code-workspace | ||
|
|
||
| # Docs folder | ||
| docs/ | ||
|
|
||
| vite.config.ts.timestamp-*.mjs | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| # SrcBook Development Guide | ||
|
|
||
| ## Build & Development Commands | ||
| - **Install deps**: `pnpm install` | ||
| - **Development**: `pnpm dev` | ||
| - **Build**: `pnpm build` | ||
| - **Lint**: `pnpm lint` | ||
| - **Format check**: `pnpm check-format` | ||
| - **Format code**: `pnpm format` | ||
| - **Tests**: `pnpm test` | ||
| - **Single test**: `pnpm --filter <package> vitest run <test-file> [-t "test name"]` | ||
|
|
||
| ## Code Style Guidelines | ||
| - **Package manager**: pnpm with workspace support | ||
| - **Structure**: Monorepo using Turborepo | ||
| - **TypeScript**: Strict typing, ES2022 target, ESNext modules | ||
| - **Formatting**: Prettier with 2-space indentation, 100 char line limit, semicolons required | ||
| - **Imports**: Group imports by external/internal, no unused imports | ||
| - **Naming**: camelCase for variables/functions, PascalCase for classes/components/types | ||
| - **Error handling**: Prefer Result types over try/catch when appropriate | ||
| - **React**: Functional components with hooks, prefer composition over inheritance | ||
| - **File extensions**: `.mts` for TypeScript modules, `.tsx` for React components | ||
| - **Testing**: Vitest for unit tests, files named `*.test.mts` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ALTER TABLE `config` ADD `openrouter_api_key` text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put this in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed CLAUDE.md from this PR.