mirror of
https://github.com/larksuite/cli.git
synced 2026-09-14 18:42:53 +08:00
7988515e1c
* feat(drive): add +permission-get-setting shortcut Add a Drive shortcut for reading public permission settings across supported documents, files, folders, and wiki nodes. Resolve URLs into typed resources, preserve permission_public output for machine consumers, and document the shortcut in the permission-governance workflow. Key features: - Infer resource type and token from supported Drive URLs while requiring --type for bare tokens - Query the Drive v2 public permission endpoint with typed validation and user or bot identity - Support folder permission inspection without recursing into child resources - Add unit, dry-run E2E, live workflow, output, and skill guidance coverage * fix(drive): harden permission get setting contract Harden +permission-get-setting after review findings so callers receive only the documented permission payload and folder support is verified against the live workflow. This prevents malformed responses from being presented as permission settings and keeps the command guidance aligned with the shortcut contract. Key fixes: - Reject responses without data.permission_public instead of projecting arbitrary payload fields - Render complete permission settings in pretty output and mark --token required - Exercise a created Drive folder in the live workflow and add the command reference - Correct folder resolution guidance while retaining the shortcut's documented URL forms * feat/drive-folder-permission-get