Creer v0.2 — templates, preview, GitHub, overwrite, chat - #4
Draft
seven0070 wants to merge 2 commits into
Draft
Conversation
Scaffold AI repo generation end-to-end: planner/generator API with path validation, TypeScript extension command to write files into the workspace with optional git init, and a PLAN.md for v0.2 priorities. Co-authored-by: Sanath S Patil <sanathpatil8861@gmail.com>
Backend: curated templates, /plan + /templates, stronger validation, optional GitHub repo create API. Extension: plan preview before write, per-file overwrite protection, GitHub push flow, /creer chat entry and @creer participant, with path-safe writes and shell-safe git exec. Co-authored-by: Sanath S Patil <sanathpatil8861@gmail.com>
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.
Summary
Implements Creer v0.2 on top of the v0.1 foundation: curated templates, plan preview, per-file overwrite protection, GitHub repo create/push, and
/creerchat-style entry.Backend
GET /templates— 5 curated stacks (fastapi, express, nextjs, python-cli, static-site)POST /plan— plan-only (template path works without OpenAI key)POST /generate— accepts optionaltemplate_id+ confirmedplanPOST /github/create-repo— Bearer token GitHub repo creationExtension
creer.previewBeforeWrite)creer.createGitHubRepo,creer.githubToken)/creer …)@creer(when Chat API available)execFilefor git (no shell injection)Docs
Test plan
uvicorn main:app --reload --port 8000→/healthshows0.2.0curl /templatesreturns 5 templatesPOST /planwithtemplate_id: fastapi-minimalworks without API keycreateGitHubRepo, remote is created and pushed/creerprefix