create-windy 0.6.2 → 0.6.3
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
CHANGED
|
@@ -2832,6 +2832,14 @@ var openSearchComposeService = ` opensearch:
|
|
|
2832
2832
|
|
|
2833
2833
|
`;
|
|
2834
2834
|
|
|
2835
|
+
// src/runtime-profile-compose-build.ts
|
|
2836
|
+
var starterServerBuild = ` build:
|
|
2837
|
+
context: .
|
|
2838
|
+
dockerfile: apps/server/Dockerfile
|
|
2839
|
+
args:
|
|
2840
|
+
WINDY_DEBIAN_MIRROR: \${WINDY_DEBIAN_MIRROR:-http://mirrors.aliyun.com/debian}
|
|
2841
|
+
WINDY_DEBIAN_SECURITY_MIRROR: \${WINDY_DEBIAN_SECURITY_MIRROR:-http://mirrors.aliyun.com/debian-security}`;
|
|
2842
|
+
|
|
2835
2843
|
// src/runtime-profile-files.ts
|
|
2836
2844
|
var starterComposeBase = `services:
|
|
2837
2845
|
postgres:
|
|
@@ -2851,9 +2859,7 @@ var starterComposeBase = `services:
|
|
|
2851
2859
|
retries: 5
|
|
2852
2860
|
|
|
2853
2861
|
migrate:
|
|
2854
|
-
|
|
2855
|
-
context: .
|
|
2856
|
-
dockerfile: apps/server/Dockerfile
|
|
2862
|
+
${starterServerBuild}
|
|
2857
2863
|
command: ["bun", "run", "db:migrate"]
|
|
2858
2864
|
environment:
|
|
2859
2865
|
DATABASE_URL: postgresql://windy:\${POSTGRES_PASSWORD}@postgres:5432/windy
|
|
@@ -2864,9 +2870,7 @@ var starterComposeBase = `services:
|
|
|
2864
2870
|
condition: service_healthy
|
|
2865
2871
|
|
|
2866
2872
|
server:
|
|
2867
|
-
|
|
2868
|
-
context: .
|
|
2869
|
-
dockerfile: apps/server/Dockerfile
|
|
2873
|
+
${starterServerBuild}
|
|
2870
2874
|
command: ["bun", "run", "--cwd", "apps/server", "dev"]
|
|
2871
2875
|
environment:
|
|
2872
2876
|
NODE_ENV: development
|
|
@@ -2942,9 +2946,7 @@ __OPTIONAL_VOLUMES__
|
|
|
2942
2946
|
`;
|
|
2943
2947
|
var agentComposeService = ` tool-sandbox-init:
|
|
2944
2948
|
profiles: ["agent"]
|
|
2945
|
-
|
|
2946
|
-
context: .
|
|
2947
|
-
dockerfile: apps/server/Dockerfile
|
|
2949
|
+
${starterServerBuild}
|
|
2948
2950
|
user: "0:0"
|
|
2949
2951
|
command:
|
|
2950
2952
|
[
|
|
@@ -2965,9 +2967,7 @@ var agentComposeService = ` tool-sandbox-init:
|
|
|
2965
2967
|
|
|
2966
2968
|
tool-sandbox:
|
|
2967
2969
|
profiles: ["agent"]
|
|
2968
|
-
|
|
2969
|
-
context: .
|
|
2970
|
-
dockerfile: apps/server/Dockerfile
|
|
2970
|
+
${starterServerBuild}
|
|
2971
2971
|
command: ["bun", "run", "apps/server/src/agent/sandbox-worker.ts"]
|
|
2972
2972
|
environment:
|
|
2973
2973
|
TOOL_SANDBOX_SOCKET: /run/windy-tool-sandbox/worker.sock
|
|
@@ -7762,6 +7762,11 @@ var recipes = [
|
|
|
7762
7762
|
id: "starter-0.6.1-to-0.6.2",
|
|
7763
7763
|
from: "0.6.1",
|
|
7764
7764
|
to: "0.6.2"
|
|
7765
|
+
},
|
|
7766
|
+
{
|
|
7767
|
+
id: "starter-0.6.2-to-0.6.3",
|
|
7768
|
+
from: "0.6.2",
|
|
7769
|
+
to: "0.6.3"
|
|
7765
7770
|
}
|
|
7766
7771
|
];
|
|
7767
7772
|
function resolveRecipeChain(sourceVersion, targetVersion) {
|
package/package.json
CHANGED
|
@@ -23,14 +23,19 @@ COPY packages/server-sdk/package.json packages/server-sdk/package.json
|
|
|
23
23
|
COPY packages/shared/package.json packages/shared/package.json
|
|
24
24
|
COPY packages/storage/package.json packages/storage/package.json
|
|
25
25
|
# windy-copy:deps end
|
|
26
|
-
RUN --mount=type=cache,id=windy-bun-1.3.14,target=/root/.bun/install/cache,sharing=shared bun -e 'const child=Bun.spawn(["bun","install","--frozen-lockfile","--no-progress","--backend=copyfile","--linker=hoisted"],{stdin:"inherit",stdout:"inherit",stderr:"inherit"});const heartbeat=setInterval(()=>console.log("[windy] Bun 依赖安装仍在进行"),15000);const exitCode=await child.exited;clearInterval(heartbeat);process.exit(exitCode)'
|
|
26
|
+
RUN --mount=type=cache,id=windy-bun-1.3.14,target=/root/.bun/install/cache,sharing=shared bun -e 'const child=Bun.spawn(["bun","install","--frozen-lockfile","--no-progress","--backend=copyfile","--linker=hoisted","--ignore-scripts"],{stdin:"inherit",stdout:"inherit",stderr:"inherit"});const heartbeat=setInterval(()=>console.log("[windy] Bun 依赖安装仍在进行"),15000);const exitCode=await child.exited;clearInterval(heartbeat);process.exit(exitCode)' && bun --cwd apps/server -e 'await import("argon2")'
|
|
27
27
|
|
|
28
28
|
FROM deps AS runner
|
|
29
29
|
# @windy-module system.storage begin
|
|
30
30
|
# The native archive helper needs a compiler. Avoid Alpine apk here: its source
|
|
31
31
|
# transfer can stall indefinitely under cross-architecture BuildKit emulation.
|
|
32
|
+
ARG WINDY_DEBIAN_MIRROR=http://deb.debian.org/debian
|
|
33
|
+
ARG WINDY_DEBIAN_SECURITY_MIRROR=http://deb.debian.org/debian-security
|
|
32
34
|
RUN set -eu; \
|
|
33
|
-
|
|
35
|
+
echo "$WINDY_DEBIAN_MIRROR" | grep -Eq '^https?://[A-Za-z0-9./:_-]+$'; \
|
|
36
|
+
echo "$WINDY_DEBIAN_SECURITY_MIRROR" | grep -Eq '^https?://[A-Za-z0-9./:_-]+$'; \
|
|
37
|
+
sed -i "s|http://deb.debian.org/debian-security|$WINDY_DEBIAN_SECURITY_MIRROR|g; s|http://deb.debian.org/debian|$WINDY_DEBIAN_MIRROR|g" /etc/apt/sources.list.d/debian.sources; \
|
|
38
|
+
if ! timeout --kill-after=5s 90s sh -c 'apt-get update -o Acquire::http::AllowRedirect=false -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30 -o Acquire::Retries=0 && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes build-essential libarchive-dev libarchive-tools'; then \
|
|
34
39
|
echo "APT 包源不可用或 90 秒总时限已到:无法安装 report-staging 依赖" >&2; exit 70; \
|
|
35
40
|
fi
|
|
36
41
|
# @windy-module system.storage end
|
|
@@ -23,7 +23,7 @@ COPY packages/server-sdk/package.json packages/server-sdk/package.json
|
|
|
23
23
|
COPY packages/shared/package.json packages/shared/package.json
|
|
24
24
|
COPY packages/storage/package.json packages/storage/package.json
|
|
25
25
|
# windy-copy:deps end
|
|
26
|
-
RUN --mount=type=cache,id=windy-bun-1.3.14,target=/root/.bun/install/cache,sharing=shared bun -e 'const child=Bun.spawn(["bun","install","--frozen-lockfile","--no-progress","--backend=copyfile","--linker=hoisted"],{stdin:"inherit",stdout:"inherit",stderr:"inherit"});const heartbeat=setInterval(()=>console.log("[windy] Bun 依赖安装仍在进行"),15000);const exitCode=await child.exited;clearInterval(heartbeat);process.exit(exitCode)'
|
|
26
|
+
RUN --mount=type=cache,id=windy-bun-1.3.14,target=/root/.bun/install/cache,sharing=shared bun -e 'const child=Bun.spawn(["bun","install","--frozen-lockfile","--no-progress","--backend=copyfile","--linker=hoisted","--ignore-scripts"],{stdin:"inherit",stdout:"inherit",stderr:"inherit"});const heartbeat=setInterval(()=>console.log("[windy] Bun 依赖安装仍在进行"),15000);const exitCode=await child.exited;clearInterval(heartbeat);process.exit(exitCode)' && bun --cwd apps/server -e 'await import("argon2")'
|
|
27
27
|
|
|
28
28
|
FROM deps AS build
|
|
29
29
|
# windy-copy:build begin
|
|
@@ -19,6 +19,9 @@ services:
|
|
|
19
19
|
build:
|
|
20
20
|
context: .
|
|
21
21
|
dockerfile: apps/server/Dockerfile
|
|
22
|
+
args:
|
|
23
|
+
WINDY_DEBIAN_MIRROR: ${WINDY_DEBIAN_MIRROR:-http://mirrors.aliyun.com/debian}
|
|
24
|
+
WINDY_DEBIAN_SECURITY_MIRROR: ${WINDY_DEBIAN_SECURITY_MIRROR:-http://mirrors.aliyun.com/debian-security}
|
|
22
25
|
command: ["bun", "run", "db:migrate"]
|
|
23
26
|
environment:
|
|
24
27
|
DATABASE_URL: postgresql://windy:${POSTGRES_PASSWORD}@postgres:5432/windy
|
|
@@ -32,6 +35,9 @@ services:
|
|
|
32
35
|
build:
|
|
33
36
|
context: .
|
|
34
37
|
dockerfile: apps/server/Dockerfile
|
|
38
|
+
args:
|
|
39
|
+
WINDY_DEBIAN_MIRROR: ${WINDY_DEBIAN_MIRROR:-http://mirrors.aliyun.com/debian}
|
|
40
|
+
WINDY_DEBIAN_SECURITY_MIRROR: ${WINDY_DEBIAN_SECURITY_MIRROR:-http://mirrors.aliyun.com/debian-security}
|
|
35
41
|
command: ["bun", "run", "--cwd", "apps/server", "dev"]
|
|
36
42
|
environment:
|
|
37
43
|
NODE_ENV: development
|
|
@@ -100,6 +106,9 @@ services:
|
|
|
100
106
|
build:
|
|
101
107
|
context: .
|
|
102
108
|
dockerfile: apps/server/Dockerfile
|
|
109
|
+
args:
|
|
110
|
+
WINDY_DEBIAN_MIRROR: ${WINDY_DEBIAN_MIRROR:-http://mirrors.aliyun.com/debian}
|
|
111
|
+
WINDY_DEBIAN_SECURITY_MIRROR: ${WINDY_DEBIAN_SECURITY_MIRROR:-http://mirrors.aliyun.com/debian-security}
|
|
103
112
|
user: "0:0"
|
|
104
113
|
command:
|
|
105
114
|
[
|
|
@@ -123,6 +132,9 @@ services:
|
|
|
123
132
|
build:
|
|
124
133
|
context: .
|
|
125
134
|
dockerfile: apps/server/Dockerfile
|
|
135
|
+
args:
|
|
136
|
+
WINDY_DEBIAN_MIRROR: ${WINDY_DEBIAN_MIRROR:-http://mirrors.aliyun.com/debian}
|
|
137
|
+
WINDY_DEBIAN_SECURITY_MIRROR: ${WINDY_DEBIAN_SECURITY_MIRROR:-http://mirrors.aliyun.com/debian-security}
|
|
126
138
|
command: ["bun", "run", "apps/server/src/agent/sandbox-worker.ts"]
|
|
127
139
|
environment:
|
|
128
140
|
TOOL_SANDBOX_SOCKET: /run/windy-tool-sandbox/worker.sock
|