wile 0.2.0 → 0.3.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 +14 -0
- 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({
|
|
@@ -7724,10 +7725,18 @@ var runConfig = async () => {
|
|
|
7724
7725
|
`);
|
|
7725
7726
|
}
|
|
7726
7727
|
await writeIfMissing(prdExamplePath, JSON.stringify(prdExample, null, 2) + `
|
|
7728
|
+
`);
|
|
7729
|
+
const hadAdditionalInstructions = existsSync(additionalInstructionsPath);
|
|
7730
|
+
await writeIfMissing(additionalInstructionsPath, `# Additional Instructions
|
|
7731
|
+
|
|
7732
|
+
Add project-specific guidance for the agent here.
|
|
7727
7733
|
`);
|
|
7728
7734
|
console.log(`
|
|
7729
7735
|
Wile config complete.`);
|
|
7730
7736
|
console.log("Add project env vars to .wile/secrets/.env.project when needed.");
|
|
7737
|
+
if (!hadAdditionalInstructions) {
|
|
7738
|
+
console.log("Created .wile/additional-instructions.md for extra agent guidance (optional).");
|
|
7739
|
+
}
|
|
7731
7740
|
};
|
|
7732
7741
|
|
|
7733
7742
|
// src/commands/run.ts
|
|
@@ -7894,6 +7903,11 @@ var buildDockerArgs = (options, config, paths, cwd) => {
|
|
|
7894
7903
|
for (const envFile of envFiles) {
|
|
7895
7904
|
dockerArgs.push("--env-file", envFile);
|
|
7896
7905
|
}
|
|
7906
|
+
const additionalInstructionsPath = join3(paths.wileDir, "additional-instructions.md");
|
|
7907
|
+
if (existsSync3(additionalInstructionsPath)) {
|
|
7908
|
+
dockerArgs.push("-e", `WILE_ADDITIONAL_INSTRUCTIONS=${additionalInstructionsPath}`);
|
|
7909
|
+
dockerArgs.push("-v", `${additionalInstructionsPath}:${additionalInstructionsPath}`);
|
|
7910
|
+
}
|
|
7897
7911
|
dockerArgs.push("wile-agent:local");
|
|
7898
7912
|
return dockerArgs;
|
|
7899
7913
|
};
|