diff --git a/schemas/agent-preview.json b/schemas/agent-preview.json index b9194a1..617d82f 100644 --- a/schemas/agent-preview.json +++ b/schemas/agent-preview.json @@ -3,14 +3,7 @@ "$ref": "#/definitions/AgentPreviewResult", "definitions": { "AgentPreviewResult": { - "type": "object", - "properties": { - "path": { - "type": "string" - } - }, - "required": ["path"], - "additionalProperties": false + "type": "null" } } } diff --git a/src/commands/agent/preview.ts b/src/commands/agent/preview.ts index 4646bc8..638aa22 100644 --- a/src/commands/agent/preview.ts +++ b/src/commands/agent/preview.ts @@ -14,7 +14,9 @@ import { AgentPreviewReact } from '../../components/agent-preview-react.js'; Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-agent', 'agent.preview'); -export default class AgentPreview extends SfCommand { +export type AgentPreviewResult = void; + +export default class AgentPreview extends SfCommand { public static readonly summary = messages.getMessage('summary'); public static readonly description = messages.getMessage('description'); public static readonly examples = messages.getMessages('examples'); @@ -32,7 +34,7 @@ export default class AgentPreview extends SfCommand { }), }; - public async run(): Promise { + public async run(): Promise { const { flags } = await this.parse(AgentPreview); this.log(`previewing ${flags.name}`);