@coderook/cli 0.34.10 → 0.35.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 +40 -0
- package/dist/cbx/src/core/download.js +370 -96
- package/dist/cbx/src/core/rules.js +65 -4
- package/dist/cbx/src/core/worktree.js +37 -4
- package/dist/cli/src/cli.js +94 -8
- package/dist/cli/src/mods_command.js +518 -0
- package/dist/cli/src/network.js +11 -0
- package/dist/cli/src/zip_writer.js +188 -0
- package/package.json +1 -1
- package/skills/coderook/SKILL.md +26 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "coderook",
|
|
3
3
|
"displayName": "CodeRook",
|
|
4
4
|
"description": "Save, browse and restore whole-snapshot versions of a project on CodeRook, with cbx or plain git, from Claude Code.",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.35.0",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ACCA Gaming Productions",
|
|
8
8
|
"url": "https://coderook.com"
|
package/README.md
CHANGED
|
@@ -462,6 +462,46 @@ https://api.coderook.com/v1/public/projects/OWNER/SLUG/releases
|
|
|
462
462
|
https://api.coderook.com/v1/public/projects/OWNER/SLUG/updates electron-updater's generic provider
|
|
463
463
|
```
|
|
464
464
|
|
|
465
|
+
## Mod repositories for games
|
|
466
|
+
|
|
467
|
+
A mod repository is where a game's players get mods from. The game's maker
|
|
468
|
+
sets one up and its rules; modders publish with their own accounts; nothing is
|
|
469
|
+
listed until it passes those rules and a malware scan.
|
|
470
|
+
|
|
471
|
+
```
|
|
472
|
+
cbx mods create my-game --name "My Game" --allow .png,.ogg,.json --nested .pak
|
|
473
|
+
cbx mods builds my-game --new a build secret for the game, shown once
|
|
474
|
+
cbx mods builds my-game --register secret.bin or your own, never printed
|
|
475
|
+
cbx mods info my-game the address and public key to pin
|
|
476
|
+
cbx mods settings my-game --uploads owner change the rules
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
Rules: `--allow` and `--block` for file types (programs and scripts such as
|
|
480
|
+
`.exe`, `.dll`, `.ps1` and `.js` are refused in every repository, and so is a
|
|
481
|
+
file that is really a program whatever it is called), `--nested` for archive
|
|
482
|
+
types that are opened and checked too, `--manifest` and `--fields` for the
|
|
483
|
+
manifest each part carries (`mod.json` by default) and which of its fields must
|
|
484
|
+
match, `--max-part`, `--max-files`, `--max-parts` and `--max-ratio` for size,
|
|
485
|
+
and `--uploads anyone|owner`.
|
|
486
|
+
|
|
487
|
+
```
|
|
488
|
+
cbx mods publish ./BetterTrees --repo my-game zip, upload, wait for the checks
|
|
489
|
+
cbx mods publish ./HD-Art --repo my-game --part animals one part of a bigger mod
|
|
490
|
+
cbx mods list my-game your mods and how their checks went
|
|
491
|
+
cbx mods remove better-trees --repo my-game
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
`publish` reads the folder's manifest for the mod's id, name, folder and
|
|
495
|
+
version (`--id`, `--name`, `--folder` and `--version` override it), writes the
|
|
496
|
+
manifest the repository expects into the zip, uploads in pieces that are
|
|
497
|
+
retried, and waits up to 30 minutes for the result; `--no-wait` returns
|
|
498
|
+
straight away. A rejected part says what was wrong, file by file.
|
|
499
|
+
|
|
500
|
+
The owner also has `cbx mods reports`, `cbx mods block <username> --take-down`,
|
|
501
|
+
`cbx mods list --all`, `cbx mods remove --as-owner` and `cbx mods delete`.
|
|
502
|
+
How the game signs its requests and checks the catalogue is at
|
|
503
|
+
<https://coderook.com/docs#mod-repositories>.
|
|
504
|
+
|
|
465
505
|
## Building for every platform
|
|
466
506
|
|
|
467
507
|
```
|