telbase 0.13.0-beta.3 → 0.13.0-beta.4
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/install.js +28 -0
- package/package.json +6 -6
package/install.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const os = require("os");
|
|
6
|
+
|
|
3
7
|
// postinstall: verify binary exists, warn (don't fail) if missing
|
|
4
8
|
try {
|
|
5
9
|
const { getBinaryPath } = require("./lib/main");
|
|
@@ -10,3 +14,27 @@ try {
|
|
|
10
14
|
" Install manually: curl -fsSL https://telbase.ai/install | sh\n"
|
|
11
15
|
);
|
|
12
16
|
}
|
|
17
|
+
|
|
18
|
+
// Claude Code detection: nudge user to register MCP if Claude Code is installed
|
|
19
|
+
try {
|
|
20
|
+
const claudeDir = path.join(os.homedir(), ".claude");
|
|
21
|
+
if (fs.existsSync(claudeDir)) {
|
|
22
|
+
const mcpPath = path.join(claudeDir, "mcp.json");
|
|
23
|
+
let needsRegister = true;
|
|
24
|
+
if (fs.existsSync(mcpPath)) {
|
|
25
|
+
try {
|
|
26
|
+
const config = JSON.parse(fs.readFileSync(mcpPath, "utf8"));
|
|
27
|
+
if (config.mcpServers && config.mcpServers.telbase) {
|
|
28
|
+
needsRegister = false;
|
|
29
|
+
}
|
|
30
|
+
} catch (_) {}
|
|
31
|
+
}
|
|
32
|
+
if (needsRegister) {
|
|
33
|
+
console.log(
|
|
34
|
+
"\n Claude Code detected! Run 'telbase mcp register' to enable Telbase tools.\n"
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
} catch (_) {
|
|
39
|
+
// Never fail postinstall for hint logic
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telbase",
|
|
3
|
-
"version": "0.13.0-beta.
|
|
3
|
+
"version": "0.13.0-beta.4",
|
|
4
4
|
"description": "Deploy any web project with one command. AI-native deployment platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"install.js"
|
|
19
19
|
],
|
|
20
20
|
"optionalDependencies": {
|
|
21
|
-
"@telbase/cli-darwin-arm64": "0.13.0-beta.
|
|
22
|
-
"@telbase/cli-darwin-x64": "0.13.0-beta.
|
|
23
|
-
"@telbase/cli-linux-arm64": "0.13.0-beta.
|
|
24
|
-
"@telbase/cli-linux-x64": "0.13.0-beta.
|
|
25
|
-
"@telbase/cli-win32-x64": "0.13.0-beta.
|
|
21
|
+
"@telbase/cli-darwin-arm64": "0.13.0-beta.4",
|
|
22
|
+
"@telbase/cli-darwin-x64": "0.13.0-beta.4",
|
|
23
|
+
"@telbase/cli-linux-arm64": "0.13.0-beta.4",
|
|
24
|
+
"@telbase/cli-linux-x64": "0.13.0-beta.4",
|
|
25
|
+
"@telbase/cli-win32-x64": "0.13.0-beta.4"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|