nitrostack 1.0.66 → 1.0.67
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 +2 -2
- package/templates/typescript-oauth/AI_AGENT_CLI_REFERENCE.md +0 -701
- package/templates/typescript-oauth/AI_AGENT_SDK_REFERENCE.md +0 -1260
- package/templates/typescript-oauth/package-lock.json +0 -4253
- package/templates/typescript-pizzaz/IMPLEMENTATION.md +0 -98
- package/templates/typescript-starter/AI_AGENT_CLI_REFERENCE.md +0 -701
- package/templates/typescript-starter/AI_AGENT_SDK_REFERENCE.md +0 -1260
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Pizza Shop Template - Complete Implementation
|
|
2
|
-
|
|
3
|
-
This document contains all the code for the remaining files in the pizza shop template.
|
|
4
|
-
|
|
5
|
-
## Server Files
|
|
6
|
-
|
|
7
|
-
### src/modules/pizzaz/pizzaz.module.ts
|
|
8
|
-
```typescript
|
|
9
|
-
import { Module } from '@nestjs/common';
|
|
10
|
-
import { PizzazService } from './pizzaz.service';
|
|
11
|
-
import { PizzazTools } from './pizzaz.tools';
|
|
12
|
-
|
|
13
|
-
@Module({
|
|
14
|
-
providers: [PizzazService, PizzazTools],
|
|
15
|
-
exports: [PizzazService, PizzazTools],
|
|
16
|
-
})
|
|
17
|
-
export class PizzazModule {}
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
### src/health/health.controller.ts
|
|
21
|
-
```typescript
|
|
22
|
-
import { Controller, Get } from '@nestjs/common';
|
|
23
|
-
|
|
24
|
-
@Controller('health')
|
|
25
|
-
export class HealthController {
|
|
26
|
-
@Get()
|
|
27
|
-
check() {
|
|
28
|
-
return { status: 'ok', timestamp: new Date().toISOString() };
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### src/app.module.ts
|
|
34
|
-
```typescript
|
|
35
|
-
import { Module } from '@nestjs/common';
|
|
36
|
-
import { NitroModule } from 'nitrostack';
|
|
37
|
-
import { PizzazModule } from './modules/pizzaz/pizzaz.module';
|
|
38
|
-
import { HealthController } from './health/health.controller';
|
|
39
|
-
|
|
40
|
-
@Module({
|
|
41
|
-
imports: [
|
|
42
|
-
NitroModule.forRoot({
|
|
43
|
-
name: 'pizzaz-finder',
|
|
44
|
-
version: '1.0.0',
|
|
45
|
-
description: 'Find the best pizza shops in San Francisco',
|
|
46
|
-
}),
|
|
47
|
-
PizzazModule,
|
|
48
|
-
],
|
|
49
|
-
controllers: [HealthController],
|
|
50
|
-
})
|
|
51
|
-
export class AppModule {}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### src/index.ts
|
|
55
|
-
```typescript
|
|
56
|
-
import { NestFactory } from '@nestjs/core';
|
|
57
|
-
import { AppModule } from './app.module';
|
|
58
|
-
|
|
59
|
-
async function bootstrap() {
|
|
60
|
-
const app = await NestFactory.create(AppModule);
|
|
61
|
-
|
|
62
|
-
// Enable CORS for studio
|
|
63
|
-
app.enableCors();
|
|
64
|
-
|
|
65
|
-
const port = process.env.PORT || 3000;
|
|
66
|
-
await app.listen(port);
|
|
67
|
-
|
|
68
|
-
console.log(`🍕 Pizzaz Finder MCP Server running on http://localhost:${port}`);
|
|
69
|
-
console.log(`📍 Health check: http://localhost:${port}/health`);
|
|
70
|
-
console.log(`🔧 MCP endpoint: http://localhost:${port}/mcp`);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
bootstrap();
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Widget Files
|
|
79
|
-
|
|
80
|
-
Due to length, I'll provide the widget implementation as separate files. Please create these files manually or I can provide them in chunks.
|
|
81
|
-
|
|
82
|
-
**Key Widget Files Needed:**
|
|
83
|
-
1. `src/widgets/package.json` - Widget dependencies
|
|
84
|
-
2. `src/widgets/next.config.js` - Next.js config
|
|
85
|
-
3. `src/widgets/tailwind.config.ts` - Tailwind config
|
|
86
|
-
4. `src/widgets/app/layout.tsx` - Root layout
|
|
87
|
-
5. `src/widgets/app/pizza-map/page.tsx` - Map widget (uses Mapbox)
|
|
88
|
-
6. `src/widgets/app/pizza-list/page.tsx` - List widget
|
|
89
|
-
7. `src/widgets/app/pizza-shop/page.tsx` - Shop details widget
|
|
90
|
-
8. `src/widgets/components/PizzaCard.tsx` - Reusable card component
|
|
91
|
-
9. `src/widgets/styles/globals.css` - Global styles with Tailwind
|
|
92
|
-
|
|
93
|
-
Would you like me to:
|
|
94
|
-
A) Create all widget files now (will take multiple steps)
|
|
95
|
-
B) Create a simplified version without Mapbox first
|
|
96
|
-
C) Provide the code in a single comprehensive document for you to copy
|
|
97
|
-
|
|
98
|
-
Let me know your preference and I'll proceed accordingly.
|