Skip to content

Commit 574a3dc

Browse files
chore: merge with nga, resolve conflicts
2 parents dc1d758 + a007559 commit 574a3dc

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"@inquirer/prompts": "^7.8.6",
1010
"@oclif/core": "^4",
1111
"@oclif/multi-stage-output": "^0.8.23",
12-
"@salesforce/agents": "^0.18.2",
12+
"@salesforce/agents": "nga",
1313
"@salesforce/core": "^8.23.1",
1414
"@salesforce/kit": "^3.2.3",
1515
"@salesforce/sf-plugins-core": "^12.2.4",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default class AgentGenerateAuthoringBundle extends SfCommand<AgentGenerat
134134
// Write Agent file
135135
const conn = targetOrg.getConnection(flags['api-version']);
136136
const specContents = YAML.parse(readFileSync(spec, 'utf8')) as AgentJobSpec;
137-
const agent = await Agent.createAgent(conn, specContents);
137+
const agent = await Agent.createAgentScript(conn, { ...specContents, ...{ name, developerName: bundleApiName } });
138138
// Create output directory if it doesn't exist
139139
mkdirSync(targetOutputDir, { recursive: true });
140140
writeFileSync(agentPath, agent);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default class AgentPublishAuthoringBundle extends SfCommand<AgentPublishA
103103
const conn = targetOrg.getConnection(flags['api-version']);
104104

105105
// First compile the .agent file to get the Agent JSON
106-
const agentJson = await Agent.compileAgent(
106+
const agentJson = await Agent.compileAgentScript(
107107
conn,
108108
readFileSync(join(authoringBundleDir, `${apiName}.agent`), 'utf8')
109109
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export default class AgentValidateAuthoringBundle extends SfCommand<AgentValidat
105105
const conn = targetOrg.getConnection(flags['api-version']);
106106
// Call Agent.compileAgent() API
107107
await sleep(Duration.seconds(2));
108-
await Agent.compileAgent(conn, readFileSync(join(authoringBundleDir, `${apiName}.agent`), 'utf8'));
108+
await Agent.compileAgentScript(conn, readFileSync(join(authoringBundleDir, `${apiName}.agent`), 'utf8'));
109109
mso.updateData({ status: 'COMPLETED' });
110110
mso.stop('completed');
111111
return {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,10 +1578,10 @@
15781578
resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8"
15791579
integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==
15801580

1581-
"@salesforce/agents@^0.18.2":
1582-
version "0.18.2"
1583-
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.18.2.tgz#c061e31449501a0fcbd48cc3c35f3f613ac1a06c"
1584-
integrity sha512-JarlWF9WUp3/qKm73E5dK6BERnqz/fmy+x9r6zeO4YDmLvc1oZV6ufNcXOEN9pmPHh6D0qBWOBJ1IlBHQPIUig==
1581+
"@salesforce/agents@nga":
1582+
version "0.18.3-nga.0"
1583+
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.18.3-nga.0.tgz#406840b40f95542c3719d15a9581fe27c7836c7d"
1584+
integrity sha512-XFkonAuXRuD/5ZR127viJjjlRaSLrScEdWFXaJoix8+WIpuGoHE+KH3ujVPqYenDmVPCEnRtHU9y1AqfROtpZg==
15851585
dependencies:
15861586
"@salesforce/core" "^8.19.1"
15871587
"@salesforce/kit" "^3.2.3"

0 commit comments

Comments
 (0)