Commit Graph
6 Commits
Author SHA1 Message Date
Turtle e32cfc3608 fix(plugins): keep plugin mentions in sent messages and keep listBundles without arguments
The Host folded each canonical mention to @label in the logged message, so the transcript showed plain text instead of a plugin chip. The message now keeps the mention as written.

listBundles returns to its original no-argument signature; the name-filtered read used by plugin references, bundle versions, update, and removal is a private Host method.
2026-11-17 18:23:08 +08:00
turtle1999 2712eb8b75 refactor(plugins): register plugin references on the manager context
installPluginReference takes the plugin manager's Context and registers its agent/pre-step listener there with the real Agent payload, replacing the narrowed agent and host types that existed only for the unit test. The test drives the listener through a real Context and Session, and also checks that it wraps earlier listeners and stops after disposal.
2026-11-11 19:24:52 +08:00
turtle1999 e77e8ba219 perf(plugins): read only the cited bundles for plugin references
A cited step read the whole bundle list, about 0.5 ms of synchronous manifest and patch reads per bundle on the event loop. The manager's bundle reader now accepts the names to read, and the resolver passes only the bounded set it describes, so the cost follows the number of citations instead of the profile size: 19.3 ms to 0.7 ms with 40 bundles.
2026-11-11 19:14:21 +08:00
turtle1999 bab3d111f4 fix(plugins): keep cited plugin context safe when profile reads fail
Allow the shared grammar subpath in the client bundle purity gate so the Web bundle builds. A failed bundle-list or inventory read now becomes a per-reference error instead of failing the step. The context omits the dependency source and error diagnostics, which can carry URL query tokens or pnpm output, and locates files for bundles the installation ships.
2026-11-11 19:00:13 +08:00
turtle1999 ed2de80d4c fix(plugins): describe cited bundles from the manager's bundle list
The @ menu offers bundles, but the Host matched Loader entries by module package, so an installed bundle was reported as not installed. The resolver now reads the manager's own bundle list per step, reports the real package path, and joins declared rows to live Loader entries by entry id. The mention grammar moves to a browser-safe ./grammar subpath shared by the Host resolver and the Web client, removing the duplicated copy.
2026-11-11 19:00:13 +08:00
turtle1999 90ec88f48b feat(web): reference plugins from the @ menu
The composer's @ menu now lists installed plugin packages. A pick inserts a canonical dsh-plugin mention that the Host expands before the model step into bounded package metadata: installed entries, version, scope, package and manifest paths, README path, linked root, and workspace containment. Configuration values stay out of the context.

The transcript keeps the mention as a plugin chip, and the menu displays localized titles while matching every declared language.
2026-11-11 18:49:40 +08:00