Commit Graph

26 Commits

Author SHA1 Message Date
Kyle Corbitt
1dcdba04a6 User accounts
Allows for the creation of user accounts. A few notes on the specifics:

 - Experiments are the main access control objects. If you can view an experiment, you can view all its prompts/scenarios/evals. If you can edit it, you can edit or delete all of those as well.
 - Experiments are owned by Organizations in the database. Organizations can have multiple members and members can have roles of ADMIN, MEMBER or VIEWER.
 - Organizations can either be "personal" or general. Each user has a "personal" organization created as soon as they try to create an experiment. There's currently no UI support for creating general orgs or adding users to them; they're just in the database to future-proof all the ACL logic.
 - You can require that a user is signed-in to see a route using the `protectedProcedure` helper. When you use `protectedProcedure`, you also have to call `ctx.markAccessControlRun()` (or delegate to a function that does it for you; see accessControl.ts). This is to remind us to actually check for access control when we define a new endpoint.
2023-07-18 21:19:03 -07:00
arcticfly
1776da937a Update README.md 2023-07-12 01:10:03 -06:00
arcticfly
163f6ab23f Update README.md 2023-07-11 12:38:08 -06:00
arcticfly
337469a3f7 Update README.md 2023-07-10 01:33:07 -06:00
arcticfly
dc068b04cf Update README.md 2023-07-10 00:17:22 -06:00
arcticfly
200ebf4610 Update README.md with link to demo 2023-07-08 23:35:00 -07:00
Kyle Corbitt
a8db6cadfd format with prettier 3 2023-07-08 22:12:47 -07:00
arcticfly
f61ebe6e78 Update repo name in README.md 2023-07-08 20:58:59 -07:00
arcticfly
087edf867e Update logo in README.md 2023-07-08 16:44:51 -07:00
arcticfly
48c3b7dcab Update README.md 2023-07-07 18:37:15 -07:00
arcticfly
8fe73c3a5a Update README.md with logo 2023-07-07 18:10:10 -07:00
Kyle Corbitt
b2dc1ff58b repo move 2023-07-07 17:48:34 -07:00
Kyle Corbitt
918f209227 rename querykey -> openpipe 2023-07-07 12:27:21 -07:00
Kyle Corbitt
552199da4a rename prompt-lab to querykey 2023-07-05 10:43:28 -07:00
Kyle Corbitt
dc8440c44b README changes 2023-06-28 15:12:22 -07:00
David Corbitt
92b6ada0b5 Add database instructions 2023-06-28 14:43:30 -07:00
Kyle Corbitt
00f74e6951 Update README.md 2023-06-28 23:29:09 +02:00
David Corbitt
cbcecf654e Bullet High-Level Features 2023-06-28 14:25:08 -07:00
David Corbitt
11fe4c4930 Consolidate high-level features 2023-06-28 14:22:53 -07:00
David Corbitt
380429c745 Remove repeated text, add newlines 2023-06-28 14:16:12 -07:00
David Corbitt
c7b6a60c01 Correct Running Locally section 2023-06-28 14:08:30 -07:00
Kyle Corbitt
74d2493a1b README updates and minor tweaks 2023-06-28 11:55:25 -07:00
Kyle Corbitt
12af15ae32 cleanup 2023-06-26 14:57:53 -07:00
Kyle Corbitt
3d85984f98 more schema work 2023-06-21 13:26:51 -07:00
Kyle Corbitt
6dd5fffe48 aspirational README 2023-06-19 17:54:33 -07:00
Kyle Corbitt
451e7b1d90 initial commit 2023-06-19 16:15:35 -07:00