Spike: Making a browser compatible lib#193
Open
intentionally-left-nil wants to merge 19 commits intomainfrom
Open
Spike: Making a browser compatible lib#193intentionally-left-nil wants to merge 19 commits intomainfrom
intentionally-left-nil wants to merge 19 commits intomainfrom
Conversation
rgbkrk
reviewed
Aug 21, 2025
| "@std/path": "jsr:@std/path@^1.0.0", | ||
| "npm:@livestore/livestore": "npm:@livestore/livestore@^0.3.1", | ||
| "@openai/openai": "jsr:@openai/openai@^4.98.0", | ||
| "npm:ollama": "npm:ollama@^0.5.16", |
Member
There was a problem hiding this comment.
Style wise, the reason I keep the npm: prefix is to make our code copy-pastable into a Deno notebook. Looking at this now though, I'd need to do the same with jsr: deps.
Member
There was a problem hiding this comment.
Ah I see, but local usage of this (prior to publishing to jsr) would need to have the right references. Guck.
rgbkrk
reviewed
Aug 21, 2025
|
|
||
| Set environment variables to configure logging: | ||
|
|
||
| - `RUNT_LOG_LEVEL`: Set log level (DEBUG, INFO, WARN, ERROR) |
Member
There was a problem hiding this comment.
I suppose this means that we'd need to set VITE_RUNT_LOG_LEVEL. Instead we probably should be passing the log level into the log factory.
rgbkrk
reviewed
Aug 21, 2025
| "@livestore/adapter-node": "npm:@livestore/adapter-node@^0.3.1", | ||
| "@livestore/livestore": "npm:@livestore/livestore@^0.3.1", | ||
| "@livestore/react": "npm:@livestore/react@^0.3.1", | ||
| "@livestore/sync-cf": "npm:@livestore/sync-cf@^0.3.1", |
Member
There was a problem hiding this comment.
Did these ones get taken out on accident?
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
We want to run the runt agent in a browser. This means we need to isolate out our codebase into two sections:
The overall work will take three parts:
liblib to extract out the common types and RuntimeAgent (this PR)ailib to be web compatible (needs to remove ollama, deal with secrets environment variables)Work to do
Needs a manual test pass to make sure the code works with anode :)