Skip to content

Commit f84f3a4

Browse files
chore: change extension of afScript file
1 parent d9d9eed commit f84f3a4

File tree

5 files changed

+7
-10
lines changed

5 files changed

+7
-10
lines changed

messages/agent.publish.authoring-bundle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Failed to publish agent with the following errors:
3434

3535
# error.afscriptNotFound
3636

37-
Could not find an .afscript file with API name '%s' in the project.
37+
Could not find an .agent file with API name '%s' in the project.
3838

3939
# error.afscriptNotFoundAction
4040

41-
Please check that the API name is correct and that the .afscript file exists in your project directory.
41+
Please check that the API name is correct and that the .agent file exists in your project directory.

messages/agent.validate.authoring-bundle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ AF Script compilation failed with the following errors:
3030

3131
# error.afscriptNotFound
3232

33-
Could not find an .afscript file with API name '%s' in the project.
33+
Could not find an .agent file with API name '%s' in the project.
3434

3535
# error.afscriptNotFoundAction
3636

37-
Please check that the API name is correct and that the .afscript file exists in your project directory.
37+
Please check that the API name is correct and that the .agent file exists in your project directory.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class AgentGenerateAuthoringBundle extends SfCommand<AgentGenerat
8686
const targetOutputDir = join(outputDir ?? defaultOutputDir, 'aiAuthoringBundle', name);
8787

8888
// Generate file paths
89-
const afScriptPath = join(targetOutputDir, `${name}.afscript`);
89+
const afScriptPath = join(targetOutputDir, `${name}.agent`);
9090
const metaXmlPath = join(targetOutputDir, `${name}.authoring-bundle-meta.xml`);
9191

9292
// Write AFScript file

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export default class AgentPublishAuthoringBundle extends SfCommand<AgentPublishA
8383
// First compile the AF script to get the Agent JSON
8484
const agentJson = await Agent.compileAfScript(
8585
conn,
86-
readFileSync(join(authoringBundleDir, `${flags['api-name']}.afscript`), 'utf8')
86+
readFileSync(join(authoringBundleDir, `${flags['api-name']}.agent`), 'utf8')
8787
);
8888
mso.skipTo('Publish Agent');
8989

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ export default class AgentValidateAuthoringBundle extends SfCommand<AgentValidat
5858
const targetOrg = flags['target-org'];
5959
const conn = targetOrg.getConnection(flags['api-version']);
6060
// Call Agent.compileAfScript() API
61-
await Agent.compileAfScript(
62-
conn,
63-
readFileSync(join(authoringBundleDir, `${flags['api-name']}.afscript`), 'utf8')
64-
);
61+
await Agent.compileAfScript(conn, readFileSync(join(authoringBundleDir, `${flags['api-name']}.agent`), 'utf8'));
6562
this.logSuccess('Successfully compiled');
6663
return {
6764
success: true,

0 commit comments

Comments
 (0)