@cloudhal/cli 0.3.6 → 0.3.7

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.
@@ -14,18 +14,18 @@
14
14
  "astro": "astro"
15
15
  },
16
16
  "dependencies": {
17
- "@cloudhal/astro-renderer": "0.3.6",
18
- "@cloudhal/core-ts": "0.3.6",
17
+ "@cloudhal/astro-renderer": "0.3.7",
18
+ "@cloudhal/core-ts": "0.3.7",
19
19
  "@tailwindcss/vite": "^4.3.3",
20
20
  "astro": "7.3.6",
21
21
  "better-sqlite3": "13.0.3",
22
22
  "tailwindcss": "^4.3.3",
23
23
  "@astrojs/cloudflare": "14.3.4",
24
- "@cloudhal/cli": "0.3.6"
24
+ "@cloudhal/cli": "0.3.7"
25
25
  },
26
26
  "devDependencies": {
27
27
  "wrangler": "^4.148.0",
28
- "@cloudhal/cloudflare": "0.3.6"
28
+ "@cloudhal/cloudflare": "0.3.7"
29
29
  },
30
30
  "trustedDependencies": [
31
31
  "better-sqlite3",
@@ -136,8 +136,13 @@ export async function must(
136
136
 
137
137
  /** URLs of a deployed Worker from wrangler's structured output. */
138
138
  export function deployedUrls(records ) {
139
- return records
140
- .filter((r) => r.type === "deploy")
141
- .flatMap((r) => (Array.isArray(r.targets) ? (r.targets ) : []))
142
- .map((t) => (t.startsWith("http") ? t : `https://${t}`));
139
+ return (
140
+ records
141
+ .filter((r) => r.type === "deploy")
142
+ .flatMap((r) => (Array.isArray(r.targets) ? (r.targets ) : []))
143
+ // Wrangler lists custom domains as "cloudhal.com (custom domain)": keep the hostname only.
144
+ .map((t) => t.trim().split(/\s+/)[0] ?? "")
145
+ .filter(Boolean)
146
+ .map((t) => (t.startsWith("http") ? t : `https://${t}`))
147
+ );
143
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudhal/cli",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "cloudhal — create, run and build Cloudhal sites locally",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://cloudhal.dev",
@@ -27,16 +27,16 @@
27
27
  "README.md"
28
28
  ],
29
29
  "dependencies": {
30
- "@cloudhal/agent-runtime": "0.3.6",
31
- "@cloudhal/analytics": "0.3.6",
32
- "@cloudhal/api": "0.3.6",
33
- "@cloudhal/cloudflare": "0.3.6",
34
- "@cloudhal/comments": "0.3.6",
35
- "@cloudhal/core-contracts": "0.3.6",
36
- "@cloudhal/core-ts": "0.3.6",
37
- "@cloudhal/mcp-server": "0.3.6",
38
- "@cloudhal/schedules": "0.3.6",
39
- "@cloudhal/storage": "0.3.6",
30
+ "@cloudhal/agent-runtime": "0.3.7",
31
+ "@cloudhal/analytics": "0.3.7",
32
+ "@cloudhal/api": "0.3.7",
33
+ "@cloudhal/cloudflare": "0.3.7",
34
+ "@cloudhal/comments": "0.3.7",
35
+ "@cloudhal/core-contracts": "0.3.7",
36
+ "@cloudhal/core-ts": "0.3.7",
37
+ "@cloudhal/mcp-server": "0.3.7",
38
+ "@cloudhal/schedules": "0.3.7",
39
+ "@cloudhal/storage": "0.3.7",
40
40
  "@hono/node-server": "^2.1.4",
41
41
  "better-sqlite3": "13.0.3"
42
42
  },