@percher/core 0.4.0 → 0.4.2
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/commands/account.d.ts +24 -14
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +17 -4
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/admin-reconcile-routes.d.ts +18 -0
- package/dist/commands/admin-reconcile-routes.d.ts.map +1 -0
- package/dist/commands/admin-reconcile-routes.js +22 -0
- package/dist/commands/admin-reconcile-routes.js.map +1 -0
- package/dist/commands/ai-files.d.ts +5 -17
- package/dist/commands/ai-files.d.ts.map +1 -1
- package/dist/commands/ai-files.js +3 -4
- package/dist/commands/ai-files.js.map +1 -1
- package/dist/commands/alerts.d.ts +70 -0
- package/dist/commands/alerts.d.ts.map +1 -0
- package/dist/commands/alerts.js +82 -0
- package/dist/commands/alerts.js.map +1 -0
- package/dist/commands/app-resources.d.ts +30 -0
- package/dist/commands/app-resources.d.ts.map +1 -0
- package/dist/commands/app-resources.js +34 -0
- package/dist/commands/app-resources.js.map +1 -0
- package/dist/commands/app-topology.d.ts +18 -0
- package/dist/commands/app-topology.d.ts.map +1 -0
- package/dist/commands/app-topology.js +25 -0
- package/dist/commands/app-topology.js.map +1 -0
- package/dist/commands/billing.d.ts +8 -8
- package/dist/commands/billing.d.ts.map +1 -1
- package/dist/commands/billing.js +1 -1
- package/dist/commands/billing.js.map +1 -1
- package/dist/commands/continue.d.ts +1 -1
- package/dist/commands/create.d.ts +2 -12
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/dashboard.d.ts +2 -8
- package/dist/commands/dashboard.d.ts.map +1 -1
- package/dist/commands/dashboard.js +1 -1
- package/dist/commands/dashboard.js.map +1 -1
- package/dist/commands/data-export.d.ts +2 -8
- package/dist/commands/data-export.d.ts.map +1 -1
- package/dist/commands/data-export.js +1 -1
- package/dist/commands/data-export.js.map +1 -1
- package/dist/commands/data.d.ts +2 -8
- package/dist/commands/data.d.ts.map +1 -1
- package/dist/commands/data.js +1 -1
- package/dist/commands/data.js.map +1 -1
- package/dist/commands/delete.d.ts +2 -8
- package/dist/commands/delete.d.ts.map +1 -1
- package/dist/commands/delete.js +1 -1
- package/dist/commands/delete.js.map +1 -1
- package/dist/commands/deploys.d.ts +4 -28
- package/dist/commands/deploys.d.ts.map +1 -1
- package/dist/commands/deploys.js +1 -1
- package/dist/commands/deploys.js.map +1 -1
- package/dist/commands/dev.d.ts +2 -6
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/commands/dev.js +1 -1
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/diagnose.d.ts +2 -22
- package/dist/commands/diagnose.d.ts.map +1 -1
- package/dist/commands/diagnose.js +1 -1
- package/dist/commands/diagnose.js.map +1 -1
- package/dist/commands/doctor.d.ts +10 -35
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +12 -4
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/domains.d.ts +5 -27
- package/dist/commands/domains.d.ts.map +1 -1
- package/dist/commands/domains.js +1 -1
- package/dist/commands/domains.js.map +1 -1
- package/dist/commands/env-scan.js +1 -1
- package/dist/commands/env-scan.js.map +1 -1
- package/dist/commands/env.d.ts +4 -20
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +1 -1
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/export.d.ts +6 -15
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +1 -1
- package/dist/commands/forgejo.d.ts +45 -0
- package/dist/commands/forgejo.d.ts.map +1 -0
- package/dist/commands/forgejo.js +125 -0
- package/dist/commands/forgejo.js.map +1 -0
- package/dist/commands/generate.d.ts +2 -6
- package/dist/commands/generate.d.ts.map +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/generate.js.map +1 -1
- package/dist/commands/github.d.ts +4 -15
- package/dist/commands/github.d.ts.map +1 -1
- package/dist/commands/github.js +17 -1
- package/dist/commands/github.js.map +1 -1
- package/dist/commands/import-project.d.ts +13 -9
- package/dist/commands/import-project.d.ts.map +1 -1
- package/dist/commands/import-project.js +73 -22
- package/dist/commands/import-project.js.map +1 -1
- package/dist/commands/init.d.ts +26 -11
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +103 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/insights.d.ts +2 -6
- package/dist/commands/insights.d.ts.map +1 -1
- package/dist/commands/insights.js +1 -1
- package/dist/commands/insights.js.map +1 -1
- package/dist/commands/login.d.ts +2 -8
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +22 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logs.d.ts +25 -10
- package/dist/commands/logs.d.ts.map +1 -1
- package/dist/commands/logs.js +65 -5
- package/dist/commands/logs.js.map +1 -1
- package/dist/commands/mcp.d.ts +2 -2
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +1 -1
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/migrate-supabase-map.d.ts +171 -0
- package/dist/commands/migrate-supabase-map.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-map.js +452 -0
- package/dist/commands/migrate-supabase-map.js.map +1 -0
- package/dist/commands/migrate-supabase-schema.d.ts +67 -0
- package/dist/commands/migrate-supabase-schema.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-schema.js +321 -0
- package/dist/commands/migrate-supabase-schema.js.map +1 -0
- package/dist/commands/migrate-supabase-scripts.d.ts +64 -0
- package/dist/commands/migrate-supabase-scripts.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-scripts.js +564 -0
- package/dist/commands/migrate-supabase-scripts.js.map +1 -0
- package/dist/commands/migrate-supabase-sdk.d.ts +133 -0
- package/dist/commands/migrate-supabase-sdk.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-sdk.js +1119 -0
- package/dist/commands/migrate-supabase-sdk.js.map +1 -0
- package/dist/commands/migrate-supabase-walker.d.ts +93 -0
- package/dist/commands/migrate-supabase-walker.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-walker.js +413 -0
- package/dist/commands/migrate-supabase-walker.js.map +1 -0
- package/dist/commands/migrate-supabase.d.ts +81 -0
- package/dist/commands/migrate-supabase.d.ts.map +1 -0
- package/dist/commands/migrate-supabase.js +579 -0
- package/dist/commands/migrate-supabase.js.map +1 -0
- package/dist/commands/open.d.ts +2 -6
- package/dist/commands/open.d.ts.map +1 -1
- package/dist/commands/open.js +1 -1
- package/dist/commands/open.js.map +1 -1
- package/dist/commands/publish-api-error.d.ts +46 -0
- package/dist/commands/publish-api-error.d.ts.map +1 -0
- package/dist/commands/publish-api-error.js +358 -0
- package/dist/commands/publish-api-error.js.map +1 -0
- package/dist/commands/publish-failure.d.ts.map +1 -1
- package/dist/commands/publish-failure.js +11 -2
- package/dist/commands/publish-failure.js.map +1 -1
- package/dist/commands/publish.d.ts +40 -17
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +115 -8
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/push.d.ts +2 -12
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +2 -2
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/redeploy.d.ts +2 -8
- package/dist/commands/redeploy.d.ts.map +1 -1
- package/dist/commands/redeploy.js +2 -2
- package/dist/commands/redeploy.js.map +1 -1
- package/dist/commands/rename.d.ts +2 -8
- package/dist/commands/rename.d.ts.map +1 -1
- package/dist/commands/rename.js +1 -1
- package/dist/commands/rename.js.map +1 -1
- package/dist/commands/reproduce.d.ts +2 -8
- package/dist/commands/reproduce.d.ts.map +1 -1
- package/dist/commands/reproduce.js +1 -1
- package/dist/commands/reproduce.js.map +1 -1
- package/dist/commands/reset-superuser.d.ts +2 -16
- package/dist/commands/reset-superuser.d.ts.map +1 -1
- package/dist/commands/reset-superuser.js +1 -1
- package/dist/commands/reset-superuser.js.map +1 -1
- package/dist/commands/restore.d.ts +7 -22
- package/dist/commands/restore.d.ts.map +1 -1
- package/dist/commands/restore.js +1 -1
- package/dist/commands/restore.js.map +1 -1
- package/dist/commands/resume.d.ts +2 -6
- package/dist/commands/resume.d.ts.map +1 -1
- package/dist/commands/resume.js +1 -1
- package/dist/commands/resume.js.map +1 -1
- package/dist/commands/rollback.d.ts +2 -8
- package/dist/commands/rollback.d.ts.map +1 -1
- package/dist/commands/rollback.js +1 -1
- package/dist/commands/rollback.js.map +1 -1
- package/dist/commands/sharing.d.ts +48 -0
- package/dist/commands/sharing.d.ts.map +1 -0
- package/dist/commands/sharing.js +85 -0
- package/dist/commands/sharing.js.map +1 -0
- package/dist/commands/status.d.ts +2 -6
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +1 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/transfers.d.ts +34 -0
- package/dist/commands/transfers.d.ts.map +1 -0
- package/dist/commands/transfers.js +62 -0
- package/dist/commands/transfers.js.map +1 -0
- package/dist/commands/unsuspend.d.ts +2 -6
- package/dist/commands/unsuspend.d.ts.map +1 -1
- package/dist/commands/unsuspend.js +1 -1
- package/dist/commands/unsuspend.js.map +1 -1
- package/dist/commands/versions.d.ts +2 -6
- package/dist/commands/versions.d.ts.map +1 -1
- package/dist/commands/versions.js +1 -1
- package/dist/commands/versions.js.map +1 -1
- package/dist/commands/wait-deploy.d.ts +2 -12
- package/dist/commands/wait-deploy.d.ts.map +1 -1
- package/dist/commands/wait-deploy.js +1 -1
- package/dist/commands/wait-deploy.js.map +1 -1
- package/dist/context.d.ts +15 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/detect.d.ts +11 -0
- package/dist/detect.d.ts.map +1 -1
- package/dist/detect.js +31 -8
- package/dist/detect.js.map +1 -1
- package/dist/env-scan-source.d.ts +8 -1
- package/dist/env-scan-source.d.ts.map +1 -1
- package/dist/env-scan-source.js +100 -24
- package/dist/env-scan-source.js.map +1 -1
- package/dist/error-classifier.d.ts +18 -1
- package/dist/error-classifier.d.ts.map +1 -1
- package/dist/error-classifier.js +171 -9
- package/dist/error-classifier.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +64 -49
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -42
- package/dist/index.js.map +1 -1
- package/dist/plans.d.ts +86 -8
- package/dist/plans.d.ts.map +1 -1
- package/dist/plans.js +113 -24
- package/dist/plans.js.map +1 -1
- package/dist/recovery.d.ts +73 -3
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +36 -0
- package/dist/recovery.js.map +1 -1
- package/dist/static-docker.d.ts +77 -0
- package/dist/static-docker.d.ts.map +1 -0
- package/dist/static-docker.js +105 -0
- package/dist/static-docker.js.map +1 -0
- package/dist/tarball.js +1 -1
- package/dist/tarball.js.map +1 -1
- package/dist/templates/ai-files/cursor-percher-mdc.d.ts.map +1 -1
- package/dist/templates/ai-files/cursor-percher-mdc.js +12 -9
- package/dist/templates/ai-files/cursor-percher-mdc.js.map +1 -1
- package/dist/templates.js +11 -11
- package/dist/templates.js.map +1 -1
- package/dist/watcher.js +1 -1
- package/dist/watcher.js.map +1 -1
- package/package.json +6 -2
package/dist/error-classifier.js
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Companion file: `packages/api/src/pipeline/error-classifier.ts` (the
|
|
3
|
+
* API-side classifier, simpler shape — title/explanation/suggestion
|
|
4
|
+
* only). This file is the CLI/agent surface with the richer shape
|
|
5
|
+
* (errorClass / phase / cause / relevantFiles / missingEnvVars).
|
|
6
|
+
*
|
|
7
|
+
* Sync contract: patterns present in BOTH files MUST agree on
|
|
8
|
+
* **title + priority** so the agent and the operator see the same
|
|
9
|
+
* verdict when both fire. The API file is a deliberate subset —
|
|
10
|
+
* DEPLOY_STALLED, infra-unavailable, TypeScript-error, and the
|
|
11
|
+
* generic permission-denied fallback live ONLY here because the API
|
|
12
|
+
* never reads its own classified output for those classes. Adding a
|
|
13
|
+
* pattern to one file without the other is fine only when that
|
|
14
|
+
* surface needs it locally; in practice every Fas 7 entry lives in
|
|
15
|
+
* both. Extracting a shared catalog to `@percher/shared` is on the
|
|
16
|
+
* follow-up list.
|
|
17
|
+
*/
|
|
1
18
|
function extractEnvVarsFromLog(combined) {
|
|
2
19
|
const envVarPattern = /process\.env\.(\w+)\s*(?:is\s+)?(?:undefined|not set)|(?:missing|undefined).*?(\b[A-Z][A-Z0-9_]{2,}\b)/gi;
|
|
3
20
|
const vars = new Set();
|
|
@@ -71,6 +88,30 @@ const patterns = [
|
|
|
71
88
|
missingEnvVars: [],
|
|
72
89
|
},
|
|
73
90
|
},
|
|
91
|
+
// Track A — A3: a 502/Bad Gateway during deploy is the proxy in front of
|
|
92
|
+
// the app (Caddy / the api→worker hop) failing transiently, not the
|
|
93
|
+
// user's code. Without this it classified to `undefined` → "unknown
|
|
94
|
+
// counts as attributable" → a transient gateway blip fed the
|
|
95
|
+
// failure-loop. Maps to `infra_unavailable` (already non-attributable)
|
|
96
|
+
// so it never punishes the dev. Kept BELOW the upstream-unreachable
|
|
97
|
+
// entry above (more specific worker/Nix strings win first) and ABOVE
|
|
98
|
+
// every app-attributable pattern so a 502 is never re-read as an app
|
|
99
|
+
// error. `\b502\b` is intentionally broad per the owner-locked spec —
|
|
100
|
+
// the worst case is a genuinely-looping app whose log happens to
|
|
101
|
+
// contain "502" escaping suspension, which is the safe direction to err.
|
|
102
|
+
{
|
|
103
|
+
pattern: /Bad Gateway|HTTP 502|\b502\b/i,
|
|
104
|
+
result: {
|
|
105
|
+
title: "Gateway error (transient)",
|
|
106
|
+
explanation: "A gateway in front of your app returned 502 Bad Gateway while the platform was routing the deploy. This is a transient platform-side hiccup, not your app code.",
|
|
107
|
+
suggestion: "Wait 30 seconds and run percher publish again. A single retry almost always lands cleanly. If 502s persist across several spaced-out retries, check status.percher.app — that's a platform incident, not your app.",
|
|
108
|
+
errorClass: "infra_unavailable",
|
|
109
|
+
phase: "infra",
|
|
110
|
+
cause: "bad_gateway",
|
|
111
|
+
relevantFiles: [],
|
|
112
|
+
missingEnvVars: [],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
74
115
|
{
|
|
75
116
|
pattern: /start command could not be found|no start command/i,
|
|
76
117
|
result: {
|
|
@@ -110,16 +151,19 @@ const patterns = [
|
|
|
110
151
|
missingEnvVars: [],
|
|
111
152
|
},
|
|
112
153
|
},
|
|
154
|
+
// FUTURE11 Fas 7 — privileged-port bind. MUST come before EADDRINUSE
|
|
155
|
+
// and the generic permission-denied matcher below so a `bind:
|
|
156
|
+
// permission denied :80` log lands on the precise advice.
|
|
113
157
|
{
|
|
114
|
-
pattern: /
|
|
158
|
+
pattern: /bind:?\s+permission denied.*?:(?:80|443)\b/i,
|
|
115
159
|
result: {
|
|
116
|
-
title: "
|
|
117
|
-
explanation: "Your app
|
|
118
|
-
suggestion: "
|
|
119
|
-
errorClass: "
|
|
120
|
-
phase: "
|
|
121
|
-
cause: "
|
|
122
|
-
relevantFiles: ["percher.toml"],
|
|
160
|
+
title: "Cannot bind to privileged port",
|
|
161
|
+
explanation: "Your app tried to listen on a privileged port (80 or 443). Percher containers run as non-root and cannot bind to ports below 1024.",
|
|
162
|
+
suggestion: "Use process.env.PORT instead of hardcoding 80/443. Percher assigns a high port and routes :80/:443 traffic to it externally — your code doesn't need to know the public port.",
|
|
163
|
+
errorClass: "port_mismatch",
|
|
164
|
+
phase: "start",
|
|
165
|
+
cause: "privileged_port",
|
|
166
|
+
relevantFiles: ["percher.toml", "package.json"],
|
|
123
167
|
missingEnvVars: [],
|
|
124
168
|
},
|
|
125
169
|
},
|
|
@@ -136,6 +180,53 @@ const patterns = [
|
|
|
136
180
|
missingEnvVars: [],
|
|
137
181
|
},
|
|
138
182
|
},
|
|
183
|
+
// FUTURE11 Fas 7 — rootless-fs failures. Triggered by nginx writing
|
|
184
|
+
// /var/log, by `chown` against a shared dir, or by any EROFS during
|
|
185
|
+
// container startup. Stays above the generic permission-denied
|
|
186
|
+
// matcher so the message names the actual cause.
|
|
187
|
+
{
|
|
188
|
+
// Both chown alternatives bound the gap to 200 chars so a long
|
|
189
|
+
// unrelated build log with a `tar: Operation not permitted` line
|
|
190
|
+
// early and an unrelated `chown` 30 lines later doesn't land on
|
|
191
|
+
// the rootless-fs classification by accident. Real co-occurring
|
|
192
|
+
// chown/Operation-not-permitted shapes sit well under 100 chars
|
|
193
|
+
// apart:
|
|
194
|
+
// - busybox: `chown: cannot access '/data':\nOperation not
|
|
195
|
+
// permitted` (~25 chars)
|
|
196
|
+
// - nginx: `chown("/tmp/...", 65534) failed (1: Operation
|
|
197
|
+
// not permitted)` (~45 chars)
|
|
198
|
+
// 200 is a comfortable ceiling. `[\s\S]` (not `.`) so the
|
|
199
|
+
// matcher works without the dotall flag. The `Read-only file
|
|
200
|
+
// system` and `Permission denied.*?/var/log` alternatives are
|
|
201
|
+
// line-bound by their own structure and are fine with `.*?`.
|
|
202
|
+
pattern: /Read-only file system|Permission denied.*?\/var\/log|chown[\s\S]{0,200}?Operation not permitted|Operation not permitted[\s\S]{0,200}?chown/i,
|
|
203
|
+
result: {
|
|
204
|
+
title: "Container needs writable filesystem",
|
|
205
|
+
explanation: "Your image tries to write to a path that's read-only in Percher's rootless container — common causes are nginx writing /var/log, or a startup script chown'ing a shared directory.",
|
|
206
|
+
suggestion: "Switch to a base image designed for rootless (alpine + caddy works), redirect writes to /tmp, or drop the chown step. If you're on runtime=static you should already be on the Caddy path — re-deploy on the current platform version to pick it up.",
|
|
207
|
+
errorClass: "permission_denied",
|
|
208
|
+
phase: "start",
|
|
209
|
+
cause: "rootless_fs_write",
|
|
210
|
+
relevantFiles: ["Dockerfile"],
|
|
211
|
+
missingEnvVars: [],
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
// FUTURE11 Fas 7 — npm "missing script" startup failure. Specific
|
|
215
|
+
// fix, named clearly — the generic build-failed matcher would
|
|
216
|
+
// otherwise swallow it.
|
|
217
|
+
{
|
|
218
|
+
pattern: /npm ERR.*?missing script|npm error.*?missing script/i,
|
|
219
|
+
result: {
|
|
220
|
+
title: "Missing npm script",
|
|
221
|
+
explanation: "Your start command refers to an npm script that doesn't exist in package.json.",
|
|
222
|
+
suggestion: 'Check the "scripts" section of package.json — the script name must match what Percher is invoking (typically "start"). Add it locally, run `npm run <name>` to confirm it works, then publish again.',
|
|
223
|
+
errorClass: "config_invalid",
|
|
224
|
+
phase: "start",
|
|
225
|
+
cause: "missing_npm_script",
|
|
226
|
+
relevantFiles: ["package.json"],
|
|
227
|
+
missingEnvVars: [],
|
|
228
|
+
},
|
|
229
|
+
},
|
|
139
230
|
{
|
|
140
231
|
pattern: /Cannot find module|ERR_MODULE_NOT_FOUND/i,
|
|
141
232
|
result: {
|
|
@@ -162,8 +253,60 @@ const patterns = [
|
|
|
162
253
|
missingEnvVars: [],
|
|
163
254
|
},
|
|
164
255
|
},
|
|
256
|
+
// Track A — A1: platform-at-capacity / box-admission rejection. MUST sit
|
|
257
|
+
// BEFORE the PocketBase pattern below: when the box fills during a
|
|
258
|
+
// PocketBase-sidecar start, the failure string mentions "pocketbase" and
|
|
259
|
+
// the loose PB matcher would swallow it into the generic "PocketBase
|
|
260
|
+
// error" config advice — telling the dev to fix their toml for a problem
|
|
261
|
+
// that is purely the platform being full. First-wins ordering makes the
|
|
262
|
+
// capacity verdict consistent regardless of which stage the box filled
|
|
263
|
+
// at. The tokens match the admission-control rejection reason
|
|
264
|
+
// ("…would exceed committed_budget…") and the build-log capacity banner
|
|
265
|
+
// ("The platform is at capacity"). Deliberately NOT matched: the
|
|
266
|
+
// per-account pool message ("Pool limit exceeded … your plan has only …")
|
|
267
|
+
// which is app-attributable (the user must upgrade or trim) and carries
|
|
268
|
+
// none of these platform tokens.
|
|
269
|
+
//
|
|
270
|
+
// Tokens are deliberately ANCHORED to platform/admission wording (codex
|
|
271
|
+
// P2): a bare `exceed.*budget` / `at capacity` would also swallow ordinary
|
|
272
|
+
// app errors like "token budget exceeded" or "connection pool at capacity"
|
|
273
|
+
// and let them escape the failure-loop guard. `committed_budget` is the
|
|
274
|
+
// literal token in the admission reason; "platform is at capacity" is the
|
|
275
|
+
// build-log banner (run-stage); "box admission" is the banner's own
|
|
276
|
+
// header ("--- Box admission control ---"). All three are Percher-only
|
|
277
|
+
// strings — `box admission` is scoped (codex P2 r2) so a user app's own
|
|
278
|
+
// "admission control" error (a k8s admission webhook, a policy-engine
|
|
279
|
+
// denial) is NOT mislabeled as the platform being full. The `\b` before
|
|
280
|
+
// `box` stops `sandbox admission denied` (box is a suffix of sandbox)
|
|
281
|
+
// from matching, while still allowing "Box admission" / "per-box
|
|
282
|
+
// admission" (codex P2 r3).
|
|
165
283
|
{
|
|
166
|
-
pattern: /
|
|
284
|
+
pattern: /committed_budget|\bbox admission|platform (?:is )?at capacity/i,
|
|
285
|
+
result: {
|
|
286
|
+
title: "Platform at capacity",
|
|
287
|
+
explanation: "The platform couldn't fit this deploy right now — the box is full, so the box-admission gate refused to start the container. This is a platform-side limit, not a problem with your app code or configuration.",
|
|
288
|
+
suggestion: "Wait a few minutes and run percher publish again — capacity frees up as other deploys finish. This failure does not count against your app, and a retry usually lands once there's room. If it persists, contact the operator.",
|
|
289
|
+
errorClass: "platform_at_capacity",
|
|
290
|
+
phase: "infra",
|
|
291
|
+
cause: "box_admission_rejected",
|
|
292
|
+
relevantFiles: [],
|
|
293
|
+
missingEnvVars: [],
|
|
294
|
+
},
|
|
295
|
+
},
|
|
296
|
+
// The PocketBase matcher is deliberately TIGHT (sync-locked with the API
|
|
297
|
+
// classifier): it must fire on a real PB failure but NOT on a bare
|
|
298
|
+
// `POCKETBASE_URL` / `POCKETBASE_ADMIN_*` env mention that can appear in a
|
|
299
|
+
// PB app's build log or container output. The old `/POCKETBASE/i`
|
|
300
|
+
// alternative matched that env-var NAME, so any unrelated failure for a PB
|
|
301
|
+
// app risked being rewritten into misleading "fix your percher.toml" advice
|
|
302
|
+
// (the class of bug behind the 2026-06-02 kvittakvitto report). Now
|
|
303
|
+
// "pocketbase" must sit within ~40 same-line chars of an actual failure
|
|
304
|
+
// word — matching the real platform strings ("PocketBase authentication
|
|
305
|
+
// failed", "PocketBase health check timed out after Nms", "PocketBase
|
|
306
|
+
// superuser creation could not be verified") and app-side "failed to
|
|
307
|
+
// connect to PocketBase".
|
|
308
|
+
{
|
|
309
|
+
pattern: /pocketbase[^\n]{0,40}(?:error|fail|crash|panic|exit|unhealthy|could ?not|cannot|connection refused|timed out|not (?:start|ready|reachable))|(?:failed to (?:start|connect|reach)|error (?:starting|connecting to)|unable to (?:start|reach|connect to))[^\n]{0,40}pocketbase/i,
|
|
167
310
|
result: {
|
|
168
311
|
title: "PocketBase error",
|
|
169
312
|
explanation: "PocketBase could not start or connect properly.",
|
|
@@ -267,6 +410,25 @@ const patterns = [
|
|
|
267
410
|
missingEnvVars: [],
|
|
268
411
|
},
|
|
269
412
|
},
|
|
413
|
+
// FUTURE11 Fas 7 — health-check fallback. MUST stay last. Before
|
|
414
|
+
// Fas 7 this pattern was #4, which meant EADDRINUSE / rootless-fs
|
|
415
|
+
// / Cannot-find-module logs all got the generic "listen on PORT,
|
|
416
|
+
// return 200" advice. As fallback it only fires when nothing more
|
|
417
|
+
// specific matches — the honest signal it represents (the deploy
|
|
418
|
+
// timed out on /health and we have no log evidence of WHY).
|
|
419
|
+
{
|
|
420
|
+
pattern: /healthcheck failed|health check failed/i,
|
|
421
|
+
result: {
|
|
422
|
+
title: "Health check failed",
|
|
423
|
+
explanation: "Your app started but did not respond to the health check endpoint in time.",
|
|
424
|
+
suggestion: "Make sure your app listens on process.env.PORT and returns HTTP 200 on the health path. Then publish again.",
|
|
425
|
+
errorClass: "health_check_timeout",
|
|
426
|
+
phase: "health_check",
|
|
427
|
+
cause: "timeout",
|
|
428
|
+
relevantFiles: ["percher.toml"],
|
|
429
|
+
missingEnvVars: [],
|
|
430
|
+
},
|
|
431
|
+
},
|
|
270
432
|
];
|
|
271
433
|
/**
|
|
272
434
|
* Classify a deploy error message into a user-friendly explanation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-classifier.js","sourceRoot":"","sources":["../src/error-classifier.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-classifier.js","sourceRoot":"","sources":["../src/error-classifier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAgDH,SAAS,qBAAqB,CAAC,QAAgB;IAC7C,MAAM,aAAa,GACjB,0GAA0G,CAAC;IAC7G,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;QACrD,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;QAClC,IAAI,IAAI;YAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;AACnB,CAAC;AAED,SAAS,oBAAoB,CAAC,QAAgB;IAC5C,MAAM,KAAK,GACT,QAAQ,CAAC,KAAK,CAAC,sCAAsC,CAAC;QACtD,QAAQ,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC7D,OAAO,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,QAAQ,GAAmB;IAC/B;QACE,uEAAuE;QACvE,+DAA+D;QAC/D,oEAAoE;QACpE,mEAAmE;QACnE,kEAAkE;QAClE,qEAAqE;QACrE,wDAAwD;QACxD,oDAAoD;QACpD,EAAE;QACF,mEAAmE;QACnE,iEAAiE;QACjE,iEAAiE;QACjE,uEAAuE;QACvE,OAAO,EAAE,iBAAiB;QAC1B,MAAM,EAAE;YACN,KAAK,EAAE,kCAAkC;YACzC,WA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,CAAC,YAAoB,EAAE,QAAiB;IACnE,MAAM,QAAQ,GAAG,GAAG,YAAY,KAAK,QAAQ,IAAI,EAAE,EAAE,CAAC;IACtD,KAAK,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,QAAQ,EAAE,CAAC;QAC1E,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC3B,MAAM,UAAU,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;YACjC,uCAAuC;YACvC,IAAI,cAAc,EAAE,CAAC;gBACnB,UAAU,CAAC,cAAc,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;YACvD,CAAC;YACD,IAAI,aAAa,EAAE,CAAC;gBAClB,MAAM,GAAG,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC;gBACpC,IAAI,GAAG,EAAE,CAAC;oBACR,UAAU,CAAC,UAAU,GAAG,QAAQ,GAAG,qDAAqD,CAAC;gBAC3F,CAAC;YACH,CAAC;YACD,4DAA4D;YAC5D,IAAI,UAAU,CAAC,KAAK,KAAK,kBAAkB,EAAE,CAAC;gBAC5C,MAAM,GAAG,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;gBAC3C,IAAI,GAAG,EAAE,CAAC;oBACR,UAAU,CAAC,WAAW,GAAG,WAAW,GAAG,6BAA6B,CAAC;oBACrE,UAAU,CAAC,UAAU,GAAG,QAAQ,GAAG,qDAAqD,CAAC;gBAC3F,CAAC;YACH,CAAC;YACD,OAAO,UAAU,CAAC;QACpB,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type PercherCoreErrorCode = "init.exists" | "push.no-config-generated" | "push.cancelled" | "push.placeholder-env" | "push.too-large" | "push.suspicious" | "push.deploy-failed" | "push.deploy-timeout" | "push.quota-exceeded" | "push.already-in-progress" | "push.retry-limit-reached" | "logs.no-app" | "env.no-app" | "open.no-app" | "login.expired" | "login.rejected" | "doctor.no-app" | "doctor.api-unreachable" | "dev.no-app" | "data.no-app" | "create.invalid-template" | "create.dir-not-empty" | "create.failed" | "delete.confirmation-required" | "delete.acknowledgement-mismatch" | "account.delete.confirmation-required" | "diagnose.no-app" | "insights.no-app" | "billing.checkout-failed" | "billing.portal-failed" | "deploys.no-app" | "deploys.no-id" | "deploys.no-failed" | "restore.source-not-found" | "restore.timeout" | "restore.failed" | "restore.rolled-back" | "data-export.no-app" | "dashboard.no-app" | "dashboard.invalid-tab";
|
|
1
|
+
export type PercherCoreErrorCode = "init.exists" | "push.no-config-generated" | "push.cancelled" | "push.placeholder-env" | "push.too-large" | "push.suspicious" | "push.deploy-failed" | "push.deploy-timeout" | "push.quota-exceeded" | "push.already-in-progress" | "push.retry-limit-reached" | "logs.no-app" | "env.no-app" | "open.no-app" | "login.expired" | "login.rejected" | "doctor.no-app" | "doctor.api-unreachable" | "dev.no-app" | "data.no-app" | "create.invalid-template" | "create.dir-not-empty" | "create.failed" | "delete.confirmation-required" | "delete.acknowledgement-mismatch" | "account.delete.confirmation-required" | "diagnose.no-app" | "insights.no-app" | "topology.no-app" | "resources.no-app" | "billing.checkout-failed" | "billing.portal-failed" | "deploys.no-app" | "deploys.no-id" | "deploys.no-failed" | "restore.source-not-found" | "restore.timeout" | "restore.failed" | "restore.rolled-back" | "data-export.no-app" | "dashboard.no-app" | "dashboard.invalid-tab" | "export.no-app" | "export.empty-body";
|
|
2
2
|
export interface PercherCoreErrorOptions {
|
|
3
3
|
code: PercherCoreErrorCode;
|
|
4
4
|
hint?: string;
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,aAAa,GACb,0BAA0B,GAC1B,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,iBAAiB,GACjB,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,GACrB,0BAA0B,GAC1B,0BAA0B,GAC1B,aAAa,GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,wBAAwB,GACxB,YAAY,GACZ,aAAa,GACb,yBAAyB,GACzB,sBAAsB,GACtB,eAAe,GACf,8BAA8B,GAC9B,iCAAiC,GACjC,sCAAsC,GACtC,iBAAiB,GACjB,iBAAiB,GACjB,yBAAyB,GACzB,uBAAuB,GACvB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,0BAA0B,GAC1B,iBAAiB,GACjB,gBAAgB,GAChB,qBAAqB,GACrB,oBAAoB,GACpB,kBAAkB,GAClB,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,aAAa,GACb,0BAA0B,GAC1B,gBAAgB,GAChB,sBAAsB,GACtB,gBAAgB,GAChB,iBAAiB,GACjB,oBAAoB,GACpB,qBAAqB,GACrB,qBAAqB,GACrB,0BAA0B,GAC1B,0BAA0B,GAC1B,aAAa,GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,wBAAwB,GACxB,YAAY,GACZ,aAAa,GACb,yBAAyB,GACzB,sBAAsB,GACtB,eAAe,GACf,8BAA8B,GAC9B,iCAAiC,GACjC,sCAAsC,GACtC,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,yBAAyB,GACzB,uBAAuB,GACvB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,0BAA0B,GAC1B,iBAAiB,GACjB,gBAAgB,GAChB,qBAAqB,GACrB,oBAAoB,GACpB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,mBAAmB,CAAC;AAExB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAEhC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB;CAO9D"}
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AA0DA,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAChC,IAAI,CAAuB;IAC3B,IAAI,CAAU;IACd,QAAQ,CAA2B;IAE5C,YAAY,OAAe,EAAE,OAAgC;QAC3D,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IACnC,CAAC;CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,54 +1,69 @@
|
|
|
1
|
+
export { readPercherTomlAppName } from "./app-name";
|
|
2
|
+
export { type AccountDeleteInput, type AccountDeleteResult, type AccountDeletionPreviewInput, type AccountExportInput, type AccountExportResult, accountDelete, accountDeleteInputSchema, accountDeletionPreview, accountDeletionPreviewInputSchema, accountExport, accountExportInputSchema, } from "./commands/account";
|
|
3
|
+
export { type AdminReconcileRoutesInput, adminReconcileRoutes, adminReconcileRoutesInputSchema, } from "./commands/admin-reconcile-routes";
|
|
4
|
+
export { aiFilesInstall, aiFilesInstallInputSchema, aiFilesRemove, aiFilesRemoveInputSchema, aiFilesStatus, aiFilesStatusInputSchema, aiFilesUpdate, aiFilesUpdateInputSchema, type InstallResult as AiFilesInstallResult, type RemoveResult as AiFilesRemoveResult, type StatusResult as AiFilesStatusResult, type UpdateResult as AiFilesUpdateResult, } from "./commands/ai-files";
|
|
5
|
+
export { type WebhookAddInput, type WebhookAddResult, type WebhookEventList, type WebhookListInput, type WebhookListResult, type WebhookRemoveInput, type WebhookRemoveResult, webhookAdd, webhookAddInputSchema, webhookList, webhookListInputSchema, webhookRemove, webhookRemoveInputSchema, } from "./commands/alerts";
|
|
6
|
+
export { type AppResourcesInput, type AppResourcesResult, appResources, appResourcesInputSchema, } from "./commands/app-resources";
|
|
7
|
+
export { type AppTopologyInput, type AppTopologyResult, appTopology, appTopologyInputSchema, } from "./commands/app-topology";
|
|
8
|
+
export { type BillingPortalInput, type BillingPortalResult, type BillingUpgradeInput, type BillingUpgradeResult, billingPortal, billingPortalInputSchema, billingUpgrade, billingUpgradeInputSchema, } from "./commands/billing";
|
|
9
|
+
export { type CreateInput, type CreateResult, create, createInputSchema, } from "./commands/create";
|
|
10
|
+
export { type DashboardInput, dashboard, dashboardInputSchema } from "./commands/dashboard";
|
|
11
|
+
export { type DataInput, type DataResult, data, dataInputSchema } from "./commands/data";
|
|
12
|
+
export { type DataExportInput, type DataExportResult, dataExport, dataExportInputSchema, } from "./commands/data-export";
|
|
13
|
+
export { type DeleteInput, deleteApp, deleteInputSchema, } from "./commands/delete";
|
|
14
|
+
export { type DeploysInspectInput, type DeploysInspectResult, type DeploysListInput, deploysInspect, deploysInspectInputSchema, deploysList, deploysListInputSchema, } from "./commands/deploys";
|
|
15
|
+
export { type DevCallbacks, type DevInput, dev, devInputSchema } from "./commands/dev";
|
|
16
|
+
export { type DiagnoseInput, type DiagnoseResult, diagnose, diagnoseInputSchema, } from "./commands/diagnose";
|
|
17
|
+
export { type DoctorCheck, type DoctorDiagnosis, type DoctorInput, type DoctorPhase, type DoctorResult, type DoctorStatus, doctor, doctorInputSchema, } from "./commands/doctor";
|
|
18
|
+
export { type DomainAddInput, type DomainListInput, type DomainRemoveInput, type DomainVerifyInput, domainAdd, domainAddInputSchema, domainList, domainListInputSchema, domainRemove, domainRemoveInputSchema, domainVerify, domainVerifyInputSchema, } from "./commands/domains";
|
|
19
|
+
export { envList, envListInputSchema, envSet, envSetInputSchema, envUnset, envUnsetInputSchema, } from "./commands/env";
|
|
20
|
+
export { type ExportInput, type ExportResult, exportApp, exportInputSchema, } from "./commands/export";
|
|
21
|
+
export { type ForgejoConnectInput, type ForgejoConnectResult, type ForgejoSetupWebhookInput, type ForgejoSetupWebhookResult, forgejoConnect, forgejoConnectInputSchema, forgejoSetupWebhook, forgejoSetupWebhookInputSchema, } from "./commands/forgejo";
|
|
22
|
+
export { type GenerateInput, type GenerateResult, generate, generateInputSchema, } from "./commands/generate";
|
|
23
|
+
export { type GithubConnectInput, type GithubConnectResult, type GithubSetupWebhookInput, type GithubSetupWebhookResult, githubConnect, githubConnectInputSchema, githubSetupWebhook, githubSetupWebhookInputSchema, } from "./commands/github";
|
|
24
|
+
export { type ImportInput, type ImportResult, importInputSchema, importProject, } from "./commands/import-project";
|
|
25
|
+
export { type InitInput, type InitResult, init, initInputSchema } from "./commands/init";
|
|
26
|
+
export { type InsightSuggestion, type InsightsInput, type InsightsResult, insights, insightsInputSchema, } from "./commands/insights";
|
|
27
|
+
export { type LoginInput, login, loginInputSchema } from "./commands/login";
|
|
28
|
+
export { type LogsInput, logs, logsInputSchema } from "./commands/logs";
|
|
29
|
+
export { type McpConfigResult, type McpInput, mcp, mcpInputSchema, } from "./commands/mcp";
|
|
30
|
+
export { type InspectSupabaseError, type InspectSupabaseInput, type InspectSupabaseResult, type InspectSupabaseStatus, inspectSupabase, inspectSupabaseInputSchema, isMigratableTable, type SupabaseColumn, type SupabaseForeignKey, type SupabaseRlsPolicy, type SupabaseStorageBucket, type SupabaseTable, } from "./commands/migrate-supabase";
|
|
31
|
+
export { type MapOptions, type MigrationPreview, type MigrationRlsPolicyNote, type MigrationUnsupported, mapSupabaseToPocketBase, type PocketBaseCollection, type PocketBaseField, type PocketBaseFieldType, type PocketBaseRelationOptions, type PocketBaseSelectOptions, } from "./commands/migrate-supabase-map";
|
|
32
|
+
export { type MigrateSchemaError, type MigrateSupabaseSchemaInput, type MigrateSupabaseSchemaResult, migrateSupabaseSchema, migrateSupabaseSchemaInputSchema, renderMigrationNotes, } from "./commands/migrate-supabase-schema";
|
|
33
|
+
export { type DataImportScripts, generateDataImportScripts, PB_MIGRATE_OPTIONAL_ENV, PB_MIGRATE_REQUIRED_ENV, } from "./commands/migrate-supabase-scripts";
|
|
34
|
+
export { type RewriteFlag, type RewriteFlagKind, type RewriteSupabaseSdkInput, type RewriteSupabaseSdkResult, rewriteSupabaseSdk, } from "./commands/migrate-supabase-sdk";
|
|
35
|
+
export { rewriteEnvFile, rewritePackageJson, type SkippedFile, type WalkedFile, type WalkedFileKind, type WalkSupabaseProjectInput, type WalkSupabaseProjectResult, type WriteWalkResultInput, type WriteWalkResultOutput, walkSupabaseProject, writeWalkResult, } from "./commands/migrate-supabase-walker";
|
|
36
|
+
export { type OpenInput, open, openInputSchema } from "./commands/open";
|
|
37
|
+
export { type PublishError, type PublishInput, type PublishResult, type PublishTiming, publish, publishInputSchema, } from "./commands/publish";
|
|
38
|
+
export { type PushInput, type PushResult, push, pushInputSchema } from "./commands/push";
|
|
39
|
+
export { type RedeployInput, redeploy, redeployInputSchema, } from "./commands/redeploy";
|
|
40
|
+
export { type RenameInput, type RenameResult, rename, renameInputSchema, } from "./commands/rename";
|
|
41
|
+
export { type ReproduceInput, type ReproduceResult, reproduce, reproduceInputSchema, } from "./commands/reproduce";
|
|
42
|
+
export { type ResetSuperuserInput, type ResetSuperuserResult, resetSuperuser, resetSuperuserInputSchema, } from "./commands/reset-superuser";
|
|
43
|
+
export { type DryRunResult, type ListBackupsInput, listBackups, listBackupsInputSchema, type RestoreInput, type RestoreInternals, restore, restoreInputSchema, } from "./commands/restore";
|
|
44
|
+
export { type ResumeInput, resume, resumeInputSchema, } from "./commands/resume";
|
|
45
|
+
export { type RollbackInput, rollback, rollbackInputSchema, } from "./commands/rollback";
|
|
46
|
+
export { type InvitesAcceptInput, type InvitesDeclineInput, type InvitesListInput, invitesAccept, invitesAcceptInputSchema, invitesDecline, invitesDeclineInputSchema, invitesList, invitesListInputSchema, type ShareInviteInput, type ShareListInput, type ShareRevokeInput, type ShareSetRoleInput, shareInvite, shareInviteInputSchema, shareList, shareListInputSchema, shareRevoke, shareRevokeInputSchema, shareSetRole, shareSetRoleInputSchema, } from "./commands/sharing";
|
|
47
|
+
export { deriveVerdict, type StatusInput, type StatusResult, type StatusVerdict, status, statusInputSchema, } from "./commands/status";
|
|
48
|
+
export { type TransferCancelInput, type TransferInitiateInput, type TransferListForAppInput, type TransfersAcceptInput, type TransfersDeclineInput, type TransfersIncomingInput, transferCancel, transferCancelInputSchema, transferInitiate, transferInitiateInputSchema, transferListForApp, transferListForAppInputSchema, transfersAccept, transfersAcceptInputSchema, transfersDecline, transfersDeclineInputSchema, transfersIncoming, transfersIncomingInputSchema, } from "./commands/transfers";
|
|
49
|
+
export { type UnsuspendInput, type UnsuspendResult, unsuspend, unsuspendInputSchema, } from "./commands/unsuspend";
|
|
50
|
+
export { type AppVersion, type VersionsInput, versions, versionsInputSchema, } from "./commands/versions";
|
|
51
|
+
export { type WaitForDeployInput, type WaitForDeployResult, waitForDeploy, waitForDeployInputSchema, } from "./commands/wait-deploy";
|
|
52
|
+
export { type WhoAmI, whoami } from "./commands/whoami";
|
|
1
53
|
export type { Context, PromptOptions } from "./context";
|
|
54
|
+
export { type DetectedFramework, detectFramework } from "./detect";
|
|
55
|
+
export { type EnvReference, type ScanOptions as EnvScanSourceOptions, scanSourceForEnvRefs, } from "./env-scan-source";
|
|
56
|
+
export { type ClassifiedError, classifyError, type DeployPhase, type ErrorClass, } from "./error-classifier";
|
|
2
57
|
export { PercherCoreError, type PercherCoreErrorCode, type PercherCoreErrorOptions, } from "./errors";
|
|
3
|
-
export { detectFramework, type DetectedFramework } from "./detect";
|
|
4
|
-
export { createTarball, type TarballOptions, type TarballResult } from "./tarball";
|
|
5
|
-
export { scanSourceForEnvRefs, type EnvReference, type ScanOptions as EnvScanSourceOptions, } from "./env-scan-source";
|
|
6
|
-
export { readPercherTomlAppName } from "./app-name";
|
|
7
58
|
export { renderDeployEvent } from "./event-renderer";
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { dashboard, dashboardInputSchema, type DashboardInput } from "./commands/dashboard";
|
|
16
|
-
export { logs, logsInputSchema, type LogsInput } from "./commands/logs";
|
|
17
|
-
export { unsuspend, unsuspendInputSchema, type UnsuspendInput, type UnsuspendResult, } from "./commands/unsuspend";
|
|
18
|
-
export { push, pushInputSchema, type PushInput, type PushResult } from "./commands/push";
|
|
19
|
-
export { publish, publishInputSchema, type PublishInput, type PublishResult, type PublishTiming, type PublishError, } from "./commands/publish";
|
|
20
|
-
export { waitForDeploy, waitForDeployInputSchema, type WaitForDeployInput, type WaitForDeployResult, } from "./commands/wait-deploy";
|
|
21
|
-
export { redeploy, redeployInputSchema, type RedeployInput, } from "./commands/redeploy";
|
|
22
|
-
export { reproduce, reproduceInputSchema, type ReproduceInput, type ReproduceResult, } from "./commands/reproduce";
|
|
23
|
-
export { classifyError, type ClassifiedError, type ErrorClass, type DeployPhase, } from "./error-classifier";
|
|
24
|
-
export { type PublishRecovery, type RecoveryAction, type SuggestedTool, type ReasonCode, type DoctorMode, type PublishStatus, type RecoveryProblem, type RecoveryAlternative, type ToolRecovery, type UserRecovery, type NoneRecovery, type AskUserRecovery, RECOVERY_NONE, RECOVERY_NEEDS_LOGIN, recoveryAsk, recoveryDoctor, recoveryEnv, recoveryFixConfig, recoveryFixProblems, recoveryFromErrorClass, recoveryInspectBuildLog, recoveryLogin, recoveryNone, recoveryRetry, recoveryWait, } from "./recovery";
|
|
25
|
-
export { resetSuperuser, resetSuperuserInputSchema, type ResetSuperuserInput, type ResetSuperuserResult, } from "./commands/reset-superuser";
|
|
26
|
-
export { rename, renameInputSchema, type RenameInput, type RenameResult, } from "./commands/rename";
|
|
27
|
-
export { versions, versionsInputSchema, type VersionsInput, type AppVersion, } from "./commands/versions";
|
|
28
|
-
export { rollback, rollbackInputSchema, type RollbackInput, } from "./commands/rollback";
|
|
29
|
-
export { listBackups, listBackupsInputSchema, type ListBackupsInput, restore, restoreInputSchema, type RestoreInput, type RestoreInternals, type DryRunResult, } from "./commands/restore";
|
|
30
|
-
export { deploysList, deploysListInputSchema, type DeploysListInput, deploysInspect, deploysInspectInputSchema, type DeploysInspectInput, type DeploysInspectResult, } from "./commands/deploys";
|
|
31
|
-
export { mcp, mcpInputSchema, type McpInput, type McpConfigResult, } from "./commands/mcp";
|
|
32
|
-
export { doctor, doctorInputSchema, type DoctorInput, type DoctorResult, type DoctorCheck, type DoctorStatus, type DoctorPhase, type DoctorDiagnosis, } from "./commands/doctor";
|
|
33
|
-
export { dev, devInputSchema, type DevInput, type DevCallbacks } from "./commands/dev";
|
|
34
|
-
export { data, dataInputSchema, type DataInput, type DataResult } from "./commands/data";
|
|
35
|
-
export { dataExport, dataExportInputSchema, type DataExportInput, type DataExportResult, } from "./commands/data-export";
|
|
36
|
-
export { diagnose, diagnoseInputSchema, type DiagnoseInput, type DiagnoseResult, } from "./commands/diagnose";
|
|
37
|
-
export { insights, insightsInputSchema, type InsightsInput, type InsightsResult, type InsightSuggestion, } from "./commands/insights";
|
|
38
|
-
export { billingUpgrade, billingUpgradeInputSchema, billingPortal, billingPortalInputSchema, type BillingUpgradeInput, type BillingUpgradeResult, type BillingPortalInput, type BillingPortalResult, } from "./commands/billing";
|
|
39
|
-
export { create, createInputSchema, type CreateInput, type CreateResult, } from "./commands/create";
|
|
40
|
-
export { domainAdd, domainVerify, domainList, domainRemove, domainAddInputSchema, domainVerifyInputSchema, domainListInputSchema, domainRemoveInputSchema, type DomainAddInput, type DomainVerifyInput, type DomainListInput, type DomainRemoveInput, } from "./commands/domains";
|
|
41
|
-
export { resume, resumeInputSchema, type ResumeInput, } from "./commands/resume";
|
|
42
|
-
export { deleteApp, deleteInputSchema, type DeleteInput, } from "./commands/delete";
|
|
43
|
-
export { importProject, importInputSchema, type ImportInput, type ImportResult, } from "./commands/import-project";
|
|
44
|
-
export { githubConnect, githubConnectInputSchema, type GithubConnectInput, type GithubConnectResult, githubSetupWebhook, githubSetupWebhookInputSchema, type GithubSetupWebhookInput, type GithubSetupWebhookResult, } from "./commands/github";
|
|
45
|
-
export { generate, generateInputSchema, type GenerateInput, type GenerateResult, } from "./commands/generate";
|
|
46
|
-
export { createWatcher, type WatcherOptions, type Watcher } from "./watcher";
|
|
47
|
-
export { isBlockedName, BLOCKED_APP_NAMES } from "./validation/blocked-names";
|
|
48
|
-
export { qrToTerminal, qrToDataUri } from "./qr";
|
|
49
|
-
export { listTemplates, listTemplateMetadata, getTemplateMetadata, scaffoldTemplate, TEMPLATE_CATALOG, type ScaffoldInput, type ScaffoldResult, type TemplateCategory, type TemplateDataMode, type TemplateMetadata, type TemplateRuntime, } from "./templates";
|
|
50
|
-
export { INTEGRATIONS, getIntegration, listIntegrationsByCategory, type IntegrationGuide, } from "./integrations";
|
|
51
|
-
export { PLAN_CATALOG, PLAN_IDS, getPlanLimits, getEffectivePlanLimits, getPlanInfo, type PlanId, type PlanLimits, type PlanInfo, } from "./plans";
|
|
52
|
-
export { aiFilesInstall, aiFilesUpdate, aiFilesStatus, aiFilesRemove, aiFilesInstallInputSchema, aiFilesUpdateInputSchema, aiFilesStatusInputSchema, aiFilesRemoveInputSchema, type InstallResult as AiFilesInstallResult, type UpdateResult as AiFilesUpdateResult, type StatusResult as AiFilesStatusResult, type RemoveResult as AiFilesRemoveResult, } from "./commands/ai-files";
|
|
59
|
+
export { getIntegration, INTEGRATIONS, type IntegrationGuide, listIntegrationsByCategory, } from "./integrations";
|
|
60
|
+
export { getEffectivePlanLimits, getPlanInfo, getPlanLimits, PB_INITIAL_FOOTPRINT_MB, PLAN_CATALOG, PLAN_IDS, type PlanId, type PlanInfo, type PlanLimits, } from "./plans";
|
|
61
|
+
export { qrToDataUri, qrToTerminal } from "./qr";
|
|
62
|
+
export { type AskUserRecovery, type DoctorMode, type NoneRecovery, type PublishRecovery, type PublishStatus, RECOVERY_NEEDS_LOGIN, RECOVERY_NONE, type ReasonCode, type RecoveryAction, type RecoveryAlternative, type RecoveryProblem, recoveryAsk, recoveryAuthPending, recoveryDoctor, recoveryEnv, recoveryFixConfig, recoveryFixProblems, recoveryFromErrorClass, recoveryInspectBuildLog, recoveryLogin, recoveryNone, recoveryRetry, recoveryWait, type SuggestedTool, type ToolRecovery, type UserRecovery, } from "./recovery";
|
|
63
|
+
export { renderStaticFrameworkCaddyfile, renderStaticFrameworkDockerfile, STATIC_DOCKER_PORT, type StaticCaddyfileInput, type StaticDockerfileInput, } from "./static-docker";
|
|
64
|
+
export { createTarball, type TarballOptions, type TarballResult } from "./tarball";
|
|
65
|
+
export { getTemplateMetadata, listTemplateMetadata, listTemplates, type ScaffoldInput, type ScaffoldResult, scaffoldTemplate, TEMPLATE_CATALOG, type TemplateCategory, type TemplateDataMode, type TemplateMetadata, type TemplateRuntime, } from "./templates";
|
|
53
66
|
export { AI_FILE_TEMPLATES } from "./templates/ai-files";
|
|
67
|
+
export { BLOCKED_APP_NAMES, isBlockedName } from "./validation/blocked-names";
|
|
68
|
+
export { createWatcher, type Watcher, type WatcherOptions } from "./watcher";
|
|
54
69
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,aAAa,EACb,wBAAwB,EACxB,sBAAsB,EACtB,iCAAiC,EACjC,aAAa,EACb,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,yBAAyB,EAC9B,oBAAoB,EACpB,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,yBAAyB,EACzB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,wBAAwB,EACxB,KAAK,aAAa,IAAI,oBAAoB,EAC1C,KAAK,YAAY,IAAI,mBAAmB,EACxC,KAAK,YAAY,IAAI,mBAAmB,EACxC,KAAK,YAAY,IAAI,mBAAmB,GACzC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,sBAAsB,EACtB,aAAa,EACb,wBAAwB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,YAAY,EACZ,uBAAuB,GACxB,MAAM,0BAA0B,CA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AC3B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AACnF,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,KAAK,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,53 +1,68 @@
|
|
|
1
|
-
export { PercherCoreError, } from "./errors";
|
|
2
|
-
export { detectFramework } from "./detect";
|
|
3
|
-
export { createTarball } from "./tarball";
|
|
4
|
-
export { scanSourceForEnvRefs, } from "./env-scan-source";
|
|
5
1
|
export { readPercherTomlAppName } from "./app-name";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
2
|
+
export { accountDelete, accountDeleteInputSchema, accountDeletionPreview, accountDeletionPreviewInputSchema, accountExport, accountExportInputSchema, } from "./commands/account";
|
|
3
|
+
export { adminReconcileRoutes, adminReconcileRoutesInputSchema, } from "./commands/admin-reconcile-routes";
|
|
4
|
+
export { aiFilesInstall, aiFilesInstallInputSchema, aiFilesRemove, aiFilesRemoveInputSchema, aiFilesStatus, aiFilesStatusInputSchema, aiFilesUpdate, aiFilesUpdateInputSchema, } from "./commands/ai-files";
|
|
5
|
+
export { webhookAdd, webhookAddInputSchema, webhookList, webhookListInputSchema, webhookRemove, webhookRemoveInputSchema, } from "./commands/alerts";
|
|
6
|
+
export { appResources, appResourcesInputSchema, } from "./commands/app-resources";
|
|
7
|
+
export { appTopology, appTopologyInputSchema, } from "./commands/app-topology";
|
|
8
|
+
export { billingPortal, billingPortalInputSchema, billingUpgrade, billingUpgradeInputSchema, } from "./commands/billing";
|
|
9
|
+
export { create, createInputSchema, } from "./commands/create";
|
|
14
10
|
export { dashboard, dashboardInputSchema } from "./commands/dashboard";
|
|
11
|
+
export { data, dataInputSchema } from "./commands/data";
|
|
12
|
+
export { dataExport, dataExportInputSchema, } from "./commands/data-export";
|
|
13
|
+
export { deleteApp, deleteInputSchema, } from "./commands/delete";
|
|
14
|
+
export { deploysInspect, deploysInspectInputSchema, deploysList, deploysListInputSchema, } from "./commands/deploys";
|
|
15
|
+
export { dev, devInputSchema } from "./commands/dev";
|
|
16
|
+
export { diagnose, diagnoseInputSchema, } from "./commands/diagnose";
|
|
17
|
+
export { doctor, doctorInputSchema, } from "./commands/doctor";
|
|
18
|
+
export { domainAdd, domainAddInputSchema, domainList, domainListInputSchema, domainRemove, domainRemoveInputSchema, domainVerify, domainVerifyInputSchema, } from "./commands/domains";
|
|
19
|
+
export { envList, envListInputSchema, envSet, envSetInputSchema, envUnset, envUnsetInputSchema, } from "./commands/env";
|
|
20
|
+
export { exportApp, exportInputSchema, } from "./commands/export";
|
|
21
|
+
export { forgejoConnect, forgejoConnectInputSchema, forgejoSetupWebhook, forgejoSetupWebhookInputSchema, } from "./commands/forgejo";
|
|
22
|
+
export { generate, generateInputSchema, } from "./commands/generate";
|
|
23
|
+
export { githubConnect, githubConnectInputSchema, githubSetupWebhook, githubSetupWebhookInputSchema, } from "./commands/github";
|
|
24
|
+
export { importInputSchema, importProject, } from "./commands/import-project";
|
|
25
|
+
export { init, initInputSchema } from "./commands/init";
|
|
26
|
+
export { insights, insightsInputSchema, } from "./commands/insights";
|
|
27
|
+
export { login, loginInputSchema } from "./commands/login";
|
|
15
28
|
export { logs, logsInputSchema } from "./commands/logs";
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
29
|
+
export { mcp, mcpInputSchema, } from "./commands/mcp";
|
|
30
|
+
export { inspectSupabase, inspectSupabaseInputSchema, isMigratableTable, } from "./commands/migrate-supabase";
|
|
31
|
+
export { mapSupabaseToPocketBase, } from "./commands/migrate-supabase-map";
|
|
32
|
+
export { migrateSupabaseSchema, migrateSupabaseSchemaInputSchema, renderMigrationNotes, } from "./commands/migrate-supabase-schema";
|
|
33
|
+
export { generateDataImportScripts, PB_MIGRATE_OPTIONAL_ENV, PB_MIGRATE_REQUIRED_ENV, } from "./commands/migrate-supabase-scripts";
|
|
34
|
+
export { rewriteSupabaseSdk, } from "./commands/migrate-supabase-sdk";
|
|
35
|
+
export { rewriteEnvFile, rewritePackageJson, walkSupabaseProject, writeWalkResult, } from "./commands/migrate-supabase-walker";
|
|
36
|
+
export { open, openInputSchema } from "./commands/open";
|
|
18
37
|
export { publish, publishInputSchema, } from "./commands/publish";
|
|
19
|
-
export {
|
|
38
|
+
export { push, pushInputSchema } from "./commands/push";
|
|
20
39
|
export { redeploy, redeployInputSchema, } from "./commands/redeploy";
|
|
40
|
+
export { rename, renameInputSchema, } from "./commands/rename";
|
|
21
41
|
export { reproduce, reproduceInputSchema, } from "./commands/reproduce";
|
|
22
|
-
export { classifyError, } from "./error-classifier";
|
|
23
|
-
export { RECOVERY_NONE, RECOVERY_NEEDS_LOGIN, recoveryAsk, recoveryDoctor, recoveryEnv, recoveryFixConfig, recoveryFixProblems, recoveryFromErrorClass, recoveryInspectBuildLog, recoveryLogin, recoveryNone, recoveryRetry, recoveryWait, } from "./recovery";
|
|
24
42
|
export { resetSuperuser, resetSuperuserInputSchema, } from "./commands/reset-superuser";
|
|
25
|
-
export { rename, renameInputSchema, } from "./commands/rename";
|
|
26
|
-
export { versions, versionsInputSchema, } from "./commands/versions";
|
|
27
|
-
export { rollback, rollbackInputSchema, } from "./commands/rollback";
|
|
28
43
|
export { listBackups, listBackupsInputSchema, restore, restoreInputSchema, } from "./commands/restore";
|
|
29
|
-
export { deploysList, deploysListInputSchema, deploysInspect, deploysInspectInputSchema, } from "./commands/deploys";
|
|
30
|
-
export { mcp, mcpInputSchema, } from "./commands/mcp";
|
|
31
|
-
export { doctor, doctorInputSchema, } from "./commands/doctor";
|
|
32
|
-
export { dev, devInputSchema } from "./commands/dev";
|
|
33
|
-
export { data, dataInputSchema } from "./commands/data";
|
|
34
|
-
export { dataExport, dataExportInputSchema, } from "./commands/data-export";
|
|
35
|
-
export { diagnose, diagnoseInputSchema, } from "./commands/diagnose";
|
|
36
|
-
export { insights, insightsInputSchema, } from "./commands/insights";
|
|
37
|
-
export { billingUpgrade, billingUpgradeInputSchema, billingPortal, billingPortalInputSchema, } from "./commands/billing";
|
|
38
|
-
export { create, createInputSchema, } from "./commands/create";
|
|
39
|
-
export { domainAdd, domainVerify, domainList, domainRemove, domainAddInputSchema, domainVerifyInputSchema, domainListInputSchema, domainRemoveInputSchema, } from "./commands/domains";
|
|
40
44
|
export { resume, resumeInputSchema, } from "./commands/resume";
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
45
|
+
export { rollback, rollbackInputSchema, } from "./commands/rollback";
|
|
46
|
+
export { invitesAccept, invitesAcceptInputSchema, invitesDecline, invitesDeclineInputSchema, invitesList, invitesListInputSchema, shareInvite, shareInviteInputSchema, shareList, shareListInputSchema, shareRevoke, shareRevokeInputSchema, shareSetRole, shareSetRoleInputSchema, } from "./commands/sharing";
|
|
47
|
+
export { deriveVerdict, status, statusInputSchema, } from "./commands/status";
|
|
48
|
+
export { transferCancel, transferCancelInputSchema, transferInitiate, transferInitiateInputSchema, transferListForApp, transferListForAppInputSchema, transfersAccept, transfersAcceptInputSchema, transfersDecline, transfersDeclineInputSchema, transfersIncoming, transfersIncomingInputSchema, } from "./commands/transfers";
|
|
49
|
+
export { unsuspend, unsuspendInputSchema, } from "./commands/unsuspend";
|
|
50
|
+
export { versions, versionsInputSchema, } from "./commands/versions";
|
|
51
|
+
export { waitForDeploy, waitForDeployInputSchema, } from "./commands/wait-deploy";
|
|
52
|
+
export { whoami } from "./commands/whoami";
|
|
53
|
+
export { detectFramework } from "./detect";
|
|
54
|
+
export { scanSourceForEnvRefs, } from "./env-scan-source";
|
|
55
|
+
export { classifyError, } from "./error-classifier";
|
|
56
|
+
export { PercherCoreError, } from "./errors";
|
|
57
|
+
export { renderDeployEvent } from "./event-renderer";
|
|
58
|
+
export { getIntegration, INTEGRATIONS, listIntegrationsByCategory, } from "./integrations";
|
|
59
|
+
export { getEffectivePlanLimits, getPlanInfo, getPlanLimits, PB_INITIAL_FOOTPRINT_MB, PLAN_CATALOG, PLAN_IDS, } from "./plans";
|
|
60
|
+
export { qrToDataUri, qrToTerminal } from "./qr";
|
|
61
|
+
export { RECOVERY_NEEDS_LOGIN, RECOVERY_NONE, recoveryAsk, recoveryAuthPending, recoveryDoctor, recoveryEnv, recoveryFixConfig, recoveryFixProblems, recoveryFromErrorClass, recoveryInspectBuildLog, recoveryLogin, recoveryNone, recoveryRetry, recoveryWait, } from "./recovery";
|
|
62
|
+
export { renderStaticFrameworkCaddyfile, renderStaticFrameworkDockerfile, STATIC_DOCKER_PORT, } from "./static-docker";
|
|
63
|
+
export { createTarball } from "./tarball";
|
|
64
|
+
export { getTemplateMetadata, listTemplateMetadata, listTemplates, scaffoldTemplate, TEMPLATE_CATALOG, } from "./templates";
|
|
52
65
|
export { AI_FILE_TEMPLATES } from "./templates/ai-files";
|
|
66
|
+
export { BLOCKED_APP_NAMES, isBlockedName } from "./validation/blocked-names";
|
|
67
|
+
export { createWatcher } from "./watcher";
|
|
53
68
|
//# sourceMappingURL=index.js.map
|