@cxmyu/ccglance 1.1.1 → 1.1.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/README.md +12 -0
- package/README.zh-CN.md +10 -0
- package/dist/runtime/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,6 +19,18 @@ model · effort · context · cache · git · session — all at a glance
|
|
|
19
19
|
|
|
20
20
|
**Docs:** [Overview](./docs/overview.md) · [Segments & icons](./docs/segments.md) · [Development](./docs/development.md)
|
|
21
21
|
|
|
22
|
+
## Terminal Font
|
|
23
|
+
|
|
24
|
+
Use a Nerd Font in your terminal so emoji, Nerd Font icons, arrows, and box-like
|
|
25
|
+
symbols keep consistent width. [Maple Mono NF](https://github.com/subframe7536/maple-font)
|
|
26
|
+
is a good default; use `Maple Mono NF CN` if you want better CJK coverage.
|
|
27
|
+
|
|
28
|
+
ccglance intentionally outputs standard Unicode emoji. A Nerd Font improves text
|
|
29
|
+
metrics and symbol coverage, but color emoji are still rendered by the operating
|
|
30
|
+
system's emoji font (for example Segoe UI Emoji on Windows, Apple Color Emoji on
|
|
31
|
+
macOS, and Noto Color Emoji on many Linux desktops), so their artwork can differ
|
|
32
|
+
across platforms.
|
|
33
|
+
|
|
22
34
|
## Install
|
|
23
35
|
|
|
24
36
|
### Option A — npm (global, recommended)
|
package/README.zh-CN.md
CHANGED
|
@@ -19,6 +19,16 @@
|
|
|
19
19
|
|
|
20
20
|
**文档:** [概览](./docs/overview.zh-CN.md) · [字段与图标](./docs/segments.zh-CN.md) · [开发](./docs/development.zh-CN.md)
|
|
21
21
|
|
|
22
|
+
## 终端字体
|
|
23
|
+
|
|
24
|
+
终端建议使用 Nerd Font,避免 emoji、Nerd Font 图标、箭头和类进度符号宽度不一致。
|
|
25
|
+
首选可以用 [Maple Mono NF](https://github.com/subframe7536/maple-font);
|
|
26
|
+
需要更好的中文显示时用 `Maple Mono NF CN`。
|
|
27
|
+
|
|
28
|
+
ccglance 会固定输出标准 Unicode emoji。Nerd Font 可以改善文本宽度和符号覆盖,
|
|
29
|
+
但彩色 emoji 仍由系统 emoji 字体渲染(例如 Windows 的 Segoe UI Emoji、
|
|
30
|
+
macOS 的 Apple Color Emoji、很多 Linux 桌面的 Noto Color Emoji),所以不同平台的图案可能不同。
|
|
31
|
+
|
|
22
32
|
## 安装
|
|
23
33
|
|
|
24
34
|
### 方式 A —— npm 全局安装(推荐)
|
package/dist/runtime/version.js
CHANGED
|
@@ -9,7 +9,7 @@ const fs_1 = __importDefault(require("fs"));
|
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
10
|
const paths_1 = require("../utils/paths");
|
|
11
11
|
const refresh_1 = require("./refresh");
|
|
12
|
-
const CACHE_TTL_MS =
|
|
12
|
+
const CACHE_TTL_MS = 2 * 3600 * 1000;
|
|
13
13
|
const REFRESH_THROTTLE_MS = 60 * 1000;
|
|
14
14
|
const cacheFile = path_1.default.join((0, paths_1.cacheDir)('version'), 'claude-code.json');
|
|
15
15
|
const refreshFile = path_1.default.join((0, paths_1.cacheDir)('version'), 'claude-code.refresh');
|
package/package.json
CHANGED