@mars-stack/cli 5.0.1 → 6.0.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.js +212 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
- package/template/.mars/sync-manifest.yaml +318 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mars-stack/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "MARS CLI: scaffold, configure, and maintain SaaS apps",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -40,12 +40,14 @@
|
|
|
40
40
|
"@mars-stack/ui": "*",
|
|
41
41
|
"commander": "^14.0.3",
|
|
42
42
|
"fs-extra": "^11.0.0",
|
|
43
|
+
"js-yaml": "^4.1.1",
|
|
43
44
|
"ora": "^9.3.0",
|
|
44
45
|
"picocolors": "^1.0.0",
|
|
45
46
|
"prompts": "^2.4.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@types/fs-extra": "^11.0.0",
|
|
50
|
+
"@types/js-yaml": "^4.0.9",
|
|
49
51
|
"@types/node": "^25.4.0",
|
|
50
52
|
"@types/prompts": "^2.4.0",
|
|
51
53
|
"tsup": "^8.0.0",
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
2
|
+
# Mars template sync manifest (authoritative allowlist for mars template sync)
|
|
3
|
+
#
|
|
4
|
+
# Schema (per entry):
|
|
5
|
+
# path — Project-relative path. A trailing /** means "directory must exist
|
|
6
|
+
# and contain at least one file" (used for trees like .cursor/skills).
|
|
7
|
+
# category — plumbing | user-owned | generated | excluded
|
|
8
|
+
# feature_gate — Optional. When set (admin | billing | uploads), this entry is
|
|
9
|
+
# skipped by CI if template/<feature dir> is missing (fixtures
|
|
10
|
+
# without that feature). Monorepo template includes all gates.
|
|
11
|
+
# notes — Optional human context.
|
|
12
|
+
#
|
|
13
|
+
# CI: scripts/check-sync-manifest.ts validates that every non-excluded path exists
|
|
14
|
+
# under template/ in the monorepo.
|
|
15
|
+
# -----------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
- path: package.json
|
|
18
|
+
category: excluded
|
|
19
|
+
notes: Managed by mars upgrade; users add dependencies
|
|
20
|
+
|
|
21
|
+
- path: tsconfig.json
|
|
22
|
+
category: plumbing
|
|
23
|
+
notes: TypeScript project config
|
|
24
|
+
|
|
25
|
+
- path: next.config.ts
|
|
26
|
+
category: plumbing
|
|
27
|
+
|
|
28
|
+
- path: next-env.d.ts
|
|
29
|
+
category: excluded
|
|
30
|
+
notes: Generated by Next.js
|
|
31
|
+
|
|
32
|
+
- path: eslint.config.mjs
|
|
33
|
+
category: plumbing
|
|
34
|
+
|
|
35
|
+
- path: postcss.config.mjs
|
|
36
|
+
category: plumbing
|
|
37
|
+
|
|
38
|
+
- path: vitest.config.ts
|
|
39
|
+
category: plumbing
|
|
40
|
+
|
|
41
|
+
- path: vitest.setup.ts
|
|
42
|
+
category: plumbing
|
|
43
|
+
|
|
44
|
+
- path: playwright.config.ts
|
|
45
|
+
category: plumbing
|
|
46
|
+
|
|
47
|
+
- path: prisma.config.ts
|
|
48
|
+
category: plumbing
|
|
49
|
+
|
|
50
|
+
- path: AGENTS.md
|
|
51
|
+
category: plumbing
|
|
52
|
+
|
|
53
|
+
- path: ARCHITECTURE.md
|
|
54
|
+
category: plumbing
|
|
55
|
+
|
|
56
|
+
- path: .cursor/rules/**
|
|
57
|
+
category: plumbing
|
|
58
|
+
notes: Agent rules shipped via postinstall
|
|
59
|
+
|
|
60
|
+
- path: .cursor/skills/**
|
|
61
|
+
category: plumbing
|
|
62
|
+
notes: Agent skills shipped via postinstall
|
|
63
|
+
|
|
64
|
+
- path: docs/design-docs/conversation-as-system-record.md
|
|
65
|
+
category: plumbing
|
|
66
|
+
|
|
67
|
+
- path: docs/design-docs/core-beliefs.md
|
|
68
|
+
category: plumbing
|
|
69
|
+
|
|
70
|
+
- path: docs/design-docs/index.md
|
|
71
|
+
category: user-owned
|
|
72
|
+
notes: Users extend with their design decisions
|
|
73
|
+
|
|
74
|
+
- path: docs/exec-plans/active/.gitkeep
|
|
75
|
+
category: plumbing
|
|
76
|
+
|
|
77
|
+
- path: docs/exec-plans/completed/.gitkeep
|
|
78
|
+
category: plumbing
|
|
79
|
+
|
|
80
|
+
- path: docs/exec-plans/tech-debt.md
|
|
81
|
+
category: user-owned
|
|
82
|
+
|
|
83
|
+
- path: docs/generated/.gitkeep
|
|
84
|
+
category: plumbing
|
|
85
|
+
|
|
86
|
+
- path: docs/product-specs/index.md
|
|
87
|
+
category: user-owned
|
|
88
|
+
|
|
89
|
+
- path: docs/QUALITY_SCORE.md
|
|
90
|
+
category: user-owned
|
|
91
|
+
|
|
92
|
+
- path: docs/references/index.md
|
|
93
|
+
category: plumbing
|
|
94
|
+
|
|
95
|
+
- path: scripts/ensure-db.mjs
|
|
96
|
+
category: plumbing
|
|
97
|
+
notes: DB startup; primary sync target
|
|
98
|
+
|
|
99
|
+
- path: scripts/check-architecture.ts
|
|
100
|
+
category: plumbing
|
|
101
|
+
|
|
102
|
+
- path: scripts/check-doc-freshness.ts
|
|
103
|
+
category: plumbing
|
|
104
|
+
|
|
105
|
+
- path: scripts/generate-docs.ts
|
|
106
|
+
category: plumbing
|
|
107
|
+
|
|
108
|
+
- path: scripts/generate-env-example.ts
|
|
109
|
+
category: plumbing
|
|
110
|
+
|
|
111
|
+
- path: scripts/seed.ts
|
|
112
|
+
category: user-owned
|
|
113
|
+
notes: Domain-specific seed data
|
|
114
|
+
|
|
115
|
+
- path: scripts/update-quality-score.ts
|
|
116
|
+
category: plumbing
|
|
117
|
+
|
|
118
|
+
- path: prisma/schema/auth.prisma
|
|
119
|
+
category: plumbing
|
|
120
|
+
|
|
121
|
+
- path: prisma/schema/base.prisma
|
|
122
|
+
category: plumbing
|
|
123
|
+
|
|
124
|
+
- path: prisma/schema/file.prisma
|
|
125
|
+
category: plumbing
|
|
126
|
+
feature_gate: uploads
|
|
127
|
+
|
|
128
|
+
- path: prisma/schema/subscription.prisma
|
|
129
|
+
category: plumbing
|
|
130
|
+
feature_gate: billing
|
|
131
|
+
|
|
132
|
+
- path: prisma/generated/**
|
|
133
|
+
category: excluded
|
|
134
|
+
notes: Prisma client output
|
|
135
|
+
|
|
136
|
+
- path: src/styles/globals.css
|
|
137
|
+
category: plumbing
|
|
138
|
+
|
|
139
|
+
- path: src/styles/brand.css
|
|
140
|
+
category: generated
|
|
141
|
+
notes: Initial brand tokens from scaffold prompts
|
|
142
|
+
|
|
143
|
+
- path: src/config/app.config.ts
|
|
144
|
+
category: generated
|
|
145
|
+
|
|
146
|
+
- path: src/config/routes.ts
|
|
147
|
+
category: user-owned
|
|
148
|
+
|
|
149
|
+
- path: src/app/(auth)/layout.tsx
|
|
150
|
+
category: plumbing
|
|
151
|
+
|
|
152
|
+
- path: src/app/(auth)/sign-in/page.tsx
|
|
153
|
+
category: plumbing
|
|
154
|
+
|
|
155
|
+
- path: src/app/(auth)/register/page.tsx
|
|
156
|
+
category: plumbing
|
|
157
|
+
|
|
158
|
+
- path: src/app/(auth)/verify/page.tsx
|
|
159
|
+
category: plumbing
|
|
160
|
+
|
|
161
|
+
- path: src/app/(auth)/verify/[token]/page.tsx
|
|
162
|
+
category: plumbing
|
|
163
|
+
|
|
164
|
+
- path: src/app/(auth)/forgotten-password/page.tsx
|
|
165
|
+
category: plumbing
|
|
166
|
+
|
|
167
|
+
- path: src/app/(auth)/reset-password/page.tsx
|
|
168
|
+
category: plumbing
|
|
169
|
+
|
|
170
|
+
- path: src/app/(protected)/layout.tsx
|
|
171
|
+
category: plumbing
|
|
172
|
+
|
|
173
|
+
- path: src/app/(protected)/dashboard/page.tsx
|
|
174
|
+
category: user-owned
|
|
175
|
+
|
|
176
|
+
- path: src/app/(protected)/dashboard/loading.tsx
|
|
177
|
+
category: plumbing
|
|
178
|
+
|
|
179
|
+
- path: src/app/(protected)/settings/page.tsx
|
|
180
|
+
category: user-owned
|
|
181
|
+
|
|
182
|
+
- path: src/app/(protected)/settings/billing/page.tsx
|
|
183
|
+
category: plumbing
|
|
184
|
+
feature_gate: billing
|
|
185
|
+
|
|
186
|
+
- path: src/app/(protected)/files/page.tsx
|
|
187
|
+
category: plumbing
|
|
188
|
+
feature_gate: uploads
|
|
189
|
+
|
|
190
|
+
- path: src/app/(protected)/admin/page.tsx
|
|
191
|
+
category: plumbing
|
|
192
|
+
feature_gate: admin
|
|
193
|
+
|
|
194
|
+
- path: src/app/page.tsx
|
|
195
|
+
category: user-owned
|
|
196
|
+
|
|
197
|
+
- path: src/app/pricing/page.tsx
|
|
198
|
+
category: user-owned
|
|
199
|
+
|
|
200
|
+
- path: src/app/privacy/page.tsx
|
|
201
|
+
category: user-owned
|
|
202
|
+
|
|
203
|
+
- path: src/app/terms/page.tsx
|
|
204
|
+
category: user-owned
|
|
205
|
+
|
|
206
|
+
- path: src/app/layout.tsx
|
|
207
|
+
category: plumbing
|
|
208
|
+
|
|
209
|
+
- path: src/app/providers.tsx
|
|
210
|
+
category: plumbing
|
|
211
|
+
|
|
212
|
+
- path: src/app/error.tsx
|
|
213
|
+
category: plumbing
|
|
214
|
+
|
|
215
|
+
- path: src/app/not-found.tsx
|
|
216
|
+
category: plumbing
|
|
217
|
+
|
|
218
|
+
- path: src/proxy.ts
|
|
219
|
+
category: plumbing
|
|
220
|
+
notes: Next.js 16 request proxy (replaces legacy src/middleware.ts in inventory)
|
|
221
|
+
|
|
222
|
+
- path: src/app/api/auth/**
|
|
223
|
+
category: plumbing
|
|
224
|
+
|
|
225
|
+
- path: src/app/api/csrf/route.ts
|
|
226
|
+
category: plumbing
|
|
227
|
+
|
|
228
|
+
- path: src/app/api/health/route.ts
|
|
229
|
+
category: plumbing
|
|
230
|
+
|
|
231
|
+
- path: src/app/api/readiness/route.ts
|
|
232
|
+
category: plumbing
|
|
233
|
+
|
|
234
|
+
- path: src/app/api/protected/admin/**
|
|
235
|
+
category: plumbing
|
|
236
|
+
feature_gate: admin
|
|
237
|
+
|
|
238
|
+
- path: src/app/api/protected/billing/**
|
|
239
|
+
category: plumbing
|
|
240
|
+
feature_gate: billing
|
|
241
|
+
|
|
242
|
+
- path: src/app/api/protected/files/**
|
|
243
|
+
category: plumbing
|
|
244
|
+
feature_gate: uploads
|
|
245
|
+
|
|
246
|
+
- path: src/app/api/protected/user/**
|
|
247
|
+
category: plumbing
|
|
248
|
+
|
|
249
|
+
- path: src/app/api/webhooks/stripe/route.ts
|
|
250
|
+
category: plumbing
|
|
251
|
+
feature_gate: billing
|
|
252
|
+
|
|
253
|
+
- path: src/lib/mars.ts
|
|
254
|
+
category: plumbing
|
|
255
|
+
|
|
256
|
+
- path: src/lib/prisma.ts
|
|
257
|
+
category: plumbing
|
|
258
|
+
|
|
259
|
+
- path: src/lib/core/email/templates/base-layout.ts
|
|
260
|
+
category: plumbing
|
|
261
|
+
|
|
262
|
+
- path: src/lib/core/email/templates/index.ts
|
|
263
|
+
category: plumbing
|
|
264
|
+
|
|
265
|
+
- path: src/lib/core/email/templates/verification-email.ts
|
|
266
|
+
category: plumbing
|
|
267
|
+
|
|
268
|
+
- path: src/lib/core/email/templates/password-reset-email.ts
|
|
269
|
+
category: plumbing
|
|
270
|
+
|
|
271
|
+
- path: src/lib/core/email/templates/welcome-email.ts
|
|
272
|
+
category: plumbing
|
|
273
|
+
|
|
274
|
+
- path: src/features/auth/**
|
|
275
|
+
category: plumbing
|
|
276
|
+
|
|
277
|
+
- path: src/features/admin/**
|
|
278
|
+
category: plumbing
|
|
279
|
+
feature_gate: admin
|
|
280
|
+
|
|
281
|
+
- path: src/features/billing/**
|
|
282
|
+
category: plumbing
|
|
283
|
+
feature_gate: billing
|
|
284
|
+
|
|
285
|
+
- path: src/features/uploads/**
|
|
286
|
+
category: plumbing
|
|
287
|
+
feature_gate: uploads
|
|
288
|
+
|
|
289
|
+
- path: e2e/api.spec.ts
|
|
290
|
+
category: plumbing
|
|
291
|
+
|
|
292
|
+
- path: e2e/auth.spec.ts
|
|
293
|
+
category: plumbing
|
|
294
|
+
|
|
295
|
+
- path: e2e/public.spec.ts
|
|
296
|
+
category: plumbing
|
|
297
|
+
|
|
298
|
+
- path: src/__tests__/architecture.test.ts
|
|
299
|
+
category: plumbing
|
|
300
|
+
|
|
301
|
+
- path: src/app/api/auth/signup/route.test.ts
|
|
302
|
+
category: plumbing
|
|
303
|
+
|
|
304
|
+
- path: .env
|
|
305
|
+
category: excluded
|
|
306
|
+
notes: Secrets; never synced
|
|
307
|
+
|
|
308
|
+
- path: .env.development.local
|
|
309
|
+
category: excluded
|
|
310
|
+
|
|
311
|
+
- path: .next/**
|
|
312
|
+
category: excluded
|
|
313
|
+
|
|
314
|
+
- path: .turbo/**
|
|
315
|
+
category: excluded
|
|
316
|
+
|
|
317
|
+
- path: node_modules/**
|
|
318
|
+
category: excluded
|