Skip to content

feat(vc): add meeting message send shortcut#1643

Merged
zhicong666-bytedance merged 5 commits into
mainfrom
features/vc-meeting-message-send-main
Jul 1, 2026
Merged

feat(vc): add meeting message send shortcut#1643
zhicong666-bytedance merged 5 commits into
mainfrom
features/vc-meeting-message-send-main

Conversation

@zhicong666-bytedance

@zhicong666-bytedance zhicong666-bytedance commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add vc +meeting-message-send shortcut for sending text and reaction messages in meetings.
  • Register the shortcut in VC command discovery.
  • Update lark-vc-agent guidance for meeting message sending and emoji usage.

Tests

  • go test ./shortcuts/vc
  • go test ./shortcuts/...

Summary by CodeRabbit

  • New Features
    • Added +meeting-message-send VC shortcut to send in-meeting text messages or reaction emojis.
    • Supports --dry-run, input trimming/validation, and posts messages to the meeting message endpoint.
  • Documentation
    • Expanded lark-vc-agent “会中动作” guidance to include in-meeting messaging and reaction feedback, including identity and parameter rules.
    • Added a dedicated reference for lark-cli vc +meeting-message-send, including request/body mapping.
  • Tests
    • Added unit tests for body building, validations, and execution output.
    • Added CLI e2e dry-run tests for text/reaction and long-UUID rejection.

@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c6aabca2-e3b0-44b3-92c1-b090c5ab685c

📥 Commits

Reviewing files that changed from the base of the PR and between ac8a877 and 6d2d935.

📒 Files selected for processing (7)
  • shortcuts/vc/shortcuts.go
  • shortcuts/vc/vc_meeting_events_test.go
  • shortcuts/vc/vc_meeting_message_send.go
  • shortcuts/vc/vc_meeting_message_send_test.go
  • skills/lark-vc-agent/SKILL.md
  • skills/lark-vc-agent/references/lark-vc-agent-meeting-message-send.md
  • tests/cli_e2e/vc/vc_meeting_message_send_dryrun_test.go
💤 Files with no reviewable changes (7)
  • shortcuts/vc/shortcuts.go
  • tests/cli_e2e/vc/vc_meeting_message_send_dryrun_test.go
  • shortcuts/vc/vc_meeting_events_test.go
  • shortcuts/vc/vc_meeting_message_send.go
  • skills/lark-vc-agent/references/lark-vc-agent-meeting-message-send.md
  • skills/lark-vc-agent/SKILL.md
  • shortcuts/vc/vc_meeting_message_send_test.go

📝 Walkthrough

Walkthrough

Adds a new +meeting-message-send VC shortcut for sending in-meeting text or reaction messages, registers it, tests validation and request behavior, and updates skill guidance and reference docs.

Changes

VCMeetingMessageSend Shortcut

Layer / File(s) Summary
Shortcut implementation and registration
shortcuts/vc/vc_meeting_message_send.go, shortcuts/vc/shortcuts.go
Defines VCMeetingMessageSend with CLI flags, msg-type resolution, request body construction, DryRun, and Execute; registers it in Shortcuts().
Shortcut tests
shortcuts/vc/vc_meeting_message_send_test.go, shortcuts/vc/vc_meeting_events_test.go, tests/cli_e2e/vc/vc_meeting_message_send_dryrun_test.go
Tests body construction, validation failures, dry-run output, execute behavior, registration, and CLI e2e dry-run payloads for text and reaction messages.
Agent skill documentation
skills/lark-vc-agent/SKILL.md, skills/lark-vc-agent/references/lark-vc-agent-meeting-message-send.md
Updates skill routing and identity guidance, and adds a reference doc for parameters, emoji rules, meeting-number resolution, and permissions.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested labels: enhancement, documentation

Suggested reviewers: zhaoleibd, hugang-lark

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 4.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: adding a new VC meeting message send shortcut.
Description check ✅ Passed The description covers the summary and tests, but it omits the template’s Changes and Related Issues sections.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch features/vc-meeting-message-send-main

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added domain/vc PR touches the vc domain size/L Large or sensitive change across domains or core paths labels Jun 29, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@shortcuts/vc/vc_meeting_message_send_test.go`:
- Around line 91-116: The validation tests in VCMeetingMessageSend only check
error text, so they can miss regressions in typed metadata. Update
TestMeetingMessageSendValidateRejectsMeetingNumber and
TestMeetingMessageSendValidateRejectsMissingEmojiType to assert the structured
error using VCMeetingMessageSend.Validate, errs.ProblemOf for category/subtype,
and errors.As into *errs.ValidationError to verify the annotated Param as
needed. Keep the existing failure expectations, but replace substring-only
checks with typed assertions that cover the problem metadata and flag parameter.

In `@shortcuts/vc/vc_meeting_message_send.go`:
- Around line 122-130: In the message validation logic for
meetingMessageTypeText and meetingMessageTypeReaction, add explicit
mutual-exclusion checks so an explicit --msg-type cannot be paired with the
opposite content flag. Update the switch in vc_meeting_message_send.go to reject
--msg-type text when emojiType is set and reject --msg-type reaction when text
is set, returning a validation error alongside the existing required-field
checks. Keep the behavior centered around the msgType, text, and emojiType
handling so conflicting inputs fail fast instead of silently dropping one value.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 0108da63-c240-4626-88e1-f6fb5799d9d7

📥 Commits

Reviewing files that changed from the base of the PR and between 30b28cf and 5a6b4a1.

📒 Files selected for processing (6)
  • shortcuts/vc/shortcuts.go
  • shortcuts/vc/vc_meeting_events_test.go
  • shortcuts/vc/vc_meeting_message_send.go
  • shortcuts/vc/vc_meeting_message_send_test.go
  • skills/lark-vc-agent/SKILL.md
  • skills/lark-vc-agent/references/lark-vc-agent-meeting-message-send.md

Comment thread shortcuts/vc/vc_meeting_message_send_test.go
Comment thread shortcuts/vc/vc_meeting_message_send.go
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.88235% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.52%. Comparing base (a6797ac) to head (6d2d935).

Files with missing lines Patch % Lines
shortcuts/vc/vc_meeting_message_send.go 85.71% 8 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1643      +/-   ##
==========================================
+ Coverage   74.51%   74.52%   +0.01%     
==========================================
  Files         850      851       +1     
  Lines       87070    87155      +85     
==========================================
+ Hits        64879    64952      +73     
- Misses      17223    17231       +8     
- Partials     4968     4972       +4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown

🚀 PR Preview Install Guide

🧰 CLI update

npm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@6d2d9352846781f8ceca143708b32fa5d4ee7c3d

🧩 Skill update

npx skills add larksuite/cli#features/vc-meeting-message-send-main -y -g

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
shortcuts/vc/vc_meeting_message_send_test.go (1)

131-170: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add a validation test for an unknown --msg-type.

resolveMeetingMessageType also rejects unsupported values with param=--msg-type, but none of the new cases exercise that branch. That leaves one of this shortcut's new validation paths untested.

Proposed test
+func TestMeetingMessageSendValidateRejectsUnknownMessageType(t *testing.T) {
+	runtime := newMeetingMessageSendRuntime()
+	mustSetMeetingMessageSendFlag(t, runtime, "meeting-id", "7651377260537433044")
+	mustSetMeetingMessageSendFlag(t, runtime, "msg-type", "gif")
+
+	err := VCMeetingMessageSend.Validate(context.Background(), runtime)
+	assertMeetingMessageSendValidationError(t, err, "--msg-type")
+	if !strings.Contains(err.Error(), "--msg-type must be text or reaction") {
+		t.Fatalf("error = %v, want invalid --msg-type", err)
+	}
+}

As per coding guidelines, “Every behavior change needs a test alongside the change.” Based on shortcuts/vc/vc_meeting_message_send.go:106-141, unknown --msg-type values are a separate validation path.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@shortcuts/vc/vc_meeting_message_send_test.go` around lines 131 - 170, Add a
validation test in vc_meeting_message_send_test.go that covers an unsupported
--msg-type value through VCMeetingMessageSend.Validate and verifies the error
path from resolveMeetingMessageType. Use newMeetingMessageSendRuntime and
mustSetMeetingMessageSendFlag to set meeting-id and an invalid msg-type, then
assert the validation error references param=--msg-type and includes the
unsupported-value message. This should complement the existing
missing/conflicting emoji/text tests by exercising the unknown msg-type branch
in VCMeetingMessageSend.Validate.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@shortcuts/vc/vc_meeting_message_send_test.go`:
- Around line 131-170: Add a validation test in vc_meeting_message_send_test.go
that covers an unsupported --msg-type value through
VCMeetingMessageSend.Validate and verifies the error path from
resolveMeetingMessageType. Use newMeetingMessageSendRuntime and
mustSetMeetingMessageSendFlag to set meeting-id and an invalid msg-type, then
assert the validation error references param=--msg-type and includes the
unsupported-value message. This should complement the existing
missing/conflicting emoji/text tests by exercising the unknown msg-type branch
in VCMeetingMessageSend.Validate.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3e278795-cd81-4710-9763-96718bbc155f

📥 Commits

Reviewing files that changed from the base of the PR and between 5a6b4a1 and e45266a.

📒 Files selected for processing (2)
  • shortcuts/vc/vc_meeting_message_send.go
  • shortcuts/vc/vc_meeting_message_send_test.go
🚧 Files skipped from review as they are similar to previous changes (1)
  • shortcuts/vc/vc_meeting_message_send.go

@zhicong666-bytedance
zhicong666-bytedance force-pushed the features/vc-meeting-message-send-main branch from 93882b1 to 6d2d935 Compare July 1, 2026 12:39
@zhicong666-bytedance
zhicong666-bytedance merged commit 1717789 into main Jul 1, 2026
38 checks passed
@zhicong666-bytedance
zhicong666-bytedance deleted the features/vc-meeting-message-send-main branch July 1, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/vc PR touches the vc domain size/L Large or sensitive change across domains or core paths

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants