@joripspace/cli 0.4.2 → 0.5.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 +27 -5
- package/bin/joripspace.js +1623 -1610
- package/lib/checkpoint-commands.js +210 -210
- package/lib/deploy-files.js +245 -245
- package/lib/deployment-error.js +14 -14
- package/lib/github-commands.js +185 -0
- package/lib/help.js +138 -137
- package/lib/installer-args.js +28 -28
- package/lib/installer-target.js +134 -134
- package/lib/mcp-config.js +981 -981
- package/lib/project-env.js +198 -198
- package/lib/project-paths.js +257 -257
- package/lib/remote-commands.js +392 -392
- package/lib/start-command.js +140 -129
- package/lib/start.js +1440 -1423
- package/lib/template-commands.js +812 -812
- package/package.json +1 -1
- package/vendor/core/cli-onboarding.cjs +79 -0
- package/vendor/core/github-workflow.cjs +199 -186
- package/vendor/core/onboarding.cjs +2409 -2405
- package/vendor/core/template-publish-workflow.cjs +169 -169
- package/vendor/templates/index.js +104 -104
- package/vendor/templates/templates/basic-worker/files/worker.js +9 -9
- package/vendor/templates/templates/basic-worker/manifest.json +14 -14
- package/vendor/templates/templates/r2-file-api/files/worker.js +42 -42
- package/vendor/templates/templates/r2-file-api/manifest.json +7 -7
package/README.md
CHANGED
|
@@ -20,6 +20,28 @@ Requires **Node.js 18 or later and npm** on Windows, macOS, or Linux. No TypeScr
|
|
|
20
20
|
|
|
21
21
|
## Connect a project
|
|
22
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
|
+
|
|
23
45
|
Run commands from your project directory. Quote paths containing spaces or non-ASCII characters.
|
|
24
46
|
|
|
25
47
|
```sh
|
|
@@ -50,11 +72,11 @@ You can continue using npx instead. Global installation and permanent PATH chang
|
|
|
50
72
|
|
|
51
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.
|
|
52
74
|
|
|
53
|
-
The CLI preserves existing
|
|
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.
|
|
54
76
|
|
|
55
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.
|
|
56
78
|
|
|
57
|
-
The `executable` field in a `start` response
|
|
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 `&`.
|
|
58
80
|
|
|
59
81
|
## Development and package verification
|
|
60
82
|
|
|
@@ -74,10 +96,10 @@ Set `JORIPSPACE_BASELINE_CLI` to the original `bin/joripspace.js` path to compar
|
|
|
74
96
|
To try a tarball before publishing, use its absolute path:
|
|
75
97
|
|
|
76
98
|
```sh
|
|
77
|
-
npm exec --yes --package="/absolute/path/joripspace-cli-0.
|
|
99
|
+
npm exec --yes --package="/absolute/path/joripspace-cli-0.5.0.tgz" -- joripspace --help
|
|
78
100
|
```
|
|
79
101
|
|
|
80
|
-
On Windows, use a path such as `C:/path/to/joripspace-cli-0.
|
|
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).
|
|
81
103
|
|
|
82
104
|
## License
|
|
83
105
|
|
|
@@ -93,4 +115,4 @@ Third-party dependencies retain their original licenses and copyrights. See [Thi
|
|
|
93
115
|
|
|
94
116
|
- Website: [joripspace.com](https://joripspace.com)
|
|
95
117
|
- Email: [support@cosmosfarm.com](mailto:support@cosmosfarm.com)
|
|
96
|
-
- Bug reports: [GitHub Issues](https://github.com/JoripSpace/joripspace-cli/issues)
|
|
118
|
+
- Bug reports: [GitHub Issues](https://github.com/JoripSpace/joripspace-cli/issues)
|