@coderook/cli 0.42.1 → 0.42.2
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/dist/cli/src/cli.js +14 -1
- package/package.json +1 -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.42.
|
|
5
|
+
"version": "0.42.2",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "ACCA Gaming Productions",
|
|
8
8
|
"url": "https://coderook.com"
|
package/dist/cli/src/cli.js
CHANGED
|
@@ -103,9 +103,22 @@ function bytes(value) {
|
|
|
103
103
|
/** One line that rewrites itself, so progress does not scroll the terminal. */
|
|
104
104
|
function progressLine() {
|
|
105
105
|
let last = 0;
|
|
106
|
+
let lastPlain = 0;
|
|
106
107
|
return (text) => {
|
|
107
|
-
|
|
108
|
+
/*
|
|
109
|
+
Without a terminal (a script, a bot, a CI log) the redrawn bar cannot
|
|
110
|
+
work, and this used to print nothing at all: a 1.79 GB clone ran for
|
|
111
|
+
minutes in silence and was taken for a hang (2026-11-05). So a plain
|
|
112
|
+
line instead, at most every ten seconds.
|
|
113
|
+
*/
|
|
114
|
+
if (!node_process_1.default.stdout.isTTY) {
|
|
115
|
+
const now = Date.now();
|
|
116
|
+
if (now - lastPlain < 10_000)
|
|
117
|
+
return;
|
|
118
|
+
lastPlain = now;
|
|
119
|
+
node_process_1.default.stdout.write(`${text.replace(/\[[0-9;]*m/g, "").replace(/[█░▏▎▍▌▋▊▉]+/g, "").replace(/\s+/g, " ").trim()}\n`);
|
|
108
120
|
return;
|
|
121
|
+
}
|
|
109
122
|
/*
|
|
110
123
|
Measured without the colour codes. Padding to the raw length of a string
|
|
111
124
|
carrying escape sequences overshoots by however many invisible
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coderook/cli",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.2",
|
|
4
4
|
"description": "The command line for CodeRook (coderook.com): version control and project hosting for projects of any size. Every save is a compressed snapshot, private or public, never used to train AI.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://coderook.com",
|