#16637: feat(feishu_doc): support optional public_access on create
channel: feishu
size: S
Cluster:
Memory Management Enhancements
## Summary
- feat(feishu_doc): support optional public_access on create
- Split from our `v2026.2.13` patch train as a single-purpose change for easier review.
## Why
- Keep the diff focused and low-risk so it can be merged or reverted independently.
## Scope
- Branch: `feat/feishu-create-public-access-option-en`
- Files changed: 3
- Key files:
- `extensions/feishu/src/doc-schema.ts`
- `extensions/feishu/src/docx.test.ts`
- `extensions/feishu/src/docx.ts`
## Test Plan
- Suggested local command:
- `./node_modules/.bin/vitest run extensions/feishu/src/docx.test.ts`
- Validation status:
- [ ] CI checks pass
- [ ] Maintainer re-ran local tests
## Risk & Rollback
- Risk: low to medium; impact limited to touched module(s).
- Rollback: revert this PR commit(s) cleanly.
## Co-authorship
- Co-authored by @ciberponk and Codex (GPT-5).
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Added optional `public_access` parameter to the Feishu document creation API, allowing documents to be created with public read or edit permissions in a single operation. The implementation calls `setDocPublicPermission` after successful document creation when `public_access` is specified.
<h3>Confidence Score: 4/5</h3>
- Safe to merge with one known limitation documented in previous review thread
- Clean implementation with proper test coverage and schema validation. The change is focused, follows existing patterns, and includes a comprehensive test. Score of 4 (not 5) due to the known partial-failure mode mentioned in the previous review thread where permission setting can fail after document creation.
- No files require special attention beyond the documented limitation
<sub>Last reviewed commit: 06ec2fb</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#16594: feat(feishu): add set_public_permission doc action
by ciberponk · 2026-02-14
87.6%
#16607: feat(feishu): add get_public_permission doc action
by ciberponk · 2026-02-14
84.9%
#16647: feat(feishu_doc): allow optional initial content on create
by ciberponk · 2026-02-15
84.1%
#16438: feat(feishu): add create_from_markdown import action
by ciberponk · 2026-02-14
77.4%
#16592: feat(feishu): add write mode import for markdown documents
by ciberponk · 2026-02-14
72.9%
#20304: feat(feishu): support Docx table create/write + image/file upload a...
by xuhao1 · 2026-02-18
69.9%
#16409: fix(feishu): preserve docx block order via sequential inserts
by ciberponk · 2026-02-14
69.0%
#14402: fix(feishu): chunk large documents for write/append to avoid API 40...
by lml2468 · 2026-02-12
68.8%
#16428: fix(feishu): retry docx block insertion on rate limits
by ciberponk · 2026-02-14
68.0%
#23382: docs(feishu): add cardkit:card:write permission for streaming card ...
by SidQin-cyber · 2026-02-22
67.5%