Skip to content
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

Release 12/22/23 #656

Merged
merged 402 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
402 commits
Select commit Hold shift + click to select a range
476d9c6
chore: updated w/latest changes from chat persistence
cbrzn Dec 8, 2023
245454e
Updates logo width in landingPage state
cedricwaxwing Dec 8, 2023
107907b
Fixed noChatId bug when creating new chat
namesty Dec 9, 2023
a40d290
tooltip refinements
cedricwaxwing Dec 9, 2023
3a9e39a
choir: responsive sweep
cedricwaxwing Dec 9, 2023
a5e7eb1
Resolves logo gradient bug/cleans up code
cedricwaxwing Dec 9, 2023
9a660fe
chore: update with latest from ui-chat-persistence
cbrzn Dec 11, 2023
7a0130b
chore: update with latest changes from redesign
cbrzn Dec 11, 2023
c88606c
chore: add next public variables to .env.template
cbrzn Dec 11, 2023
dde1ef4
chore: update with dev
cbrzn Dec 11, 2023
46e4eef
chore: add needed env for frontend to CI
cbrzn Dec 11, 2023
4f46a04
chore: update next public supabase url env in ci
cbrzn Dec 11, 2023
f3fd256
fix typo: parllel-> parallel
nirpow Dec 11, 2023
404bf07
Single chat page
namesty Dec 11, 2023
5e0add4
Merge branch 'namesty/ui-chat-persistence' of github.com:polywrap/evo…
namesty Dec 11, 2023
684d59b
Organized definitions
namesty Dec 11, 2023
c647097
Added not found guards
namesty Dec 11, 2023
44b54eb
Don't refetch chats on mount
namesty Dec 11, 2023
ce51977
Refresh on same chatID while logged in working
namesty Dec 11, 2023
3a67d95
Merge pull request #549 from polywrap/nerfzael/evo-explainer-prompt
dOrgJelli Dec 11, 2023
4436bb9
Merge pull request #552 from nirpow/patch-1
dOrgJelli Dec 11, 2023
73eab43
Updated server supabase client usages
namesty Dec 11, 2023
dbe3df6
chore: update .env.template + fix indentation
dOrgJelli Dec 11, 2023
fcc596b
Eliminated supabase from jotai store
namesty Dec 11, 2023
98bec5e
Merge branch 'namesty/ui-chat-persistence' of github.com:polywrap/evo…
namesty Dec 11, 2023
7215fe6
chore: sample prompts not shown when logs are not empty
cbrzn Dec 11, 2023
9805042
Merge branch 'namesty/ui-chat-persistence' of github.com:polywrap/evo…
cbrzn Dec 11, 2023
2d109d3
chore: simplify migration script
cbrzn Dec 11, 2023
bafb9c8
chore: update with latest changes from chat persistence
cbrzn Dec 11, 2023
654e000
chore: dont create chat if id is defined in url
cbrzn Dec 11, 2023
2301f3e
chore: remove error log files & fix modal errors
cbrzn Dec 11, 2023
afbc131
Added import statement for nodes path module for windows compatibility.
jSydorowicz21 Dec 11, 2023
3d08bcd
fix: OPENAI_API_BASE_URL uses undefined instead of empty string
dOrgJelli Dec 12, 2023
c1af990
Fix: Disables chat input button if no message; chat ui updates
cedricwaxwing Dec 12, 2023
07c2a95
Resolves scrolling issue; makes logo clickable; adds session info
cedricwaxwing Dec 12, 2023
f614fd3
Adds Sign Out/support to dropdown
cedricwaxwing Dec 12, 2023
a465094
accommodates smaller text size in chats/workspace
cedricwaxwing Dec 12, 2023
c56bda8
Small style tweaks
cedricwaxwing Dec 12, 2023
88657d0
Cleanup
cedricwaxwing Dec 12, 2023
5da9513
chore: add lint to chat history migration and simplify script
cbrzn Dec 12, 2023
7e54057
chore: rename `ChatMessage` to `ChatLog`
cbrzn Dec 12, 2023
b7f7e25
chore: show chat list only to users with session
cbrzn Dec 12, 2023
dfe3d48
chore: fix build
cbrzn Dec 12, 2023
9de5887
chore: update with latest from chat persistence
cbrzn Dec 12, 2023
7ac4412
chore: create `useAccountConfig` hook for modals
cbrzn Dec 12, 2023
77641cc
chore: clean up non used files
cbrzn Dec 12, 2023
ecf4b87
chore: link legacy goals table with new chats table
dOrgJelli Dec 12, 2023
8cc71e7
Merge pull request #548 from polywrap/namesty/ui-chat-persistence
namesty Dec 12, 2023
47707f8
Merge pull request #575 from polywrap/dev
dOrgJelli Dec 12, 2023
2000a18
chore: merge with dev
cbrzn Dec 12, 2023
15282b5
Added ReadDirectoryFunction to the relevant agents allowing them to r…
jSydorowicz21 Dec 12, 2023
f5e491c
feat: use per-chat-goal evo instances
dOrgJelli Dec 13, 2023
3aa2f00
chore: remove evo from state + remove proxy api instances from globals
dOrgJelli Dec 13, 2023
4a7a8b3
chore: fix build
dOrgJelli Dec 13, 2023
489450c
chore: add evo back to component state
dOrgJelli Dec 13, 2023
32ff7c4
Merge pull request #581 from polywrap/feat/per-chat-evo-instance
dOrgJelli Dec 13, 2023
c57d96a
chore: upload button in input works
cbrzn Dec 13, 2023
8080583
chore: open sign in modal if not openai key or session is proved
cbrzn Dec 13, 2023
5506512
chore: update with latest dev
cbrzn Dec 13, 2023
0b4ce51
chore: upload files on example prompt after handle send
cbrzn Dec 13, 2023
35b90e2
Adds truncation to overflowing text; removes message function buttons
cedricwaxwing Dec 13, 2023
8117256
Adds hover/click on recent chats zero state
cedricwaxwing Dec 13, 2023
a5a5c79
Removes Settings for guests
cedricwaxwing Dec 13, 2023
0f68443
Adds additional text above openai key in accountconfig
cedricwaxwing Dec 13, 2023
9af0b85
Removes loading from all but current evo message; only shows evo avat…
cedricwaxwing Dec 13, 2023
5c8885f
Adds logic to accommodate guest avatar; fixes evo message loading state
cedricwaxwing Dec 13, 2023
ef978c8
Updates guest avatar/default bg
cedricwaxwing Dec 13, 2023
a2aca38
chore: sidebar on mobile doesnt open & show chat list only with logge…
cbrzn Dec 13, 2023
c538816
Merge branch 'feat/redesign' of github.com:polywrap/evo.ninja into fe…
cbrzn Dec 13, 2023
93bad2e
Updates WelcomeModal show
cedricwaxwing Dec 13, 2023
9740333
Merge branch 'feat/redesign' of github.com:polywrap/evo.ninja into fe…
cbrzn Dec 13, 2023
9dbbae7
chore: remove console.logs
cbrzn Dec 13, 2023
5f3f41a
Don't show intro text if user has api key
cedricwaxwing Dec 13, 2023
ef26313
remove console logs and update style for chat avatar
cedricwaxwing Dec 13, 2023
65a76ae
Merge branch 'feat/redesign' of https://github.com/polywrap/evo.ninja…
cedricwaxwing Dec 13, 2023
610761d
chore: loading skeleton on profile load init
cbrzn Dec 13, 2023
ca77d6f
Merge branch 'feat/redesign' of github.com:polywrap/evo.ninja into fe…
cbrzn Dec 13, 2023
11579dd
Add skeleton states for: Recent Chats, Workspace, Account
cedricwaxwing Dec 13, 2023
d613db2
feat: init EvoService and EvoThread
dOrgJelli Dec 14, 2023
7fab6df
chore: remove dead code + add todo file
dOrgJelli Dec 14, 2023
0cb8d17
chore: fix build
dOrgJelli Dec 14, 2023
47fbfc3
Merge branch 'feat/redesign' of https://github.com/polywrap/evo.ninja…
cedricwaxwing Dec 14, 2023
4bd73a6
Merge pull request #578 from jSydorowicz21/read-directories
dOrgJelli Dec 14, 2023
7e2baf3
chore: re add error toast bar
cbrzn Dec 14, 2023
d3ccf8a
chore: fix checkbox component
cbrzn Dec 14, 2023
f26240e
chore: handle loading state in chat
cbrzn Dec 14, 2023
4050790
feat: move workspace handling into the EvoThread
dOrgJelli Dec 14, 2023
8d37034
chore: improve loading & remove pause button
cbrzn Dec 14, 2023
0eb9ac8
Merge branch 'dev' into feat/redesign
cbrzn Dec 14, 2023
8a6fc01
Adds support to dropdown, removes from chat
cedricwaxwing Dec 14, 2023
d0ed093
Merge branch 'feat/redesign' of https://github.com/polywrap/evo.ninja…
cedricwaxwing Dec 14, 2023
caf2e46
Add SSO info to Account Settings modal if user is authenticated
cedricwaxwing Dec 14, 2023
f9d63ee
implemented previous goal chat persistence
nerfZael Dec 14, 2023
472c11d
chore: improved state transitions and synchronization
dOrgJelli Dec 14, 2023
fea1015
chore: fix some bugs
dOrgJelli Dec 14, 2023
667c73e
chore: fix problems with chatlog and chatlist
dOrgJelli Dec 14, 2023
af2e1df
chore: fix rendering issues
dOrgJelli Dec 14, 2023
90596ec
chore: fix some bugs
dOrgJelli Dec 14, 2023
7517067
chore: fix loading bugs
dOrgJelli Dec 14, 2023
9af5d19
chore: fix loading chat routes
dOrgJelli Dec 15, 2023
f9c072b
chore: fix build issue
dOrgJelli Dec 15, 2023
046382a
Responsive updates
cedricwaxwing Dec 15, 2023
b165760
replaced runWithExistingContext with just run
nerfZael Dec 15, 2023
22ff177
chore: remove todo file
dOrgJelli Dec 15, 2023
422871e
chore: remove unnecessary props & variables from components
cbrzn Dec 15, 2023
24db28d
chore: dropdown-menu-item converted to tailwind class
cbrzn Dec 15, 2023
98f9c0e
Merge pull request #591 from polywrap/nerfzael/remember-previous-goal…
dOrgJelli Dec 15, 2023
3192b4f
chore: handle error when fetching chats'
dOrgJelli Dec 15, 2023
37e8949
merge dev
dOrgJelli Dec 15, 2023
9535707
Merge pull request #557 from jSydorowicz21/dev
namesty Dec 15, 2023
b85aecd
Merge pull request #587 from polywrap/feat/global-evo-instance-map
dOrgJelli Dec 15, 2023
b858b79
Merge pull request #595 from polywrap/dev
dOrgJelli Dec 15, 2023
e351916
chore: dont return `AccountConfig` component in `useAccountConfig` hook
cbrzn Dec 15, 2023
79a5d24
Updates Avatar
cedricwaxwing Dec 15, 2023
24c613b
Merge branch 'feat/redesign' of https://github.com/polywrap/evo.ninja…
cedricwaxwing Dec 15, 2023
b3c594d
chore: remove conditional in `useAccountConfig` useEffect
cbrzn Dec 15, 2023
bd8dad3
Merge branch 'feat/redesign' of github.com:polywrap/evo.ninja into fe…
cbrzn Dec 15, 2023
0059c6f
implemented persistent workspace
nerfZael Dec 15, 2023
e38e880
supabase workspace now implements workspace
nerfZael Dec 15, 2023
118992d
resolves disclaimer positioning
cedricwaxwing Dec 15, 2023
7478ec3
removes redundant sign in data in welcome modal 2nd state
cedricwaxwing Dec 15, 2023
24ec8bc
Merge branch 'feat/redesign' of https://github.com/polywrap/evo.ninja…
cedricwaxwing Dec 15, 2023
56310e2
Fixes avatar
cedricwaxwing Dec 15, 2023
8262cee
chore: use `InMemoryWorkspace` if user is not logged in
cbrzn Dec 15, 2023
6439f86
chore: re-add loading circle in last message from evo when its runnign
cbrzn Dec 15, 2023
9a5ffd7
Merge pull request #596 from polywrap/nerfzael/persistent-workspace
cbrzn Dec 15, 2023
855e4a2
chore: merge dev with redesign
cbrzn Dec 15, 2023
98f62ef
chore: dont show disclaimer with welcome modal
cbrzn Dec 15, 2023
07e8405
chore: fix build
cbrzn Dec 15, 2023
ba347cc
chore: remove unused components
cbrzn Dec 15, 2023
4df0b07
Merge pull request #555 from polywrap/feat/redesign
cbrzn Dec 15, 2023
44dce9f
Merge pull request #599 from polywrap/dev
dOrgJelli Dec 15, 2023
6b078a8
fix: properly handle chat id route transitions
dOrgJelli Dec 18, 2023
45f328b
chore: fix sidebar & chat mobile bugs
cbrzn Dec 18, 2023
4a0e999
Merge pull request #607 from polywrap/fix-load-chat-id-route
dOrgJelli Dec 18, 2023
9f657bf
Merge branch 'dev' into fix/mobile-bugs
cbrzn Dec 18, 2023
d998722
showing new chats first in sidebar
nerfZael Dec 18, 2023
574efac
Adds hover-triggered chat buttons
cedricwaxwing Dec 18, 2023
11e1ef7
Adds handle functions for buttons
cedricwaxwing Dec 18, 2023
c013e4d
fix: add user goal upfront w/ helpful evo message
dOrgJelli Dec 18, 2023
1f9007a
chore: order chats via db request
dOrgJelli Dec 18, 2023
ecf3071
Merge pull request #608 from polywrap/nerfzael/new-chats-first
dOrgJelli Dec 18, 2023
c55e8cd
Merge pull request #611 from polywrap/fix/issue-559
dOrgJelli Dec 18, 2023
859896f
chore: merge with dev
cbrzn Dec 18, 2023
c0b8e0f
Merge pull request #609 from polywrap/fix/mobile-bugs
dOrgJelli Dec 18, 2023
6729e00
chore: merge with dev
cbrzn Dec 18, 2023
30be45a
Merge pull request #613 from polywrap/dev
dOrgJelli Dec 18, 2023
d0ccbb4
feat: delete chat supported
cbrzn Dec 18, 2023
88b3544
chore: add title to chat table
cbrzn Dec 18, 2023
9c05040
create chat when uploading the file for the first time
nerfZael Dec 18, 2023
e1de9ca
chore: merge with dev
cbrzn Dec 18, 2023
768e399
Merge branch 'modify-recent-chats' into cbrzn/modify-recent-chats
cbrzn Dec 18, 2023
846f3b6
useCallback to fix issue with submitting new goal without chatId
nerfZael Dec 18, 2023
a370bf8
fix: on mobile manually set input font-size to avoid needless zooming
dOrgJelli Dec 18, 2023
2caa709
feat: update chat title works
cbrzn Dec 18, 2023
370d3eb
chore: update chat title on goal sent
cbrzn Dec 18, 2023
ae0dcb0
Updates chat rename input styles
cedricwaxwing Dec 18, 2023
c9ee0ec
Merge branch 'modify-recent-chats' of https://github.com/polywrap/evo…
cedricwaxwing Dec 18, 2023
582ff61
chore: update chat_update migration to handle chat without logs
cbrzn Dec 18, 2023
5ae3075
Merge branch 'modify-recent-chats' of github.com:polywrap/evo.ninja i…
cbrzn Dec 18, 2023
55c7897
fix: improve handling of subsequent user goals
dOrgJelli Dec 19, 2023
1da3dbe
Merge pull request #629 from polywrap/fix/issue-620
dOrgJelli Dec 19, 2023
2607b5d
Merge pull request #631 from polywrap/fix/subsequent-user-goal-one-chat
dOrgJelli Dec 19, 2023
64a1a2c
Merge pull request #632 from polywrap/dev
dOrgJelli Dec 19, 2023
8d71e09
fix: handle subsequent use goal properly
dOrgJelli Dec 19, 2023
10a88e6
Merge pull request #633 from polywrap/dev
dOrgJelli Dec 19, 2023
eea6a8a
feat: generate chat title with gpt3.5
cbrzn Dec 19, 2023
17a2508
proper return types
nerfZael Dec 19, 2023
e651b74
chore: add name of chat to header of chat logs
cbrzn Dec 19, 2023
df90d25
chore: make title column in chats table nullable
cbrzn Dec 19, 2023
2523b47
Merge branch 'modify-recent-chats' into cbrzn/generate-goal-title
cbrzn Dec 19, 2023
e43ec80
chore: polish details in chat name show & creation
cbrzn Dec 19, 2023
5bf4b56
Merge branch 'dev' into modify-recent-chats
dOrgJelli Dec 19, 2023
78a1697
handling goal start after chat id change is propagated
nerfZael Dec 19, 2023
10045a9
Merge remote-tracking branch 'origin/dev' into nerfzael/handle-anonym…
nerfZael Dec 19, 2023
87836ee
fixed merge conflict
nerfZael Dec 19, 2023
bfe6ab9
chore: fix chat name in mappedChats
cbrzn Dec 19, 2023
7027090
Merge branch 'modify-recent-chats' of https://github.com/polywrap/evo…
dOrgJelli Dec 19, 2023
a90b857
Merge branch 'modify-recent-chats' into cbrzn/generate-goal-title
cbrzn Dec 19, 2023
11d0cc4
Merge branch 'modify-recent-chats' into cbrzn/generate-goal-title
cbrzn Dec 19, 2023
0adf954
chore: not modify chat name if empty string is given
cbrzn Dec 19, 2023
b9254f7
chore: handle create instance of supabase workspace when deleting chat
cbrzn Dec 19, 2023
0450aed
Merge branch 'modify-recent-chats' into cbrzn/generate-goal-title
cbrzn Dec 19, 2023
be5abc4
chore: dont modify title if already exists
cbrzn Dec 19, 2023
e9b7e4c
Resolves sidebar width issue
cedricwaxwing Dec 19, 2023
6aec718
Adds active chat state; removes hover button logic and replaces with …
cedricwaxwing Dec 19, 2023
4e25064
Merge branch 'modify-recent-chats' of https://github.com/polywrap/evo…
cedricwaxwing Dec 19, 2023
05debc6
chore: polish details based on feedback
cbrzn Dec 19, 2023
e5374f7
chore: fix build
dOrgJelli Dec 19, 2023
1816f77
chore: merge latest
cbrzn Dec 19, 2023
96bd1a5
Merge pull request #610 from polywrap/modify-recent-chats
dOrgJelli Dec 19, 2023
ce87f75
chore: polish sidebar button actions
cbrzn Dec 19, 2023
4ff544f
chore: moved generate title to `ChatApi`
cbrzn Dec 19, 2023
88d31a8
chore: open welcome modal on first action rather than first visit
cbrzn Dec 19, 2023
137235f
chore: hide disclaimer when sign in or settings modal open
cbrzn Dec 19, 2023
197d00f
feat: chat details modal init
cbrzn Dec 20, 2023
7c45a89
refactor: better handle chatId, evoService, and workspace upload stat…
dOrgJelli Dec 20, 2023
86132ed
chore: use llm from context in predict next step
cbrzn Dec 20, 2023
25b8931
merge dev
dOrgJelli Dec 20, 2023
f3e2e51
fix: set active chat based on global chatId
dOrgJelli Dec 20, 2023
1c7b0ef
chore: rename to useWorkspaceFilesUpdate and useWorkspaceUploadUpdate
dOrgJelli Dec 20, 2023
ff946e7
Merge pull request #641 from polywrap/dorgjelli/refactor-sessions-and…
dOrgJelli Dec 20, 2023
ea94de5
chore: merge with latest dev
cbrzn Dec 20, 2023
002af2b
chore: merge with latest dev
cbrzn Dec 20, 2023
35b64ef
chore: update with dev
cbrzn Dec 20, 2023
99a5bdd
fix: initialize chatInfo.id to undefined instead of <anon>
dOrgJelli Dec 20, 2023
b5e4be2
chore: remove dead code
dOrgJelli Dec 20, 2023
16494cc
Adds File Modal and utils directory including parseCsvContent.tsx util
cedricwaxwing Dec 20, 2023
1ea9c21
nit: component hook ordering
dOrgJelli Dec 20, 2023
bb352e5
chore: require chatName for ChatLogs component
dOrgJelli Dec 20, 2023
a522e81
nit: import ordering
dOrgJelli Dec 20, 2023
8fc14cf
Fixes #602 - Weird Disclaimer spacing
cedricwaxwing Dec 20, 2023
90e191c
Updates h-screen to 100dvh to accommodate mobile safari browser
cedricwaxwing Dec 20, 2023
8fc27bd
Merge pull request #640 from polywrap/chore/use-gpt4-for-prediction
cbrzn Dec 20, 2023
0853bcf
feat: evo returns message as expected & status updated in evo service
cbrzn Dec 20, 2023
0baab17
chore: show details button only when its not running & has evo message
cbrzn Dec 20, 2023
4868028
Style updates to ChatLogs and ChatDetails
cedricwaxwing Dec 21, 2023
e6f3d6d
Updates ChatDetails toggle logic
cedricwaxwing Dec 21, 2023
31ef5eb
chore: fix build
cbrzn Dec 21, 2023
6d1c116
chore: improve logic of how the details are shown & persist status be…
cbrzn Dec 21, 2023
171dded
Separate concerns for modal open state / viewing file
cedricwaxwing Dec 21, 2023
e8ce3e9
Updates scrollbars to stable positioning
cedricwaxwing Dec 21, 2023
71e33ce
chore: move chat name manipulation to page.tsx
dOrgJelli Dec 21, 2023
7fee8d0
Merge pull request #648 from polywrap/cedricwaxwing/updates-scrollbar…
dOrgJelli Dec 21, 2023
778dec2
Merge pull request #643 from polywrap/mobile-design-fixes
dOrgJelli Dec 21, 2023
f237cad
chore: apply first time user flow to all necessary components
dOrgJelli Dec 21, 2023
c2cc3d4
Merge pull request #639 from polywrap/cbrzn/open-welcome-modal-on-fir…
dOrgJelli Dec 21, 2023
cf0d172
Merge branch 'dev' into cbrzn/generate-goal-title
dOrgJelli Dec 21, 2023
73fdea6
Merge pull request #634 from polywrap/cbrzn/generate-goal-title
dOrgJelli Dec 21, 2023
522e68d
fix: show settings modal on goal cap reached'
dOrgJelli Dec 21, 2023
3bb4aba
merge dev
dOrgJelli Dec 21, 2023
13251bf
fix: support parsing csv's with multiple delimiter types
dOrgJelli Dec 21, 2023
991d666
Merge pull request #642 from polywrap/file-modal
dOrgJelli Dec 21, 2023
523251d
Merge pull request #649 from polywrap/dev
dOrgJelli Dec 21, 2023
cd57e7f
chore: update with dev
cbrzn Dec 21, 2023
d1eb219
Updates modal styles to handle custom classes
cedricwaxwing Dec 21, 2023
756bb89
chore: updating BrowserLogger typings
dOrgJelli Dec 21, 2023
872c8f8
chore: update EvoThread's handling of the setStatus callback
dOrgJelli Dec 21, 2023
fa584b4
fix: logging
dOrgJelli Dec 21, 2023
232b257
chore: move sanitize logs details & make algorithm prettier
cbrzn Dec 21, 2023
28004c7
chore: update with latest changes
cbrzn Dec 21, 2023
5ce06f1
chore: update failure case
dOrgJelli Dec 21, 2023
e905153
Merge pull request #580 from polywrap/cbrzn/chat-details-modal
dOrgJelli Dec 21, 2023
a21ee05
Merge pull request #650 from polywrap/fix/modal-styles
dOrgJelli Dec 21, 2023
250fb5b
Merge pull request #651 from polywrap/dev
dOrgJelli Dec 21, 2023
7f95476
fix(browser): scrape text function
cbrzn Dec 21, 2023
0921a60
Merge pull request #653 from polywrap/fix/scrape-text-in-browser
dOrgJelli Dec 21, 2023
6c7c3d9
fix: properly reset workspace when disconnecting EvoThread
dOrgJelli Dec 21, 2023
6bca38b
Merge pull request #654 from polywrap/fix-workspace-reset
dOrgJelli Dec 21, 2023
c128a35
Merge pull request #655 from polywrap/dev
dOrgJelli Dec 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 28 additions & 11 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,37 +1,54 @@
################
### REQUIRED ###
################
######################
### CLI (required) ###
######################

# OPENAI_API_KEY
# Get it from https://platform.openai.com/account/api-keys
OPENAI_API_KEY=

# GPT_MODEL
# choose between gpt-3.5-turbo-16k-0613, gpt-4-0613 and gpt-3.5-turbo-0613
GPT_MODEL="gpt-4-0613"
# choose between gpt-4-1106-preview, gpt-3.5-turbo-16k-0613, gpt-4 and gpt-3.5-turbo-0613
GPT_MODEL="gpt-4-1106-preview"

# CONTEXT_WINDOW_TOKENS:
# The size of the context window, used for the agent's short-term memory
CONTEXT_WINDOW_TOKENS=8000
CONTEXT_WINDOW_TOKENS=128000

# MAX_RESPONSE_TOKENS
# The maximum size of the LLM's response
MAX_RESPONSE_TOKENS=2000
MAX_RESPONSE_TOKENS=4096

# SERP_API_KEY
# Get it from https://serpapi.com
# This is necessary for the webScraper.search script to work
SERP_API_KEY=

# Front-end authentication
##########################
### Browser (required) ###
##########################

GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

SUPABASE_URL=
SUPABASE_SERVICE_ROLE_KEY=
SUPABASE_JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long

NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=

###########################################
### Browser (required for `yarn start`) ###
###########################################

# Can be anything
NEXTAUTH_JWT_SECRET=

#########################
### Common (optional) ###
#########################

# only required for `next dev`
NEXTAUTH_SECRET=
# Custom URL for the OpenAI API endpoint
OPENAI_API_BASE_URL=
123 changes: 60 additions & 63 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
ignorePatterns: [
"**/__tests__/**/*.*",
"**/node_modules/**/*.*",
"**/coverage/**/*.*"
"**/coverage/**/*.*",
],
overrides: [
{
Expand All @@ -12,38 +12,46 @@ module.exports = {
parserOptions: {
project: ["tsconfig.json", "./packages/**/tsconfig.json"],
},
plugins: [
"eslint-plugin-import",
"@typescript-eslint",
"prettier"
],
plugins: ["eslint-plugin-import", "@typescript-eslint", "prettier"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:json/recommended"
"plugin:json/recommended",
],
rules: {
"prettier/prettier": ["error"],
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"spaced-comment": ["error", "always", { markers: ["/"] }],
"@typescript-eslint/naming-convention": [
"error",
{selector: "default", format: ["camelCase"]},
{ selector: "default", format: ["camelCase"] },
{
selector: [
"classProperty", "parameterProperty", "objectLiteralProperty",
"classMethod", "parameter"
"classProperty",
"parameterProperty",
"objectLiteralProperty",
"classMethod",
"parameter",
],
format: ["camelCase"], leadingUnderscore: "allow"
format: ["camelCase"],
leadingUnderscore: "allow",
},
//wrap host methods doesn't satisfy neither camel or snake
{selector: ["objectLiteralMethod", "typeMethod"], filter: {regex: "^_wrap_.*", match: true}, format: null},
{
selector: ["objectLiteralMethod", "typeMethod"],
filter: { regex: "^_wrap_.*", match: true },
format: null,
},
//variable must be in camel or upper case
{selector: "variable", format: ["camelCase", "UPPER_CASE"], leadingUnderscore: "allow"},
{
selector: "variable",
format: ["camelCase", "UPPER_CASE"],
leadingUnderscore: "allow",
},
//classes and types must be in PascalCase
{selector: ["typeLike", "enum"], format: ["PascalCase"]},
{selector: "enumMember", format: null},
{ selector: ["typeLike", "enum"], format: ["PascalCase"] },
{ selector: "enumMember", format: null },
//ignore rule for quoted stuff
{
selector: [
Expand All @@ -54,82 +62,71 @@ module.exports = {
"objectLiteralMethod",
"typeMethod",
"accessor",
"enumMember"
"enumMember",
],
format: null,
modifiers: ["requiresQuotes"]
modifiers: ["requiresQuotes"],
},
//ignore rules on destructured params
{
selector: "variable",
modifiers: ["destructured"],
format: null
}
format: null,
},
],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/member-ordering": [
"error", {
classes: {
order: "as-written",
memberTypes: [
// Constructors
"public-constructor",
"protected-constructor",
"private-constructor",

// Methods
"public-static-method",
"public-abstract-method",
"public-instance-method",
"public-decorated-method",
"protected-static-method",
"protected-abstract-method",
"protected-instance-method",
"protected-decorated-method",
"private-static-method",
"private-abstract-method",
"private-instance-method",
"private-decorated-method",
],
},
"error",
{
default: ["signature", "constructor", "method", "field"],
},
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-unused-vars": ["error", {
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
}],
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-floating-promises": "error",
"import/no-extraneous-dependencies": ["error", {
"devDependencies": false,
"optionalDependencies": true,
"peerDependencies": false
}],
"import/no-extraneous-dependencies": [
"error",
{
devDependencies: false,
optionalDependencies: true,
peerDependencies: false,
},
],
"import/order": [
"error",
{
"groups": [["index", "sibling", "parent", "internal"], ["external", "builtin"], "object"],
"newlines-between": "always"
}
]
groups: [
["index", "sibling", "parent", "internal"],
["external", "builtin"],
"object",
],
"newlines-between": "always",
},
],
},
},
{
files: ["**/__tests__/**/*.ts", "*.spec.ts"],
rules: {
"import/no-extraneous-dependencies": "off"
}
"import/no-extraneous-dependencies": "off",
},
},
{
files: ["*.d.ts"],
rules: {
"@typescript-eslint/triple-slash-reference": "off"
}
"@typescript-eslint/triple-slash-reference": "off",
},
},
{
files: ["*.json"],
extends: ["plugin:json/recommended"],
}
]
},
],
};
6 changes: 3 additions & 3 deletions .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ jobs:
run: yarn start:api -c &
env:
OPENAI_API_KEY: ${{ secrets.BENCHMARK_CI_OPENAI_API_KEY }}
GPT_MODEL: "gpt-4-0613"
CONTEXT_WINDOW_TOKENS: 8000
MAX_RESPONSE_TOKENS: 2000
GPT_MODEL: "gpt-4-1106-preview"
CONTEXT_WINDOW_TOKENS: 128000
MAX_RESPONSE_TOKENS: 4096
SERP_API_KEY: ${{ secrets.BENCHMARK_CI_SERP_API_KEY }}

- name: Set up Python 3.10
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ jobs:
- name: Build
run: yarn build
env:
CI: false
NEXT_PUBLIC_SUPABASE_URL: http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY: supabase-anon-key
29 changes: 29 additions & 0 deletions .github/workflows/db-production-migration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: db-production-migration

on:
push:
branches:
- release/prod

jobs:
migrate:
runs-on: ubuntu-latest

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_PRODUCTION_DB_PASSWORD }}
SUPABASE_PRODUCTION_PROJECT_ID: ${{ secrets.SUPABASE_PRODUCTION_PROJECT_ID }}

defaults:
run:
working-directory: ./apps/browser

steps:
- uses: actions/checkout@v3

- uses: supabase/setup-cli@v1
with:
version: latest

- run: supabase link --project-ref $SUPABASE_PRODUCTION_PROJECT_ID
- run: supabase db push
29 changes: 29 additions & 0 deletions .github/workflows/db-staging-migration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: db-staging-migration

on:
push:
branches:
- release/staging

jobs:
migrate:
runs-on: ubuntu-latest

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_STAGING_DB_PASSWORD }}
SUPABASE_STAGING_PROJECT_ID: ${{ secrets.SUPABASE_STAGING_PROJECT_ID }}

defaults:
run:
working-directory: ./apps/browser

steps:
- uses: actions/checkout@v3

- uses: supabase/setup-cli@v1
with:
version: latest

- run: supabase link --project-ref $SUPABASE_STAGING_PROJECT_ID
- run: supabase db push
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,12 @@ db
!/benchmarks/agbenchmark_config/config.json
/benchmarks/agbenchmark_config

/apps/browser/src/scripts.ts
.next
/apps/browser/lib/scripts.ts
.next

.DS_Store
yarn-error.log

# Supabase
.branches
.temp
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,12 @@ Once the evo.ninja CLI is run, there will be a `./sessions` directory created, w

## UI

Just run:
> `yarn start:browser`
The UI depends on [Supabase Database](https://supabase.com/). In order to run it locally you must have [Docker Desktop](https://docs.docker.com/get-docker/) installed and running.

0. Make sure you've followed installation steps above
1. Go to `cd apps/browser`
2. Run `yarn db:start` - This can take up to ~3 minutes, since it will download all the images needed by supabase
3. Update `.env.local` with:
- `NEXT_PUBLIC_SUPABASE_URL` will have the value of `API URL`
- `SUPABASE_SERVICE_ROLE_KEY` will have the value of `service_role key`
4. Run the UI with `yarn dev`
17 changes: 0 additions & 17 deletions apps/browser/api-utils/supabase.ts

This file was deleted.

11 changes: 11 additions & 0 deletions apps/browser/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { getAuthOptions } from "@/lib/api/authOptions";
import NextAuth from "next-auth";
import { NextRequest } from "next/server";

export function GET(req: NextRequest, res: any) {
return NextAuth(req, res, getAuthOptions())
}

export function POST(req: NextRequest, res: any) {
return NextAuth(req, res, getAuthOptions())
}
Loading
Loading