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 +2 -2
- package/bin/imtoagent-real +6 -0
- package/modules/utils/paths.ts +3 -3
- package/package.json +1 -1
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://
|
|
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://
|
|
89
|
+
curl -fsSL https://imtoagent.pages.dev/install.sh | bash
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
This script does everything automatically:
|
package/bin/imtoagent-real
CHANGED
|
@@ -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':
|
package/modules/utils/paths.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function getDataDir(): string {
|
|
|
59
59
|
// 有现成配置,直接用最优先的那个
|
|
60
60
|
const chosen = candidates[0];
|
|
61
61
|
_dataDir = chosen.dir;
|
|
62
|
-
console.
|
|
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.
|
|
123
|
-
console.
|
|
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
|
}
|