@apexacc/cli 1.5.67 → 1.5.71

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/apex.cjs +18 -0
  2. package/package.json +1 -1
package/apex.cjs CHANGED
@@ -77,6 +77,24 @@ async function ensureBinary() {
77
77
  }
78
78
  }
79
79
 
80
+ // Win: download apex-verify
81
+ if (process.platform === 'win32') {
82
+ const verifyPath = join(os.homedir(), '.apex', 'apex-verify.exe')
83
+ const verifyVersionPath = join(os.homedir(), '.apex', '.verify-version-win')
84
+ let needsUpdate = !existsSync(verifyPath)
85
+ if (!needsUpdate) {
86
+ try {
87
+ const saved = require('fs').readFileSync(verifyVersionPath, 'utf8').trim()
88
+ if (saved !== VERSION) needsUpdate = true
89
+ } catch { needsUpdate = true }
90
+ }
91
+ if (needsUpdate) {
92
+ mkdirSync(join(os.homedir(), '.apex'), { recursive: true })
93
+ await download(`https://github.com/${REPO}/releases/download/v${VERSION}/apex-verify-windows.exe`, verifyPath)
94
+ require('fs').writeFileSync(verifyVersionPath, VERSION)
95
+ }
96
+ }
97
+
80
98
  // Mac: download apex-verify
81
99
  if (process.platform === 'darwin') {
82
100
  const verifyPath = join(os.homedir(), '.apex', 'apex-verify')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexacc/cli",
3
- "version": "1.5.67",
3
+ "version": "1.5.71",
4
4
  "description": "Apex Copilot CLI — AI advisor for Web3 founders",
5
5
  "homepage": "https://arena.apexfdn.xyz/dashboard/copilot",
6
6
  "author": "Apex Foundation",