@apexacc/cli 1.2.8 → 1.3.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.
Files changed (2) hide show
  1. package/apex.cjs +18 -0
  2. package/package.json +1 -1
package/apex.cjs CHANGED
@@ -81,6 +81,24 @@ async function ensureBinary() {
81
81
  }
82
82
  }
83
83
 
84
+ // Windows: download apex-verify
85
+ if (isWin) {
86
+ const verifyPath = join(os.homedir(), '.apex', 'apex-verify.exe')
87
+ const verifyVersionPath = join(os.homedir(), '.apex', '.verify-version')
88
+ let needsUpdate = !existsSync(verifyPath)
89
+ if (!needsUpdate) {
90
+ try {
91
+ const savedVersion = require('fs').readFileSync(verifyVersionPath, 'utf8').trim()
92
+ if (savedVersion !== VERSION) needsUpdate = true
93
+ } catch { needsUpdate = true }
94
+ }
95
+ if (needsUpdate) {
96
+ mkdirSync(join(os.homedir(), '.apex'), { recursive: true })
97
+ await download(`https://github.com/${REPO}/releases/download/v${VERSION}/apex-verify-windows.exe`, verifyPath)
98
+ require('fs').writeFileSync(verifyVersionPath, VERSION)
99
+ }
100
+ }
101
+
84
102
  // Mac: download apex-verify
85
103
  if (process.platform === 'darwin') {
86
104
  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.2.8",
3
+ "version": "1.3.0",
4
4
  "description": "Apex Copilot CLI — AI advisor for Web3 founders",
5
5
  "author": {
6
6
  "name": "Apex Accelerator",