{choice.title}
+{choice.body}
+ {isDemoCard ? ( + + ) : choice.action === "sign-in" ? ( + + ) : ( + + )} +Sign in to write and publish
+Write, preview, and publish Markdown or MDX
{choice.body}
+ {isDemoCard ? ( + + ) : choice.action === "sign-in" ? ( + + ) : ( + + )} ++ After sign-in, open Settings → Setup detection to scan + your project folder. SourceDraft suggests where posts and images belong. + You can still draft and preview before publishing is configured. +
+ )} + + {activeChoice === "developer" && ( +
+ Run pnpm setup from the SourceDraft repository, or edit{" "}
+ sourcedraft.config.json and .env manually.
+ See the docs for adapters, publishers, and server-side secrets.
+
+ Structured article fields, validation, preview, and a publish checklist + make SourceDraft a natural fit for AI-assisted workflows where agents + prepare drafts and humans review before publishing. Agent API, MCP, and + built-in AI providers are future work — not shipped today. +
+ )} +- Explore Studio with sample posts. No GitHub token required. -
- -- Scans local project files — does not write configuration automatically + Detects content folders, adapters, and frontmatter for AI-assisted publishing workflows
- Scanned: {report.scannedRoot}
+ Scanned folder: {report.scannedRoot}
+
{summary}
+ )} + + {report.onboardingMessage && !summary && ( +{report.onboardingMessage}
+ )} + ++ {nextAction(report)}
+ {!report.detected && report.failureMessage && ( ++ {report.failureMessage} +
+ )} + {report.warnings.length > 0 && ({report.primary.adapter}
- {report.primary.contentDir}
- {report.primary.mediaDir}
- {report.primary.publicMediaPath}
- {report.primary.adapter}
+ {report.primary.contentRoot}
+ {report.primary.postFileCount > 0 && (
+
+ {" "}
+ ({report.primary.postFileCount} post file
+ {report.primary.postFileCount === 1 ? "" : "s"} found)
+
+ )}
+ {report.primary.mediaDir}
+ {report.primary.publicMediaPath}
+ {candidate}
+ + Studio maps these to its article form when you edit or create posts — useful + for automated and assisted publishing pipelines. +
+{field.key}
+ {field.universalField && field.universalField !== field.key && (
+ <>
+ {" "}
+ → {field.universalField}
+ >
+ )}
+
+ {" "}
+ ({field.frequency}/{report.primary?.frontmatter?.postsSampled})
+
+ + Suggested categories:{" "} + {report.primary.frontmatter.suggestedCategories.join(", ")} +
+ )} +
- No supported framework detected. Use pnpm setup or edit{" "}
+ No supported site type detected. Run pnpm setup or edit{" "}
sourcedraft.config.json manually.
{candidate.adapter})
+ {candidate.adapter}, content{" "}
+ {candidate.contentRoot})
{report.configPreviewSummary}
+
+ sourcedraft.config.json already exists — it will not be
+ overwritten. Edit it manually if paths need changing.
+
- Review detection results before applying. Low confidence or warnings - require manual confirmation. -
- )} - {copyStatus && ( -- {copyStatus} -
- )} -+ Review detection results before applying. Low confidence or warnings + require manual confirmation. +
+ )} + + {copyStatus && ( ++ {copyStatus} +
+ )} + + {generateStatus && ( ++ {generateStatus} +
+ )} +