agentforge-multi 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agentforge +15 -0
- package/package.json +1 -1
package/agentforge
CHANGED
|
@@ -332,6 +332,7 @@ SLASH_COMMANDS = [
|
|
|
332
332
|
("/mode code", "코딩 모드로 전환"),
|
|
333
333
|
("/mode research", "연구 모드로 전환"),
|
|
334
334
|
("/eval-every <N>", "N번마다 Evaluator 실행"),
|
|
335
|
+
("/dir <path>", "작업 디렉토리 변경"),
|
|
335
336
|
("/status", "현재 설정 확인"),
|
|
336
337
|
("/help", "커맨드 목록 표시"),
|
|
337
338
|
]
|
|
@@ -1587,6 +1588,20 @@ def main():
|
|
|
1587
1588
|
except ValueError:
|
|
1588
1589
|
console.print("[red]숫자를 입력하세요. 예: /eval-every 3[/red]")
|
|
1589
1590
|
|
|
1591
|
+
elif cmd_name == 'dir':
|
|
1592
|
+
if not cmd_arg:
|
|
1593
|
+
console.print(f"현재 작업 디렉토리: [cyan]{workdir}[/cyan]")
|
|
1594
|
+
console.print("[dim]변경: /dir <경로> 예) /dir ~/AgentForge[/dim]")
|
|
1595
|
+
else:
|
|
1596
|
+
new_dir = Path(cmd_arg).expanduser().resolve()
|
|
1597
|
+
if not new_dir.exists():
|
|
1598
|
+
console.print(f"[red]존재하지 않는 경로: {new_dir}[/red]")
|
|
1599
|
+
elif not new_dir.is_dir():
|
|
1600
|
+
console.print(f"[red]디렉토리가 아닙니다: {new_dir}[/red]")
|
|
1601
|
+
else:
|
|
1602
|
+
workdir = str(new_dir)
|
|
1603
|
+
console.print(f"[cyan]작업 디렉토리 변경: {workdir}[/cyan]")
|
|
1604
|
+
|
|
1590
1605
|
elif cmd_name == 'status':
|
|
1591
1606
|
console.print(f"모드: [cyan]{current_mode}[/cyan] | eval-every: [cyan]{eval_every}[/cyan] | dir: [cyan]{workdir}[/cyan]")
|
|
1592
1607
|
|