File size: 2,822 Bytes
8d1819a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<html>

<head>
    <title>Create a new project</title>
    <script type="module">
        import { store } from "/components/projects/projects-store.js";
    </script>
</head>

<body>
    <div x-data>
        <template x-if="$store.projects && $store.projects.selectedProject">
            <div>
                <!-- <div class="project-detail-header">
                        <div class="projects-project-card-title">Project details</div>
                        <div class="project-path" x-text="$store.projects.selectedProject.path"></div>
                    </div> -->

                <div class="projects-form-group">
                    <label class="projects-form-label">Description</label>
                    <span class="projects-form-description">Describe the project. This helps both you and the agent
                        understand the project context.</span>
                    <textarea class="projects-form-textarea" x-model="$store.projects.selectedProject.description"
                        rows="5" placeholder="Enter project description"></textarea>
                </div>

                <div class="projects-form-group">
                    <label class="projects-form-label">Instructions</label>
                    <span class="projects-form-description">Provide specific instructions for the agent related to this
                        project.</span>
                    <textarea class="projects-form-textarea"
                        x-model="$store.projects.selectedProject.instructions" rows="15"
                        placeholder="Enter project instructions"></textarea>
                </div>

                <div class="projects-form-group">
                    <label class="projects-form-label">Instruction files</label>
                    <div class="projects-input-with-button-wrapper">
                        <span class="projects-form-description">Additional instruction files in <strong><span
                                    x-text="$store.projects.getSelectedAbsPath('.a0proj','instructions')"></span></strong>. Only text files are currently supported (txt, md, yaml, no PDFs or images).</span>
                        <span class="projects-form-description">Currently there are <strong><span
                                    x-text="$store.projects.selectedProject.instruction_files_count || 0"></span></strong> instruction files.</span>
                        <button class="button icon-button" x-on:click="$store.projects.browseInstructionFiles()">
                            <span class="icon material-symbols-outlined">folder</span>
                            <span>Browse</span>
                        </button>
                    </div>
                </div>
            </div>


        </template>
    </div>
</body>
<style>
</style>

</html>