Repository navigation
Releases
Releases · DeepLifeStudio/dsh-lark-studio
v1.5.2
功能与交互优化
- 支持关联应用与授权中途取消:新增
POST /api/dsh-lark/connect/cancel与ops.cancelConnect(),通过AbortController与子进程终止清理进行中的config init --new和auth login --device-code后台轮询,并在插件卸载/热重载时自动回收进程。 - 重构连接引导页信息层级:第 3 步授权页常驻「已关联应用」上下文条(显示应用名称 + 弱化
cli_xxx+ 内联「更换应用」);主操作区收口为最多 2 个清晰主次按钮;等待态新增底部分割状态栏,左侧实时显示自动检测状态、右侧提供「取消」退路,彻底避免误触。
v1.5.1
修复与体验优化
- 退出登录同步解绑应用:在工作台弹窗和插件页点击「退出登录」时同步执行
lark-cli auth logout与lark-cli config remove,并清空权限/品牌/应用名等内存缓存,避免跨企业或飞书/Lark 切换账号时残留旧应用。 - 修复未登录及应用权限误报:
getScopes()严格以登录态和用户 token 实际授权范围判定能力状态,不再将应用后台权限及tenant_scopes误报为「已开通」;未登录时弹窗不再展示绿点能力列表。 - 修复自动关联海外版应用卡死:网页自动关联流程(
config init --new)不再附带多余--brand参数,由飞书/Lark 网页自动识别中国区或海外版;将区域选择器移入「使用已有应用凭据」手动表单并补齐选中高亮样式。 - 展示应用名称与优化检测速度:在「飞书连接」弹窗主位置显示应用名称(通过
bot/v3/info按appId缓存读取),cli_xxx弱化展示在下方;优化自动检测轮询、监听window.focus切回窗口即刻刷新,并补充手动检测反馈与弹窗底栏布局优化。
v1.5.0: Runtime CLI Introspection, Bounded ReAct Loop & Compact 23-Domain Scopes UI
Highlights / 更新亮点
Runtime CLI Introspection & Bounded ReAct Tool Loop / 运行时 CLI 自省与有界工具循环
- Zero static command allowlists (
cli-introspect.js): Replaces the 2,400+ line hand-maintained command table (readonly-allowlist.js) with live introspection against@larksuite/cli(lark-cli <cmd> --helpRisk: read | write | high-risk-write,Requiredflags,lark-cli schema <dotpath>, and progressivereferences/*.mdguide reads) backed by fail-closed global safety guards. - Bounded ReAct collaboration loop (
collab-loop.js): Replaces fragile multi-stage blind-guess JSON pipelines and hardcoded shortcuts with one native tool-calling loop (read_skill,inspect_cli,run_readonly,propose_write,suggest_base_table, capped at 8 turns). Supports multi-hop cross-domain lookups, in-loop self-correction via real--help/stderrfeedback, immediatemissing_scopeinterruption, and guarantees pure read-only queries never pop write confirmation cards.
Full 23-Domain Scopes & Compact Connection Modal / 23 领域权限预加载与紧凑连接弹窗
- Complete 23-domain coverage & incremental auth: Expands
getScopesacross all 23 Feishu/Lark capability domains (parsinguser_scopes,tenant_scopes, andidentities.user.scope) with targeted per-domain / missing-scope authorization and inline re-auth recovery without wiping active workspaces. - Compact grouped chip flow UI: Replaces the clipped 23-card
Checkinggrid insideAccountModalwith a single lightweight loading bar during initial verification, grouped Active / Inactive compact chips, background silent preloading, and a 15-second backend cache with?force=1refresh.
Multimodal, Batch Confirmation & CLI Error Fixes / 多模态上传、批量确认与错误处理修复
- Fixes host
saveImage({ data })upload contract (Uint8Array), parses structured CLIstderrerror envelopes (missing_scope,exitCode === 10), executes up to 50 confirmed steps with automatic--yesforhigh-risk-write, and covers both+get-my-tasksand+get-related-tasksfor task discovery and cleanup.
Install / Update / 安装与更新
dsh plugin --profile desktop update dsh-lark-studio
# or / 或
npm i dsh-lark-studio@1.5.0v1.4.1: Strict Read-Only Allowlist, Dual-Brand AppLink & UX Polish
Highlights / 更新亮点
Security & Read-Only Skill Guard / 只读技能安全白名单与确认护栏
- Strict allowlist for
run_skill(readonly-allowlist.js): Replaces the blacklist withvalidateReadonlySkillArgv, restricting auto-execution to verified read-onlylark-clisubcommands and flags (blocking unallowlisted commands/flags,@file,-,--output, and arbitrary--params/--dry-runinputs). - Double enforcement & inline confirmation card: Enforces
validateReadonlySkillArgvagain beforeexecuteSkillStepsruns; any write, export, or unallowlisted command routes through an inline confirmation card (skill_guard) requiring explicit user approval. - Cleaner CLI output: Automatically strips internal
_noticeupdate reminders from CLI responses and fixestask +delete(--task-guid) / Wikilist_spaceserror handling.
Feishu & Lark Dual-Brand Support / 飞书(中国区)与 Lark(国际版)双品牌支持
- Accurate client deep-linking (
lk_unique=true): Normalizes*.feishu.cn/*.larkoffice.com↔*.larksuite.comper configured or detected brand and appendslk_unique=trueto AppLink URLs so macOS/browser launchesx-lark://(LarkSuite.app) vsx-feishu://(Lark.app) unambiguously even when both desktop clients are installed. - Brand switcher in setup gate: Lets users choose Feishu (China) or Lark (Global) directly during onboarding or via plugin
brandsetting (auto/feishu/lark).
LLM-Native Routing & UX Motion Polish / 纯模型原生路由与交互体验升级
- Zero hardcoded keyword heuristics: Removes brittle intent-guessing regexes across Home, Preview, and Assistant flows; Home
/plannow streams stage events (understanding→building_preview/routing_collab) with a centered borderless breathing indicator before revealing table skeletons. - Preview floating reply & non-blocking composer: Conversational questions in Base Preview display in a compact, Markdown-rendered floating card above the composer; removes the
readOnlylock while busy and supports Enter-to-queue follow-up prompts cleanly.
Install / Update / 安装与更新
dsh plugin --profile desktop update dsh-lark-studio
# or / 或
npm i dsh-lark-studio@1.4.1v1.4.0: File Upload, Multimodal Reading & End-to-End Streaming
Highlights / 更新亮点
File Upload, Multimodal Reading & Real-Row Base Import / 文件上传、多模态识读与真实数据导入
- Minimalist attachment UX: click the paperclip icon, drag-and-drop onto the composer, or paste files/images directly across Home, Preview, and Workspace chat — with live progress rings, one-click cancel/cleanup, and upfront size/count/model-vision checks.
- Zero-dependency streaming parser (
file-reader.js): streams files via DSH nativeconnection.fetch(requestBody: 'streaming', 20 MB limit, 30-min TTL cleanup) and extracts structured content from plain text/Markdown/JSON/code, CSV/TSV, Excel (.xlsx), Word (.docx, preserving tables), PowerPoint (.pptx), PDF, and images (ImageAttachmentRefviactx.get('attachments')). - Understand-first routing & real-data Base creation: files attached on Home smoothly enter the conversational workspace to summarize or answer first, persist across follow-up turns, and can transition directly into Base preview — with one-click batched import (50 rows/batch) of real CSV/Excel rows into Feishu Base.
End-to-End Streaming & Reasoning Model Reliability / 全链路实时流式输出与思考模型适配
- True streaming Markdown replies: incrementally decodes
"reply"deltas and plain-text summaries over SSE with smooth auto-follow scrolling for both the live thinking box and main chat stream. - Continuous stage transitions: shows clear stage progression (
Thinking→Designing Base structure→Assembling preview tablewith shimmer skeleton) during multi-step table generation. - Thinking-model compatibility: removes hardcoded low
maxTokenscaps inplanner.js,ops.js, andadjust-planner.jsso DSH natively applies the model's fulldefaultMaxTokens(preventing thinking tokens from truncating complex multi-table JSON); relaxes English Base/table/option name length limits and hardens JSON repair & field-type normalization.
Install / Update / 安装与更新
dsh plugin --profile desktop update dsh-lark-studio
# or / 或
npm i dsh-lark-studio@1.4.0
v1.3.1: Zero-install CLI, 25+ Skills, Full i18n & Webview Reload Fix
Highlights
- Zero-install setup: Bundles and auto-bootstraps
@larksuite/clion first open (no manual Node.js or terminal install required), preferring official@deepseek-ai/dsh-feishuCLI when present/newer. - 25+ Official Feishu Skills: Dynamically reads and executes live
lark-cliskills across approvals, meetings, sheets, slides, Drive, OKR, attendance, and workflows with write-operation confirmation guards. - Native DSH Capabilities: Adds declarative
Config(larkCliPath,binDir,identity), Plugins page account card (cliAccounts), active Base persistence (storageDomain), main-chatsystemPrompt, and fallbackfeishuskill provider. - Full Chinese / English i18n: End-to-end bilingual support across UI copy, starter prompts, schema planning, table adjustments, and collaboration answers.
- Webview Reliability (v1.3.1): Hardens Electron
<webview>lifecycle (defers mount until visible, filtersisMainFrame, handles crash recovery, clearsabout:blankhistory) and syncs the header Refresh button to reload the embedded Feishu Base in place.
更新亮点
- 开箱即用免配置:内置并自动准备
@larksuite/cli(无需手动装 Node.js 或全局 CLI),本机存在更新版官方@deepseek-ai/dsh-feishu时优先复用。 - 动态复用 25+ 官方飞书技能:侧边栏协同助手动态读取并执行审批、会议纪要、电子表格、幻灯片、云盘、OKR、考勤与工作流等官方技能,写操作自动暂停提示确认。
- 原生 DSH 宿主深度集成:支持声明式
Config、插件页账号卡片(cliAccounts)、持久化活动表(storageDomain)、主对话能力注入与统一feishu技能兼容。 - 中英文全链路国际化:界面、快捷场景、建表规划与协同回复全面跟随 DSH 宿主语言切换。
- 右侧真表加载与刷新加固(v1.3.1):对齐官方
ElectronWebViewImpl生命周期(可见后再挂载、过滤主框架失败、崩溃自动恢复),顶部「刷新数据」联动就地重载右侧飞书真表。
v1.1.5: Fix table mode session preservation and header actions
- 修复多维表格会话在发送交互消息时因 applyAdjust 误重置为协同模式导致顶部操作栏按钮丢失的问题
- 保持表格多轮对话期间【同步数据】【复制链接】【收起表格】【外部打开】常驻可见
- 新增针对 applyAdjust 会话状态机演进的防回归自动化测试断言
v1.1.4: Official DSH Connection Integration & UX Polish
🔒 Security & Architecture Refactor
- Fully migrated all 16 client-server endpoints to DSH official Connection gateway (
/api/dsh-lark/*) withctx.connection.fetch.register. - Enforced native host-level Peer principal authentication (
peer.principal.kind === 'owner') for both conversational view and standalone desktop workbench. - Completely removed the static hardcoded bypass string (
desktop-workbench). - Verified with 34 comprehensive automated tests covering all overt business and covert silent/security request contracts.
✨ UX Enhancements
- Added clean spinning loading animations during permission scope verification to prevent premature unauthorized misjudgment.
- Implemented Dual-Track auto-advancing onboarding wizard (background auto-detection + manual button confirmation).
- Documented availability across the 5 primary DSH ecosystem channels (dsh-plugin.org, awesome-dsh-plugin, dshmarket.com, dsh-plugin-catalog, dshopen.org).