@myvillage/cli 1.7.1 → 1.8.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/package.json +1 -1
- package/src/commands/create-app.js +5 -4
- package/src/utils/agentic-templates.js +860 -1093
- package/src/utils/api.js +2 -2
package/package.json
CHANGED
|
@@ -143,7 +143,7 @@ async function applicationFlow() {
|
|
|
143
143
|
const result = await registerOAuthClient(
|
|
144
144
|
basics.name,
|
|
145
145
|
'agentic-app',
|
|
146
|
-
['http://localhost:
|
|
146
|
+
['http://localhost:3000/api/auth/callback']
|
|
147
147
|
);
|
|
148
148
|
oauthCredentials = { clientId: result.clientId, clientSecret: result.clientSecret };
|
|
149
149
|
oauthSpinner.succeed('OAuth application registered!');
|
|
@@ -168,7 +168,7 @@ async function applicationFlow() {
|
|
|
168
168
|
const spinner = villageSpinner('Creating application...').start();
|
|
169
169
|
try {
|
|
170
170
|
if (needsAgenticBackend) {
|
|
171
|
-
// Full-stack:
|
|
171
|
+
// Full-stack: Next.js app with server-side OAuth, MCP, and API integration
|
|
172
172
|
createAgenticAppProject(targetDir, {
|
|
173
173
|
name: basics.name,
|
|
174
174
|
description: basics.description,
|
|
@@ -206,7 +206,8 @@ async function applicationFlow() {
|
|
|
206
206
|
console.log();
|
|
207
207
|
console.log(` ${brand.gold('cd')} ${slug}`);
|
|
208
208
|
if (needsAgenticBackend) {
|
|
209
|
-
console.log(` ${brand.gold('npm run dev')} ${brand.teal('- Start development server
|
|
209
|
+
console.log(` ${brand.gold('npm run dev')} ${brand.teal('- Start development server')}`);
|
|
210
|
+
console.log(` ${brand.gold('npm run build')} ${brand.teal('- Build for production')}`);
|
|
210
211
|
console.log(` ${brand.gold('npm start')} ${brand.teal('- Start production server')}`);
|
|
211
212
|
} else {
|
|
212
213
|
console.log(` ${brand.gold('npm run dev')} ${brand.teal('- Start development server')}`);
|
|
@@ -226,7 +227,7 @@ async function applicationFlow() {
|
|
|
226
227
|
console.log(brand.teal(` OAuth Client ID: ${oauthCredentials.clientId}`));
|
|
227
228
|
}
|
|
228
229
|
if (includeMcp) {
|
|
229
|
-
console.log(brand.teal(' Set ANTHROPIC_API_KEY in .env to enable the AI agent'));
|
|
230
|
+
console.log(brand.teal(' Set ANTHROPIC_API_KEY in .env.local to enable the AI agent'));
|
|
230
231
|
}
|
|
231
232
|
console.log();
|
|
232
233
|
} catch (err) {
|