@wu529778790/open-im 1.11.2-beta.33 → 1.11.2-beta.35
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/dist/cli.js +9 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -189,7 +189,15 @@ const commands = {
|
|
|
189
189
|
dev: cmdDev,
|
|
190
190
|
dashboard: cmdDashboard,
|
|
191
191
|
};
|
|
192
|
-
if (cmd === "--
|
|
192
|
+
if (cmd === "--version" || cmd === "-v") {
|
|
193
|
+
const { readFileSync } = await import("node:fs");
|
|
194
|
+
const { join } = await import("node:path");
|
|
195
|
+
const { fileURLToPath } = await import("node:url");
|
|
196
|
+
const __dirname = join(fileURLToPath(import.meta.url), "..");
|
|
197
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
|
|
198
|
+
console.log(pkg.version);
|
|
199
|
+
}
|
|
200
|
+
else if (cmd === "--help" || cmd === "-h") {
|
|
193
201
|
showHelp(0);
|
|
194
202
|
}
|
|
195
203
|
else if (cmd === undefined) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wu529778790/open-im",
|
|
3
|
-
"version": "1.11.2-beta.
|
|
3
|
+
"version": "1.11.2-beta.35",
|
|
4
4
|
"description": "Your AI coding assistant, in every chat app. Multi-platform IM bridge for Claude Code, Codex, and CodeBuddy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|