Commit Graph

763 Commits

Author SHA1 Message Date
Brian Hackett
1809aa89d7 Use 3.7 sonnet 2025-02-24 13:02:19 -08:00
Brian Hackett
4ee4f2060d
Recognize image content when talking to anthropic (#37) 2025-02-24 07:24:32 -08:00
Brian Hackett
7326682c94 Watch for empty cookie strings 2025-02-21 09:37:36 -08:00
Brian Hackett
a489a8d749 Remove login key requirement 2025-02-21 09:24:07 -08:00
Brian Hackett
65df615702 Merge branch 'main' of github.com:replayio/bolt 2025-02-21 09:17:27 -08:00
Brian Hackett
63dcd6702e Add login key system 2025-02-21 09:00:23 -08:00
Chris Toshok
e4a57bf59e
[PRO-974] add sentry for both client and server (#20)
Basically ran through the remix + cloudflare setup docs.
2025-02-20 14:13:19 -07:00
Brian Hackett
38d389a42e Wrap chat component in <Suspense> 2025-02-20 11:27:22 -08:00
Mateusz Burzyński
6acb94b5af
Wrap database in async suspense value (#36) 2025-02-20 11:05:57 -08:00
Brian Hackett
3c3a97aa50
Show information about anthropic calls when clicking usage (#34) 2025-02-19 16:19:42 -08:00
Chris Toshok
4795d02150
instrument whether an api key is the user's or ours (#33)
introduce an `AnthropicApiKey` type so we aren't passing a string/boolean everywhere.
2025-02-19 13:58:40 -08:00
Brian Hackett
fabf53b49c Merge branch 'main' of github.com:replayio/bolt 2025-02-19 08:58:02 -08:00
Brian Hackett
b616ac673b about page copy 2025-02-19 08:57:49 -08:00
Chris Toshok
8d3a8eeb3a
use AsyncLocalStorageContextManager to propagate trace context around (#32)
I noticed that the `llm.chat.*_tokens` attributes weren't in spans, and it turns out none of the attributes from the wrapped function make it in.  only those added synchronously from within `wrapWithSpan` do.

A few things in play here:

1. Switch from `ZoneContextManager` (which doesn't work with native async/await) to `AsyncLocalStorageContextManager` (which does.)
2. (1) requires we use a pnpm patch, since wrangler requires that we import `async_hooks` statically, and the otel code `requires` it, and also requires that it's spelled `node:async_hooks`.
3. encode the payload we try to send _before_ doing the retry loop, so we don't re-encode for each attempt.
4. switch from `startActiveSpan` to `context.with` + `startSpan`.  The latter allows us to wrap an async function.  the former is for synchronous functions.
2025-02-19 06:49:32 -08:00
Chris Toshok
c52ae1f9da
Fix otel errors (#31)
Running the prior code in wrangler (but _not_ `npm run dev`) was generating errors during otel initialization.  I was ultimately unable to figure out why, or how to fix them:

```
  (warn) Initializing OpenTelemetry
  (error) Error initializing OpenTelemetry TypeError: Class constructor OTLPExporterBase2 cannot be invoked without 'new'
```

In the end, it was easier to just boil the ocean a little:  With claude's help, write a custom otlp exporter and use that.  Also use BasicTracerProvider instead of WebTracerProvider.

This version is enough to generate spans from within local wrangler.
2025-02-18 16:18:03 -08:00
Brian Hackett
78a56faa55 Followup fixes 2025-02-18 15:16:33 -08:00
Brian Hackett
55dd3c97b6
Add feedback button (#29) 2025-02-18 15:15:52 -08:00
Brian Hackett
76059dc19c otel changes 2025-02-18 12:40:44 -08:00
Brian Hackett
c00ad7792c more logging 2025-02-18 12:16:01 -08:00
Brian Hackett
ab614ee90a Telemetry diagnostics 2025-02-18 12:12:12 -08:00
Chris Toshok
d81ab41688
warn that otel wasn't initialized properly, every time we would have sent a span (#30)
The log should contain a warning showing the following once at startup:
```
OpenTelemetry initialization skipped: HONEYCOMB_API_KEY and/or HONEYCOMB_DATASET not set
```
and every time a span would have been created:
```
OpenTelemetry not initialized, skipping span creation
```

Also sneak in a `service.version` attribute that is `${__APP_VERSION}; ${__COMMIT_HASH}`.  e.g.:
![image](https://github.com/user-attachments/assets/6f111cb1-8fb9-46c4-9bd8-24bdd08650ab)
2025-02-18 12:00:38 -08:00
Brian Hackett
6221ab1d3e
Fix issues around rewinding (#28) 2025-02-18 11:39:44 -08:00
Chris Toshok
af4c405620
[PRO-973] basic o11y around anthropic api calls (#22)
add some otel initialization, pointing at honeycomb + a function to wrap other functions with spans.  use that function to wrap `callAnthropic` and add some context (number of messages sent, token usage, along with some metadata should we ever support other providers.)

The honeycomb api key/dataset are to be passed via env vars `HONEYCOMB_API_KEY` and `HONEYCOMB_DATASET` respectively.
2025-02-18 10:06:20 -08:00
Brian Hackett
20bb97c0c5
Fix assorted problems (#27) 2025-02-14 14:27:20 -08:00
Brian Hackett
b2efa3b56d Fixes for partial update handling 2025-02-13 16:34:30 -08:00
Brian Hackett
9167d77ff2
Save scrolling interactions (#26) 2025-02-13 14:31:03 -08:00
Brian Hackett
2f2a239660
Avoid losing code when prompting AI (#24) 2025-02-13 09:36:22 -08:00
Brian Hackett
dd18d5360c
Support rewinding to earlier messages (#23) 2025-02-12 17:23:26 -08:00
Brian Hackett
43ab9b3656 Support saving solutions without an associated evaluator 2025-02-12 14:19:57 -08:00
Brian Hackett
4cf70843c0
Add UI for updating problems with admin key set (#18) 2025-02-12 08:59:42 -08:00
Brian Hackett
b2a98b4180 tweak logging 2025-02-11 17:15:00 -08:00
Brian Hackett
d80eff60a7 Handle older format for repository contents in problems 2025-02-11 13:42:12 -08:00
Brian Hackett
fc89c55517 Remove obsolete experimental command 2025-02-11 09:57:33 -08:00
Brian Hackett
ce94bf7fcf Include chat messages in solution instead of last user prompt 2025-02-11 06:07:57 -08:00
Brian Hackett
bb82c56958
Improve UI for viewing and changing problems (#15) 2025-02-10 20:18:54 -08:00
Brian Hackett
b7b602016e
Improve support for streaming simulation data to backend (#16) 2025-02-07 11:52:19 -08:00
Mateusz Burzyński
d143863285
Record pointer moves (#14) 2025-02-07 15:37:39 +01:00
Mateusz Burzyński
ce1eed19bb
Include viewport size in the simulation data (#13)
* Include viewport size in the simulation data

* add reusable type
2025-02-06 17:02:33 +01:00
Mateusz Burzyński
aec72dd575
More resilient preview script injection and postMessage communication (#12) 2025-02-04 20:45:18 +01:00
Brian Hackett
547b027ef7 Log all simulation data in console 2025-02-03 20:28:03 -08:00
Brian Hackett
3c193be3e6 Include mouse data when enhancing prompt 2025-01-30 11:24:58 -08:00
Brian Hackett
df8e2526ee
Use Nut Chat API (#11) 2025-01-29 10:45:18 -08:00
Brian Hackett
45c7365f01 Include mouse data when analyzing execution data 2025-01-23 07:35:06 -08:00
Brian Hackett
7d02bb58fc Ignore package-lock.json 2025-01-22 15:26:40 -08:00
Brian Hackett
7ce6110c1b Handle component tree failure data 2025-01-22 14:10:27 -08:00
Brian Hackett
2cfbb633e9 fix type error 2025-01-22 08:19:10 -08:00
Brian Hackett
2916c0538d Add restriction on number of free uses before setting anthropic API key 2025-01-22 08:18:35 -08:00
Brian Hackett
aef6fffc1f Update README, show problems in reverse chronological order 2025-01-22 07:21:22 -08:00
Mateusz Burzyński
dabbfc8bd7
Avoid top level await to fix execution and full module initialization race condition (#9) 2025-01-21 17:52:38 +01:00
Brian Hackett
cd66283c8a Tweak about page copy 2025-01-20 17:36:48 -08:00
Brian Hackett
25c4b03618 About page copy 2025-01-20 10:49:09 -08:00
Brian Hackett
5521e0eba6 Add about page 2025-01-20 10:32:48 -08:00
Brian Hackett
eee47d9af9
Send simulation prompt commands from client (#8) 2025-01-20 09:49:36 -08:00
Brian Hackett
a5c5d3910a
Update backend APIs for doing simulation based prompting (#7) 2025-01-20 08:03:25 -08:00
Brian Hackett
8e27657d9d Add logo 2025-01-18 15:30:06 -08:00
Brian Hackett
3f306a26c0
Add menu items UI for about and problem pages (#6) 2025-01-17 14:05:03 -08:00
Brian Hackett
09097e580c
UI improvements to chat and bug selection (#5) 2025-01-17 07:19:13 -08:00
Brian Hackett
e014056030 Refactor getModelInstance call outside of getStreamTextArguments so we don't need an API key for the selected model if we're using claude 2025-01-16 08:47:07 -08:00
Brian Hackett
f040c9b440 Merge remote-tracking branch 'upstream/main' 2025-01-16 08:02:49 -08:00
lewis liu
41bb909f8d
fix: fallback model name not working (#1095)
Some checks failed
Docker Publish / docker-build-publish (push) Has been cancelled
Update Stable Branch / prepare-release (push) Has been cancelled
Co-authored-by: 刘一奇 <liuyiqi02@corp.netease.com>
2025-01-15 16:36:33 +05:30
Brian Hackett
80ce84f166
Include request body and response header info for fetch calls (#4) 2025-01-14 16:17:47 -08:00
Brian Hackett
6543f33d54
Fixes for cloudflare deployment (#3) 2025-01-14 13:07:23 -08:00
Digitl Alchemyst
85d864f607
Merge pull request #809 from stackblitz-labs/807-transparency-about-development
Some checks failed
Docker Publish / docker-build-publish (push) Has been cancelled
Update Stable Branch / prepare-release (push) Has been cancelled
docs: document how we work
2025-01-12 23:34:48 -06:00
Anirban Kar
fad41973e2
fix: api-key manager cleanup and log error on llm call (#1077)
* fix: api-key manager cleanup and log error on llm call

* log improved
2025-01-13 04:21:29 +05:30
Eduard Ruzga
3a298f1586
fix: cors issues from preview fixed by changing embedder policies (#1056)
Some checks are pending
Docker Publish / docker-build-publish (push) Waiting to run
Update Stable Branch / prepare-release (push) Waiting to run
2025-01-12 21:58:06 +05:30
GaryStimson
6aaff63ca7
fix: bugfix in fetching API Key on base llm provider. (#1063) 2025-01-12 21:54:45 +05:30
Brian Hackett
6bc218340c
Use simulation prompt API (#2) 2025-01-11 13:48:38 -10:00
Adithyan K
49bb17886a
fix: added ui indicator on how apikeys are set (UI/Env) for api-key-manager component (#732)
* fixed #333

* Added instruction in case api-key is not set.

* addressed some of the review changes:

1. moved function definiton to useCallback.
2. added a cache to store the env key status and the api call is made only on a cache miss.

* Manages the API-key entered via UI in a better way.

- Persist API keys in cookies when entered via UI
- Automatically load saved keys when switching between providers
- Preserve existing functionality for environment variable based keys

* Re-used map from utils/constants file.

* Code cleanup -  Removed redundant API key init in BaseChat as its already handled by APIKeyManager component.
2025-01-10 21:26:31 +05:30
Leex
6bf36a915c
docs: bugfix/formatting faq docs (#1027)
* fixed formatting of faq and enhanced styling

* save

* did further improvements and fixing the sidebar

---------

Co-authored-by: Anirban Kar <thecodacus@gmail.com>
2025-01-10 21:17:32 +05:30
Oliver Jägle
bc3274c77e
Satisfy the linter 2025-01-07 19:52:50 +01:00
Brian Hackett
c3e1764da3
Merge pull request #1 from replayio/recording-button
Add button to save recording, assorted other UX changes
2025-01-07 05:56:18 -10:00
Siddharth V
4fd5040355
feat: enhance chat import with multi-format support (#936)
Some checks failed
Docker Publish / docker-build-publish (push) Has been cancelled
Update Stable Branch / prepare-release (push) Has been cancelled
* feat: enhance chat import with multi-format support

- Add support for importing chats from different formats:
  - Standard Bolt format
  - Chrome extension format
  - History array format
  - Bolt export format
- Add Import Chats button to Data Management
- Add proper error handling and logging
- Update README with backup/restore feature

* refactor: simplify chat import formats

- Remove multi-format support from DataTab
- Keep only standard Bolt export formats
- Simplify ImportButtons to handle standard format only
2025-01-07 16:46:42 +02:00
Anirban Kar
78eb3a5f34
fix: streaming issue fixed for build versions (#1006)
* fix: streaming issue fixed for build versions

* added keep-alive header
2025-01-06 19:18:52 +05:30
Anirban Kar
49c7129ded
fix: ollama and lm studio url issue fix for docker and build (#1008)
* fix: ollama and lm studio url issue fix for docker and build

* vite config fix
2025-01-06 19:18:42 +05:30
kunjabijukchhe
3ecac25a35
feat: implement Claude 3, Claude3.5, Nova Pro, Nova Lite and Mistral model integration with AWS Bedrock (#974)
* feat: Integrate AWS Bedrock with Claude 3.5 Sonnet, Claude 3 Sonnet, and Claude 3.5 Haiku

* update Dockerfile for AWS Bedrock configuration

* feat: add new Bedrock model 'Mistral' and update Haiku to version 3

* feat: add new bedrock model Nova Lite and Nova Pro

* Update README documentation to reflect the latest changes

* Add the icon for aws bedrock

* add support for serialized AWS Bedrock configuration in api key
2025-01-06 17:49:16 +05:30
Anirban Kar
59cae5733d
fix: git private clone with custom proxy (#1010)
* cookie fix

* fix: git private clone with custom proxy

* list -fix
2025-01-06 01:54:55 +05:30
Eduard Ruzga
b1f9380c30
fix: introduce our own cors proxy for git import to fix 403 errors on isometric git cors proxy (#924)
Some checks are pending
Update Stable Branch / prepare-release (push) Waiting to run
* Exploration of improving git import

* Fix our own git proxy

* Clean out file counting for progress, does not seem to work well anyways
2025-01-05 17:26:02 +05:30
Gaurav-Wankhede
e9852bfb22
Update hyperbolic.ts
Changed updated Hyperbolic Settings link
2025-01-01 17:59:11 +05:30
Anirban Kar
d2ba8d3be3
fix: show warning on starter template failure and continue (#960)
Some checks are pending
Update Stable Branch / prepare-release (push) Waiting to run
2025-01-01 13:39:09 +05:30
Anirban Kar
67d984c52c
fix: hotfix auto select starter template works without github token #release (#959)
* fix: hotfix starter template fix, updated header link to use navigate

* template auth fix

* updated changelog script
2025-01-01 03:57:55 +05:30
Anirban Kar
6494f5ac2e
fix: updated logger and model caching minor bugfix #release (#895)
* fix: updated logger and model caching

* usage token stream issue fix

* minor changes

* updated starter template change to fix the app title

* starter template bigfix

* fixed hydretion errors and raw logs

* removed raw log

* made auto select template false by default

* more cleaner logs and updated logic to call dynamicModels only if not found in static models

* updated starter template instructions

* browser console log improved for firefox

* provider icons fix icons
2024-12-31 22:47:32 +05:30
Anirban Kar
389eedcac4
fix: better model loading ui feedback and model list update (#954)
Some checks are pending
Update Stable Branch / prepare-release (push) Waiting to run
* fix: better model loading feedback and model list update

* added load on providersettings  update
2024-12-31 19:22:46 +05:30
Eduard Ruzga
55cfd5d4ee
fix: refresh model list after api key changes (#944)
Some checks are pending
Update Stable Branch / prepare-release (push) Waiting to run
2024-12-30 23:35:08 +05:30
Arsalaan Ahmed
e00264236e
feat: added hyperbolic llm models (#943)
* Added Hyperbolic Models

* Fix: Fixed problem in connecting with hyperbolic models

* added dynamic models for hyperbolic

* removed logs
2024-12-30 23:26:33 +05:30
Eduard Ruzga
93c2a6e81d
Merge pull request #939 from juanmcampos/fix-project-import-button
fix: import folder filtering
2024-12-30 19:39:27 +02:00
Eduard Ruzga
4c81cb02e1
fix: add defaults for LMStudio to work out of the box (#928)
Some checks are pending
Update Stable Branch / prepare-release (push) Waiting to run
2024-12-30 17:50:13 +05:30
Juan Manuel Campos Olvera
6e3b5dcbd7 fix: import folder filtering 2024-12-29 20:21:49 -06:00
Anirban Kar
4c81e154a0
feat: added Automatic Code Template Detection And Import (#867)
Some checks are pending
Update Stable Branch / prepare-release (push) Waiting to run
* initial setup

* updated template list

* added optional switch to control this feature

* removed some logs
2024-12-29 15:52:37 +05:30
Anirban Kar
3a36a4469a
feat: redact file contents from chat and put latest files into system prompt (#904) 2024-12-29 15:36:31 +05:30
Eduard Ruzga
aecd9b1b40
fix: detect and remove markdown block syntax that llms sometimes hallucinate for file actions (#886)
* Clean out markdown syntax

* Remove identation removal

* Improve for streaming
2024-12-29 15:23:20 +05:30
Eduard Ruzga
7eee0386ff
feat: catch errors from web container preview and show in actionable alert so user can send them to AI for fixing (#856)
* Catch errors from web container

* Show fix error popup on errors in preview

* Remove unneeded action type

* PR comments

* Cleanup urls in stacktrace

---------

Co-authored-by: Anirban Kar <thecodacus@gmail.com>
2024-12-25 03:05:44 +05:30
Anirban Kar
fc4f89f806
feat: add Starter template menu in homepage (#884)
* added icons and component

* updated unocss to add dynamic icons

* removed temp logs

* updated readme
2024-12-24 22:37:28 +05:30
Anirban Kar
8185fd56ca
fix: check for updates does not look for commit.json now (#861) 2024-12-24 13:34:46 +05:30
Eduard Ruzga
79e7e75228
Merge pull request #797 from thecodacus/terminal-error-detection
feat: enhanced Terminal Error Handling and Alert System
2024-12-23 14:25:39 +02:00
Dustin Loring
1f938fca40
feat; data tab added to the settings
added a data tab to the settings
removed chat history
2024-12-22 06:20:14 -05:00
Anirban Kar
8b58c7a0fb
fix: ollama provider module base url hotfix for docker (#863)
* fix: ollama base url hotfix

* cleanup logic
2024-12-22 01:25:48 +05:30
Anirban Kar
13b208df46 better osc code cleanup 2024-12-22 01:01:06 +05:30
Anirban Kar
d8943f9474
fix: provider menu dropdown fix (ghost providers) (#862) 2024-12-21 23:31:19 +05:30
Anirban Kar
28f0c3629d ignored alert on project reload 2024-12-21 17:44:18 +05:30
Anirban Kar
975e7d83fd Merge branch 'main' into terminal-error-detection 2024-12-21 16:14:46 +05:30