@joripspace/cli 0.5.4 → 0.5.7

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 CHANGED
@@ -1,118 +1,129 @@
1
- # JoripSpace CLI
2
-
3
- **JoripSpace — Build and deploy web apps with AI agents. Powered by Cosmosfarm.**
4
-
5
- The official Node.js command-line client for JoripSpace. Connect your projects and manage deployments, databases, storage, and realtime services from your terminal.
6
-
7
- [Website](https://joripspace.com) · [Support](mailto:support@cosmosfarm.com) · [GitHub](https://github.com/JoripSpace/joripspace-cli)
8
-
9
- ## Quick start
10
-
11
- Run with npx. No global installation is required:
12
-
13
- ```sh
14
- npx -y @joripspace/cli@latest --help
15
- npx -y @joripspace/cli@latest templates --json
16
- npx -y @joripspace/cli@latest realtime-v2 docs --json
17
- ```
18
-
19
- Requires **Node.js 18 or later and npm** on Windows, macOS, or Linux. No TypeScript compiler or native build tools are needed. The CLI runs directly in Node.js; it does not download an OS-specific executable. Installation does not build source code, log you in, open a browser, or change project settings.
20
-
21
- ## Connect a project
22
-
23
- ### Start with your coding agent
24
-
25
- Paste this prompt into an agent that can run terminal commands and read project files. Replace `PROJECT` with your existing JoripSpace project name:
26
-
27
- ```text
28
- Help me get started with JoripSpace project "PROJECT".
29
- 1. Install or update the official CLI with npm install -g @joripspace/cli@latest.
30
- 2. Run joripspace start PROJECT --json. Read the returned onboarding instructions
31
- and agent documents, and complete the connection following those instructions.
32
- 3. Review the existing project and guide me through the next steps to build and deploy.
33
- ```
34
-
35
- `start` returns an inline guide and writes the same guide into the managed block of `AGENTS.md`. It preserves user content and maintains the existing `CLAUDE.md` reference. Agents must read these instructions in the current conversation even when automatic discovery is unavailable. No plugin, skill installation, or agent restart is required.
36
-
37
- The additive `onboarding` object contains `schema_version`, `instructions`, `read_files`, `invocation`, and `commands`. `invocation.command` is an absolute executable; append arguments after `invocation.args` and use `invocation.cwd`. For npm installations this invokes Node with the JavaScript entrypoint. The same guide and structured login/resume commands are returned in `error.details.onboarding` when authentication is required. Replace only the `CONNECTION_CODE` argument with the approved code. Never log credentials.
38
-
39
- If the global executable is not on PATH, run `npm root -g`, locate `@joripspace/cli/bin/joripspace.js` under that directory, and execute it with Node. If the global install directory is not writable, use `npx -y @joripspace/cli@latest start PROJECT --json` instead.
40
-
41
- The workflow requires terminal, filesystem, and network access. Individual agents may require tool approvals or manual reading of project instructions. Generating a document does not prove that an agent loaded it; follow the inline instructions and verify the actual commands.
42
-
43
- ### Connect from your terminal
44
-
45
- Run commands from your project directory. Quote paths containing spaces or non-ASCII characters.
46
-
47
- ```sh
48
- npx -y @joripspace/cli@latest login
49
- npx -y @joripspace/cli@latest login --code "YOUR_CONNECTION_CODE" --cwd "my project"
50
- npx -y @joripspace/cli@latest start my-app --cwd "my project" --json
51
- npx -y @joripspace/cli@latest get --cwd "my project" --json
52
- ```
53
-
54
- Follow the link from `login` to [JoripSpace Connect](https://joripspace.com/connect/), approve the connection, and copy the one-time code, which expires after five minutes. Replace `my-app` with your existing project slug.
55
-
56
- `login --code` stores the connection token and API URL in the project's Git-ignored `.env.joripspace` file. A regular `.env` file is not used for authentication. Subsequent npx runs reuse the same project credentials, so you do not need to log in each time. Credentials and project state are not stored inside the npm package or cache.
57
-
58
- Without `--cwd`, the CLI uses your current working directory and searches parent directories for the project connection. Existing `.joripspace/project` markers, the `--project` alias, environment variables, and legacy credential validation and migration remain supported. The default API is `https://api.joripspace.com`; use the existing `--api-url` option or `JORIPSPACE_API_URL` environment variable to override it.
59
-
60
- `start` connects to or resumes an existing project; it does not create a new project. It maintains project guidance files and synchronizes the required source files using the existing CLI behavior. This npm package preserves the original commands and compatibility modules without adding agent detection, MCP registration, plugins, skills, or hooks.
61
-
62
- ## Optional global installation
63
-
64
- ```sh
65
- npm install -g @joripspace/cli
66
- joripspace --help
67
- ```
68
-
69
- You can continue using npx instead. Global installation and permanent PATH changes are not required.
70
-
71
- ## Commands and compatibility
72
-
73
- Use `--help`, `deploy --help`, `deploy-template --help`, or `install-template --help` for the supported commands and options. Existing functionality includes authentication, project inspection, deployment, templates, checkpoints, databases, storage, realtime v2, secrets, cron jobs, domains, mail, usage, and events. Operations restricted to the web interface remain restricted.
74
-
75
- The CLI preserves existing result fields and exit codes `0`, `1`, and `2`, with the additive `onboarding` object described above. With `--json`, successful results go to stdout and errors go to stderr. User-facing explanations should follow the user's language; the shared agent guide is English.
76
-
77
- Installation and ordinary API commands require only Node.js and npm. Existing GitHub source connection and Git history synchronization features also require Git. Interactive `start` opens the browser using Windows `cmd.exe`, macOS `open`, or Linux `xdg-open`. If opening a browser fails, you can open the printed URL yourself.
78
-
79
- The `executable` field in a `start` response remains the absolute path to the JavaScript entrypoint. Prefer the new structured `onboarding.invocation` and `onboarding.commands` fields when your execution tool supports argument arrays. The legacy `login_command`, `resume_command`, and `install_command` strings remain available. In PowerShell, prefix a quoted executable path with the call operator `&`.
80
-
81
- ## Development and package verification
82
-
83
- This repository works independently of the platform repository. It reuses the existing JavaScript implementation and requires no compilation. `prepack` checks package metadata, JavaScript syntax, the Node shebang, and executable permissions. There are no installation lifecycle hooks.
84
-
85
- ```sh
86
- npm ci --ignore-scripts
87
- npm run check
88
- npm test
89
- npm run test:package
90
- ```
91
-
92
- `test:package` creates a real tarball in `.artifacts/` and checks its files, hashes, licenses, and permissions. It verifies installation, npx, npm exec, arguments, output, exit codes, working directories, cancellation, and credential reuse through a local mock API. Tests run in temporary directories outside the repository, including paths with spaces and Korean characters. They do not modify production projects or actual user credentials.
93
-
94
- Set `JORIPSPACE_BASELINE_CLI` to the original `bin/joripspace.js` path to compare against the original CLI; otherwise, comparisons use this repository's source. GitHub CI covers Windows, macOS, and Linux with Node.js 18, 20, 22, and 24. It does not upload artifacts, cache dependencies, or publish to GitHub Packages.
95
-
96
- To try a tarball before publishing, use its absolute path:
97
-
98
- ```sh
99
- npm exec --yes --package="/absolute/path/joripspace-cli-0.5.0.tgz" -- joripspace --help
100
- ```
101
-
102
- On Windows, use a path such as `C:/path/to/joripspace-cli-0.5.0.tgz`. Detailed engineering records are available in [verification](docs/verification.md) and [packaging](docs/packaging.md) (Korean).
103
-
104
- ## License
105
-
106
- JoripSpace CLI is available under the [MIT License](LICENSE).
107
-
108
- Copyright (c) 2026 Cosmosfarm Software
109
-
110
- Use of the JoripSpace cloud service is subject to separate service terms and pricing plans. Platform server, administration, and infrastructure code are not included in this CLI distribution. Included Worker examples are public customer templates.
111
-
112
- Third-party dependencies retain their original licenses and copyrights. See [Third-party notices](THIRD_PARTY_NOTICES.md) for the preserved license texts.
113
-
114
- ## Support
115
-
116
- - Website: [joripspace.com](https://joripspace.com)
117
- - Email: [support@cosmosfarm.com](mailto:support@cosmosfarm.com)
118
- - Bug reports: [GitHub Issues](https://github.com/JoripSpace/joripspace-cli/issues)
1
+ # JoripSpace CLI
2
+
3
+ **JoripSpace — Build and deploy web apps with AI agents. Powered by Cosmosfarm.**
4
+
5
+ The official Node.js command-line client for JoripSpace. Connect your projects and manage deployments, databases, storage, and realtime services from your terminal.
6
+
7
+ [Website](https://joripspace.com) · [Support](mailto:support@cosmosfarm.com) · [GitHub](https://github.com/JoripSpace/joripspace-cli)
8
+
9
+ ## Quick start
10
+
11
+ Run with npx. No global installation is required:
12
+
13
+ ```sh
14
+ npx -y @joripspace/cli@latest --help
15
+ npx -y @joripspace/cli@latest templates --json
16
+ npx -y @joripspace/cli@latest realtime-v2 docs --json
17
+ ```
18
+
19
+ Requires **Node.js 18 or later and npm** on Windows, macOS, or Linux. No TypeScript compiler or native build tools are needed. The CLI runs directly in Node.js; it does not download an OS-specific executable. Installation does not build source code, log you in, open a browser, or change project settings.
20
+
21
+ ## Connect a project
22
+
23
+ ### Start with your coding agent
24
+
25
+ Paste this prompt into an agent that can run terminal commands and read project files. Replace `PROJECT` with your existing JoripSpace project name:
26
+
27
+ ```text
28
+ Help me get started with JoripSpace project "PROJECT".
29
+ 1. Install or update the official CLI with npm install -g @joripspace/cli@latest.
30
+ 2. Run joripspace start PROJECT --json. Read the returned onboarding instructions
31
+ and agent documents, and complete the connection following those instructions.
32
+ 3. Review the existing project and guide me through the next steps to build and deploy.
33
+ ```
34
+
35
+ `start` returns an inline guide and writes the same guide into the managed block of `AGENTS.md`. It preserves user content and maintains the existing `CLAUDE.md` reference. Agents must read these instructions in the current conversation even when automatic discovery is unavailable. No plugin, skill installation, or agent restart is required.
36
+
37
+ The additive `onboarding` object contains `schema_version`, `instructions`, `read_files`, `invocation`, and `commands`. `invocation.command` is an absolute executable; append arguments after `invocation.args` and use `invocation.cwd`. For npm installations this invokes Node with the JavaScript entrypoint. The same guide and structured login/resume commands are returned in `error.details.onboarding` when authentication is required. Replace only the `CONNECTION_CODE` argument with the approved code. Never log credentials.
38
+
39
+ If the global executable is not on PATH, run `npm root -g`, locate `@joripspace/cli/bin/joripspace.js` under that directory, and execute it with Node. If the global install directory is not writable, use `npx -y @joripspace/cli@latest start PROJECT --json` instead.
40
+
41
+ The workflow requires terminal, filesystem, and network access. Individual agents may require tool approvals or manual reading of project instructions. Generating a document does not prove that an agent loaded it; follow the inline instructions and verify the actual commands.
42
+
43
+ ### Connect from your terminal
44
+
45
+ Run commands from your project directory. Quote paths containing spaces or non-ASCII characters.
46
+
47
+ ```sh
48
+ npx -y @joripspace/cli@latest login
49
+ npx -y @joripspace/cli@latest login --code "YOUR_CONNECTION_CODE" --cwd "my project"
50
+ npx -y @joripspace/cli@latest start my-app --cwd "my project" --json
51
+ npx -y @joripspace/cli@latest get --cwd "my project" --json
52
+ ```
53
+
54
+ Follow the link from `login` to [JoripSpace Connect](https://joripspace.com/connect/), approve the connection, and copy the one-time code, which expires after five minutes. Replace `my-app` with your existing project slug.
55
+
56
+ `login --code` stores the connection token and API URL in the project's Git-ignored `.env.joripspace` file. A regular `.env` file is not used for authentication. Subsequent npx runs reuse the same project credentials, so you do not need to log in each time. Credentials and project state are not stored inside the npm package or cache.
57
+
58
+ Without `--cwd`, the CLI uses your current working directory and searches parent directories for the project connection. Existing `.joripspace/project` markers, the `--project` alias, environment variables, and legacy credential validation and migration remain supported. The default API is `https://api.joripspace.com`; use the existing `--api-url` option or `JORIPSPACE_API_URL` environment variable to override it.
59
+
60
+ `start` connects to or resumes an existing project; it does not create a new project. It maintains project guidance files and synchronizes the required source files using the existing CLI behavior. This npm package preserves the original commands and compatibility modules without adding agent detection, MCP registration, plugins, skills, or hooks.
61
+
62
+ ## Optional global installation
63
+
64
+ CLI notices and prompts follow the OS default locale: Korean for `ko`, English otherwise, including
65
+ unsupported or unavailable locales. JSON field names and error codes stay unchanged. Agreement payloads
66
+ keep English text and the Korean originals so agents can explain them in the user's conversation language.
67
+
68
+ To create a new Free project, run `joripspace create --name my-app --json` first. It returns all three required agreements
69
+ in English with the Korean web originals. Login is verified with the server before any agreements are shown;
70
+ missing or revoked credentials stop creation. Agents must present the agreements faithfully in the user's language
71
+ and obtain explicit consent before rerunning with `--agree-noncommercial --agree-billing --agree-retention --json`. Interactive
72
+ terminals ask each agreement separately. `--yes` cannot replace consent. Web/server name restrictions and uniqueness
73
+ checks apply. Creation does not link or change local project source; use `start` separately when requested.
74
+
75
+ ```sh
76
+ npm install -g @joripspace/cli
77
+ joripspace --help
78
+ ```
79
+
80
+ You can continue using npx instead. Global installation and permanent PATH changes are not required.
81
+
82
+ ## Commands and compatibility
83
+
84
+ Use `--help`, `deploy --help`, `deploy-template --help`, or `install-template --help` for the supported commands and options. Existing functionality includes authentication, project inspection, deployment, templates, checkpoints, databases, storage, realtime v2, secrets, cron jobs, domains, mail, usage, and events. Operations restricted to the web interface remain restricted.
85
+
86
+ The CLI preserves existing result fields and exit codes `0`, `1`, and `2`, with the additive `onboarding` object described above. With `--json`, successful results go to stdout and errors go to stderr. User-facing explanations should follow the user's language; the shared agent guide is English.
87
+
88
+ Installation and ordinary API commands require only Node.js and npm. Existing GitHub source connection and Git history synchronization features also require Git. Interactive `start` opens the browser using Windows `cmd.exe`, macOS `open`, or Linux `xdg-open`. If opening a browser fails, you can open the printed URL yourself.
89
+
90
+ The `executable` field in a `start` response remains the absolute path to the JavaScript entrypoint. Prefer the new structured `onboarding.invocation` and `onboarding.commands` fields when your execution tool supports argument arrays. The legacy `login_command`, `resume_command`, and `install_command` strings remain available. In PowerShell, prefix a quoted executable path with the call operator `&`.
91
+
92
+ ## Development and package verification
93
+
94
+ This repository works independently of the platform repository. It reuses the existing JavaScript implementation and requires no compilation. `prepack` checks package metadata, JavaScript syntax, the Node shebang, and executable permissions. There are no installation lifecycle hooks.
95
+
96
+ ```sh
97
+ npm ci --ignore-scripts
98
+ npm run check
99
+ npm test
100
+ npm run test:package
101
+ ```
102
+
103
+ `test:package` creates a real tarball in `.artifacts/` and checks its files, hashes, licenses, and permissions. It verifies installation, npx, npm exec, arguments, output, exit codes, working directories, cancellation, and credential reuse through a local mock API. Tests run in temporary directories outside the repository, including paths with spaces and Korean characters. They do not modify production projects or actual user credentials.
104
+
105
+ Set `JORIPSPACE_BASELINE_CLI` to the original `bin/joripspace.js` path to compare against the original CLI; otherwise, comparisons use this repository's source. Run the checks locally before publishing; this repository does not use GitHub Actions for testing or npm releases.
106
+
107
+ To try a tarball before publishing, use its absolute path:
108
+
109
+ ```sh
110
+ npm exec --yes --package="/absolute/path/joripspace-cli-0.5.0.tgz" -- joripspace --help
111
+ ```
112
+
113
+ On Windows, use a path such as `C:/path/to/joripspace-cli-0.5.6.tgz`. The local release procedure is documented in [release](docs/release.md).
114
+
115
+ ## License
116
+
117
+ JoripSpace CLI is available under the [MIT License](LICENSE).
118
+
119
+ Copyright (c) 2026 Cosmosfarm Software
120
+
121
+ Use of the JoripSpace cloud service is subject to separate service terms and pricing plans. Platform server, administration, and infrastructure code are not included in this CLI distribution. Included Worker examples are public customer templates.
122
+
123
+ Third-party dependencies retain their original licenses and copyrights. See [Third-party notices](THIRD_PARTY_NOTICES.md) for the preserved license texts.
124
+
125
+ ## Support
126
+
127
+ - Website: [joripspace.com](https://joripspace.com)
128
+ - Email: [support@cosmosfarm.com](mailto:support@cosmosfarm.com)
129
+ - Bug reports: [GitHub Issues](https://github.com/JoripSpace/joripspace-cli/issues)
@@ -55,9 +55,9 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
55
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56
56
  SOFTWARE.
57
57
 
58
- ## smol-toml 1.8.0 — BSD-3-Clause
58
+ ## smol-toml 1.9.1 — BSD-3-Clause
59
59
 
60
- https://www.npmjs.com/package/smol-toml/v/1.8.0
60
+ https://www.npmjs.com/package/smol-toml/v/1.9.1
61
61
 
62
62
  Copyright (c) Squirrel Chat et al., All rights reserved.
63
63
 
@@ -83,3 +83,55 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
83
83
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
84
84
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
85
85
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
86
+
87
+ ## @napi-rs/keyring 2.1.2
88
+
89
+ MIT License
90
+
91
+ Copyright (c) 2020 N-API for Rust
92
+
93
+ Permission is hereby granted, free of charge, to any person obtaining a copy
94
+ of this software and associated documentation files (the "Software"), to deal
95
+ in the Software without restriction, including without limitation the rights
96
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
97
+ copies of the Software, and to permit persons to whom the Software is
98
+ furnished to do so, subject to the following conditions:
99
+
100
+ The above copyright notice and this permission notice shall be included in all
101
+ copies or substantial portions of the Software.
102
+
103
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
104
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
105
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
106
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
107
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
108
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
109
+ SOFTWARE.
110
+
111
+ Platform binaries are npm dependencies; their bundled Rust dependency notices are included in each platform package's LICENSE.third-party.md. The Linux binary includes libdbus under AFL-2.1 OR GPL-2.0-or-later, with full license texts preserved in that dependency.
112
+
113
+ ## ignore 7.0.12 — MIT
114
+
115
+ https://www.npmjs.com/package/ignore/v/7.0.12
116
+
117
+ Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
118
+ http://kael.me/
119
+
120
+ Permission is hereby granted, free of charge, to any person obtaining
121
+ a copy of this software and associated documentation files (the
122
+ "Software"), to deal in the Software without restriction, including
123
+ without limitation the rights to use, copy, modify, merge, publish,
124
+ distribute, sublicense, and/or sell copies of the Software, and to
125
+ permit persons to whom the Software is furnished to do so, subject to
126
+ the following conditions:
127
+
128
+ The above copyright notice and this permission notice shall be
129
+ included in all copies or substantial portions of the Software.
130
+
131
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
132
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
133
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
134
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
135
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
136
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
137
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.