@reepoe/plugin 1.3.29 ā 1.3.30
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/start.js +5 -16
- package/lib/activation-client.js +2 -8
- package/package.json +1 -1
package/bin/start.js
CHANGED
|
@@ -360,23 +360,12 @@ async function main() {
|
|
|
360
360
|
console.log(`š Using port ${port} from command line`);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
//
|
|
364
|
-
|
|
363
|
+
// v1.3.30: Removed cloud environment skip
|
|
364
|
+
// Replit/Codespaces/Gitpod CAN run Linux binaries - let them try!
|
|
365
|
+
// Previous cloud fallback was broken anyway (Render in api_only mode)
|
|
365
366
|
|
|
366
|
-
//
|
|
367
|
-
|
|
368
|
-
await setupProjectIfNeeded(port);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
if (isCloud) {
|
|
372
|
-
// Cloud environment - skip local server
|
|
373
|
-
console.log('\nāļø Cloud environment detected');
|
|
374
|
-
console.log('š” Using production ReePoe API: https://reepoe-api.onrender.com\n');
|
|
375
|
-
console.log('ā
Ready to use!');
|
|
376
|
-
console.log('\nš” Try:');
|
|
377
|
-
console.log(' reepoe query "test query"\n');
|
|
378
|
-
return;
|
|
379
|
-
}
|
|
367
|
+
// Setup project if needed (before starting binary)
|
|
368
|
+
await setupProjectIfNeeded(port);
|
|
380
369
|
|
|
381
370
|
// Check if already running
|
|
382
371
|
const running = await isServerRunning(port);
|
package/lib/activation-client.js
CHANGED
|
@@ -231,20 +231,14 @@ class ActivationClient {
|
|
|
231
231
|
fs.mkdirSync(configDir, { recursive: true, mode: 0o700 });
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
//
|
|
235
|
-
const isCloud = !!(
|
|
236
|
-
process.env.REPL_ID ||
|
|
237
|
-
process.env.CODESPACE_NAME ||
|
|
238
|
-
process.env.GITPOD_WORKSPACE_ID
|
|
239
|
-
);
|
|
240
|
-
|
|
234
|
+
// v1.3.30: Always use localhost - binary runs everywhere now
|
|
241
235
|
const data = {
|
|
242
236
|
email: activationData.user?.email || activationData.email,
|
|
243
237
|
token: activationData.token,
|
|
244
238
|
activated_at: activationData.user?.activated_at || new Date().toISOString(),
|
|
245
239
|
expires_at: activationData.user?.expires_at,
|
|
246
240
|
status: activationData.user?.status || 'active',
|
|
247
|
-
api_base:
|
|
241
|
+
api_base: 'http://localhost:8000'
|
|
248
242
|
};
|
|
249
243
|
|
|
250
244
|
fs.writeFileSync(this.activationFile, JSON.stringify(data, null, 2), { mode: 0o600 });
|