feat(task-017): implement git publishing dry-run and commit flow

This commit is contained in:
2026-05-22 00:56:53 +03:00
parent d3990b4019
commit 318ae790ef
15 changed files with 1971 additions and 17 deletions
+24
View File
@@ -496,6 +496,15 @@ export type PlanUpdateRequest = {
visual_needs?: string[] | null;
};
export type PublishCommitCreateResponse = {
article: ArticleSummary;
publish_commit: PublishCommitSummary;
};
export type PublishCommitListResponse = {
commits?: PublishCommitSummary[];
};
export type PublishCommitSummary = {
article_id: string;
branch: string;
@@ -509,6 +518,14 @@ export type PublishCommitSummary = {
target_site_id: string;
};
export type PublishingDryRunResponse = {
article: ArticleSummary;
content_shape_valid: boolean;
errors?: string[];
publish_commit: PublishCommitSummary;
validation_label: string;
};
export type PublishingRules = {
asset_path_template: string;
content_format?: string;
@@ -522,6 +539,13 @@ export type PublishingRules = {
export type PublishingStatus = "PUBLISH_NOT_STARTED" | "PUBLISH_DRY_RUN_REQUIRED" | "PUBLISH_DRY_RUN_RUNNING" | "PUBLISH_DRY_RUN_FAILED" | "PUBLISH_COMMIT_READY" | "PUBLISH_COMMIT_CREATED" | "PUBLISH_VERIFICATION_FAILED";
export type PublishingStatusResponse = {
article: ArticleSummary;
latest_dry_run?: PublishCommitSummary | null;
latest_publish_commit?: PublishCommitSummary | null;
validation_label: string;
};
export type ResearchArtifactManifestSummary = {
agent_job_id: string;
article_id: string;