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 page connection specs to the kit's connection mirror and
cover the section, tag, activation prompt, confirmation, and notice against
the shared dictionary keys.
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.
The section labels its status from the plugin's `status.*` keys unless the
plugin passes a step label for an operation in progress. The notice
translator no longer narrows the toast's notice type.
CLI plugins translate one shared key set, CliAccountKey, for the section
title, hint, tags, activation prompt, confirmation buttons, and failure
diagnostics; the components read those keys through the plugin's
translator, so the plugin passes only its own text. The section takes its
buttons and extra rows as data and disables them while an action is pending
or the Host stream is down.
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.
CliAccountConnection mirrors a plugin's account view, opens the
authorization link once in the browser that started the operation, and
reports outcomes; the section, tag, activation prompt, confirmation, and
notice components render a plugin's six display phases with the copy the
plugin translates. Each plugin keeps its own presentation and dictionary.
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.
* fix(forge): make reference and worktree tests portable
* test(worktree): cover error and text cancellation reasons
* test(forge): brace void arrow bodies in the reference lookup spec
* test(ci): expect the joined version script path in the pre-merge check
---------
Co-authored-by: imccyu <[email protected]>
The scan now reads exactly the manifests the release tooling rewrites, names
every directory and file it cannot read, and refuses an empty corpus; the
command takes the root it checks so the exit code is tested, and the workflow
reports a crashed check as a warning in report mode.
Each step is a spawn whose stdio reaches the job log, the first failure stops
the list, and the script decides from CHECK_MODE whether to annotate as an
error or a warning, so the workflow only calls it.
The missing-script branch now fails in block mode instead of passing, the shell
block parses, the version walk refuses a directory it cannot read or one that
holds no manifest, the install is watched before anything else can throw, and a
spec runs `bash -n` over every Policy shell block.
`Policy / Pre-Merge Check` now runs `scripts/pre-merge-check.ts` under plain
Node and knows nothing else about the merged tree. That script installs the
dependencies, checks that every released manifest carries the root version
while the install runs, and builds the Host and Client contracts, reporting
which step failed.