@chenglu.she/sandy 1.0.0 → 1.0.1
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 +8 -20
- package/bin/feishu-cursor-bot.js +0 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# Feishu ↔ Cursor Bot
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@chenglu.she/sandy)
|
|
4
|
+
|
|
3
5
|
<p align="center">
|
|
4
6
|
<img src="assets/sandy.png" alt="Sandy" width="220" height="220" />
|
|
5
7
|
</p>
|
|
6
8
|
|
|
7
|
-
<p align="center"><b>Sandy</b> —
|
|
9
|
+
<p align="center"><b>Sandy</b> — 飞书长连接机器人。</p>
|
|
8
10
|
|
|
9
11
|
通用脚手架:在任意项目目录放一份 `.env` +(可选)`.cursor/rules`,装好依赖后启动即可。
|
|
10
12
|
|
|
@@ -18,27 +20,15 @@
|
|
|
18
20
|
|
|
19
21
|
### 1. 安装
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
npm install -g @chenglu.she/sandy
|
|
23
|
-
# 命令:feishu-cursor-bot 或 sandy
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
或从源码:
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
git clone https://github.com/louis-she/sandy.git
|
|
30
|
-
cd sandy
|
|
31
|
-
npm install
|
|
32
|
-
npm link
|
|
33
|
-
```
|
|
23
|
+
`npm install -g @chenglu.she/sandy`
|
|
34
24
|
|
|
35
25
|
### 2. 在「工作目录」准备 `.env`
|
|
36
26
|
|
|
37
27
|
CLI **读取你启动时的 cwd** 下的 `.env`(不是包安装目录)。例如:
|
|
38
28
|
|
|
39
29
|
```bash
|
|
40
|
-
mkdir -p ~/
|
|
41
|
-
cp /
|
|
30
|
+
mkdir -p ~/treedome && cd ~/treedome
|
|
31
|
+
cp "$(npm root -g)/@chenglu.she/sandy/.env.example" .env
|
|
42
32
|
```
|
|
43
33
|
|
|
44
34
|
必填:
|
|
@@ -88,10 +78,8 @@ Agent 通过 `settingSources: ["project"]` 加载这些规则。人设、业务
|
|
|
88
78
|
### 5. 启动
|
|
89
79
|
|
|
90
80
|
```bash
|
|
91
|
-
cd ~/
|
|
92
|
-
|
|
93
|
-
# 或
|
|
94
|
-
npx @chenglu.she/sandy
|
|
81
|
+
cd ~/treedome
|
|
82
|
+
sandy
|
|
95
83
|
```
|
|
96
84
|
|
|
97
85
|
看到 `ws client ready` 后,飞书里私聊机器人即可。
|
package/bin/feishu-cursor-bot.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chenglu.she/sandy",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Feishu long-connection bot that drives Cursor agents via @cursor/sdk",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"registry": "https://registry.npmjs.org"
|
|
18
18
|
},
|
|
19
19
|
"bin": {
|
|
20
|
-
"feishu-cursor-bot": "
|
|
21
|
-
"sandy": "
|
|
20
|
+
"feishu-cursor-bot": "bin/feishu-cursor-bot.js",
|
|
21
|
+
"sandy": "bin/feishu-cursor-bot.js"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
24
|
"bin",
|