wile 0.4.4 → 0.4.6
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/agent/scripts/prompt.md +2 -1
- package/dist/cli.js +5 -0
- package/package.json +1 -1
|
@@ -98,7 +98,8 @@ After completing steps 1-8, check if ALL stories in `.wile/prd.json` have `passe
|
|
|
98
98
|
4. **Fix related files** - If typecheck requires changes in other files, make them (this is not scope creep)
|
|
99
99
|
5. **Be idempotent** - Use `IF NOT EXISTS` for migrations, check before creating files
|
|
100
100
|
6. **No interactive prompts** - Use `echo -e "\n\n\n" |` if a command might prompt
|
|
101
|
-
7. **NEVER commit node_modules, dist, or build artifacts** - .gitignore should already be set up
|
|
101
|
+
7. **NEVER commit node_modules, dist, or build artifacts** - .gitignore should already be set up at the start of the run
|
|
102
|
+
8. **Use acceptance criteria as verification steps** - Run commands to confirm outputs or write tests that fail if the feature is removed
|
|
102
103
|
|
|
103
104
|
## Common Patterns
|
|
104
105
|
|
package/dist/cli.js
CHANGED
|
@@ -8010,12 +8010,17 @@ var runWile = (options) => {
|
|
|
8010
8010
|
const logsDir = join3(paths.wileDir, "logs");
|
|
8011
8011
|
mkdirSync(logsDir, { recursive: true });
|
|
8012
8012
|
const logPath = join3(logsDir, `run-${getTimestamp()}.log`);
|
|
8013
|
+
writeFileSync(logPath, "", { flag: "w" });
|
|
8013
8014
|
if (options.test) {
|
|
8014
8015
|
const message = `TEST MODE: running mocked agent inside Docker.
|
|
8015
8016
|
`;
|
|
8016
8017
|
process.stdout.write(message);
|
|
8017
8018
|
writeFileSync(logPath, message, { flag: "a" });
|
|
8018
8019
|
}
|
|
8020
|
+
if (options.debug) {
|
|
8021
|
+
console.log(`- logsDir: ${logsDir}`);
|
|
8022
|
+
console.log(`- logPath: ${logPath}`);
|
|
8023
|
+
}
|
|
8019
8024
|
runDockerWithLogging(dockerArgs, logPath);
|
|
8020
8025
|
const finishMessage = `Wile run complete. Monitor progress with git log in your repo.
|
|
8021
8026
|
`;
|