shellbase 0.1.4 → 0.1.5
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 +3 -0
- package/dist/cli.js +9 -0
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/cli.js
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import { login, logout, whoami } from './auth.js';
|
|
4
4
|
import { startSession } from './session.js';
|
|
5
|
+
// 실시간 기능(realtime.subscribe)이 Node 의 네이티브 WebSocket(Node 22+)에 의존해서,
|
|
6
|
+
// Node 20 에서는 조용히 SSE 모드로 떨어져 "네트워크가 막혔다"는 헷갈리는 에러만 남기고 죽는다.
|
|
7
|
+
// 미리 버전을 확인해서 원인을 바로 알려준다.
|
|
8
|
+
const [major] = process.versions.node.split('.').map(Number);
|
|
9
|
+
if (major < 22) {
|
|
10
|
+
console.error(`Node.js ${process.versions.node} 는 지원하지 않아요 — 실시간 접속 기능은 Node 22 이상이 필요해요.\n` +
|
|
11
|
+
'https://nodejs.org 에서 최신 버전을 설치하거나, nvm 을 쓰신다면 `nvm install 22 && nvm use 22` 후 다시 시도해주세요.');
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
5
14
|
const program = new Command();
|
|
6
15
|
program.name('shellbase').description('내 컴퓨터 터미널을 폰에서 접속할 수 있게 해주는 에이전트');
|
|
7
16
|
program
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shellbase",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "내 컴퓨터 터미널(특히 Claude Code 세션)을 폰 브라우저로 실시간 접속하게 해주는 데스크톱 에이전트",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"engines": {
|
|
13
|
-
"node": ">=
|
|
13
|
+
"node": ">=22"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"keywords": [
|