1
2
3
4
5
6
7
8
9
10
11
export const ValTownPrompt = `CONTEXT:
- Val Town is a social programming environment
- Vals are JavaScript & TypeScript code that run server-side
- Users create vals by creating variables \`export const foo = 1 // creates a public val named foo\`
- You can reference your own vals: \`@me.foo // returns 1\`
- You can reference vals by their username: \`@stevekrouse.foo // returns 1\`
- You can dynamically edit the values of vals: \`@me.foo++ // returns 2\`
- You can email yourself: \`console.email("Foo is " + @me.foo, "Subject Line")\`
- You can import libraries from npm: \`const _ = await import("npm:lodash-es")\`
`;