mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 16:30:27 +00:00
- Add allowDestructiveActions parameter throughout AI request chain - Implement edit mode UI toggle with visual indicators - Update getQueryActions to conditionally include destructive tools - Add blue highlight styling when edit mode is active
20 lines
No EOL
512 B
TypeScript
20 lines
No EOL
512 B
TypeScript
import type { IAIFunctionDefinition } from "./IAIFunctionDefinition";
|
|
import { ListVaultFiles } from "./Functions/ListVaultFiles";
|
|
import { ReadFile } from "./Functions/ReadFile";
|
|
|
|
export class AIFunctionDefinitions {
|
|
public getQueryActions(destructive: boolean): IAIFunctionDefinition[] {
|
|
const actions = [
|
|
ListVaultFiles,
|
|
ReadFile
|
|
];
|
|
|
|
if (destructive) {
|
|
actions.concat([
|
|
|
|
]);
|
|
}
|
|
|
|
return actions;
|
|
}
|
|
} |