@myvillage/cli 1.7.2 → 1.8.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myvillage/cli",
3
- "version": "1.7.2",
3
+ "version": "1.8.1",
4
4
  "description": "MyVillageOS CLI for community developers",
5
5
  "type": "module",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@ai-sdk/anthropic": "^1.0.0",
30
30
  "@ai-sdk/openai": "^3.0.33",
31
- "ai": "^4.0.0",
31
+ "ai": "^5.1.0",
32
32
  "axios": "^1.6.2",
33
33
  "chalk": "^5.3.0",
34
34
  "commander": "^11.1.0",
@@ -143,7 +143,7 @@ async function applicationFlow() {
143
143
  const result = await registerOAuthClient(
144
144
  basics.name,
145
145
  'agentic-app',
146
- ['http://localhost:5173/callback']
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: React frontend + Node.js backend with MCP/API integration
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 (auto-restart)')}`);
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) {