From 159b3edfebfd8b6d6d8725bcdeb7d73d54fce05d Mon Sep 17 00:00:00 2001 From: sjw1231 Date: Fri, 20 Nov 2026 16:26:45 +0800 Subject: [PATCH] test(web): add plugin_manager to the scoped PTC round system prompt The persistent-in-memory PTC round snapshot from master uses the Desktop ptc preset, which now provides plugin_manager when the Host supplies an editable profile. --- .../system-prompt.expected.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/snapshots/web/ptc-round-scoped/system-prompt.expected.md b/snapshots/web/ptc-round-scoped/system-prompt.expected.md index f24e11c14e..0240fc97ca 100644 --- a/snapshots/web/ptc-round-scoped/system-prompt.expected.md +++ b/snapshots/web/ptc-round-scoped/system-prompt.expected.md @@ -160,6 +160,27 @@ interface ToolArgsMap { /** Exact model id; requires provider. */ model?: string; } & Record; + /** List plugins or bundles in the current profile, enable or disable them, install a bundle, or remove an installed bundle. Every action requires danger-full-access permission or approval for this call. Approval does not change the session permission mode. Changes affect every session in this profile. List first to obtain exact identifiers. Package installation can execute allowed build scripts. The application field of a change result is authoritative: applied means the change is in effect and needs no restart; any other value carries nextStep, which says what to do or tell the user. Unmet DSH version requirements (engines.dsh, else DSH peer dependencies) block installation and activation. Version exemptions risk crashes and data loss: warn the user and obtain explicit permission for the exact plugin and runtime versions before granting one. */ + plugin_manager: { + /** Management operation. */ + action: "list_plugins" | "list_bundles" | "set_plugin" | "set_bundle" | "install_bundle" | "remove_bundle" | "list_version_exemptions" | "set_version_exemption"; + /** Plugin entry id, bundle package name, or installation spec, according to action. For an Official catalog entry, pass list_bundles installTarget.spec to install_bundle. */ + target?: string; + /** Required for set operations; defaults to true for installation. For set_version_exemption, true grants and false revokes. */ + enabled?: boolean; + /** For set_version_exemption: exact DSH version from list_version_exemptions. Target must be the manifest package-name@version, not an alias or version range. */ + runtimeVersion?: string; + /** For granting an exemption: true only after warning the user about possible crashes and data loss and receiving explicit permission for this exact plugin/runtime pair. General installation permission is not enough. */ + acceptRisk?: boolean; + /** For install_bundle: pass names from pendingBuilds only after the user explicitly approves running their install scripts in the conversation. This grants persistent permission for this profile. */ + approvedBuilds?: string[]; + /** For install_bundle: the npm registry URL asked first, when the user names one; otherwise the configured registry is asked, and its configured fallbacks while a registry is unreachable. */ + registry?: string; + /** Zero-based list offset; defaults to 0. */ + offset?: number; + /** List page size, from 1 to 100; defaults to 25. */ + limit?: number; + } & Record; /** Declare existing files as final deliverables for the user. Hosts may show presented files only after your turn ends, so call it once the files are final. If the user needs to review files earlier, such as before a tool call that waits for their answer, link them in your message instead. Use it when the user needs a separate file, especially Office documents, spreadsheets, and slide decks; prefer your final response when that suffices. The user opens the current files; their contents are not copied. */ present: { /** Usually the 1-2 most important deliverables; at most 4 per call. */ @@ -455,6 +476,7 @@ interface ToolOutputMap { })[]; }; list_subagent_models: string; + plugin_manager: string; present: { turn: number; files: {