@decku/cli 0.1.0 → 0.1.1
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.
- package/README.md +4 -4
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
## 사용
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
# 1) 페어링
|
|
9
|
-
npx decku pair
|
|
8
|
+
# 1) 페어링 → QR/URL 출력 (기본 https://decku.app)
|
|
9
|
+
npx @decku/cli pair
|
|
10
10
|
|
|
11
11
|
# 2) 실행 (세션 watch + realtime)
|
|
12
|
-
npx decku run
|
|
12
|
+
npx @decku/cli run
|
|
13
13
|
```
|
|
14
14
|
출력된 QR/URL을 브라우저에서 열면 세션 목록·대화가 뜬다.
|
|
15
15
|
|
|
16
16
|
### 자동 시작 (macOS)
|
|
17
17
|
```bash
|
|
18
|
-
npm i -g decku
|
|
18
|
+
npm i -g @decku/cli
|
|
19
19
|
decku pair --url <webUrl>
|
|
20
20
|
decku install # launchd 등록 (로그인 시 자동 실행)
|
|
21
21
|
decku uninstall # 해제
|
package/dist/cli.js
CHANGED
|
@@ -4919,7 +4919,7 @@ async function pair(argv) {
|
|
|
4919
4919
|
cfg = existing;
|
|
4920
4920
|
console.log(`\uAE30\uC874 \uD398\uC5B4\uB9C1 \uC7AC\uC0AC\uC6A9 (namespace ${cfg.namespace.slice(0, 8)}\u2026). \uC0C8\uB85C \uB9CC\uB4E4\uB824\uBA74 --new.`);
|
|
4921
4921
|
} else {
|
|
4922
|
-
const apiUrl = (flag(argv, "--url") ?? process.env.DECKU_URL ?? "https://decku.
|
|
4922
|
+
const apiUrl = (flag(argv, "--url") ?? process.env.DECKU_URL ?? "https://decku.app").replace(/\/$/, "");
|
|
4923
4923
|
console.log(`\uD398\uC5B4\uB9C1 \uC911\u2026 (${apiUrl})`);
|
|
4924
4924
|
const res = await apiPair(apiUrl);
|
|
4925
4925
|
cfg = {
|