The plugin registers wecom-cli's absolute path through
registerCliPathContext, with the PATH prefix for the guide scripts that
call it by name, 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
wecom-skills snapshot follow the runtime-context path.
The upstream guides keep their whitespace without a repository-wide exemption; only a commit that adds such lines meets the pre-commit whitespace check.
The skill catalog lists only wecom. Its entry carries the DSH guidance, a one-sentence index of the 15 upstream skills that keeps their routing rules, and how to open a guide with the file tools. The upstream copy moves unchanged to skills/wecom/guides, including wecomcli-shared, whose DSH changes move to the entry, which takes precedence where they disagree. Only the guides stay vendored.
The Web E2E drives a stand-in wecom-cli through a failed and a successful QR-code authorization; it needs the scaffold to resolve every selected bundle's dependencies, as Feishu's does. The wecom-skills snapshot pins the skill catalog and a wecom-cli call on the private PATH.
The section takes the WeCom buttons and failure as data and reads the
shared title, hint, tags, activation, and diagnostic copy through the
plugin's translator.
Run `auth init` and `auth show --status` through the kit's command control
so a failed operation reports which command failed and its exit code, and
show that diagnostic beside the failure on the plugin page.
Run wecom-cli through CliCommandExecutor and the account operations through
CliAccountRuntime, leaving only the platform binary lookup, the
`auth show --status` and `auth init` commands, and their parsing in the
plugin. The plugin page mirrors the account with CliAccountConnection and
renders the kit's section, tag, activation, and notice components. Only the
QR-code wait can be cancelled; the recheck after a scan cannot.
Add the WeCom plugin bundle and its Plugins page row: the authorization
section, the title tag, guidance after the bundle is switched on, and
connection notices, following the Feishu plugin page. An initial check that
fails offers a retry instead of an endless check.
Register the @wecom/cli platform binary directory on the private Shell PATH,
mount skill-filesystem over the bundled skills, and serve the account check
and QR-code connection over the `wecom` Remote. Connection runs
`auth init --noninteractive --no-browser`, offers its work.weixin.qq.com page
to the browser, and requires `auth show --status` to report authorized.
wecom-cli 1.3.4 has no logout, so the Remote offers none.
WeCom and Tencent Meeting index guides that their vendors publish only in
their GitHub repositories. Instead of carrying a copy, a plugin pins one
directory of the repository by commit, total size, and a digest of the kept
files, and registerUpstreamSkills downloads the commit archive when the plugin
loads, verifies it, publishes it in the DSH cache, and lists the plugin's entry
skill with the published directory as its base directory.
The handle reports installed, downloading, or failed, notifies listeners, and
retries without waiting, so a plugin's account check never waits for GitHub.
Each archive source has skillsTimeoutMs; skillsDir points at prepared files
for tests and offline installations. scripts/upstream-skills-digest.ts prints
the pin for a commit.
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.
* 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.