wile 0.2.0 → 0.3.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 +11 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -7620,6 +7620,7 @@ var runConfig = async () => {
7620
7620
  const gitignorePath = join(wileDir, ".gitignore");
7621
7621
  const prdPath = join(wileDir, "prd.json");
7622
7622
  const prdExamplePath = join(wileDir, "prd.json.example");
7623
+ const additionalInstructionsPath = join(wileDir, "additional-instructions.md");
7623
7624
  await mkdir(secretsDir, { recursive: true });
7624
7625
  const existingEnv = await readEnvFile(envPath);
7625
7626
  await prompt({
@@ -7725,9 +7726,14 @@ var runConfig = async () => {
7725
7726
  }
7726
7727
  await writeIfMissing(prdExamplePath, JSON.stringify(prdExample, null, 2) + `
7727
7728
  `);
7729
+ const hadAdditionalInstructions = existsSync(additionalInstructionsPath);
7730
+ await writeIfMissing(additionalInstructionsPath, "");
7728
7731
  console.log(`
7729
7732
  Wile config complete.`);
7730
7733
  console.log("Add project env vars to .wile/secrets/.env.project when needed.");
7734
+ if (!hadAdditionalInstructions) {
7735
+ console.log("Created .wile/additional-instructions.md for extra agent guidance (optional).");
7736
+ }
7731
7737
  };
7732
7738
 
7733
7739
  // src/commands/run.ts
@@ -7894,6 +7900,11 @@ var buildDockerArgs = (options, config, paths, cwd) => {
7894
7900
  for (const envFile of envFiles) {
7895
7901
  dockerArgs.push("--env-file", envFile);
7896
7902
  }
7903
+ const additionalInstructionsPath = join3(paths.wileDir, "additional-instructions.md");
7904
+ if (existsSync3(additionalInstructionsPath)) {
7905
+ dockerArgs.push("-e", `WILE_ADDITIONAL_INSTRUCTIONS=${additionalInstructionsPath}`);
7906
+ dockerArgs.push("-v", `${additionalInstructionsPath}:${additionalInstructionsPath}`);
7907
+ }
7897
7908
  dockerArgs.push("wile-agent:local");
7898
7909
  return dockerArgs;
7899
7910
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wile",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Autonomous AI coding agent that ships features while you sleep",
5
5
  "type": "module",
6
6
  "bin": {