Repository navigation
Feat: 해제·삭제 — 에이전트·조직 멤버·레포·초대, 시작 뒤 멤버 교체, GitHub 접근 회수, 프로젝트 중단 (021, CLI 0.1.10) - #45
Merged
Merged
Conversation
…(021) - DELETE /agents/:agentId(주인·대표): disconnected_at + refresh token 폐기 + 진행 중 프로젝트에서 빠짐. 남은 access token은 401 AGENT_DISCONNECTED, 태스크 스트림은 바로 끊는다. 같은 이름으로 다시 connect하면 되살아난다. - DELETE /orgs/:orgId/members/:userId(대표가 남을, 멤버가 자기를): 계정은 남고 조직만 비운다(다른 조직 가입 가능). 에이전트도 해제. 대표는 못 나간다. - 시작(G1) 뒤에도 멤버 해제·배정 가능 — 진행 중 태스크(CLAIMED·IN_PROGRESS·VERIFYING)를 붙잡고 있으면 409 ACTIVE_TASKS_HELD. 빼는 경로는 removeMemberInTx 한 벌. - DELETE /repos/:repoId(대표): 진행 중 프로젝트가 쓰면 409. disconnected_at, 다시 연결하면 경로 규칙·소유권과 함께 되살아난다. - GET·DELETE /orgs/:orgId/invites(대표): 대기 중 초대 목록·취소(revoked_at). 초대 생성 응답에 inviteId. - 행은 지우지 않는다(기록이 가리킨다). Executor는 AGENT_DISCONNECTED면 이유를 알리고 멈춘다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- revokeGithubAccess: 직접 해제·에이전트 연결 해제(그 프로젝트 레포), 조직 탈퇴(조직 GitHub 레포 전부)에서 대표 토큰으로 회수 — 수락 안 한 초대는 취소, 아니면 협업자에서 뺀다. 해제를 먼저 커밋하고 회수 실패는 결과로만(githubRevocations, GITHUB_COLLABORATORS_REMOVED). 대표 본인·같은 사람의 다른 에이전트가 남은 프로젝트는 건너뛴다. - POST /projects/:id/abort(대표): aborted로 닫는다(지우지 않음). 에이전트·레포가 풀리고, 대기 질문은 만료, 대기 승인 카드는 대기열에서 빠지고 결정 409. 룸에 '프로젝트가 중단되었습니다'. Executor는 배정이 풀리면 창을 닫지 않고 다시 배정을 기다린다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
마이그레이션 021:
agents.disconnected_at,repos.disconnected_at,invites.revoked_at. 행은 지우지 않는다(기록이 가리킨다).DELETE /agents/:agentId(주인·대표): 연결 해제 — refresh token 폐기, 남은 access token 401AGENT_DISCONNECTED, 태스크 스트림 즉시 종료. 같은 이름으로 다시 connect하면 되살아남.DELETE /orgs/:orgId/members/:userId(대표가 남을, 멤버가 자기를): 계정은 남고 조직만 비움. 에이전트도 해제. 대표는 못 나감.ACTIVE_TASKS_HELD.DELETE /repos/:repoId(대표): 진행 중 프로젝트가 쓰면 409. 다시 연결하면 경로 규칙·소유권과 함께 되살아남.GET·DELETE /orgs/:orgId/invites(대표): 대기 중 초대 목록·취소. 초대 생성 응답에inviteId.githubRevocations).POST /projects/:id/abort(대표): aborted로 닫음 — 에이전트·레포가 풀리고 대기 질문 만료, 대기 승인 카드 제외.테스트
tests/removals.test.ts, GitHub 회수 테스트 추가.🤖 Generated with Claude Code