diff --git a/src/commands/agent/generate/spec.ts b/src/commands/agent/generate/spec.ts index 027dad0..e26ebae 100644 --- a/src/commands/agent/generate/spec.ts +++ b/src/commands/agent/generate/spec.ts @@ -167,7 +167,10 @@ export default class AgentCreateSpec extends SfCommand { // Write a file with the returned job specs const filePath = join(flags['output-dir'], flags['file-name']); - writeFileSync(filePath, JSON.stringify(agentSpec, null, 4)); + writeFileSync( + filePath, + JSON.stringify({ type, role, companyName, companyDescription, companyWebsite, JobSpec: agentSpec }, null, 4) + ); this.spinner.stop();