@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.
Files changed (140) hide show
  1. package/dist/ai-files-manifest.d.ts +1 -1
  2. package/dist/commands/account.d.ts +1 -1
  3. package/dist/commands/account.js +2 -2
  4. package/dist/commands/admin-reconcile-routes.d.ts +1 -1
  5. package/dist/commands/ai-files.d.ts +2 -2
  6. package/dist/commands/ai-files.js +2 -2
  7. package/dist/commands/alerts.d.ts +1 -1
  8. package/dist/commands/app-resources.d.ts +1 -1
  9. package/dist/commands/app-resources.js +2 -2
  10. package/dist/commands/app-topology.d.ts +1 -1
  11. package/dist/commands/app-topology.js +2 -2
  12. package/dist/commands/billing.d.ts +1 -1
  13. package/dist/commands/billing.js +1 -1
  14. package/dist/commands/cache.d.ts +1 -1
  15. package/dist/commands/cache.js +2 -2
  16. package/dist/commands/capabilities.d.ts +1 -1
  17. package/dist/commands/claim.d.ts +1 -1
  18. package/dist/commands/claim.js +1 -1
  19. package/dist/commands/create.d.ts +2 -2
  20. package/dist/commands/create.js +2 -2
  21. package/dist/commands/dashboard.d.ts +1 -1
  22. package/dist/commands/dashboard.js +2 -2
  23. package/dist/commands/data-export.d.ts +1 -1
  24. package/dist/commands/data-export.js +3 -3
  25. package/dist/commands/data.d.ts +1 -1
  26. package/dist/commands/data.js +2 -2
  27. package/dist/commands/delete.d.ts +1 -1
  28. package/dist/commands/delete.js +2 -2
  29. package/dist/commands/deploys.d.ts +1 -1
  30. package/dist/commands/deploys.js +2 -2
  31. package/dist/commands/dev.d.ts +1 -1
  32. package/dist/commands/dev.js +3 -3
  33. package/dist/commands/diagnose.d.ts +1 -1
  34. package/dist/commands/diagnose.js +2 -2
  35. package/dist/commands/diff.d.ts +1 -1
  36. package/dist/commands/diff.js +2 -2
  37. package/dist/commands/doctor.d.ts +3 -3
  38. package/dist/commands/doctor.js +4 -4
  39. package/dist/commands/domains.d.ts +1 -1
  40. package/dist/commands/domains.js +2 -2
  41. package/dist/commands/env.d.ts +1 -1
  42. package/dist/commands/env.js +2 -2
  43. package/dist/commands/export.d.ts +1 -1
  44. package/dist/commands/export.js +2 -2
  45. package/dist/commands/forgejo.d.ts +1 -1
  46. package/dist/commands/forgejo.js +2 -2
  47. package/dist/commands/generate.d.ts +1 -1
  48. package/dist/commands/generate.js +1 -1
  49. package/dist/commands/github.d.ts +1 -1
  50. package/dist/commands/github.js +2 -2
  51. package/dist/commands/import-project.d.ts +1 -1
  52. package/dist/commands/import-project.js +2 -2
  53. package/dist/commands/init.d.ts +2 -2
  54. package/dist/commands/init.js +3 -3
  55. package/dist/commands/insights.d.ts +1 -1
  56. package/dist/commands/insights.js +2 -2
  57. package/dist/commands/inspect-link.d.ts +1 -1
  58. package/dist/commands/inspect-link.js +2 -2
  59. package/dist/commands/login.d.ts +1 -1
  60. package/dist/commands/login.js +1 -1
  61. package/dist/commands/logs.d.ts +1 -1
  62. package/dist/commands/logs.js +2 -2
  63. package/dist/commands/mcp.d.ts +1 -1
  64. package/dist/commands/migrate-supabase-map.d.ts +1 -1
  65. package/dist/commands/migrate-supabase-recipes.d.ts +28 -0
  66. package/dist/commands/migrate-supabase-recipes.d.ts.map +1 -0
  67. package/dist/commands/migrate-supabase-recipes.js +92 -0
  68. package/dist/commands/migrate-supabase-recipes.js.map +1 -0
  69. package/dist/commands/migrate-supabase-rewrite.d.ts +8 -3
  70. package/dist/commands/migrate-supabase-rewrite.d.ts.map +1 -1
  71. package/dist/commands/migrate-supabase-rewrite.js +155 -11
  72. package/dist/commands/migrate-supabase-rewrite.js.map +1 -1
  73. package/dist/commands/migrate-supabase-scaffold.d.ts +25 -0
  74. package/dist/commands/migrate-supabase-scaffold.d.ts.map +1 -0
  75. package/dist/commands/migrate-supabase-scaffold.js +234 -0
  76. package/dist/commands/migrate-supabase-scaffold.js.map +1 -0
  77. package/dist/commands/migrate-supabase-schema.d.ts +4 -4
  78. package/dist/commands/migrate-supabase-schema.js +4 -4
  79. package/dist/commands/migrate-supabase-scripts.d.ts +1 -1
  80. package/dist/commands/migrate-supabase-sdk.d.ts +34 -0
  81. package/dist/commands/migrate-supabase-sdk.d.ts.map +1 -1
  82. package/dist/commands/migrate-supabase-sdk.js +169 -0
  83. package/dist/commands/migrate-supabase-sdk.js.map +1 -1
  84. package/dist/commands/migrate-supabase-status.d.ts +92 -0
  85. package/dist/commands/migrate-supabase-status.d.ts.map +1 -0
  86. package/dist/commands/migrate-supabase-status.js +470 -0
  87. package/dist/commands/migrate-supabase-status.js.map +1 -0
  88. package/dist/commands/migrate-supabase-walker.d.ts +15 -1
  89. package/dist/commands/migrate-supabase-walker.d.ts.map +1 -1
  90. package/dist/commands/migrate-supabase-walker.js +49 -5
  91. package/dist/commands/migrate-supabase-walker.js.map +1 -1
  92. package/dist/commands/migrate-supabase.d.ts +2 -2
  93. package/dist/commands/migrate-supabase.js +1 -1
  94. package/dist/commands/open.d.ts +1 -1
  95. package/dist/commands/open.js +2 -2
  96. package/dist/commands/preview-branch.d.ts +1 -1
  97. package/dist/commands/preview-branch.js +2 -2
  98. package/dist/commands/publish-api-error.d.ts +1 -1
  99. package/dist/commands/publish-api-error.js +1 -1
  100. package/dist/commands/publish-failure.d.ts +3 -3
  101. package/dist/commands/publish-failure.js +3 -3
  102. package/dist/commands/publish.d.ts +3 -3
  103. package/dist/commands/publish.js +13 -13
  104. package/dist/commands/push.d.ts +2 -2
  105. package/dist/commands/push.js +8 -8
  106. package/dist/commands/redeploy.d.ts +2 -2
  107. package/dist/commands/redeploy.js +4 -4
  108. package/dist/commands/rename.d.ts +1 -1
  109. package/dist/commands/rename.js +2 -2
  110. package/dist/commands/reproduce.d.ts +1 -1
  111. package/dist/commands/reproduce.js +1 -1
  112. package/dist/commands/reset-superuser.d.ts +1 -1
  113. package/dist/commands/reset-superuser.js +2 -2
  114. package/dist/commands/restore.d.ts +1 -1
  115. package/dist/commands/restore.js +2 -2
  116. package/dist/commands/resume.d.ts +1 -1
  117. package/dist/commands/resume.js +2 -2
  118. package/dist/commands/rollback.d.ts +1 -1
  119. package/dist/commands/rollback.js +2 -2
  120. package/dist/commands/sharing.d.ts +1 -1
  121. package/dist/commands/sharing.js +2 -2
  122. package/dist/commands/status.d.ts +1 -1
  123. package/dist/commands/transfers.d.ts +1 -1
  124. package/dist/commands/transfers.js +2 -2
  125. package/dist/commands/unsuspend.d.ts +1 -1
  126. package/dist/commands/versions.d.ts +1 -1
  127. package/dist/commands/versions.js +2 -2
  128. package/dist/commands/wait-deploy.d.ts +3 -3
  129. package/dist/commands/wait-deploy.js +3 -3
  130. package/dist/commands/whoami.d.ts +1 -1
  131. package/dist/detect.js +1 -1
  132. package/dist/index.d.ts +77 -75
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +76 -74
  135. package/dist/index.js.map +1 -1
  136. package/dist/poll-deployment.d.ts +1 -1
  137. package/dist/recovery.d.ts +1 -1
  138. package/dist/structured-error-codes.d.ts +1 -1
  139. package/dist/templates/ai-files/index.js +2 -2
  140. package/package.json +6 -3
@@ -1,4 +1,4 @@
1
- import type { AiFileTemplate } from "./templates/ai-files";
1
+ import type { AiFileTemplate } from "./templates/ai-files/index.js";
2
2
  export interface ManifestEntry {
3
3
  templateId: string;
4
4
  templateVersion: string;
@@ -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
@@ -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,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { Context } from "../context";
2
+ import type { Context } from "../context.js";
3
3
  /**
4
4
  * FUTURE9 Fas 3 — MCP tools that wrap `/alerts/preferences`.
5
5
  *
@@ -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
  });
@@ -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 billingUpgradeInputSchema: z.ZodObject<{
4
4
  plan: z.ZodEnum<{
5
5
  starter: "starter";
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { PercherCoreError } from "../errors";
2
+ import { PercherCoreError } from "../errors.js";
3
3
  export const billingUpgradeInputSchema = z.object({
4
4
  plan: z.enum(["starter", "maker", "pro"]),
5
5
  });
@@ -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 cacheResetInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  }, 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 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. */
@@ -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 claimInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  claimToken: z.ZodOptional<z.ZodString>;
@@ -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;
@@ -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,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 dashboardInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  tab: z.ZodOptional<z.ZodString>;
@@ -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,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 dataExportInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  out: z.ZodOptional<z.ZodString>;
@@ -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
@@ -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 dataInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  json: z.ZodOptional<z.ZodBoolean>;
@@ -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(),
@@ -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 deleteInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  confirm: z.ZodBoolean;
@@ -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>;
@@ -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(),
@@ -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 devInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  }, z.core.$strip>;
@@ -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,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 diagnoseInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  logLines: z.ZodOptional<z.ZodNumber>;
@@ -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
  /**
@@ -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>;
@@ -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>;
@@ -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;
@@ -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"),
@@ -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 envSetInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  values: z.ZodRecord<z.ZodString, z.ZodString>;
@@ -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()),
@@ -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 exportInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  out: z.ZodOptional<z.ZodString>;
@@ -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.
@@ -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 forgejoConnectInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  repoUrl: z.ZodString;
@@ -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
@@ -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 generateInputSchema: z.ZodObject<{
4
4
  cwd: z.ZodOptional<z.ZodString>;
5
5
  }, z.core.$strip>;
@@ -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
  });
@@ -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 githubConnectInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  repoUrl: z.ZodString;
@@ -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,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 importInputSchema: z.ZodObject<{
4
4
  from: z.ZodOptional<z.ZodEnum<{
5
5
  vercel: "vercel";
@@ -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"])
@@ -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
@@ -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,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 insightsInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  }, 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 insightsInputSchema = 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 inspectLinkInputSchema: z.ZodObject<{
4
4
  app: z.ZodOptional<z.ZodString>;
5
5
  revoke: z.ZodOptional<z.ZodBoolean>;
@@ -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"),
@@ -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 loginInputSchema: z.ZodObject<{
4
4
  token: z.ZodOptional<z.ZodString>;
5
5
  apiUrl: z.ZodOptional<z.ZodString>;
@@ -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(),
@@ -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
  /**
4
4
  * FUTURE9 Fas 1 — server-side log filtering exposed to CLI + MCP.
5
5
  * Closes the gap between `percher_doctor` (crash diagnosis) and blind
@@ -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