Commit Graph

789 Commits

Author SHA1 Message Date
Filip Sodić
352476e6e3
Fix Wasp AI import and login/logout problems (#1308) 2023-07-07 12:06:24 +02:00
Martin Šošić
4d4c2c2f72
Wasp AI: got prisma format working, fixed recovery on http errors
* Put some skeleton logic in.

* Fixed wrong handling of http errors, got prisma format working.

* fix
2023-07-07 01:24:26 +02:00
Martin Sosic
f714b8eb1d Added prisma TS package to Wasp, for running prisma format. 2023-07-06 18:29:02 +02:00
Martin Sosic
a7254cadb7 Code agent now sends the exception that crashed it as the last log. 2023-07-05 19:03:48 +02:00
Martin Sosic
42d656d9ad Added logs when retrying GPT requests. 2023-07-05 18:24:42 +02:00
Martin Sosic
513d696337 Fixed wrong http error handling. 2023-07-05 17:40:45 +02:00
Filip Sodić
0551983d5f Prevent chat gpt from generating login and signup 2023-07-05 16:23:04 +02:00
Filip Sodić
023478498c Fix typo in actions 2023-07-05 14:05:18 +02:00
Filip Sodić
cd0c5cb1bb
Fix incorrect import and useAction hook usage (#1305) 2023-07-05 11:57:54 +02:00
Martin Sosic
312441579a Improved code a bit for retrying GPT requests. 2023-07-05 01:00:18 +02:00
Martin Sosic
f22e7a87c6 Made ChatGPT retrying more robust (reacts to more http status codes). 2023-07-04 22:32:23 +02:00
Martin Sosic
0d58f24266 Reduced duration and tokens for JSON fixing, fixed removing double imports in operations. 2023-06-30 16:46:17 +02:00
Martin Sosic
b54627bc6e Made Wasp AI even more resistant to invalid JSON being returned from GPT. 2023-06-30 14:45:09 +02:00
Martin Sosic
046a49b709 Improved how we choose to use ChatGPT4. 2023-06-30 02:13:26 +02:00
Martin Sosic
958807f25b Now we use GPT4, if available, for plan. 2023-06-30 01:49:42 +02:00
Mihovil Ilakovac
f6cd3c79fd Use custom color 2023-06-29 22:36:03 +02:00
Martin Sosic
a5323a2e05 Added JSON config via CLI for Wasp AI. 2023-06-29 21:25:23 +02:00
Martin Sosic
005c17cef6 fix 2023-06-29 19:49:57 +02:00
Martin Sosic
cd4563f1e7 Some more prompt fixes. 2023-06-29 19:35:27 +02:00
Martin Sosic
bc3ac4e894 Improved some prompts. 2023-06-29 19:35:27 +02:00
Martin Sosic
84bda360b1 small fix of 403 http status to 401. 2023-06-29 16:56:55 +02:00
Martin Sosic
32c1f08a98 Enriched Operation examples. 2023-06-29 16:53:48 +02:00
Martin Šošić
3b6b6ddf1a
Wasp ai fuller examples (#1300)
* Enriched main.wasp example.

* Enriched examples in the prompts for Plan and for Wasp file.
2023-06-29 15:55:07 +02:00
Mihovil Ilakovac
c209077d20 Page fixing update 2023-06-29 15:32:40 +02:00
Mihovil Ilakovac
88a8f6a2ef Updates prompts: pages fixing, operations fixing 2023-06-29 15:12:48 +02:00
Mihovil Ilakovac
3e6e89d4e3 Adds pages fixing. Improve JSON fixing prompt. 2023-06-29 14:36:55 +02:00
Martin Sosic
20c06bc9e7 fix 2023-06-29 14:00:33 +02:00
Martin Sosic
f989bd7fca Now we do multiple attempts to fix wasp file if there are compile errors left. 2023-06-29 13:36:50 +02:00
Martin Sosic
d553f29f70 Merge branch 'main' into wasp-ai 2023-06-29 12:46:05 +02:00
Craig McIlwrath
c1d86b1f91
Show multiple parse errors from Wasp Analyzer (#1298)
* allow multiple errors to come out of analyzer

basically just plumbing. does add one new thing: all the concrete parse
errors get reported now 🥳

* add statement level error recovery to abstract parser

* add expression level parse recovery

recovers from errors inside dict entries, lists,
and tuples.

* document parser error recovery

* run formatter
2023-06-29 12:34:31 +02:00
Mihovil Ilakovac
a2a41ea0a0 Fixes imports example 2023-06-29 00:23:37 +02:00
Mihovil Ilakovac
1b4e7cd765 Formatting
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2023-06-28 23:51:24 +02:00
Mihovil Ilakovac
f4b76f0e34 Merge branch 'main' into wasp-ai 2023-06-28 23:40:57 +02:00
Mihovil Ilakovac
7caf367d41 Adds Tailwind support. Small prompt adjustments. 2023-06-28 23:40:00 +02:00
Martin Sosic
302936bf7f Added reporting of tokens usage. 2023-06-28 23:19:06 +02:00
Martin Sosic
08c235d12e Added fixing of NodeJS operations files. 2023-06-28 22:04:57 +02:00
Martin Sosic
286117b404 Added fixing of individual Operations. 2023-06-28 20:28:37 +02:00
Martin Sosic
cf8877479c Small fix of plan fixing. 2023-06-28 17:11:33 +02:00
Martin Sosic
1d6277846b Implemented fixing of Wasp file. 2023-06-28 16:48:22 +02:00
Mihovil Ilakovac
feeb9217de Updates data files list 2023-06-28 11:54:28 +02:00
Martin Sosic
5d13b4d607 tiny plan fixing fix. 2023-06-28 11:40:33 +02:00
Martin Sosic
15ce1bf5bb Now new-ai can be called programmaticaly more easily. 2023-06-28 11:25:09 +02:00
Martin Šošić
6c2049ad5a
Added plan fixing. (#1296) 2023-06-28 09:42:08 +02:00
Martin Sosic
349875b242 Upped number of retries for JSON from 1 to 2. Added pretty debugging of chatGPT prompts. 2023-06-27 18:24:12 +02:00
Martin Šošić
69129df3ce
If chatGPT responds with invalid JSON, ask it to fix it. (#1293) 2023-06-27 16:03:06 +02:00
Martin Šošić
3cb1dbd9f9
Update README.md with instructions on updating starter templates before release. 2023-06-27 12:31:36 +02:00
Mihovil Ilakovac
a10e4fdff1 Adds missing basic template files 2023-06-27 10:35:28 +02:00
Martin Sosic
db52fdbeac Merge branch 'main' into wasp-ai 2023-06-26 19:12:41 +02:00
Martin Šošić
466e33d50c
Wasp ai retry (#1288)
* Wasp AI now retries requests to chat GPT.

* Improved retry.

* Got tests for retry working.

* one more test.

* Improved retry tests a bit.

* Finished tests.

* fix
2023-06-26 17:48:08 +02:00
Mihovil Ilakovac
0e5e653832 Add info about Auto CRUD and Websockets to ChangeLog.
Co-authored-by: Craig McIlwrath <craigmc08@gmail.com>
2023-06-26 14:44:32 +02:00
Martin Sosic
ee18f8bb2d Enriched ChangeLog with more info on 0.11. 2023-06-26 14:19:09 +02:00
Mihovil Ilakovac
c50aef34f8
Rewrite templates to include description (#1283) 2023-06-23 16:44:24 +02:00
Craig McIlwrath
d5c04a002a
[waspls] fix debouncer tests (#1284) 2023-06-23 10:28:22 -04:00
Martin Sosic
001068ca1a Merge branch 'main' into wasp-ai 2023-06-23 12:45:59 +02:00
Martin Sosic
afb148e19d wasp cli now exits with code 1 on internal errors. 2023-06-23 12:44:43 +02:00
Martin Sosic
83ef006a98 Improved messaging for missing OpenAI Api key. 2023-06-23 12:09:09 +02:00
Craig McIlwrath
7c0d13d242
[waspls] diagnostics for external imports and goto definition (#1268) 2023-06-22 15:37:07 -04:00
Craig McIlwrath
066b832127
Adjust how dictionary types are displayed (#1280) 2023-06-22 14:13:18 -04:00
Mihovil Ilakovac
dc1c3aab49
Adds extra type info to middleware customization fn (#1279)
* Adds extra type info to middleware customization

Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>

* Fixes e2e tests

Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>

---------

Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2023-06-22 16:52:52 +02:00
Mihovil Ilakovac
d3454a5f58 Merge branch 'main' into wasp-ai 2023-06-22 10:48:36 +02:00
Mihovil Ilakovac
e3873a6148
Fixes oAuth redirect behaviour in development (#1275) 2023-06-22 10:47:47 +02:00
Mihovil Ilakovac
67f88cc50e
Fixes Websocket Typescript issues (#1277) 2023-06-22 10:30:03 +02:00
Martin Šošić
7c1e9879ab
Removed JS extension from imports on client (in examples, docs, ...). (#1276) 2023-06-21 19:19:13 +02:00
Mihovil Ilakovac
b80f8946cf
Updates broken imports for Auth components (#1274) 2023-06-21 16:09:10 +02:00
Martin Sosic
122dc2a058 Headless tests playwright package-lock.json update. 2023-06-21 11:18:02 +02:00
Martin Sosic
cfa09771e1 Merge branch 'main' into wasp-ai 2023-06-21 11:06:45 +02:00
Martin Sosic
98fa699011 Fix with non-optional jsImports field that should have been optional. 2023-06-21 11:01:31 +02:00
Craig McIlwrath
802e0c5e5d
show error message when database is not running (#1218)
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
Co-authored-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2023-06-20 14:34:14 -04:00
Martin Sosic
2e9a33d167 Extracted core skeleton files from the local template(s). 2023-06-20 19:58:15 +02:00
Martin Sosic
2379877b14 Removed debugging output. 2023-06-20 18:37:36 +02:00
Martin Sosic
6d4a39a976 Merge commit resolutions I ommited commiting by accident. 2023-06-20 18:32:50 +02:00
Martin Sosic
8b6fdc7b6e Merge branch 'main' into wasp-ai 2023-06-20 18:30:20 +02:00
Craig McIlwrath
e43b8f986c
[waspls] add dictionary autocomplete and signature help (#1230) 2023-06-20 07:31:20 -04:00
Martin Sosic
85cf960121 Reorganized creation of new project a bit. 2023-06-20 11:08:34 +02:00
Martin Sosic
170d63ae63 fix 2023-06-19 23:08:57 +02:00
Martin Sosic
9a079f90d2 Moved command for AI project generation to better place. 2023-06-19 23:06:38 +02:00
Martin Sosic
e54171da01 Moved AI/GenerateNewProject to waspc-lib. 2023-06-19 22:54:26 +02:00
Martin Sosic
5ad6d9a8fe Made GenerateNewProject independent of CLI. 2023-06-19 21:34:14 +02:00
Martin Sosic
6333c6157f Moved CodeAgent and OpenAI modules under Wasp.AI. 2023-06-19 20:44:12 +02:00
Martin Sosic
30ad72df6f A bit of refactoring. 2023-06-19 20:19:58 +02:00
Martin Šošić
1584721299
Updated telemetry docs. (#1237) 2023-06-19 12:29:05 +02:00
Shayne Czyzewski
3e85b0f067
Adds WebSocket support (#1203) 2023-06-19 10:49:57 +02:00
Filip Sodić
fb4001a5a0
Update axios and tanstack-query to latest versions (#1260) 2023-06-16 18:26:45 +02:00
Filip Sodić
90bbff3b64
Ensure Auth entity has a unique username (#1257) 2023-06-16 17:01:55 +02:00
Martin Sosic
b1778cd505 It works! Web app calls wasp-cli and works. 2023-06-16 15:43:16 +02:00
Martin Sosic
f78ddf17d4 Fixes. 2023-06-15 21:13:54 +02:00
Martin Sosic
67a5f37b33 Now new-ai can work for human or for machine. 2023-06-15 20:37:53 +02:00
Martin Sosic
fb33dc9836 Put down basics for Page generation, need to finalize prompt. 2023-06-15 18:11:24 +02:00
Martin Sosic
d925836ac7 All operations are now being generated. 2023-06-15 17:07:39 +02:00
Martin Sosic
9ffc115fcd Actions are now generated. 2023-06-15 15:44:52 +02:00
Mihovil Ilakovac
94d736f485
Auto CRUD: docs update & type bug fix (#1256) 2023-06-15 15:35:23 +02:00
Mihovil Ilakovac
b37cc22fc4
Adds support for a client public folder (#1229) 2023-06-15 15:17:10 +02:00
Martin Sosic
cbb3962508 Plan is now nicely printed. 2023-06-15 10:49:55 +02:00
Martin Sosic
c57ef72117 Planing working relatively ok! 2023-06-14 23:05:18 +02:00
Martin Sosic
dcb633a557 Implemented generation of plan, got it to compile. 2023-06-14 22:48:43 +02:00
Martin Šošić
590a08bb14
Upgrade React to v18 and Vite accordingly (#1248) 2023-06-14 21:56:26 +02:00
Martin Sosic
5900914faf Implemented generation of wasp skeleton, next is planning. 2023-06-14 17:11:28 +02:00
Mihovil Ilakovac
3faee611ac
Automatic CRUD (#1197) 2023-06-14 16:55:07 +02:00
Filip Sodić
89dbb49160
Ensure operation payloads are serializable (#1252) 2023-06-14 15:53:39 +02:00
Filip Sodić
b6cf4ec8ae
Update TypeScript to version 5.1 (#1143) 2023-06-14 15:42:19 +02:00
Martin Sosic
a89f52b026 Command.AI.New is now in order. 2023-06-13 21:57:49 +02:00
Martin Sosic
1a8db2abf8 Wrote basic skeleton of GenerateNewProject.hs 2023-06-13 18:07:02 +02:00
Martin Sosic
4401d4a89f Implemented first version of CodeAgent monad. 2023-06-13 16:09:48 +02:00
Mihovil Ilakovac
e840835d4b
Auth UI component refactor (#1216) 2023-06-13 12:24:13 +02:00
Martin Sosic
65ec766ad6 fix 2023-06-12 22:41:56 +02:00
Martin Sosic
d16b3da33b Created a new skeleton for wasp ai, in Wasp.Cli.Command.AI.GenerateNewProject.hs. 2023-06-12 22:41:27 +02:00
Mihovil Ilakovac
e2ba85153b
Narrows down what can be saved when signing up (#1236) 2023-06-07 14:23:27 +02:00
Craig McIlwrath
ec307d0a3d
move Wasp/Generator/Node/Version -> Wasp/Node/Version (#1226) 2023-06-05 07:52:51 -04:00
Craig McIlwrath
a48ea5311a
fix auth/me route to use correct field of request (#1231) 2023-06-02 21:43:39 +02:00
Craig McIlwrath
00e4966f06
Add test framework for language server autocompletion (#1223) 2023-06-01 11:03:01 -04:00
Craig McIlwrath
ce587a9fad
Improve waspc node version checking and error messages (#1210)
* increase minimum version of process dependency

* improve node version error messages
2023-05-26 08:47:58 -04:00
Shayne Czyzewski
e8e5466971
Prep main for v0.10.6 (#1219) 2023-05-24 11:31:21 -04:00
Shayne Czyzewski
8d5530519b
Adds --org and launch secrets to wasp deploy (#1196) 2023-05-23 10:25:37 -04:00
Shayne Czyzewski
cb26d71947
Handles updated flyctl launch toml file (#1211) 2023-05-19 11:05:45 -04:00
Mihovil Ilakovac
5e86039a29
Adds headless testing (#1186) 2023-05-17 14:54:47 +02:00
Fran Zekan
53ee9297f9
Wrap all react-router routes with Switch (#1188) 2023-05-11 16:09:09 +02:00
Filip Sodić
29889a9c37
Expose Sanitized User on the frontend (#1190) 2023-05-04 11:47:56 +02:00
Richard
3f16e92b58
Fix typo in auth provider error message (#1189) 2023-05-04 11:40:59 +02:00
Shayne Czyzewski
d1614372bf
Propagates error exit code for wasp deploy (#1165) 2023-05-03 10:05:35 -04:00
Mihovil Ilakovac
3f218fbbc5
Improve the scaffolding experience (#1140) 2023-05-03 12:57:17 +02:00
Mihovil Ilakovac
2168282473 Merge branch 'main' into release-with-main-02-05 2023-05-02 10:14:47 +02:00
Mihovil Ilakovac
683c4fd43c
Hotfixes issues with HttpError import (#1178) 2023-04-30 22:28:00 +02:00
Mihovil Ilakovac
2cb0386acf
Cherry pick #1168: fixes circular imports (#1170) 2023-04-27 12:51:45 +02:00
Mihovil Ilakovac
561390dfc4
Updates imports for throwInvalidCredentialsError (#1168) 2023-04-27 12:14:36 +02:00
Martin Sosic
7881b06bfd Wrote initial prompt, works so so. 2023-04-26 23:05:48 +02:00
Shayne Czyzewski
013a13dee2
Adds middleware customization (#1092) 2023-04-24 12:16:54 -04:00
Martin Sosic
6742c5d286 Failed wasp CLI commands now return exit code 1. 2023-04-21 19:38:55 +02:00
Martin Sosic
25b5b62e14 Wrote instructions for myself. 2023-04-20 21:35:33 +02:00
Martin Sosic
33f8257549 Got asking GPT questions working. 2023-04-19 21:26:44 +02:00
Shayne Czyzewski
30078233f3
Adds building of examples/todoApp to CI (#1146) 2023-04-19 10:03:39 -04:00
Mihovil Ilakovac
eb81959d86
Release 0.10.2 from main (#1151) 2023-04-19 01:14:06 +02:00
Mihovil Ilakovac
a87a9ca3ec
Fixes e2e tests after version bump (#1150) 2023-04-19 01:01:12 +02:00
Mihovil Ilakovac
8729c1caf1
Updates version to 0.10.2 (#1149) 2023-04-19 00:40:25 +02:00
Mihovil Ilakovac
6b9adf80b2
Fixes Haskell list to JS array utility (#1147) 2023-04-19 00:34:27 +02:00
Filip Sodić
c9d3eae376 Merge branch 'release' 2023-04-18 19:19:34 +02:00
Filip Sodić
6ed68c60bb
Update changelog for v0.10.1 (#1145) 2023-04-18 18:51:05 +02:00
Filip Sodić
949b462d21
Fix build errors in Wasp 0.10.0 (#1144) 2023-04-18 18:07:09 +02:00
vincanger
3065999359 Merge branch 'release' 2023-04-18 16:38:54 +02:00
Mihovil Ilakovac
e03301930a
Fixes e-mail auth docs (#1142)
Signed-off-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2023-04-17 14:17:12 +02:00
Martin Sosic
b8fb9a71be fixed small coloring mistake in CLI help. 2023-04-12 16:32:21 +02:00
Filip Sodić
7995c90505
Update changelog (#1127) 2023-04-12 15:56:36 +02:00
Filip Sodić
4171f5608b
Fix full-stack type support errors (#1123) 2023-04-12 15:36:52 +02:00
Martin Sosic
89979beaf5 Small dx improvements for db starting. 2023-04-12 14:01:54 +02:00
Mihovil Ilakovac
d580d62c45
Adds input padding for Auth UI (#1122) 2023-04-12 11:16:17 +02:00
Mihovil Ilakovac
ae85d1a285
Registers User entity as dependency of getMe (#1116) 2023-04-11 18:25:30 +02:00
Mihovil Ilakovac
ee5272e6de
Improves error messages in auth (#1120) 2023-04-11 16:49:26 +02:00
Martin Sosic
71acb26bbc fix 2023-04-11 14:24:00 +02:00
Filip Sodić
d8f7a633ed
Fix type errors preventing build (#1118) 2023-04-07 19:20:06 +02:00
Martin Sosic
e960ad3208 Regenerated e2e tests. 2023-04-07 18:26:24 +02:00
shayneczyzewski
5312425f69 update mock user 2023-04-07 18:26:24 +02:00