overai 1.4.14 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/create.js +9 -4
- package/package.json +1 -1
package/dist/cli/create.js
CHANGED
|
@@ -147,6 +147,7 @@ async function main() {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
console.log(`🧠 Using AI Model: \x1b[36m${model}\x1b[0m`);
|
|
150
|
+
console.log(`📂 Working in: ${process.cwd()}`);
|
|
150
151
|
// 2. Create the "AutoCoder" Agent
|
|
151
152
|
const coder = new index_1.Agent({
|
|
152
153
|
name: "AutoCoder",
|
|
@@ -161,13 +162,17 @@ async function main() {
|
|
|
161
162
|
PROCESS:
|
|
162
163
|
1. ANALYZE: Understand the user's request and technology stack (Node, Python, React, etc.).
|
|
163
164
|
2. PLAN: Decide on the directory structure and necessary files.
|
|
164
|
-
3. SCAFFOLD: Create the project directory
|
|
165
|
-
4. IMPLEMENT: Create the core files
|
|
166
|
-
|
|
165
|
+
3. SCAFFOLD: Create the project directory (e.g. "mkdir my-project").
|
|
166
|
+
4. IMPLEMENT: Create the core files with working code.
|
|
167
|
+
IMPORTANT: When using 'write_file', you MUST use the project directory prefix (e.g. "my-project/index.js").
|
|
168
|
+
The 'write_file' tool operates from the root, so you must always specify the full relative path.
|
|
169
|
+
5. DEPENDENCIES: Install necessary packages (e.g. "cd my-project && npm install ...").
|
|
167
170
|
6. VERIFY: Run a command to prove the project works or builds successfully.
|
|
168
171
|
|
|
169
172
|
RULES:
|
|
170
|
-
- ALWAYS start by creating a new directory for the project
|
|
173
|
+
- ALWAYS start by creating a new directory for the project.
|
|
174
|
+
- ALL file paths in 'write_file' MUST include the project directory name (e.g., 'project-name/README.md').
|
|
175
|
+
- Do not rely on 'cd' in 'run_command' to change the directory for 'write_file' calls.
|
|
171
176
|
- Be comprehensive: Include README.md, .gitignore, and config files.
|
|
172
177
|
- If something fails, try to fix it or report the specific error.
|
|
173
178
|
- Do not ask for permission for each step, proceed autonomously until completion.`,
|