Commit Graph

165 Commits

Author SHA1 Message Date
Filip Sodić
4bff9069a3 Merge branch 'main' into wasp-ai 2023-07-12 17:44:24 +02:00
Filip Sodić
af9d7992b3
Add support for Prisma preview features (#1315) 2023-07-12 17:08:57 +02:00
Martin Sosic
fa6c3867eb Fixed wrong cabal version. 2023-07-11 16:27:00 +02:00
Martin Sosic
7291ca882a Updated version to 0.11.1. 2023-07-11 13:06:49 +02:00
Filip Sodić
0cc65dbd3e
Add import heuristic (#1311) 2023-07-08 01:26:54 +02:00
Craig McIlwrath
2d3f0e116c
[waspls] cleanup extimport code (#1292)
mainly refactoring. also updates CI workflow to run packages/ts-inspect tests.
2023-07-07 08:21:33 -04: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
312441579a Improved code a bit for retrying GPT requests. 2023-07-05 01:00:18 +02:00
Mihovil Ilakovac
3e6e89d4e3 Adds pages fixing. Improve JSON fixing prompt. 2023-06-29 14:36:55 +02:00
Martin Sosic
08c235d12e Added fixing of NodeJS operations files. 2023-06-28 22:04:57 +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 Š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ć
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
Martin Sosic
001068ca1a Merge branch 'main' into wasp-ai 2023-06-23 12:45:59 +02:00
Craig McIlwrath
7c0d13d242
[waspls] diagnostics for external imports and goto definition (#1268) 2023-06-22 15:37:07 -04:00
Martin Sosic
cfa09771e1 Merge branch 'main' into wasp-ai 2023-06-21 11:06:45 +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
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
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
6333c6157f Moved CodeAgent and OpenAI modules under Wasp.AI. 2023-06-19 20:44:12 +02:00
Shayne Czyzewski
3e85b0f067
Adds WebSocket support (#1203) 2023-06-19 10:49:57 +02:00
Martin Sosic
b1778cd505 It works! Web app calls wasp-cli and works. 2023-06-16 15:43:16 +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
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
b37cc22fc4
Adds support for a client public folder (#1229) 2023-06-15 15:17:10 +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
Mihovil Ilakovac
3faee611ac
Automatic CRUD (#1197) 2023-06-14 16:55:07 +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
Mihovil Ilakovac
e840835d4b
Auth UI component refactor (#1216) 2023-06-13 12:24:13 +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
Craig McIlwrath
ec307d0a3d
move Wasp/Generator/Node/Version -> Wasp/Node/Version (#1226) 2023-06-05 07:52:51 -04: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
Fran Zekan
53ee9297f9
Wrap all react-router routes with Switch (#1188) 2023-05-11 16:09:09 +02: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
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
33f8257549 Got asking GPT questions working. 2023-04-19 21:26:44 +02:00
Mihovil Ilakovac
eb81959d86
Release 0.10.2 from main (#1151) 2023-04-19 01:14:06 +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ć
6ed68c60bb
Update changelog for v0.10.1 (#1145) 2023-04-18 18:51:05 +02:00
Filip Sodić
ea714642fe
Update waspc.cabal version to 0.10.0 (#1109) 2023-04-06 21:20:07 +02:00
Mihovil Ilakovac
809eb90386
Adds scaffolding based on giget (#1105) 2023-04-06 16:15:34 +02:00
Mihovil Ilakovac
7f32a4ccb9
Adding e-mail auth (e-mail verfication, password reset) (#1087) 2023-04-05 23:25:03 +02:00
Martin Šošić
0e5aa85014
Implement database seeding via 'wasp db seed' 2023-04-05 11:33:52 +02:00
Shayne Czyzewski
5d2b278e75
Adds vitest for testing client code (#1055) 2023-03-30 12:22:40 -04:00
Mihovil Ilakovac
6dbeedca60
Adds support for e-mail sending (#1050) 2023-03-24 12:42:22 +01:00
Martin Šošić
91a8063081
Implemented wasp start db (managed dev db) (#1044)
Implemented 'wasp start db' + docs + e2e tests + refactoring.
2023-03-21 16:37:20 +01:00
Mihovil Ilakovac
326737759d
Refactor auth to conform to providers interface (#998) 2023-03-16 10:42:57 +01:00
Shayne Czyzewski
9f3f5234ef
Adds api for defining custom HTTP routes (#1043) 2023-03-14 14:04:51 -04:00
Martin Sosic
81f0eeae15 Bumped Wasp version to 0.9.0. 2023-03-08 23:09:29 +01:00
Mihovil Ilakovac
bbaf8bdf3b
Adds new complex e2e test (#1030) 2023-03-02 15:05:24 +01:00
Mihovil Ilakovac
7a0f8b5d58
Replaces Create React App with Vite (#1019) 2023-03-01 17:14:14 +01:00
Mihovil Ilakovac
b5684ce184
Add mjs template files (#1026) 2023-02-23 11:44:25 +01:00
Mihovil Ilakovac
2622f3c4cd
Bumps Wasp to 0.8.2 (#1010) 2023-02-16 10:49:18 +01:00
Mihovil Ilakovac
0a5ae144aa Reverts Wasp version bump to make e2e tests pass 2023-02-15 14:51:51 +01:00
Mihovil Ilakovac
a4b9b802d1 Uses release ci.yaml and bumps Wasp version 2023-02-14 23:08:54 +01:00
Mihovil Ilakovac
07b03fec5d
Generate all JS import statements in Haskell (#956) 2023-02-13 16:57:31 +01:00
Shayne Czyzewski
b14ed945fc
Adds wasp deploy CLI command for Fly.io (#961) 2023-02-07 10:29:25 -05:00
Mihovil Ilakovac
1017e20bf4
Adding uninstall command (#953)
* Adding uninstall command

* Updates docs and changelog related to the uninstall command
2023-02-01 11:18:24 +01:00
Martin Šošić
0002414fa1
Telemetry now recognizes when running on CI. (#963)
* Telemetry now recognizes when running on CI.

* Bumped cabal version from 0.8.0 to 0.8.1 .

* fixed e2e tests.
2023-01-28 14:31:35 +01:00
Filip Sodić
81ffa6c27c
Add manual TypeScript support for Operations (#945)
* Support typing backend queries

* Implement types for actions and extract entities

* Add CR fixes

* Add type to imports and exports for entities

* Change query extensions back to .js

* Tidy up default arguments for operation types

* Don't throw syntax error when there are no entities

* Update e2e tests

* Fix formatting

* Fix typo in comment

* Update changelog and bump project version
2023-01-24 14:45:35 +01:00
Shayne Czyzewski
e8a142f155
Bump version for 0.8.0 release (#917) 2023-01-02 10:44:24 -05:00
Shayne Czyzewski
2182b9088d
Adds GitHub login and refactors Passport.js (#872) 2022-12-20 09:12:08 -05:00
Martin Sosic
7ac6205b04 Updated Wasp version to 0.7.3. 2022-12-14 23:53:52 +01:00
Shayne Czyzewski
a16aa73753
Add support for --create-only migrations (#862) 2022-12-13 13:55:01 -05:00
Martin Sosic
6b41761b73 Bumped version to 0.7.2 + updated changelog. 2022-12-13 14:44:52 +01:00
Filip Sodić
5efa40f871 Update version to 0.7.1 and edit changelog 2022-12-01 01:24:23 +01:00
Filip Sodić
5da642e8eb
TypeScript fixes before Beta (#831)
* Change typescript modules to esnext

* Fix tsconfigs and use recommended settings

* Fix server not loading env variables

* Fix TS output overwriting error

* Fix wrong types

* Change MainPage.tsx to MainPage.jsx

* Remove duplication for Node tsconfig

* Update e2e tests for TS fixes

* Fix formatting
2022-11-25 20:10:10 +01:00
Filip Sodić
31df276a25
Client-side TypeScript support (#824)
* Add typescript support to generator

* Change jsconfig to tsconfig for client

* Change Main.js to Main.tsx

* Implement TypeScript support on client

* Fix formatting

* Fixes in actions/index.ts

* Remove extra types from comments

* Update waspc/src/Wasp/Generator/ServerGenerator.hs

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Remove server-specific typescript stuff

* Fix useQuery type

* Add typeroots to client tsconfig

* Improve TypeScript support on client

* Remove tsx extension from template wasp file

* Format code

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-24 14:28:37 +01:00
Martin Sosic
7243b3ad70 Bumped Wasp version to 0.7.0 2022-11-22 19:12:19 +01:00
Filip Sodić
67eca7ecf6
Add peek and go to definition for JS files (#795)
* Separate ext code to client and server

* Use skeleton in createNewProject and refactor

* Refactor Lib.hs to use ExceptT

* Fix formatting

* Pop up returns

* Extract liftIO and add a do block

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address some review comments

* Add skeleton comment

* Extract common CommandError message

* Separate skeleton comment into two rows

* Move server and client dirs into src

* Simplify maybeToEither

* Further refactor Lib.hs

* Further simplify skeleton comment

* Add shared code directory to project structure

* Update e2e test inputs

* Update e2e test outputs

* Fix formatting

* Fix bug in compile function

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Change map to fmap in compile function

* Fix formatting

* Force git to include empty directories

* Remove extra empty line from .gitkeep files

* Add .jsconfig to enable go-to-definition

* Watch shared directory for changes

* Add final newline to jsconfigs

* Fix regular and e2e tests

* Update e2e tests

* Fix cli template packaging and update todoApp

* Add a shared function demo to todoApp

* Update waspc and e2e tests

* Fix compiler warnings and rename function

* Rename mkError to mkParserError

* Remove redundant empty line

* Fix test warnings

* Fix formatting

* Update waspc.cabal with jsconfigs

* Minimize jsconfig.json files

* Add jsconfigs to waspc todoApp

* Update e2e tests

* Update e2e tests

* Fix directory tree watching on wasp start

* Implement review feedback

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-11 17:38:38 +01:00
Filip Sodić
86e0893d6f
Separate user code into client, server, shared (#753)
* Separate ext code to client and server

* Use skeleton in createNewProject and refactor

* Refactor Lib.hs to use ExceptT

* Fix formatting

* Pop up returns

* Extract liftIO and add a do block

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>

* Address some review comments

* Add skeleton comment

* Extract common CommandError message

* Separate skeleton comment into two rows

* Move server and client dirs into src

* Simplify maybeToEither

* Further refactor Lib.hs

* Further simplify skeleton comment

* Add shared code directory to project structure

* Update e2e test inputs

* Update e2e test outputs

* Fix formatting

* Fix bug in compile function

Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>

* Change map to fmap in compile function

* Fix formatting

* Force git to include empty directories

* Remove extra empty line from .gitkeep files

* Watch shared directory for changes

* Fix regular and e2e tests

* Fix cli template packaging and update todoApp

* Add a shared function demo to todoApp

* Update waspc and e2e tests

* Fix compiler warnings and rename function

* Rename mkError to mkParserError

* Remove redundant empty line

* Fix test warnings

* Fix formatting

* Fix directory tree watching on wasp start

* Implement review feedback

Co-authored-by: Shayne Czyzewski <523636+shayneczyzewski@users.noreply.github.com>
Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
2022-11-11 17:20:49 +01:00
Martin Šošić
d9fc27bcde
Improved how Wasp prints output of underlying processes. (#794) 2022-11-04 19:57:34 +01:00
Shayne Czyzewski
fa9f487e2a
Adds opt-in support for Tailwind (#777) 2022-11-04 09:39:13 -04:00
Anthony Suárez
0cde880f24
Feat: Validate wasp version from spec (#786)
* Add wasp field to AppSpec.App

* Validate app.wasp.version in AppSpec.Valid

* Add app.wasp.version field on .wasp file generated by CreateNewProject

* Add app.wasp.version to .wasp files of e2e tests

* Add app.wasp.version to examples' .wasp files

* Add app.wasp.version to docs

* Change waspc version from 0.6.0.0 to 0.6.0

* Change app.wasp.version validation to use regular semver

* Format code

* Refactor app.wasp.version validation

* Refactor app.wasp.version validation

* Update supported app.wasp.version format in docs

* Add TODO to validateWaspVersion

* Refactor app.wasp.version using toEnum

* Create Wasp.Version module with waspVersion constant

* Fix parseWaspVersionRange regex

Fixed:
  - The regex wasn't checking the string *starts* with ^.
  - The . symbols were not escaped.
  - The $ token is not specified as supported in the regex-tdfa docs.
    \' is used instead.

* Add comment explaining wasp version validation restrictions

* Use Wasp.Version.waspVersion instead of Paths_wasp.version
2022-10-31 23:00:03 +01:00
Shayne Czyzewski
8fc6fd1836
Adds support for Dockerfile customization (#732) 2022-10-13 12:46:07 -04:00
Martin Sosic
1b65f042b0 Updated wasp version to 0.6.0.0. 2022-09-29 12:06:32 +02:00
Martin Šošić
99487ff2f7
waspls is now part of waspc (#716) 2022-09-08 13:56:37 +02:00
Shayne Czyzewski
6cd38b0f94
Adds Google as an authentication method (#669) 2022-09-06 14:35:59 -04:00
Martin Šošić
eb69deb348
Removed duplication between waspls and waspc, made them two packages in the same cabal project (#712) 2022-09-06 14:10:42 +02:00
Martin Šošić
75ce7db663
Fix incorrect parsing of escaped strings in Wasp (#699)
* Fixed incorrect handling of escaped strings in parser.

* Refactored Parser golden tests a bit.

* Moved PrettyPrinter for Parser AST to Parser.

* fix
2022-08-23 14:01:00 +02:00
Craig McIlwrath
0de0855787
Integrate new error resilient parser into waspc (#684)
* Add CST parsing code into waspc

* Implement CST -> AST conversion

* Implement parseExpression & isValidWaspIdentifier

* Implement golden tests for Parser

* Configure CI git checkout to always use LF line endings
2022-08-11 12:26:12 -04:00
Martin Sosic
a0299febbc Updated wasp version to 0.5.2.1. 2022-07-14 22:58:33 +02:00
Martin Šošić
25a1b991ef
Now waspc assumes all files to be UTF8 regardless of OS'es default locale. (#653) 2022-06-28 19:48:02 +02:00
Martin Sosic
90571c0298 Updated wasp version to 0.5.2.0. 2022-06-23 14:19:43 +02:00
Martin Sosic
a3acc62f74 Updated wasp version to 0.5.1.0. 2022-06-17 17:08:29 +02:00