feishu-user-plugin 1.3.9 → 1.3.10

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/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "feishu-user-plugin",
3
- "version": "1.3.9",
4
- "description": "All-in-one Feishu plugin for Claude Code & Codex — messaging (incl. user-identity image send v1.3.9 + batch_send), docs (markdown read v1.3.9, image/file blocks), bitable, wiki, drive, OKR, calendar, Tasks v2, multi-profile (cross-process sync v1.3.9), machine-level shared WS events (v1.3.9). 84 tools + 9 prompts, 3 auth layers.",
3
+ "mcpName": "io.github.EthanQC/feishu-user-plugin",
4
+ "version": "1.3.10",
5
+ "description": "All-in-one Feishu MCP server for Claude Code & Codex — 84 tools across 3 auth layers (cookie / app / OAuth). Send as you, read groups, manage docs / bitable / wiki / drive / calendar / tasks / OKR.",
5
6
  "main": "src/index.js",
6
7
  "bin": {
7
8
  "feishu-user-plugin": "src/cli.js"
@@ -49,6 +50,7 @@
49
50
  ".env.example",
50
51
  "CHANGELOG.md",
51
52
  "README.md",
53
+ "README.en.md",
52
54
  "LICENSE"
53
55
  ],
54
56
  "engines": {
@@ -62,6 +64,7 @@
62
64
  "protobufjs": "^7.5.6"
63
65
  },
64
66
  "devDependencies": {
67
+ "@resvg/resvg-js": "^2.6.2",
65
68
  "husky": "^9.1.7"
66
69
  },
67
70
  "overrides": {
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+ // Render docs/og.svg → docs/og.png at 1200x630.
3
+ //
4
+ // Idempotent. Run `node scripts/generate-og-image.js` after editing
5
+ // docs/og.svg. Commit both the SVG (source) and the PNG (asset used
6
+ // by social-media unfurls and `<meta property="og:image">`).
7
+ //
8
+ // Why PNG: Twitter / WeChat / 飞书 unfurls don't render SVG `og:image`.
9
+
10
+ 'use strict';
11
+
12
+ const fs = require('fs');
13
+ const path = require('path');
14
+ const { Resvg } = require('@resvg/resvg-js');
15
+
16
+ const svgPath = path.join(__dirname, '..', 'docs', 'og.svg');
17
+ const pngPath = path.join(__dirname, '..', 'docs', 'og.png');
18
+
19
+ const svg = fs.readFileSync(svgPath, 'utf8');
20
+
21
+ const resvg = new Resvg(svg, {
22
+ fitTo: { mode: 'width', value: 1200 },
23
+ // Try to use system fonts so Chinese characters render. resvg-js loads
24
+ // fonts from `font.fontDirs` and `font.defaultFontFamily`. On macOS
25
+ // /System/Library/Fonts has PingFang SC; on Linux CI, jekyll-seo-tag
26
+ // doesn't run this script anyway — only humans do, locally.
27
+ font: {
28
+ fontDirs: ['/System/Library/Fonts', '/Library/Fonts', '/usr/share/fonts'],
29
+ loadSystemFonts: true,
30
+ defaultFontFamily: 'PingFang SC',
31
+ },
32
+ background: '#0d1117',
33
+ });
34
+
35
+ const pngBuffer = resvg.render().asPng();
36
+ fs.writeFileSync(pngPath, pngBuffer);
37
+
38
+ const sizeKb = (pngBuffer.length / 1024).toFixed(1);
39
+ console.log(`OK: wrote ${pngPath} (${pngBuffer.length} bytes / ${sizeKb} KiB)`);
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: feishu-user-plugin
3
- version: "1.3.9"
3
+ version: "1.3.10"
4
4
  description: "All-in-one Feishu plugin — send messages as yourself (incl. batch_send), read group/P2P chats (auto-expands merge_forward), manage docs/tables/wiki (full CRUD)/drive, OKR (with progress writes), calendar (read+write), Tasks v2, multi-profile auto-switch, real-time WS events. v1.3.8: multi-profile auto-switch on read errors (B), WebSocket realtime im.message events via get_new_events (C), credential pointer-only mode (E), CI gates (F), auth/uat.js + auth/cookie.js extracts (D)."
5
5
  allowed-tools: send_to_user, send_to_group, send_as_user, send_image_as_user, send_file_as_user, send_post_as_user, batch_send, send_card_as_user, search_contacts, create_p2p_chat, get_chat_info, get_user_info, get_login_status, list_profiles, switch_profile, manage_profile_hints, read_p2p_messages, list_user_chats, list_chats, read_messages, send_message_as_bot, reply_message, forward_message, delete_message, update_message, add_reaction, delete_reaction, pin_message, create_group, update_group, list_members, manage_members, search_docs, read_doc, get_doc_blocks, create_doc, manage_doc_block, read_doc_markdown, manage_bitable_app, manage_bitable_table, manage_bitable_field, manage_bitable_view, manage_bitable_record, upload_bitable_attachment, list_wiki_spaces, search_wiki, list_wiki_nodes, get_wiki_node, create_wiki_node, update_wiki_node, move_wiki_node, copy_wiki_node, delete_wiki_node, list_files, create_folder, upload_drive_file, manage_drive_file, upload_image, upload_file, download_message_resource, download_doc_image, list_user_okrs, get_okrs, list_okr_periods, create_okr_progress_record, list_okr_progress_records, delete_okr_progress_record, list_calendars, list_calendar_events, get_calendar_event, create_calendar_event, update_calendar_event, delete_calendar_event, respond_calendar_event, get_freebusy, list_tasks, get_task, create_task, update_task, complete_task, delete_task, manage_task_members, get_new_events, manage_ws_status
6
6
  user_invocable: true