Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(plugins): let Agent question answers from a plugin be allowed until quit
vastsa0bb31869c22d
diff --git a/apps/desktop/electron/main/plugin-desktop-consent-grants.ts b/apps/desktop/electron/main/plugin-desktop-consent-grants.tsnew file mode 100644index 000000000..c5eea2dc3--- /dev/null+++ b/apps/desktop/electron/main/plugin-desktop-consent-grants.ts@@ -0,0 +1,56 @@+/**+ * Remembered consent for plugin-originated dangerous desktop operations.+ *+ * Only operations whose answer cannot approve anything on the user's behalf+ * may be remembered. `agent/askTool/resolve` answers a question the Agent+ * asked; the Agent still goes through the host's tool permission gate for+ * whatever it does next. Tool permissions, plan checkpoints, and trusted+ * extension prompts (which extensions use as safety gates) are approvals, so+ * remembering them would let the plugin, or a model behind it, approve every+ * later request without the user. They, and every destructive operation,+ * keep Deny / Allow once (issue #2504).+ */++/** `session` allows this plugin the same operation until the app quits. */+export type PluginDesktopConsentAnswer = "once" | "session" | "deny";++const REMEMBERABLE_OPERATIONS: ReadonlySet<string> = new Set(["agent/askTool/resolve"]);++export function canRememberDesktopConsent(operation: string): boolean {+ return REMEMBERABLE_OPERATIONS.has(operation);+}++/**+ * Anything that is not an explicit allow is a refusal. A `session` answer for+ * an operation that cannot be remembered is also a refusal, so a consent+ * service that offers the wrong button never widens a grant. `true` from a+ * boolean consent service means once.+ */+export function normalizeDesktopConsentAnswer(+ raw: unknown,+ operation: string,+): PluginDesktopConsentAnswer {+ if (raw === true || raw === "once") return "once";+ if (raw === "session" && canRememberDesktopConsent(operation)) return "session";+ return "deny";+}++/** In-memory grants, keyed by plugin id; never persisted. */+export class PluginDesktopConsentGrants {+ private readonly grants = new Map<string, Set<string>>();++ has(pluginId: string, operation: string): boolean {+ return canRememberDesktopConsent(operation) && this.grants.get(pluginId)?.has(operation) === true;+ }++ grant(pluginId: string, operation: string): void {+ if (!canRememberDesktopConsent(operation)) return;+ const operations = this.grants.get(pluginId) ?? new Set<string>();+ operations.add(operation);+ this.grants.set(pluginId, operations);+ }++ revoke(pluginId: string): void {+ this.grants.delete(pluginId);+ }+}diff --git a/apps/desktop/electron/main/plugin-desktop-consent.ts b/apps/desktop/electron/main/plugin-desktop-consent.tsindex 30b5f6e72..48bd825b8 100644--- a/apps/desktop/electron/main/plugin-desktop-consent.ts+++ b/apps/desktop/electron/main/plugin-desktop-consent.ts@@ -1,5 +1,6 @@import { type BrowserWindow, type MessageBoxOptions, dialog } from "electron";import { catalogs, resolveLocale } from "@pi-desktop/i18n";+import type { PluginDesktopConsentAnswer } from "./plugin-desktop-consent-grants";import type { PluginDesktopConsentRequest } from "./plugin-runtime";/**@@ -10,6 +11,10 @@ import type { PluginDesktopConsentRequest } from "./plugin-runtime";* plugin's call, so there is no window in which the operation happens before* the answer arrives.*+ * Only operations the runtime marks with `offerSession` (answering an Agent+ * question) get a third "Allow until quit" button; approvals and destructive+ * operations only ever get Deny / Allow once.+ ** The prompt always names the operation id from the catalog, never text the* plugin (or a model behind it) authored, so a prompt-injected transcript* cannot relabel `session/delete` as something benign.@@ -48,7 +53,9 @@ export function desktopConsentDialogOptions(].filter(Boolean).join("\n\n"),- buttons: [strings.deny, strings.allowOnce],+ buttons: request.offerSession+ ? [strings.deny, strings.allowOnce, strings.allowSession]+ : [strings.deny, strings.allowOnce],// Escape and the red-X both land on Deny; a dismissed dialog must never// read as permission.defaultId: 0,@@ -58,14 +65,19 @@ export function desktopConsentDialogOptions(}/** Anything that is not an explicit allow is a refusal. */-export function desktopConsentGrantedFromResponse(response: number): boolean {- return response === 1;+export function desktopConsentAnswerFromResponse(+ response: number,+ offerSession = false,+): PluginDesktopConsentAnswer {+ if (response === 1) return "once";+ if (response === 2 && offerSession) return "session";+ return "deny";}export function createDesktopConsentService(deps: {getWindow: () => BrowserWindow | null;getLocale: () => string;-}): (request: PluginDesktopConsentRequest) => Promise<boolean> {+}): (request: PluginDesktopConsentRequest) => Promise<PluginDesktopConsentAnswer> {return async (request) => {const options = desktopConsentDialogOptions(request, deps.getLocale());const window = deps.getWindow();@@ -73,6 +85,6 @@ export function createDesktopConsentService(deps: {window && !window.isDestroyed()? await dialog.showMessageBox(window, options): await dialog.showMessageBox(options);- return desktopConsentGrantedFromResponse(result.response);+ return desktopConsentAnswerFromResponse(result.response, request.offerSession === true);};}diff --git a/apps/desktop/electron/main/plugin-runtime.ts b/apps/desktop/electron/main/plugin-runtime.tsindex 1c824ac8c..024bdc309 100644--- a/apps/desktop/electron/main/plugin-runtime.ts+++ b/apps/desktop/electron/main/plugin-runtime.ts@@ -144,6 +144,12 @@ import {type PluginShortcutRegistry,} from "./plugin-shortcut-registry";import { repairImportedExtensionWrapper } from "./imported-plugin-wrapper";+import {+ type PluginDesktopConsentAnswer,+ PluginDesktopConsentGrants,+ canRememberDesktopConsent,+ normalizeDesktopConsentAnswer,+} from "./plugin-desktop-consent-grants";import {migrateLegacyPromptEnhancementSettings,PROMPT_ENHANCEMENT_PLUGIN_ID,@@ -325,8 +331,12 @@ export type PluginDesktopConsentRequest = {description: string;/** Positional arguments as the plugin supplied them (secret-stripped later). */args: unknown[];+ /** Whether the dialog may offer "Allow until quit" for this operation. */+ offerSession?: boolean;};+export type { PluginDesktopConsentAnswer };+export type PluginHostServices = {getWorkspacePath: () => string | null;/**@@ -421,7 +431,9 @@ export type PluginHostServices = {* user decides here. Without this service every dangerous operation from a* plugin is refused, which is the safe default for a headless host.*/- confirmDesktopControl?: (request: PluginDesktopConsentRequest) => Promise<boolean>;+ confirmDesktopControl?: (+ request: PluginDesktopConsentRequest,+ ) => Promise<boolean | PluginDesktopConsentAnswer>;audit?: (entry: Record<string, unknown>) => void;/*** Blocking, native consent for a file access the manifest did not declare.@@ -1535,6 +1547,11 @@ export class PluginRuntime {* session would be a standing permission nobody reviewed.*/private fsConsent = new Map<string, Set<string>>();+ /**+ * Desktop operations the user allowed a plugin until quit. In memory only,+ * and dropped when the plugin is explicitly stopped.+ */+ private desktopConsent = new PluginDesktopConsentGrants();/** Cached write ledgers, keyed by plugin id. */private writeLedgers = new Map<string, Record<string, number>>();private nextBusSubscription = 1;@@ -2354,7 +2371,10 @@ export class PluginRuntime {loaded.disposing = true;this.toolInvocations.cancelOwner(loaded, "Plugin unloaded");// An explicit stop ends supervision; a supervisor-driven reload keeps it.- if (!this.restarting.has(pluginId)) this.cancelRestarts(pluginId);+ if (!this.restarting.has(pluginId)) {+ this.cancelRestarts(pluginId);+ this.desktopConsent.revoke(pluginId);+ }await this.stopServices(loaded);}if (loaded?.child) {@@ -6020,20 +6040,28 @@ export class PluginRuntime {);}const consent = this.services.confirmDesktopControl;- const granted = consent- ? await consent({- pluginId,- pluginName: resolvePluginLocalizedString(- loaded.manifest.name,- this.services.getLocale?.(),- pluginId,- ),- operation,- description: operationInfo.description,- args,- })- : false;- if (!granted) {+ const remembered = this.desktopConsent.has(pluginId, operation);+ const answer: PluginDesktopConsentAnswer = remembered+ ? "session"+ : consent+ ? normalizeDesktopConsentAnswer(+ await consent({+ pluginId,+ pluginName: resolvePluginLocalizedString(+ loaded.manifest.name,+ this.services.getLocale?.(),+ pluginId,+ ),+ operation,+ description: operationInfo.description,+ args,+ offerSession: canRememberDesktopConsent(operation),+ }),+ operation,+ )+ : "deny";+ if (answer === "session") this.desktopConsent.grant(pluginId, operation);+ if (answer === "deny") {this.services.audit?.({pluginId,api: "desktop.invoke",diff --git a/apps/desktop/test/plugin-desktop-consent-dialog.test.mjs b/apps/desktop/test/plugin-desktop-consent-dialog.test.mjsnew file mode 100644index 000000000..5d19da9a0--- /dev/null+++ b/apps/desktop/test/plugin-desktop-consent-dialog.test.mjs@@ -0,0 +1,54 @@+import assert from "node:assert/strict";+import test from "node:test";+import { register } from "node:module";+import { dirname, join } from "node:path";+import { fileURLToPath, pathToFileURL } from "node:url";++const here = dirname(fileURLToPath(import.meta.url));+register(pathToFileURL(join(here, "helpers/ts-import-hooks.mjs")));+// The dialog module imports `dialog` from Electron; these tests only exercise+// the pure option and answer mapping, so a stub is enough.+register(+ `data:text/javascript,${encodeURIComponent(`+ export async function resolve(specifier, context, next) {+ if (specifier === "electron") {+ return { url: "data:text/javascript,export const dialog = {};", shortCircuit: true };+ }+ return next(specifier, context);+ }+ `)}`,+);+const { desktopConsentAnswerFromResponse, desktopConsentDialogOptions } = await import(+ "../electron/main/plugin-desktop-consent.ts"+);++const request = (offerSession) => ({+ pluginId: "demo",+ pluginName: "Demo",+ operation: "agent/askTool/resolve",+ description: "Answer an Agent question.",+ args: [],+ ...(offerSession === undefined ? {} : { offerSession }),+});++test("only an offered operation gets Allow until quit", () => {+ assert.deepEqual(desktopConsentDialogOptions(request(true), "en").buttons, [+ "Deny",+ "Allow once",+ "Allow until quit",+ ]);+ for (const offer of [false, undefined]) {+ const options = desktopConsentDialogOptions(request(offer), "en");+ assert.deepEqual(options.buttons, ["Deny", "Allow once"]);+ assert.equal(options.cancelId, 0);+ assert.equal(options.defaultId, 0);+ }+});++test("dialog responses map to answers; anything unexpected is a refusal", () => {+ assert.equal(desktopConsentAnswerFromResponse(0, true), "deny");+ assert.equal(desktopConsentAnswerFromResponse(1, true), "once");+ assert.equal(desktopConsentAnswerFromResponse(2, true), "session");+ assert.equal(desktopConsentAnswerFromResponse(2, false), "deny");+ assert.equal(desktopConsentAnswerFromResponse(-1, true), "deny");+});diff --git a/apps/desktop/test/plugin-desktop-control.test.mjs b/apps/desktop/test/plugin-desktop-control.test.mjsindex f9bc6309d..9ecb65e0e 100644--- a/apps/desktop/test/plugin-desktop-control.test.mjs+++ b/apps/desktop/test/plugin-desktop-control.test.mjs@@ -516,3 +516,119 @@ test("an unscoped plugin keeps full desktop.control session reads", async (t) =>);assert.deepEqual(result.sessions, [{ id: "any", projectPath: "/anywhere" }]);});++const PROMPT_ANSWER_OPERATIONS = [+ {+ id: "agent/askTool/resolve",+ channel: "askToolResolve",+ description: "Answer an Agent question",+ risk: "dangerous",+ },+ {+ id: "tool/resolvePermission",+ channel: "toolResolvePermission",+ description: "Resolve a pending tool permission request",+ risk: "dangerous",+ },+ {+ id: "extensions/ui/respond",+ channel: "extensionsUiRespond",+ description: "Answer a pending trusted extension prompt",+ risk: "dangerous",+ },+ {+ id: "session/delete",+ channel: "sessionDelete",+ description: "Delete a session",+ risk: "dangerous",+ },+];++const RELAY_PLUGIN = `+ module.exports = {+ onPanelInvoke: async (channel, payload) => {+ try {+ return { ok: true, result: await pi.desktop.invoke({ operation: payload.operation, args: [{}], confirm: true }) };+ } catch (error) {+ return { ok: false, code: error.code };+ }+ },+ };+`;++test("an Agent question answer can be allowed until quit; approvals never can", async (t) => {+ const calls = [];+ const prompts = [];+ let answer = "session";+ const runtime = createRuntime(t, calls, {+ desktopControl: {+ operations: PROMPT_ANSWER_OPERATIONS,+ invoke: async (input) => {+ calls.push(input.operation);+ return { ok: true };+ },+ },+ confirmDesktopControl: async (request) => {+ prompts.push(request);+ return answer;+ },+ });+ const dir = writePlugin("demo.relay", ["desktop.control"], RELAY_PLUGIN);+ await runtime.loadFromPath(dir, ["desktop.control"]);+ const relay = (operation) =>+ runtime.invokePanelBridge("demo.relay", "desktop.test", { operation });++ // Allow until quit on a question answer: the next answer raises no dialog.+ assert.equal((await relay("agent/askTool/resolve")).ok, true);+ assert.equal(prompts.length, 1);+ assert.equal(prompts[0].offerSession, true);+ answer = "deny";+ assert.equal((await relay("agent/askTool/resolve")).ok, true);+ assert.equal(prompts.length, 1, "a remembered answer must not prompt again");++ // Tool permissions, extension prompts, and destructive operations never+ // offer the option, and a "session" answer for them is not remembered.+ answer = "session";+ for (const operation of ["tool/resolvePermission", "extensions/ui/respond", "session/delete"]) {+ const before = prompts.length;+ assert.equal((await relay(operation)).ok, false, `${operation} must not accept "session"`);+ assert.equal(prompts.length, before + 1);+ assert.equal(prompts.at(-1).offerSession, false, `${operation} must not offer "session"`);+ answer = "once";+ assert.equal((await relay(operation)).ok, true);+ assert.equal((await relay(operation)).ok, true);+ assert.equal(prompts.length, before + 3, `${operation} must prompt every time`);+ answer = "session";+ }++ // An explicit stop drops the grant.+ await runtime.unload("demo.relay");+ await runtime.loadFromPath(dir, ["desktop.control"]);+ const before = prompts.length;+ answer = "deny";+ assert.equal((await relay("agent/askTool/resolve")).ok, false);+ assert.equal(prompts.length, before + 1, "unloading must forget the grant");+});++test("Allow once is never remembered for an Agent question answer", async (t) => {+ const prompts = [];+ const runtime = createRuntime(t, [], {+ desktopControl: {+ operations: PROMPT_ANSWER_OPERATIONS,+ invoke: async () => ({ ok: true }),+ },+ confirmDesktopControl: async (request) => {+ prompts.push(request);+ return "once";+ },+ });+ const dir = writePlugin("demo.relay.once", ["desktop.control"], RELAY_PLUGIN);+ await runtime.loadFromPath(dir, ["desktop.control"]);+ for (let i = 0; i < 2; i += 1) {+ const result = await runtime.invokePanelBridge("demo.relay.once", "desktop.test", {+ operation: "agent/askTool/resolve",+ });+ assert.equal(result.ok, true);+ }+ assert.equal(prompts.length, 2);+});diff --git a/docs/plugin-development.md b/docs/plugin-development.mdindex ea7191678..68016ee76 100644--- a/docs/plugin-development.md+++ b/docs/plugin-development.md@@ -1183,7 +1183,9 @@ have a 30s capture deadline.`desktop.control` exposes `pi.desktop.listOperations()` and`pi.desktop.invoke({ operation, args, confirm? })` over a reviewed catalog,never arbitrary IPC. Dangerous operations require `confirm: true` **and** the-user's answer in a host-owned native dialog. Session collaboration `spawn` and+user's answer in a host-owned native dialog. Only `agent/askTool/resolve`+offers "Allow until quit"; tool permissions, plan checkpoints, extension+prompts, and destructive operations ask every time. Session collaboration `spawn` and`send` additionally require an active plugin Agent tool invocation; the hostsupplies source session/turn identity. Read the [desktop-control contract](spec/07-plugins/03-plugin-api.md)before using operations that create, prompt, cancel, or delete sessions.diff --git a/docs/spec/07-plugins/04-plugin-security.md b/docs/spec/07-plugins/04-plugin-security.mdindex e9d6ff821..dc203078f 100644--- a/docs/spec/07-plugins/04-plugin-security.md+++ b/docs/spec/07-plugins/04-plugin-security.md@@ -457,6 +457,15 @@ authored, so a prompt-injected transcript cannot relabel `session/delete` assomething benign. Escape and dismissal are refusals. A headless host with nodialog service refuses every dangerous operation outright.+The dialog offers Deny / Allow once. Only `agent/askTool/resolve` also offers+"Allow until quit", because answering an Agent question approves nothing: the+Agent's next action still crosses the host's own tool permission gate. The+grant is in memory, per plugin and operation, and is dropped when the plugin+is explicitly stopped or the app quits. Approvals (`tool/resolvePermission`,+`plans/resolve`, `extensions/ui/respond`) and destructive operations are never+remembered: a plugin-authored answer to them would otherwise approve later+requests without the user (#2504).+`ui.microphone` allows only the `media` permission, for audio, inside theplugin's isolated panel session. Camera and every other device permission staydenied, and the plugin receives no native handle: capture stays page-owned.diff --git a/docs/zh-CN/plugin-development.md b/docs/zh-CN/plugin-development.mdindex 3f6fe7092..dd35ad4de 100644--- a/docs/zh-CN/plugin-development.md+++ b/docs/zh-CN/plugin-development.md@@ -1057,6 +1057,7 @@ CDP 使用允许列表,Cookie、存储、目标管理、网络拦截仍拒绝`desktop.control` 通过 `pi.desktop.listOperations()` 与`pi.desktop.invoke({ operation, args, confirm? })` 访问审定目录,不开放任意 IPC。危险操作同时需要 `confirm: true` 和宿主原生对话框中的用户确认。+仅 `agent/askTool/resolve` 可选“本次运行内允许”;工具权限、计划检查点、扩展提示与破坏性操作每次都需确认。会话协作的 `spawn` / `send` 还要求有效的插件 Agent 工具调用,来源会话与轮次由宿主注入。在创建、发消息、取消或删除会话前,请读[桌面控制契约](/spec/07-plugins/03-plugin-api)。diff --git a/packages/i18n/src/locales/de/index.ts b/packages/i18n/src/locales/de/index.tsindex 744a9c084..aea5184a0 100644--- a/packages/i18n/src/locales/de/index.ts+++ b/packages/i18n/src/locales/de/index.ts@@ -130,6 +130,7 @@ export const de = {"detail":"Dies ist ein gefährlicher Desktop-Vorgang. Das Plugin hat das Risiko bestätigt; ob er ausgeführt wird, entscheiden Sie. Lehnen Sie ab, wenn Sie ihn nicht erwartet haben.","allowOnce": "Einmal erlauben",+ "allowSession": "Erlauben bis zum Beenden","deny": "Ablehnen",},"pluginFsConsent": {diff --git a/packages/i18n/src/locales/en/index.ts b/packages/i18n/src/locales/en/index.tsindex 2bf52cc4c..47481b60c 100644--- a/packages/i18n/src/locales/en/index.ts+++ b/packages/i18n/src/locales/en/index.ts@@ -136,6 +136,7 @@ export const en = {detail:"This is a dangerous desktop operation. The plugin acknowledged the risk; whether it runs is up to you. Deny if you did not expect it.",allowOnce: "Allow once",+ allowSession: "Allow until quit",deny: "Deny",},pluginFsConsent: {diff --git a/packages/i18n/src/locales/es/index.ts b/packages/i18n/src/locales/es/index.tsindex 79a302096..aece8302b 100644--- a/packages/i18n/src/locales/es/index.ts+++ b/packages/i18n/src/locales/es/index.ts@@ -130,6 +130,7 @@ export const es = {"detail":"Esta es una operación de escritorio peligrosa. El plugin reconoció el riesgo; que se ejecute depende de ti. Deniégala si no la esperabas.","allowOnce": "Permitir una vez",+ "allowSession": "Permitir hasta salir","deny": "Denegar",},"pluginFsConsent": {diff --git a/packages/i18n/src/locales/fr/index.ts b/packages/i18n/src/locales/fr/index.tsindex 0b1908792..23537c832 100644--- a/packages/i18n/src/locales/fr/index.ts+++ b/packages/i18n/src/locales/fr/index.ts@@ -130,6 +130,7 @@ export const fr = {"detail":"Il s'agit d'une opération de bureau dangereuse. Le plugin a reconnu le risque ; son exécution dépend de vous. Refusez si vous ne l'attendiez pas.","allowOnce": "Autoriser une fois",+ "allowSession": "Autoriser jusqu'à quitter","deny": "Refuser",},"pluginFsConsent": {diff --git a/packages/i18n/src/locales/ko/index.ts b/packages/i18n/src/locales/ko/index.tsindex e6e82967e..2c504b872 100644--- a/packages/i18n/src/locales/ko/index.ts+++ b/packages/i18n/src/locales/ko/index.ts@@ -138,6 +138,7 @@ export const ko = {detail:"위험한 데스크톱 작업입니다. 플러그인은 위험을 확인했지만 실행 여부는 사용자가 결정합니다. 예상하지 못한 작업이라면 거부하세요.",allowOnce: "한 번 허용",+ allowSession: "종료할 때까지 허용",deny: "거부",},pluginFsConsent: {diff --git a/packages/i18n/src/locales/pt-BR/index.ts b/packages/i18n/src/locales/pt-BR/index.tsindex e802014b0..1b16179ef 100644--- a/packages/i18n/src/locales/pt-BR/index.ts+++ b/packages/i18n/src/locales/pt-BR/index.ts@@ -129,6 +129,7 @@ export const ptBR = {arguments: "Argumentos: {args}",detail: "Esta é uma operação perigosa de desktop. O plugin reconheceu o risco; a execução depende de você. Negue se não a estava esperando.",allowOnce: "Permitir uma vez",+ allowSession: "Permitir até sair",deny: "Negar"},pluginFsConsent: {diff --git a/packages/i18n/src/locales/tr/index.ts b/packages/i18n/src/locales/tr/index.tsindex 1011e44bd..8e460d989 100644--- a/packages/i18n/src/locales/tr/index.ts+++ b/packages/i18n/src/locales/tr/index.ts@@ -138,6 +138,7 @@ export const tr = {detail:"Bu tehlikeli bir masaüstü işlemidir. Eklenti riski kabul etti; çalışıp çalışmayacağına siz karar verirsiniz. Beklemiyorsanız reddedin.",allowOnce: "Bir kez izin ver",+ allowSession: "Çıkışa kadar izin ver",deny: "Reddet",},pluginFsConsent: {diff --git a/packages/i18n/src/locales/zh-CN/index.ts b/packages/i18n/src/locales/zh-CN/index.tsindex 30311bd73..d54437011 100644--- a/packages/i18n/src/locales/zh-CN/index.ts+++ b/packages/i18n/src/locales/zh-CN/index.ts@@ -132,6 +132,7 @@ export const zhCN = {detail:"这是一个危险的桌面操作。插件已确认风险;是否执行由你决定。如果你没有预期到这个操作,请拒绝。",allowOnce: "允许一次",+ allowSession: "本次运行内允许",deny: "拒绝",},pluginFsConsent: {diff --git a/packages/i18n/src/locales/zh-TW/index.ts b/packages/i18n/src/locales/zh-TW/index.tsindex 4e62b29bb..82b697218 100644--- a/packages/i18n/src/locales/zh-TW/index.ts+++ b/packages/i18n/src/locales/zh-TW/index.ts@@ -132,6 +132,7 @@ export const zhTW = {detail:"這是一個危險的桌面操作。外掛已確認風險;是否執行由你決定。如果你沒有預期到這個操作,請拒絕。",allowOnce: "允許一次",+ allowSession: "本次執行內允許",deny: "拒絕",},pluginFsConsent: {