@ailog/cli 0.1.1 → 0.1.3

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 (104) hide show
  1. package/README.md +2 -2
  2. package/dist/bin/cli.js +70 -3
  3. package/dist/standalone/.next/BUILD_ID +1 -1
  4. package/dist/standalone/.next/build-manifest.json +2 -2
  5. package/dist/standalone/.next/server/app/_global-error.html +2 -2
  6. package/dist/standalone/.next/server/app/_global-error.rsc +1 -1
  7. package/dist/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/dist/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/dist/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/dist/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/dist/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/dist/standalone/.next/server/app/_not-found.html +1 -1
  13. package/dist/standalone/.next/server/app/_not-found.rsc +1 -1
  14. package/dist/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  15. package/dist/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/dist/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  17. package/dist/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/dist/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/dist/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  20. package/dist/standalone/.next/server/app/api/[[...route]]/route.js.nft.json +1 -1
  21. package/dist/standalone/.next/server/app/index.html +1 -1
  22. package/dist/standalone/.next/server/app/index.rsc +1 -1
  23. package/dist/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
  24. package/dist/standalone/.next/server/app/index.segments/_full.segment.rsc +1 -1
  25. package/dist/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
  26. package/dist/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
  27. package/dist/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  28. package/dist/standalone/.next/server/chunks/[root-of-the-server]__a0f47697._.js +1 -1
  29. package/dist/standalone/.next/server/chunks/ssr/node_modules__bun_4bd60410._.js +1 -1
  30. package/dist/standalone/.next/server/pages/404.html +1 -1
  31. package/dist/standalone/.next/server/pages/500.html +2 -2
  32. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +5 -4
  33. package/dist/standalone/dist/standalone/dist/standalone/package.json +3 -3
  34. package/dist/standalone/dist/standalone/package.json +3 -3
  35. package/dist/standalone/package.json +3 -3
  36. package/package.json +3 -3
  37. package/dist/standalone/.env +0 -0
  38. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  39. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  40. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  41. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  42. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  43. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  44. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  45. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  46. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  47. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  48. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  49. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  50. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  51. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  52. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  53. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  54. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  55. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  56. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  57. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  58. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  59. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  60. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  61. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  62. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  63. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  64. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  65. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  66. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  67. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  68. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  69. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  70. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  71. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  72. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  73. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  74. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  75. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  76. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  77. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  78. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  79. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  80. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/layout.tsx +0 -3
  81. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/page.tsx +0 -238
  82. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/settings/page.tsx +0 -224
  83. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/app/apps/[appId]/threads/[threadId]/page.tsx +0 -283
  84. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components/apps-table.tsx +0 -274
  85. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/components.json +0 -24
  86. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  87. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  88. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  89. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  90. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  91. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  92. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  93. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  94. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  95. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  96. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  97. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  98. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  99. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  100. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/package.json +0 -65
  101. package/dist/standalone/dist/standalone/dist/standalone/dist/standalone/dist/standalone/tsconfig.json +0 -34
  102. /package/dist/standalone/.next/static/{8H5ZwnsPRw0PovUUXMbkb → ePLfvIxIoteKYr9bTCkF7}/_buildManifest.js +0 -0
  103. /package/dist/standalone/.next/static/{8H5ZwnsPRw0PovUUXMbkb → ePLfvIxIoteKYr9bTCkF7}/_clientMiddlewareManifest.json +0 -0
  104. /package/dist/standalone/.next/static/{8H5ZwnsPRw0PovUUXMbkb → ePLfvIxIoteKYr9bTCkF7}/_ssgManifest.js +0 -0
@@ -1,274 +0,0 @@
1
- 'use client'
2
-
3
- import { useState } from 'react'
4
- import { useRouter } from 'next/navigation'
5
- import Link from 'next/link'
6
- import {
7
- Table,
8
- TableBody,
9
- TableCell,
10
- TableHead,
11
- TableHeader,
12
- TableRow,
13
- } from '@/components/ui/table'
14
- import {
15
- DropdownMenu,
16
- DropdownMenuContent,
17
- DropdownMenuItem,
18
- DropdownMenuTrigger,
19
- } from '@/components/ui/dropdown-menu'
20
- import {
21
- AlertDialog,
22
- AlertDialogAction,
23
- AlertDialogCancel,
24
- AlertDialogContent,
25
- AlertDialogDescription,
26
- AlertDialogFooter,
27
- AlertDialogHeader,
28
- AlertDialogTitle,
29
- } from '@/components/ui/alert-dialog'
30
- import { Button } from '@/components/ui/button'
31
- import { Skeleton } from '@/components/ui/skeleton'
32
- import {
33
- Tooltip,
34
- TooltipContent,
35
- TooltipTrigger,
36
- } from '@/components/ui/tooltip'
37
- import { HugeiconsIcon } from '@hugeicons/react'
38
- import {
39
- MoreHorizontalCircle01Icon,
40
- EyeIcon,
41
- Delete02Icon,
42
- Copy01Icon,
43
- } from '@hugeicons/core-free-icons'
44
- import { rpcClient } from '@/lib/rpc-client'
45
- import { toast } from 'sonner'
46
- import type { App } from '@/lib/api'
47
-
48
- interface AppsTableProps {
49
- apps: App[]
50
- isLoading: boolean
51
- onDelete: () => void
52
- }
53
-
54
- function formatDate(dateString: string) {
55
- return new Date(dateString).toLocaleDateString('en-US', {
56
- year: 'numeric',
57
- month: 'short',
58
- day: 'numeric',
59
- hour: '2-digit',
60
- minute: '2-digit',
61
- })
62
- }
63
-
64
- function copyToClipboard(text: string) {
65
- navigator.clipboard.writeText(text)
66
- toast.success('Copied to clipboard')
67
- }
68
-
69
- function truncateId(id: string, maxLength = 12) {
70
- return id.length > maxLength ? `${id.substring(0, maxLength)}...` : id
71
- }
72
-
73
- export function AppsTable({ apps, isLoading, onDelete }: AppsTableProps) {
74
- const router = useRouter()
75
- const [deleteDialogOpen, setDeleteDialogOpen] = useState(false)
76
- const [appToDelete, setAppToDelete] = useState<App | null>(null)
77
- const [isDeleting, setIsDeleting] = useState(false)
78
-
79
- const handleDelete = async () => {
80
- if (!appToDelete) return
81
-
82
- setIsDeleting(true)
83
- try {
84
- const res = await rpcClient.api.admin.apps[':appId'].$delete({
85
- param: { appId: appToDelete.appId },
86
- })
87
-
88
- if (!res.ok) {
89
- throw new Error('Failed to delete app')
90
- }
91
-
92
- toast.success('App deleted successfully')
93
- setDeleteDialogOpen(false)
94
- setAppToDelete(null)
95
- onDelete()
96
- } catch (error) {
97
- toast.error('Failed to delete app')
98
- console.error(error)
99
- } finally {
100
- setIsDeleting(false)
101
- }
102
- }
103
-
104
- if (isLoading) {
105
- return (
106
- <div className="rounded-md border">
107
- <Table>
108
- <TableHeader>
109
- <TableRow>
110
- <TableHead>App ID</TableHead>
111
- <TableHead>Name</TableHead>
112
- <TableHead>Created</TableHead>
113
- <TableHead>Updated</TableHead>
114
- <TableHead className="w-[70px]"></TableHead>
115
- </TableRow>
116
- </TableHeader>
117
- <TableBody>
118
- {[...Array(3)].map((_, i) => (
119
- <TableRow key={i}>
120
- <TableCell>
121
- <Skeleton className="h-5 w-48" />
122
- </TableCell>
123
- <TableCell>
124
- <Skeleton className="h-5 w-32" />
125
- </TableCell>
126
- <TableCell>
127
- <Skeleton className="h-5 w-36" />
128
- </TableCell>
129
- <TableCell>
130
- <Skeleton className="h-5 w-36" />
131
- </TableCell>
132
- <TableCell>
133
- <Skeleton className="h-8 w-8" />
134
- </TableCell>
135
- </TableRow>
136
- ))}
137
- </TableBody>
138
- </Table>
139
- </div>
140
- )
141
- }
142
-
143
- if (apps.length === 0) {
144
- return (
145
- <div className="rounded-md border p-8 text-center">
146
- <p className="text-muted-foreground">
147
- No apps yet. Create your first app to get started.
148
- </p>
149
- </div>
150
- )
151
- }
152
-
153
- return (
154
- <>
155
- <div className="rounded-md border">
156
- <Table>
157
- <TableHeader>
158
- <TableRow>
159
- <TableHead>App ID</TableHead>
160
- <TableHead>Name</TableHead>
161
- <TableHead>Created</TableHead>
162
- <TableHead>Updated</TableHead>
163
- <TableHead className="w-[70px]"></TableHead>
164
- </TableRow>
165
- </TableHeader>
166
- <TableBody>
167
- {apps.map((app) => (
168
- <TableRow
169
- key={app.appId}
170
- className="cursor-pointer"
171
- onClick={() => router.push(`/apps/${app.appId}`)}
172
- >
173
- <TableCell>
174
- <div className="flex items-center gap-2">
175
- {app.appId.length > 12 ? (
176
- <Tooltip>
177
- <TooltipTrigger asChild>
178
- <code className="text-muted-foreground cursor-default font-mono text-sm">
179
- {truncateId(app.appId)}
180
- </code>
181
- </TooltipTrigger>
182
- <TooltipContent>{app.appId}</TooltipContent>
183
- </Tooltip>
184
- ) : (
185
- <code className="text-muted-foreground font-mono text-sm">
186
- {app.appId}
187
- </code>
188
- )}
189
- <Button
190
- variant="ghost"
191
- size="icon"
192
- className="h-6 w-6"
193
- onClick={(e) => {
194
- e.stopPropagation()
195
- copyToClipboard(app.appId)
196
- }}
197
- >
198
- <HugeiconsIcon icon={Copy01Icon} className="h-3 w-3" />
199
- </Button>
200
- </div>
201
- </TableCell>
202
- <TableCell className="font-medium">{app.name}</TableCell>
203
- <TableCell className="text-muted-foreground">
204
- {formatDate(app.createdAt)}
205
- </TableCell>
206
- <TableCell className="text-muted-foreground">
207
- {formatDate(app.updatedAt)}
208
- </TableCell>
209
- <TableCell className="p-0" onClick={(e) => e.stopPropagation()}>
210
- <DropdownMenu>
211
- <DropdownMenuTrigger asChild>
212
- <button className="hover:bg-muted/50 flex h-full w-full items-center justify-center p-4">
213
- <HugeiconsIcon
214
- icon={MoreHorizontalCircle01Icon}
215
- className="h-4 w-4"
216
- />
217
- </button>
218
- </DropdownMenuTrigger>
219
- <DropdownMenuContent align="end">
220
- <DropdownMenuItem asChild>
221
- <Link href={`/apps/${app.appId}`}>
222
- <HugeiconsIcon
223
- icon={EyeIcon}
224
- className="mr-2 h-4 w-4"
225
- />
226
- View
227
- </Link>
228
- </DropdownMenuItem>
229
- <DropdownMenuItem
230
- className="text-destructive focus:text-destructive"
231
- onClick={() => {
232
- setAppToDelete(app)
233
- setDeleteDialogOpen(true)
234
- }}
235
- >
236
- <HugeiconsIcon
237
- icon={Delete02Icon}
238
- className="mr-2 h-4 w-4"
239
- />
240
- Delete
241
- </DropdownMenuItem>
242
- </DropdownMenuContent>
243
- </DropdownMenu>
244
- </TableCell>
245
- </TableRow>
246
- ))}
247
- </TableBody>
248
- </Table>
249
- </div>
250
-
251
- <AlertDialog open={deleteDialogOpen} onOpenChange={setDeleteDialogOpen}>
252
- <AlertDialogContent>
253
- <AlertDialogHeader>
254
- <AlertDialogTitle>Delete App</AlertDialogTitle>
255
- <AlertDialogDescription>
256
- Are you sure you want to delete &quot;{appToDelete?.name}&quot;?
257
- This action cannot be undone and will delete all associated data.
258
- </AlertDialogDescription>
259
- </AlertDialogHeader>
260
- <AlertDialogFooter>
261
- <AlertDialogCancel>Cancel</AlertDialogCancel>
262
- <AlertDialogAction
263
- onClick={handleDelete}
264
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
265
- disabled={isDeleting}
266
- >
267
- {isDeleting ? 'Deleting...' : 'Delete'}
268
- </AlertDialogAction>
269
- </AlertDialogFooter>
270
- </AlertDialogContent>
271
- </AlertDialog>
272
- </>
273
- )
274
- }
@@ -1,24 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema.json",
3
- "style": "radix-lyra",
4
- "rsc": true,
5
- "tsx": true,
6
- "tailwind": {
7
- "config": "",
8
- "css": "app/globals.css",
9
- "baseColor": "neutral",
10
- "cssVariables": true,
11
- "prefix": ""
12
- },
13
- "iconLibrary": "hugeicons",
14
- "aliases": {
15
- "components": "@/components",
16
- "utils": "@/lib/utils",
17
- "ui": "@/components/ui",
18
- "lib": "@/lib",
19
- "hooks": "@/hooks"
20
- },
21
- "menuColor": "default",
22
- "menuAccent": "subtle",
23
- "registries": {}
24
- }
@@ -1,65 +0,0 @@
1
- {
2
- "name": "house-cli",
3
- "version": "0.1.0",
4
- "description": "CLI to run the House LLM logging dashboard",
5
- "private": false,
6
- "type": "module",
7
- "bin": {
8
- "house": "./dist/bin/cli.js"
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "dev": "next dev --port 9000",
15
- "build": "next build",
16
- "build:cli": "next build && bun scripts/build-cli.ts",
17
- "start": "next start",
18
- "start:cli": "node dist/bin/cli.js start",
19
- "prepublishOnly": "bun run build:cli",
20
- "lint": "eslint --max-warnings=0 .",
21
- "lint:fix": "eslint --fix ."
22
- },
23
- "dependencies": {
24
- "commander": "^12.0.0",
25
- "next": "16.0.10",
26
- "pg": "^8.16.3",
27
- "react": "19.2.1",
28
- "react-dom": "19.2.1",
29
- "styled-jsx": "^5.1.6",
30
- "@swc/helpers": "^0.5.15",
31
- "client-only": "^0.0.1"
32
- },
33
- "optionalDependencies": {
34
- "sharp": "^0.34.5"
35
- },
36
- "devDependencies": {
37
- "@base-ui/react": "^1.0.0",
38
- "@hugeicons/core-free-icons": "^2.0.0",
39
- "@hugeicons/react": "^1.1.1",
40
- "@tailwindcss/postcss": "^4",
41
- "@tanstack/react-table": "^8.21.3",
42
- "@types/bun": "^1.3.5",
43
- "@types/node": "^20",
44
- "@types/react": "^19",
45
- "@types/react-dom": "^19",
46
- "class-variance-authority": "^0.7.1",
47
- "clsx": "^2.1.1",
48
- "eslint": "^9",
49
- "eslint-config-next": "16.0.10",
50
- "hono": "^4.11.0",
51
- "next-themes": "^0.4.6",
52
- "nuqs": "^2.8.5",
53
- "radix-ui": "^1.4.3",
54
- "server": "*",
55
- "shadcn": "^3.6.1",
56
- "sonner": "^2.0.7",
57
- "tailwind-merge": "^3.4.0",
58
- "tailwindcss": "^4",
59
- "tw-animate-css": "^1.4.0",
60
- "typescript": "^5"
61
- },
62
- "engines": {
63
- "node": ">=18"
64
- }
65
- }
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2017",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "noEmit": true,
9
- "esModuleInterop": true,
10
- "module": "esnext",
11
- "moduleResolution": "bundler",
12
- "resolveJsonModule": true,
13
- "isolatedModules": true,
14
- "jsx": "react-jsx",
15
- "incremental": true,
16
- "plugins": [
17
- {
18
- "name": "next"
19
- }
20
- ],
21
- "paths": {
22
- "@/*": ["./*"]
23
- }
24
- },
25
- "include": [
26
- "next-env.d.ts",
27
- "**/*.ts",
28
- "**/*.tsx",
29
- ".next/types/**/*.ts",
30
- ".next/dev/types/**/*.ts",
31
- "**/*.mts"
32
- ],
33
- "exclude": ["node_modules"]
34
- }
@@ -1,65 +0,0 @@
1
- {
2
- "name": "house-cli",
3
- "version": "0.1.0",
4
- "description": "CLI to run the House LLM logging dashboard",
5
- "private": false,
6
- "type": "module",
7
- "bin": {
8
- "house": "./dist/bin/cli.js"
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "dev": "next dev --port 9000",
15
- "build": "next build",
16
- "build:cli": "next build && bun scripts/build-cli.ts",
17
- "start": "next start",
18
- "start:cli": "node dist/bin/cli.js start",
19
- "prepublishOnly": "bun run build:cli",
20
- "lint": "eslint --max-warnings=0 .",
21
- "lint:fix": "eslint --fix ."
22
- },
23
- "dependencies": {
24
- "commander": "^12.0.0",
25
- "next": "16.0.10",
26
- "pg": "^8.16.3",
27
- "react": "19.2.1",
28
- "react-dom": "19.2.1",
29
- "styled-jsx": "^5.1.6",
30
- "@swc/helpers": "^0.5.15",
31
- "client-only": "^0.0.1"
32
- },
33
- "optionalDependencies": {
34
- "sharp": "^0.34.5"
35
- },
36
- "devDependencies": {
37
- "@base-ui/react": "^1.0.0",
38
- "@hugeicons/core-free-icons": "^2.0.0",
39
- "@hugeicons/react": "^1.1.1",
40
- "@tailwindcss/postcss": "^4",
41
- "@tanstack/react-table": "^8.21.3",
42
- "@types/bun": "^1.3.5",
43
- "@types/node": "^20",
44
- "@types/react": "^19",
45
- "@types/react-dom": "^19",
46
- "class-variance-authority": "^0.7.1",
47
- "clsx": "^2.1.1",
48
- "eslint": "^9",
49
- "eslint-config-next": "16.0.10",
50
- "hono": "^4.11.0",
51
- "next-themes": "^0.4.6",
52
- "nuqs": "^2.8.5",
53
- "radix-ui": "^1.4.3",
54
- "server": "*",
55
- "shadcn": "^3.6.1",
56
- "sonner": "^2.0.7",
57
- "tailwind-merge": "^3.4.0",
58
- "tailwindcss": "^4",
59
- "tw-animate-css": "^1.4.0",
60
- "typescript": "^5"
61
- },
62
- "engines": {
63
- "node": ">=18"
64
- }
65
- }
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2017",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "noEmit": true,
9
- "esModuleInterop": true,
10
- "module": "esnext",
11
- "moduleResolution": "bundler",
12
- "resolveJsonModule": true,
13
- "isolatedModules": true,
14
- "jsx": "react-jsx",
15
- "incremental": true,
16
- "plugins": [
17
- {
18
- "name": "next"
19
- }
20
- ],
21
- "paths": {
22
- "@/*": ["./*"]
23
- }
24
- },
25
- "include": [
26
- "next-env.d.ts",
27
- "**/*.ts",
28
- "**/*.tsx",
29
- ".next/types/**/*.ts",
30
- ".next/dev/types/**/*.ts",
31
- "**/*.mts"
32
- ],
33
- "exclude": ["node_modules"]
34
- }
@@ -1,65 +0,0 @@
1
- {
2
- "name": "house-cli",
3
- "version": "0.1.0",
4
- "description": "CLI to run the House LLM logging dashboard",
5
- "private": false,
6
- "type": "module",
7
- "bin": {
8
- "house": "./dist/bin/cli.js"
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "dev": "next dev --port 9000",
15
- "build": "next build",
16
- "build:cli": "next build && bun scripts/build-cli.ts",
17
- "start": "next start",
18
- "start:cli": "node dist/bin/cli.js start",
19
- "prepublishOnly": "bun run build:cli",
20
- "lint": "eslint --max-warnings=0 .",
21
- "lint:fix": "eslint --fix ."
22
- },
23
- "dependencies": {
24
- "commander": "^12.0.0",
25
- "next": "16.0.10",
26
- "pg": "^8.16.3",
27
- "react": "19.2.1",
28
- "react-dom": "19.2.1",
29
- "styled-jsx": "^5.1.6",
30
- "@swc/helpers": "^0.5.15",
31
- "client-only": "^0.0.1"
32
- },
33
- "optionalDependencies": {
34
- "sharp": "^0.34.5"
35
- },
36
- "devDependencies": {
37
- "@base-ui/react": "^1.0.0",
38
- "@hugeicons/core-free-icons": "^2.0.0",
39
- "@hugeicons/react": "^1.1.1",
40
- "@tailwindcss/postcss": "^4",
41
- "@tanstack/react-table": "^8.21.3",
42
- "@types/bun": "^1.3.5",
43
- "@types/node": "^20",
44
- "@types/react": "^19",
45
- "@types/react-dom": "^19",
46
- "class-variance-authority": "^0.7.1",
47
- "clsx": "^2.1.1",
48
- "eslint": "^9",
49
- "eslint-config-next": "16.0.10",
50
- "hono": "^4.11.0",
51
- "next-themes": "^0.4.6",
52
- "nuqs": "^2.8.5",
53
- "radix-ui": "^1.4.3",
54
- "server": "*",
55
- "shadcn": "^3.6.1",
56
- "sonner": "^2.0.7",
57
- "tailwind-merge": "^3.4.0",
58
- "tailwindcss": "^4",
59
- "tw-animate-css": "^1.4.0",
60
- "typescript": "^5"
61
- },
62
- "engines": {
63
- "node": ">=18"
64
- }
65
- }
@@ -1,34 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2017",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "noEmit": true,
9
- "esModuleInterop": true,
10
- "module": "esnext",
11
- "moduleResolution": "bundler",
12
- "resolveJsonModule": true,
13
- "isolatedModules": true,
14
- "jsx": "react-jsx",
15
- "incremental": true,
16
- "plugins": [
17
- {
18
- "name": "next"
19
- }
20
- ],
21
- "paths": {
22
- "@/*": ["./*"]
23
- }
24
- },
25
- "include": [
26
- "next-env.d.ts",
27
- "**/*.ts",
28
- "**/*.tsx",
29
- ".next/types/**/*.ts",
30
- ".next/dev/types/**/*.ts",
31
- "**/*.mts"
32
- ],
33
- "exclude": ["node_modules"]
34
- }
@@ -1,65 +0,0 @@
1
- {
2
- "name": "house-ctl",
3
- "version": "0.1.0",
4
- "description": "CTL to run the House LLM logging dashboard",
5
- "private": false,
6
- "type": "module",
7
- "bin": {
8
- "house": "./dist/bin/ctl.js"
9
- },
10
- "files": [
11
- "dist"
12
- ],
13
- "scripts": {
14
- "dev": "next dev --port 9000",
15
- "build": "next build",
16
- "build:ctl": "next build && bun scripts/build-ctl.ts",
17
- "start": "next start",
18
- "start:ctl": "node dist/bin/ctl.js start",
19
- "prepublishOnly": "bun run build:ctl",
20
- "lint": "eslint --max-warnings=0 .",
21
- "lint:fix": "eslint --fix ."
22
- },
23
- "dependencies": {
24
- "commander": "^12.0.0",
25
- "next": "16.0.10",
26
- "pg": "^8.16.3",
27
- "react": "19.2.1",
28
- "react-dom": "19.2.1",
29
- "styled-jsx": "^5.1.6",
30
- "@swc/helpers": "^0.5.15",
31
- "client-only": "^0.0.1"
32
- },
33
- "optionalDependencies": {
34
- "sharp": "^0.34.5"
35
- },
36
- "devDependencies": {
37
- "@base-ui/react": "^1.0.0",
38
- "@hugeicons/core-free-icons": "^2.0.0",
39
- "@hugeicons/react": "^1.1.1",
40
- "@tailwindcss/postcss": "^4",
41
- "@tanstack/react-table": "^8.21.3",
42
- "@types/bun": "^1.3.5",
43
- "@types/node": "^20",
44
- "@types/react": "^19",
45
- "@types/react-dom": "^19",
46
- "class-variance-authority": "^0.7.1",
47
- "clsx": "^2.1.1",
48
- "eslint": "^9",
49
- "eslint-config-next": "16.0.10",
50
- "hono": "^4.11.0",
51
- "next-themes": "^0.4.6",
52
- "nuqs": "^2.8.5",
53
- "radix-ui": "^1.4.3",
54
- "server": "*",
55
- "shadcn": "^3.6.1",
56
- "sonner": "^2.0.7",
57
- "tailwind-merge": "^3.4.0",
58
- "tailwindcss": "^4",
59
- "tw-animate-css": "^1.4.0",
60
- "typescript": "^5"
61
- },
62
- "engines": {
63
- "node": ">=18"
64
- }
65
- }