agentica 0.14.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -88,6 +88,6 @@ execute: new ${n}Service(),
|
|
|
88
88
|
`)),e=Se({content:D,importCode:n,connectorCode:r}),a=await ye(e);await ae(s,a),await se({projectPath:i,apiKeys:[{key:"OPENAI_API_KEY",value:t.openAIKey??""},{key:"API_PORT",value:t.port?.toString()??"3000"}]}),O.success("\u2705 .env created"),await ie({packageManager:t.packageManager,projectAbsolutePath:i,services:t.services})}async function dt({projectAbsolutePath:i,context:t}){await re({template:"react",project:i}),O.success("\u2705 Template downloaded"),await se({projectPath:i,apiKeys:[{key:"OPENAI_API_KEY",value:t.openAIKey??""},{key:"VITE_AGENTICA_WS_URL",value:`ws://localhost:${t.port}/chat`}]}),O.success("\u2705 .env created"),await ie({packageManager:t.packageManager,projectAbsolutePath:i,services:t.services})}async function Hu({template:i}){ut("Agentica Start Wizard");const t=await Iu({template:i}),{projectAbsolutePath:n}=t;switch(t.template){case"standalone":await Mu({projectAbsolutePath:n,context:t});break;case"nodejs":await Nu({projectAbsolutePath:n,context:t});break;case"nestjs":await mt({projectAbsolutePath:n,context:t});break;case"react":await dt({projectAbsolutePath:n,context:t});break;case"nestjs+react":await mt({projectAbsolutePath:N(n,"server"),context:t}),await dt({projectAbsolutePath:N(n,"client"),context:t});break;default:throw t.template,new Error(`\u274C Template ${t.template} not supported`)}Cu(`
|
|
89
89
|
\u{1F389} Project ${n} created
|
|
90
90
|
\u26A0\uFE0F ${T.yellow("Note:")} Please implement constructor values for each controller generated in agent.ts or index.ts
|
|
91
|
-
`)}const Ru="0.
|
|
91
|
+
`)}const Ru="0.15.0",ne=new Bu;ne.version(Ru),ne.command("start").description("Start a new project").option("-p, --project [nodejs|nestjs|react|nestjs+react|standalone]","The project type").action(async i=>{if(i.project===!0){O.error(`
|
|
92
92
|
\u274C The value of ${T.redBright("--project")} is required`);return}if(!(t=>t===void 0||t==="nodejs"||t==="nestjs"||t==="react"||t==="standalone"||t==="nestjs+react")(i.project)){O.error(`
|
|
93
93
|
\u274C The value of ${T.redBright("--project")} is invalid`);return}ut(`\u{1F680} ${T.blueBright("Agentica")} Setup Wizard`),await Hu({template:i.project})});function Gu(){ne.parse(w.argv)}export{ne as program,Gu as run};
|