1.0.0 ko public

스펙

RAWP-DPS

Data processing specification for RAWP integrations.

부록 A. Claude Code 출력 유형 전수 조사 및 매핑

본 규격 설계의 근거가 된 Claude Code의 전체 출력 유형과 RAWP-DPS 1.0 이벤트 매핑 표:

A.1. 핵심 도구 출력

Claude Code 도구 입력 요약 출력 형태 RAWP-DPS 매핑 output_type
Bash command, description stdout/stderr 텍스트 tool.invoke.requesttool.invoke.streamtool.invoke.result text
Read file_path, offset, limit 파일 내용 (라인 번호 포함) tool.invoke.result file_content
Write file_path, content 성공/실패 tool.invoke.result empty
Edit file_path, old_string, new_string 변경된 코드 + 컨텍스트 tool.invoke.result diff
MultiEdit file_path, edits[] 복수 변경사항 tool.invoke.result diff
Glob pattern, path 매칭 파일 경로 목록 tool.invoke.result file_list
Grep pattern, path, include 매칭 라인/파일 목록 tool.invoke.result text 또는 file_list
LS path 디렉토리 내용 tool.invoke.result file_list

A.2. 확장 도구 출력

Claude Code 도구 RAWP-DPS 매핑 output_type
WebFetch tool.invoke.result web_content
WebSearch tool.invoke.result web_content
NotebookRead tool.invoke.result file_content
NotebookEdit tool.invoke.result empty 또는 diff
TodoRead tool.invoke.result structured (§8.2)
TodoWrite tool.invoke.result structured (§8.2)
Task (Subagent) tool.invoke.requesttool.invoke.streamtool.invoke.result agent_result (§10)

A.3. 비도구 출력

Claude Code 출력 RAWP-DPS 매핑
텍스트 응답 스트리밍 agent.text.deltaagent.text.done
Extended Thinking agent.thinking.deltaagent.thinking.done
도구 실행 권한 요청 agent.interaction.request (type: PERMISSION)
컨텍스트 자동 압축 session.compacted (trigger: auto)
/compact 수동 압축 control.session.compactsession.compacted
토큰/비용 보고 session.usage
Plan 모드 진입/이탈 control.mode.switch (mode: plan / default)
계획 문서 출력 agent.text.delta (metadata.content_role: plan)
슬래시 명령 입력 control.prompt.request (input_type: slash_command)
에러 보고 agent.error
세션 종료 session.turn.end + RAWP 1.0 §5.2

A.4. RAWP-1.0-Legacy 미지원 항목

기존 RAWP-1.0-Legacy에서 지원하지 못했으나 본 규격에서 해결된 항목:

항목 RAWP-1.0-Legacy RAWP-DPS 1.0
도구 호출/결과 프레이밍 ❌ 미지원 tool.invoke.*
계획 문서 전달 ❌ 미지원 metadata.content_role: plan
TODO/태스크 관리 ❌ 미지원 ✅ §8 + tool.invoke.result
컨텍스트 압축 보고 ❌ 미지원 session.compacted
명령어 목록 조회 ❌ 미지원 agent.commands.publish
사고 스트리밍 ❌ 미지원 agent.thinking.*
서브에이전트 위임 ❌ 미지원 ✅ §10
구조화 출력 ❌ 미지원 ✅ §11
도구 출력 실시간 스트리밍 ❌ 미지원 tool.invoke.stream
능력 협상 ❌ 미지원 session.capabilities
병렬 도구 호출 그룹화 ❌ 미지원 parallel_group_id
Turn 라이프사이클 ❌ 미지원 session.turn.*
프롬프트 취소 ❌ 미지원 control.prompt.cancel
동작 모드 전환 ❌ 미지원 control.mode.switch
파일 참조 검색 ❌ 미지원 ✅ §16 control.file.search / session.file.candidates

참조