@powerhousedao/ph-cli 6.3.0-dev.8 → 6.4.0-next.0
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/{build-BpT6_e8f.mjs → build-D8_USaRh.mjs} +88 -16
- package/dist/build-D8_USaRh.mjs.map +1 -0
- package/dist/build-FVWjguYr.mjs +4 -0
- package/dist/{check-B4ZNJSdS.mjs → check-CVRb-CJD.mjs} +3 -3
- package/dist/{check-B8oqVMg7.mjs → check-EpzhIKt1.mjs} +4 -4
- package/dist/{check-B8oqVMg7.mjs.map → check-EpzhIKt1.mjs.map} +1 -1
- package/dist/{check-DLp0zlsr.mjs → check-_K6EAsag.mjs} +4 -4
- package/dist/{check-DLp0zlsr.mjs.map → check-_K6EAsag.mjs.map} +1 -1
- package/dist/{cli-connect-override-D22yFWlC.mjs → cli-connect-override-DwlViDdp.mjs} +5 -5
- package/dist/{cli-connect-override-D22yFWlC.mjs.map → cli-connect-override-DwlViDdp.mjs.map} +1 -1
- package/dist/cli.mjs +15 -31
- package/dist/cli.mjs.map +1 -1
- package/dist/{compound-DKi56SSx-CXQHhS6t.mjs → compound-n-bO0qKh-Dx7fgKWx.mjs} +658 -275
- package/dist/compound-n-bO0qKh-Dx7fgKWx.mjs.map +1 -0
- package/dist/{connect-build-BjNOlgpf.mjs → connect-build-BIkm5fcG.mjs} +6 -6
- package/dist/{connect-build-BjNOlgpf.mjs.map → connect-build-BIkm5fcG.mjs.map} +1 -1
- package/dist/{connect-config-CVU4xhti.mjs → connect-config-CH0KQqyU.mjs} +4 -4
- package/dist/{connect-config-CVU4xhti.mjs.map → connect-config-CH0KQqyU.mjs.map} +1 -1
- package/dist/{connect-preview-CdFvlANO.mjs → connect-preview-BvxXGo_W.mjs} +7 -6
- package/dist/connect-preview-BvxXGo_W.mjs.map +1 -0
- package/dist/{connect-studio-BnfhpIv8.mjs → connect-studio-C-9WE2Bg.mjs} +16 -7
- package/dist/connect-studio-C-9WE2Bg.mjs.map +1 -0
- package/dist/definitions-worker.mjs +1 -1
- package/dist/{dist-DXcB8fAF.mjs → dist-Dbvm_SmC.mjs} +51 -104
- package/dist/dist-Dbvm_SmC.mjs.map +1 -0
- package/dist/{explain-8OEXF2Dy.mjs → explain-DB7uoJkY.mjs} +67 -21
- package/dist/explain-DB7uoJkY.mjs.map +1 -0
- package/dist/{export-DqbcbFU5.mjs → export-DuYGBuQZ.mjs} +4 -4
- package/dist/{export-DqbcbFU5.mjs.map → export-DuYGBuQZ.mjs.map} +1 -1
- package/dist/{generate-all-0YOnlZM0.mjs → generate-all-Mj_xGZZN.mjs} +4 -4
- package/dist/{generate-all-0YOnlZM0.mjs.map → generate-all-Mj_xGZZN.mjs.map} +1 -1
- package/dist/{generate-desktop-shell-BovoRsR6.mjs → generate-desktop-shell-DD9o4Rcl.mjs} +7 -17
- package/dist/generate-desktop-shell-DD9o4Rcl.mjs.map +1 -0
- package/dist/{get-version-CvSoe9Yp.mjs → get-version-DXnnvS_S.mjs} +4 -4
- package/dist/{get-version-CvSoe9Yp.mjs.map → get-version-DXnnvS_S.mjs.map} +1 -1
- package/dist/{index-H3AYe65i.d.mts → index-V7TKBh-y.d.mts} +57 -3
- package/dist/index-V7TKBh-y.d.mts.map +1 -0
- package/dist/{init-CJB6RiIy.mjs → init-Ltg4cJzm.mjs} +9 -7
- package/dist/init-Ltg4cJzm.mjs.map +1 -0
- package/dist/{inspect-zWJnBDMJ.mjs → inspect-Bxa9y7zM.mjs} +4 -4
- package/dist/{inspect-zWJnBDMJ.mjs.map → inspect-Bxa9y7zM.mjs.map} +1 -1
- package/dist/{mcp-CDj9zBcB.mjs → mcp-DKqOFZlX.mjs} +7 -7
- package/dist/mcp-DKqOFZlX.mjs.map +1 -0
- package/dist/{migrate-DWaJjRZJ.mjs → migrate-CQpwBF1l.mjs} +8 -7
- package/dist/migrate-CQpwBF1l.mjs.map +1 -0
- package/dist/{migrate-document-models-LXMqiBzv.mjs → migrate-document-models-DpXzLDuu.mjs} +4 -4
- package/dist/{migrate-document-models-LXMqiBzv.mjs.map → migrate-document-models-DpXzLDuu.mjs.map} +1 -1
- package/dist/{migrate-subgraphs-Bm3HCsBx.mjs → migrate-subgraphs-CdfkO6l9.mjs} +54 -14
- package/dist/migrate-subgraphs-CdfkO6l9.mjs.map +1 -0
- package/dist/migrate-subgraphs-CoUuwzmR.mjs +4 -0
- package/dist/ph-cli-commands-Daeqh5Me.mjs +4 -0
- package/dist/{ph-cli-commands-N2_mv9oH.mjs → ph-cli-commands-Dq-tIYhy.mjs} +31 -183
- package/dist/ph-cli-commands-Dq-tIYhy.mjs.map +1 -0
- package/dist/run-sugar-Bnab2Z3f.mjs +4 -0
- package/dist/run-sugar-DsG2RRgx.mjs +89 -0
- package/dist/run-sugar-DsG2RRgx.mjs.map +1 -0
- package/dist/runners/connect.d.mts +2 -2
- package/dist/runners/connect.d.mts.map +1 -1
- package/dist/runners/connect.mjs +30 -18
- package/dist/runners/connect.mjs.map +1 -1
- package/dist/runners/switchboard.d.mts +3 -3
- package/dist/runners/switchboard.mjs +11 -11
- package/dist/runners/switchboard.mjs.map +1 -1
- package/dist/scripts/generate-commands-docs.ts +2 -8
- package/dist/service-args-D6y3L0bm.mjs +49 -0
- package/dist/service-args-D6y3L0bm.mjs.map +1 -0
- package/dist/sugar-checks-DBk5q_uJ.mjs +175 -0
- package/dist/sugar-checks-DBk5q_uJ.mjs.map +1 -0
- package/dist/{switchboard-reset-MtTB_GAI.mjs → switchboard-reset-CY6J0lWO.mjs} +4 -4
- package/dist/switchboard-reset-CY6J0lWO.mjs.map +1 -0
- package/dist/utils-BU25LHRE.mjs +4 -0
- package/dist/{utils-9KyRM0mf.mjs → utils-D5VlY5AZ.mjs} +4 -15
- package/dist/utils-D5VlY5AZ.mjs.map +1 -0
- package/dist/{verify-CLy3OBt0.mjs → verify-C_fL8YsF.mjs} +4 -4
- package/dist/{verify-CLy3OBt0.mjs.map → verify-C_fL8YsF.mjs.map} +1 -1
- package/dist/{vetra-host-ChTpJiBJ.mjs → vetra-host-CDfny6E8.mjs} +24 -9
- package/dist/vetra-host-CDfny6E8.mjs.map +1 -0
- package/dist/{vetra-instance-CzhYIjxL.mjs → vetra-instance-DlXAeiU7.mjs} +8 -16
- package/dist/{vetra-instance-CzhYIjxL.mjs.map → vetra-instance-DlXAeiU7.mjs.map} +1 -1
- package/dist/{vetra-launch-qi10Unax.mjs → vetra-launcher-CYX10K2m.mjs} +14 -32
- package/dist/vetra-launcher-CYX10K2m.mjs.map +1 -0
- package/dist/vetra-launcher-TDLXj0tY.mjs +4 -0
- package/dist/{vetra-switchboard-tzdc14KA.mjs → vetra-switchboard-Ctje6iR1.mjs} +4 -4
- package/dist/{vetra-switchboard-tzdc14KA.mjs.map → vetra-switchboard-Ctje6iR1.mjs.map} +1 -1
- package/package.json +16 -16
- package/dist/build-BpT6_e8f.mjs.map +0 -1
- package/dist/build-CH7APWeB.mjs +0 -4
- package/dist/classic-args-mH_DVsgC.mjs +0 -48
- package/dist/classic-args-mH_DVsgC.mjs.map +0 -1
- package/dist/classic-warnings-BR0S6lr5.mjs +0 -179
- package/dist/classic-warnings-BR0S6lr5.mjs.map +0 -1
- package/dist/compound-DKi56SSx-CXQHhS6t.mjs.map +0 -1
- package/dist/connect-preview-CdFvlANO.mjs.map +0 -1
- package/dist/connect-studio-BnfhpIv8.mjs.map +0 -1
- package/dist/connect-studio-D58ByAAn.mjs +0 -4
- package/dist/dist-DXcB8fAF.mjs.map +0 -1
- package/dist/explain-8OEXF2Dy.mjs.map +0 -1
- package/dist/generate-desktop-shell-BovoRsR6.mjs.map +0 -1
- package/dist/index-H3AYe65i.d.mts.map +0 -1
- package/dist/init-CJB6RiIy.mjs.map +0 -1
- package/dist/mcp-CDj9zBcB.mjs.map +0 -1
- package/dist/migrate-DWaJjRZJ.mjs.map +0 -1
- package/dist/migrate-subgraphs-Bm3HCsBx.mjs.map +0 -1
- package/dist/migrate-subgraphs-CYDoY5jR.mjs +0 -4
- package/dist/ph-cli-commands-C1w7hHUM.mjs +0 -4
- package/dist/ph-cli-commands-N2_mv9oH.mjs.map +0 -1
- package/dist/run-sugar-DpznOP1e.mjs +0 -56
- package/dist/run-sugar-DpznOP1e.mjs.map +0 -1
- package/dist/scripts/manage-environment +0 -199
- package/dist/scripts/setup-environment +0 -423
- package/dist/scripts/setup-environment.ps1 +0 -313
- package/dist/switchboard-reset-MtTB_GAI.mjs.map +0 -1
- package/dist/utils-9KyRM0mf.mjs.map +0 -1
- package/dist/utils-TO9lB8Xs.mjs +0 -4
- package/dist/vetra-CVNZ46pK.mjs +0 -352
- package/dist/vetra-CVNZ46pK.mjs.map +0 -1
- package/dist/vetra-host-ChTpJiBJ.mjs.map +0 -1
- package/dist/vetra-launch-qi10Unax.mjs.map +0 -1
- package/dist/vetra-switchboard-BrkozIm7.mjs +0 -4
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
# PowerShell script for setting up Powerhouse environment on Windows
|
|
2
|
-
param(
|
|
3
|
-
[string]$TARGET_TAG = "latest"
|
|
4
|
-
)
|
|
5
|
-
|
|
6
|
-
# Function to check if running as administrator
|
|
7
|
-
function Test-Administrator {
|
|
8
|
-
$user = [Security.Principal.WindowsIdentity]::GetCurrent()
|
|
9
|
-
$principal = New-Object Security.Principal.WindowsPrincipal $user
|
|
10
|
-
$principal.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
# Check if running as administrator
|
|
14
|
-
if (-not (Test-Administrator)) {
|
|
15
|
-
Write-Host "Please run this script as Administrator" -ForegroundColor Red
|
|
16
|
-
exit 1
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
# Install required packages using winget
|
|
20
|
-
Write-Host "Installing required packages..."
|
|
21
|
-
winget install -e --id PostgreSQL.PostgreSQL
|
|
22
|
-
winget install -e --id NGINX.NGINX
|
|
23
|
-
|
|
24
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
25
|
-
Write-Host " Setting up global project"
|
|
26
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
27
|
-
|
|
28
|
-
# Create installation directory if it doesn't exist
|
|
29
|
-
$installPath = "C:\www"
|
|
30
|
-
if (-not (Test-Path $installPath)) {
|
|
31
|
-
New-Item -ItemType Directory -Path $installPath
|
|
32
|
-
}
|
|
33
|
-
Set-Location $installPath
|
|
34
|
-
|
|
35
|
-
# Initialize Powerhouse project
|
|
36
|
-
ph init powerhouse --$TARGET_TAG
|
|
37
|
-
Set-Location powerhouse
|
|
38
|
-
|
|
39
|
-
# Interactive package installation loop
|
|
40
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
41
|
-
Write-Host " Package Installation"
|
|
42
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
43
|
-
while ($true) {
|
|
44
|
-
$package_name = Read-Host "Enter package name to install (or press Enter to skip)"
|
|
45
|
-
if ([string]::IsNullOrEmpty($package_name)) {
|
|
46
|
-
break
|
|
47
|
-
}
|
|
48
|
-
ph install $package_name
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
# Build Connect
|
|
52
|
-
ph connect build
|
|
53
|
-
|
|
54
|
-
# Database Configuration
|
|
55
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
56
|
-
Write-Host " Database Configuration"
|
|
57
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
58
|
-
Write-Host "Choose database type:"
|
|
59
|
-
Write-Host "1) Local PostgreSQL database"
|
|
60
|
-
Write-Host "2) Remote PostgreSQL database"
|
|
61
|
-
$db_choice = Read-Host "Enter your choice (1 or 2)"
|
|
62
|
-
|
|
63
|
-
if ($db_choice -eq "1") {
|
|
64
|
-
Write-Host "Setting up local PostgreSQL database..."
|
|
65
|
-
|
|
66
|
-
# Generate database credentials
|
|
67
|
-
$DB_PASSWORD = "powerhouse"
|
|
68
|
-
$DB_USER = "powerhouse"
|
|
69
|
-
$DB_NAME = "powerhouse"
|
|
70
|
-
|
|
71
|
-
# Create database and user using psql
|
|
72
|
-
$env:PGPASSWORD = "postgres" # Default PostgreSQL password
|
|
73
|
-
psql -U postgres -c "CREATE USER $DB_USER WITH PASSWORD '$DB_PASSWORD';"
|
|
74
|
-
psql -U postgres -c "CREATE DATABASE $DB_NAME OWNER $DB_USER;"
|
|
75
|
-
psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE $DB_NAME TO $DB_USER;"
|
|
76
|
-
|
|
77
|
-
# Set DATABASE_URL for local database
|
|
78
|
-
$DATABASE_URL = "postgresql://$DB_USER`:$DB_PASSWORD@localhost:5432/$DB_NAME"
|
|
79
|
-
|
|
80
|
-
Write-Host "Local database configured successfully!"
|
|
81
|
-
Write-Host "Database URL: $DATABASE_URL"
|
|
82
|
-
Write-Host "Please save these credentials securely!"
|
|
83
|
-
} else {
|
|
84
|
-
Write-Host "Enter remote PostgreSQL URL (format: postgresql://user:password@host:port/db)"
|
|
85
|
-
Write-Host "Example: postgresql://powerhouse:password@db.example.com:5432/powerhouse"
|
|
86
|
-
$DATABASE_URL = Read-Host "DATABASE_URL"
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
# Save DATABASE_URL to .env file
|
|
90
|
-
Add-Content -Path "$installPath\powerhouse\.env" -Value "DATABASE_URL=$DATABASE_URL"
|
|
91
|
-
|
|
92
|
-
# SSL Configuration choice
|
|
93
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
94
|
-
Write-Host " SSL Configuration"
|
|
95
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
96
|
-
Write-Host "Choose SSL configuration:"
|
|
97
|
-
Write-Host "1) Let's Encrypt certificates for domains"
|
|
98
|
-
Write-Host "2) Self-signed certificate for machine hostname"
|
|
99
|
-
$ssl_choice = Read-Host "Enter your choice (1 or 2)"
|
|
100
|
-
|
|
101
|
-
if ($ssl_choice -eq "1") {
|
|
102
|
-
# Install certbot for Let's Encrypt
|
|
103
|
-
winget install -e --id Certbot.Certbot
|
|
104
|
-
|
|
105
|
-
# Domain setup
|
|
106
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
107
|
-
Write-Host " Domain Setup"
|
|
108
|
-
Write-Host "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
109
|
-
$base_domain = Read-Host "Enter base domain (e.g. powerhouse.xyz)"
|
|
110
|
-
$connect_subdomain = Read-Host "Enter subdomain for Connect service (default: connect)"
|
|
111
|
-
$switchboard_subdomain = Read-Host "Enter subdomain for Switchboard service (default: switchboard)"
|
|
112
|
-
|
|
113
|
-
# Set default subdomains if not provided
|
|
114
|
-
if ([string]::IsNullOrEmpty($connect_subdomain)) { $connect_subdomain = "connect" }
|
|
115
|
-
if ([string]::IsNullOrEmpty($switchboard_subdomain)) { $switchboard_subdomain = "switchboard" }
|
|
116
|
-
|
|
117
|
-
# Construct full domains
|
|
118
|
-
$connect_domain = "$connect_subdomain.$base_domain"
|
|
119
|
-
$switchboard_domain = "$switchboard_subdomain.$base_domain"
|
|
120
|
-
|
|
121
|
-
Write-Host "Using domains:"
|
|
122
|
-
Write-Host "Connect: $connect_domain"
|
|
123
|
-
Write-Host "Switchboard: $switchboard_domain"
|
|
124
|
-
|
|
125
|
-
# Generate temporary SSL certificates
|
|
126
|
-
Write-Host "Generating temporary SSL certificates..."
|
|
127
|
-
$sslPath = "C:\nginx\ssl"
|
|
128
|
-
if (-not (Test-Path $sslPath)) {
|
|
129
|
-
New-Item -ItemType Directory -Path $sslPath
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
# Create Nginx configuration for domains
|
|
133
|
-
$nginxConfig = @"
|
|
134
|
-
# Security headers
|
|
135
|
-
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
136
|
-
add_header X-Frame-Options DENY;
|
|
137
|
-
add_header X-Content-Type-Options nosniff;
|
|
138
|
-
add_header X-XSS-Protection "1; mode=block";
|
|
139
|
-
|
|
140
|
-
server {
|
|
141
|
-
listen 80;
|
|
142
|
-
server_name $connect_domain $switchboard_domain;
|
|
143
|
-
return 301 https://`$host`$request_uri;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
server {
|
|
147
|
-
listen 443 ssl http2;
|
|
148
|
-
server_name $connect_domain;
|
|
149
|
-
|
|
150
|
-
ssl_certificate $sslPath\temp.crt;
|
|
151
|
-
ssl_certificate_key $sslPath\temp.key;
|
|
152
|
-
|
|
153
|
-
# SSL configuration
|
|
154
|
-
ssl_protocols TLSv1.2 TLSv1.3;
|
|
155
|
-
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
|
156
|
-
ssl_prefer_server_ciphers off;
|
|
157
|
-
ssl_session_timeout 1d;
|
|
158
|
-
ssl_session_cache shared:SSL:50m;
|
|
159
|
-
ssl_session_tickets off;
|
|
160
|
-
ssl_stapling on;
|
|
161
|
-
ssl_stapling_verify on;
|
|
162
|
-
|
|
163
|
-
if (`$http_x_forwarded_proto = "http") {
|
|
164
|
-
return 301 https://`$server_name`$request_uri;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
location / {
|
|
168
|
-
root C:/www/powerhouse/.ph/connect-build/dist;
|
|
169
|
-
try_files `$uri `$uri/ /index.html;
|
|
170
|
-
add_header Cache-Control "no-cache";
|
|
171
|
-
add_header X-Forwarded-Proto `$scheme;
|
|
172
|
-
add_header X-Forwarded-Host `$host;
|
|
173
|
-
add_header X-Forwarded-Port `$server_port;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
server {
|
|
178
|
-
listen 443 ssl http2;
|
|
179
|
-
server_name $switchboard_domain;
|
|
180
|
-
|
|
181
|
-
ssl_certificate $sslPath\temp.crt;
|
|
182
|
-
ssl_certificate_key $sslPath\temp.key;
|
|
183
|
-
|
|
184
|
-
location / {
|
|
185
|
-
proxy_pass http://localhost:4001;
|
|
186
|
-
proxy_http_version 1.1;
|
|
187
|
-
proxy_set_header Upgrade `$http_upgrade;
|
|
188
|
-
proxy_set_header Connection 'upgrade';
|
|
189
|
-
proxy_set_header Host `$host;
|
|
190
|
-
proxy_cache_bypass `$http_upgrade;
|
|
191
|
-
proxy_set_header X-Real-IP `$remote_addr;
|
|
192
|
-
proxy_set_header X-Forwarded-For `$proxy_add_x_forwarded_for;
|
|
193
|
-
proxy_set_header X-Forwarded-Proto `$scheme;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
"@
|
|
197
|
-
|
|
198
|
-
# Save Nginx configuration
|
|
199
|
-
$nginxConfig | Out-File -FilePath "C:\nginx\conf\sites-available\powerhouse.conf" -Encoding UTF8
|
|
200
|
-
|
|
201
|
-
# Create symbolic link to enable the site
|
|
202
|
-
if (-not (Test-Path "C:\nginx\conf\sites-enabled")) {
|
|
203
|
-
New-Item -ItemType Directory -Path "C:\nginx\conf\sites-enabled"
|
|
204
|
-
}
|
|
205
|
-
New-Item -ItemType SymbolicLink -Path "C:\nginx\conf\sites-enabled\powerhouse.conf" -Target "C:\nginx\conf\sites-available\powerhouse.conf" -Force
|
|
206
|
-
|
|
207
|
-
# Test Nginx configuration
|
|
208
|
-
nginx -t
|
|
209
|
-
|
|
210
|
-
# Restart Nginx
|
|
211
|
-
Stop-Service nginx
|
|
212
|
-
Start-Service nginx
|
|
213
|
-
|
|
214
|
-
# Obtain SSL certificates
|
|
215
|
-
Write-Host "Obtaining SSL certificates..."
|
|
216
|
-
certbot --nginx -d $connect_domain -d $switchboard_domain --non-interactive --agree-tos --email "admin@$base_domain"
|
|
217
|
-
|
|
218
|
-
} else {
|
|
219
|
-
# Get machine hostname
|
|
220
|
-
$hostname = [System.Net.Dns]::GetHostName()
|
|
221
|
-
|
|
222
|
-
# Generate self-signed certificate
|
|
223
|
-
Write-Host "Generating self-signed certificate for $hostname..."
|
|
224
|
-
$sslPath = "C:\nginx\ssl"
|
|
225
|
-
if (-not (Test-Path $sslPath)) {
|
|
226
|
-
New-Item -ItemType Directory -Path $sslPath
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
# Create Nginx configuration for self-signed
|
|
230
|
-
$nginxConfig = @"
|
|
231
|
-
# Security headers
|
|
232
|
-
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
233
|
-
add_header X-Frame-Options DENY;
|
|
234
|
-
add_header X-Content-Type-Options nosniff;
|
|
235
|
-
add_header X-XSS-Protection "1; mode=block";
|
|
236
|
-
|
|
237
|
-
server {
|
|
238
|
-
listen 80;
|
|
239
|
-
server_name $hostname;
|
|
240
|
-
return 301 https://`$host`$request_uri;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
server {
|
|
244
|
-
listen 443 ssl http2;
|
|
245
|
-
server_name $hostname;
|
|
246
|
-
|
|
247
|
-
ssl_certificate $sslPath\$hostname.crt;
|
|
248
|
-
ssl_certificate_key $sslPath\$hostname.key;
|
|
249
|
-
|
|
250
|
-
location /connect {
|
|
251
|
-
proxy_pass http://localhost:3000;
|
|
252
|
-
proxy_http_version 1.1;
|
|
253
|
-
proxy_set_header Upgrade `$http_upgrade;
|
|
254
|
-
proxy_set_header Connection 'upgrade';
|
|
255
|
-
proxy_set_header Host `$host;
|
|
256
|
-
proxy_cache_bypass `$http_upgrade;
|
|
257
|
-
proxy_set_header X-Real-IP `$remote_addr;
|
|
258
|
-
proxy_set_header X-Forwarded-For `$proxy_add_x_forwarded_for;
|
|
259
|
-
proxy_set_header X-Forwarded-Proto `$scheme;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
location /switchboard {
|
|
263
|
-
proxy_pass http://localhost:4001;
|
|
264
|
-
proxy_http_version 1.1;
|
|
265
|
-
proxy_set_header Upgrade `$http_upgrade;
|
|
266
|
-
proxy_set_header Connection 'upgrade';
|
|
267
|
-
proxy_set_header Host `$host;
|
|
268
|
-
proxy_cache_bypass `$http_upgrade;
|
|
269
|
-
proxy_set_header X-Real-IP `$remote_addr;
|
|
270
|
-
proxy_set_header X-Forwarded-For `$proxy_add_x_forwarded_for;
|
|
271
|
-
proxy_set_header X-Forwarded-Proto `$scheme;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
"@
|
|
275
|
-
|
|
276
|
-
# Save Nginx configuration
|
|
277
|
-
$nginxConfig | Out-File -FilePath "C:\nginx\conf\sites-available\powerhouse.conf" -Encoding UTF8
|
|
278
|
-
|
|
279
|
-
# Create symbolic link to enable the site
|
|
280
|
-
if (-not (Test-Path "C:\nginx\conf\sites-enabled")) {
|
|
281
|
-
New-Item -ItemType Directory -Path "C:\nginx\conf\sites-enabled"
|
|
282
|
-
}
|
|
283
|
-
New-Item -ItemType SymbolicLink -Path "C:\nginx\conf\sites-enabled\powerhouse.conf" -Target "C:\nginx\conf\sites-available\powerhouse.conf" -Force
|
|
284
|
-
|
|
285
|
-
# Test Nginx configuration
|
|
286
|
-
nginx -t
|
|
287
|
-
|
|
288
|
-
# Restart Nginx
|
|
289
|
-
Stop-Service nginx
|
|
290
|
-
Start-Service nginx
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
# Install PM2 globally if not already installed
|
|
294
|
-
if (-not (Get-Command pm2 -ErrorAction SilentlyContinue)) {
|
|
295
|
-
pnpm install -g pm2
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
# Run database migrations
|
|
299
|
-
pnpm prisma db push --schema node_modules/document-drive/dist/prisma/schema.prisma --skip-generate
|
|
300
|
-
|
|
301
|
-
# Start services with PM2
|
|
302
|
-
Write-Host "Starting services with PM2..."
|
|
303
|
-
if ($ssl_choice -eq "2") {
|
|
304
|
-
# Self-signed certificate - use base paths
|
|
305
|
-
pm2 start pnpm switchboard --name "switchboard" -- --base-path /switchboard
|
|
306
|
-
} else {
|
|
307
|
-
# Let's Encrypt - no base paths needed
|
|
308
|
-
pm2 start "pnpm switchboard" --name "switchboard"
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
# Save PM2 process list and setup startup script
|
|
312
|
-
pm2 save
|
|
313
|
-
pm2 startup
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switchboard-reset-MtTB_GAI.mjs","sources":["../src/services/switchboard-reset.ts"],"sourcesContent":["import { defaultStoreDirs } from \"@powerhousedao/shared/clis/ph-dir\";\nimport { yellow, red, green, cyan } from \"colorette\";\nimport { promises as fs } from \"node:fs\";\n\nexport interface ResetSwitchboardOptions {\n dbPath?: string;\n yes?: boolean;\n}\n\nexport interface ResolvedResetPaths {\n reactorDir: string | null;\n readModelDir: string | null;\n postgresUrl: string | null;\n}\n\nconst CONFIRMATION_TOKEN = \"reset\";\n\nexport function isPostgresUrl(url: string): boolean {\n return url.startsWith(\"postgresql://\") || url.startsWith(\"postgres://\");\n}\n\nfunction isInteractive(): boolean {\n return Boolean(process.stdin.isTTY) && !process.env.CI;\n}\n\n/**\n * Resolves the on-disk PGlite directories that `--reset` would delete.\n * Mirrors the resolution in apps/switchboard/src/server.mts so we touch the\n * same paths the running switchboard uses. When a Postgres URL is configured\n * the corresponding directory is null and `postgresUrl` is populated so the\n * caller can refuse.\n */\nexport function resolveResetPaths(\n options: ResetSwitchboardOptions,\n env: NodeJS.ProcessEnv = process.env,\n): ResolvedResetPaths {\n const defaults = defaultStoreDirs(env);\n const readModelDbPath =\n options.dbPath ?? env.DATABASE_URL ?? env.PH_SWITCHBOARD_DATABASE_URL;\n const readModelPath = readModelDbPath || defaults.readModel;\n const reactorDbUrl =\n options.dbPath ??\n env.PH_REACTOR_DATABASE_URL ??\n env.PH_SWITCHBOARD_DATABASE_URL;\n const reactorPath = reactorDbUrl || defaults.reactor;\n\n const reactorIsPostgres = !!reactorDbUrl && isPostgresUrl(reactorDbUrl);\n const readModelIsPostgres =\n !!readModelDbPath && isPostgresUrl(readModelDbPath);\n\n let postgresUrl: string | null = null;\n if (reactorIsPostgres) postgresUrl = reactorDbUrl as string;\n else if (readModelIsPostgres) postgresUrl = readModelDbPath as string;\n\n return {\n reactorDir: reactorIsPostgres ? null : reactorPath,\n readModelDir: readModelIsPostgres ? null : readModelPath,\n postgresUrl,\n };\n}\n\nasync function promptForConfirmation(): Promise<boolean> {\n const enquirer = await import(\"enquirer\");\n try {\n const answer = await enquirer.default.prompt<{ confirmation: string }>({\n type: \"input\",\n name: \"confirmation\",\n message: `Type \"${CONFIRMATION_TOKEN}\" to confirm wiping the local switchboard databases:`,\n });\n return answer.confirmation.trim() === CONFIRMATION_TOKEN;\n } catch {\n return false;\n }\n}\n\nexport async function resetSwitchboardDatabase(\n options: ResetSwitchboardOptions,\n): Promise<void> {\n const paths = resolveResetPaths(options);\n\n if (paths.postgresUrl) {\n console.error(\n red(\n `Refusing to reset: a PostgreSQL URL is configured (${paths.postgresUrl}).`,\n ),\n );\n console.error(\n yellow(\n \"`ph switchboard --reset` only wipes the local PGlite stores. \" +\n \"To reset a Postgres-backed switchboard, drop/recreate the database manually.\",\n ),\n );\n process.exit(1);\n }\n\n const targets = [paths.reactorDir, paths.readModelDir].filter(\n (d): d is string => d !== null,\n );\n\n if (targets.length === 0) {\n console.error(red(\"No local PGlite directories resolved; nothing to do.\"));\n process.exit(1);\n }\n\n console.log(yellow(\"The following directories will be permanently deleted:\"));\n for (const dir of targets) {\n console.log(` - ${dir}`);\n }\n console.log(\n yellow(\n \"This will wipe all local switchboard state. Migrations will re-run on next `ph switchboard`.\",\n ),\n );\n\n let confirmed = false;\n if (options.yes) {\n confirmed = true;\n } else if (isInteractive()) {\n confirmed = await promptForConfirmation();\n } else {\n console.error(\n red(\n \"Refusing to reset in a non-interactive context without --yes. Re-run with --yes to confirm.\",\n ),\n );\n process.exit(1);\n }\n\n if (!confirmed) {\n console.error(red(\"Aborted: confirmation not provided.\"));\n process.exit(1);\n }\n\n for (const dir of targets) {\n await fs.rm(dir, { recursive: true, force: true });\n console.log(cyan(`Removed ${dir}`));\n }\n\n console.log(\n green(\n \"Switchboard local storage reset. Run `ph switchboard` to re-initialize.\",\n ),\n );\n}\n"],"names":["fs"],"mappings":";;;;;;AAeA,MAAM,qBAAqB;AAE3B,SAAgB,cAAc,KAAsB;CAClD,OAAO,IAAI,WAAW,eAAe,KAAK,IAAI,WAAW,aAAa;AACxE;AAEA,SAAS,gBAAyB;CAChC,OAAO,QAAQ,QAAQ,MAAM,KAAK,KAAK,CAAC,QAAQ,IAAI;AACtD;;;;;;;;AASA,SAAgB,kBACd,SACA,MAAyB,QAAQ,KACb;CACpB,MAAM,WAAW,iBAAiB,GAAG;CACrC,MAAM,kBACJ,QAAQ,UAAU,IAAI,gBAAgB,IAAI;CAC5C,MAAM,gBAAgB,mBAAmB,SAAS;CAClD,MAAM,eACJ,QAAQ,UACR,IAAI,2BACJ,IAAI;CACN,MAAM,cAAc,gBAAgB,SAAS;CAE7C,MAAM,oBAAoB,CAAC,CAAC,gBAAgB,cAAc,YAAY;CACtE,MAAM,sBACJ,CAAC,CAAC,mBAAmB,cAAc,eAAe;CAEpD,IAAI,cAA6B;CACjC,IAAI,mBAAmB,cAAc;MAChC,IAAI,qBAAqB,cAAc;CAE5C,OAAO;EACL,YAAY,oBAAoB,OAAO;EACvC,cAAc,sBAAsB,OAAO;EAC3C;CACF;AACF;AAEA,eAAe,wBAA0C;CACvD,MAAM,WAAW,MAAM,OAAO;CAC9B,IAAI;EAMF,QAAO,MALc,SAAS,QAAQ,OAAiC;GACrE,MAAM;GACN,MAAM;GACN,SAAS,SAAS,mBAAmB;EACvC,CAAC,EAAA,CACa,aAAa,KAAK,MAAM;CACxC,QAAQ;EACN,OAAO;CACT;AACF;AAEA,eAAsB,yBACpB,SACe;CACf,MAAM,QAAQ,kBAAkB,OAAO;CAEvC,IAAI,MAAM,aAAa;EACrB,QAAQ,MACN,IACE,sDAAsD,MAAM,YAAY,GAC1E,CACF;EACA,QAAQ,MACN,OACE,2IAEF,CACF;EACA,QAAQ,KAAK,CAAC;CAChB;CAEA,MAAM,UAAU,CAAC,MAAM,YAAY,MAAM,YAAY,CAAC,CAAC,QACpD,MAAmB,MAAM,IAC5B;CAEA,IAAI,QAAQ,WAAW,GAAG;EACxB,QAAQ,MAAM,IAAI,sDAAsD,CAAC;EACzE,QAAQ,KAAK,CAAC;CAChB;CAEA,QAAQ,IAAI,OAAO,wDAAwD,CAAC;CAC5E,KAAK,MAAM,OAAO,SAChB,QAAQ,IAAI,OAAO,KAAK;CAE1B,QAAQ,IACN,OACE,8FACF,CACF;CAEA,IAAI,YAAY;CAChB,IAAI,QAAQ,KACV,YAAY;MACP,IAAI,cAAc,GACvB,YAAY,MAAM,sBAAsB;MACnC;EACL,QAAQ,MACN,IACE,6FACF,CACF;EACA,QAAQ,KAAK,CAAC;CAChB;CAEA,IAAI,CAAC,WAAW;EACd,QAAQ,MAAM,IAAI,qCAAqC,CAAC;EACxD,QAAQ,KAAK,CAAC;CAChB;CAEA,KAAK,MAAM,OAAO,SAAS;EACzB,MAAMA,SAAG,GAAG,KAAK;GAAE,WAAW;GAAM,OAAO;EAAK,CAAC;EACjD,QAAQ,IAAI,KAAK,WAAW,KAAK,CAAC;CACpC;CAEA,QAAQ,IACN,MACE,yEACF,CACF;AACF","debug_id":"44d0c080-10cc-5316-947d-b0281777aade"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils-9KyRM0mf.mjs","sources":["../src/utils.ts"],"sourcesContent":["import type { PowerhouseConfig } from \"@powerhousedao/config\";\nimport crypto from \"node:crypto\";\nimport fs from \"node:fs\";\nimport { homedir } from \"node:os\";\nimport path, { dirname } from \"node:path\";\nexport const POWERHOUSE_CONFIG_FILE = \"powerhouse.config.json\";\nexport const POWERHOUSE_GLOBAL_DIR = path.join(homedir(), \".ph\");\nexport const SUPPORTED_PACKAGE_MANAGERS = [\"npm\", \"yarn\", \"pnpm\", \"bun\"];\n\nexport const packageManagers = {\n bun: {\n globalPathRegexp: /[\\\\/].bun[\\\\/]/,\n installCommand: \"bun add {{dependency}}\",\n uninstallCommand: \"bun remove {{dependency}}\",\n workspaceOption: \"\",\n lockfile: \"bun.lock\",\n updateCommand: \"bun update {{dependency}}\",\n buildAffected: \"bun run build:affected\",\n },\n pnpm: {\n globalPathRegexp: /[\\\\/]pnpm[\\\\/]/,\n installCommand: \"pnpm add {{dependency}}\",\n uninstallCommand: \"pnpm remove {{dependency}}\",\n workspaceOption: \"--workspace-root\",\n lockfile: \"pnpm-lock.yaml\",\n updateCommand: \"pnpm update {{dependency}}\",\n buildAffected: \"pnpm run build:affected\",\n },\n yarn: {\n globalPathRegexp: /[\\\\/]yarn[\\\\/]/,\n installCommand: \"yarn add {{dependency}}\",\n uninstallCommand: \"yarn remove {{dependency}}\",\n workspaceOption: \"-W\",\n lockfile: \"yarn.lock\",\n updateCommand: \"yarn upgrade {{dependency}}\",\n buildAffected: \"yarn run build:affected\",\n },\n npm: {\n installCommand: \"npm install {{dependency}}\",\n uninstallCommand: \"npm uninstall {{dependency}}\",\n workspaceOption: \"\",\n lockfile: \"package-lock.json\",\n updateCommand: \"npm update {{dependency}} --save\",\n buildAffected: \"npm run build:affected\",\n },\n};\n\ntype PathValidation = (dir: string) => boolean;\n\nexport type PackageManager = \"npm\" | \"yarn\" | \"pnpm\" | \"bun\";\n\nexport type ProjectInfo = {\n isGlobal: boolean;\n path: string;\n packageManager: PackageManager;\n};\n\nexport function defaultPathValidation() {\n return true;\n}\n\nexport function isPowerhouseProject(dir: string) {\n const powerhouseConfigPath = path.join(dir, POWERHOUSE_CONFIG_FILE);\n\n return fs.existsSync(powerhouseConfigPath);\n}\n\nexport function findNodeProjectRoot(\n dir: string,\n pathValidation: PathValidation = defaultPathValidation,\n) {\n const packageJsonPath = path.join(dir, \"package.json\");\n\n if (fs.existsSync(packageJsonPath) && pathValidation(dir)) {\n return dir;\n }\n\n const parentDir = dirname(dir);\n\n if (parentDir === dir) {\n return null;\n }\n\n return findNodeProjectRoot(parentDir, pathValidation);\n}\n\nexport function getProjectInfo(debug?: boolean): ProjectInfo {\n const currentPath = process.cwd();\n\n if (debug) {\n console.log(\">>> currentPath\", currentPath);\n }\n\n const projectPath = findNodeProjectRoot(currentPath, isPowerhouseProject);\n\n if (!projectPath) {\n return {\n isGlobal: true,\n path: POWERHOUSE_GLOBAL_DIR,\n packageManager: getPackageManagerFromLockfile(POWERHOUSE_GLOBAL_DIR),\n };\n }\n\n return {\n isGlobal: false,\n path: projectPath,\n packageManager: getPackageManagerFromLockfile(projectPath),\n };\n}\n\n/**\n * Generates a unique drive ID based on the project path.\n * The same project path will always generate the same ID.\n * @param name - The name prefix for the drive ID (e.g., \"vetra\", \"powerhouse\")\n * @returns A unique drive ID in the format \"{name}-{hash}\"\n */\nexport function generateProjectDriveId(name: string): string {\n const projectInfo = getProjectInfo();\n const hash = crypto\n .createHash(\"sha256\")\n .update(projectInfo.path)\n .digest(\"hex\");\n const shortHash = hash.substring(0, 8);\n return `${name}-${shortHash}`;\n}\n\nexport function getPackageManagerFromLockfile(dir: string): PackageManager {\n if (fs.existsSync(path.join(dir, packageManagers.pnpm.lockfile))) {\n return \"pnpm\";\n } else if (fs.existsSync(path.join(dir, packageManagers.yarn.lockfile))) {\n return \"yarn\";\n } else if (fs.existsSync(path.join(dir, packageManagers.bun.lockfile))) {\n return \"bun\";\n }\n\n return \"npm\";\n}\n\nexport function updatePackagesArray(\n currentPackages: PowerhouseConfig[\"packages\"] = [],\n dependencies: { name: string; version: string | undefined }[],\n task: \"install\" | \"uninstall\" = \"install\",\n provider: \"registry\" | \"local\" = \"registry\",\n): PowerhouseConfig[\"packages\"] {\n const isInstall = task === \"install\";\n const mappedPackages = dependencies.map((dep) => ({\n packageName: dep.name,\n version: dep.version,\n provider,\n }));\n\n if (isInstall) {\n // Overwrite existing package if version is different\n const filteredPackages = currentPackages.filter(\n (pkg) => !dependencies.find((dep) => dep.name === pkg.packageName),\n );\n return [...filteredPackages, ...mappedPackages];\n }\n\n return currentPackages.filter(\n (pkg) => !dependencies.map((dep) => dep.name).includes(pkg.packageName),\n );\n}\n\n// Modify updateConfigFile to use the new function\nexport function updateConfigFile(\n dependencies: { name: string; version: string | undefined }[],\n projectPath: string,\n task: \"install\" | \"uninstall\" = \"install\",\n provider: \"registry\" | \"local\" = \"registry\",\n registryUrl?: string,\n registryUrlExplicit = false,\n) {\n const configPath = path.join(projectPath, POWERHOUSE_CONFIG_FILE);\n\n if (!fs.existsSync(configPath)) {\n throw new Error(\n `powerhouse.config.json file not found. projectPath: ${projectPath}`,\n );\n }\n\n const config = JSON.parse(\n fs.readFileSync(configPath, \"utf-8\"),\n ) as PowerhouseConfig;\n\n const updatedConfig: PowerhouseConfig = {\n ...config,\n packages: updatePackagesArray(\n config.packages,\n dependencies,\n task,\n provider,\n ),\n };\n\n if (\n task === \"install\" &&\n registryUrl &&\n (registryUrlExplicit || !config.packageRegistryUrl) &&\n dependencies.length > 0\n ) {\n updatedConfig.packageRegistryUrl = registryUrl;\n }\n\n fs.writeFileSync(configPath, JSON.stringify(updatedConfig, null, 2));\n}\n\n/**\n * Recursively searches for a specific file by traversing up the directory tree.\n * Starting from the given path, it checks each parent directory until it finds\n * the target file or reaches the root directory.\n *\n * @param startPath - The absolute path of the directory to start searching from\n * @param targetFile - The name of the file to search for (e.g., 'package.json', 'pnpm-workspace.yaml')\n * @returns The absolute path of the directory containing the target file, or null if not found\n *\n * @example\n * // Find the workspace root directory\n * const workspaceRoot = findContainerDirectory('/path/to/project/src', 'pnpm-workspace.yaml');\n *\n * // Find the nearest package.json\n * const packageDir = findContainerDirectory('/path/to/project/src/components', 'package.json');\n */\nexport const findContainerDirectory = (\n startPath: string,\n targetFile: string,\n): string | null => {\n const filePath = path.join(startPath, targetFile);\n\n if (fs.existsSync(filePath)) {\n return startPath;\n }\n\n const parentDir = path.dirname(startPath);\n\n //reached the root directory and haven't found the file\n if (parentDir === startPath) {\n return null;\n }\n\n return findContainerDirectory(parentDir, targetFile);\n};\n\n/**\n * Removes the CSS imports `ph install --local` used to add to style.css for\n * uninstalled packages; Connect now loads a bundled package's CSS with its code.\n */\nexport function removeStylesImports(\n dependencies: { name: string; version: string | undefined }[],\n projectPath: string,\n) {\n const stylesPath = path.join(projectPath, \"style.css\");\n\n // Check if styles.css exists\n if (!fs.existsSync(stylesPath)) {\n console.warn(\"⚠️ Warning: style.css file not found in project root\");\n return;\n }\n\n const currentStyles = fs.readFileSync(stylesPath, \"utf-8\");\n let updatedStyles = currentStyles;\n\n for (const dep of dependencies) {\n const cssPath = `./node_modules/${dep.name}/dist/style.css`;\n const importStatement = `@import '${cssPath}';`;\n\n // Remove the import line if it exists\n const lines = updatedStyles.split(\"\\n\");\n const filteredLines = lines.filter(\n (line) => !line.trim().includes(importStatement),\n );\n\n if (filteredLines.length !== lines.length) {\n updatedStyles = filteredLines.join(\"\\n\");\n }\n }\n\n // Only write if changes were made\n if (updatedStyles !== currentStyles) {\n fs.writeFileSync(stylesPath, updatedStyles);\n }\n}\n"],"names":[],"mappings":"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","debug_id":"e3fbf59a-7996-5c5c-9db7-c8d207b68849"}
|
package/dist/utils-TO9lB8Xs.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { d as updateConfigFile, u as removeStylesImports } from "./utils-9KyRM0mf.mjs";
|
|
2
|
-
export { removeStylesImports, updateConfigFile };
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="76be3b2a-b7dc-5775-8844-ce31e31fe2d1")}catch(e){}}();
|
|
4
|
-
//# debugId=76be3b2a-b7dc-5775-8844-ce31e31fe2d1
|