imtoagent 0.3.8 → 0.3.10

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/README.md CHANGED
@@ -9,7 +9,7 @@ One gateway, multiple IMs, multiple agents, unified port proxy.
9
9
  ### Step 1: Install (One Command)
10
10
 
11
11
  ```bash
12
- curl -fsSL https://raw.githubusercontent.com/imtoagent/imtoagent/main/install.sh | bash
12
+ curl -fsSL https://imtoagent.pages.dev/install.sh | bash
13
13
  ```
14
14
 
15
15
  This script detects your environment, installs bun if needed, installs imtoagent, and guides you through setup.
@@ -86,7 +86,7 @@ IM Platform (Feishu/Telegram/WeChat/WeCom)
86
86
  ### Method 1: One-Click Install (Recommended)
87
87
 
88
88
  ```bash
89
- curl -fsSL https://raw.githubusercontent.com/imtoagent/imtoagent/main/install.sh | bash
89
+ curl -fsSL https://imtoagent.pages.dev/install.sh | bash
90
90
  ```
91
91
 
92
92
  This script does everything automatically:
@@ -64,6 +64,12 @@ switch (command) {
64
64
  }
65
65
  break;
66
66
  }
67
+ case 'version':
68
+ case '--version':
69
+ case '-v':
70
+ const pkg = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
71
+ console.log(pkg.version);
72
+ break;
67
73
  case 'help':
68
74
  case '--help':
69
75
  case '-h':
@@ -59,7 +59,7 @@ export function getDataDir(): string {
59
59
  // 有现成配置,直接用最优先的那个
60
60
  const chosen = candidates[0];
61
61
  _dataDir = chosen.dir;
62
- console.log(`[Paths] Data directory: ${_dataDir} (${chosen.label})`);
62
+ console.error(`[Paths] Data directory: ${_dataDir} (${chosen.label})`);
63
63
  return _dataDir;
64
64
  }
65
65
 
@@ -119,8 +119,8 @@ function initDataDir(dotDir: string, envHome: string): string {
119
119
  }
120
120
  }
121
121
 
122
- console.log(`[Paths] ✨ First-time data directory initialized: ${target} (source: ${sourceLabel || 'default template'})`);
123
- console.log(`[Paths] Please edit ${path.join(target, 'config.json')} to configure your credentials`);
122
+ console.error(`[Paths] ✨ First-time data directory initialized: ${target} (source: ${sourceLabel || 'default template'})`);
123
+ console.error(`[Paths] Please edit ${path.join(target, 'config.json')} to configure your credentials`);
124
124
 
125
125
  return target;
126
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imtoagent",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
4
4
  "description": "IM ↔ Agent 统一网关 — 飞书/Telegram/微信/企业微信对接 Claude Code/Codex/OpenCode",
5
5
  "type": "module",
6
6
  "bin": {