권한 코어를 claude-code 기준으로 재구성하고 slash palette 상태 분리를 시작\n\n- Default/AcceptEdits/Plan/BypassPermissions/DontAsk/Deny 권한 모드를 추가하고 기존 Ask/Auto 호환을 유지\n- deny 우선 패턴 규칙, allow/override, 글로벌 모드 순서의 권한 해석 체계를 정리\n- file_write/file_edit/file_manage와 process/build_run/test_loop/snippet_runner/spawn_agent 계열을 권한 클래스별로 분리\n- AcceptEdits는 파일 편집 도구 자동 허용, process 계열은 계속 확인하도록 조정\n- Plan은 쓰기 도구를 차단하고 읽기 중심 진행이 되도록 보강\n- BypassPermissions와 DontAsk는 권한 확인을 생략하는 경로로 정규화\n- AX Agent 권한 팝업, 상단 배너, slash 명령 결과를 새 권한 체계에 맞게 정리\n- /permissions, /allowed-tools, /sandbox-toggle 사용법과 상태 출력을 갱신\n- ChatWindow의 slash palette 상태를 전용 SlashPaletteState로 분리해 이후 composer 개편 기반을 마련\n- AppState, 설정 모델, 테스트를 새 권한 체계에 맞게 갱신\n- dotnet build 경고 0 / 오류 0, dotnet test 436 통과를 확인
Some checks failed
Release Gate / gate (push) Has been cancelled
Some checks failed
Release Gate / gate (push) Has been cancelled
This commit is contained in:
23
src/AxCopilot/Views/SlashPaletteState.cs
Normal file
23
src/AxCopilot/Views/SlashPaletteState.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
namespace AxCopilot.Views;
|
||||
|
||||
internal sealed class SlashPaletteState
|
||||
{
|
||||
public List<(string Cmd, string Label, bool IsSkill)> Matches { get; set; } = [];
|
||||
|
||||
public int SelectedIndex { get; set; } = -1;
|
||||
|
||||
public string? ActiveCommand { get; set; }
|
||||
|
||||
public void ResetMatches(List<(string Cmd, string Label, bool IsSkill)> matches)
|
||||
{
|
||||
Matches = matches;
|
||||
SelectedIndex = -1;
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
Matches = [];
|
||||
SelectedIndex = -1;
|
||||
ActiveCommand = null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user