@teamclaw/feishu-agent 1.0.5 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -3
  2. 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({ appId, appSecret, userAccessToken: access_token });
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.5",
3760
+ version: "1.0.6",
3755
3761
  description: "Feishu Agent CLI for AI assistants",
3756
3762
  type: "module",
3757
3763
  private: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamclaw/feishu-agent",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Feishu Agent CLI for AI assistants",
5
5
  "type": "module",
6
6
  "private": false,