@uibot/cli 0.0.0-stage → 0.2.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.
Files changed (44) hide show
  1. package/dist/cli.d.ts +2 -0
  2. package/dist/cli.js +404 -0
  3. package/dist/command-manifest.d.ts +8 -0
  4. package/dist/commands/add.d.ts +28 -0
  5. package/dist/commands/design-md-sync.d.ts +12 -0
  6. package/dist/commands/doctor.d.ts +11 -0
  7. package/dist/commands/init.d.ts +72 -0
  8. package/dist/commands/link.d.ts +76 -0
  9. package/dist/commands/list.d.ts +14 -0
  10. package/dist/commands/publish.d.ts +41 -0
  11. package/dist/commands/regressions-reverify.d.ts +20 -0
  12. package/dist/commands/resource.d.ts +31 -0
  13. package/dist/commands/skills-lifecycle.d.ts +7 -0
  14. package/dist/commands/sync.d.ts +76 -0
  15. package/dist/constants.d.ts +8 -0
  16. package/dist/flags.d.ts +19 -0
  17. package/dist/index.d.ts +15 -0
  18. package/dist/index.js +222 -0
  19. package/dist/resource-runtime.d.ts +4 -0
  20. package/dist/shells/app-shell-floating.yaml +42 -0
  21. package/dist/shells/app-shell-icon-rail.yaml +42 -0
  22. package/dist/shells/app-shell-inset.yaml +42 -0
  23. package/dist/shells/app-shell-settings.yaml +56 -0
  24. package/dist/shells/app-shell-sidebar.yaml +47 -0
  25. package/dist/shells/app-shell-workspace.yaml +54 -0
  26. package/dist/shells/shadcn-admin-shell.yaml +151 -0
  27. package/dist/templates/admin-dashboard.yaml +183 -0
  28. package/dist/templates/ai-chat.yaml +448 -0
  29. package/dist/templates/analytics-dashboard.yaml +152 -0
  30. package/dist/templates/auth.yaml +90 -0
  31. package/dist/templates/blog.yaml +111 -0
  32. package/dist/templates/crm.yaml +161 -0
  33. package/dist/templates/ecommerce.yaml +169 -0
  34. package/dist/templates/lms.yaml +459 -0
  35. package/dist/templates/portfolio.yaml +139 -0
  36. package/dist/templates/pricing.yaml +171 -0
  37. package/dist/templates/saas-landing.yaml +199 -0
  38. package/dist/templates/settings.yaml +151 -0
  39. package/dist/templates/shadcn-admin.yaml +4660 -0
  40. package/dist/templates/store.yaml +469 -0
  41. package/dist/templates/support-inbox.yaml +96 -0
  42. package/dist/templates/team-directory.yaml +98 -0
  43. package/package.json +44 -4
  44. package/README.md +0 -3
@@ -0,0 +1,4 @@
1
+ import { type ResourceQueryService } from "@uibot/registry";
2
+ export declare function resolveBuiltInTemplatesDir(cwd?: string): string | null;
3
+ export declare function resolveBuiltInShellsDir(cwd?: string): string | null;
4
+ export declare function loadBuiltInResourceQueryService(): Promise<ResourceQueryService>;
@@ -0,0 +1,42 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-floating
4
+ path: /
5
+ title: Floating App
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Floating App
10
+ variant: floating
11
+ collapsible: none
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Workspace
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Main
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Home
25
+ href: "#"
26
+ icon: "▦"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Search
31
+ href: "#"
32
+ icon: "◍"
33
+ children:
34
+ - type: Heading
35
+ props:
36
+ level: 2
37
+ text: Overview
38
+ - type: Paragraph
39
+ props:
40
+ size: sm
41
+ muted: true
42
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,42 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-icon-rail
4
+ path: /
5
+ title: Icon Rail
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Icon Rail
10
+ variant: sidebar
11
+ collapsible: icon
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Rail
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Main
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Home
25
+ href: "#"
26
+ icon: "▦"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Inbox
31
+ href: "#"
32
+ icon: "▤"
33
+ children:
34
+ - type: Heading
35
+ props:
36
+ level: 2
37
+ text: Overview
38
+ - type: Paragraph
39
+ props:
40
+ size: sm
41
+ muted: true
42
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,42 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-inset
4
+ path: /
5
+ title: Inset App
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Inset App
10
+ variant: inset
11
+ collapsible: none
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Workspace
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Platform
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Dashboard
25
+ href: "#"
26
+ icon: "▦"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Reports
31
+ href: "#"
32
+ icon: "◔"
33
+ children:
34
+ - type: Heading
35
+ props:
36
+ level: 2
37
+ text: Overview
38
+ - type: Paragraph
39
+ props:
40
+ size: sm
41
+ muted: true
42
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,56 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-settings
4
+ path: /
5
+ title: Settings
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Settings
10
+ variant: sidebar
11
+ collapsible: none
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Account
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Account
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Profile
25
+ href: "#"
26
+ icon: "◍"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Security
31
+ href: "#"
32
+ icon: "⚙"
33
+ - type: MenuGroup
34
+ props:
35
+ title: Preferences
36
+ children:
37
+ - type: MenuLink
38
+ props:
39
+ label: Notifications
40
+ href: "#"
41
+ icon: "◔"
42
+ - type: MenuLink
43
+ props:
44
+ label: Appearance
45
+ href: "#"
46
+ icon: "▦"
47
+ children:
48
+ - type: Heading
49
+ props:
50
+ level: 2
51
+ text: Profile
52
+ - type: Paragraph
53
+ props:
54
+ size: sm
55
+ muted: true
56
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,47 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-sidebar
4
+ path: /
5
+ title: App
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: App
10
+ variant: sidebar
11
+ collapsible: none
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Workspace
17
+ children:
18
+ - type: MenuGroup
19
+ props:
20
+ title: Main
21
+ children:
22
+ - type: MenuLink
23
+ props:
24
+ label: Overview
25
+ href: "#"
26
+ icon: "▦"
27
+ active: true
28
+ - type: MenuLink
29
+ props:
30
+ label: Customers
31
+ href: "#"
32
+ icon: "◍"
33
+ - type: MenuLink
34
+ props:
35
+ label: Settings
36
+ href: "#"
37
+ icon: "⚙"
38
+ children:
39
+ - type: Heading
40
+ props:
41
+ level: 2
42
+ text: Overview
43
+ - type: Paragraph
44
+ props:
45
+ size: sm
46
+ muted: true
47
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,54 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: app-shell-workspace
4
+ path: /
5
+ title: Workspace
6
+ blocks:
7
+ - type: PageLayout
8
+ props:
9
+ title: Workspace
10
+ variant: sidebar
11
+ collapsible: none
12
+ slots:
13
+ sidebar:
14
+ - type: PageSiderMenu
15
+ props:
16
+ title: Acme
17
+ slots:
18
+ header:
19
+ - type: Heading
20
+ props:
21
+ level: 4
22
+ text: Acme
23
+ footer:
24
+ - type: Paragraph
25
+ props:
26
+ size: sm
27
+ muted: true
28
+ text: Ada
29
+ children:
30
+ - type: MenuGroup
31
+ props:
32
+ title: Workspace
33
+ children:
34
+ - type: MenuLink
35
+ props:
36
+ label: Projects
37
+ href: "#"
38
+ icon: "▦"
39
+ active: true
40
+ - type: MenuLink
41
+ props:
42
+ label: Members
43
+ href: "#"
44
+ icon: "◍"
45
+ children:
46
+ - type: Heading
47
+ props:
48
+ level: 2
49
+ text: Overview
50
+ - type: Paragraph
51
+ props:
52
+ size: sm
53
+ muted: true
54
+ text: "App shell placeholder. Replace main content in Builder."
@@ -0,0 +1,151 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: shadcn-admin-shell
4
+ path: /
5
+ blocks:
6
+ - type: PageLayout
7
+ props:
8
+ appearance: admin
9
+ routes:
10
+ - label: Dashboard
11
+ href: /
12
+ icon: layout-dashboard
13
+ - label: Tasks
14
+ href: /tasks
15
+ icon: list-todo
16
+ - label: Apps
17
+ href: /apps
18
+ icon: boxes
19
+ - label: Chats
20
+ href: /chats
21
+ icon: message-circle
22
+ badge: "3"
23
+ - label: Users
24
+ href: /users
25
+ icon: users
26
+ - label: Auth
27
+ href: /sign-in
28
+ icon: shield
29
+ - label: Errors
30
+ href: /errors/500
31
+ icon: circle-help
32
+ - label: Settings
33
+ href: /settings/profile
34
+ icon: settings
35
+ - label: Help Center
36
+ href: /help-center
37
+ icon: circle-help
38
+ - label: Account
39
+ href: /settings/account
40
+ - label: Appearance
41
+ href: /settings/appearance
42
+ - label: Notifications
43
+ href: /settings/notifications
44
+ - label: Display
45
+ href: /settings/display
46
+ headerLinks:
47
+ - label: Overview
48
+ href: /
49
+ - label: Customers
50
+ href: /users
51
+ - label: Products
52
+ href: /apps
53
+ - label: Settings
54
+ href: /settings/profile
55
+ font:
56
+ _state: font
57
+ theme:
58
+ _state: theme
59
+ direction:
60
+ _state: direction
61
+ slots:
62
+ sidebar:
63
+ - type: AppNavigation
64
+ props:
65
+ brand: Shadcn Admin
66
+ subtitle: Vite + ShadcnUI
67
+ groups:
68
+ - label: General
69
+ items:
70
+ - label: Dashboard
71
+ href: /
72
+ icon: layout-dashboard
73
+ - label: Tasks
74
+ href: /tasks
75
+ icon: list-todo
76
+ - label: Apps
77
+ href: /apps
78
+ icon: boxes
79
+ - label: Chats
80
+ href: /chats
81
+ icon: message-circle
82
+ badge: "3"
83
+ - label: Users
84
+ href: /users
85
+ icon: users
86
+ - label: Pages
87
+ items:
88
+ - label: Auth
89
+ href: /sign-in
90
+ icon: shield
91
+ children:
92
+ - label: Sign in
93
+ href: /sign-in
94
+ - label: Sign in (split)
95
+ href: /sign-in-2
96
+ - label: Sign up
97
+ href: /sign-up
98
+ - label: Forgot password
99
+ href: /forgot-password
100
+ - label: OTP
101
+ href: /otp
102
+ - label: Errors
103
+ href: /errors/500
104
+ icon: circle-help
105
+ children:
106
+ - label: "401"
107
+ href: /errors/401
108
+ - label: "403"
109
+ href: /errors/403
110
+ - label: "404"
111
+ href: /errors/404
112
+ - label: "500"
113
+ href: /errors/500
114
+ - label: "503"
115
+ href: /errors/503
116
+ - label: Other
117
+ items:
118
+ - label: Settings
119
+ href: /settings/profile
120
+ icon: settings
121
+ children:
122
+ - label: Profile
123
+ href: /settings/profile
124
+ - label: Account
125
+ href: /settings/account
126
+ - label: Appearance
127
+ href: /settings/appearance
128
+ - label: Notifications
129
+ href: /settings/notifications
130
+ - label: Display
131
+ href: /settings/display
132
+ - label: Help Center
133
+ href: /help-center
134
+ icon: circle-help
135
+ activePath:
136
+ _state: currentPath
137
+ userName: satnaing
138
+ email: satnaingdev@gmail.com
139
+ initials: SN
140
+ workspaces:
141
+ - label: Personal workspace
142
+ href: /
143
+ - label: Team workspace
144
+ href: /users
145
+ events:
146
+ onThemeChange:
147
+ - action: SetState
148
+ params:
149
+ path: theme
150
+ value:
151
+ _event: value
@@ -0,0 +1,183 @@
1
+ version: "2.0"
2
+ pages:
3
+ - id: admin-dashboard
4
+ path: /
5
+ title: Acme Admin
6
+ blocks:
7
+ - type: PageLayout
8
+ template: app-shell-sidebar
9
+ props:
10
+ title: Acme Console
11
+ slots:
12
+ headerActions:
13
+ - type: Button
14
+ props:
15
+ label: New report
16
+ size: sm
17
+ variant: outline
18
+ sidebar:
19
+ - type: PageSiderMenu
20
+ props:
21
+ title: Workspace
22
+ children:
23
+ - type: MenuLink
24
+ props:
25
+ label: Overview
26
+ href: "#"
27
+ icon: "▦"
28
+ active: true
29
+ - type: MenuLink
30
+ props:
31
+ label: Customers
32
+ href: "#"
33
+ icon: "◍"
34
+ badge: "n/a"
35
+ - type: MenuLink
36
+ props:
37
+ label: Orders
38
+ href: "#"
39
+ icon: "▤"
40
+ badge: "38"
41
+ - type: MenuLink
42
+ props:
43
+ label: Analytics
44
+ href: "#"
45
+ icon: "◔"
46
+ - type: MenuLink
47
+ props:
48
+ label: Settings
49
+ href: "#"
50
+ icon: "⚙"
51
+ children:
52
+ - type: Box
53
+ props:
54
+ className: "flex items-end justify-between gap-4 mb-3 border-b border-border pb-3"
55
+ children:
56
+ - type: Box
57
+ children:
58
+ - type: Heading
59
+ props:
60
+ level: 2
61
+ text: Overview
62
+ - type: Paragraph
63
+ props:
64
+ size: sm
65
+ muted: true
66
+ text: "Demo window · last 30 days · Linear-like density"
67
+ - type: BadgeGroup
68
+ props:
69
+ items:
70
+ - label: 3 failing checks
71
+ tone: error
72
+ - label: Queue healthy
73
+ tone: success
74
+ - type: Toast
75
+ props:
76
+ level: warning
77
+ title: Status first
78
+ message: "Payment retry is failing for 3 orders. Sample data below — unknown live counts stay n/a."
79
+ - type: StatGrid
80
+ props:
81
+ cols: "4"
82
+ items:
83
+ - label: Failing checks
84
+ value: "3"
85
+ change: "needs triage"
86
+ trend: down
87
+ - label: Open orders
88
+ value: "38"
89
+ description: "in the demo table"
90
+ - label: Revenue (demo)
91
+ value: "$48,210"
92
+ change: "+12.5%"
93
+ trend: up
94
+ - label: Live visitors
95
+ value: "n/a"
96
+ description: "source offline"
97
+ - type: Grid
98
+ props:
99
+ cols: "3"
100
+ gap: lg
101
+ children:
102
+ - type: Box
103
+ props:
104
+ className: "col-span-2"
105
+ children:
106
+ - type: Card
107
+ props:
108
+ title: Revenue trend
109
+ description: "Demo series · hairline card, no drop shadow"
110
+ children:
111
+ - type: TrendChart
112
+ props:
113
+ height: 200
114
+ labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]
115
+ series:
116
+ - name: MRR
117
+ area: true
118
+ points: [18, 24, 22, 30, 38, 48]
119
+ - name: Target
120
+ points: [20, 25, 30, 32, 40, 44]
121
+ - type: Card
122
+ props:
123
+ title: Pipeline
124
+ children:
125
+ - type: TimelineList
126
+ props:
127
+ items:
128
+ - time: "09:24"
129
+ title: "Order #4821 shipped"
130
+ status: ok
131
+ - time: "08:50"
132
+ title: "Refund requested"
133
+ desc: "Customer #221"
134
+ status: warn
135
+ - time: "08:12"
136
+ title: "Payment failed"
137
+ desc: "Retrying in 1h"
138
+ status: error
139
+ - time: "07:40"
140
+ title: "New signup"
141
+ status: ok
142
+ - type: Card
143
+ props:
144
+ title: Recent orders
145
+ description: "Empty state is wired if the demo rows are cleared"
146
+ slots:
147
+ actions:
148
+ - type: Button
149
+ props:
150
+ label: Export
151
+ variant: outline
152
+ size: sm
153
+ children:
154
+ - type: Table
155
+ props:
156
+ emptyText: No orders in this window.
157
+ columns:
158
+ - key: id
159
+ label: Order
160
+ - key: customer
161
+ label: Customer
162
+ - key: total
163
+ label: Total
164
+ align: right
165
+ - key: status
166
+ label: Status
167
+ rows:
168
+ - id: "#4821"
169
+ customer: Jane Cooper
170
+ total: "$210.00"
171
+ status: Shipped
172
+ - id: "#4820"
173
+ customer: Wade Warren
174
+ total: "$84.20"
175
+ status: Processing
176
+ - id: "#4819"
177
+ customer: Esther Howard
178
+ total: "$1,420.00"
179
+ status: Paid
180
+ - id: "#4818"
181
+ customer: Cameron W.
182
+ total: "$32.00"
183
+ status: Refunded