Files
cindy/scripts/examples/plugin-model-picker/main.js
MagicLizi b21813a8a3 feat(plugins): allow plugin pages to reuse the host model picker
Open the shared model selector beside plugin page buttons and return the full
validated model route. Bind requests to the approved page and original host,
support detached windows and native tab views, and preserve legacy dialogs.

Remove the inherited three-second picker cooldown so closing and reopening a
selector works normally. Include an interactive demo plugin and regression
coverage for page ownership, cancellation, remote sources and catalog leases.

Assisted-by: Cindy (https://cindy.app)
Signed-off-by: MagicLizi <jiali@magiclizi.com>
2026-11-05 15:13:54 +08:00

3 lines
113 B
JavaScript

// No model calls, network or file access: this plugin only demonstrates Host UI.
cindy.onHostMessage(() => {});