@ttpos/cli 0.4.0 → 0.4.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 +20 -5
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,13 +1,28 @@
|
|
|
1
1
|
# @ttpos/cli
|
|
2
2
|
|
|
3
|
-
TTPOS
|
|
3
|
+
TTPOS 只读查询 CLI:在终端里查营业额、订单、会员、商品、门店到期等。给人用,也给 AI 助手用。
|
|
4
|
+
|
|
5
|
+
## 让 AI 帮你装(推荐)
|
|
6
|
+
|
|
7
|
+
把下面这段话原样发给你的 AI 助手(Claude Code、Codex、Cursor 等):
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
请帮我安装 TTPOS 命令行工具并登录:
|
|
11
|
+
1. 运行 npm install -g @ttpos/cli && npx skills add ZonEaseTech/ttpos-cli -g -y
|
|
12
|
+
2. 运行 ttpos --version 确认安装成功
|
|
13
|
+
3. 把 ttpos auth login 放到后台运行,把它打印的授权链接和核对码发给我;我在浏览器里登录后,等命令自己退出
|
|
14
|
+
4. 运行 ttpos shop list,列出我能查看的商户
|
|
15
|
+
之后我问商户数据时,先读 ttpos-shared 技能再查。
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
登录必须你本人在浏览器里完成,AI 不会也不应该替你输入密码。
|
|
19
|
+
|
|
20
|
+
## 自己装
|
|
4
21
|
|
|
5
22
|
```sh
|
|
6
23
|
npm install -g @ttpos/cli
|
|
7
|
-
ttpos
|
|
24
|
+
ttpos auth login
|
|
8
25
|
```
|
|
9
26
|
|
|
10
|
-
支持 linux/darwin × x64/arm64
|
|
27
|
+
支持 linux/darwin × x64/arm64。不便用 npm 时用安装脚本,命令列表与 agent skills 说明见
|
|
11
28
|
https://github.com/ZonEaseTech/ttpos-cli
|
|
12
|
-
|
|
13
|
-
上手、命令列表与 agent skills 见公开仓库 README。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttpos/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "TTPOS 只读运维 CLI(安装后提供 ttpos 命令)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": { "type": "git", "url": "git+https://github.com/ZonEaseTech/ttpos-cli.git" },
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"engines": { "node": ">=18" },
|
|
9
9
|
"files": ["bin/ttpos.js", "README.md"],
|
|
10
10
|
"optionalDependencies": {
|
|
11
|
-
"@ttpos/cli-linux-x64": "0.4.
|
|
12
|
-
"@ttpos/cli-linux-arm64": "0.4.
|
|
13
|
-
"@ttpos/cli-darwin-x64": "0.4.
|
|
14
|
-
"@ttpos/cli-darwin-arm64": "0.4.
|
|
11
|
+
"@ttpos/cli-linux-x64": "0.4.2",
|
|
12
|
+
"@ttpos/cli-linux-arm64": "0.4.2",
|
|
13
|
+
"@ttpos/cli-darwin-x64": "0.4.2",
|
|
14
|
+
"@ttpos/cli-darwin-arm64": "0.4.2"
|
|
15
15
|
},
|
|
16
16
|
"publishConfig": { "access": "public" }
|
|
17
17
|
}
|