wile 0.3.2 → 0.4.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +35 -6
  2. 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: true,
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: true,
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: true,
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: true,
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: true,
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: true,
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({
@@ -7733,6 +7734,30 @@ Use bullet points for additional instructions, e.g.
7733
7734
  - Do not ask for permission before running it.
7734
7735
  -->
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
+ `));
7736
7761
  console.log(`
7737
7762
  Wile config complete.`);
7738
7763
  console.log("Add project env vars to .wile/secrets/.env.project when needed.");
@@ -7853,6 +7878,10 @@ var resolveAgentDir = () => {
7853
7878
  if (override && existsSync3(override)) {
7854
7879
  return override;
7855
7880
  }
7881
+ const cwdAgentDir = join3(process.cwd(), "packages", "agent");
7882
+ if (existsSync3(cwdAgentDir)) {
7883
+ return cwdAgentDir;
7884
+ }
7856
7885
  const here = dirname(fileURLToPath(import.meta.url));
7857
7886
  const cliRoot = resolve(here, "..", "..", "..");
7858
7887
  const agentDir = join3(cliRoot, "..", "agent");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wile",
3
- "version": "0.3.2",
3
+ "version": "0.4.1",
4
4
  "description": "Autonomous AI coding agent that ships features while you sleep",
5
5
  "type": "module",
6
6
  "bin": {