Whiteboard workflows automatically download and execute a floating npm package
Source references: 5The Skill requires running `npx -y @larksuite/whiteboard-cli@^0.2.13` without asking the user and repeatedly uses it for rendering and conversion. `-y` accepts installation automatically, while `^0.2.13` permits later compatible releases; no lockfile or integrity verification is shown.
The resolved package and installation scripts run with the agent process's access to workspace files and environment data. A compromised supply chain or changed later release could execute code, read data, or alter files.
This is an active startup instruction to run `npx -y` without asking. `-y` automatically accepts installation and `^0.2.13` is not an exact version; the package is then executed again for rendering and conversion. If the registry account or an allowed compatible release is compromised, its code runs with the agent's permissions and may access the working directory or process-visible credentials. Users can block network installs and require an exact, integrity-verified dependency.
> - 运行 `lark-cli --version`,确认可用,无需询问用户。> - 运行 `npx -y @larksuite/whiteboard-cli@^0.2.13 -v`,确认可用,无需询问用户。Show 4 other places
- 渲染前自查(见下方检查清单) - 渲染 PNG(仅用于预览验证,不是最终产物):npx -y @larksuite/whiteboard-cli@^0.2.13 -i diagram.json -o diagram.png - 检查:信息完整?布局合理?配色协调?文字无截断?连线无交叉?# 使用 whiteboard-cli 生成 OpenAPI 格式并通过管道传递npx -y @larksuite/whiteboard-cli@^0.2.13 -i <产物文件> --to openapi --format json \ | lark-cli whiteboard +update \ --whiteboard-token <画板Token> \ --source - --input_format raw \ --idempotent-token <10+字符唯一串> \ --as user```> [!IMPORTANT]> - 运行 `lark-cli --version`,确认可用,无需询问用户。> - 运行 `npx -y @larksuite/whiteboard-cli@^0.2.13 -v`,确认可用,无需询问用户。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#写入画板)