@teamclaw/feishu-agent 1.0.5 → 1.0.7
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/dist/cli.js +11 -5
- package/package.json +1 -1
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));
|
|
@@ -2765,9 +2770,9 @@ FEISHU_APP_SECRET=${appSecret}
|
|
|
2765
2770
|
// src/cli/commands/auth.ts
|
|
2766
2771
|
import { parseArgs } from "node:util";
|
|
2767
2772
|
import { createServer as createServer2 } from "node:http";
|
|
2768
|
-
async function authCommand(
|
|
2773
|
+
async function authCommand() {
|
|
2769
2774
|
const { values } = parseArgs({
|
|
2770
|
-
args,
|
|
2775
|
+
args: process.argv.slice(3),
|
|
2771
2776
|
strict: false,
|
|
2772
2777
|
options: {
|
|
2773
2778
|
port: { type: "string", default: "3000" }
|
|
@@ -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.7",
|
|
3755
3761
|
description: "Feishu Agent CLI for AI assistants",
|
|
3756
3762
|
type: "module",
|
|
3757
3763
|
private: false,
|