Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge pull request #6209 from makecindy/feature/plugin-task-preferences-opt-out

GaoWei Liu216cca16a88b
diff --cc apps/desktop/src/shared/ghost.ts
index 976e898873,70acdc82ab..8b222faa57
--- a/apps/desktop/src/shared/ghost.ts
+++ b/apps/desktop/src/shared/ghost.ts
@@@ -3011,10 -2994,9 +3013,11 @@@ const GHOST_MANIFEST_KNOWN_TOP_LEVEL_FI
'node',
'settingsHtml',
'settingsHeight',
+ 'showTaskPreferences',
'slots',
'card',
+ 'mail',
+ 'mailReader',
'tools',
'cindy',
'model',
@@@ -6051,9 -6026,10 +6057,12 @@@ function validateGhostManifestInput(val
...(raw.settingsHtml !== undefined ? { settingsHtml: raw.settingsHtml as string } : {}),
...(raw.mobile !== undefined ? { mobile: raw.mobile as GhostManifest['mobile'] } : {}),
...(raw.settingsHeight !== undefined ? { settingsHeight: raw.settingsHeight as number } : {}),
+ ...(raw.showTaskPreferences !== undefined
+ ? { showTaskPreferences: raw.showTaskPreferences as boolean }
+ : {}),
...(tools !== undefined ? { tools } : {}),
+ ...(raw.mail === true ? { mail: true as const } : {}),
+ ...(mailReader ? { mailReader: { ...(raw.mailReader as Record<string, unknown>), ...mailReader } } : {}),
...(card !== undefined || prepared.v3BaseCard || slots.includes('card')
? { card: card ?? {} }
: {}),
diff --cc packages/plugin-protocol/src/manifest.ts
index 33fbe1ca74,9a9b2a9a11..10e4143bb0
--- a/packages/plugin-protocol/src/manifest.ts
+++ b/packages/plugin-protocol/src/manifest.ts
@@@ -1174,10 -1172,9 +1176,11 @@@ const GHOST_MANIFEST_KNOWN_TOP_LEVEL_FI
'node',
'settingsHtml',
'settingsHeight',
+ 'showTaskPreferences',
'slots',
'card',
+ 'mail',
+ 'mailReader',
'tools',
'cindy',
'model',