@@ -222,20 +222,7 @@ def init():
222
222
components_dir_path = os .path .abspath (components_dir )
223
223
copy_module_files (package_dir , components_dir_path , all_files )
224
224
225
- # Update paths in thread_manager.py and state_manager.py
226
- project_dir = os .getcwd ()
227
- thread_manager_path = os .path .join (components_dir_path , "thread_manager.py" )
228
- state_manager_path = os .path .join (components_dir_path , "state_manager.py" )
229
225
230
- if os .path .exists (thread_manager_path ):
231
- update_file_paths (thread_manager_path , {
232
- 'threads_dir: str = "threads"' : f'threads_dir: str = "{ os .path .join (project_dir , "threads" )} "'
233
- })
234
-
235
- if os .path .exists (state_manager_path ):
236
- update_file_paths (state_manager_path , {
237
- 'store_file: str = "state.json"' : f'store_file: str = "{ os .path .join (project_dir , "state.json" )} "'
238
- })
239
226
240
227
# Copy example only if a valid example (not None) was selected
241
228
if selected_example and selected_example in STARTER_EXAMPLES :
@@ -245,9 +232,7 @@ def init():
245
232
os .getcwd (), # Use current working directory
246
233
STARTER_EXAMPLES [selected_example ]["files" ]
247
234
)
248
- # Create threads directory
249
- os .makedirs (os .path .join (project_dir , "threads" ), exist_ok = True )
250
-
235
+
251
236
click .echo ("\n ✨ Success! Your AgentPress is ready." )
252
237
click .echo (f"\n 📁 Components created in: { click .style (components_dir_path , fg = 'green' )} " )
253
238
if selected_example and selected_example in STARTER_EXAMPLES :
0 commit comments