Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,18 @@ on your selected branch. It explains Session coordination; it does not install M
npx skills add apache/maka --skill maka-cli
```

## Code blocks in the TUI

The live conversation and detailed transcript reader highlight tagged Markdown code blocks using
the terminal's existing color settings. `NO_COLOR` and `TERM=dumb` disable highlighting colors.

Supported languages are Bash (`sh`, `shell`, `zsh`), C, C++ (`c++`), C# (`cs`), CSS, diff, Go,
Java, JavaScript (`js`, `jsx`, `mjs`, `cjs`), JSON, Markdown (`md`), PowerShell (`ps1`),
Python (`py`), Rust (`rs`), SQL, TypeScript (`ts`, `tsx`), XML (`html`, `htm`, `svg`), and
YAML (`yml`). Tags are case-insensitive. Missing or unknown tags, highlighting failures, and
blocks longer than 4,096 UTF-16 code units render as plain code. Language auto-detection is
disabled; highlighting never changes stored message content.

## Upgrade

Update within the nightly line by pinning the exact release (`--target` accepts `latest`,
Expand Down
11 changes: 11 additions & 0 deletions packages/cli/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,17 @@ skill 本身不安装 Maka CLI:
npx skills add apache/maka --skill maka-cli
```

## TUI 代码块

实时对话和详细记录阅读器会按终端现有的颜色设置,高亮带语言标签的 Markdown 代码块。
设置 `NO_COLOR` 或 `TERM=dumb` 可禁用高亮颜色。

支持 Bash(`sh`、`shell`、`zsh`)、C、C++(`c++`)、C#(`cs`)、CSS、diff、Go、Java、
JavaScript(`js`、`jsx`、`mjs`、`cjs`)、JSON、Markdown(`md`)、PowerShell(`ps1`)、
Python(`py`)、Rust(`rs`)、SQL、TypeScript(`ts`、`tsx`)、XML(`html`、`htm`、`svg`)
和 YAML(`yml`),标签不区分大小写。标签缺失或未知、高亮失败,以及长度超过 4,096 个
UTF-16 代码单元的代码块均显示为纯文本。不自动检测语言,高亮不会修改保存的消息内容。

## 升级

在 nightly 线内更新时固定精确版本(`--target` 只接受 `latest`、`next` 或精确的 Maka
Expand Down
38 changes: 38 additions & 0 deletions packages/cli/THIRD_PARTY_NOTICES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4605,6 +4605,44 @@ SOFTWARE.

================================================================================

Package: highlight.js@11.12.0
Declared license: BSD-3-Clause
Selected license: BSD-3-Clause
Repository: git://github.com/highlightjs/highlight.js.git

--- LICENSE ---
BSD 3-Clause License

Copyright (c) 2006, Ivan Sagalaev.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

================================================================================

Package: html-escaper@3.0.3
Declared license: MIT
Selected license: MIT
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@maka/mcp": "0.1.0",
"@maka/runtime": "0.1.0",
"@maka/runtime-host": "0.1.0",
"@maka/storage": "0.1.0"
"@maka/storage": "0.1.0",
"highlight.js": "11.12.0"
}
}
Loading
Loading