@nomad-e/bluma-cli 0.26.1 → 2026.27.0-darwin-arm64

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.
Files changed (117) hide show
  1. package/LICENSE +189 -70
  2. package/README.md +2 -162
  3. package/THIRD-PARTY-NOTICES.txt +46201 -0
  4. package/bin/bluma-core +0 -0
  5. package/package.json +24 -124
  6. package/third-party/option-ext/.cargo_vcs_info.json +6 -0
  7. package/third-party/option-ext/Cargo.toml +22 -0
  8. package/third-party/option-ext/LICENSE.txt +373 -0
  9. package/third-party/option-ext/README.md +67 -0
  10. package/third-party/option-ext/src/impl.rs +20 -0
  11. package/third-party/option-ext/src/lib.rs +71 -0
  12. package/assets/bg.png +0 -0
  13. package/assets/bg1.png +0 -0
  14. package/assets/bluma.png +0 -0
  15. package/assets/image.png +0 -0
  16. package/dist/assets/bg.png +0 -0
  17. package/dist/assets/bg1.png +0 -0
  18. package/dist/assets/bluma.png +0 -0
  19. package/dist/assets/image.png +0 -0
  20. package/dist/config/native_tools.json +0 -1151
  21. package/dist/config/plan_mode_instructions.md +0 -218
  22. package/dist/config/skills/factorai-sh/SKILL.md +0 -98
  23. package/dist/config/skills/git-commit/LICENSE.txt +0 -18
  24. package/dist/config/skills/git-commit/SKILL.md +0 -300
  25. package/dist/config/skills/git-commit/references/REFERENCE.md +0 -253
  26. package/dist/config/skills/git-commit/scripts/validate_commit_msg.py +0 -163
  27. package/dist/config/skills/git-pr/LICENSE.txt +0 -18
  28. package/dist/config/skills/git-pr/SKILL.md +0 -293
  29. package/dist/config/skills/git-pr/references/REFERENCE.md +0 -256
  30. package/dist/config/skills/git-pr/scripts/validate_commits.py +0 -120
  31. package/dist/config/skills/git-release/LICENSE.txt +0 -18
  32. package/dist/config/skills/git-release/SKILL.md +0 -408
  33. package/dist/config/skills/pdf/LICENSE.txt +0 -26
  34. package/dist/config/skills/pdf/SKILL.md +0 -736
  35. package/dist/config/skills/pdf/references/DOCUMENT_TYPES.md +0 -59
  36. package/dist/config/skills/pdf/references/FORMS.md +0 -69
  37. package/dist/config/skills/pdf/references/REFERENCE.md +0 -52
  38. package/dist/config/skills/pdf/scripts/__pycache__/create_report.cpython-312.pyc +0 -0
  39. package/dist/config/skills/pdf/scripts/create_report.py +0 -936
  40. package/dist/config/skills/pdf/scripts/merge_pdfs.py +0 -48
  41. package/dist/config/skills/skill-creator/LICENSE.txt +0 -26
  42. package/dist/config/skills/skill-creator/SKILL.md +0 -229
  43. package/dist/config/skills/xlsx/LICENSE.txt +0 -18
  44. package/dist/config/skills/xlsx/SKILL.md +0 -340
  45. package/dist/config/skills/xlsx/references/REFERENCE.md +0 -337
  46. package/dist/config/skills/xlsx/scripts/office/__init__.py +0 -2
  47. package/dist/config/skills/xlsx/scripts/office/pack.py +0 -58
  48. package/dist/config/skills/xlsx/scripts/office/soffice.py +0 -180
  49. package/dist/config/skills/xlsx/scripts/office/unpack.py +0 -63
  50. package/dist/config/skills/xlsx/scripts/office/validate.py +0 -122
  51. package/dist/config/skills/xlsx/scripts/recalc.py +0 -152
  52. package/dist/main.js +0 -47918
  53. package/dist/native/bluma-clipboard.linux-x64-gnu.node +0 -0
  54. package/dist/native/index.d.ts +0 -38
  55. package/dist/native/index.js +0 -319
  56. package/dist/native/package.json +0 -38
  57. package/dist/scaffold/.eslintrc.json +0 -3
  58. package/dist/scaffold/app/globals.css +0 -46
  59. package/dist/scaffold/app/layout.tsx +0 -19
  60. package/dist/scaffold/app/page.tsx +0 -124
  61. package/dist/scaffold/components/ui/README.md +0 -12
  62. package/dist/scaffold/components/ui/accordion.jsx +0 -42
  63. package/dist/scaffold/components/ui/alert-dialog.jsx +0 -80
  64. package/dist/scaffold/components/ui/alert.jsx +0 -33
  65. package/dist/scaffold/components/ui/aspect-ratio.jsx +0 -5
  66. package/dist/scaffold/components/ui/avatar.jsx +0 -28
  67. package/dist/scaffold/components/ui/badge.jsx +0 -24
  68. package/dist/scaffold/components/ui/breadcrumb.jsx +0 -72
  69. package/dist/scaffold/components/ui/button.jsx +0 -40
  70. package/dist/scaffold/components/ui/calendar.jsx +0 -56
  71. package/dist/scaffold/components/ui/card.jsx +0 -38
  72. package/dist/scaffold/components/ui/carousel.jsx +0 -168
  73. package/dist/scaffold/components/ui/chart.jsx +0 -76
  74. package/dist/scaffold/components/ui/checkbox.jsx +0 -22
  75. package/dist/scaffold/components/ui/collapsible.jsx +0 -7
  76. package/dist/scaffold/components/ui/command.jsx +0 -100
  77. package/dist/scaffold/components/ui/context-menu.jsx +0 -137
  78. package/dist/scaffold/components/ui/dialog.jsx +0 -72
  79. package/dist/scaffold/components/ui/drawer.jsx +0 -68
  80. package/dist/scaffold/components/ui/dropdown-menu.jsx +0 -143
  81. package/dist/scaffold/components/ui/form.jsx +0 -88
  82. package/dist/scaffold/components/ui/hover-card.jsx +0 -22
  83. package/dist/scaffold/components/ui/input-otp.jsx +0 -49
  84. package/dist/scaffold/components/ui/input.jsx +0 -19
  85. package/dist/scaffold/components/ui/label.jsx +0 -15
  86. package/dist/scaffold/components/ui/menubar.jsx +0 -161
  87. package/dist/scaffold/components/ui/navigation-menu.jsx +0 -95
  88. package/dist/scaffold/components/ui/pagination.jsx +0 -77
  89. package/dist/scaffold/components/ui/popover.jsx +0 -25
  90. package/dist/scaffold/components/ui/progress.jsx +0 -19
  91. package/dist/scaffold/components/ui/radio-group.jsx +0 -29
  92. package/dist/scaffold/components/ui/resizable.jsx +0 -27
  93. package/dist/scaffold/components/ui/scroll-area.jsx +0 -31
  94. package/dist/scaffold/components/ui/select.jsx +0 -117
  95. package/dist/scaffold/components/ui/separator.jsx +0 -22
  96. package/dist/scaffold/components/ui/sheet.jsx +0 -81
  97. package/dist/scaffold/components/ui/skeleton.jsx +0 -7
  98. package/dist/scaffold/components/ui/slider.jsx +0 -19
  99. package/dist/scaffold/components/ui/sonner.jsx +0 -22
  100. package/dist/scaffold/components/ui/switch.jsx +0 -23
  101. package/dist/scaffold/components/ui/table.jsx +0 -61
  102. package/dist/scaffold/components/ui/tabs.jsx +0 -43
  103. package/dist/scaffold/components/ui/textarea.jsx +0 -18
  104. package/dist/scaffold/components/ui/toast.jsx +0 -85
  105. package/dist/scaffold/components/ui/toaster.jsx +0 -33
  106. package/dist/scaffold/components/ui/toggle-group.jsx +0 -41
  107. package/dist/scaffold/components/ui/toggle.jsx +0 -30
  108. package/dist/scaffold/components/ui/tooltip.jsx +0 -22
  109. package/dist/scaffold/hooks/use-toast.ts +0 -101
  110. package/dist/scaffold/lib/utils.ts +0 -6
  111. package/dist/scaffold/next.config.js +0 -5
  112. package/dist/scaffold/next.config.mjs +0 -15
  113. package/dist/scaffold/next.config.ts +0 -19
  114. package/dist/scaffold/package.json +0 -70
  115. package/dist/scaffold/postcss.config.js +0 -6
  116. package/dist/scaffold/tailwind.config.ts +0 -57
  117. package/dist/scaffold/tsconfig.json +0 -20
@@ -1,38 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
-
4
- /* auto-generated by NAPI-RS */
5
-
6
- /** Resultado da leitura de imagem do clipboard */
7
- export interface ClipboardImageResult {
8
- /** Caminho para o ficheiro temporário com a imagem */
9
- path: string
10
- /** Largura da imagem em pixels */
11
- width: number
12
- /** Altura da imagem em pixels */
13
- height: number
14
- /** Formato da imagem (PNG, JPEG, etc.) */
15
- format: string
16
- }
17
- /** Erro ao ler imagem do clipboard */
18
- export const enum ClipboardError {
19
- /** Clipboard não disponível */
20
- Unavailable = 0,
21
- /** Nenhuma imagem no clipboard */
22
- NoImage = 1,
23
- /** Erro ao codificar imagem */
24
- EncodeFailed = 2,
25
- /** Erro de I/O */
26
- IoError = 3
27
- }
28
- /**
29
- * Lê uma imagem do clipboard e guarda-a num ficheiro temporário PNG.
30
- * Retorna o caminho do ficheiro e informações sobre a imagem.
31
- */
32
- export declare function readClipboardImage(): ClipboardImageResult
33
- /** Verifica se há uma imagem disponível no clipboard */
34
- export declare function hasClipboardImage(): boolean
35
- /** Lê texto do clipboard */
36
- export declare function readClipboardText(): string
37
- /** Escreve texto para o clipboard */
38
- export declare function writeClipboardText(text: string): void
@@ -1,319 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /* prettier-ignore */
4
-
5
- /* auto-generated by NAPI-RS */
6
-
7
- const { existsSync, readFileSync } = require('fs')
8
- const { join } = require('path')
9
-
10
- const { platform, arch } = process
11
-
12
- let nativeBinding = null
13
- let localFileExisted = false
14
- let loadError = null
15
-
16
- function isMusl() {
17
- // For Node 10
18
- if (!process.report || typeof process.report.getReport !== 'function') {
19
- try {
20
- const lddPath = require('child_process').execSync('which ldd').toString().trim()
21
- return readFileSync(lddPath, 'utf8').includes('musl')
22
- } catch (e) {
23
- return true
24
- }
25
- } else {
26
- const { glibcVersionRuntime } = process.report.getReport().header
27
- return !glibcVersionRuntime
28
- }
29
- }
30
-
31
- switch (platform) {
32
- case 'android':
33
- switch (arch) {
34
- case 'arm64':
35
- localFileExisted = existsSync(join(__dirname, 'bluma-clipboard.android-arm64.node'))
36
- try {
37
- if (localFileExisted) {
38
- nativeBinding = require('./bluma-clipboard.android-arm64.node')
39
- } else {
40
- nativeBinding = require('@nomad-e/bluma-clipboard-android-arm64')
41
- }
42
- } catch (e) {
43
- loadError = e
44
- }
45
- break
46
- case 'arm':
47
- localFileExisted = existsSync(join(__dirname, 'bluma-clipboard.android-arm-eabi.node'))
48
- try {
49
- if (localFileExisted) {
50
- nativeBinding = require('./bluma-clipboard.android-arm-eabi.node')
51
- } else {
52
- nativeBinding = require('@nomad-e/bluma-clipboard-android-arm-eabi')
53
- }
54
- } catch (e) {
55
- loadError = e
56
- }
57
- break
58
- default:
59
- throw new Error(`Unsupported architecture on Android ${arch}`)
60
- }
61
- break
62
- case 'win32':
63
- switch (arch) {
64
- case 'x64':
65
- localFileExisted = existsSync(
66
- join(__dirname, 'bluma-clipboard.win32-x64-msvc.node')
67
- )
68
- try {
69
- if (localFileExisted) {
70
- nativeBinding = require('./bluma-clipboard.win32-x64-msvc.node')
71
- } else {
72
- nativeBinding = require('@nomad-e/bluma-clipboard-win32-x64-msvc')
73
- }
74
- } catch (e) {
75
- loadError = e
76
- }
77
- break
78
- case 'ia32':
79
- localFileExisted = existsSync(
80
- join(__dirname, 'bluma-clipboard.win32-ia32-msvc.node')
81
- )
82
- try {
83
- if (localFileExisted) {
84
- nativeBinding = require('./bluma-clipboard.win32-ia32-msvc.node')
85
- } else {
86
- nativeBinding = require('@nomad-e/bluma-clipboard-win32-ia32-msvc')
87
- }
88
- } catch (e) {
89
- loadError = e
90
- }
91
- break
92
- case 'arm64':
93
- localFileExisted = existsSync(
94
- join(__dirname, 'bluma-clipboard.win32-arm64-msvc.node')
95
- )
96
- try {
97
- if (localFileExisted) {
98
- nativeBinding = require('./bluma-clipboard.win32-arm64-msvc.node')
99
- } else {
100
- nativeBinding = require('@nomad-e/bluma-clipboard-win32-arm64-msvc')
101
- }
102
- } catch (e) {
103
- loadError = e
104
- }
105
- break
106
- default:
107
- throw new Error(`Unsupported architecture on Windows: ${arch}`)
108
- }
109
- break
110
- case 'darwin':
111
- localFileExisted = existsSync(join(__dirname, 'bluma-clipboard.darwin-universal.node'))
112
- try {
113
- if (localFileExisted) {
114
- nativeBinding = require('./bluma-clipboard.darwin-universal.node')
115
- } else {
116
- nativeBinding = require('@nomad-e/bluma-clipboard-darwin-universal')
117
- }
118
- break
119
- } catch {}
120
- switch (arch) {
121
- case 'x64':
122
- localFileExisted = existsSync(join(__dirname, 'bluma-clipboard.darwin-x64.node'))
123
- try {
124
- if (localFileExisted) {
125
- nativeBinding = require('./bluma-clipboard.darwin-x64.node')
126
- } else {
127
- nativeBinding = require('@nomad-e/bluma-clipboard-darwin-x64')
128
- }
129
- } catch (e) {
130
- loadError = e
131
- }
132
- break
133
- case 'arm64':
134
- localFileExisted = existsSync(
135
- join(__dirname, 'bluma-clipboard.darwin-arm64.node')
136
- )
137
- try {
138
- if (localFileExisted) {
139
- nativeBinding = require('./bluma-clipboard.darwin-arm64.node')
140
- } else {
141
- nativeBinding = require('@nomad-e/bluma-clipboard-darwin-arm64')
142
- }
143
- } catch (e) {
144
- loadError = e
145
- }
146
- break
147
- default:
148
- throw new Error(`Unsupported architecture on macOS: ${arch}`)
149
- }
150
- break
151
- case 'freebsd':
152
- if (arch !== 'x64') {
153
- throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
154
- }
155
- localFileExisted = existsSync(join(__dirname, 'bluma-clipboard.freebsd-x64.node'))
156
- try {
157
- if (localFileExisted) {
158
- nativeBinding = require('./bluma-clipboard.freebsd-x64.node')
159
- } else {
160
- nativeBinding = require('@nomad-e/bluma-clipboard-freebsd-x64')
161
- }
162
- } catch (e) {
163
- loadError = e
164
- }
165
- break
166
- case 'linux':
167
- switch (arch) {
168
- case 'x64':
169
- if (isMusl()) {
170
- localFileExisted = existsSync(
171
- join(__dirname, 'bluma-clipboard.linux-x64-musl.node')
172
- )
173
- try {
174
- if (localFileExisted) {
175
- nativeBinding = require('./bluma-clipboard.linux-x64-musl.node')
176
- } else {
177
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-x64-musl')
178
- }
179
- } catch (e) {
180
- loadError = e
181
- }
182
- } else {
183
- localFileExisted = existsSync(
184
- join(__dirname, 'bluma-clipboard.linux-x64-gnu.node')
185
- )
186
- try {
187
- if (localFileExisted) {
188
- nativeBinding = require('./bluma-clipboard.linux-x64-gnu.node')
189
- } else {
190
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-x64-gnu')
191
- }
192
- } catch (e) {
193
- loadError = e
194
- }
195
- }
196
- break
197
- case 'arm64':
198
- if (isMusl()) {
199
- localFileExisted = existsSync(
200
- join(__dirname, 'bluma-clipboard.linux-arm64-musl.node')
201
- )
202
- try {
203
- if (localFileExisted) {
204
- nativeBinding = require('./bluma-clipboard.linux-arm64-musl.node')
205
- } else {
206
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-arm64-musl')
207
- }
208
- } catch (e) {
209
- loadError = e
210
- }
211
- } else {
212
- localFileExisted = existsSync(
213
- join(__dirname, 'bluma-clipboard.linux-arm64-gnu.node')
214
- )
215
- try {
216
- if (localFileExisted) {
217
- nativeBinding = require('./bluma-clipboard.linux-arm64-gnu.node')
218
- } else {
219
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-arm64-gnu')
220
- }
221
- } catch (e) {
222
- loadError = e
223
- }
224
- }
225
- break
226
- case 'arm':
227
- if (isMusl()) {
228
- localFileExisted = existsSync(
229
- join(__dirname, 'bluma-clipboard.linux-arm-musleabihf.node')
230
- )
231
- try {
232
- if (localFileExisted) {
233
- nativeBinding = require('./bluma-clipboard.linux-arm-musleabihf.node')
234
- } else {
235
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-arm-musleabihf')
236
- }
237
- } catch (e) {
238
- loadError = e
239
- }
240
- } else {
241
- localFileExisted = existsSync(
242
- join(__dirname, 'bluma-clipboard.linux-arm-gnueabihf.node')
243
- )
244
- try {
245
- if (localFileExisted) {
246
- nativeBinding = require('./bluma-clipboard.linux-arm-gnueabihf.node')
247
- } else {
248
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-arm-gnueabihf')
249
- }
250
- } catch (e) {
251
- loadError = e
252
- }
253
- }
254
- break
255
- case 'riscv64':
256
- if (isMusl()) {
257
- localFileExisted = existsSync(
258
- join(__dirname, 'bluma-clipboard.linux-riscv64-musl.node')
259
- )
260
- try {
261
- if (localFileExisted) {
262
- nativeBinding = require('./bluma-clipboard.linux-riscv64-musl.node')
263
- } else {
264
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-riscv64-musl')
265
- }
266
- } catch (e) {
267
- loadError = e
268
- }
269
- } else {
270
- localFileExisted = existsSync(
271
- join(__dirname, 'bluma-clipboard.linux-riscv64-gnu.node')
272
- )
273
- try {
274
- if (localFileExisted) {
275
- nativeBinding = require('./bluma-clipboard.linux-riscv64-gnu.node')
276
- } else {
277
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-riscv64-gnu')
278
- }
279
- } catch (e) {
280
- loadError = e
281
- }
282
- }
283
- break
284
- case 's390x':
285
- localFileExisted = existsSync(
286
- join(__dirname, 'bluma-clipboard.linux-s390x-gnu.node')
287
- )
288
- try {
289
- if (localFileExisted) {
290
- nativeBinding = require('./bluma-clipboard.linux-s390x-gnu.node')
291
- } else {
292
- nativeBinding = require('@nomad-e/bluma-clipboard-linux-s390x-gnu')
293
- }
294
- } catch (e) {
295
- loadError = e
296
- }
297
- break
298
- default:
299
- throw new Error(`Unsupported architecture on Linux: ${arch}`)
300
- }
301
- break
302
- default:
303
- throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`)
304
- }
305
-
306
- if (!nativeBinding) {
307
- if (loadError) {
308
- throw loadError
309
- }
310
- throw new Error(`Failed to load native binding`)
311
- }
312
-
313
- const { ClipboardError, readClipboardImage, hasClipboardImage, readClipboardText, writeClipboardText } = nativeBinding
314
-
315
- module.exports.ClipboardError = ClipboardError
316
- module.exports.readClipboardImage = readClipboardImage
317
- module.exports.hasClipboardImage = hasClipboardImage
318
- module.exports.readClipboardText = readClipboardText
319
- module.exports.writeClipboardText = writeClipboardText
@@ -1,38 +0,0 @@
1
- {
2
- "name": "@nomad-e/bluma-clipboard",
3
- "version": "0.1.0",
4
- "description": "Native clipboard support for BluMa CLI using arboard",
5
- "main": "index.js",
6
- "types": "index.d.ts",
7
- "napi": {
8
- "name": "bluma-clipboard",
9
- "triples": {
10
- "additional": [
11
- "aarch64-apple-darwin",
12
- "aarch64-linux-android",
13
- "aarch64-unknown-linux-gnu",
14
- "aarch64-unknown-linux-musl",
15
- "aarch64-pc-windows-msvc",
16
- "armv7-linux-androideabi",
17
- "armv7-unknown-linux-gnueabihf",
18
- "x86_64-unknown-linux-musl",
19
- "x86_64-unknown-freebsd"
20
- ]
21
- }
22
- },
23
- "license": "Apache-2.0",
24
- "devDependencies": {
25
- "@napi-rs/cli": "^2.18.4"
26
- },
27
- "engines": {
28
- "node": ">= 20"
29
- },
30
- "scripts": {
31
- "artifacts": "napi artifacts",
32
- "build": "napi build --platform --release",
33
- "build:debug": "napi build --platform",
34
- "prepublishOnly": "napi prepublish -t npm",
35
- "universal": "napi universal",
36
- "version": "napi version"
37
- }
38
- }
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "next/core-web-vitals"
3
- }
@@ -1,46 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- :root {
6
- --background: 0 0% 0%;
7
- --foreground: 0 0% 98%;
8
- --card: 0 0% 4%;
9
- --card-foreground: 0 0% 98%;
10
- --popover: 0 0% 4%;
11
- --popover-foreground: 0 0% 98%;
12
- --primary: 0 0% 98%;
13
- --primary-foreground: 0 0% 9%;
14
- --secondary: 0 0% 12%;
15
- --secondary-foreground: 0 0% 98%;
16
- --muted: 0 0% 12%;
17
- --muted-foreground: 0 0% 64%;
18
- --accent: 0 0% 12%;
19
- --accent-foreground: 0 0% 98%;
20
- --destructive: 0 84% 60%;
21
- --destructive-foreground: 0 0% 98%;
22
- --border: 0 0% 18%;
23
- --input: 0 0% 18%;
24
- --ring: 0 0% 83%;
25
- --radius: 0.5rem;
26
- }
27
-
28
- * {
29
- border-color: hsl(var(--border));
30
- }
31
-
32
- body {
33
- background-color: hsl(var(--background));
34
- color: hsl(var(--foreground));
35
- font-family:
36
- ui-sans-serif,
37
- system-ui,
38
- -apple-system,
39
- BlinkMacSystemFont,
40
- 'Segoe UI',
41
- Roboto,
42
- 'Helvetica Neue',
43
- Arial,
44
- sans-serif;
45
- font-feature-settings: 'rlig' 1, 'calt' 1;
46
- }
@@ -1,19 +0,0 @@
1
- import type { Metadata } from 'next';
2
- import './globals.css';
3
-
4
- export const metadata: Metadata = {
5
- title: '{{NAME}}',
6
- description: 'FactorAI hosted app',
7
- };
8
-
9
- export default function RootLayout({
10
- children,
11
- }: Readonly<{
12
- children: React.ReactNode;
13
- }>) {
14
- return (
15
- <html lang="en">
16
- <body className="min-h-screen font-sans antialiased">{children}</body>
17
- </html>
18
- );
19
- }
@@ -1,124 +0,0 @@
1
- // @ts-nocheck — UI components are .jsx without prop types; Next route stays typed via layout.
2
- import { Badge } from '@/components/ui/badge';
3
- import { Button } from '@/components/ui/button';
4
- import {
5
- Card,
6
- CardContent,
7
- CardDescription,
8
- CardHeader,
9
- CardTitle,
10
- } from '@/components/ui/card';
11
-
12
- const features = [
13
- {
14
- title: 'Ship fast',
15
- description:
16
- 'App Router, standalone output, and a full UI kit — ready for FactorAI deploy.',
17
- },
18
- {
19
- title: 'Polished by default',
20
- description:
21
- 'Dark canvas, clear type hierarchy, and shadcn components you can compose immediately.',
22
- },
23
- {
24
- title: 'Edit & redeploy',
25
- description:
26
- 'Customize this page, then push changes with factorai.sh.apply_app_changes.',
27
- },
28
- ];
29
-
30
- export default function Home() {
31
- return (
32
- <div className="relative min-h-screen overflow-hidden bg-background text-foreground">
33
- <div
34
- className="pointer-events-none absolute inset-x-0 top-0 h-[520px] bg-[radial-gradient(ellipse_80%_60%_at_50%_-10%,hsl(0_0%_100%/0.08),transparent_70%)]"
35
- aria-hidden
36
- />
37
- <div
38
- className="pointer-events-none absolute left-1/2 top-32 h-64 w-[min(90vw,42rem)] -translate-x-1/2 rounded-full bg-[radial-gradient(circle,hsl(217_91%_60%/0.12),transparent_65%)] blur-3xl"
39
- aria-hidden
40
- />
41
-
42
- <header className="relative z-10 border-b border-border/40 bg-background/60 backdrop-blur-md">
43
- <div className="mx-auto flex h-14 max-w-6xl items-center justify-between px-4 md:px-6">
44
- <span className="text-sm font-medium tracking-tight">{{NAME}}</span>
45
- <nav className="flex items-center gap-2">
46
- <Button variant="ghost" size="sm" className="text-muted-foreground">
47
- Docs
48
- </Button>
49
- <Button
50
- variant="outline"
51
- size="sm"
52
- className="rounded-full border-border/80 bg-transparent"
53
- >
54
- GitHub
55
- </Button>
56
- </nav>
57
- </div>
58
- </header>
59
-
60
- <main className="relative z-10">
61
- <section className="mx-auto flex max-w-6xl flex-col items-center px-4 pb-20 pt-24 text-center md:px-6 md:pt-32">
62
- <Badge
63
- variant="outline"
64
- className="mb-6 rounded-full border-border/60 px-3 py-1 font-mono text-[11px] uppercase tracking-widest text-muted-foreground"
65
- >
66
- Power by FactorAI
67
- </Badge>
68
-
69
- <h1 className="max-w-3xl text-4xl font-medium tracking-tight md:text-6xl md:leading-[1.08]">
70
- {{NAME}}
71
- </h1>
72
- <p className="mt-5 max-w-xl text-lg leading-relaxed text-muted-foreground md:text-xl">
73
- A minimal command-center landing — replace copy and sections as you build your product.
74
- </p>
75
-
76
- <div className="mt-10 flex flex-wrap items-center justify-center gap-3">
77
- <Button size="lg" className="h-11 rounded-full px-8">
78
- Get started
79
- </Button>
80
- <Button
81
- variant="outline"
82
- size="lg"
83
- className="h-11 rounded-full border-border/80 bg-transparent px-8 hover:bg-secondary/50"
84
- >
85
- View components
86
- </Button>
87
- </div>
88
- </section>
89
-
90
- <section className="mx-auto max-w-6xl px-4 pb-24 md:px-6">
91
- <div className="grid gap-4 md:grid-cols-3 md:gap-6">
92
- {features.map((feature) => (
93
- <Card
94
- key={feature.title}
95
- className="border-border/60 bg-card/80 shadow-none transition-colors hover:border-border"
96
- >
97
- <CardHeader className="space-y-2">
98
- <CardTitle className="text-lg font-medium tracking-tight">
99
- {feature.title}
100
- </CardTitle>
101
- <CardDescription className="text-base leading-relaxed">
102
- {feature.description}
103
- </CardDescription>
104
- </CardHeader>
105
- <CardContent className="pt-0">
106
- <div className="h-px w-12 bg-border" />
107
- </CardContent>
108
- </Card>
109
- ))}
110
- </div>
111
- </section>
112
- </main>
113
-
114
- <footer className="relative z-10 border-t border-border/40 py-8">
115
- <p className="text-center text-sm text-muted-foreground">
116
- Power by FactorAI · edit{' '}
117
- <code className="rounded bg-muted px-1.5 py-0.5 font-mono text-xs text-foreground/80">
118
- app/page.tsx
119
- </code>
120
- </p>
121
- </footer>
122
- </div>
123
- );
124
- }
@@ -1,12 +0,0 @@
1
- # FactorAI UI kit
2
-
3
- Scaffold includes the full shadcn/ui set used on factorai.sh (47 components).
4
-
5
- Import examples:
6
-
7
- ```tsx
8
- import { Button } from '@/components/ui/button';
9
- import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
10
- ```
11
-
12
- Edit `app/page.tsx` to build your app; the default home is a polished dark landing (hero + feature cards).
@@ -1,42 +0,0 @@
1
- import * as React from 'react';
2
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
- import { ChevronDown } from 'lucide-react';
4
- import { cn } from '@/lib/utils';
5
-
6
- const Accordion = AccordionPrimitive.Root;
7
-
8
- const AccordionItem = React.forwardRef(({ className, ...props }, ref) => (
9
- <AccordionPrimitive.Item ref={ref} className={cn('border-b', className)} {...props} />
10
- ));
11
- AccordionItem.displayName = 'AccordionItem';
12
-
13
- const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => (
14
- <AccordionPrimitive.Header className="flex">
15
- <AccordionPrimitive.Trigger
16
- ref={ref}
17
- className={cn(
18
- 'flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',
19
- className
20
- )}
21
- {...props}
22
- >
23
- {children}
24
- <ChevronDown className="h-4 w-4 shrink-0 transition-transform duration-200" />
25
- </AccordionPrimitive.Trigger>
26
- </AccordionPrimitive.Header>
27
- ));
28
- AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
29
-
30
- const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => (
31
- <AccordionPrimitive.Content
32
- ref={ref}
33
- className="overflow-hidden text-sm data-[state=closed]:max-h-0 data-[state=open]:max-h-[min(80vh,1000px)] transition-all duration-200"
34
- {...props}
35
- >
36
- <div className={cn('pb-4 pt-0', className)}>{children}</div>
37
- </AccordionPrimitive.Content>
38
- ));
39
-
40
- AccordionContent.displayName = AccordionPrimitive.Content.displayName;
41
-
42
- export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };