makecoder 4.0.67 → 4.0.69

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.
@@ -23,13 +23,13 @@ var PP4=Object.create;var{getPrototypeOf:WP4,defineProperty:_2H,getOwnPropertyNa
23
23
  Object.assign(A, {
24
24
  post(...args) {
25
25
  const [url, payload, ...remainArgs] = args;
26
- const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.67' + '&session_id=' + S_() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
26
+ const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.69' + '&session_id=' + S_() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
27
27
  if (process.env.CODER_APIKEY) {
28
28
  const headerValues = payload.headers.values;
29
29
  headerValues.set('AUTHORIZATION', `Bearer ${process.env.CODER_APIKEY}`)
30
30
  }
31
31
 
32
- payload.headers.values.set('X-Coder-Version', '4.0.67');
32
+ payload.headers.values.set('X-Coder-Version', '4.0.69');
33
33
  payload.headers.values.set('X-Coder-Platform', process.platform);
34
34
  payload.headers.values.set('X-Coder-Arch', process.arch);
35
35
 
@@ -23,13 +23,13 @@ var WPK=Object.create;var{getPrototypeOf:GPK,defineProperty:_2H,getOwnPropertyNa
23
23
  Object.assign(A, {
24
24
  post(...args) {
25
25
  const [url, payload, ...remainArgs] = args;
26
- const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.67' + '&session_id=' + S6() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
26
+ const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.69' + '&session_id=' + S6() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
27
27
  if (process.env.CODER_APIKEY) {
28
28
  const headerValues = payload.headers.values;
29
29
  headerValues.set('AUTHORIZATION', `Bearer ${process.env.CODER_APIKEY}`)
30
30
  }
31
31
 
32
- payload.headers.values.set('X-Coder-Version', '4.0.67');
32
+ payload.headers.values.set('X-Coder-Version', '4.0.69');
33
33
  payload.headers.values.set('X-Coder-Platform', process.platform);
34
34
  payload.headers.values.set('X-Coder-Arch', process.arch);
35
35
 
@@ -23,13 +23,13 @@ var MP9=Object.create;var{getPrototypeOf:jP9,defineProperty:qWH,getOwnPropertyNa
23
23
  Object.assign(A, {
24
24
  post(...args) {
25
25
  const [url, payload, ...remainArgs] = args;
26
- const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.67' + '&session_id=' + R$() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
26
+ const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.69' + '&session_id=' + R$() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
27
27
  if (process.env.CODER_APIKEY) {
28
28
  const headerValues = payload.headers.values;
29
29
  headerValues.set('AUTHORIZATION', `Bearer ${process.env.CODER_APIKEY}`)
30
30
  }
31
31
 
32
- payload.headers.values.set('X-Coder-Version', '4.0.67');
32
+ payload.headers.values.set('X-Coder-Version', '4.0.69');
33
33
  payload.headers.values.set('X-Coder-Platform', process.platform);
34
34
  payload.headers.values.set('X-Coder-Arch', process.arch);
35
35
 
@@ -23,13 +23,13 @@ var PJ_=Object.create;var{getPrototypeOf:WJ_,defineProperty:K2H,getOwnPropertyNa
23
23
  Object.assign(A, {
24
24
  post(...args) {
25
25
  const [url, payload, ...remainArgs] = args;
26
- const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.67' + '&session_id=' + R8() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
26
+ const patchedUrl = url + (url.includes('?') ? '&' : '?') + 'app=codev-cli' + '&version=4.0.69' + '&session_id=' + R8() + (process.env.SPACE_ID ? '&space_id=' + process.env.SPACE_ID : '');
27
27
  if (process.env.CODER_APIKEY) {
28
28
  const headerValues = payload.headers.values;
29
29
  headerValues.set('AUTHORIZATION', `Bearer ${process.env.CODER_APIKEY}`)
30
30
  }
31
31
 
32
- payload.headers.values.set('X-Coder-Version', '4.0.67');
32
+ payload.headers.values.set('X-Coder-Version', '4.0.69');
33
33
  payload.headers.values.set('X-Coder-Platform', process.platform);
34
34
  payload.headers.values.set('X-Coder-Arch', process.arch);
35
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makecoder",
3
- "version": "4.0.67",
3
+ "version": "4.0.69",
4
4
  "description": "MakeCoder: Unified AI agent CLI tool integrating Claude Code, Codex and Gemini CLI",
5
5
  "main": "./dist/coder.js",
6
6
  "bin": {
@@ -47,8 +47,8 @@
47
47
  "scripts/postinstall.js"
48
48
  ],
49
49
  "optionalDependencies": {
50
- "makecoder-codex-darwin-arm64": "4.0.67",
51
- "makecoder-codex-linux-x64": "4.0.67",
52
- "makecoder-codex-win32-x64": "4.0.67"
50
+ "makecoder-codex-darwin-arm64": "4.0.69",
51
+ "makecoder-codex-linux-x64": "4.0.69",
52
+ "makecoder-codex-win32-x64": "4.0.69"
53
53
  }
54
54
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
- const os = require('os');
6
5
  const { execFileSync } = require('child_process');
7
6
 
8
7
  const PLATFORM_PACKAGES = {
@@ -76,68 +75,11 @@ function installBun() {
76
75
  }
77
76
 
78
77
 
79
- function copyRecursive(src, dest) {
80
- if (!fs.existsSync(src)) {
81
- return;
82
- }
83
-
84
- const stats = fs.statSync(src);
85
-
86
- if (stats.isDirectory()) {
87
- if (!fs.existsSync(dest)) {
88
- fs.mkdirSync(dest, { recursive: true });
89
- }
90
-
91
- const items = fs.readdirSync(src);
92
- items.forEach(item => {
93
- const srcPath = path.join(src, item);
94
- const destPath = path.join(dest, item);
95
- copyRecursive(srcPath, destPath);
96
- });
97
- } else {
98
- const destDir = path.dirname(dest);
99
- if (!fs.existsSync(destDir)) {
100
- fs.mkdirSync(destDir, { recursive: true });
101
- }
102
-
103
- // Force overwrite existing files
104
- try {
105
- fs.copyFileSync(src, dest);
106
- } catch (error) {
107
- // If copy fails, try to remove the destination first and retry
108
- if (fs.existsSync(dest)) {
109
- fs.unlinkSync(dest);
110
- fs.copyFileSync(src, dest);
111
- } else {
112
- throw error;
113
- }
114
- }
115
- }
116
- }
117
-
118
78
  function main() {
119
79
  try {
120
- // Ensure bun is available
121
80
  if (!isBunAvailable()) {
122
81
  installBun();
123
82
  }
124
-
125
- const homeDir = os.homedir();
126
- const coderDestDir = path.join(homeDir, '.coder');
127
- const coderSrcDir = path.join(__dirname, '..', 'packages');
128
-
129
- if (!fs.existsSync(coderSrcDir)) {
130
- console.log('Source directory not found, skipping postinstall setup');
131
- return;
132
- }
133
-
134
- if (!fs.existsSync(coderDestDir)) {
135
- fs.mkdirSync(coderDestDir, { recursive: true });
136
- console.log('Created .coder directory in home folder');
137
- }
138
-
139
- copyRecursive(coderSrcDir, coderDestDir);
140
- console.log('Successfully copied configuration files to ~/.coder (existing files overwritten)');
141
83
  } catch (error) {
142
84
  console.error('Error during postinstall setup:', error.message);
143
85
  process.exit(1);