@hogsend/cli 0.21.0 → 0.21.1
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/bin.js +11 -1
- package/dist/bin.js.map +1 -1
- package/package.json +4 -4
- package/src/commands/connect.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hogsend/cli",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"tsup": "^8.5.1",
|
|
35
35
|
"tsx": "^4.22.4",
|
|
36
36
|
"vitest": "^4.1.7",
|
|
37
|
-
"@hogsend/studio": "^0.21.
|
|
37
|
+
"@hogsend/studio": "^0.21.1",
|
|
38
38
|
"@repo/typescript-config": "0.0.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@clack/prompts": "^1.5.0",
|
|
45
45
|
"better-auth": "^1.6.11",
|
|
46
46
|
"picocolors": "^1.1.1",
|
|
47
|
-
"@hogsend/db": "^0.21.
|
|
48
|
-
"@hogsend/engine": "^0.21.
|
|
47
|
+
"@hogsend/db": "^0.21.1",
|
|
48
|
+
"@hogsend/engine": "^0.21.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"prebuild": "node scripts/bundle-studio.mjs",
|
package/src/commands/connect.ts
CHANGED
|
@@ -118,6 +118,16 @@ async function run(ctx: CommandContext): Promise<void> {
|
|
|
118
118
|
message:
|
|
119
119
|
"PostHog app/private host URL (e.g. https://posthog.example.com)",
|
|
120
120
|
placeholder: "https://posthog.example.com",
|
|
121
|
+
validate: (value) => {
|
|
122
|
+
try {
|
|
123
|
+
const url = new URL(value ?? "");
|
|
124
|
+
if (url.protocol !== "http:" && url.protocol !== "https:") {
|
|
125
|
+
return "Enter a full URL, e.g. https://posthog.example.com";
|
|
126
|
+
}
|
|
127
|
+
} catch {
|
|
128
|
+
return "Enter a full URL, e.g. https://posthog.example.com";
|
|
129
|
+
}
|
|
130
|
+
},
|
|
121
131
|
}),
|
|
122
132
|
);
|
|
123
133
|
},
|