The bundle's detail document is now a one-line feature preview, a
640x300 image in English and Chinese, instead of the developer README.
It shows the connected Feishu account and a conversation that creates
and shares a Feishu doc; the other six locales use the English document.
The feishu row registers its account with ctx.cliAccounts instead of
serving its own Remote to a browser package:
- src/presentation.ts maps each account view to the section, tag,
buttons, sign-out and app-replacement confirmations, linked-app row,
and failure with the CLI's classified error, in the text of
src/locales.ts in every shipped language; the activation prompt
links an app or signs in through display.connect.
- The row becomes a function plugin and registers only while the
registry runs, so headless profiles load it without the page. The
account's private status recorder is renamed so it no longer shadows
the runtime's observe().
- The ui-feishu browser package, the feishu Remote, and its generated
artifacts are removed.
accountText(dictionaries) renders one key in every language a plugin's
dictionaries hold and fills its {name} placeholders, so CLI app plugins
write their Plugins page text on the Host without a browser t().
The browser no longer decides what belongs to the plugin:
- A failure carries untranslated diagnostic items the section joins
after the plugin's text; failureDetails() lists a classified
command and its exit code, so the kit dictionary drops its exit
code template.
- The display names the operation Connect starts in the activation
prompt instead of the browser picking the first primary button.
- The browser sends cancel for the operation in progress and shows a
result's notice as the Host sends it, without repeating the Host's
cancellable and success checks; the entry drops the cancellable
and outcome fields that only those checks read.
CLI app plugins register their account runtime with the Host service
ctx.cliAccounts instead of a browser registry. The registry serves
every account through one cliAccounts Remote and starts or cancels
only the operations each account lists. One browser half renders each
account's section, tag, activation prompt, confirmations, and notices
from the plugin's LocalizedText and the kit's shared dictionary, and
keeps link opening, notices, and the pending-action guard per browser.
The account runtime replaces its follow stream with observe(), which
the registry uses.
The Web shell's PLATFORM_MODULES list is closed to new packages, and a
feature plugin cannot runtime-import another plugin's values. Turn
ui-cli-account from a statically linked library into a dynamic client
plugin that dsh-web-app mounts.
`ctx.cliAccounts.register()` follows the plugin's account stream and
contributes the bundle section, title tag, activation prompt, and
notice. The surfaces read the shared copy from the plugin's namespace
through the locale seat; the plugin supplies its Remote operations, its
success notices, and a presenter that maps the page snapshot to the
section's translated display. Confirmations become action data the
section asks before running, and the activation prompt connects through
the section's first primary action that asks no confirmation.
Drop the shell seeding, the apps/web dependency, and the CSS
publication exception the static form needed.
The plugin registers lark-cli's absolute path through
registerCliPathContext and runs its own commands by the same path. The
Host-runtime check, the private PATH registration, and the shell-env
dependency are removed. The skill guidance, READMEs, tests, and the
feishu-skills snapshot follow the runtime-context path.
CLI app plugins now give the model each CLI's absolute path in required
runtime context instead of putting the CLI on a private Shell PATH.
- registerCliPathContext registers the path at the new PLUGIN_CLIS
context order without interpolation. With `scripts`, it also tells
the model to prefix only the commands that run the skill's scripts
with PATH="<dir>:$PATH"; with `ready`, it contributes nothing until
the CLI is installed.
- CliCommandExecutor takes the absolute `executable`, verifies it
through the subprocess runtime, and spawns it without preparing an
environment, so the kit no longer depends on shell-env.
- An Agent Note records the decision and the rejected private PATH,
paths in skill text, shared registry, and Host check.
A descendant that inherits the CLI's stdout or stderr keeps the pipes
open after the CLI exits. The executor waited for both pipes to end, so
such a command hung until its deadline and reported a timeout, or hung
indefinitely, even through cancellation and disposal, when the
descendant had left the managed process range. A reader failure, such as
an `onLine` throw, left the other reader running, so `onLine` could be
called after `run` rejected.
The executor now waits for the exit and reads the pipes for at most 2
seconds after the subprocess runtime reports it, keeping the output read
before the cut. On every path it terminates the command and stops both
readers before it settles, so every `onLine` call precedes the result.
The executor's module and class comments and the README now state that
its subprocess runtime must run on the Host, and `run` lists executable
lookup, spawn, and `onLine` failures among its rejections. The README and
`authorizationHosts` state that hosts are lowercase ASCII with punycode
IDNs. `CliCommandFailure.exitCode` lists every failure that leaves it
null, and `CliAccountBadge` names the bundle and row pages it renders on.
The line buffer grew without limit and filled even without an `onLine`
observer, so a CLI writing output without a newline during the 10-minute
authorization wait bypassed the 1 MiB and 4 KiB output limits. A line the
CLI ended with a lone `\r`, as a link followed by a redrawn spinner,
reached the observer only at exit. The stderr tail was cut in UTF-16 code
units, so multibyte output kept up to three times 4 KiB and could split a
surrogate pair.
Lines are now split only for an observer, end at `\n`, `\r\n`, or a lone
`\r` as in Node's `readline`, and a line longer than its stream's limit
is skipped whole. The stderr tail keeps the last 4 KiB of UTF-8 bytes from
a character boundary.
The skill catalog lists a single `feishu` entry instead of every skill
that lark-cli embeds. Loading it reads `lark-cli skills list --json` and
returns the DSH guidance, an index of each guide's name and description,
and how to open a guide and the files it references with
`lark-cli skills read`. A failed catalog read fails only that load.
The lark-cli 1.0.97 catalog is kept as a test fixture so the loaded body
stays below the tool-result pruning threshold.
Drop the dsh.client.external request that verify-client-packages rejects for client feature packages, take the root React types, and match the root version 0.2.1-alpha.2.
An untrusted HTTPS line printed before the setup link no longer uses up the single offer. FeishuAccount now owns its cancellable phases, trusted hosts, and failure classifier, so the specs exercise the shipped rules; generic runner and runtime cases moved to the CLI account kit.
The config catalog reads a plugin's imported schema only from the entry file it resolves to, so CLI app plugins can now use CliAccountConfig as their Config.
Register both packages with the README, Model Experience, and product-package gates, and regenerate the config catalog, module graph, and composition reference.
Document the executor's deadlines and output limits, the runtime's
one-operation, phase-gated cancellation, trusted-link, and classified-failure
contracts, the shared config fields, and the client mirror and components.
Port the Feishu CLI runner specs to the kit executor and cover the account
runtime through a scripted fixture account: one operation at a time,
phase-gated cancellation, trusted links, classified failures that never log
exception text, the follow stream, and disposal.
Run lark-cli through CliCommandExecutor and the account operations through
CliAccountRuntime, keeping the four operations' commands, parsing, exit-code
3 acceptance, openId check, and failure classification in the plugin. The
plugin page requests the kit's client module, mirrors the account with
CliAccountConnection, and renders the kit's components with the shared
dictionary keys. Only app setup and sign-in waits can be cancelled; the
checks after them cannot. The authorization wait and output limits become
the kit's fixed limits instead of Config fields.
Client plugin bundles may not inline another plugin's values, so the client
kit becomes a client row that CLI plugins request through
dsh.client.external. The web app mounts the row once, as it does for other
shared Plugins page surfaces, and the plugins import its components and
connection mirror from the module table. Add the package manifests,
TypeScript projects, and path mappings for both kit packages.
Run account commands through CliOperationControl.run so the runtime records
the plugin's classification of each command result. A failed operation logs
only that classification at error level and returns it in the result;
exception messages and native output, which may contain credentials, are
neither logged nor returned. exitFailure classifies by exit code alone.
CLI app plugins run a third-party CLI that owns the user's account and let
the Plugins page check, connect, and cancel through a Remote. Extract the
mechanism the Feishu plugin introduced: CliCommandExecutor runs one command
on the private Shell PATH with a deadline, an output limit, and line
callbacks; CliAccountRuntime runs one account operation at a time, offers
authorization links on the plugin's trusted hosts, cancels only in the
phases the plugin declares, logs failures, and streams the account view.
Each plugin keeps its own commands, parsing, and states.
The CLI's missing permissions include ones the app has not enabled, such
as vc:meeting.realtime:read, which no sign-in can grant, so the section
kept a warning and a Grant more action that could never clear it. The
connected account is again connected or not; a sign-in that leaves
permissions ungranted still succeeds, and a command that needs a
missing permission reports it when it runs.
The plugin page never showed which Feishu app the CLI uses, and once an
app existed the app step never appeared again. The Host now reports the
configured app id on every account state that has one, and linkApp
replaces the configuration with the app the user creates or chooses on
the Feishu page. The section shows the app id and offers Change app,
which explains that the terminal's lark-cli changes too and that the
user signs in again, then links an app after confirmation.
A sign-in that the CLI completes with missing permissions, for example
ones that wait for an administrator's approval, was reported as a plain
success. The Host now remembers how many requested permissions the last
sign-in left ungranted for that user and reports them on the connected
account until a full sign-in, another user, or a sign-out. The plugin
page says how many are not in effect yet, shows a warning toast instead
of a success one, and offers Grant more, which signs in again.
The plugin page chained app setup and sign-in behind one click, so the
authorization page opened long after that click and real browsers
blocked it while the section said it was open. The feishu Remote now
exposes check, linkApp, and signIn instead of connect: linking an app
stops once the CLI has one, and each step opens its Feishu page from
its own click. The section offers Link Feishu app or Sign in to Feishu
for the account it shows, reports a linked app, and words each step's
page as one to open rather than one already open.
Split the Feishu plugin into three packages. The @deepseek-ai/dsh-feishu
bundle keeps the install name and inserts two rows: the Host row
@deepseek-ai/dsh-feishu-cli and the Plugins page row
@deepseek-ai/dsh-client-ui-feishu.
The Host row is now a Remote service. It checks the lark-cli default account
for each new follower, links an app with config init and signs in with auth
login, signs out, and cancels, one Host-owned operation at a time. Setup and
sign-in links reach the page only as HTTPS addresses on feishu.cn or
larksuite.com.
The page row shows the Feishu account section, a connection tag, guidance
after the plugin is switched on, and connection notices. It mounts the
feishu Remote itself and opens each link once, only for the operation this
browser started.
The skill guidance now asks the user to connect Feishu on the plugin page and
runs the CLI's own setup only when the user asks to finish it in the
conversation.
Install a pinned @larksuite/cli with the plugin, register its bin
directory as a private Shell PATH contribution, and publish the CLI's
embedded skills with DSH guidance for setup and sign-in in the
conversation through the shared default CLI account. Repository
installs deny the CLI's binary download; profiles that install the
plugin approve it through Plugin Manager.