@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.
Files changed (56) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +73 -1
  3. package/dist/cbx/LICENSE +202 -0
  4. package/dist/cbx/NOTICE +8 -0
  5. package/dist/{desktop-app/src/main → cbx/src/core}/cbx.js +31 -0
  6. package/dist/{desktop-app/src/main → cbx/src/core}/download.js +62 -1
  7. package/dist/{desktop-app/src/main → cbx/src/core}/rules.js +2 -0
  8. package/dist/cbx/src/local/errors.js +23 -0
  9. package/dist/cbx/src/local/history.js +522 -0
  10. package/dist/cbx/src/local/merge.js +277 -0
  11. package/dist/cbx/src/local/merge_text.js +148 -0
  12. package/dist/cbx/src/local/remote.js +437 -0
  13. package/dist/cbx/src/local/repository.js +324 -0
  14. package/dist/cbx/src/local/snapshot.js +338 -0
  15. package/dist/cbx/src/local/store.js +258 -0
  16. package/dist/{desktop-app → cbx}/src/shared/safe_path.js +12 -0
  17. package/dist/cli/src/api.js +114 -2
  18. package/dist/cli/src/cli.js +198 -22
  19. package/dist/cli/src/diff_command.js +2 -2
  20. package/dist/cli/src/git_remote.js +6 -6
  21. package/dist/cli/src/licence_commands.js +3 -3
  22. package/dist/cli/src/local_commands.js +506 -0
  23. package/dist/cli/src/mcp.js +2 -2
  24. package/dist/cli/src/pages_command.js +625 -0
  25. package/dist/cli/src/project_commands.js +1 -0
  26. package/dist/cli/src/registry.js +1 -0
  27. package/dist/cli/src/runner.js +2 -2
  28. package/dist/cli/src/track_commands.js +1 -1
  29. package/package.json +2 -2
  30. package/skills/coderook/SKILL.md +41 -0
  31. /package/dist/{desktop-app/src/main → cbx/src/core}/compress.js +0 -0
  32. /package/dist/{desktop-app/src/main → cbx/src/core}/credentials.js +0 -0
  33. /package/dist/{desktop-app/src/main → cbx/src/core}/detect.js +0 -0
  34. /package/dist/{desktop-app/src/main → cbx/src/core}/faults.js +0 -0
  35. /package/dist/{desktop-app/src/main → cbx/src/core}/identify.js +0 -0
  36. /package/dist/{desktop-app/src/main → cbx/src/core}/ignore_templates.js +0 -0
  37. /package/dist/{desktop-app/src/main → cbx/src/core}/licence_texts.js +0 -0
  38. /package/dist/{desktop-app/src/main → cbx/src/core}/licences.js +0 -0
  39. /package/dist/{desktop-app/src/main → cbx/src/core}/profile.js +0 -0
  40. /package/dist/{desktop-app/src/main → cbx/src/core}/publish_name.js +0 -0
  41. /package/dist/{desktop-app/src/main → cbx/src/core}/retry.js +0 -0
  42. /package/dist/{desktop-app/src/main → cbx/src/core}/secret_patterns.js +0 -0
  43. /package/dist/{desktop-app/src/main → cbx/src/core}/solid.js +0 -0
  44. /package/dist/{desktop-app/src/main → cbx/src/core}/staging.js +0 -0
  45. /package/dist/{desktop-app/src/main → cbx/src/core}/tracks.js +0 -0
  46. /package/dist/{desktop-app/src/main → cbx/src/core}/transfer_progress.js +0 -0
  47. /package/dist/{desktop-app/src/main → cbx/src/core}/upload.js +0 -0
  48. /package/dist/{desktop-app/src/main → cbx/src/core}/worktree.js +0 -0
  49. /package/dist/{desktop-app → cbx}/src/shared/chunking.js +0 -0
  50. /package/dist/{desktop-app → cbx}/src/shared/compression_policy.js +0 -0
  51. /package/dist/{desktop-app → cbx}/src/shared/delta.js +0 -0
  52. /package/dist/{desktop-app → cbx}/src/shared/format.js +0 -0
  53. /package/dist/{desktop-app → cbx}/src/shared/merge_diff.js +0 -0
  54. /package/dist/{desktop-app → cbx}/src/shared/publication.js +0 -0
  55. /package/dist/{desktop-app → cbx}/src/shared/telemetry.js +0 -0
  56. /package/dist/{desktop-app → cbx}/src/shared/types.js +0 -0
@@ -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