| 1 | <html> |
| 2 | |
| 3 | <head> |
| 4 | <title>Create a new project</title> |
| 5 | <script type="module"> |
| 6 | import { store } from "/components/projects/projects-store.js"; |
| 7 | </script> |
| 8 | </head> |
| 9 | |
| 10 | <body> |
| 11 | <div x-data> |
| 12 | <template x-if="$store.projects && $store.projects.selectedProject"> |
| 13 | <div> |
| 14 | <!-- <div class="project-detail-header"> |
| 15 | <div class="projects-project-card-title">Project details</div> |
| 16 | <div class="project-path" x-text="$store.projects.selectedProject.path"></div> |
| 17 | </div> --> |
| 18 | |
| 19 | <div class="projects-form-group"> |
| 20 | <label class="projects-form-label">Description</label> |
| 21 | <span class="projects-form-description">Describe the project. This helps both you and the agent |
| 22 | understand the project context.</span> |
| 23 | <textarea class="projects-form-textarea" x-model="$store.projects.selectedProject.description" |
| 24 | rows="5" placeholder="Enter project description"></textarea> |
| 25 | </div> |
| 26 | |
| 27 | <div class="projects-form-group"> |
| 28 | <label class="projects-form-label">Instructions</label> |
| 29 | <span class="projects-form-description">Provide specific instructions for the agent related to this |
| 30 | project.</span> |
| 31 | <textarea class="projects-form-textarea" |
| 32 | x-model="$store.projects.selectedProject.instructions" rows="15" |
| 33 | placeholder="Enter project instructions"></textarea> |
| 34 | </div> |
| 35 | |
| 36 | <div class="projects-setting-row" style="padding: 1rem 0;"> |
| 37 | <div class="projects-setting-text"> |
| 38 | <label class="projects-form-label">Include top-level AGENTS.md</label> |
| 39 | <span class="projects-form-description">When turned on, Agent Zero will include the project's |
| 40 | top-level AGENTS.md file in the active project instructions when that file exists.</span> |
| 41 | </div> |
| 42 | <div class="projects-setting-control"> |
| 43 | <label class="toggle"> |
| 44 | <input type="checkbox" x-model="$store.projects.selectedProject.include_agents_md"> |
| 45 | <span class="toggler"></span> |
| 46 | </label> |
| 47 | </div> |
| 48 | </div> |
| 49 | |
| 50 | <div class="projects-form-group"> |
| 51 | <label class="projects-form-label">Instruction files</label> |
| 52 | <div class="projects-input-with-button-wrapper"> |
| 53 | <span class="projects-form-description">Additional instruction files in <strong><span |
| 54 | x-text="$store.projects.getSelectedAbsPath('.a0proj','instructions')"></span></strong>. Only text files are currently supported (txt, md, yaml, no PDFs or images).</span> |
| 55 | <span class="projects-form-description">Currently there are <strong><span |
| 56 | x-text="$store.projects.selectedProject.instruction_files_count || 0"></span></strong> instruction files.</span> |
| 57 | <button class="button icon-button" x-on:click="$store.projects.browseInstructionFiles()"> |
| 58 | <x-icon class="icon" name="folder"></x-icon> |
| 59 | <span>Browse</span> |
| 60 | </button> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | |
| 65 | |
| 66 | </template> |
| 67 | </div> |
| 68 | </body> |
| 69 | <style> |
| 70 | </style> |
| 71 | |
| 72 | </html> |