devlyn-cli 4.2.2 → 4.2.3

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.
@@ -183,6 +183,12 @@ function retainFile(file, bytes) {
183
183
  // `withBlock` false removes the devlyn defaults the file holds, keeping everything else. `write` false writes nothing
184
184
  // and returns whether the file needs an update, a merge included.
185
185
  function updateInstructions(name, initial = '', withBlock = true, write = true) {
186
+ const projectPackage = path.join(process.cwd(), 'package.json');
187
+ if (fs.existsSync(path.join(process.cwd(), 'bin', 'devlyn.js')) && fs.existsSync(projectPackage)
188
+ && JSON.parse(fs.readFileSync(projectPackage, 'utf8'))?.name === 'devlyn-cli') {
189
+ console.log(` → Skipping ${name}; shipped instruction template in devlyn-cli source checkout`);
190
+ return false;
191
+ }
186
192
  const templatePath = path.join(__dirname, '..', name);
187
193
  const template = fs.readFileSync(templatePath, 'utf8');
188
194
  if (template.includes(BEGIN) || template.includes(END)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devlyn-cli",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "Loop & harness engineering for AI coding agents (Claude Code, Codex, and any AGENTS.md-driven agent) — core engineering principles for CLAUDE.md/AGENTS.md and a loop designer that splits one intent into tasks agents drain hands-free",
5
5
  "homepage": "https://github.com/fysoul17/devlyn-cli#readme",
6
6
  "bin": {