Skip to content

Commit a309d08

Browse files
chore: change aiAuthoringBundle extension and folder name
1 parent 5757405 commit a309d08

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/commands/agent/generate/authoring-bundle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ export default class AgentGenerateAuthoringBundle extends SfCommand<AgentGenerat
8484
try {
8585
// Get default output directory if not specified
8686
const defaultOutputDir = join(this.project!.getDefaultPackage().fullPath, 'main', 'default');
87-
const targetOutputDir = join(outputDir ?? defaultOutputDir, 'aiAuthoringBundle', name);
87+
const targetOutputDir = join(outputDir ?? defaultOutputDir, 'aiAuthoringBundles', name);
8888

8989
// Generate file paths
9090
const afScriptPath = join(targetOutputDir, `${name}.agent`);
91-
const metaXmlPath = join(targetOutputDir, `${name}.authoring-bundle-meta.xml`);
91+
const metaXmlPath = join(targetOutputDir, `${name}.aiAuthoringBundle-meta.xml`);
9292

9393
// Write AFScript file
9494
const conn = targetOrg.getConnection(flags['api-version']);

test/nuts/agent.generate.authoring-bundle.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ describe.skip('agent generate authoring-bundle NUTs', () => {
7979
it('should use default output directory when not specified', async () => {
8080
const username = session.orgs.get('default')!.username as string;
8181
const specPath = join(session.project.dir, 'specs', specFileName);
82-
const defaultPath = join('force-app', 'main', 'default', 'aiAuthoringBundle');
82+
const defaultPath = join('force-app', 'main', 'default', 'aiAuthoringBundles');
8383

8484
const command = `agent generate authoring-bundle --spec ${specPath} --name ${bundleName} --target-org ${username} --json`;
8585
const result = execCmd<AgentGenerateAuthoringBundleResult>(command, { ensureExitCode: 0 }).jsonOutput?.result;

test/nuts/agent.publish.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe.skip('agent publish authoring-bundle NUTs', () => {
4242
});
4343

4444
it('should publish a valid authoring bundle', () => {
45-
const bundlePath = join(session.project.dir, 'force-app', 'main', 'default', 'aiAuthoringBundle');
45+
const bundlePath = join(session.project.dir, 'force-app', 'main', 'default', 'aiAuthoringBundles');
4646

4747
const result = execCmd<AgentPublishAuthoringBundleResult>(
4848
`agent publish authoring-bundle --api-name ${bundlePath} --json`,

test/nuts/agent.validate.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe.skip('agent validate authoring-bundle NUTs', () => {
4343

4444
it('should validate a valid authoring bundle', () => {
4545
const username = session.orgs.get('default')!.username as string;
46-
const bundlePath = join(session.project.dir, 'force-app', 'main', 'default', 'aiAuthoringBundle');
46+
const bundlePath = join(session.project.dir, 'force-app', 'main', 'default', 'aiAuthoringBundles');
4747

4848
const result = execCmd<AgentValidateAuthoringBundleResult>(
4949
`agent validate authoring-bundle --api-name ${bundlePath} --target-org ${username} --json`,

0 commit comments

Comments
 (0)