@coderook/cli 0.31.12 → 0.32.0
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/.claude-plugin/plugin.json +1 -1
- package/README.md +73 -1
- package/dist/cbx/LICENSE +202 -0
- package/dist/cbx/NOTICE +8 -0
- package/dist/{desktop-app/src/main → cbx/src/core}/cbx.js +31 -0
- package/dist/{desktop-app/src/main → cbx/src/core}/download.js +62 -1
- package/dist/{desktop-app/src/main → cbx/src/core}/rules.js +2 -0
- package/dist/cbx/src/local/errors.js +23 -0
- package/dist/cbx/src/local/history.js +522 -0
- package/dist/cbx/src/local/merge.js +277 -0
- package/dist/cbx/src/local/merge_text.js +148 -0
- package/dist/cbx/src/local/remote.js +437 -0
- package/dist/cbx/src/local/repository.js +324 -0
- package/dist/cbx/src/local/snapshot.js +338 -0
- package/dist/cbx/src/local/store.js +258 -0
- package/dist/{desktop-app → cbx}/src/shared/safe_path.js +12 -0
- package/dist/cli/src/api.js +114 -2
- package/dist/cli/src/cli.js +198 -22
- package/dist/cli/src/diff_command.js +2 -2
- package/dist/cli/src/git_remote.js +6 -6
- package/dist/cli/src/licence_commands.js +3 -3
- package/dist/cli/src/local_commands.js +506 -0
- package/dist/cli/src/mcp.js +2 -2
- package/dist/cli/src/pages_command.js +625 -0
- package/dist/cli/src/project_commands.js +1 -0
- package/dist/cli/src/registry.js +1 -0
- package/dist/cli/src/runner.js +2 -2
- package/dist/cli/src/track_commands.js +1 -1
- package/package.json +2 -2
- package/skills/coderook/SKILL.md +41 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/compress.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/credentials.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/detect.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/faults.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/identify.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/ignore_templates.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/licence_texts.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/licences.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/profile.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/publish_name.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/retry.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/secret_patterns.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/solid.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/staging.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/tracks.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/transfer_progress.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/upload.js +0 -0
- /package/dist/{desktop-app/src/main → cbx/src/core}/worktree.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/chunking.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/compression_policy.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/delta.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/format.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/merge_diff.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/publication.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/telemetry.js +0 -0
- /package/dist/{desktop-app → cbx}/src/shared/types.js +0 -0
package/skills/coderook/SKILL.md
CHANGED
|
@@ -81,6 +81,30 @@ cbx submit --track spike -m "…"
|
|
|
81
81
|
Switching says where the next save goes and nothing else — no files move.
|
|
82
82
|
Run `cbx get` afterwards to bring that line's files in.
|
|
83
83
|
|
|
84
|
+
## A history on this machine
|
|
85
|
+
|
|
86
|
+
A folder with a `.cbx/` folder in it keeps its own history, and there
|
|
87
|
+
`status`, `diff`, `log`, `switch`, `merge`, `push` and `pull` work on that
|
|
88
|
+
history instead of the account. Check with `cbx status`: it names the line and
|
|
89
|
+
the last local save.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
cbx init # start one (only when asked to)
|
|
93
|
+
cbx save -m "…" # record the folder as it is
|
|
94
|
+
cbx log # saves on this line
|
|
95
|
+
cbx switch -c spike # start a line here; no files change
|
|
96
|
+
cbx merge spike # bring that line's work in
|
|
97
|
+
cbx restore path --from main~1 # put a file back from an earlier save
|
|
98
|
+
cbx push # send new saves to CodeRook
|
|
99
|
+
cbx pull # bring CodeRook's saves in, merging if both moved
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
A merge that stops on conflicts leaves markers in the files and waits. Show
|
|
103
|
+
the person the conflicts (`cbx status`) and let them decide; `cbx save`
|
|
104
|
+
finishes the merge once the markers are gone. Do not pass `--force` to
|
|
105
|
+
`restore`, `switch`, `save` or `pull` unless the person has said to throw away
|
|
106
|
+
the changes it names, and do not run `cbx merge --cancel` unless they asked.
|
|
107
|
+
|
|
84
108
|
## Versions, and going back
|
|
85
109
|
|
|
86
110
|
Every save is a commit. A commit becomes a *version* — the thing the public
|
|
@@ -115,6 +139,23 @@ cbx visibility private # back to the people invited
|
|
|
115
139
|
exactly that.** `--yes` skips the question the command would otherwise ask
|
|
116
140
|
them, so only pass it once they have answered it. Going private is always safe.
|
|
117
141
|
|
|
142
|
+
## Serving a project as a website
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
cbx pages # is the site on, its address, what it serves
|
|
146
|
+
cbx pages auto # find the build in what was published, and offer to serve it
|
|
147
|
+
cbx pages on --folder dist # serve a folder of the published version
|
|
148
|
+
cbx pages off # stop serving it
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**Never turn Pages on (`auto` or `on`) unless the person has asked for their
|
|
152
|
+
project to be served as a site.** It runs their code in strangers' browsers
|
|
153
|
+
under the project's name. Pass `--yes` only once they have said yes. Only
|
|
154
|
+
published versions are served and the project must be public. When `auto`
|
|
155
|
+
finds a build left out by the ignore rules it offers a `.gitignore` line and
|
|
156
|
+
lists the next steps; it never saves or publishes — ask before doing those.
|
|
157
|
+
Turning Pages off is always safe.
|
|
158
|
+
|
|
118
159
|
## When two saves collide
|
|
119
160
|
|
|
120
161
|
If somebody saved while this folder was behind, the second save becomes a merge
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|