Commit Graph
16990 Commits
Author SHA1 Message Date
gengruilin 4ffef092ca feat(feishu): add the Feishu plugin over the official lark-cli
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.
2026-10-06 00:30:04 +08:00
gengruilin ebf0ea51ab chore(cli-account): match the root version 0.2.1-rc.4 2026-10-27 14:08:11 +08:00
gengruilin 6935d47056 feat(cli-account): run plugin CLIs by absolute paths named in runtime context
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.
2026-10-27 14:04:35 +08:00
gengruilin 64c716da9d fix(cli-account): stop waiting for pipes a descendant keeps open
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.
2026-10-27 11:16:56 +08:00
gengruilin 679497f14d test(cli-account): declare the fixture program on the private PATH 2026-10-19 21:17:01 +08:00
gengruilin e7671cd09f docs(cli-account): state the Host runtime precondition and complete failure contracts
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.
2026-10-17 19:14:25 +08:00
gengruilin 971943346a fix(cli-account): bound the line buffer and cut the stderr tail by UTF-8 bytes
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.
2026-10-17 19:12:59 +08:00
gengruilin 3430ac112a fix(ui-cli-account): open each operation's links and report its notice from its own start
The set of auto-opened links lived as long as the connection, so a later
operation offering the same device page never opened it. A rejected start
kept following the operation of an earlier start, which went on opening
its links and reporting its success after the page's latest action failed.

The followed operation now carries its own opened links. Each start
attempt drops the operation followed before, an accepted start follows
the returned one, and the stream's result for it ends the following.
2026-10-17 19:10:18 +08:00
gengruilin 15aa84f28c fix(ui-cli-account): stop retries and start answers from acting after disposal
`retry()` claimed the reopen only after awaiting the stopped stream, so a
second retry or a disposal in that window still subscribed a stream that
nothing released. A start that answered after disposal, or a view the
stream yielded just before it, still opened the operation's link.

`retry()` now clears `stopped` before the reopen awaits, and the reopen
subscribes only while the page is live. A start answer and a stream item
that arrive after disposal are dropped.
2026-10-17 19:08:58 +08:00
gengruilin 30514fa7e0 fix(ui-cli-account): keep generated Remote modules out of the Host build
The Web shell links ui-cli-account statically, and webworker-runtime
reaches the Web shell from the Host aggregate. ui-cli-account referenced
the api-remotes Client project, so the Host compiler compiled Client code
that imports generated /remote modules before the Typert step had written
them, and the build failed. ui-cli-account needs only the Gateway's
`ctx.remote` declaration, so it drops the api-remotes import, project
reference, and development dependency. The event matrix no longer counts
terminal-controller, whose Client listener the Host program reached only
through that path.
2026-10-16 10:42:23 +08:00
gengruilin 187603cca0 fix(ui-cli-account): show the tag on the bundle's row pages again
The structural badge subject dropped the Plugins page's row subject, which the badge showed the tag for before.
2026-10-14 23:12:24 +08:00
gengruilin b25f3de03c refactor(ui-cli-account): ship the page pieces as a Web shell platform module
Client feature packages may not request another row's runtime values through dsh.client.external, so the shared pieces become a static library the shell seeds into its module table, like ui-dockkit. Plugins import the package root, the web-app row is gone, and the badge takes a structural subject instead of importing the Plugins page types.
2026-10-14 23:08:46 +08:00
gengruilin 3e89d14b6a test(ui-cli-account): satisfy the type-aware lint rules 2026-10-14 19:22:49 +08:00
gengruilin d88e49b4a7 feat(cli-account): report whether an offered link reached the page
A plugin that offers only its first link can then skip untrusted lines and keep waiting for a trusted one.
2026-10-14 18:44:25 +08:00
gengruilin 75d96450b0 refactor(cli-account): declare the shared config schema in the entry module
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.
2026-10-14 18:29:14 +08:00
gengruilin 1e40d38359 build(ui-cli-account): use the root React types 2026-10-14 18:12:23 +08:00
gengruilin a7c5ff2477 fix(cli-account): let callers omit defaulted config fields 2026-10-14 18:12:21 +08:00
gengruilin 666604a025 docs(cli-account): add the kit and connector group READMEs
Register both packages with the README, Model Experience, and product-package gates, and regenerate the config catalog, module graph, and composition reference.
2026-10-14 17:51:10 +08:00
gengruilin 57c8447e98 docs(cli-account): document the kit's contracts
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.
2026-10-14 17:41:20 +08:00
gengruilin 64d8d52106 test(ui-cli-account): cover the connection mirror and Plugins page 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.
2026-10-14 17:37:38 +08:00
gengruilin 55d2cb31fd test(cli-account): cover the CLI runner, account runtime, and config
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.
2026-10-14 17:37:16 +08:00
gengruilin 363ca76ac1 feat(ui-cli-account): label the section's phase from the shared dictionary
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.
2026-10-14 17:03:32 +08:00
gengruilin 7a2156aacb feat(ui-cli-account): render shared copy from the plugin's dictionary
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.
2026-10-14 16:58:21 +08:00
gengruilin bcce689968 chore(cli-account): package the kit and load its client half as a shared module
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.
2026-10-14 16:50:39 +08:00
gengruilin 99e93d27d0 feat(ui-cli-account): show failure diagnostics in the account section
describeFailure joins a failed command's identity, exit code, and the
plugin's allowlisted details for the section's diagnostic line.
2026-10-14 16:34:39 +08:00
gengruilin c6e1467e05 feat(cli-account): report classified command failures
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.
2026-10-14 16:34:38 +08:00
gengruilin e21c18c693 feat(ui-cli-account): share the Plugins page connection pieces of CLI plugins
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.
2026-10-14 15:24:53 +08:00
gengruilin 1135aa9bf7 feat(cli-account): share the CLI runner and account operations of CLI plugins
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.
2026-10-14 15:24:51 +08:00
_Kerman 65032e4414 Merge pull request #7086 from deepseek-harness/xtr/trajectory-result-mode
feat(trajectory): 展示实时工具原始结果
2026-10-27 12:35:29 +08:00
Yifffan d4470e59dc Merge pull request #7089 from deepseek-harness/sidebar-spacing-pr1
fix(client): 统一侧边栏对齐原则,扩大操作热区,沉淀对齐方式 skills
2026-10-27 12:16:17 +08:00
Huo Yaoyuan 09c2587b7e Merge pull request #7349 from deepseek-harness/feat/windows-administrator
fix(windows): remove LUA_TOKEN from the Windows ACL sandbox
2026-10-27 11:25:17 +08:00
_Kerman 89c5ea4d83 Merge latest master into xtr/trajectory-result-mode 2026-10-27 11:16:45 +08:00
Yichen Jiang 6300195071 Merge pull request #7378 from deepseek-harness/worktree/forge-diff-review-state
fix(forge): preserve diff review state and copy header paths
2026-10-27 11:00:22 +08:00
Yichen Jiang f73e140299 Merge remote-tracking branch 'origin/master' into worktree/forge-diff-review-state 2026-10-27 10:46:50 +08:00
Yichen Jiang 17b9e1536d fix(forge): release inactive diff subscriptions and menus 2026-10-27 10:46:40 +08:00
imccyu d534e65692 release(dsh): align master packages with 0.2.1-rc.4 2026-10-27 02:23:17 +08:00
imccyu 543219b909 Merge remote-tracking branch 'origin/master' into worktree/sync-dsh-0.2.1-rc.4-to-master 2026-10-27 02:21:20 +08:00
Yichen Jiangandimccyu e2c4d0538f ci: make reference and worktree tests portable (#7381)
* 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]>
2026-10-27 02:20:02 +08:00
Yichen Jiang f92fadd30c Merge remote-tracking branch 'origin/master' into worktree/forge-diff-review-state
# Conflicts:
#	packages/experimental/client-ui-forge/README.i18n.yaml
#	packages/experimental/client-ui-forge/README.md
#	packages/experimental/client-ui-forge/README.zh.md
2026-10-26 22:38:20 +08:00
Yichen Jiang c1b1d9b71f fix(forge): keep retained diffs from scroll anchoring on session switches 2026-10-26 22:08:57 +08:00
Yichen Jiang 57716b544f fix(forge): preserve diff review state and copy header paths 2026-10-26 21:44:38 +08:00
Yichen Jiang a941288b74 fix(forge): use the existing storage helper dependency classification 2026-10-26 21:35:20 +08:00
Yichen Jiang d82b72b3d7 test(forge): cover cancellation with shared list readers 2026-10-26 21:25:53 +08:00
Yichen Jiang db36fafc3a test(forge): preserve the failure backoff timing assertion 2026-10-26 21:25:20 +08:00
Yichen Jiang e99a597b16 fix(forge): drain list state streams and refresh reopened requests 2026-10-26 21:22:30 +08:00
Yichen Jiang a36d02a596 Merge master into worktree/forge-session-list 2026-10-26 21:17:53 +08:00
Yichen Jiang 9dd1ecc1f4 Merge pull request #5961 from deepseek-harness/worktree/forge-pr-worktree-panel
feat(forge): add the pull request panel and worktree Sessions
2026-10-26 12:40:20 +00:00
Yichen Jiang d1fa5a7a99 Merge pull request #5960 from deepseek-harness/worktree/forge-change-request-bindings
feat(forge): bind code host change requests to Sessions
2026-10-26 20:22:44 +08:00
Turtle 979f608f53 Merge pull request #7363 from deepseek-harness/turtle/link-boundary-fcb8291951da
fix(ui-primitives): end bare URLs before CJK punctuation
2026-10-26 20:13:09 +08:00
Yif 5a8c7c8f6b fix(client): prepare rail search before expanding the sidebar 2026-10-26 20:01:24 +08:00