@percher/core 0.4.10 → 0.4.11
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/ai-files-manifest.d.ts +1 -1
- package/dist/commands/account.d.ts +1 -1
- package/dist/commands/account.js +2 -2
- package/dist/commands/admin-reconcile-routes.d.ts +1 -1
- package/dist/commands/ai-files.d.ts +2 -2
- package/dist/commands/ai-files.js +2 -2
- package/dist/commands/alerts.d.ts +1 -1
- package/dist/commands/app-resources.d.ts +1 -1
- package/dist/commands/app-resources.js +2 -2
- package/dist/commands/app-topology.d.ts +1 -1
- package/dist/commands/app-topology.js +2 -2
- package/dist/commands/billing.d.ts +1 -1
- package/dist/commands/billing.js +1 -1
- package/dist/commands/cache.d.ts +1 -1
- package/dist/commands/cache.js +2 -2
- package/dist/commands/capabilities.d.ts +1 -1
- package/dist/commands/claim.d.ts +1 -1
- package/dist/commands/claim.js +1 -1
- package/dist/commands/create.d.ts +2 -2
- package/dist/commands/create.js +2 -2
- package/dist/commands/dashboard.d.ts +1 -1
- package/dist/commands/dashboard.js +2 -2
- package/dist/commands/data-export.d.ts +1 -1
- package/dist/commands/data-export.js +3 -3
- package/dist/commands/data.d.ts +1 -1
- package/dist/commands/data.js +2 -2
- package/dist/commands/delete.d.ts +1 -1
- package/dist/commands/delete.js +2 -2
- package/dist/commands/deploys.d.ts +1 -1
- package/dist/commands/deploys.js +2 -2
- package/dist/commands/dev.d.ts +1 -1
- package/dist/commands/dev.js +3 -3
- package/dist/commands/diagnose.d.ts +1 -1
- package/dist/commands/diagnose.js +2 -2
- package/dist/commands/diff.d.ts +1 -1
- package/dist/commands/diff.js +2 -2
- package/dist/commands/doctor.d.ts +3 -3
- package/dist/commands/doctor.js +4 -4
- package/dist/commands/domains.d.ts +1 -1
- package/dist/commands/domains.js +2 -2
- package/dist/commands/env.d.ts +1 -1
- package/dist/commands/env.js +2 -2
- package/dist/commands/export.d.ts +1 -1
- package/dist/commands/export.js +2 -2
- package/dist/commands/forgejo.d.ts +1 -1
- package/dist/commands/forgejo.js +2 -2
- package/dist/commands/generate.d.ts +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/github.d.ts +1 -1
- package/dist/commands/github.js +2 -2
- package/dist/commands/import-project.d.ts +1 -1
- package/dist/commands/import-project.js +2 -2
- package/dist/commands/init.d.ts +2 -2
- package/dist/commands/init.js +3 -3
- package/dist/commands/insights.d.ts +1 -1
- package/dist/commands/insights.js +2 -2
- package/dist/commands/inspect-link.d.ts +1 -1
- package/dist/commands/inspect-link.js +2 -2
- package/dist/commands/login.d.ts +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/logs.d.ts +1 -1
- package/dist/commands/logs.js +2 -2
- package/dist/commands/mcp.d.ts +1 -1
- package/dist/commands/migrate-supabase-map.d.ts +1 -1
- package/dist/commands/migrate-supabase-recipes.d.ts +28 -0
- package/dist/commands/migrate-supabase-recipes.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-recipes.js +92 -0
- package/dist/commands/migrate-supabase-recipes.js.map +1 -0
- package/dist/commands/migrate-supabase-rewrite.d.ts +8 -3
- package/dist/commands/migrate-supabase-rewrite.d.ts.map +1 -1
- package/dist/commands/migrate-supabase-rewrite.js +155 -11
- package/dist/commands/migrate-supabase-rewrite.js.map +1 -1
- package/dist/commands/migrate-supabase-scaffold.d.ts +25 -0
- package/dist/commands/migrate-supabase-scaffold.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-scaffold.js +234 -0
- package/dist/commands/migrate-supabase-scaffold.js.map +1 -0
- package/dist/commands/migrate-supabase-schema.d.ts +4 -4
- package/dist/commands/migrate-supabase-schema.js +4 -4
- package/dist/commands/migrate-supabase-scripts.d.ts +1 -1
- package/dist/commands/migrate-supabase-sdk.d.ts +34 -0
- package/dist/commands/migrate-supabase-sdk.d.ts.map +1 -1
- package/dist/commands/migrate-supabase-sdk.js +169 -0
- package/dist/commands/migrate-supabase-sdk.js.map +1 -1
- package/dist/commands/migrate-supabase-status.d.ts +92 -0
- package/dist/commands/migrate-supabase-status.d.ts.map +1 -0
- package/dist/commands/migrate-supabase-status.js +470 -0
- package/dist/commands/migrate-supabase-status.js.map +1 -0
- package/dist/commands/migrate-supabase-walker.d.ts +15 -1
- package/dist/commands/migrate-supabase-walker.d.ts.map +1 -1
- package/dist/commands/migrate-supabase-walker.js +49 -5
- package/dist/commands/migrate-supabase-walker.js.map +1 -1
- package/dist/commands/migrate-supabase.d.ts +2 -2
- package/dist/commands/migrate-supabase.js +1 -1
- package/dist/commands/open.d.ts +1 -1
- package/dist/commands/open.js +2 -2
- package/dist/commands/preview-branch.d.ts +1 -1
- package/dist/commands/preview-branch.js +2 -2
- package/dist/commands/publish-api-error.d.ts +1 -1
- package/dist/commands/publish-api-error.js +1 -1
- package/dist/commands/publish-failure.d.ts +3 -3
- package/dist/commands/publish-failure.js +3 -3
- package/dist/commands/publish.d.ts +3 -3
- package/dist/commands/publish.js +13 -13
- package/dist/commands/push.d.ts +2 -2
- package/dist/commands/push.js +8 -8
- package/dist/commands/redeploy.d.ts +2 -2
- package/dist/commands/redeploy.js +4 -4
- package/dist/commands/rename.d.ts +1 -1
- package/dist/commands/rename.js +2 -2
- package/dist/commands/reproduce.d.ts +1 -1
- package/dist/commands/reproduce.js +1 -1
- package/dist/commands/reset-superuser.d.ts +1 -1
- package/dist/commands/reset-superuser.js +2 -2
- package/dist/commands/restore.d.ts +1 -1
- package/dist/commands/restore.js +2 -2
- package/dist/commands/resume.d.ts +1 -1
- package/dist/commands/resume.js +2 -2
- package/dist/commands/rollback.d.ts +1 -1
- package/dist/commands/rollback.js +2 -2
- package/dist/commands/sharing.d.ts +1 -1
- package/dist/commands/sharing.js +2 -2
- package/dist/commands/status.d.ts +1 -1
- package/dist/commands/transfers.d.ts +1 -1
- package/dist/commands/transfers.js +2 -2
- package/dist/commands/unsuspend.d.ts +1 -1
- package/dist/commands/versions.d.ts +1 -1
- package/dist/commands/versions.js +2 -2
- package/dist/commands/wait-deploy.d.ts +3 -3
- package/dist/commands/wait-deploy.js +3 -3
- package/dist/commands/whoami.d.ts +1 -1
- package/dist/detect.js +1 -1
- package/dist/index.d.ts +77 -75
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +76 -74
- package/dist/index.js.map +1 -1
- package/dist/poll-deployment.d.ts +1 -1
- package/dist/recovery.d.ts +1 -1
- package/dist/structured-error-codes.d.ts +1 -1
- package/dist/templates/ai-files/index.js +2 -2
- package/package.json +6 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeletionPreview } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
/**
|
|
5
5
|
* IMPLEMENTING-followup item 7 — GDPR account commands. The server
|
|
6
6
|
* already exposes GET /account/export (Art. 20) and DELETE /account
|
package/dist/commands/account.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
2
2
|
import { join, resolve } from "node:path";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { PercherCoreError } from "../errors";
|
|
5
|
-
import { writeResponseToFile } from "../stream-utils";
|
|
4
|
+
import { PercherCoreError } from "../errors.js";
|
|
5
|
+
import { writeResponseToFile } from "../stream-utils.js";
|
|
6
6
|
/**
|
|
7
7
|
* IMPLEMENTING-followup item 7 — GDPR account commands. The server
|
|
8
8
|
* already exposes GET /account/export (Art. 20) and DELETE /account
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AdminReconcileRoutesResult } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
/**
|
|
5
5
|
* FUTURE18 Fas 4 — `percher admin reconcile-routes` command. Thin
|
|
6
6
|
* wrapper around the client's `adminReconcileRoutes` so the CLI,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { type FileStatus } from "../ai-files-manifest";
|
|
3
|
-
import type { Context } from "../context";
|
|
2
|
+
import { type FileStatus } from "../ai-files-manifest.js";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
export declare const aiFilesInstallInputSchema: z.ZodObject<{
|
|
5
5
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
}, z.core.$strip>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { classifyFile, hashContent, hasSymlinkInPath, loadManifest, saveManifest, } from "../ai-files-manifest";
|
|
5
|
-
import { AI_FILE_TEMPLATES } from "../templates/ai-files";
|
|
4
|
+
import { classifyFile, hashContent, hasSymlinkInPath, loadManifest, saveManifest, } from "../ai-files-manifest.js";
|
|
5
|
+
import { AI_FILE_TEMPLATES } from "../templates/ai-files/index.js";
|
|
6
6
|
export const aiFilesInstallInputSchema = z.object({
|
|
7
7
|
force: z.boolean().optional(),
|
|
8
8
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppResources } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
export declare const appResourcesInputSchema: z.ZodObject<{
|
|
5
5
|
app: z.ZodOptional<z.ZodString>;
|
|
6
6
|
window: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const appResourcesInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
window: z.enum(["1h", "24h", "7d", "30d"]).optional(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AppTopology } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
export declare const appTopologyInputSchema: z.ZodObject<{
|
|
5
5
|
app: z.ZodOptional<z.ZodString>;
|
|
6
6
|
}, z.core.$strip>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const appTopologyInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
});
|
package/dist/commands/billing.js
CHANGED
package/dist/commands/cache.d.ts
CHANGED
package/dist/commands/cache.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const cacheResetInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { Context } from "../context";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
3
|
export declare const capabilitiesInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
4
4
|
export type CapabilitiesInput = z.infer<typeof capabilitiesInputSchema>;
|
|
5
5
|
/** Discovery: platform features + account plan, limits and usage. */
|
package/dist/commands/claim.d.ts
CHANGED
package/dist/commands/claim.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { clearAnonClaim, getAnonClaim, listAnonClaimApps } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
4
4
|
export const claimInputSchema = z.object({
|
|
5
5
|
app: z
|
|
6
6
|
.string()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { Context } from "../context";
|
|
3
|
-
import { type ScaffoldResult } from "../templates";
|
|
2
|
+
import type { Context } from "../context.js";
|
|
3
|
+
import { type ScaffoldResult } from "../templates.js";
|
|
4
4
|
export declare const createInputSchema: z.ZodObject<{
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
template: z.ZodString;
|
package/dist/commands/create.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { join, resolve } from "node:path";
|
|
2
2
|
import { APP_NAME_RE } from "@percher/shared";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { PercherCoreError } from "../errors";
|
|
5
|
-
import { listTemplates, scaffoldTemplate } from "../templates";
|
|
4
|
+
import { PercherCoreError } from "../errors.js";
|
|
5
|
+
import { listTemplates, scaffoldTemplate } from "../templates.js";
|
|
6
6
|
export const createInputSchema = z.object({
|
|
7
7
|
name: z
|
|
8
8
|
.string()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const dashboardInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
tab: z.string().optional(),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolve } from "node:path";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
4
|
-
import { PercherCoreError } from "../errors";
|
|
5
|
-
import { writeResponseToFile } from "../stream-utils";
|
|
3
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
4
|
+
import { PercherCoreError } from "../errors.js";
|
|
5
|
+
import { writeResponseToFile } from "../stream-utils.js";
|
|
6
6
|
export const dataExportInputSchema = z.object({
|
|
7
7
|
app: z.string().optional().describe("App name or id. Defaults to the app in percher.toml."),
|
|
8
8
|
out: z
|
package/dist/commands/data.d.ts
CHANGED
package/dist/commands/data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const dataInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
json: z.boolean().optional(),
|
package/dist/commands/delete.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const deleteInputSchema = z.object({
|
|
5
5
|
app: z.string().optional().describe("App name to delete (defaults to percher.toml app name)"),
|
|
6
6
|
confirm: z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Deployment } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
export declare const deploysListInputSchema: z.ZodObject<{
|
|
5
5
|
app: z.ZodOptional<z.ZodString>;
|
|
6
6
|
limit: z.ZodOptional<z.ZodNumber>;
|
package/dist/commands/deploys.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PercherApiError } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
4
|
-
import { PercherCoreError } from "../errors";
|
|
3
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
4
|
+
import { PercherCoreError } from "../errors.js";
|
|
5
5
|
export const deploysListInputSchema = z.object({
|
|
6
6
|
app: z.string().optional(),
|
|
7
7
|
limit: z.number().int().positive().max(100).optional(),
|
package/dist/commands/dev.d.ts
CHANGED
package/dist/commands/dev.js
CHANGED
|
@@ -3,9 +3,9 @@ import { join } from "node:path";
|
|
|
3
3
|
import { TIMEOUTS } from "@percher/shared/timeouts";
|
|
4
4
|
import { parseFile } from "@percher/toml";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
import { PercherCoreError } from "../errors";
|
|
7
|
-
import { createTarball } from "../tarball";
|
|
8
|
-
import { createWatcher } from "../watcher";
|
|
6
|
+
import { PercherCoreError } from "../errors.js";
|
|
7
|
+
import { createTarball } from "../tarball.js";
|
|
8
|
+
import { createWatcher } from "../watcher.js";
|
|
9
9
|
export const devInputSchema = z.object({
|
|
10
10
|
app: z.string().optional(),
|
|
11
11
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const diagnoseInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
/**
|
package/dist/commands/diff.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DeployChanges } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
export declare const diffInputSchema: z.ZodObject<{
|
|
5
5
|
app: z.ZodOptional<z.ZodString>;
|
|
6
6
|
base: z.ZodOptional<z.ZodString>;
|
package/dist/commands/diff.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const diffInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
base: z.string().optional(),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BuildProblem, CrashReport, SuspectDeploy } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { type ClassifiedError } from "../error-classifier";
|
|
5
|
-
import { type PublishRecovery, type ReasonCode } from "../recovery";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { type ClassifiedError } from "../error-classifier.js";
|
|
5
|
+
import { type PublishRecovery, type ReasonCode } from "../recovery.js";
|
|
6
6
|
export declare const doctorInputSchema: z.ZodObject<{
|
|
7
7
|
app: z.ZodOptional<z.ZodString>;
|
|
8
8
|
json: z.ZodOptional<z.ZodBoolean>;
|
package/dist/commands/doctor.js
CHANGED
|
@@ -2,10 +2,10 @@ import { existsSync } from "node:fs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { PercherTomlError, parseFile } from "@percher/toml";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
6
|
-
import { classifyError } from "../error-classifier";
|
|
7
|
-
import { buildProblemToRecoveryProblem, recoveryAsk, recoveryEnv, recoveryFixConfig, recoveryFixProblems, recoveryInspectBuildLog, recoveryLogin, recoveryNone, recoveryWait, } from "../recovery";
|
|
8
|
-
import { resolveReplaced } from "./wait-deploy";
|
|
5
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
6
|
+
import { classifyError } from "../error-classifier.js";
|
|
7
|
+
import { buildProblemToRecoveryProblem, recoveryAsk, recoveryEnv, recoveryFixConfig, recoveryFixProblems, recoveryInspectBuildLog, recoveryLogin, recoveryNone, recoveryWait, } from "../recovery.js";
|
|
8
|
+
import { resolveReplaced } from "./wait-deploy.js";
|
|
9
9
|
export const doctorInputSchema = z.object({
|
|
10
10
|
app: z.string().optional(),
|
|
11
11
|
json: z.boolean().optional(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CustomDomainAddResult, CustomDomainEntry, CustomDomainVerifyResult } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
4
|
export declare const domainAddInputSchema: z.ZodObject<{
|
|
5
5
|
app: z.ZodOptional<z.ZodString>;
|
|
6
6
|
domain: z.ZodString;
|
package/dist/commands/domains.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const domainAddInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
domain: z.string().min(1, "Domain is required"),
|
package/dist/commands/env.d.ts
CHANGED
package/dist/commands/env.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const envSetInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
values: z.record(z.string(), z.string()),
|
package/dist/commands/export.js
CHANGED
|
@@ -3,8 +3,8 @@ import { createWriteStream } from "node:fs";
|
|
|
3
3
|
import { rename, unlink } from "node:fs/promises";
|
|
4
4
|
import { isAbsolute, resolve as resolvePath } from "node:path";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
7
|
-
import { PercherCoreError } from "../errors";
|
|
6
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
7
|
+
import { PercherCoreError } from "../errors.js";
|
|
8
8
|
export const exportInputSchema = z.object({
|
|
9
9
|
app: z.string().optional(),
|
|
10
10
|
/** Where to write the bundle. Defaults to `./{appName}-{date}.tar.gz` in cwd.
|
package/dist/commands/forgejo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
/**
|
|
5
5
|
* FUTURE9 Fas 6 — Forgejo (self-hosted Gitea fork) connect + webhook
|
|
6
6
|
* setup. Mirrors the GitHub commands one-for-one; the only
|
|
@@ -2,7 +2,7 @@ import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { getEnvValues, parseFile } from "@percher/toml";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import { PercherCoreError } from "../errors";
|
|
5
|
+
import { PercherCoreError } from "../errors.js";
|
|
6
6
|
export const generateInputSchema = z.object({
|
|
7
7
|
cwd: z.string().optional(),
|
|
8
8
|
});
|
package/dist/commands/github.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
// Keep in sync with the API-side GITHUB_URL_RE in packages/api/src/routes/github.ts
|
|
5
5
|
const GITHUB_URL_RE = /^https:\/\/github\.com\/[\w.-]+\/[\w.-]+(\.git)?$/;
|
|
6
6
|
export const githubConnectInputSchema = z.object({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { PercherCoreError } from "../errors";
|
|
5
|
-
import { renderStaticFrameworkCaddyfile, renderStaticFrameworkDockerfile, STATIC_DOCKER_PORT, } from "../static-docker";
|
|
4
|
+
import { PercherCoreError } from "../errors.js";
|
|
5
|
+
import { renderStaticFrameworkCaddyfile, renderStaticFrameworkDockerfile, STATIC_DOCKER_PORT, } from "../static-docker.js";
|
|
6
6
|
export const importInputSchema = z.object({
|
|
7
7
|
from: z
|
|
8
8
|
.enum(["vercel", "netlify"])
|
package/dist/commands/init.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type PercherConfig } from "@percher/toml";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type { Context } from "../context";
|
|
4
|
-
import { type DetectedFramework } from "../detect";
|
|
3
|
+
import type { Context } from "../context.js";
|
|
4
|
+
import { type DetectedFramework } from "../detect.js";
|
|
5
5
|
/**
|
|
6
6
|
* FUTURE11 Fas 5 — detect names that almost certainly came from an
|
|
7
7
|
* auto-generated temp directory (timestamps, date stamps, very long
|
package/dist/commands/init.js
CHANGED
|
@@ -2,9 +2,9 @@ import { existsSync, writeFileSync } from "node:fs";
|
|
|
2
2
|
import { basename, join } from "node:path";
|
|
3
3
|
import { generateName, serialize } from "@percher/toml";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import { detectFramework, refineBunRuntime } from "../detect";
|
|
6
|
-
import { PercherCoreError } from "../errors";
|
|
7
|
-
import { renderStaticFrameworkCaddyfile, renderStaticFrameworkDockerfile } from "../static-docker";
|
|
5
|
+
import { detectFramework, refineBunRuntime } from "../detect.js";
|
|
6
|
+
import { PercherCoreError } from "../errors.js";
|
|
7
|
+
import { renderStaticFrameworkCaddyfile, renderStaticFrameworkDockerfile } from "../static-docker.js";
|
|
8
8
|
/**
|
|
9
9
|
* FUTURE11 Fas 5 — detect names that almost certainly came from an
|
|
10
10
|
* auto-generated temp directory (timestamps, date stamps, very long
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const insightsInputSchema = z.object({
|
|
5
5
|
app: z.string().optional(),
|
|
6
6
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
2
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const inspectLinkInputSchema = z.object({
|
|
5
5
|
app: z.string().optional().describe("App name (defaults to percher.toml)"),
|
|
6
6
|
revoke: z.boolean().optional().describe("Revoke the app's inspect link instead of creating one"),
|
package/dist/commands/login.d.ts
CHANGED
package/dist/commands/login.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PercherClient, saveConfig } from "@percher/client";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { PercherCoreError } from "../errors";
|
|
3
|
+
import { PercherCoreError } from "../errors.js";
|
|
4
4
|
export const loginInputSchema = z.object({
|
|
5
5
|
token: z.string().optional(),
|
|
6
6
|
apiUrl: z.string().url().optional(),
|
package/dist/commands/logs.d.ts
CHANGED
package/dist/commands/logs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MAX_LOG_SEARCH_LENGTH } from "@percher/shared";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { readPercherTomlAppName } from "../app-name";
|
|
4
|
-
import { PercherCoreError } from "../errors";
|
|
3
|
+
import { readPercherTomlAppName } from "../app-name.js";
|
|
4
|
+
import { PercherCoreError } from "../errors.js";
|
|
5
5
|
/**
|
|
6
6
|
* FUTURE9 Fas 1 — server-side log filtering exposed to CLI + MCP.
|
|
7
7
|
* Closes the gap between `percher_doctor` (crash diagnosis) and blind
|