thinkncollab-shell 0.0.7 → 0.0.8

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/thinknsh.js CHANGED
@@ -46,9 +46,9 @@ if (args.includes('--version') || args.includes('-v')) {
46
46
  }
47
47
 
48
48
  const shell = new ThinkNCollabShell({
49
- serverUrl: process.env.THINKNCOLLAB_SERVER || 'http://localhost:3001', // ← /thinknsh hata
50
- apiUrl: process.env.THINKNCOLLAB_API_URL || 'http://localhost:3001',
51
- wsUrl: process.env.THINKNCOLLAB_WS_URL || 'http://localhost:3001',
49
+ serverUrl: process.env.THINKNCOLLAB_SERVER || 'https://thinkncollab.com',
50
+ apiUrl: process.env.THINKNCOLLAB_API_URL || 'https://thinkncollab.com',
51
+ wsUrl: process.env.THINKNCOLLAB_WS_URL || 'https://thinkncollab.com',
52
52
  autoConnect: process.env.THINKNCOLLAB_AUTO_CONNECT === 'true'
53
53
  });
54
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "thinkncollab-shell",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "ThinkNCollab Custom Shell with WebSocket collaboration",
5
5
  "main": "src/core/shell.js",
6
6
  "bin": {
@@ -11,8 +11,8 @@ const os = require('os');
11
11
  class ThinkNCollabAPI {
12
12
 
13
13
  constructor(options = {}) {
14
- this.apiUrl = (options.apiUrl || 'http://localhost:3001').replace(/\/$/, '');
15
- this.wsUrl = (options.wsUrl || 'http://localhost:3001').replace(/\/$/, '');
14
+ this.apiUrl = (options.apiUrl || 'https://thinkncollab.com').replace(/\/$/, '');
15
+ this.wsUrl = (options.wsUrl || 'https://thinkncollab.com').replace(/\/$/, '');
16
16
  this.session = null;
17
17
  this.sessionPath = path.join(os.homedir(), '.thinkncollab', 'session.json');
18
18
  this._loadSession();
@@ -40,7 +40,7 @@ function findConfigFile(startDir = process.cwd()) {
40
40
  * Read and lightly validate a .tncproject file.
41
41
  * Returns { filePath, roomId, fileBase64 } — no decryption.
42
42
  *
43
- * @throws if file is missing, wrong format, or roomId looks wrong
43
+ * @throws if file is missing, wrong format, or roomId looks wrong http://localhost:3001
44
44
  */
45
45
  function loadProjectConfig(startDir = process.cwd()) {
46
46
  const filePath = findConfigFile(startDir);
package/src/core/shell.js CHANGED
@@ -35,7 +35,7 @@ class ThinkNCollabShell extends EventEmitter {
35
35
  configDir: path.join(os.homedir(), '.thinkncollab'),
36
36
  maxHistory: 1000,
37
37
  websocket: {
38
- serverUrl: options.serverUrl || 'http://localhost:3001',
38
+ serverUrl: options.serverUrl || 'https://thinkncollab.com',
39
39
  autoConnect: options.autoConnect || false
40
40
  },
41
41
  ...options
@@ -54,8 +54,8 @@ class ThinkNCollabShell extends EventEmitter {
54
54
  this.tcpServer = null;
55
55
 
56
56
  this.api = new ThinkNCollabAPI({
57
- apiUrl: options.apiUrl || 'http://localhost:3001',
58
- wsUrl: options.wsUrl || 'http://localhost:3001'
57
+ apiUrl: options.apiUrl || 'https://thinkncollab.com',
58
+ wsUrl: options.wsUrl || 'https://thinkncollab.com'
59
59
  });
60
60
 
61
61
  this.commands = new Map();
@@ -523,7 +523,7 @@ async execute(input) {
523
523
  stdio: 'inherit'
524
524
  });
525
525
  child.on('close', (code) => {
526
- // Update currentDir in case command changed it (cd won't but others might)
526
+ // Update currentDir in case command changed it (cd won't but others might) https://thinkncollab.com
527
527
  try { this.currentDir = process.cwd(); } catch {}
528
528
  process.stdout.write('\r\n');
529
529
  resolve();
@@ -539,7 +539,7 @@ async execute(input) {
539
539
  try { const figlet = require('figlet'); console.log(chalk.cyan(figlet.textSync('ThinkNCollab', { font: 'Standard' }))); } catch {}
540
540
  console.log(chalk.cyan(`
541
541
  ╔══════════════════════════════════════════════════════╗
542
- ║ ThinkNCollab Shell v0.0.6 ║
542
+ ║ ThinkNCollab Shell v0.0.8 ║
543
543
  ║ Type 'help' for commands ║
544
544
  ╚══════════════════════════════════════════════════════╝`));
545
545
  }
@@ -10,7 +10,7 @@ class WebSocketManager extends EventEmitter {
10
10
  constructor(config = {}) {
11
11
  super();
12
12
  this.config = {
13
- serverUrl: config.serverUrl || 'http://localhost:3001',
13
+ serverUrl: config.serverUrl || 'https://thinkncollab.com',
14
14
  reconnectAttempts: config.reconnectAttempts || 5,
15
15
  reconnectDelay: config.reconnectDelay || 1000,
16
16
  ...config