@openbuilder/cli 0.31.11
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/README.md +1053 -0
- package/bin/openbuilder.js +31 -0
- package/dist/chunks/Banner-D4tqKfzA.js +113 -0
- package/dist/chunks/Banner-D4tqKfzA.js.map +1 -0
- package/dist/chunks/auto-update-Dj3lWPWO.js +350 -0
- package/dist/chunks/auto-update-Dj3lWPWO.js.map +1 -0
- package/dist/chunks/build-D0qYqIq0.js +116 -0
- package/dist/chunks/build-D0qYqIq0.js.map +1 -0
- package/dist/chunks/cleanup-qVTsA3tk.js +141 -0
- package/dist/chunks/cleanup-qVTsA3tk.js.map +1 -0
- package/dist/chunks/cli-error-BjQwvWtK.js +140 -0
- package/dist/chunks/cli-error-BjQwvWtK.js.map +1 -0
- package/dist/chunks/config-BGP1jZJ4.js +167 -0
- package/dist/chunks/config-BGP1jZJ4.js.map +1 -0
- package/dist/chunks/config-manager-BkbjtN-H.js +133 -0
- package/dist/chunks/config-manager-BkbjtN-H.js.map +1 -0
- package/dist/chunks/database-BvAbD4sP.js +68 -0
- package/dist/chunks/database-BvAbD4sP.js.map +1 -0
- package/dist/chunks/database-setup-BYjIRAmT.js +253 -0
- package/dist/chunks/database-setup-BYjIRAmT.js.map +1 -0
- package/dist/chunks/exports-ij9sv4UM.js +7793 -0
- package/dist/chunks/exports-ij9sv4UM.js.map +1 -0
- package/dist/chunks/init-CZoN6soU.js +468 -0
- package/dist/chunks/init-CZoN6soU.js.map +1 -0
- package/dist/chunks/init-tui-BNzk_7Yx.js +1127 -0
- package/dist/chunks/init-tui-BNzk_7Yx.js.map +1 -0
- package/dist/chunks/logger-ZpJi7chw.js +38 -0
- package/dist/chunks/logger-ZpJi7chw.js.map +1 -0
- package/dist/chunks/main-tui-Cq1hLCx-.js +644 -0
- package/dist/chunks/main-tui-Cq1hLCx-.js.map +1 -0
- package/dist/chunks/manager-CvGX9qqe.js +1161 -0
- package/dist/chunks/manager-CvGX9qqe.js.map +1 -0
- package/dist/chunks/port-allocator-BRFzgH9b.js +749 -0
- package/dist/chunks/port-allocator-BRFzgH9b.js.map +1 -0
- package/dist/chunks/process-killer-CaUL7Kpl.js +87 -0
- package/dist/chunks/process-killer-CaUL7Kpl.js.map +1 -0
- package/dist/chunks/prompts-1QbE_bRr.js +128 -0
- package/dist/chunks/prompts-1QbE_bRr.js.map +1 -0
- package/dist/chunks/repo-cloner-CpOQjFSo.js +219 -0
- package/dist/chunks/repo-cloner-CpOQjFSo.js.map +1 -0
- package/dist/chunks/repo-detector-B_oj696o.js +66 -0
- package/dist/chunks/repo-detector-B_oj696o.js.map +1 -0
- package/dist/chunks/run-D23hg4xy.js +630 -0
- package/dist/chunks/run-D23hg4xy.js.map +1 -0
- package/dist/chunks/runner-logger-instance-nDWv2h2T.js +899 -0
- package/dist/chunks/runner-logger-instance-nDWv2h2T.js.map +1 -0
- package/dist/chunks/spinner-BJL9zWAJ.js +53 -0
- package/dist/chunks/spinner-BJL9zWAJ.js.map +1 -0
- package/dist/chunks/start-BygPCbvw.js +1708 -0
- package/dist/chunks/start-BygPCbvw.js.map +1 -0
- package/dist/chunks/start-traditional-uoLZXdxm.js +255 -0
- package/dist/chunks/start-traditional-uoLZXdxm.js.map +1 -0
- package/dist/chunks/status-cS8YwtUx.js +97 -0
- package/dist/chunks/status-cS8YwtUx.js.map +1 -0
- package/dist/chunks/theme-DhorI2Hb.js +44 -0
- package/dist/chunks/theme-DhorI2Hb.js.map +1 -0
- package/dist/chunks/upgrade-CT6w0lKp.js +323 -0
- package/dist/chunks/upgrade-CT6w0lKp.js.map +1 -0
- package/dist/chunks/useBuildState-CdBSu9y_.js +331 -0
- package/dist/chunks/useBuildState-CdBSu9y_.js.map +1 -0
- package/dist/cli/index.js +694 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.js +14358 -0
- package/dist/index.js.map +1 -0
- package/dist/instrument.js +64226 -0
- package/dist/instrument.js.map +1 -0
- package/dist/templates.json +295 -0
- package/package.json +98 -0
- package/scripts/install-vendor-deps.js +34 -0
- package/scripts/install-vendor.js +167 -0
- package/scripts/prepare-release.js +71 -0
- package/templates/config.template.json +18 -0
- package/templates.json +295 -0
- package/vendor/ai-sdk-provider-claude-code-LOCAL.tgz +0 -0
- package/vendor/sentry-core-LOCAL.tgz +0 -0
- package/vendor/sentry-nextjs-LOCAL.tgz +0 -0
- package/vendor/sentry-node-LOCAL.tgz +0 -0
- package/vendor/sentry-node-core-LOCAL.tgz +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.0",
|
|
3
|
+
"workspace": "~/openbuilder-projects",
|
|
4
|
+
"apiUrl": "http://localhost:3000",
|
|
5
|
+
"server": {
|
|
6
|
+
"wsUrl": "ws://localhost:3000/ws/runner",
|
|
7
|
+
"secret": "dev-secret"
|
|
8
|
+
},
|
|
9
|
+
"runner": {
|
|
10
|
+
"id": "local",
|
|
11
|
+
"reconnectAttempts": 5,
|
|
12
|
+
"heartbeatInterval": 15000
|
|
13
|
+
},
|
|
14
|
+
"tunnel": {
|
|
15
|
+
"provider": "cloudflare",
|
|
16
|
+
"autoCreate": true
|
|
17
|
+
}
|
|
18
|
+
}
|
package/templates.json
ADDED
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"templates": [
|
|
4
|
+
{
|
|
5
|
+
"id": "react-vite",
|
|
6
|
+
"name": "React + Vite",
|
|
7
|
+
"description": "Simple, fast React app with Vite - perfect for basic projects and prototypes",
|
|
8
|
+
"repository": "github:codyde/template-reactvite",
|
|
9
|
+
"branch": "main",
|
|
10
|
+
|
|
11
|
+
"selection": {
|
|
12
|
+
"keywords": [
|
|
13
|
+
"simple",
|
|
14
|
+
"basic",
|
|
15
|
+
"quick",
|
|
16
|
+
"prototype",
|
|
17
|
+
"demo",
|
|
18
|
+
"app",
|
|
19
|
+
"website",
|
|
20
|
+
"page",
|
|
21
|
+
"ui",
|
|
22
|
+
"interface",
|
|
23
|
+
"component",
|
|
24
|
+
"react",
|
|
25
|
+
"vite",
|
|
26
|
+
"frontend"
|
|
27
|
+
],
|
|
28
|
+
"useCases": [
|
|
29
|
+
"Simple single-page applications and UIs",
|
|
30
|
+
"Quick prototypes and demos",
|
|
31
|
+
"Basic web apps without backend complexity",
|
|
32
|
+
"Learning projects and tutorials",
|
|
33
|
+
"Component libraries and design systems",
|
|
34
|
+
"Client-side only applications",
|
|
35
|
+
"Default choice for straightforward projects"
|
|
36
|
+
],
|
|
37
|
+
"examples": [
|
|
38
|
+
"Build a todo app",
|
|
39
|
+
"Create a calculator",
|
|
40
|
+
"Make a weather app",
|
|
41
|
+
"Build a simple dashboard",
|
|
42
|
+
"Create a landing page",
|
|
43
|
+
"Build a basic form"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
"tech": {
|
|
48
|
+
"framework": "vite",
|
|
49
|
+
"version": "5.x",
|
|
50
|
+
"language": "typescript",
|
|
51
|
+
"styling": "tailwind",
|
|
52
|
+
"packageManager": "pnpm",
|
|
53
|
+
"nodeVersion": ">=20.0.0"
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
"setup": {
|
|
57
|
+
"defaultPort": 5173,
|
|
58
|
+
"installCommand": "pnpm install",
|
|
59
|
+
"devCommand": "pnpm dev",
|
|
60
|
+
"buildCommand": "pnpm build"
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
"ai": {
|
|
64
|
+
"systemPromptAddition": "This is a simple React + Vite project - the default for basic applications.\n\n**Key Patterns:**\n- Pure client-side React application\n- No backend or API needed\n- Fast development with Vite HMR\n- TypeScript for type safety\n- Tailwind CSS for styling\n\n**Directory Structure:**\n- src/ - React components and logic\n- src/components/ - Reusable components\n- src/App.tsx - Main application component\n\n**When to use:**\n- Simple UIs without server-side logic\n- Prototypes and demos\n- Learning projects\n- Any basic React application\n\n**When NOT to use:**\n- Need authentication or database (use Next.js)\n- Need static site generation (use Astro)",
|
|
65
|
+
|
|
66
|
+
"includedFeatures": [
|
|
67
|
+
"React 18 with TypeScript",
|
|
68
|
+
"Vite 5 with fast HMR",
|
|
69
|
+
"Tailwind CSS configured",
|
|
70
|
+
"ESLint and TypeScript setup",
|
|
71
|
+
"Example components and routing",
|
|
72
|
+
"Clean project structure"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
{
|
|
78
|
+
"id": "nextjs-fullstack",
|
|
79
|
+
"name": "Next.js Full-Stack",
|
|
80
|
+
"description": "Modern full-stack with App Router, TypeScript, Tailwind, and shadcn/ui",
|
|
81
|
+
"repository": "github:codyde/template-nextjs",
|
|
82
|
+
"branch": "main",
|
|
83
|
+
|
|
84
|
+
"selection": {
|
|
85
|
+
"keywords": [
|
|
86
|
+
"nextjs",
|
|
87
|
+
"next.js",
|
|
88
|
+
"next",
|
|
89
|
+
"full-stack",
|
|
90
|
+
"fullstack",
|
|
91
|
+
"ssr",
|
|
92
|
+
"server-side",
|
|
93
|
+
"app router",
|
|
94
|
+
"react server components",
|
|
95
|
+
"tailwind",
|
|
96
|
+
"shadcn",
|
|
97
|
+
"typescript",
|
|
98
|
+
"authentication",
|
|
99
|
+
"auth",
|
|
100
|
+
"database",
|
|
101
|
+
"api",
|
|
102
|
+
"dashboard",
|
|
103
|
+
"admin",
|
|
104
|
+
"saas"
|
|
105
|
+
],
|
|
106
|
+
"useCases": [
|
|
107
|
+
"Full-stack web applications with server and client rendering",
|
|
108
|
+
"SaaS products requiring authentication and APIs",
|
|
109
|
+
"Dynamic websites with database integration",
|
|
110
|
+
"Dashboard applications with real-time data",
|
|
111
|
+
"E-commerce platforms",
|
|
112
|
+
"Admin panels and management tools",
|
|
113
|
+
"Applications requiring SEO optimization"
|
|
114
|
+
],
|
|
115
|
+
"examples": [
|
|
116
|
+
"Build a todo app with authentication",
|
|
117
|
+
"Create an analytics dashboard",
|
|
118
|
+
"Make a blog with CMS",
|
|
119
|
+
"Build a SaaS landing page with pricing",
|
|
120
|
+
"Create an e-commerce product catalog",
|
|
121
|
+
"Build an admin panel with user management"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
|
|
125
|
+
"tech": {
|
|
126
|
+
"framework": "next",
|
|
127
|
+
"version": "15.x",
|
|
128
|
+
"language": "typescript",
|
|
129
|
+
"styling": "tailwind",
|
|
130
|
+
"uiLibrary": "shadcn",
|
|
131
|
+
"packageManager": "pnpm",
|
|
132
|
+
"nodeVersion": ">=20.0.0"
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
"setup": {
|
|
136
|
+
"defaultPort": 3001,
|
|
137
|
+
"installCommand": "pnpm install",
|
|
138
|
+
"devCommand": "pnpm dev",
|
|
139
|
+
"buildCommand": "pnpm build"
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
"ai": {
|
|
143
|
+
"systemPromptAddition": "This is a Next.js 15 App Router project.\n\n**Key Patterns:**\n- Use Server Components by default (no 'use client' needed)\n- Add 'use client' ONLY when needed (useState, useEffect, event handlers)\n- API routes: app/api/[route]/route.ts with export async function GET/POST\n- Use TypeScript import type for type-only imports\n- Tailwind for styling with utility classes\n- shadcn/ui components are pre-installed in components/ui/\n\n**Directory Structure:**\n- app/ - App Router pages and layouts\n- components/ - Shared React components\n- lib/ - Utilities, types, helpers\n\n**After template is downloaded:**\n1. Install dependencies: cd {projectName} && pnpm install\n2. Components are ready to use: import { Button } from '@/components/ui/button'\n3. Create new pages in app/ directory",
|
|
144
|
+
|
|
145
|
+
"includedFeatures": [
|
|
146
|
+
"Pre-configured TypeScript with strict mode",
|
|
147
|
+
"Tailwind CSS with custom config",
|
|
148
|
+
"shadcn/ui components (Button, Card, Input, Select, etc.)",
|
|
149
|
+
"Example API route at /api/example",
|
|
150
|
+
"Root layout with metadata and fonts",
|
|
151
|
+
"Sample homepage with working components",
|
|
152
|
+
"ESLint and Prettier configured"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
{
|
|
158
|
+
"id": "template_tanstackstart",
|
|
159
|
+
"name": "TanStack Start (Blank)",
|
|
160
|
+
"description": "Minimal TanStack Start + React + Tailwind scaffold for full-stack applications. Provides TanStack Router/Query wiring without opinionated auth or database layers.",
|
|
161
|
+
"repository": "github:codyde/template-tanstackstart",
|
|
162
|
+
"branch": "main",
|
|
163
|
+
|
|
164
|
+
"selection": {
|
|
165
|
+
"keywords": [
|
|
166
|
+
"tanstack",
|
|
167
|
+
"tanstack start",
|
|
168
|
+
"start",
|
|
169
|
+
"router",
|
|
170
|
+
"tanstack router",
|
|
171
|
+
"tanstack query",
|
|
172
|
+
"full-stack",
|
|
173
|
+
"react 19",
|
|
174
|
+
"tailwind",
|
|
175
|
+
"ssr",
|
|
176
|
+
"server actions"
|
|
177
|
+
],
|
|
178
|
+
"useCases": [
|
|
179
|
+
"Teams standardizing on TanStack Start for new full-stack builds",
|
|
180
|
+
"Projects that need file-based routing with TanStack Router and server-side loaders",
|
|
181
|
+
"React 19 applications targeting modern SSR/edge runtimes",
|
|
182
|
+
"Internal tools that will layer in auth, data, and APIs incrementally",
|
|
183
|
+
"Proof-of-concept apps exploring the TanStack Start workflow"
|
|
184
|
+
],
|
|
185
|
+
"examples": [
|
|
186
|
+
"Kick off a TanStack Start full-stack project with custom backend",
|
|
187
|
+
"Prototype a dashboard using TanStack Router and Query",
|
|
188
|
+
"Create a React 19 + Tailwind admin shell with server-rendered routes",
|
|
189
|
+
"Start a multi-step workflow using TanStack Start loaders/actions",
|
|
190
|
+
"Experiment with TanStack Start SSR on a blank canvas"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
|
|
194
|
+
"tech": {
|
|
195
|
+
"framework": "tanstack",
|
|
196
|
+
"version": "start",
|
|
197
|
+
"language": "typescript",
|
|
198
|
+
"styling": "tailwind",
|
|
199
|
+
"packageManager": "pnpm",
|
|
200
|
+
"nodeVersion": ">=20.10.0"
|
|
201
|
+
},
|
|
202
|
+
|
|
203
|
+
"setup": {
|
|
204
|
+
"defaultPort": 3000,
|
|
205
|
+
"installCommand": "pnpm install",
|
|
206
|
+
"devCommand": "pnpm dev",
|
|
207
|
+
"buildCommand": "pnpm build"
|
|
208
|
+
},
|
|
209
|
+
|
|
210
|
+
"ai": {
|
|
211
|
+
"systemPromptAddition": "This is a TanStack Start project built on React 19 with TanStack Router, TanStack Query, and Tailwind CSS. It is intentionally minimal so you can layer in auth, database, and domain logic.\n\n**Key Patterns:**\n- Define routes, loaders, and actions in `app/routes/` using TanStack Start conventions\n- Use TanStack Query for client data fetching; prefer server loaders for initial data\n- Tailwind CSS is preconfigured for styling; bring your own component library if needed\n- The template ships without auth/database; you are expected to scaffold these as part of the build\n\n**Directory Structure:**\n- app/routes/ - File-based routes with loaders/actions\n- app/components/ - Shared UI components\n- app/lib/ - Utilities/helpers you create\n\n**When to use:**\n- You want a clean TanStack Start foundation without extra opinions\n- Building full-stack React apps that will add custom data/auth layers\n- Exploring TanStack Router/Query workflows end-to-end\n\n**When NOT to use:**\n- Prefer an opinionated Next.js App Router experience\n- Need a static-only marketing site (use Astro)\n- Want a minimal SPA without SSR (use React + Vite)",
|
|
212
|
+
|
|
213
|
+
"includedFeatures": [
|
|
214
|
+
"TanStack Router file-based routing scaffold",
|
|
215
|
+
"TanStack Query integration hooked into React 19 defaults",
|
|
216
|
+
"Tailwind CSS configured out of the box",
|
|
217
|
+
"pnpm workspace setup with Vite dev tooling",
|
|
218
|
+
"Ready-to-extend server actions and loaders"
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
{
|
|
224
|
+
"id": "astro-static",
|
|
225
|
+
"name": "Astro Static Site",
|
|
226
|
+
"description": "Fast static site with optional React islands for interactivity",
|
|
227
|
+
"repository": "github:codyde/template-astro",
|
|
228
|
+
"branch": "main",
|
|
229
|
+
|
|
230
|
+
"selection": {
|
|
231
|
+
"keywords": [
|
|
232
|
+
"astro",
|
|
233
|
+
"static",
|
|
234
|
+
"ssg",
|
|
235
|
+
"blog",
|
|
236
|
+
"content",
|
|
237
|
+
"markdown",
|
|
238
|
+
"documentation",
|
|
239
|
+
"docs",
|
|
240
|
+
"landing",
|
|
241
|
+
"landing-page",
|
|
242
|
+
"portfolio",
|
|
243
|
+
"seo",
|
|
244
|
+
"performance",
|
|
245
|
+
"marketing"
|
|
246
|
+
],
|
|
247
|
+
"useCases": [
|
|
248
|
+
"Static websites and landing pages",
|
|
249
|
+
"Blogs and content-heavy sites",
|
|
250
|
+
"Documentation sites and guides",
|
|
251
|
+
"Portfolio and showcase websites",
|
|
252
|
+
"Marketing pages requiring excellent SEO",
|
|
253
|
+
"Sites prioritizing performance and load times"
|
|
254
|
+
],
|
|
255
|
+
"examples": [
|
|
256
|
+
"Build a personal blog with posts",
|
|
257
|
+
"Create a documentation site",
|
|
258
|
+
"Make a portfolio website",
|
|
259
|
+
"Build a company landing page",
|
|
260
|
+
"Create a marketing site with blog"
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
|
|
264
|
+
"tech": {
|
|
265
|
+
"framework": "astro",
|
|
266
|
+
"version": "5.x",
|
|
267
|
+
"language": "typescript",
|
|
268
|
+
"styling": "tailwind",
|
|
269
|
+
"packageManager": "pnpm",
|
|
270
|
+
"nodeVersion": ">=20.0.0"
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
"setup": {
|
|
274
|
+
"defaultPort": 4321,
|
|
275
|
+
"installCommand": "pnpm install",
|
|
276
|
+
"devCommand": "pnpm dev",
|
|
277
|
+
"buildCommand": "pnpm build"
|
|
278
|
+
},
|
|
279
|
+
|
|
280
|
+
"ai": {
|
|
281
|
+
"systemPromptAddition": "This is an Astro static site generator project.\n\n**Key Patterns:**\n- Pages are .astro files with --- frontmatter at the top\n- File-based routing in src/pages/ (index.astro = homepage)\n- Use layouts in src/layouts/ for consistent page structure\n- Add React islands for interactivity: <Component client:load />\n- Content collections for blog posts/docs in src/content/\n\n**CRITICAL: Code Snippet Handling for Deployments:**\n- ALWAYS use <code set:html={'TheCode'} /> to properly fence code snippets\n- This prevents code from breaking during deployment builds\n- Never use regular <code>{code}</code> for multi-line or complex code snippets\n- Example: <code set:html={'const x = 1;\\nconst y = 2;'} />\n\n**Example .astro page:**\n```astro\n---\nimport Layout from '../layouts/Layout.astro'\nconst title = 'My Page'\n---\n<Layout title={title}>\n <h1>{title}</h1>\n <p>Static content, ultra fast!</p>\n</Layout>\n```\n\n**For interactivity, use React islands:**\n```astro\n---\nimport Counter from '../components/Counter.tsx'\n---\n<Counter client:load />\n```",
|
|
282
|
+
|
|
283
|
+
"includedFeatures": [
|
|
284
|
+
"Astro 5.x with TypeScript configured",
|
|
285
|
+
"Tailwind CSS with Astro integration",
|
|
286
|
+
"Example pages (index, about, blog)",
|
|
287
|
+
"Layout component with metadata",
|
|
288
|
+
"Content collections setup for blog",
|
|
289
|
+
"Sample blog posts in Markdown",
|
|
290
|
+
"React integration for islands"
|
|
291
|
+
]
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|