@joripspace/cli 0.4.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/LICENSE +21 -0
- package/README.md +74 -0
- package/THIRD_PARTY_NOTICES.md +85 -0
- package/bin/joripspace.js +1614 -0
- package/lib/checkpoint-client.js +446 -0
- package/lib/checkpoint-commands.js +210 -0
- package/lib/deploy-files.js +245 -0
- package/lib/deployment-error.js +14 -0
- package/lib/help.js +146 -0
- package/lib/installer-args.js +28 -0
- package/lib/installer-target.js +134 -0
- package/lib/mcp-config.js +981 -0
- package/lib/project-env.js +198 -0
- package/lib/project-paths.js +257 -0
- package/lib/realtime-v2-commands.js +42 -0
- package/lib/remote-commands.js +401 -0
- package/lib/start-command.js +132 -0
- package/lib/start.js +1430 -0
- package/lib/template-commands.js +812 -0
- package/package.json +46 -0
- package/vendor/core/github-workflow.cjs +197 -0
- package/vendor/core/onboarding.cjs +2423 -0
- package/vendor/core/template-publish-workflow.cjs +169 -0
- package/vendor/templates/index.js +104 -0
- package/vendor/templates/templates/basic-worker/files/worker.js +9 -0
- package/vendor/templates/templates/basic-worker/manifest.json +14 -0
- package/vendor/templates/templates/r2-file-api/files/worker.js +42 -0
- package/vendor/templates/templates/r2-file-api/manifest.json +7 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cosmosfarm Software
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# JoripSpace CLI
|
|
2
|
+
|
|
3
|
+
기존 CLI 0.4.1을 재사용한 Node.js 공통 패키지입니다. npm 레지스트리에 등록된 버전은 다음 명령으로 실행합니다.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx -y @joripspace/cli@latest --help
|
|
7
|
+
npx -y @joripspace/cli@latest templates --json
|
|
8
|
+
npx -y @joripspace/cli@latest realtime-v2 docs --json
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Windows/macOS/Linux에서 Node.js와 npm이 필요합니다. 기존 최소 조건인 Node.js 18 이상을 유지하며, 신규 설치에는 지원 중인 LTS 버전을 권장합니다. TypeScript 컴파일러나 네이티브 빌드 도구는 필요하지 않습니다. OS별 실행 파일을 내려받는 래퍼가 아니며, 설치 시 빌드·로그인·브라우저 실행·설정 변경을 하지 않습니다.
|
|
12
|
+
|
|
13
|
+
## 연결과 사용
|
|
14
|
+
|
|
15
|
+
사용자 프로젝트 폴더에서 실행하세요. 공백·한글이 있는 경로는 따옴표로 감쌉니다.
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npx -y @joripspace/cli@latest login
|
|
19
|
+
npx -y @joripspace/cli@latest login --code "복사한_연결_코드" --cwd "내 프로젝트"
|
|
20
|
+
npx -y @joripspace/cli@latest start my-app --cwd "내 프로젝트" --json
|
|
21
|
+
npx -y @joripspace/cli@latest get --cwd "내 프로젝트" --json
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`login`이 안내하는 https://joripspace.com/connect/ 에서 사용자가 연결을 승인하고 5분 일회용 코드를 복사합니다. `login --code`는 기존 방식대로 지정 프로젝트의 Git 제외 파일 `.env.joripspace`에 연결 토큰과 API 주소를 저장합니다. 일반 `.env`는 인증에 사용하지 않습니다. 같은 프로젝트에서는 다음 npx 실행도 기존 인증을 재사용합니다. 설정·인증·프로젝트 상태를 npm 캐시나 패키지 내부에 저장하지 않습니다.
|
|
25
|
+
|
|
26
|
+
`--cwd`가 없으면 실행한 현재 작업 폴더를 기준으로 상위 폴더의 프로젝트 연결을 찾습니다. `.joripspace/project`의 slug, `--project` 별칭, 환경변수 및 이전 인증 형식의 검증·이전 규칙을 유지합니다. 기본 API는 https://api.joripspace.com 이며 기존 `--api-url`과 `JORIPSPACE_API_URL`을 사용할 수 있습니다.
|
|
27
|
+
|
|
28
|
+
`start`는 기존 프로젝트를 연결·재개하는 명령입니다. 프로젝트를 새로 만들지 않으며 기존 동작에 따라 프로젝트 안내 파일을 관리하고 필요한 소스를 동기화합니다. 이번 npm 패키징에서 새로운 에이전트 탐지, MCP 등록, Plugin, Skill, Hook을 추가하지 않았습니다. 기존 구현과 호환 모듈은 보존했습니다.
|
|
29
|
+
|
|
30
|
+
## 선택적 전역 설치
|
|
31
|
+
|
|
32
|
+
다음 방식도 사용할 수 있습니다. 기본 안내는 npx이며 전역 설치나 영구 PATH 변경은 필수가 아닙니다.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
npm install -g @joripspace/cli
|
|
36
|
+
joripspace --help
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 기존 명령과 의존성
|
|
40
|
+
|
|
41
|
+
정확한 명령·옵션은 `--help`, `deploy --help`, `deploy-template --help`, `install-template --help`로 확인합니다. 인증·프로젝트 조회·배포·템플릿·저장본·DB·스토리지·실시간 v2·Secret·Cron·도메인·메일·사용량·이벤트 등의 기존 구현을 사용합니다. 기존 웹 전용 작업은 동일하게 거부합니다. `--json`은 성공 결과를 stdout, 오류를 stderr로 출력하며 기존 종료 코드 0/1/2를 보존합니다.
|
|
42
|
+
|
|
43
|
+
CLI 설치와 일반 API 명령에는 Node.js/npm만 필요합니다. 기존 GitHub 소스 연결·Git 이력 동기화 기능에는 Git이 필요합니다. 대화형 `start`의 브라우저 열기는 Windows `cmd.exe`, macOS `open`, Linux `xdg-open`을 사용하며 브라우저를 열 수 없어도 출력된 URL로 직접 연결할 수 있습니다. 템플릿의 고객 Worker 예제는 기존 공개 템플릿이며 플랫폼 서버 구현은 포함하지 않습니다.
|
|
44
|
+
|
|
45
|
+
`start` 응답의 `executable`은 JS 진입점의 절대 경로입니다. 직접 실행할 때는 `node "진입점 경로" ...`를 사용하거나 위 npx 명령을 사용하세요. 응답의 `login_command`, `resume_command`, `install_command`에는 Node 실행 경로를 포함했습니다. Windows PowerShell에서 따옴표로 감싼 실행 경로를 직접 입력할 때는 앞에 호출 연산자 `&`가 필요합니다. JSON의 구조나 키는 변경하지 않았습니다.
|
|
46
|
+
|
|
47
|
+
## 개발 및 공개 전 패키지 검증
|
|
48
|
+
|
|
49
|
+
상위 플랫폼 저장소 없이 단독으로 동작합니다. 기존 JavaScript를 재사용하므로 컴파일 단계가 없습니다. `prepack`은 메타데이터·JS 구문·shebang·실행 권한을 확인하며 설치 시 실행되는 수명주기 스크립트는 없습니다.
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
npm ci --ignore-scripts
|
|
53
|
+
npm run check
|
|
54
|
+
npm test
|
|
55
|
+
npm run test:package
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
`test:package`는 실제 `npm pack` 결과를 `.artifacts/`에 만들고 파일 내용·해시·실행 권한을 확인합니다. 저장소 밖의 공백·한글 임시 경로에서 설치, npx, npm exec, 인자·출력·종료 코드 비교, 로컬 모의 API 인증 재사용, 작업 폴더 유지, 취소를 검사합니다. 운영 API나 실제 사용자 설정은 수정하지 않습니다. 원본과 비교하려면 테스트 프로세스에 `JORIPSPACE_BASELINE_CLI`로 원본 `bin/joripspace.js` 경로를 전달합니다. 없으면 독립 저장소 소스를 기준으로 비교합니다.
|
|
59
|
+
|
|
60
|
+
공개 전에는 생성된 tarball의 **절대 경로**로 실행할 수 있습니다.
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
npm exec --yes --package="/absolute/path/joripspace-cli-0.4.1.tgz" -- joripspace --help
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Windows에서는 해당 위치를 `C:/.../joripspace-cli-0.4.1.tgz`로 바꿉니다. 실제 결과와 OS별 미검증 범위는 [검증 기록](docs/verification.md), 원본·변경 범위와 최초 공개 조건은 [패키징 기록](docs/packaging.md)에 정리합니다.
|
|
67
|
+
|
|
68
|
+
## 라이선스
|
|
69
|
+
|
|
70
|
+
JoripSpace CLI는 [MIT 라이선스](LICENSE)로 배포합니다. 조립스페이스 클라우드 서비스 이용에는 별도 서비스 약관과 요금제가 적용됩니다. 플랫폼 서버·관리자·인프라 코드는 이 CLI 공개 대상에 포함되지 않습니다.
|
|
71
|
+
|
|
72
|
+
외부 의존성에는 각각의 원래 라이선스가 적용됩니다. 기존 저작권과 라이선스 전문은 [제3자 고지](THIRD_PARTY_NOTICES.md)에 보존했으며, CLI의 MIT 적용이 외부 코드의 라이선스를 변경하지 않습니다.
|
|
73
|
+
|
|
74
|
+
설정 참고: [npm package.json](https://docs.npmjs.com/cli/v11/configuring-npm/package-json/), [npm exec](https://docs.npmjs.com/cli/v11/commands/npm-exec/), [Node.js 지원 버전](https://nodejs.org/en/about/previous-releases).
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
JoripSpace CLI is licensed under MIT. The dependencies below retain their own licenses and copyrights.
|
|
4
|
+
They are installed separately by npm, not bundled into the CLI tarball. These notices record the versions in package-lock.json; other installed versions retain their accompanying licenses.
|
|
5
|
+
|
|
6
|
+
## fflate 0.8.3 — MIT
|
|
7
|
+
|
|
8
|
+
https://www.npmjs.com/package/fflate/v/0.8.3
|
|
9
|
+
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) 2026 Arjun Barrett
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
+
in the Software without restriction, including without limitation the rights
|
|
17
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
+
furnished to do so, subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
+
SOFTWARE.
|
|
31
|
+
|
|
32
|
+
## jsonc-parser 3.3.1 — MIT
|
|
33
|
+
|
|
34
|
+
https://www.npmjs.com/package/jsonc-parser/v/3.3.1
|
|
35
|
+
|
|
36
|
+
The MIT License (MIT)
|
|
37
|
+
|
|
38
|
+
Copyright (c) Microsoft
|
|
39
|
+
|
|
40
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
41
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
42
|
+
in the Software without restriction, including without limitation the rights
|
|
43
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
44
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
45
|
+
furnished to do so, subject to the following conditions:
|
|
46
|
+
|
|
47
|
+
The above copyright notice and this permission notice shall be included in all
|
|
48
|
+
copies or substantial portions of the Software.
|
|
49
|
+
|
|
50
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
51
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
52
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
53
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
54
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
55
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
56
|
+
SOFTWARE.
|
|
57
|
+
|
|
58
|
+
## smol-toml 1.8.0 — BSD-3-Clause
|
|
59
|
+
|
|
60
|
+
https://www.npmjs.com/package/smol-toml/v/1.8.0
|
|
61
|
+
|
|
62
|
+
Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
63
|
+
|
|
64
|
+
Redistribution and use in source and binary forms, with or without
|
|
65
|
+
modification, are permitted provided that the following conditions are met:
|
|
66
|
+
|
|
67
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
68
|
+
list of conditions and the following disclaimer.
|
|
69
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
70
|
+
this list of conditions and the following disclaimer in the
|
|
71
|
+
documentation and/or other materials provided with the distribution.
|
|
72
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
73
|
+
may be used to endorse or promote products derived from this software without
|
|
74
|
+
specific prior written permission.
|
|
75
|
+
|
|
76
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
77
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
78
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
79
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
80
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
81
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
82
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
83
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
84
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
85
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|