|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 |
|
17 | | -import { resolve, join } from 'node:path'; |
18 | 17 | import * as path from 'node:path'; |
| 18 | +import { join, resolve } from 'node:path'; |
19 | 19 | import { globSync } from 'glob'; |
20 | | -import { SfCommand, Flags } from '@salesforce/sf-plugins-core'; |
| 20 | +import { Flags, SfCommand } from '@salesforce/sf-plugins-core'; |
21 | 21 | import { AuthInfo, Connection, Lifecycle, Messages, SfError } from '@salesforce/core'; |
22 | 22 | import React from 'react'; |
23 | 23 | import { render } from 'ink'; |
24 | 24 | import { env } from '@salesforce/kit'; |
25 | 25 | import { |
26 | 26 | AgentPreview as Preview, |
27 | 27 | AgentSimulate, |
28 | | - findAuthoringBundle, |
29 | 28 | AgentSource, |
30 | | - ScriptAgent, |
| 29 | + findAuthoringBundle, |
31 | 30 | PublishedAgent, |
| 31 | + ScriptAgent, |
32 | 32 | } from '@salesforce/agents'; |
33 | | -import { select, confirm, input } from '@inquirer/prompts'; |
| 33 | +import { confirm, input, select } from '@inquirer/prompts'; |
34 | 34 | import { AgentPreviewReact } from '../../components/agent-preview-react.js'; |
35 | 35 |
|
36 | 36 | Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); |
@@ -183,7 +183,7 @@ export default class AgentPreview extends SfCommand<AgentPreviewResult> { |
183 | 183 | ? new Preview(jwtConn, selectedAgent.Id) |
184 | 184 | : new AgentSimulate(jwtConn, selectedAgent.path, useLiveActions); |
185 | 185 |
|
186 | | - agentPreview.toggleApexDebugMode(flags['apex-debug']); |
| 186 | + agentPreview.setApexDebugMode(flags['apex-debug']); |
187 | 187 |
|
188 | 188 | const instance = render( |
189 | 189 | React.createElement(AgentPreviewReact, { |
|
0 commit comments