planexe-cli 0.0.3 → 0.0.4

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/index.js CHANGED
@@ -14,7 +14,7 @@ const packageName = 'planexe'
14
14
 
15
15
  function createConfig(packageName) {
16
16
  const homeDir = os.homedir()
17
- const configDir = path.join(homeDir, '.config', 'manicode')
17
+ const configDir = path.join(homeDir, '.config', 'planexe')
18
18
  const binaryName =
19
19
  process.platform === 'win32' ? `${packageName}.exe` : packageName
20
20
 
@@ -34,10 +34,10 @@ const CONFIG = createConfig(packageName)
34
34
 
35
35
  function getPostHogConfig() {
36
36
  const apiKey =
37
- process.env.CODEBUFF_POSTHOG_API_KEY ||
37
+ process.env.PLANEXE_POSTHOG_API_KEY ||
38
38
  process.env.NEXT_PUBLIC_POSTHOG_API_KEY
39
39
  const host =
40
- process.env.CODEBUFF_POSTHOG_HOST ||
40
+ process.env.PLANEXE_POSTHOG_HOST ||
41
41
  process.env.NEXT_PUBLIC_POSTHOG_HOST_URL
42
42
 
43
43
  if (!apiKey || !host) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "planexe-cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "PlanExe CLI — AI planning and coding agent",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "scripts": {
11
11
  "postinstall": "node postinstall.js",
12
- "preuninstall": "node -e \"const fs = require('fs'); const path = require('path'); const os = require('os'); const binaryPath = path.join(os.homedir(), '.config', 'manicode', process.platform === 'win32' ? 'codebuff.exe' : 'codebuff'); try { fs.unlinkSync(binaryPath) } catch (e) { /* ignore if file doesn't exist */ }\""
12
+ "preuninstall": "node -e \"const fs = require('fs'); const path = require('path'); const os = require('os'); const binaryPath = path.join(os.homedir(), '.config', 'planexe', process.platform === 'win32' ? 'planexe.exe' : 'planexe'); try { fs.unlinkSync(binaryPath) } catch (e) { /* ignore if file doesn't exist */ }\""
13
13
  },
14
14
  "files": [
15
15
  "index.js",
package/postinstall.js CHANGED
@@ -8,7 +8,7 @@ const path = require('path');
8
8
  const binaryPath = path.join(
9
9
  os.homedir(),
10
10
  '.config',
11
- 'manicode',
11
+ 'planexe',
12
12
  process.platform === 'win32' ? 'planexe.exe' : 'planexe'
13
13
  );
14
14