Repository navigation
refactor: name the engine's identifiers after the engine instead of Herdr - #2177
Merged
Merged
Conversation
… of Herdr Modules, types, fields, locals and test names that said Herdr for the core's own engine now say engine (agent_sleep_engine, EngineTabView, StartError::Engine, engine_label, ...); the first-run machine list is machine_profiles. Every name written to disk or sent on a wire keeps its spelling through serde rename or the rest section's wire key.
…stead of Herdr The engine status type and its helpers (EngineStatus, engineStateText, engineLine, the store's engineState), the first-run machine list types (MachineProfile*) and the e2e fixtures' engine variables no longer say Herdr. Snapshot keys the core sends (status.herdr, herdr_label, herdr_profiles, kind "herdr") keep their spelling.
…p fixture names neutral
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.
Related: #2167 (앞 단계, 머지됨). 다음 단계는
herdr-corecrate 이름 바꾸기로, 이 PR은 crate 이름과herdr_core::경로를 건드리지 않습니다.Summary
Herdr가 빠진 뒤에도 코드 이름이 엔진, 홀더, 노드를 여전히 "herdr"라고 불러서 읽는 사람을 헷갈리게 했습니다.
이 PR은 그 Rust와 TypeScript 식별자, 모듈, 파일 이름을 하는 일대로 바꿉니다 (
agent_sleep_herdr->agent_sleep_engine,herdr_profiles->machine_profiles,HerdrTabView->EngineTabView등).디스크와 wire에 쓰이는 이름은 한 글자도 바꾸지 않았습니다: 바뀐 Rust 필드는
#[serde(rename = "옛 이름")]으로 고정했고, TypeScript의 wire 키도 그대로입니다.그래서 1.2.1과 1.2.2 사용자는 마이그레이션 없이 업데이트됩니다.
스크린샷 없음: 식별자 이름만 바뀌었고 화면, 문구, wire 키는 그대로입니다.
Review
codex_trust의 Herdr 훅 항목(select_with_herdr,herdr_entry)과herdr_transition/herdr_move는 Herdr 통합과 Herdr 세션 이동을 다루므로 남겼습니다.herdr-core/src/model.rs- snapshot wire: serde 고정 6곳 (herdr,herdr_name,herdr_label, strip kindherdr,herdr_profiles)herdr-core/src/model/rest.rs- snapshot wire: section 매크로가 필드 이름을 키로 쓰므로as "herdr"같은 wire 키 지정을 추가herdr-core/src/persistence.rs,herdr-core/src/agent_hooks/facts.rs,herdr-core/src/node_migration/reown.rs- 디스크 형식:focus_from_herdr,herdr_session,*_owner_herdr_socket고정hide-agent-adapter/src/{web,journey}.rs- 계약 JSON의herdr_kind고정;HerdrIntegration { name, target }은 읽는 곳이 없던target을 빼고engine_kind로 줄임StatusSnapshot.engine->herdr,.machine_profiles->herdr_profilesSidebarAgentSnapshot.given_name->herdr_name,PaneSnapshot.engine_label->herdr_labelStripTabKind::Engine->herdr(id 값herdr:<tab>도 그대로)focus_from_engine->focus_from_herdr, hook factsengine_session->herdr_sessionOwnerChange.{old,new}_owner_engine_socket->{old,new}_owner_herdr_socketengine_kind->herdr_kind; 이벤트herdr_profiles_list,herdr_profile_connect는 문자열 디코드라 그대로herdr_import*, webHerdrImport*,herdr_transition,herdr_move/herdr_look,herdr_save,herdr_running,herdr_held,engine/own/herdr_session.rs,Numbered::Herdr/HERDR_WORKSPACEdevice_herdr,herdr_integration,herdr_hooks, 은퇴 에이전트herdr_code, hide-host kit의 옛 Herdr 사본 정리HERDR_*환경 제거, deskHERDR_CLOSES, core_moveInspection.herdr_socket,HERDR_*환경 변수 이름a_wheel_is_routed_as_herdr_routes_it,what_an_agent_is_taught_names_no_herdr)herdr_label,herdr_name,herdr_profiles,herdr_kind,herdr_socket_path,herdr_bin_path,status.herdr), i18n 키 문자열, e2e 파일agents-follow-herdr.spec.ts,herdr-coexistence.spec.tsherdr_core::경로: 다음 단계Evidence
herdr-core/tests/fixtures/release-1.2.1/): 1.2.1 daemon이 실제로 쓴 hook facts와 UI 저장소, 보낸 snapshot을 읽고 같은 키로 다시 씀. pin 하나(herdr_label)를 빼 보면 해당 테스트가 실패하는 것도 확인hided가/tmp상태 폴더(개인 HOME)에 프로젝트, 이름 붙인 탭 2개, 분할 창, 라벨 붙은 stand-in Claude 에이전트를 만든 뒤, 이 브랜치의hided를 같은 폴더에서 시작herdr,herdr_profiles,herdr_labelx5, strip kindherdrx3)가 1.2.1과 같음. 끝난 뒤 남은 프로세스 0개herdr-core,hided(통합 테스트 포함),hide-agent-adapter,hide-desk,hide-kit,hide-node,hide-node-link,hide-session5777개 중 hide-kit 밖에서 2개 말고 모두 통과; hide-kit은 pane이 넘긴HIDE_*환경을 비우고 195/195 통과 (CI와 같은 조건)web test292 파일 2667개 통과; fmt-check, clippy-D warnings, web lint, web typecheck, desktop typecheck 통과data-herdr-message->data-engine-message는 읽는 곳이 없음)worktree_control의 테스트 2개(a_process_that_has_ended_is_not_waited_for,a_pane_reports_each_running_process_once_and_never_the_systems_pids)가 이 Mac에서 실패: 가짜 pidu32::MAX - 1을 fix: read a process's end by one rule and set no socket option around a macOS connect #2158 이후 macOS가 EINVAL로 돌려줌. base에도 있는 macOS 전용 실패로 이 PR과 무관하고, PR CI에는 macOS 줄이 없음herdr_name은 격리 실행에서 이름 붙인 에이전트를 만들지 않아, 1.2.1 웹 셸이 읽는 키(snapshot.ts)를 기준으로 단위 테스트만 했습니다