-
Notifications
You must be signed in to change notification settings - Fork 4
Spike: Making a browser compatible lib #193
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
base: main
Are you sure you want to change the base?
Conversation
| "@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", |
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.
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.
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.
Ah I see, but local usage of this (prior to publishing to jsr) would need to have the right references. Guck.
|
|
||
| Set environment variables to configure logging: | ||
|
|
||
| - `RUNT_LOG_LEVEL`: Set log level (DEBUG, INFO, WARN, ERROR) |
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.
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.
| "@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", |
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.
Did these ones get taken out on accident?
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 :)