Skip to content

Commit ffdd5aa

Browse files
DaYePythonclaude
andcommitted
refactor: rename lanhu-context-cli package to @lanhu-context/cli, repo to lanhu-context
Unscoped publish was rejected (E403) by the org-scoped npm token; moving the CLI under the @lanhu-context scope matches the token grant and the renamed GitHub repo. Bin names (lanhu / lanhu-context) unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent f33b58f commit ffdd5aa

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎DESIGN.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# lanhu-context-cli 架构设计
1+
# lanhu-context 架构设计
22

33
> 从 lanhu-context-mcp 升级而来、专为 CLI 与 AI 自动化设计的工具。
44
> 遵循 UNIX 原则:每个命令只做一件事、可组合、可管道化、机器可读。
@@ -52,7 +52,7 @@
5252

5353
## 2. 定位与设计目标
5454

55-
**lanhu-context-cli 是一个"设计稿上下文管道工具箱"**:把蓝湖设计稿 URL 按阶段拆成一组可独立调用、可管道组合的小命令,默认输出机器可读结构,为 AI Agent(skills 调度)与 shell 自动化优化,同时保留一条 MCP 兼容通道。
55+
**lanhu-context 是一个"设计稿上下文管道工具箱"**:把蓝湖设计稿 URL 按阶段拆成一组可独立调用、可管道组合的小命令,默认输出机器可读结构,为 AI Agent(skills 调度)与 shell 自动化优化,同时保留一条 MCP 兼容通道。
5656

5757
设计原则映射(对应需求中的 7 条 CLI 原则):
5858

@@ -71,7 +71,7 @@
7171
## 3. Monorepo 架构
7272

7373
```text
74-
lanhu-context-cli/
74+
lanhu-context/
7575
├── pnpm-workspace.yaml
7676
├── package.json # 根:脚本编排、工具链
7777
├── tsconfig.base.json
@@ -85,7 +85,7 @@ lanhu-context-cli/
8585
│ │ ├── pipeline/ # 各阶段的编排函数:每阶段独立导出 + composeContext() 复合
8686
│ │ ├── errors.ts # LanhuError { code, severity, hint, retryable } + 错误码表
8787
│ │ └── types/ # LanhuUrlParams / SchemaNode / DesignMeta / StageResult ...
88-
│ ├── cli/ # lanhu-context-cli —— bin: `lanhu`
88+
│ ├── cli/ # @lanhu-context/cli —— bin: `lanhu`
8989
│ │ └── src/
9090
│ │ ├── commands/ # 一命令一文件:parse/meta/schema/html/tokens/assets/preview/context/auth/doctor/mcp
9191
│ │ ├── io/ # stdout 数据写出(json/md/html/css 格式器)、stderr 诊断、NDJSON、TTY 检测

‎packages/cli/CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# lanhu-context-cli
1+
# @lanhu-context/cli
22

33
## 0.2.0
44

‎packages/cli/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "lanhu-context-cli",
2+
"name": "@lanhu-context/cli",
33
"version": "0.2.0",
44
"type": "module",
55
"description": "CLI for turning Lanhu design URLs into AI-ready design context: parse/schema/html/context pipeline commands",
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/DaYePython/lanhu-context-cli.git",
9+
"url": "git+https://github.com/DaYePython/lanhu-context.git",
1010
"directory": "packages/cli"
1111
},
1212
"engines": {

‎packages/cli/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// lanhu-context-cli — programmatic surface (mainly for tests). The bin entry
1+
// @lanhu-context/cli — programmatic surface (mainly for tests). The bin entry
22
// is src/main.ts.
33
export {
44
globalArgs,

‎packages/cli/src/version.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import pkg from '../package.json';
22

3-
export const CLI_PKG_NAME = 'lanhu-context-cli';
3+
export const CLI_PKG_NAME = '@lanhu-context/cli';
44
export const CLI_VERSION: string = (pkg as { version: string }).version;

‎packages/core/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": "MIT",
77
"repository": {
88
"type": "git",
9-
"url": "git+https://github.com/DaYePython/lanhu-context-cli.git",
9+
"url": "git+https://github.com/DaYePython/lanhu-context.git",
1010
"directory": "packages/core"
1111
},
1212
"engines": {

0 commit comments

Comments
 (0)