Skip to content

feat(sheets): add --type bitable to +sheet-create#1520

Open
zhengzhijiej-tech wants to merge 1 commit into
feat/lark-sheets-developfrom
feat/sheets-bitable-subsheet
Open

feat(sheets): add --type bitable to +sheet-create#1520
zhengzhijiej-tech wants to merge 1 commit into
feat/lark-sheets-developfrom
feat/sheets-bitable-subsheet

Conversation

@zhengzhijiej-tech

Copy link
Copy Markdown
Collaborator

Problem

+sheet-create could only create plain spreadsheet sub-sheets — there was no way to create a bitable (multi-dimensional table) sub-sheet from the CLI.

Change

  • Add a --type flag to +sheet-create (enum sheet | bitable, default sheet).
  • --type bitable creates an empty bitable sub-sheet (default table + grid view + default fields). Its content is edited via lark-cli base commands — sheets-side grid tools are rejected on bitable sub-sheets; use +workbook-info to get the sub-sheet's bitable_app_token / bitable_table_id, then lark base +record-*.
  • flag-defs.json / flag_defs_gen.go / skill reference are mirror-synced from the spec source: the new --type plus a small max-chars doc alignment the CLI mirror was lagging on.

Mechanism

CLI --type bitablesheetCreateInput emits operation=create_bitableinvoke_write modify_workbook_structure → backend materializes the bitable sub-sheet. Requires the corresponding backend support (create_bitable operation) to be deployed.

Verification

PPE end-to-end: +sheet-create --type bitable returns ok + sheet_id; +workbook-info confirms the new sub-sheet reports resource_type=bitable with its bitable app_token / table_id; reading it back via lark base +field-list returns the 4 default fields. Invalid / duplicate sheet names are rejected with a validation error. Default --type sheet path is unchanged.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 99c99293-4e74-4ba5-b158-e8baf2f6c6c7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/sheets-bitable-subsheet

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 and usage tips.

@github-actions github-actions Bot added domain/ccm PR touches the ccm domain size/L Large or sensitive change across domains or core paths labels Jun 18, 2026
@xiongyuanwen-byted xiongyuanwen-byted force-pushed the feat/lark-sheets-develop branch from 77b098f to b6da950 Compare June 22, 2026 11:02
@zhengzhijiej-tech zhengzhijiej-tech force-pushed the feat/sheets-bitable-subsheet branch from dbb8a76 to fef7666 Compare June 22, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain/ccm PR touches the ccm 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.

1 participant