@tina_summer/codepocket 2.0.0 → 2.0.1
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/bin/codepocket.js +3 -3
- package/bin/run.js +1 -1
- package/package.json +1 -1
package/bin/codepocket.js
CHANGED
|
@@ -73,7 +73,7 @@ if (!CONNECT_ARGS.includes(args[0])) {
|
|
|
73
73
|
stdio: 'inherit',
|
|
74
74
|
env: {
|
|
75
75
|
...process.env,
|
|
76
|
-
|
|
76
|
+
CODEPOCKET_HOME: path.join(os.homedir(), '.codepocket'),
|
|
77
77
|
},
|
|
78
78
|
})
|
|
79
79
|
child.on('exit', (code) => process.exit(code || 0))
|
|
@@ -137,7 +137,7 @@ function startHub() {
|
|
|
137
137
|
detached: false,
|
|
138
138
|
env: {
|
|
139
139
|
...process.env,
|
|
140
|
-
|
|
140
|
+
CODEPOCKET_HOME: path.join(os.homedir(), '.codepocket'),
|
|
141
141
|
},
|
|
142
142
|
})
|
|
143
143
|
|
|
@@ -191,7 +191,7 @@ function findHubBin() {
|
|
|
191
191
|
// ── Step 2: Authenticate ──
|
|
192
192
|
|
|
193
193
|
async function findHubToken() {
|
|
194
|
-
const hubHome = process.env.
|
|
194
|
+
const hubHome = process.env.CODEPOCKET_HOME || path.join(os.homedir(), '.codepocket')
|
|
195
195
|
const settingsPath = path.join(hubHome, 'settings.json')
|
|
196
196
|
try {
|
|
197
197
|
const settings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8'))
|
package/bin/run.js
CHANGED
|
@@ -66,7 +66,7 @@ let sseResponse = null
|
|
|
66
66
|
// ── Find CLI token ──
|
|
67
67
|
|
|
68
68
|
async function findHubToken() {
|
|
69
|
-
const hubHome = process.env.
|
|
69
|
+
const hubHome = process.env.CODEPOCKET_HOME || path.join(os.homedir(), '.codepocket')
|
|
70
70
|
const settingsPath = path.join(hubHome, 'settings.json')
|
|
71
71
|
try {
|
|
72
72
|
const settings = JSON.parse(fs.readFileSync(settingsPath, 'utf-8'))
|