@decku/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +32 -0
  2. package/dist/cli.js +5051 -0
  3. package/package.json +40 -0
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # decku
2
+
3
+ [decku](https://github.com/) 로컬 브릿지 — 내 Mac의 Claude Desktop 세션을 웹앱에 **E2EE**로 연결한다. 세션 목록·대화를 암호화해 중계하고, 웹에서 친 채팅을 `claude --resume`으로 주입한다.
4
+
5
+ ## 사용
6
+
7
+ ```bash
8
+ # 1) 페어링 (웹앱 URL로) → QR/URL 출력
9
+ npx decku pair --url https://<your-decku>.vercel.app
10
+
11
+ # 2) 실행 (세션 watch + realtime)
12
+ npx decku run
13
+ ```
14
+ 출력된 QR/URL을 브라우저에서 열면 세션 목록·대화가 뜬다.
15
+
16
+ ### 자동 시작 (macOS)
17
+ ```bash
18
+ npm i -g decku
19
+ decku pair --url <webUrl>
20
+ decku install # launchd 등록 (로그인 시 자동 실행)
21
+ decku uninstall # 해제
22
+ ```
23
+ 로그: `~/.decku/bridge.log`. Windows=작업 스케줄러, Linux=systemd user에 `decku run`을 등록.
24
+
25
+ ## 동작 / 보안
26
+
27
+ - `~/.claude/sessions`·`~/.claude/projects`(transcript)만 **읽는다**. 데스크탑 앱은 안 건드림.
28
+ - 모든 본문은 로컬 생성 `e2eeKey`(AES-256-GCM)로 암호화 → 중계 서버·벤더는 ciphertext만 본다.
29
+ - 페어링 정보·키는 `~/.decku/config.json`(0600)에만. 채팅 전송은 같은 sessionId를 `claude -p --resume`으로 이어받아 주입.
30
+ - 필요: Node ≥ 20, 로컬에 `claude` CLI(Claude Desktop이 설치).
31
+
32
+ > ⚠ decku 목록엔 **Desktop/interactive 세션**만 뜬다(`claude -p` 헤드리스 세션은 registry 미등록).