chain-insights 0.50.0 → 0.51.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/bin/install.cjs CHANGED
@@ -50,6 +50,7 @@ const dataDir = path.join(homeDir, '.chain-insights')
50
50
  const configPath = path.join(dataDir, 'config.json')
51
51
  const srcSkillsDir = path.join(__dirname, '..', 'skills')
52
52
  const PUBLIC_SKILL_NAMES = Object.freeze(['chain-insights-cypher'])
53
+ const SKILL_VERSION_FILE = '.chain-insights-version'
53
54
  const RETIRED_SKILL_NAMES = Object.freeze([
54
55
  'chain-insights-address-risk',
55
56
  'chain-insights-bittensor-cypher',
@@ -117,6 +118,8 @@ function copyCommandsAsClaudeSkills(srcDir, targetDir) {
117
118
  }
118
119
  fs.rmSync(skillDest, { recursive: true, force: true })
119
120
  copyTree(skillSrc, skillDest)
121
+ // The proxy refreshes a copy whose stamp is older than itself (src/skill-refresh.ts).
122
+ fs.writeFileSync(path.join(skillDest, SKILL_VERSION_FILE), `${packageVersion()}\n`, 'utf8')
120
123
  }
121
124
  }
122
125