Skip to content

Commit cd53a3f

Browse files
committed
fix
1 parent afcd362 commit cd53a3f

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

agentpress/cli.py

+1-16
Original file line numberDiff line numberDiff line change
@@ -222,20 +222,7 @@ def init():
222222
components_dir_path = os.path.abspath(components_dir)
223223
copy_module_files(package_dir, components_dir_path, all_files)
224224

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")
229225

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-
})
239226

240227
# Copy example only if a valid example (not None) was selected
241228
if selected_example and selected_example in STARTER_EXAMPLES:
@@ -245,9 +232,7 @@ def init():
245232
os.getcwd(), # Use current working directory
246233
STARTER_EXAMPLES[selected_example]["files"]
247234
)
248-
# Create threads directory
249-
os.makedirs(os.path.join(project_dir, "threads"), exist_ok=True)
250-
235+
251236
click.echo("\n✨ Success! Your AgentPress is ready.")
252237
click.echo(f"\n📁 Components created in: {click.style(components_dir_path, fg='green')}")
253238
if selected_example and selected_example in STARTER_EXAMPLES:

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "agentpress"
3-
version = "0.1.10"
3+
version = "0.1.11"
44
description = "Building blocks for AI Agents"
55
authors = ["marko-kraemer <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)