Whiteboard paths automatically download and execute an npm package with a floating version range
Source references: 4The skill requires running `npx -y` without asking. `-y` accepts installation automatically, while `@^0.2.13` may resolve to later compatible releases. The package then reads artifacts, renders them, and pipes output into `lark-cli`.
If the npm package, publisher account, or dependency chain is compromised, downloaded code could read or alter workspace files, access credentials available to the process, and make network requests.
The skill explicitly requires running `npx -y @larksuite/whiteboard-cli@^0.2.13` without asking. `-y` accepts installation non-interactively and the caret range is not an exact pin. The package then reads local SVG, renders/checks/converts it, and its output is piped into a command with board write access. This creates supply-chain and local-file-processing risk. Users can require an exact verified version and restricted filesystem/network access.
> [!IMPORTANT]> - 运行 `lark-cli --version`,确认可用,无需询问用户。> - 运行 `npx -y @larksuite/whiteboard-cli@^0.2.13 -v`,确认可用,无需询问用户。Show 3 other places
Step 3: 渲染 & 审查 → 交付 - 渲染前自查(见下方检查清单) - 渲染 PNG(仅用于预览验证,不是最终产物):npx -y @larksuite/whiteboard-cli@^0.2.13 -i diagram.json -o diagram.png - 检查:信息完整?布局合理?配色协调?文字无截断?连线无交叉? - 有问题 → 按症状表修复 → 重新渲染(最多 2 轮) - 2 轮后仍有严重问题 → 考虑走 Mermaid 路径兜底 - 写入画板:用 whiteboard-cli 将 diagram.json 转换为 OpenAPI 格式并 pipe 给 +update: npx -y @larksuite/whiteboard-cli@^0.2.13 -i diagram.json --to openapi --format json \ | lark-cli whiteboard +update --whiteboard-token <board_token> \ --source - --input_format raw --idempotent-token <时间戳+标识> --as user → 完整 dry-run / 确认流程见 [§ 写入画板](../references/lark-whiteboard-workflow.md#写入画板)```建目录 ./diagrams/YYYY-MM-DDTHHMMSS/ (例:./diagrams/2026-04-15T143022/)写文件 <dir>/diagram.svg渲染 npx -y @larksuite/whiteboard-cli@^0.2.13 -i <dir>/diagram.svg -o <dir>/diagram.png -f svg检查 npx -y @larksuite/whiteboard-cli@^0.2.13 -i <dir>/diagram.svg -f svg --check导出 npx -y @larksuite/whiteboard-cli@^0.2.13 -i <dir>/diagram.svg -f svg --to openapi --format json > <dir>/diagram.json``` - 2 轮后仍有严重问题 → 考虑走 Mermaid 路径兜底 - 写入画板:用 whiteboard-cli 将 diagram.json 转换为 OpenAPI 格式并 pipe 给 +update: npx -y @larksuite/whiteboard-cli@^0.2.13 -i diagram.json --to openapi --format json \ | lark-cli whiteboard +update --whiteboard-token <board_token> \ --source - --input_format raw --idempotent-token <时间戳+标识> --as user → 完整 dry-run / 确认流程见 [§ 写入画板](../references/lark-whiteboard-workflow.md#写入画板)