@apexacc/cli 1.3.7 → 1.4.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/apex.cjs +0 -12
- package/bin/apex +0 -5
- package/install.cjs +0 -13
- package/package.json +2 -2
package/apex.cjs
CHANGED
|
@@ -5,18 +5,6 @@ const { existsSync, mkdirSync, createWriteStream } = require('fs')
|
|
|
5
5
|
const https = require('https')
|
|
6
6
|
const os = require('os')
|
|
7
7
|
|
|
8
|
-
function isAIAgent() {
|
|
9
|
-
const aiEnv = ['OPENAI_API_KEY','ANTHROPIC_API_KEY','CLAUDE_CODE','CURSOR','WINDSURF','VSCODE_INJECTION'];
|
|
10
|
-
if (aiEnv.some(key => process.env[key])) return true;
|
|
11
|
-
const aiArgs = ['--mcp','--stdio','--json'];
|
|
12
|
-
if (process.argv.some(arg => aiArgs.includes(arg))) return true;
|
|
13
|
-
if (!process.stdin.isTTY || !process.stdout.isTTY) return true;
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
if (isAIAgent()) {
|
|
17
|
-
console.log('This package is for interactive terminal use only.');
|
|
18
|
-
process.exit(0);
|
|
19
|
-
}
|
|
20
8
|
|
|
21
9
|
if (process.platform === 'linux') {
|
|
22
10
|
console.error('Apex Copilot is not supported on Linux. Please use macOS or Windows.');
|
package/bin/apex
CHANGED
|
@@ -7,11 +7,6 @@ const os = require('os')
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
// Platform check - only Mac and Windows supported
|
|
11
|
-
if (process.platform === 'linux') {
|
|
12
|
-
console.error('Apex Copilot is not supported on Linux. Please use macOS or Windows.')
|
|
13
|
-
process.exit(1)
|
|
14
|
-
}
|
|
15
10
|
|
|
16
11
|
const REPO = 'Apex-Accelerator/apexcli'
|
|
17
12
|
const VERSION = require('../package.json').version
|
package/install.cjs
CHANGED
|
@@ -5,19 +5,6 @@ const { join } = require('path')
|
|
|
5
5
|
const { homedir } = require('os')
|
|
6
6
|
const https = require('https')
|
|
7
7
|
|
|
8
|
-
function isAIAgent() {
|
|
9
|
-
const aiEnv = ['OPENAI_API_KEY','ANTHROPIC_API_KEY','CLAUDE_CODE','CURSOR','WINDSURF','VSCODE_INJECTION'];
|
|
10
|
-
if (aiEnv.some(key => process.env[key])) return true;
|
|
11
|
-
const aiArgs = ['--mcp','--stdio','--json'];
|
|
12
|
-
if (process.argv.some(arg => aiArgs.includes(arg))) return true;
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
if (isAIAgent()) {
|
|
16
|
-
console.log('This package is for interactive terminal use only.');
|
|
17
|
-
console.log('Please run "npx @apexacc/cli" in your terminal.');
|
|
18
|
-
|
|
19
|
-
process.exit(0);
|
|
20
|
-
}
|
|
21
8
|
if (process.env.CI || process.env.SKIP_APEX_INSTALL) {
|
|
22
9
|
console.log('Skipping install in CI.')
|
|
23
10
|
process.exit(0)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexacc/cli",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Apex Copilot CLI —
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "Apex Copilot CLI — Due diligence toolkit for founders",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Apex Accelerator",
|
|
7
7
|
"email": "contact@apexaccs.org",
|