chore(cleanup): remove assistant-exclusive skills
Removes the meeting transcription/recording feature end-to-end (get_last_meeting_summary, meetingRecorder/meetingStore/summarize, the useMeetingRecorder renderer hook, and the related IPC/preload wiring) and the remember_info/forget_info long-term memory skills: all three were only ever reachable from the now-removed Assistant mode. adjust_mood and its mood store are unrelated (transversal) and are kept as-is. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,13 +4,12 @@ import { macSkills } from './mac'
|
||||
import { memorySkills } from './memory'
|
||||
import { webSkills } from './web'
|
||||
import { browserSkills } from './browser'
|
||||
import { meetingSkills } from './meeting'
|
||||
|
||||
export type { SkillDefinition } from './types'
|
||||
|
||||
export function loadSkills(): SkillDefinition[] {
|
||||
const platformSkills = process.platform === 'darwin' ? macSkills : windowsSkills
|
||||
return [...platformSkills, ...memorySkills, ...webSkills, ...browserSkills, ...meetingSkills]
|
||||
return [...platformSkills, ...memorySkills, ...webSkills, ...browserSkills]
|
||||
}
|
||||
|
||||
export function findSkill(name: string): SkillDefinition | undefined {
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
import { getLastMeetingSummary } from '../../meeting/meetingStore'
|
||||
import type { SkillDefinition } from '../types'
|
||||
|
||||
export const getLastMeetingSummarySkill: SkillDefinition = {
|
||||
name: 'get_last_meeting_summary',
|
||||
description:
|
||||
"Renvoie le resume de la derniere session de transcription (reunion ou cours) enregistree via le menu contextuel de l'avatar (clic droit).",
|
||||
parameters: { type: 'object', properties: {}, required: [] },
|
||||
execute: async () => {
|
||||
const summary = getLastMeetingSummary()
|
||||
return summary
|
||||
? `Resume de la derniere session enregistree :\n${summary}`
|
||||
: "Aucune session de transcription n'a encore ete enregistree."
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
import type { SkillDefinition } from '../types'
|
||||
import { getLastMeetingSummarySkill } from './getLastMeetingSummary'
|
||||
|
||||
export const meetingSkills: SkillDefinition[] = [getLastMeetingSummarySkill]
|
||||
@@ -1,33 +0,0 @@
|
||||
import { clearAllMemories, forgetMemory } from '../../memory/store'
|
||||
import type { SkillDefinition } from '../types'
|
||||
import { asString } from '../argUtils'
|
||||
|
||||
export const forgetInfo: SkillDefinition = {
|
||||
name: 'forget_info',
|
||||
description:
|
||||
'Supprime une information precedemment memorisee sur l\'utilisateur, ou efface toute la memoire si demande explicitement ("tout").',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
query: {
|
||||
type: 'string',
|
||||
description: 'Mots-cles de l\'information a oublier, ou "tout" pour tout effacer'
|
||||
}
|
||||
},
|
||||
required: ['query']
|
||||
},
|
||||
execute: async (args) => {
|
||||
const query = asString(args.query).trim()
|
||||
if (!query) throw new Error('recherche manquante')
|
||||
|
||||
if (query.toLowerCase() === 'tout') {
|
||||
clearAllMemories()
|
||||
return 'Toute la memoire a ete effacee.'
|
||||
}
|
||||
|
||||
const removed = forgetMemory(query)
|
||||
return removed
|
||||
? `Information oubliee : ${query}`
|
||||
: `Aucune information correspondant a "${query}" trouvee.`
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
import type { SkillDefinition } from '../types'
|
||||
import { rememberInfo } from './rememberInfo'
|
||||
import { forgetInfo } from './forgetInfo'
|
||||
import { adjustMoodSkill } from './adjustMood'
|
||||
|
||||
// Memoire et humeur sont independantes de l'OS, communes a toutes les plateformes.
|
||||
export const memorySkills: SkillDefinition[] = [rememberInfo, forgetInfo, adjustMoodSkill]
|
||||
// Humeur, independante de l'OS, commune a toutes les plateformes.
|
||||
export const memorySkills: SkillDefinition[] = [adjustMoodSkill]
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
import { addMemory } from '../../memory/store'
|
||||
import type { SkillDefinition } from '../types'
|
||||
import { asString } from '../argUtils'
|
||||
|
||||
export const rememberInfo: SkillDefinition = {
|
||||
name: 'remember_info',
|
||||
description:
|
||||
"Memorise durablement une information sur l'utilisateur (preference, habitude, fait personnel important) pour s'en souvenir dans les conversations futures, meme apres redemarrage.",
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
info: {
|
||||
type: 'string',
|
||||
description: 'Information a retenir, formulee clairement (ex: "aime le cafe sans sucre")'
|
||||
}
|
||||
},
|
||||
required: ['info']
|
||||
},
|
||||
execute: async (args) => {
|
||||
const info = asString(args.info).trim()
|
||||
if (!info) throw new Error('information manquante')
|
||||
addMemory(info)
|
||||
return `Retenu : ${info}`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user