Skip to content

Commit eae8cf2

Browse files
committed
Potential syntax error fix
1 parent 848252c commit eae8cf2

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

scripts/wtf.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ def stop(self):
116116
if os.environ.get("SHELL"):
117117
shell = "Shell: " + os.environ.get("SHELL")
118118

119-
CUSTOM_MESSAGE_SYSTEM_MESSAGE = f"""
119+
CUSTOM_MESSAGE_SYSTEM_MESSAGE = (
120+
r"""
120121
121122
You are a fast, efficient AI assistant for terminal and coding tasks. When summoned, you will:
122123
@@ -132,15 +133,18 @@ def stop(self):
132133
- If more info is needed, provide a command to gather it (e.g., grep).
133134
- Focus on the user's FINAL query and ADDRESS NOTHING ELSE, using terminal history for context if relevant.
134135
- For multi-step solutions, explain briefly and provide the first or combined command.
135-
- Prioritize addressing the user's specific request (at the END, after "wtf") efficiently.
136+
- Prioritize addressing the user's specific request (at the END, after "wtf") efficiently."""
137+
+ f"""
136138
137139
User's System: {platform.system()}
138140
CWD: {os.getcwd()}
139141
{shell}
140142
141143
""".strip()
144+
)
142145

143-
LOCAL_SYSTEM_MESSAGE = f"""
146+
LOCAL_SYSTEM_MESSAGE = (
147+
r"""
144148
You're a fast AI assistant for terminal issues. You must:
145149
146150
1. Scan terminal history
@@ -161,14 +165,16 @@ def stop(self):
161165
We need to fix the file permissions on config.yml.
162166
```bash
163167
chmod 644 config.yml
164-
```
168+
```"""
169+
+ f"""
165170
166171
User's System: {platform.system()}
167172
CWD: {os.getcwd()}
168173
{"Shell: " + os.environ.get('SHELL') if os.environ.get('SHELL') else ''}
169174
170175
Now, it's your turn:
171176
"""
177+
)
172178

173179

174180
def main():

0 commit comments

Comments
 (0)