{
  "version": 1,
  "commonPromptFile": "prompts/common.txt",
  "actions": [
    {"id":"create","label":"Create website","when":"initial","promptFile":"prompts/create.txt","inputs":[{"id":"brief","label":"What website would you like?","type":"textarea","required":true}],"verification":{"type":"file","extensions":[".html"]},"next":["modify","host","hosting_guide","database"]},
    {"id":"modify","label":"Modify","when":"completed","promptFile":"prompts/modify.txt","inputs":[{"id":"changes","label":"What should I change?","type":"textarea","required":true}],"verification":{"type":"file","extensions":[".html"]},"next":["modify","host","hosting_guide","database"]},
    {"id":"host","label":"Host website","when":"completed","description":"Deploy the current website to the hosting account you provide.","promptFile":"prompts/host.txt","inputs":[{"id":"target","label":"Domain, cPanel URL, and target directory","type":"textarea","required":true},{"id":"username","label":"cPanel username","type":"secret","env":"CPANEL_USER","required":true},{"id":"token","label":"cPanel API token","type":"secret","env":"CPANEL_TOKEN","required":true}],"next":["modify","host","hosting_guide","database"]},
    {"id":"hosting_guide","label":"Hosting guide","when":"completed","kind":"guide","promptFile":"prompts/hosting-guide.txt","inputs":[{"id":"hosting","label":"Your hosting provider or hosting type","type":"text","required":true}],"next":["modify","host","hosting_guide","database"]},
    {"id":"database","label":"Add database","when":"completed","promptFile":"prompts/database.txt","inputs":[{"id":"feature","label":"What should the database store?","type":"textarea","required":true},{"id":"connection","label":"Database connection string","type":"secret","env":"DATABASE_URL","required":true}],"verification":{"type":"file","extensions":[".html"]},"next":["modify","host","hosting_guide","database"]}
  ]
}
