Add NIP-89 kind 31990 app management for projects

- AppDialog with app preview card, Blossom icon upload, and collapsible advanced section
- AppTool for AI to view/update app with view-before-update guard
- Shared buildAppEvent utility for DRY event construction
- Auto-fill website from deployment URL, default name from project ID
- Add repo 'a' tag when origin is a nostr:// URI owned by the user
- Custom tool call rendering with AppWindow icon
- System prompt guidance for app publishing workflow and prerequisites
- Store app coordinate in .git/shakespeare/app.json via DotAI
This commit is contained in:
Alex Gleason committed 2026-04-02 01:36:15 -05:00
1 parent ed40469af4
commit ed55e600d4
10 files changed
+1152 -2

No files matched your search

+9
View File
@@ -8,6 +8,7 @@ import { PreviewPane } from '@/components/Shakespeare/PreviewPane';
import { ProjectSidebar } from '@/components/ProjectSidebar';
import { ProjectDetailsDialog } from '@/components/ProjectDetailsDialog';
import { DeleteProjectDialog } from '@/components/DeleteProjectDialog';
import { AppDialog } from '@/components/AppDialog';
import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from '@/components/ui/resizable';
import { Button } from '@/components/ui/button';
import { Skeleton } from '@/components/ui/skeleton';
@@ -44,6 +45,7 @@ export function ProjectView() {
const [gitHistoryOpen, setGitHistoryOpen] = useState(false);
const [duplicateDialogOpen, setDuplicateDialogOpen] = useState(false);
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
const [appDialogOpen, setAppDialogOpen] = useState(false);
const [isDeleting, setIsDeleting] = useState(false);
// Use console error state from provider
@@ -217,6 +219,7 @@ export function ProjectView() {
onDuplicate={() => setDuplicateDialogOpen(true)}
onDelete={() => setDeleteDialogOpen(true)}
onProjectDetails={() => setIsProjectDetailsOpen(true)}
onApp={() => setAppDialogOpen(true)}
isAnyLoading={isAnyLoading || isDeleting}
className="text-base"
/>
@@ -446,6 +449,7 @@ export function ProjectView() {
onDuplicate={() => setDuplicateDialogOpen(true)}
onDelete={() => setDeleteDialogOpen(true)}
onProjectDetails={() => setIsProjectDetailsOpen(true)}
onApp={() => setAppDialogOpen(true)}
isAnyLoading={isAnyLoading || isDeleting}
className="text-lg"
/>
@@ -557,6 +561,11 @@ export function ProjectView() {
open={deleteDialogOpen}
onOpenChange={setDeleteDialogOpen}
/>
<AppDialog
projectId={project.id}
open={appDialogOpen}
onOpenChange={setAppDialogOpen}
/>
</>
)}
</div>