Repository navigation
feat(blog): goal-driven keyword planning and article approval - #37
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
blog.suggest_seeds(workspace_id, *, seeds=None, prompt=None)→POST /v1/blog/keywords/suggest(aiscope,PaymentRequiredErroron an empty balance), returns the list of seeds.blog.submit_article(workspace_id, article_id)→POST /v1/blog/articles/{id}/submit(postsscope), moves a draft, failed or rejected article toin_review; 409 otherwise.BlogSettings: newgoal,focus_topics,avoid_topics,plan_run(newBlogPlanRunmodel);update_settingstakesgoal,focus_topics,avoid_topics.BlogKeyword.fit_reason.in_reviewadded toBlogArticleStatus/BLOG_ARTICLE_STATUSES; newBlogGoal/BLOG_GOALS.plan_keywordsno longer fills the calendar, setting a keyword toplannedpicks it,publish_article/publish_atneed an article in review,review_hold_daysmeaning.Live contract
The blog resource now matches the live API contract (
openapi.json, tag Blog):workspace_idon every query string (settings read, keyword and article lists, every per-id keyword and article call).{ data: [...] }lists,website_secreton the settings PATCH and fromrotate_website_secret, andBlogWebsiteTest.http_statusfromtest_website(a refusal raises the 502website_test_failed).Breaking
auto_publishis removed fromBlogSettingsand fromblog.update_settings.BlogWebsiteTestis nowhttp_statusonly; the blog resource is unreleased, so nothing published changes.Tested
uv run ruff check .,uv run ruff format --check .,uv run mypy,uv run pytest(199 passed; fixtures in the real wire format, assertions on theworkspace_idquery param).Depends on
The fopost/fopost
feature/blog-planning-pipelinechange (merged and deployed).