newsline-cli 1.0.0 → 1.0.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 +1 -1
- package/newsline +3 -3
- package/package.json +5 -1
- package/readme/de.md +1 -1
- package/readme/es.md +1 -1
- package/readme/fr.md +1 -1
- package/readme/ja.md +1 -1
- package/readme/ko.md +1 -1
- package/readme/pt.md +1 -1
- package/readme/zh.md +1 -1
- package/refresh.sh +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ Re-run `newsline init`, or edit `~/.config/newsline/config.json`:
|
|
|
70
70
|
| `count` | `15` | headlines in rotation |
|
|
71
71
|
| `maxlen` | `120` | max characters (`max` = no cut) |
|
|
72
72
|
| `icon` | `📰` | leading glyph (`none` to hide) |
|
|
73
|
-
| `color` | `
|
|
73
|
+
| `color` | `magenta` | headline color: `default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
74
74
|
|
|
75
75
|
Set one directly with `newsline color <name>` (e.g. `newsline color gray`), or run
|
|
76
76
|
`newsline color` with no name to step to the next color (default → gray → white → cyan →
|
package/newsline
CHANGED
|
@@ -193,14 +193,14 @@ cmd_init() {
|
|
|
193
193
|
fi
|
|
194
194
|
local cur_color; cur_color=$(cfg_get color)
|
|
195
195
|
echo "Select headline color (change anytime: newsline color):" >&2
|
|
196
|
-
choose "${cur_color:-
|
|
196
|
+
choose "${cur_color:-magenta}" \
|
|
197
197
|
default "Terminal default" cyan "Cyan" gray "Gray" white "White" \
|
|
198
198
|
yellow "Yellow" green "Green" blue "Blue" magenta "Magenta" red "Red"
|
|
199
199
|
color="$CHOICE"
|
|
200
200
|
else
|
|
201
|
-
# --yes: keep a color previously set via init/`newsline color`;
|
|
201
|
+
# --yes: keep a color previously set via init/`newsline color`; magenta on first run
|
|
202
202
|
lang="${lang:-$detected}"; topic="${topic:-general}"
|
|
203
|
-
color=$(cfg_get color); [ -n "$color" ] || color="
|
|
203
|
+
color=$(cfg_get color); [ -n "$color" ] || color="magenta"
|
|
204
204
|
fi
|
|
205
205
|
|
|
206
206
|
# Always KEEP an existing status line and show newsline below it (no prompt).
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newsline-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Locale-aware one-line news in your Claude Code status line — local, composes with your existing status line.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"newsline": "newsline"
|
|
7
7
|
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"sync-version": "bash scripts/sync-version.sh",
|
|
10
|
+
"version": "npm run --silent sync-version && git add package.json .claude-plugin/plugin.json .claude-plugin/marketplace.json refresh.sh"
|
|
11
|
+
},
|
|
8
12
|
"files": [
|
|
9
13
|
"newsline",
|
|
10
14
|
"statusline.sh",
|
package/readme/de.md
CHANGED
|
@@ -73,7 +73,7 @@ Führe `newsline init` erneut aus oder bearbeite `~/.config/newsline/config.json
|
|
|
73
73
|
| `count` | `15` | Schlagzeilen im Wechsel |
|
|
74
74
|
| `maxlen` | `120` | maximale Zeichen (`max` = kein Abschneiden) |
|
|
75
75
|
| `icon` | `📰` | vorangestelltes Symbol (`none` zum Ausblenden) |
|
|
76
|
-
| `color` | `
|
|
76
|
+
| `color` | `magenta` | Farbe der Schlagzeile: `default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
77
77
|
|
|
78
78
|
Eine direkt setzen mit `newsline color <name>` (z. B. `newsline color gray`), oder
|
|
79
79
|
`newsline color` ohne Namen ausführen, um zur nächsten Farbe zu wechseln (default → gray →
|
package/readme/es.md
CHANGED
|
@@ -72,7 +72,7 @@ Vuelve a ejecutar `newsline init` o edita `~/.config/newsline/config.json`:
|
|
|
72
72
|
| `count` | `15` | titulares en rotación |
|
|
73
73
|
| `maxlen` | `120` | caracteres máximos (`max` = sin recorte) |
|
|
74
74
|
| `icon` | `📰` | icono inicial (`none` para ocultarlo) |
|
|
75
|
-
| `color` | `
|
|
75
|
+
| `color` | `magenta` | color del titular: `default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
76
76
|
|
|
77
77
|
Fija uno directamente con `newsline color <nombre>` (p. ej. `newsline color gray`), o usa
|
|
78
78
|
`newsline color` sin nombre para pasar al siguiente color (default → gray → white → cyan →
|
package/readme/fr.md
CHANGED
|
@@ -73,7 +73,7 @@ Relancez `newsline init`, ou modifiez `~/.config/newsline/config.json` :
|
|
|
73
73
|
| `count` | `15` | titres en rotation |
|
|
74
74
|
| `maxlen` | `120` | caractères maximum (`max` = sans coupure) |
|
|
75
75
|
| `icon` | `📰` | icône de tête (`none` pour masquer) |
|
|
76
|
-
| `color` | `
|
|
76
|
+
| `color` | `magenta` | couleur du titre : `default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
77
77
|
|
|
78
78
|
Définissez-en une directement avec `newsline color <nom>` (p. ex. `newsline color gray`), ou
|
|
79
79
|
utilisez `newsline color` sans nom pour passer à la couleur suivante (default → gray → white →
|
package/readme/ja.md
CHANGED
|
@@ -71,7 +71,7 @@ npm i -g newsline-cli && newsline init
|
|
|
71
71
|
| `count` | `15` | 切り替えるヘッドライン数 |
|
|
72
72
|
| `maxlen` | `120` | 最大文字数(`max` = 無制限) |
|
|
73
73
|
| `icon` | `📰` | 先頭アイコン(`none` で非表示) |
|
|
74
|
-
| `color` | `
|
|
74
|
+
| `color` | `magenta` | 見出しの文字色:`default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
75
75
|
|
|
76
76
|
`newsline color <名前>` で色を直接指定でき(例:`newsline color gray`)、名前なしで
|
|
77
77
|
`newsline color` を実行すると次の色へ進みます(default → gray → white → cyan → yellow →
|
package/readme/ko.md
CHANGED
|
@@ -67,7 +67,7 @@ npm i -g newsline-cli && newsline init
|
|
|
67
67
|
| `count` | `15` | 회전 헤드라인 수 |
|
|
68
68
|
| `maxlen` | `120` | 최대 글자수 (`max`=무제한) |
|
|
69
69
|
| `icon` | `📰` | 앞 아이콘 (`none`이면 제거) |
|
|
70
|
-
| `color` | `
|
|
70
|
+
| `color` | `magenta` | 뉴스 글자 색: `default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
71
71
|
|
|
72
72
|
`newsline color <이름>`으로 색을 바로 지정하거나(예: `newsline color gray`), 이름 없이
|
|
73
73
|
`newsline color`를 실행하면 다음 색으로 넘어갑니다 (default → gray → white → cyan →
|
package/readme/pt.md
CHANGED
|
@@ -71,7 +71,7 @@ Execute `newsline init` novamente ou edite `~/.config/newsline/config.json`:
|
|
|
71
71
|
| `count` | `15` | manchetes na rotação |
|
|
72
72
|
| `maxlen` | `120` | máximo de caracteres (`max` = sem corte) |
|
|
73
73
|
| `icon` | `📰` | ícone inicial (`none` para ocultar) |
|
|
74
|
-
| `color` | `
|
|
74
|
+
| `color` | `magenta` | cor da manchete: `default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
75
75
|
|
|
76
76
|
Defina uma diretamente com `newsline color <nome>` (ex.: `newsline color gray`), ou use
|
|
77
77
|
`newsline color` sem nome para avançar para a próxima cor (default → gray → white → cyan →
|
package/readme/zh.md
CHANGED
|
@@ -65,7 +65,7 @@ npm i -g newsline-cli && newsline init
|
|
|
65
65
|
| `count` | `15` | 轮播头条数量 |
|
|
66
66
|
| `maxlen` | `120` | 最大字符数(`max` = 不截断) |
|
|
67
67
|
| `icon` | `📰` | 前置图标(`none` 为隐藏) |
|
|
68
|
-
| `color` | `
|
|
68
|
+
| `color` | `magenta` | 新闻文字颜色:`default` `gray` `white` `cyan` `yellow` `green` `blue` `magenta` `red` |
|
|
69
69
|
|
|
70
70
|
用 `newsline color <名称>` 直接设置颜色(如 `newsline color gray`),或不带名称运行
|
|
71
71
|
`newsline color` 切换到下一种颜色(default → gray → white → cyan → yellow → green → blue →
|
package/refresh.sh
CHANGED
|
@@ -23,7 +23,7 @@ case "$API" in off|OFF|none|local) API="" ;; esac
|
|
|
23
23
|
COUNT="${NEWSLINE_COUNT:-15}" # how many headlines to cache for rotation
|
|
24
24
|
# Client version, sent to /feed as ?v= for the server-side update nudge.
|
|
25
25
|
# Bump together with package.json when tagging a release.
|
|
26
|
-
export NEWSLINE_VERSION="${NEWSLINE_VERSION:-1.0.
|
|
26
|
+
export NEWSLINE_VERSION="${NEWSLINE_VERSION:-1.0.1}"
|
|
27
27
|
LOCK="$CACHE_DIR/refresh.lock"
|
|
28
28
|
mkdir -p "$CACHE_DIR" 2>/dev/null
|
|
29
29
|
|