@saltcorn/copilot 0.8.0 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,25 +0,0 @@
1
- const user_registration_hints = `User registration notes:
2
- * The "users" table is built-in. Passwords are platform-managed — never add a password field to a view.
3
- * Signup uses a built-in form, not an Edit view.
4
- * For verification/confirmation emails after registration, create a Trigger with event "Insert" on "users".
5
- The trigger must use a Workflow action with a single step of type "run_js_code". Do NOT use the send_email action — it will not work for verification. The run_js_code step must contain exactly:
6
- const { send_verification_email } = require("@saltcorn/data/models/email");
7
- await send_verification_email(row, req);`;
8
-
9
- class AppConstructorContextSkill {
10
- static skill_name = "AppConstructor Context";
11
-
12
- get skill_label() {
13
- return "AppConstructor Context";
14
- }
15
-
16
- constructor(cfg) {
17
- Object.assign(this, cfg);
18
- }
19
-
20
- async systemPrompt() {
21
- return user_registration_hints;
22
- }
23
- }
24
-
25
- module.exports = AppConstructorContextSkill;