You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .roo/rules/rules.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ It has a TypeScript/React frontend and a Go backend. They talk together over `ws
35
35
- Import the "cn" function from "@/util/util" to do classname / clsx class merge (it uses twMerge underneath)
36
36
- For element variants use class-variance-authority
37
37
- Do NOT create private fields in classes (they are impossible to inspect)
38
+
- Use PascalCase for global consts at the top of files
38
39
-**Component Practices**:
39
40
- Make sure to add cursor-pointer to buttons/links and clickable items
40
41
- NEVER use cursor-help (it looks terrible)
@@ -48,6 +49,12 @@ It has a TypeScript/React frontend and a Go backend. They talk together over `ws
48
49
-_never_ use cursor-help, or cursor-not-allowed (it looks terrible)
49
50
- We have custom CSS setup as well, so it is a hybrid system. For new code we prefer tailwind, and are working to migrate code to all use tailwind.
50
51
52
+
### RPC System
53
+
54
+
To define a new RPC call, add the new definition to `pkg/wshrpc/wshrpctypes.go` including any input/output data that is required. After modifying wshrpctypes.go run `task generate` to generate the client APIs.
55
+
56
+
For normal "server" RPCs (where a frontend client is calling the main server) you should implement the RPC call in `pkg/wshrpc/wshserver.go`.
57
+
51
58
### Code Generation
52
59
53
60
-**TypeScript Types**: TypeScript types are automatically generated from Go types. After modifying Go types in `pkg/wshrpc/wshrpctypes.go`, run `task generate` to update the TypeScript type definitions in `frontend/types/gotypes.d.ts`.
Copy file name to clipboardExpand all lines: pkg/aiusechat/usechat.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -92,9 +92,9 @@ var SystemPromptText_OpenAI = strings.Join([]string{
92
92
`If a request would execute dangerous or destructive actions, warn briefly and provide a safer alternative.`,
93
93
`If output is very long, prefer a brief summary plus a copy-ready fenced block or offer a follow-up chunking strategy.`,
94
94
95
-
`You cannot yet execute shell commands, run code in the terminal, or directly edit files on disk. You also cannot read remote files.`,
96
-
`If the user asks you to do one of those things, say that these features aren’t available yet AND make sure to say that they are coming soon (stay tuned for updates).`,
97
-
`Instead, show them exactly what command or code they could copy-paste to perform it manually.`,
95
+
`You can write and edit local files on disk using available tools, but you cannot execute shell commands, run code in the terminal, or read/write remote files.`,
96
+
`If the user asks you to execute commands or run code, or deal with remote files say that these features aren't available yet AND make sure to say that they are coming soon (stay tuned for updates).`,
97
+
`Instead, show them exactly what command or code they could copy-paste to run manually.`,
98
98
99
99
// Final reminder
100
100
`You have NO API access to widgets or Wave unless provided via an explicit tool.`,
0 commit comments