wile 0.3.1 → 0.4.0
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.js +37 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7464,7 +7464,7 @@ var prdExample = {
|
|
|
7464
7464
|
"npm run build produces dist/ folder"
|
|
7465
7465
|
],
|
|
7466
7466
|
priority: 1,
|
|
7467
|
-
passes:
|
|
7467
|
+
passes: false,
|
|
7468
7468
|
notes: "Use TypeScript. Keep it minimal."
|
|
7469
7469
|
},
|
|
7470
7470
|
{
|
|
@@ -7479,7 +7479,7 @@ var prdExample = {
|
|
|
7479
7479
|
"Squares have visible borders"
|
|
7480
7480
|
],
|
|
7481
7481
|
priority: 2,
|
|
7482
|
-
passes:
|
|
7482
|
+
passes: false,
|
|
7483
7483
|
notes: "Just the visual grid, no game logic yet"
|
|
7484
7484
|
},
|
|
7485
7485
|
{
|
|
@@ -7494,7 +7494,7 @@ var prdExample = {
|
|
|
7494
7494
|
"Cannot click already-filled square"
|
|
7495
7495
|
],
|
|
7496
7496
|
priority: 3,
|
|
7497
|
-
passes:
|
|
7497
|
+
passes: false,
|
|
7498
7498
|
notes: "Use React state for board and current player"
|
|
7499
7499
|
},
|
|
7500
7500
|
{
|
|
@@ -7509,7 +7509,7 @@ var prdExample = {
|
|
|
7509
7509
|
"No more moves allowed after win"
|
|
7510
7510
|
],
|
|
7511
7511
|
priority: 4,
|
|
7512
|
-
passes:
|
|
7512
|
+
passes: false,
|
|
7513
7513
|
notes: "Check all 8 possible winning combinations"
|
|
7514
7514
|
},
|
|
7515
7515
|
{
|
|
@@ -7523,7 +7523,7 @@ var prdExample = {
|
|
|
7523
7523
|
"Reset clears any win/draw message"
|
|
7524
7524
|
],
|
|
7525
7525
|
priority: 5,
|
|
7526
|
-
passes:
|
|
7526
|
+
passes: false,
|
|
7527
7527
|
notes: "Complete the game loop"
|
|
7528
7528
|
},
|
|
7529
7529
|
{
|
|
@@ -7536,7 +7536,7 @@ var prdExample = {
|
|
|
7536
7536
|
"X indicator in blue, O indicator in red"
|
|
7537
7537
|
],
|
|
7538
7538
|
priority: 6,
|
|
7539
|
-
passes:
|
|
7539
|
+
passes: false,
|
|
7540
7540
|
notes: "Polish the UX"
|
|
7541
7541
|
}
|
|
7542
7542
|
]
|
|
@@ -7621,6 +7621,7 @@ var runConfig = async () => {
|
|
|
7621
7621
|
const prdPath = join(wileDir, "prd.json");
|
|
7622
7622
|
const prdExamplePath = join(wileDir, "prd.json.example");
|
|
7623
7623
|
const additionalInstructionsPath = join(wileDir, "additional-instructions.md");
|
|
7624
|
+
const agentsPath = join(wileDir, "AGENTS.md");
|
|
7624
7625
|
await mkdir(secretsDir, { recursive: true });
|
|
7625
7626
|
const existingEnv = await readEnvFile(envPath);
|
|
7626
7627
|
await prompt({
|
|
@@ -7727,7 +7728,36 @@ var runConfig = async () => {
|
|
|
7727
7728
|
await writeIfMissing(prdExamplePath, JSON.stringify(prdExample, null, 2) + `
|
|
7728
7729
|
`);
|
|
7729
7730
|
const hadAdditionalInstructions = existsSync(additionalInstructionsPath);
|
|
7730
|
-
await writeIfMissing(additionalInstructionsPath,
|
|
7731
|
+
await writeIfMissing(additionalInstructionsPath, `<!--
|
|
7732
|
+
Use bullet points for additional instructions, e.g.
|
|
7733
|
+
- You may run \`supabase db reset --db-url "$SUPABASE_DB_URL"\` when needed.
|
|
7734
|
+
- Do not ask for permission before running it.
|
|
7735
|
+
-->
|
|
7736
|
+
`);
|
|
7737
|
+
await writeIfMissing(agentsPath, [
|
|
7738
|
+
"# PRD authoring guidance for Wile",
|
|
7739
|
+
"",
|
|
7740
|
+
"Wile reads `.wile/prd.json` each iteration, picks the highest-priority story",
|
|
7741
|
+
"with `passes: false`, implements exactly one story, marks it complete, logs",
|
|
7742
|
+
"progress, and repeats until all stories pass. The PRD should be written so",
|
|
7743
|
+
"each story is independently actionable and verifiable.",
|
|
7744
|
+
"",
|
|
7745
|
+
"Guidelines:",
|
|
7746
|
+
"- Use clear, testable acceptance criteria (one behavior per bullet).",
|
|
7747
|
+
"- Keep IDs stable and unique (e.g., US-123).",
|
|
7748
|
+
'- Avoid vague terms like "should" or "nice".',
|
|
7749
|
+
"- Keep stories small enough to finish in one iteration.",
|
|
7750
|
+
"- Mark `passes: false` for work not done yet.",
|
|
7751
|
+
"- Place the STOP HERE note only on the last story that requires human approval.",
|
|
7752
|
+
"- Prefer concrete files/commands when verification matters.",
|
|
7753
|
+
"",
|
|
7754
|
+
"Environment notes:",
|
|
7755
|
+
"- Playwright (Chromium) is available in the agent container for UI checks.",
|
|
7756
|
+
"- Project env vars can be passed via `.wile/secrets/.env.project`.",
|
|
7757
|
+
"- The container has outbound internet access by default.",
|
|
7758
|
+
""
|
|
7759
|
+
].join(`
|
|
7760
|
+
`));
|
|
7731
7761
|
console.log(`
|
|
7732
7762
|
Wile config complete.`);
|
|
7733
7763
|
console.log("Add project env vars to .wile/secrets/.env.project when needed.");
|