@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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  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 claudeMdHasBlock = existsSync(claudeMdPath) && readFileSync(claudeMdPath, "utf-8").includes(CLAUDE_START);
284
- if (fileIsFresh && claudeMdHasBlock) return;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvalet/register",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Self-register AI agents with AgentValet",
5
5
  "type": "module",
6
6
  "bin": {