feat: agent setup prompt for new projects

A "Set up with an AI agent" dialog that mints a write-scoped API key and
renders a copyable prompt handing a coding agent everything needed to wire
a repository into a Primora project: telemetry ingest for any language,
db-connections for tracked databases, MCP/CLI agent access, and
verification steps. Opens at the end of new-project onboarding; also
reachable from the project dashboard and Projects page settings.

Authored By: TDvorak <[email protected]>

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Tomas DvorakandDevin committed 2026-09-28 11:30:33 +02:00
1 parent dcc676bd52
commit 9dd6b40934
10 files changed
+381 -2

No files matched your search

@@ -8,6 +8,7 @@ import {
IconCollections,
IconIntegrations,
IconChevronRight,
IconTerminal,
} from "./Icons";
interface ProjectDashboardProps {
@@ -15,6 +16,7 @@ interface ProjectDashboardProps {
overview?: ProjectOverview;
recentAudit?: AuditLog[];
onNavigate: (view: string) => void;
onAgentSetup?: () => void;
}
function formatBytes(bytes?: number): string {
@@ -135,6 +137,12 @@ export function ProjectDashboard(props: ProjectDashboardProps) {
</p>
</div>
<div class="page-actions">
<Show when={props.onAgentSetup}>
<button class="btn btn-secondary btn-sm" onClick={() => props.onAgentSetup!()}>
<IconTerminal class="w-3.5 h-3.5" />
Agent setup
</button>
</Show>
<button class="btn btn-secondary btn-sm" onClick={() => props.onNavigate("settings")}>
<IconKey class="w-3.5 h-3.5" />
Keys