-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add TypeScript SDK demo app scaffold and Math Standards Alignment evaluator #132
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 all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
50ab903
Add TypeScript SDK demo app (Math Standards Alignment)
adnanrhussain 7f99ecd
Address Copilot review: validate inputs, truncate KG errors, guard ju…
adnanrhussain 8af67a0
refactor: split demo into scaffold + math-standards-alignment features
adnanrhussain ab2a619
docs: genericize spec Branch field to feature id
adnanrhussain 5faecfc
fix: surface backend-down errors and reject blank statement codes
adnanrhussain 2f04697
docs: mark math standards alignment end-to-end run verified
adnanrhussain 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 @@ | ||
| # Anthropic API key | ||
| ANTHROPIC_API_KEY=sk-ant-... | ||
|
|
||
| # Learning Commons platform key | ||
| PLATFORM_API_KEY=... | ||
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,3 @@ | ||
| node_modules/ | ||
| dist/ | ||
| .env |
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,32 @@ | ||
| # TypeScript SDK Demo | ||
|
|
||
| Minimal web app demonstrating the published | ||
| [`@learning-commons/evaluators`](https://www.npmjs.com/package/@learning-commons/evaluators) | ||
| SDK. The home page lists the available evaluator demos; each is its own page. React (Vite) | ||
| frontend + a small Express backend that runs the Node-only SDK. | ||
|
|
||
| Evaluators: | ||
|
|
||
| - **Math Standards Alignment** (`/math-standards-alignment`) — pick a grade, jurisdiction, and | ||
| standards, enter a math word problem, and view the evaluator's alignment result. | ||
|
|
||
| ## Setup | ||
|
|
||
| ```bash | ||
| npm install | ||
| cp .env.example .env # then fill in both keys | ||
| ``` | ||
|
|
||
| | Key | Purpose | | ||
| |---|---| | ||
| | `ANTHROPIC_API_KEY` | LLM calls (the evaluator's default model is Claude) | | ||
| | `PLATFORM_API_KEY` | Learning Commons Knowledge Graph (standards lookup) | | ||
|
|
||
| ## Run | ||
|
|
||
| ```bash | ||
| npm run dev | ||
| ``` | ||
|
|
||
| Open http://localhost:5173 to reach the home page (the Vite dev server proxies `/api` to the | ||
| backend on `:3001`), then pick an evaluator. |
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,12 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Learning Commons Evaluators — SDK Demo</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
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.
nit: should have quotes