Skip to content

fix(extension-usage): namespace token command#913

Merged
dingyi222666 merged 1 commit into
v1-devfrom
fix/usage-command
Jun 10, 2026
Merged

fix(extension-usage): namespace token command#913
dingyi222666 merged 1 commit into
v1-devfrom
fix/usage-command

Conversation

@dingyi222666

Copy link
Copy Markdown
Member

This pr namespaces the usage token trend command under ChatLuna commands.

Bug fixes

  • Rename the primary token trend command to chatluna.tokens.
  • Keep chatluna.usage and tokens aliases for compatibility.

Other Changes

  • Bump koishi-plugin-chatluna-usage to 1.0.3.

Validation

  • yarn lint-fix (0 errors, existing max-len warnings only)

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

Walkthrough

token趋势查询命令的命令主名从 tokens 变更为 chatluna.tokens,别名从原先的 /tokens 调整为 chatluna.usagetokens,命令的描述与执行逻辑保持不变。

Changes

Token查询命令路由调整

Layer / File(s) Summary
Token查询命令路由调整
packages/extension-usage/src/index.ts
命令主名更新为 chatluna.tokens [...],别名集合调整为支持 chatluna.usagetokens 两个别名,以适配新的命名空间结构。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • ChatLunaLab/chatluna#895:同样涉及 packages/extension-usage/src/index.tstokens 指令的注册与别名调整,两个PR在代码层面存在直接关联。

Poem

小兔欢呼声不断,
chatluna.tokens 新路线,
别名更新显风范,💫
命名空间更顺畅,
查询流量齐欢颜! 🐰

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed 标题清晰准确地总结了主要变更:将 token 命令命名空间化至 ChatLuna 命令下,与文件变更内容(命令名从 tokens 改为 chatluna.tokens)完全对应。
Description check ✅ Passed 描述与变更集相关且信息充分,详细说明了命令命名空间化、兼容性别名保留以及版本更新等所有主要变更内容。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/usage-command

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the package version of koishi-plugin-chatluna-usage to 1.0.3 and modifies the command registration in packages/extension-usage/src/index.ts. Specifically, the command name has been changed from tokens to chatluna.tokens, and its alias has been updated to chatluna.usage and tokens. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@dingyi222666 dingyi222666 merged commit 4ace648 into v1-dev Jun 10, 2026
4 of 5 checks passed
@dingyi222666 dingyi222666 deleted the fix/usage-command branch June 15, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant