@teamclaw/feishu-agent 1.0.4 → 1.0.6
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 +5 -2
- package/dist/cli.js +9 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,9 +5,10 @@ Feishu Agent is a TypeScript/Node.js middleware layer for Feishu (Lark) API inte
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- 📅 Calendar management (list calendars, events, create/delete events)
|
|
8
|
+
- ⚠️ **Automatic conflict detection** when creating events (uses FreeBusy API)
|
|
8
9
|
- ✅ Todo management via Bitable
|
|
9
10
|
- 👥 Contact management (list users, search by name/email)
|
|
10
|
-
- 🔐 OAuth 2.0 authentication
|
|
11
|
+
- 🔐 OAuth 2.0 authentication with auto token refresh
|
|
11
12
|
- 🚀 CLI interface with commander
|
|
12
13
|
|
|
13
14
|
## Installation
|
|
@@ -71,7 +72,7 @@ feishu_agent calendar list
|
|
|
71
72
|
# List events
|
|
72
73
|
feishu_agent calendar events
|
|
73
74
|
|
|
74
|
-
# Create event
|
|
75
|
+
# Create event (automatically checks for time conflicts)
|
|
75
76
|
feishu_agent calendar create --summary "Meeting" --start "2026-03-01 14:00" --end "2026-03-01 15:00"
|
|
76
77
|
|
|
77
78
|
# Create event with attendees
|
|
@@ -173,6 +174,8 @@ Global config is stored at `~/.feishu-agent/config.json`:
|
|
|
173
174
|
}
|
|
174
175
|
```
|
|
175
176
|
|
|
177
|
+
**Note:** User access tokens are automatically refreshed when expired. Just run `feishu_agent auth` again if the refresh token expires.
|
|
178
|
+
|
|
176
179
|
## License
|
|
177
180
|
|
|
178
181
|
MIT
|
package/dist/cli.js
CHANGED
|
@@ -2659,7 +2659,12 @@ async function setupCommand() {
|
|
|
2659
2659
|
}
|
|
2660
2660
|
console.log(`Detected Base Token: ${baseToken}`);
|
|
2661
2661
|
console.log("Fetching schema...");
|
|
2662
|
-
const client = new FeishuClient({
|
|
2662
|
+
const client = new FeishuClient({
|
|
2663
|
+
appId,
|
|
2664
|
+
appSecret,
|
|
2665
|
+
userAccessToken: access_token,
|
|
2666
|
+
refreshToken: refresh_token
|
|
2667
|
+
});
|
|
2663
2668
|
const engine = new IntrospectionEngine(client);
|
|
2664
2669
|
try {
|
|
2665
2670
|
const schema = await engine.introspect(baseToken, (msg) => console.log(msg));
|
|
@@ -3034,7 +3039,8 @@ async function whoamiCommand() {
|
|
|
3034
3039
|
const client = new FeishuClient({
|
|
3035
3040
|
appId: config.appId,
|
|
3036
3041
|
appSecret: config.appSecret,
|
|
3037
|
-
userAccessToken: config.userAccessToken
|
|
3042
|
+
userAccessToken: config.userAccessToken,
|
|
3043
|
+
refreshToken: config.refreshToken
|
|
3038
3044
|
});
|
|
3039
3045
|
if (!client.hasUserToken()) {
|
|
3040
3046
|
console.log("App credentials:");
|
|
@@ -3751,7 +3757,7 @@ async function handleSearch(config, query) {
|
|
|
3751
3757
|
// package.json
|
|
3752
3758
|
var package_default = {
|
|
3753
3759
|
name: "@teamclaw/feishu-agent",
|
|
3754
|
-
version: "1.0.
|
|
3760
|
+
version: "1.0.6",
|
|
3755
3761
|
description: "Feishu Agent CLI for AI assistants",
|
|
3756
3762
|
type: "module",
|
|
3757
3763
|
private: false,
|