diff --git a/.claude/settings.local.json b/.claude/settings.local.json deleted file mode 100644 index d262f0000c..0000000000 --- a/.claude/settings.local.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "permissions": { - "allow": [ - "Bash(set -e)", - "Bash(pen interactive *)", - "Bash(python3 -)", - "Bash(node --test scripts/tests/design-controls.test.mjs)", - "Bash(node scripts/check-design-contract.mjs)", - "Bash(git branch *)" - ] - } -} diff --git a/.gitignore b/.gitignore index 612f974064..8e84ede012 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,6 @@ macos/build/ *.swiftsourceinfo *.swiftdoc *.dia + +# A per-user agent permission file, not a project input. +.claude/settings.local.json diff --git a/Cargo.lock b/Cargo.lock index 3d5e646095..baa69e6ca4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,6 +85,12 @@ version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" +[[package]] +name = "ambient-authority" +version = "0.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9d4ee0d472d1cd2e28c97dfa124b3d8d992e10eb0a035f33f5d12e3a177ba3b" + [[package]] name = "android_system_properties" version = "0.1.6" @@ -375,6 +381,36 @@ version = "1.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" +[[package]] +name = "cap-primitives" +version = "4.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b5f74729fd2f44701d1a8eb47e906cdb3ccd9ec0f02baad85a744b791940b18" +dependencies = [ + "ambient-authority", + "fs-set-times", + "io-extras", + "io-lifetimes 3.0.1", + "ipnet", + "maybe-owned", + "rustix", + "rustix-linux-procfs", + "windows-sys 0.61.2", + "winx", +] + +[[package]] +name = "cap-std" +version = "4.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1ec78e242cfa2cfe276807ac2ecc00315a6c97786977414bcd1c3963b6c91b8" +dependencies = [ + "cap-primitives", + "io-extras", + "io-lifetimes 3.0.1", + "rustix", +] + [[package]] name = "cbc" version = "0.2.1" @@ -919,22 +955,24 @@ dependencies = [ ] [[package]] -name = "fs2" -version = "0.4.3" +name = "fs-set-times" +version = "0.20.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" +checksum = "94e7099f6313ecacbe1256e8ff9d617b75d1bcb16a6fddef94866d225a01a14a" dependencies = [ - "libc", - "winapi", + "io-lifetimes 2.0.4", + "rustix", + "windows-sys 0.52.0", ] [[package]] -name = "fsevent-sys" -version = "4.1.0" +name = "fs2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" +checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213" dependencies = [ "libc", + "winapi", ] [[package]] @@ -1190,6 +1228,7 @@ version = "0.1.0" dependencies = [ "anyhow", "base64 0.23.1", + "cap-std", "hide-agent-hooks", "hide-ai", "hide-herdr-client", @@ -1301,6 +1340,7 @@ version = "0.1.0" dependencies = [ "axum", "base64 0.23.1", + "cap-std", "futures-util", "getrandom 0.2.16", "herdr-core", @@ -1310,7 +1350,6 @@ dependencies = [ "hyper-util", "ignore", "libc", - "notify", "serde", "serde_json", "subtle", @@ -1507,34 +1546,42 @@ dependencies = [ ] [[package]] -name = "inotify" -version = "0.11.5" +name = "inout" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cc00ea907cab49550b7da656f80ebb97be1b997d931fbcd28d39734e17ce592" +checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7" dependencies = [ - "bitflags", - "inotify-sys", - "libc", + "block-padding", + "hybrid-array", ] [[package]] -name = "inotify-sys" -version = "0.1.8" +name = "io-extras" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c033f80b2c113cdf91ab7a33faa9cbc014726dcad99880c8609af2a370edf37d" +checksum = "20fd6de4ccfcc187e38bc21cfa543cb5a302cb86a8b114eb7f0bf0dc9f8ac00f" dependencies = [ - "libc", + "io-lifetimes 3.0.1", + "windows-sys 0.60.2", ] [[package]] -name = "inout" -version = "0.2.2" +name = "io-lifetimes" +version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7" -dependencies = [ - "block-padding", - "hybrid-array", -] +checksum = "06432fb54d3be7964ecd3649233cddf80db2832f47fec34c01f65b3d9d774983" + +[[package]] +name = "io-lifetimes" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f0fb0570afe1fed943c5c3d4102d5358592d8625fda6a0007fdbe65a92fba96" + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" [[package]] name = "is_terminal_polyfill" @@ -1632,26 +1679,6 @@ dependencies = [ "rand_core 0.10.1", ] -[[package]] -name = "kqueue" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d763e5b24120b4ddf50de6c92308156765aabfbbccebf401da7cff2d70a41ea" -dependencies = [ - "kqueue-sys", - "libc", -] - -[[package]] -name = "kqueue-sys" -version = "1.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07293a4e297ac234359b510362495713f75ea345d5307140414f20c69ffeb087" -dependencies = [ - "bitflags", - "libc", -] - [[package]] name = "libc" version = "0.2.189" @@ -1708,6 +1735,12 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" +[[package]] +name = "maybe-owned" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4facc753ae494aeb6e3c22f839b158aebd4f9270f55cd3c79906c45476c47ab4" + [[package]] name = "md5" version = "0.8.1" @@ -1749,7 +1782,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" dependencies = [ "libc", - "log", "wasi", "windows-sys 0.61.2", ] @@ -1791,33 +1823,6 @@ dependencies = [ "libc", ] -[[package]] -name = "notify" -version = "8.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d3d07927151ff8575b7087f245456e549fea62edf0ec4e565a5ee50c8402bc3" -dependencies = [ - "bitflags", - "fsevent-sys", - "inotify", - "kqueue", - "libc", - "log", - "mio", - "notify-types", - "walkdir", - "windows-sys 0.60.2", -] - -[[package]] -name = "notify-types" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42b8cfee0e339a0337359f3c88165702ac6e600dc01c0cc9579a92d62b08477a" -dependencies = [ - "bitflags", -] - [[package]] name = "num" version = "0.4.3" @@ -2587,6 +2592,16 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "rustix-linux-procfs" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fc84bf7e9aa16c4f2c758f27412dc9841341e16aa682d9c7ac308fe3ee12056" +dependencies = [ + "once_cell", + "rustix", +] + [[package]] name = "rustls" version = "0.23.45" @@ -3912,6 +3927,16 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" +[[package]] +name = "winx" +version = "0.36.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f3fd376f71958b862e7afb20cfe5a22830e1963462f3a17f49d82a6c1d1f42d" +dependencies = [ + "bitflags", + "windows-sys 0.52.0", +] + [[package]] name = "wit-bindgen" version = "0.57.1" diff --git a/agents/prd/web-shell-pivot-s3/prd.md b/agents/prd/web-shell-pivot-s3/prd.md index 5d3fff9761..ecb5e4310a 100644 --- a/agents/prd/web-shell-pivot-s3/prd.md +++ b/agents/prd/web-shell-pivot-s3/prd.md @@ -6,7 +6,7 @@ review_profile: "high-risk" review_rationale: "브라우저가 처음으로 체크아웃 안의 파일을 나열·읽기·쓰기·이동·휴지통 이동하고 드롭한 바이트를 디스크에 저장하게 되어, hided의 파일시스템 경계가 \$HOME 디렉터리 나열에서 등록된 체크아웃 전체의 읽기·쓰기로 넓어진다." source_intake: "agents/interview/web-shell-pivot-s3/qa-log.md" created_at: "2026-09-22" -updated_at: "2026-09-22" +updated_at: "2026-09-24" --- # PRD: S3 Explorer + 에디터 + 뷰어 @@ -26,6 +26,8 @@ S3는 파일 작업을 웹으로 옮긴다: 체크아웃 트리를 보고 조작 - 저장 충돌 UX의 재설계: 현 Swift 방식(덮어쓰기 / 디스크 내용으로 다시 읽기)을 그대로 승계한다. 재검토: 사용자가 실사용 후 요청할 때 (D-03). - 원격 기기의 파일 트리(`remote_files.rs` 표면): 미룸 목록 그대로. - Swift 셸 변경: `macos/`는 토큰 생성기 출력 외에 바뀌지 않는다. +- 일반 웹에서 호스트 기본 앱 실행, 신뢰 가능한 네이티브 클라이언트 통합, 저장 선택창 없는 브라우저의 별도 초대형 다운로드 경로는 S3에 추가하지 않는다(D-12). 256 MiB 초과 다운로드는 저장 선택창을 지원하는 브라우저를 사용해야 하며 네이티브 통합 시 재검토한다. +- 전체 Pen 컴포넌트 리디자인은 후속으로 남기고 기존 토큰 계약(B17)은 유지한다(Q42: "리디자인은 담에 하려고! 우선 전체 기능 붙는거에 집중"). ## Decisions @@ -40,19 +42,25 @@ S3는 파일 작업을 웹으로 옮긴다: 체크아웃 트리를 보고 조작 | D-07 | 가정: `document_kind`별 뷰어: Text/Markdown은 CodeMirror 6(언어팩 lazy import), Markdown Live는 `@codemirror/lang-markdown` + 데코레이션으로 PR #110 동작 목록 승계, Pdf는 pdf.js, Image는 맞춤 표시, Binary는 readonly 안내(비디오 확장자는 D-09 뷰어). 이미지·PDF·비디오 바이트는 문서 스냅샷이 아니라 hided의 파일 바이트 프레임으로 받는다. 미저장 버퍼는 IndexedDB에 보관해 재연결 시 코어 dirty 문서와 대조 복원. 재검토: 없음. | 가정: 우산 PRD 결정 15; `model.rs:1322` | | D-08 | 상한: 첨부는 코어 규칙 그대로 파일당 20 MiB·한 번에 40 MiB(`terminal_attachments.rs`가 강제, 웹은 거절 사유만 표시). fs watch는 펼친 폴더 64개까지, 넘으면 오래 안 본 폴더부터 감시 해제하고 그 폴더에 새로고침 배지. ⌘P 인덱스는 체크아웃당 50,000 파일(gitignore 제외 후), 넘으면 잘림 표시, 결과 표시는 Swift와 같은 80개. 재검토: 실사용에서 배지·잘림이 자주 보일 때. | Q3 "ㅇㅇㅇ" (Q2에서 상한의 이유를 설명한 뒤 제시한 숫자 수용) | | D-09 | 비디오 뷰어를 S3에 포함: mp4/webm/mov는 이미지·PDF와 같은 hided 파일 바이트 스트림(체크아웃 경계 안, 토큰 게이트 WS)으로 받아 `