Commit Graph

138 Commits

Author SHA1 Message Date
Filip Sodić
6f0714ad23
Create restructuring prototype (#1584) 2024-01-29 14:00:20 +01:00
Martin Šošić
6771dacb0e
Added open-saas starter template to CLI & fixed all starter templates (instructions, versioning) (#1619)
* Added open saas to starter templates and refactored template picking a bit.

* All now use new mechanism.

* Removed notion of GhStartersRepoTemplate.

* Templates are now versioned.

* Starting instructions are not adjustable per template.

* Instructions are now correct for each template.

* fix

* fix

* fix

* fix

* fix

* fix

* fix
2024-01-11 16:25:35 +01:00
Martin Šošić
758110e686
Relax node version (#1533)
* Relaxed Wasp's node version requirements.

* Updated e2e tests.

* fix

* fix

* Fixed version of wasp app in headless tests.

* Update web/docs/introduction/getting-started.md

Co-authored-by: Mihovil Ilakovac <mihovil@ilakovac.com>

* fix

* fix

* Small grammar fixes.

* fixes

* Updated e2e tests.

* fix

* fix

---------

Co-authored-by: Mihovil Ilakovac <mihovil@ilakovac.com>
2024-01-04 11:30:42 +01:00
Mihovil Ilakovac
633e25c125
Injected auth models (#1583) 2024-01-03 14:40:08 +01:00
Martin Šošić
994a58f0dc
Wasp ai cli mage (#1601)
* Improved Wasp AI CLI experience.

* fix

* Added CLI Usage, polished CLI commands.

* Added choice of temperature.

* Added styling.

* Added more sophisticated, terminal-only styling.

* fix

* Updated Mage to use new Wasp CLI + added some messaging to CLI.

* fix

* Created wasp-ai/README, updated waspc/README.

* Moved wasp-ai/ to mage/.

* Final polishing (docs, readmes, messaging).

* fix

* Added tests for LogMsg.

* Updated versions of test apps to 0.12.

* fix

* fix

* Update mage/README.md

* fix

* fix
2023-12-22 15:14:38 +01:00
Martin Sosic
47c4b8cb16 Merge branch 'main' into wasp-ai 2023-12-11 20:19:46 +01:00
Mihovil Ilakovac
3a5bba9b39
Bumps version (#1573) 2023-11-14 14:21:20 +01:00
Mihovil Ilakovac
2752f889c8
Sets the minimum number of Fly machines to 1 (#1535) 2023-11-06 15:47:45 +01:00
Mihovil Ilakovac
9f31b3229e
Bumps version to 0.11.7 (#1545) 2023-10-27 14:19:53 +02:00
Filip Sodić
7df1b10ffd
Bump Wasp version to 0.11.6 and update e2e tests (#1493) 2023-10-10 15:02:31 +02:00
Mihovil Ilakovac
03cfcdfaaf
Wasp Studio [experimental] (#1483) 2023-10-10 12:17:05 +02:00
Mihovil Ilakovac
88d9534fd3
Allow customising the Vite config (#1465) 2023-10-09 15:40:33 +02:00
Mihovil Ilakovac
20eb9e007a
Bumps Wasp version (#1448) 2023-09-16 00:43:46 +02:00
Mihovil Ilakovac
16fa3bd487 Merge branch 'main' into wasp-ai 2023-09-14 12:23:29 +02:00
Mihovil Ilakovac
99c9021f82
Signup Customisation [RFC] (#1395) 2023-09-12 13:19:47 +02:00
Mihovil Ilakovac
cb88dfc618
Adding support for Postgres Extensions (#1443) 2023-09-12 13:03:57 +02:00
Martin Šošić
179ec45aa9
Updated default .gitignore for new Wasp project to be more robust regarding .env files (#1425) 2023-08-31 15:50:17 +02:00
Mihovil Ilakovac
792c014551
Implement type safe links (#1235) 2023-08-30 14:40:17 +02:00
Craig McIlwrath
0f9726b7a1
[waspls] use the wasp project root instead of the workspace root (#1393)
* calculate project root via location of .wasp file

previously, waspls used workspace root, which was incorrect if you opened a
workspace larger than the wasp project.

this does not add support for multi-project workspaces.

* update changelog with waspls scaffolding info
2023-08-11 08:18:37 -04:00
Craig McIlwrath
d12b403e7d
[waspls] improves LSP scaffolding (#1381)
* create directories when scaffolding, if needed

* refresh export cache after scaffolding

* better process for ensuring a blank line between old code and new scaffolded code
2023-08-10 10:01:20 -04:00
Mihovil Ilakovac
b34ab5dc8b
Fixes .env.client copying (#1391) 2023-08-10 11:20:33 +02:00
Mihovil Ilakovac
7c09e3964b
Updates LSP templates (#1375) 2023-07-28 10:33:04 +02:00
Craig McIlwrath
76d9fc4213
[waspls] Add code actions for scaffolding external code (#1316)
When an external import tries to import a symbol from a TypeScript/JavaScript file, waspls now offers quickfix code actions to scaffold a function in that file.

It uses the surrounding context of the external import to determine what code to write for the code action. See [`ScaffoldTsSymbol.hs`](457911d5e9/waspc/waspls/src/Wasp/LSP/Commands/ScaffoldTsSymbol.hs) for a detailed description of how it works. At a high level, there is a `templateForFile` function in `Wasp.LSP.Commands.ScaffoldTsSymbol` that selects the correct template from `data/lsp/templates/ts`. For example, `action.fn.ts` contains a template for scaffolding an `action` function in a TypeScript file and would be used when a code action is requested with the cursor at the location marked by `|`:

```wasp
action createTask {
  fn: import { createTask } from "@server/actions.js"|
}
```

The scaffold action runs as a [LSP command](https://microsoft.github.io/language-server-protocol/specifications/specification-3-16/#workspace_executeCommand). To prepare for wanting to define more commands in waspls in the future, this PR also introduces the concept of `Commands` (`Wasp.LSP.Commands.Command`) that define some properties about each command waspls wants to handle.
2023-07-26 08:00:16 -04:00
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