@agentvalet/register 0.1.5 → 0.1.6
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/index.js +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -280,8 +280,12 @@ async function runRefresh(options) {
|
|
|
280
280
|
const stat = statSync(outputPath);
|
|
281
281
|
const fileIsFresh = Date.now() - stat.mtimeMs < 36e5;
|
|
282
282
|
const claudeMdPath = resolve2("CLAUDE.md");
|
|
283
|
-
const
|
|
284
|
-
|
|
283
|
+
const claudeMd = existsSync(claudeMdPath) ? readFileSync(claudeMdPath, "utf-8") : "";
|
|
284
|
+
const blockStart = claudeMd.indexOf(CLAUDE_START);
|
|
285
|
+
const blockEnd = claudeMd.indexOf(CLAUDE_END);
|
|
286
|
+
const blockContent = blockStart !== -1 && blockEnd !== -1 ? claudeMd.slice(blockStart, blockEnd) : "";
|
|
287
|
+
const blockHasPlatforms = blockContent.includes("### ");
|
|
288
|
+
if (fileIsFresh && blockHasPlatforms) return;
|
|
285
289
|
} catch {
|
|
286
290
|
}
|
|
287
291
|
}
|