siteplane 0.1.60 → 0.1.62

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/index.js CHANGED
@@ -1895,8 +1895,95 @@ var editorColorSchemes = editorColorSchemeSchema.options;
1895
1895
  var editorColorModeSchema = z20.enum(["light", "dark"]);
1896
1896
  var editorColorModes = editorColorModeSchema.options;
1897
1897
 
1898
- // ../shared/dist/site-slug.js
1898
+ // ../shared/dist/editor-organization.js
1899
1899
  import { z as z21 } from "zod";
1900
+ var labelSchema = z21.string().trim().min(1).max(120);
1901
+ var updateFieldSchema = z21.object({
1902
+ operation: z21.literal("update_field"),
1903
+ siteId: z21.string().uuid(),
1904
+ fieldId: fieldIdSchema,
1905
+ label: labelSchema.optional(),
1906
+ description: z21.string().trim().max(500).nullable().optional(),
1907
+ section: labelSchema.nullable().optional(),
1908
+ subsection: labelSchema.nullable().optional(),
1909
+ sortOrder: z21.number().int().nonnegative().optional(),
1910
+ status: z21.enum(["hidden", "active"]).optional()
1911
+ });
1912
+ var updateEditorOrganizationInputSchema = z21.discriminatedUnion("operation", [
1913
+ updateFieldSchema,
1914
+ z21.object({
1915
+ operation: z21.literal("rename_section"),
1916
+ siteId: z21.string().uuid(),
1917
+ routeKey: siteFieldRouteKeySchema,
1918
+ currentSection: labelSchema,
1919
+ nextSection: labelSchema
1920
+ }),
1921
+ z21.object({
1922
+ operation: z21.literal("create_group"),
1923
+ siteId: z21.string().uuid(),
1924
+ routeKey: siteFieldRouteKeySchema,
1925
+ section: labelSchema,
1926
+ fieldIds: z21.array(fieldIdSchema).max(200).default([])
1927
+ }),
1928
+ z21.object({
1929
+ operation: z21.literal("delete_section"),
1930
+ siteId: z21.string().uuid(),
1931
+ routeKey: siteFieldRouteKeySchema,
1932
+ section: labelSchema
1933
+ }),
1934
+ z21.object({
1935
+ operation: z21.literal("move_section"),
1936
+ siteId: z21.string().uuid(),
1937
+ routeKey: siteFieldRouteKeySchema,
1938
+ section: labelSchema,
1939
+ direction: z21.enum(["up", "down"])
1940
+ }),
1941
+ z21.object({
1942
+ operation: z21.literal("create_subgroup"),
1943
+ siteId: z21.string().uuid(),
1944
+ routeKey: siteFieldRouteKeySchema,
1945
+ section: labelSchema,
1946
+ subsection: labelSchema,
1947
+ fieldIds: z21.array(fieldIdSchema).min(1).max(200)
1948
+ }),
1949
+ z21.object({
1950
+ operation: z21.literal("update_subgroup"),
1951
+ siteId: z21.string().uuid(),
1952
+ routeKey: siteFieldRouteKeySchema,
1953
+ currentSection: labelSchema,
1954
+ currentSubsection: labelSchema,
1955
+ section: labelSchema,
1956
+ subsection: labelSchema.nullable()
1957
+ }),
1958
+ z21.object({
1959
+ operation: z21.literal("rename_route"),
1960
+ siteId: z21.string().uuid(),
1961
+ routeKey: siteFieldRouteKeySchema.refine((value) => value !== "$global", "Global content has no page label."),
1962
+ label: labelSchema
1963
+ })
1964
+ ]).and(z21.object({
1965
+ review: z21.object({
1966
+ runId: z21.string().uuid(),
1967
+ expectedReviewVersion: z21.number().int().positive()
1968
+ }).strict().optional()
1969
+ })).superRefine((input, context) => {
1970
+ if (input.operation === "update_field" && input.label === void 0 && input.description === void 0 && input.section === void 0 && input.subsection === void 0 && input.sortOrder === void 0 && input.status === void 0) {
1971
+ context.addIssue({
1972
+ code: "custom",
1973
+ message: "At least one field organization value is required."
1974
+ });
1975
+ }
1976
+ if (input.operation === "update_field" && input.section === null && typeof input.subsection === "string") {
1977
+ context.addIssue({
1978
+ code: "custom",
1979
+ message: "A subgroup requires a group.",
1980
+ path: ["subsection"]
1981
+ });
1982
+ }
1983
+ });
1984
+
1985
+ // ../shared/dist/site-slug.js
1986
+ import { z as z22 } from "zod";
1900
1987
  var SITE_SLUG_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
1901
1988
  var RESERVED_SITE_SLUGS = /* @__PURE__ */ new Set([
1902
1989
  "account",
@@ -1913,31 +2000,31 @@ var RESERVED_SITE_SLUGS = /* @__PURE__ */ new Set([
1913
2000
  "support",
1914
2001
  "workspace"
1915
2002
  ]);
1916
- var siteSlugSchema = z21.string().regex(SITE_SLUG_PATTERN, "Invalid site slug").refine((value) => !RESERVED_SITE_SLUGS.has(value), "Reserved site slug");
2003
+ var siteSlugSchema = z22.string().regex(SITE_SLUG_PATTERN, "Invalid site slug").refine((value) => !RESERVED_SITE_SLUGS.has(value), "Reserved site slug");
1917
2004
 
1918
2005
  // ../shared/dist/entitlements.js
1919
- import { z as z22 } from "zod";
1920
- var entitlementSnapshotSchema = z22.object({
1921
- planKey: z22.string().trim().min(1),
1922
- sitesLimit: z22.number().int().positive(),
1923
- siteMembersPerSiteLimit: z22.number().int().positive(),
1924
- customAdminDomainsEnabled: z22.boolean(),
1925
- agentMcpEnabled: z22.boolean(),
1926
- emailNotificationsEnabled: z22.boolean(),
1927
- analyticsEnabled: z22.boolean(),
1928
- analyticsSitesLimit: z22.number().int().min(0),
1929
- analyticsPortalPerformanceEnabled: z22.boolean(),
1930
- analyticsMonthlyReportsEnabled: z22.boolean(),
1931
- analyticsAiSummaryEnabled: z22.boolean(),
1932
- analyticsRawEventRetentionDays: z22.number().int().min(1).max(ANALYTICS_RETENTION_DEFAULTS.maxRawEventRetentionDaysWithoutAdr),
1933
- analyticsMonthlyEventLimit: z22.number().int().min(0),
1934
- bookingEnabled: z22.boolean().default(false),
1935
- bookingSitesLimit: z22.number().int().min(0).default(0),
1936
- bookingPortalManagementEnabled: z22.boolean().default(false),
1937
- bookingResourcesPerSiteLimit: z22.number().int().min(0).default(0),
1938
- bookingServicesPerSiteLimit: z22.number().int().min(0).default(0),
1939
- bookingMonthlyBookingsLimit: z22.number().int().min(0).default(0),
1940
- bookingRemindersEnabled: z22.boolean().default(false)
2006
+ import { z as z23 } from "zod";
2007
+ var entitlementSnapshotSchema = z23.object({
2008
+ planKey: z23.string().trim().min(1),
2009
+ sitesLimit: z23.number().int().positive(),
2010
+ siteMembersPerSiteLimit: z23.number().int().positive(),
2011
+ customAdminDomainsEnabled: z23.boolean(),
2012
+ agentMcpEnabled: z23.boolean(),
2013
+ emailNotificationsEnabled: z23.boolean(),
2014
+ analyticsEnabled: z23.boolean(),
2015
+ analyticsSitesLimit: z23.number().int().min(0),
2016
+ analyticsPortalPerformanceEnabled: z23.boolean(),
2017
+ analyticsMonthlyReportsEnabled: z23.boolean(),
2018
+ analyticsAiSummaryEnabled: z23.boolean(),
2019
+ analyticsRawEventRetentionDays: z23.number().int().min(1).max(ANALYTICS_RETENTION_DEFAULTS.maxRawEventRetentionDaysWithoutAdr),
2020
+ analyticsMonthlyEventLimit: z23.number().int().min(0),
2021
+ bookingEnabled: z23.boolean().default(false),
2022
+ bookingSitesLimit: z23.number().int().min(0).default(0),
2023
+ bookingPortalManagementEnabled: z23.boolean().default(false),
2024
+ bookingResourcesPerSiteLimit: z23.number().int().min(0).default(0),
2025
+ bookingServicesPerSiteLimit: z23.number().int().min(0).default(0),
2026
+ bookingMonthlyBookingsLimit: z23.number().int().min(0).default(0),
2027
+ bookingRemindersEnabled: z23.boolean().default(false)
1941
2028
  });
1942
2029
  var EARLY_ACCESS_PLAN = {
1943
2030
  planKey: "early_access_2026",
@@ -1966,7 +2053,7 @@ var EARLY_ACCESS_PLAN = {
1966
2053
  var maxFirstPartyImageUploadBytes = 4 * 1024 * 1024;
1967
2054
 
1968
2055
  // ../shared/dist/readiness.js
1969
- import { z as z23 } from "zod";
2056
+ import { z as z24 } from "zod";
1970
2057
  var READINESS_CHECK_KEYS = [
1971
2058
  "agent_instructions_installed",
1972
2059
  "runtime_package_connected",
@@ -1981,118 +2068,118 @@ var READINESS_STATUSES = [
1981
2068
  "failing",
1982
2069
  "warning"
1983
2070
  ];
1984
- var readinessCheckKeySchema = z23.enum(READINESS_CHECK_KEYS);
1985
- var readinessStatusSchema = z23.enum(READINESS_STATUSES);
2071
+ var readinessCheckKeySchema = z24.enum(READINESS_CHECK_KEYS);
2072
+ var readinessStatusSchema = z24.enum(READINESS_STATUSES);
1986
2073
 
1987
2074
  // ../shared/dist/site.js
1988
- import { z as z24 } from "zod";
2075
+ import { z as z25 } from "zod";
1989
2076
  var SITE_STATUSES = [
1990
2077
  "setup",
1991
2078
  "active",
1992
2079
  "disabled",
1993
2080
  "archived"
1994
2081
  ];
1995
- var siteStatusSchema = z24.enum(SITE_STATUSES);
1996
- var websiteUrlSchema = z24.string().trim().url().refine((value) => value.startsWith("https://") || value.startsWith("http://"), "Website URL must use http or https");
2082
+ var siteStatusSchema = z25.enum(SITE_STATUSES);
2083
+ var websiteUrlSchema = z25.string().trim().url().refine((value) => value.startsWith("https://") || value.startsWith("http://"), "Website URL must use http or https");
1997
2084
 
1998
2085
  // ../shared/dist/setup-assets.js
1999
- import { z as z25 } from "zod";
2000
- var configureSetupAssetTargetInputSchema = z25.object({
2001
- siteId: z25.string().uuid(),
2002
- runId: z25.string().uuid(),
2003
- expectedReviewVersion: z25.number().int().positive(),
2004
- expectedSnapshotHash: z25.string().regex(/^sha256:[0-9a-f]{64}$/u),
2005
- mutationId: z25.string().uuid(),
2006
- expectedApprovalId: z25.string().uuid().nullable(),
2007
- targetId: z25.string().uuid().nullable(),
2008
- targetType: z25.enum(["repo_static_assets", "siteplane_managed_fallback"]),
2009
- approveManagedHosting: z25.boolean()
2086
+ import { z as z26 } from "zod";
2087
+ var configureSetupAssetTargetInputSchema = z26.object({
2088
+ siteId: z26.string().uuid(),
2089
+ runId: z26.string().uuid(),
2090
+ expectedReviewVersion: z26.number().int().positive(),
2091
+ expectedSnapshotHash: z26.string().regex(/^sha256:[0-9a-f]{64}$/u),
2092
+ mutationId: z26.string().uuid(),
2093
+ expectedApprovalId: z26.string().uuid().nullable(),
2094
+ targetId: z26.string().uuid().nullable(),
2095
+ targetType: z26.enum(["repo_static_assets", "siteplane_managed_fallback"]),
2096
+ approveManagedHosting: z26.boolean()
2010
2097
  }).strict().refine((value) => value.targetType === "siteplane_managed_fallback" || !value.approveManagedHosting);
2011
- var setupAssetTargetApprovalSchema = z25.object({
2012
- id: z25.string().uuid(),
2013
- runId: z25.string().uuid(),
2014
- reviewVersion: z25.number().int().positive(),
2015
- snapshotHash: z25.string().regex(/^sha256:[0-9a-f]{64}$/u),
2016
- targetId: z25.string().uuid(),
2017
- targetType: z25.enum(["repo_static_assets", "siteplane_managed_fallback"]),
2018
- targetRevision: z25.number().int().positive(),
2019
- deploymentOrigin: z25.string().url(),
2020
- gitConnectionId: z25.string().uuid().nullable(),
2021
- gitRevision: z25.number().int().positive().nullable(),
2022
- managedHostingApproved: z25.boolean(),
2023
- actorUserId: z25.string().uuid(),
2024
- approvedAt: z25.string().datetime({ offset: true })
2098
+ var setupAssetTargetApprovalSchema = z26.object({
2099
+ id: z26.string().uuid(),
2100
+ runId: z26.string().uuid(),
2101
+ reviewVersion: z26.number().int().positive(),
2102
+ snapshotHash: z26.string().regex(/^sha256:[0-9a-f]{64}$/u),
2103
+ targetId: z26.string().uuid(),
2104
+ targetType: z26.enum(["repo_static_assets", "siteplane_managed_fallback"]),
2105
+ targetRevision: z26.number().int().positive(),
2106
+ deploymentOrigin: z26.string().url(),
2107
+ gitConnectionId: z26.string().uuid().nullable(),
2108
+ gitRevision: z26.number().int().positive().nullable(),
2109
+ managedHostingApproved: z26.boolean(),
2110
+ actorUserId: z26.string().uuid(),
2111
+ approvedAt: z26.string().datetime({ offset: true })
2025
2112
  }).strict();
2026
- var setupAssetReadinessSchema = z25.union([
2027
- z25.object({
2028
- status: z25.enum([
2113
+ var setupAssetReadinessSchema = z26.union([
2114
+ z26.object({
2115
+ status: z26.enum([
2029
2116
  "not_required",
2030
2117
  "needs_choice",
2031
2118
  "stale_setup_review",
2032
2119
  "permission_denied"
2033
2120
  ])
2034
2121
  }).strict(),
2035
- z25.object({
2036
- status: z25.literal("stale_approval"),
2122
+ z26.object({
2123
+ status: z26.literal("stale_approval"),
2037
2124
  approval: setupAssetTargetApprovalSchema.optional()
2038
2125
  }).strict(),
2039
- z25.object({
2040
- status: z25.literal("not_verified"),
2126
+ z26.object({
2127
+ status: z26.literal("not_verified"),
2041
2128
  approval: setupAssetTargetApprovalSchema,
2042
- jobId: z25.string().uuid().optional(),
2043
- checkedAt: z25.string().datetime({ offset: true }).nullable().optional()
2129
+ jobId: z26.string().uuid().optional(),
2130
+ checkedAt: z26.string().datetime({ offset: true }).nullable().optional()
2044
2131
  }).strict(),
2045
- z25.object({
2046
- status: z25.enum(["ready", "checking", "retrying"]),
2132
+ z26.object({
2133
+ status: z26.enum(["ready", "checking", "retrying"]),
2047
2134
  approval: setupAssetTargetApprovalSchema,
2048
- jobId: z25.string().uuid(),
2049
- checkedAt: z25.string().datetime({ offset: true }).nullable()
2135
+ jobId: z26.string().uuid(),
2136
+ checkedAt: z26.string().datetime({ offset: true }).nullable()
2050
2137
  }).strict().refine((value) => value.status !== "ready" || value.checkedAt !== null)
2051
2138
  ]);
2052
- var checkSetupAssetTargetInputSchema = z25.object({
2053
- siteId: z25.string().uuid(),
2054
- runId: z25.string().uuid(),
2055
- approvalId: z25.string().uuid(),
2056
- intent: z25.enum(["start", "poll"])
2139
+ var checkSetupAssetTargetInputSchema = z26.object({
2140
+ siteId: z26.string().uuid(),
2141
+ runId: z26.string().uuid(),
2142
+ approvalId: z26.string().uuid(),
2143
+ intent: z26.enum(["start", "poll"])
2057
2144
  }).strict();
2058
2145
 
2059
2146
  // ../shared/dist/setup-installation.js
2060
- import { z as z26 } from "zod";
2061
- var setupInstallationRequestSchema = z26.object({
2147
+ import { z as z27 } from "zod";
2148
+ var setupInstallationRequestSchema = z27.object({
2062
2149
  modules: siteSetupModulesSchema,
2063
2150
  ownerEditabilityNote: siteSetupOwnerEditabilityNoteSchema,
2064
- provider: z26.object({
2065
- projectId: z26.string().min(1).max(200),
2066
- teamId: z26.string().min(1).max(200)
2151
+ provider: z27.object({
2152
+ projectId: z27.string().min(1).max(200),
2153
+ teamId: z27.string().min(1).max(200)
2067
2154
  }).strict()
2068
2155
  }).strict();
2069
2156
 
2070
2157
  // ../shared/dist/setup-claim.js
2071
- import { z as z27 } from "zod";
2072
- var setupClaimCodeSchema = z27.string().regex(/^[0-9A-HJKMNP-TV-Z]{8}$/u);
2073
- var setupClaimBindingSchema = z27.object({
2074
- siteId: z27.string().uuid(),
2075
- runId: z27.string().uuid()
2158
+ import { z as z28 } from "zod";
2159
+ var setupClaimCodeSchema = z28.string().regex(/^[0-9A-HJKMNP-TV-Z]{8}$/u);
2160
+ var setupClaimBindingSchema = z28.object({
2161
+ siteId: z28.string().uuid(),
2162
+ runId: z28.string().uuid()
2076
2163
  });
2077
2164
  var setupClaimReceiptSchema = setupClaimBindingSchema.extend({
2078
- status: z27.literal("claimed"),
2079
- requestId: z27.string().uuid(),
2080
- workspaceId: z27.string().uuid(),
2081
- userId: z27.string().uuid(),
2082
- claimedAt: z27.string().datetime({ offset: true })
2165
+ status: z28.literal("claimed"),
2166
+ requestId: z28.string().uuid(),
2167
+ workspaceId: z28.string().uuid(),
2168
+ userId: z28.string().uuid(),
2169
+ claimedAt: z28.string().datetime({ offset: true })
2083
2170
  }).strict();
2084
2171
  var setupClaimInspectionSchema = setupClaimBindingSchema.extend({
2085
- status: z27.literal("pending"),
2086
- requestId: z27.string().uuid(),
2087
- siteName: z27.string(),
2088
- userId: z27.string().uuid(),
2089
- accountEmail: z27.string().email(),
2090
- workspaceId: z27.string().uuid(),
2091
- workspaceName: z27.string(),
2092
- expiresAt: z27.string().datetime({ offset: true })
2172
+ status: z28.literal("pending"),
2173
+ requestId: z28.string().uuid(),
2174
+ siteName: z28.string(),
2175
+ userId: z28.string().uuid(),
2176
+ accountEmail: z28.string().email(),
2177
+ workspaceId: z28.string().uuid(),
2178
+ workspaceName: z28.string(),
2179
+ expiresAt: z28.string().datetime({ offset: true })
2093
2180
  }).strict();
2094
- var setupClaimDenialSchema = z27.object({
2095
- status: z27.enum([
2181
+ var setupClaimDenialSchema = z28.object({
2182
+ status: z28.enum([
2096
2183
  "invalid_claim_request",
2097
2184
  "invalid_installation",
2098
2185
  "already_claimed",
@@ -2313,16 +2400,16 @@ function createAnalyticsCliRequestHeaders(config) {
2313
2400
  }
2314
2401
 
2315
2402
  // ../cli/dist/commands/analytics/public-key.js
2316
- import { z as z28 } from "zod";
2317
- var responseSchema = z28.object({
2318
- ok: z28.literal(true),
2319
- data: z28.object({
2320
- rawPublicKey: z28.string().regex(/^pk_siteplane_[A-Za-z0-9_-]{16}_[A-Za-z0-9_-]{43}$/)
2403
+ import { z as z29 } from "zod";
2404
+ var responseSchema = z29.object({
2405
+ ok: z29.literal(true),
2406
+ data: z29.object({
2407
+ rawPublicKey: z29.string().regex(/^pk_siteplane_[A-Za-z0-9_-]{16}_[A-Za-z0-9_-]{43}$/)
2321
2408
  })
2322
2409
  });
2323
- var errorResponseSchema = z28.object({
2324
- error: z28.object({
2325
- code: z28.string().regex(/^[a-z][a-z0-9_.-]+$/u)
2410
+ var errorResponseSchema = z29.object({
2411
+ error: z29.object({
2412
+ code: z29.string().regex(/^[a-z][a-z0-9_.-]+$/u)
2326
2413
  })
2327
2414
  });
2328
2415
  async function analyticsPublicKeyCommand(input) {
@@ -2344,13 +2431,13 @@ async function analyticsPublicKeyCommand(input) {
2344
2431
  }
2345
2432
 
2346
2433
  // ../cli/dist/commands/analytics/prepare.js
2347
- import { z as z29 } from "zod";
2348
- var resultSchema = z29.object({
2349
- ok: z29.literal(true),
2350
- data: z29.object({
2351
- rawPublicKey: z29.string().regex(/^pk_siteplane_[A-Za-z0-9_-]{16}_[A-Za-z0-9_-]{43}$/u),
2352
- generation: z29.number().int().positive(),
2353
- status: z29.enum([
2434
+ import { z as z30 } from "zod";
2435
+ var resultSchema = z30.object({
2436
+ ok: z30.literal(true),
2437
+ data: z30.object({
2438
+ rawPublicKey: z30.string().regex(/^pk_siteplane_[A-Za-z0-9_-]{16}_[A-Za-z0-9_-]{43}$/u),
2439
+ generation: z30.number().int().positive(),
2440
+ status: z30.enum([
2354
2441
  "setup_started",
2355
2442
  "test_mode",
2356
2443
  "active",
@@ -2360,8 +2447,8 @@ var resultSchema = z29.object({
2360
2447
  ])
2361
2448
  }).strict()
2362
2449
  }).strict();
2363
- var errorSchema = z29.object({
2364
- error: z29.object({ code: z29.string().regex(/^[a-z][a-z0-9_.-]+$/u) })
2450
+ var errorSchema = z30.object({
2451
+ error: z30.object({ code: z30.string().regex(/^[a-z][a-z0-9_.-]+$/u) })
2365
2452
  });
2366
2453
 
2367
2454
  // ../cli/dist/commands/analytics/test.js
@@ -2556,19 +2643,19 @@ function requireContentExportScope(scopes) {
2556
2643
  import { access, chmod, open, readFile as readFile5, rename, rm } from "fs/promises";
2557
2644
  import { randomUUID as randomUUID2 } from "crypto";
2558
2645
  import { join as join3 } from "path";
2559
- import { z as z30 } from "zod";
2560
- var siteplaneProjectConfigSchema = z30.object({
2561
- version: z30.literal(2),
2562
- apiBaseUrl: z30.string().url(),
2563
- siteId: z30.string().uuid(),
2564
- publicSiteKeyId: z30.string().uuid(),
2565
- publicSiteKey: z30.string().trim().min(1),
2566
- runId: z30.string().uuid(),
2567
- appDirectory: z30.string().min(1),
2568
- taskContractVersion: z30.literal("siteplane.setup-task.v2"),
2569
- adminProtocolVersion: z30.literal(2),
2646
+ import { z as z31 } from "zod";
2647
+ var siteplaneProjectConfigSchema = z31.object({
2648
+ version: z31.literal(2),
2649
+ apiBaseUrl: z31.string().url(),
2650
+ siteId: z31.string().uuid(),
2651
+ publicSiteKeyId: z31.string().uuid(),
2652
+ publicSiteKey: z31.string().trim().min(1),
2653
+ runId: z31.string().uuid(),
2654
+ appDirectory: z31.string().min(1),
2655
+ taskContractVersion: z31.literal("siteplane.setup-task.v2"),
2656
+ adminProtocolVersion: z31.literal(2),
2570
2657
  packages: siteSetupPackagesSchema,
2571
- fieldContractHash: z30.string().regex(/^sha256:[0-9a-f]{64}$/iu).optional()
2658
+ fieldContractHash: z31.string().regex(/^sha256:[0-9a-f]{64}$/iu).optional()
2572
2659
  }).strict();
2573
2660
  async function readProjectPackageJson(projectDir) {
2574
2661
  return JSON.parse(await readFile5(join3(projectDir, "package.json"), "utf8"));
@@ -2628,27 +2715,27 @@ import { randomUUID as randomUUID3 } from "crypto";
2628
2715
  import { chmod as chmod2, lstat, mkdir as mkdir5, open as open2, readFile as readFile6, rename as rename2, rm as rm2 } from "fs/promises";
2629
2716
  import { dirname as dirname5, join as join4, relative } from "path";
2630
2717
  import { promisify } from "util";
2631
- import { z as z31 } from "zod";
2632
- var localSetupInstallationSchema = z31.object({
2633
- key: z31.string().regex(/^[A-Za-z0-9_-]{43}$/u),
2634
- idempotencyKey: z31.string().uuid(),
2635
- apiBaseUrl: z31.string().url(),
2718
+ import { z as z32 } from "zod";
2719
+ var localSetupInstallationSchema = z32.object({
2720
+ key: z32.string().regex(/^[A-Za-z0-9_-]{43}$/u),
2721
+ idempotencyKey: z32.string().uuid(),
2722
+ apiBaseUrl: z32.string().url(),
2636
2723
  request: setupInstallationRequestSchema,
2637
- bootstrapAcknowledged: z31.boolean()
2724
+ bootstrapAcknowledged: z32.boolean()
2638
2725
  }).strict();
2639
- var siteplaneCredentialsSchema = z31.object({
2640
- accessToken: z31.string().trim().min(1),
2641
- siteRevalidationSecret: z31.string().trim().min(1),
2726
+ var siteplaneCredentialsSchema = z32.object({
2727
+ accessToken: z32.string().trim().min(1),
2728
+ siteRevalidationSecret: z32.string().trim().min(1),
2642
2729
  installation: localSetupInstallationSchema.optional(),
2643
2730
  claimReceipt: setupClaimReceiptSchema.optional(),
2644
- adminSession: z31.object({
2645
- secret: z31.string().regex(/^[A-Za-z0-9_-]{43}$/u),
2646
- generation: z31.string().uuid()
2731
+ adminSession: z32.object({
2732
+ secret: z32.string().regex(/^[A-Za-z0-9_-]{43}$/u),
2733
+ generation: z32.string().uuid()
2647
2734
  }).strict().optional()
2648
2735
  }).strict();
2649
- var localSetupCredentialsSchema = z31.union([
2736
+ var localSetupCredentialsSchema = z32.union([
2650
2737
  siteplaneCredentialsSchema,
2651
- z31.object({ installation: localSetupInstallationSchema }).strict()
2738
+ z32.object({ installation: localSetupInstallationSchema }).strict()
2652
2739
  ]);
2653
2740
  async function assertLocalCredentialsPathSafe(projectDir, options = {}) {
2654
2741
  const path = join4(projectDir, ".siteplane/credentials.json");
@@ -2746,7 +2833,7 @@ async function gitPathMatches(projectDir, path, command) {
2746
2833
  // ../cli/dist/commands/init.js
2747
2834
  import { access as access3 } from "fs/promises";
2748
2835
  import { join as join7, relative as relative3 } from "path";
2749
- import { z as z34 } from "zod";
2836
+ import { z as z35 } from "zod";
2750
2837
 
2751
2838
  // ../cli/dist/commands/setup-preflight.js
2752
2839
  import { createHash as createHash2 } from "crypto";
@@ -2758,11 +2845,11 @@ import { parse as parseYaml } from "yaml";
2758
2845
  import { createRequire } from "module";
2759
2846
  import { readFile as readFile7 } from "fs/promises";
2760
2847
  import { join as join5 } from "path";
2761
- import { z as z32 } from "zod";
2762
- var packageSchema = z32.object({
2763
- name: z32.string().optional(),
2764
- version: z32.string(),
2765
- peerDependencies: z32.record(z32.string(), z32.string()).optional()
2848
+ import { z as z33 } from "zod";
2849
+ var packageSchema = z33.object({
2850
+ name: z33.string().optional(),
2851
+ version: z33.string(),
2852
+ peerDependencies: z33.record(z33.string(), z33.string()).optional()
2766
2853
  });
2767
2854
  async function readInstalledPackage(projectDir, name2) {
2768
2855
  const require2 = createRequire(join5(projectDir, "package.json"));
@@ -2780,7 +2867,7 @@ async function readInstalledPackage(projectDir, name2) {
2780
2867
  // ../cli/dist/commands/setup-preflight.js
2781
2868
  import { access as access2, readFile as readFile8, realpath, readdir, readlink } from "fs/promises";
2782
2869
  import { dirname as dirname6, join as join6, relative as relative2, resolve, sep } from "path";
2783
- import { z as z33 } from "zod";
2870
+ import { z as z34 } from "zod";
2784
2871
 
2785
2872
  // ../cli/dist/commands/setup-process.js
2786
2873
  import { spawn } from "child_process";
@@ -2881,29 +2968,29 @@ async function setupVercelApi(cwd, endpoint, body, method, options) {
2881
2968
  }
2882
2969
 
2883
2970
  // ../cli/dist/commands/setup-preflight.js
2884
- var manifestSchema = z33.object({
2885
- packageManager: z33.string().optional(),
2886
- engines: z33.object({ node: z33.string().optional() }).optional(),
2887
- dependencies: z33.record(z33.string(), z33.string()).optional(),
2888
- devDependencies: z33.record(z33.string(), z33.string()).optional(),
2889
- scripts: z33.record(z33.string(), z33.string()).optional(),
2890
- workspaces: z33.unknown().optional()
2891
- });
2892
- var vercelProjectSchema = z33.object({
2893
- id: z33.string(),
2894
- accountId: z33.string(),
2895
- name: z33.string(),
2896
- nodeVersion: z33.string().nullable().optional(),
2897
- rootDirectory: z33.string().nullable().optional(),
2898
- framework: z33.string().nullable().optional(),
2899
- installCommand: z33.string().nullable().optional(),
2900
- buildCommand: z33.string().nullable().optional(),
2901
- link: z33.object({
2902
- type: z33.string(),
2903
- repo: z33.string().optional(),
2904
- repoId: z33.union([z33.string(), z33.number()]).optional(),
2905
- org: z33.string().optional(),
2906
- productionBranch: z33.string().optional()
2971
+ var manifestSchema = z34.object({
2972
+ packageManager: z34.string().optional(),
2973
+ engines: z34.object({ node: z34.string().optional() }).optional(),
2974
+ dependencies: z34.record(z34.string(), z34.string()).optional(),
2975
+ devDependencies: z34.record(z34.string(), z34.string()).optional(),
2976
+ scripts: z34.record(z34.string(), z34.string()).optional(),
2977
+ workspaces: z34.unknown().optional()
2978
+ });
2979
+ var vercelProjectSchema = z34.object({
2980
+ id: z34.string(),
2981
+ accountId: z34.string(),
2982
+ name: z34.string(),
2983
+ nodeVersion: z34.string().nullable().optional(),
2984
+ rootDirectory: z34.string().nullable().optional(),
2985
+ framework: z34.string().nullable().optional(),
2986
+ installCommand: z34.string().nullable().optional(),
2987
+ buildCommand: z34.string().nullable().optional(),
2988
+ link: z34.object({
2989
+ type: z34.string(),
2990
+ repo: z34.string().optional(),
2991
+ repoId: z34.union([z34.string(), z34.number()]).optional(),
2992
+ org: z34.string().optional(),
2993
+ productionBranch: z34.string().optional()
2907
2994
  }).nullable().optional()
2908
2995
  });
2909
2996
  var exists = async (path) => access2(path).then(() => true, () => false);
@@ -2960,9 +3047,9 @@ async function inspectSetupLocalProject(projectDir) {
2960
3047
  const rootManifest = manifestSchema.parse(JSON.parse(await readFile8(join6(lockfileRoot, "package.json"), "utf8")));
2961
3048
  if (lockfileRoot !== projectDirectory) {
2962
3049
  const workspaceFile = join6(lockfileRoot, "pnpm-workspace.yaml");
2963
- const workspace = lockName === "pnpm-lock.yaml" && await exists(workspaceFile) ? z33.object({ packages: z33.array(z33.string()) }).parse(parseYaml(await readFile8(workspaceFile, "utf8"))).packages : z33.union([
2964
- z33.array(z33.string()),
2965
- z33.object({ packages: z33.array(z33.string()) }).transform((value) => value.packages)
3050
+ const workspace = lockName === "pnpm-lock.yaml" && await exists(workspaceFile) ? z34.object({ packages: z34.array(z34.string()) }).parse(parseYaml(await readFile8(workspaceFile, "utf8"))).packages : z34.union([
3051
+ z34.array(z34.string()),
3052
+ z34.object({ packages: z34.array(z34.string()) }).transform((value) => value.packages)
2966
3053
  ]).parse(rootManifest.workspaces);
2967
3054
  const selected = relative2(lockfileRoot, projectDirectory).split(sep).join("/");
2968
3055
  if (!workspace.some((pattern) => !pattern.startsWith("!") && minimatch(selected, pattern)) || workspace.some((pattern) => pattern.startsWith("!") && minimatch(selected, pattern.slice(1))))
@@ -2976,11 +3063,11 @@ async function inspectSetupLocalProject(projectDir) {
2976
3063
  break;
2977
3064
  }
2978
3065
  const lockText = await readFile8(join6(lockfileRoot, lockName), "utf8");
2979
- const npmLock = lockName === "package-lock.json" ? z33.object({
2980
- lockfileVersion: z33.number(),
2981
- packages: z33.record(z33.string(), z33.object({
2982
- version: z33.string().optional(),
2983
- peerDependencies: z33.record(z33.string(), z33.string()).optional()
3066
+ const npmLock = lockName === "package-lock.json" ? z34.object({
3067
+ lockfileVersion: z34.number(),
3068
+ packages: z34.record(z34.string(), z34.object({
3069
+ version: z34.string().optional(),
3070
+ peerDependencies: z34.record(z34.string(), z34.string()).optional()
2984
3071
  })).optional()
2985
3072
  }).parse(JSON.parse(lockText)) : null;
2986
3073
  async function version2(name3) {
@@ -3118,9 +3205,9 @@ async function setupPreflightCommand(input) {
3118
3205
  linkDirectory = dirname6(linkDirectory);
3119
3206
  if (!await exists(join6(linkDirectory, ".vercel/project.json")))
3120
3207
  fail("vercel_project_not_linked", "Link this application to its intended Vercel project before setup; Siteplane will not guess a target.");
3121
- const linked = z33.object({
3122
- projectId: z33.string().regex(/^prj_[A-Za-z0-9]+$/u),
3123
- orgId: z33.string().regex(/^(?:team|user)_[A-Za-z0-9]+$/u)
3208
+ const linked = z34.object({
3209
+ projectId: z34.string().regex(/^prj_[A-Za-z0-9]+$/u),
3210
+ orgId: z34.string().regex(/^(?:team|user)_[A-Za-z0-9]+$/u)
3124
3211
  }).parse(JSON.parse(await readFile8(join6(linkDirectory, ".vercel/project.json"), "utf8")));
3125
3212
  const project = vercelProjectSchema.parse(await setupVercelApi(linkDirectory, `/v9/projects/${linked.projectId}?teamId=${linked.orgId}`));
3126
3213
  if (project.id !== linked.projectId || project.accountId !== linked.orgId)
@@ -3134,11 +3221,11 @@ async function setupPreflightCommand(input) {
3134
3221
  fail("vercel_production_branch_conflict", "The local branch differs from the bound Vercel Production branch.");
3135
3222
  if (project.link?.repo && project.link.org && !local.git.remote?.replace(/\.git$/u, "").endsWith(`${project.link.org}/${project.link.repo}`))
3136
3223
  fail("vercel_git_conflict", "The local origin repository differs from the Vercel Git connection.");
3137
- const env = z33.object({
3138
- envs: z33.array(z33.object({
3139
- key: z33.string(),
3140
- value: z33.string().optional(),
3141
- target: z33.array(z33.string()).optional()
3224
+ const env = z34.object({
3225
+ envs: z34.array(z34.object({
3226
+ key: z34.string(),
3227
+ value: z34.string().optional(),
3228
+ target: z34.array(z34.string()).optional()
3142
3229
  }))
3143
3230
  }).parse(await setupVercelApi(linkDirectory, `/v10/projects/${linked.projectId}/env?teamId=${linked.orgId}`));
3144
3231
  const corepack = env.envs.some((item) => item.key === "ENABLE_EXPERIMENTAL_COREPACK" && item.value === "1" && item.target?.includes("production"));
@@ -3156,6 +3243,11 @@ async function setupPreflightCommand(input) {
3156
3243
  fail("vercel_package_manager_conflict", "The provider install command conflicts with the canonical lockfile.");
3157
3244
  if (overridePin && local.packageManager.declared && `${overridePin[1]}@${overridePin[2]}` !== local.packageManager.declared)
3158
3245
  fail("vercel_package_manager_conflict", "The Vercel install override conflicts with the exact packageManager declaration.");
3246
+ const build = project.buildCommand;
3247
+ const buildPin = build ? /\b(npm|pnpm|yarn|bun)@(\d+\.\d+\.\d+)\b/u.exec(build) : null;
3248
+ const buildFamily = buildPin?.[1] ?? (build ? /(?:^|[;&|]\s*)(npm|pnpm|yarn|bun)\s+(?:run\s+)?build\b/u.exec(build)?.[1] : null);
3249
+ if (buildFamily && (buildFamily !== local.packageManager.name || buildPin && local.packageManager.declared && `${buildPin[1]}@${buildPin[2]}` !== local.packageManager.declared))
3250
+ fail("vercel_package_manager_conflict", "The explicit Vercel build command conflicts with the selected package manager or its declared version. Align the existing build override and rerun preflight; no setup writes were performed.");
3159
3251
  return {
3160
3252
  status: "ready",
3161
3253
  local,
@@ -3228,26 +3320,26 @@ async function initCommand(input) {
3228
3320
  ]
3229
3321
  };
3230
3322
  }
3231
- var siteSetupBootstrapDataSchema = z34.object({
3232
- credentialPurpose: z34.literal("site_setup"),
3233
- apiBaseUrl: z34.string().url(),
3234
- siteId: z34.string().uuid(),
3235
- publicSiteKeyId: z34.string().uuid(),
3236
- publicSiteKey: z34.string().trim().min(1),
3237
- accessToken: z34.string().trim().min(1),
3238
- siteRevalidationSecret: z34.string().regex(/^[A-Za-z0-9_-]{43}$/u),
3239
- runId: z34.string().uuid(),
3323
+ var siteSetupBootstrapDataSchema = z35.object({
3324
+ credentialPurpose: z35.literal("site_setup"),
3325
+ apiBaseUrl: z35.string().url(),
3326
+ siteId: z35.string().uuid(),
3327
+ publicSiteKeyId: z35.string().uuid(),
3328
+ publicSiteKey: z35.string().trim().min(1),
3329
+ accessToken: z35.string().trim().min(1),
3330
+ siteRevalidationSecret: z35.string().regex(/^[A-Za-z0-9_-]{43}$/u),
3331
+ runId: z35.string().uuid(),
3240
3332
  packages: siteSetupPackagesSchema
3241
3333
  }).strict();
3242
- var featureBootstrapDataSchema = z34.object({
3243
- credentialPurpose: z34.enum(["analytics", "booking"]),
3244
- apiBaseUrl: z34.string().url(),
3245
- siteId: z34.string().uuid(),
3246
- accessToken: z34.string().trim().min(1)
3334
+ var featureBootstrapDataSchema = z35.object({
3335
+ credentialPurpose: z35.enum(["analytics", "booking"]),
3336
+ apiBaseUrl: z35.string().url(),
3337
+ siteId: z35.string().uuid(),
3338
+ accessToken: z35.string().trim().min(1)
3247
3339
  }).strict();
3248
- var bootstrapResponseSchema = z34.object({
3249
- ok: z34.literal(true),
3250
- data: z34.discriminatedUnion("credentialPurpose", [
3340
+ var bootstrapResponseSchema = z35.object({
3341
+ ok: z35.literal(true),
3342
+ data: z35.discriminatedUnion("credentialPurpose", [
3251
3343
  siteSetupBootstrapDataSchema,
3252
3344
  featureBootstrapDataSchema
3253
3345
  ])
@@ -3407,7 +3499,7 @@ async function collectSourceFiles(directory) {
3407
3499
  import { execFile as execFile2 } from "child_process";
3408
3500
  import { readFile as readFile9 } from "fs/promises";
3409
3501
  import { promisify as promisify2 } from "util";
3410
- import { z as z35 } from "zod";
3502
+ import { z as z36 } from "zod";
3411
3503
 
3412
3504
  // ../cli/dist/scan/next-source-scan.js
3413
3505
  import ts2 from "typescript";
@@ -3417,32 +3509,32 @@ var editableComponentNames = new Set(["Image", "Text", "LongText", "Link"].map((
3417
3509
 
3418
3510
  // ../cli/dist/commands/site-setup.js
3419
3511
  var execFileAsync2 = promisify2(execFile2);
3420
- var safeErrorSchema = z35.object({
3421
- code: z35.string().trim().min(1),
3422
- message: z35.string().trim().min(1)
3512
+ var safeErrorSchema = z36.object({
3513
+ code: z36.string().trim().min(1),
3514
+ message: z36.string().trim().min(1)
3423
3515
  }).passthrough();
3424
- var errorResponseSchema2 = z35.object({ ok: z35.literal(false), error: safeErrorSchema }).passthrough();
3425
- var contextDataSchema = z35.object({
3516
+ var errorResponseSchema2 = z36.object({ ok: z36.literal(false), error: safeErrorSchema }).passthrough();
3517
+ var contextDataSchema = z36.object({
3426
3518
  task: siteSetupTaskSchema.refine((task) => task.run !== null)
3427
3519
  }).strict();
3428
- var contextResponseSchema = z35.object({ ok: z35.literal(true), data: contextDataSchema }).strict();
3429
- var applyDataSchema = z35.object({
3430
- status: z35.enum(["applied", "ready_for_review"]),
3431
- runId: z35.string().uuid().optional(),
3432
- contractVersionId: z35.string().uuid().optional(),
3433
- fieldContractHash: z35.string().regex(/^sha256:[0-9a-f]{64}$/u),
3434
- editorDefinitionHash: z35.string().regex(/^sha256:[0-9a-f]{64}$/u).optional(),
3435
- fieldCount: z35.number().int().nonnegative().optional(),
3436
- routeCount: z35.number().int().nonnegative().optional()
3520
+ var contextResponseSchema = z36.object({ ok: z36.literal(true), data: contextDataSchema }).strict();
3521
+ var applyDataSchema = z36.object({
3522
+ status: z36.enum(["applied", "ready_for_review"]),
3523
+ runId: z36.string().uuid().optional(),
3524
+ contractVersionId: z36.string().uuid().optional(),
3525
+ fieldContractHash: z36.string().regex(/^sha256:[0-9a-f]{64}$/u),
3526
+ editorDefinitionHash: z36.string().regex(/^sha256:[0-9a-f]{64}$/u).optional(),
3527
+ fieldCount: z36.number().int().nonnegative().optional(),
3528
+ routeCount: z36.number().int().nonnegative().optional()
3437
3529
  }).strict();
3438
- var applyResponseSchema = z35.object({ ok: z35.literal(true), data: applyDataSchema }).strict();
3439
- var verifyDataSchema = z35.object({
3440
- status: z35.literal("ready_for_review"),
3441
- runId: z35.string().uuid().optional(),
3442
- deploymentOrigin: z35.string().url().optional(),
3443
- deploymentRevision: z35.string().optional()
3530
+ var applyResponseSchema = z36.object({ ok: z36.literal(true), data: applyDataSchema }).strict();
3531
+ var verifyDataSchema = z36.object({
3532
+ status: z36.literal("ready_for_review"),
3533
+ runId: z36.string().uuid().optional(),
3534
+ deploymentOrigin: z36.string().url().optional(),
3535
+ deploymentRevision: z36.string().optional()
3444
3536
  }).strict();
3445
- var verifyResponseSchema = z35.object({ ok: z35.literal(true), data: verifyDataSchema }).strict();
3537
+ var verifyResponseSchema = z36.object({ ok: z36.literal(true), data: verifyDataSchema }).strict();
3446
3538
  async function siteSetupContextCommand(input) {
3447
3539
  const response = await postSiteSetup(input, "context", {});
3448
3540
  const parsed = contextResponseSchema.safeParse(response.payload);
@@ -3539,19 +3631,19 @@ async function readGitRevision(projectDir) {
3539
3631
  import { randomBytes, randomUUID as randomUUID4 } from "crypto";
3540
3632
  import { access as access4 } from "fs/promises";
3541
3633
  import { join as join9, relative as relative5 } from "path";
3542
- import { z as z36 } from "zod";
3543
- var bootstrapResponseSchema2 = z36.object({
3544
- ok: z36.literal(true),
3634
+ import { z as z37 } from "zod";
3635
+ var bootstrapResponseSchema2 = z37.object({
3636
+ ok: z37.literal(true),
3545
3637
  data: siteSetupBootstrapDataSchema
3546
3638
  }).strict();
3547
3639
 
3548
3640
  // ../cli/dist/commands/setup-review.js
3549
- import { z as z37 } from "zod";
3550
- var responseSchema2 = z37.object({
3551
- ok: z37.literal(true),
3552
- data: z37.object({
3553
- reviewUrl: z37.string().url(),
3554
- expiresAt: z37.string().datetime({ offset: true })
3641
+ import { z as z38 } from "zod";
3642
+ var responseSchema2 = z38.object({
3643
+ ok: z38.literal(true),
3644
+ data: z38.object({
3645
+ reviewUrl: z38.string().url(),
3646
+ expiresAt: z38.string().datetime({ offset: true })
3555
3647
  }).strict()
3556
3648
  }).strict();
3557
3649
 
@@ -3565,8 +3657,8 @@ import ts3 from "typescript";
3565
3657
  import { randomUUID as randomUUID6 } from "crypto";
3566
3658
  import { lstat as lstat3, mkdir as mkdir7, open as open4, readFile as readFile11, rm as rm4, rmdir } from "fs/promises";
3567
3659
  import { resolve as resolve2 } from "path";
3568
- import { z as z38 } from "zod";
3569
- var ownerSchema = z38.object({ pid: z38.number().int().positive(), nonce: z38.string().uuid() }).strict();
3660
+ import { z as z39 } from "zod";
3661
+ var ownerSchema = z39.object({ pid: z39.number().int().positive(), nonce: z39.string().uuid() }).strict();
3570
3662
 
3571
3663
  // ../cli/dist/config/build-provenance.js
3572
3664
  import { createHash as createHash3 } from "crypto";
@@ -3574,23 +3666,23 @@ import { execFile as execFile3 } from "child_process";
3574
3666
  import { lstat as lstat4, readFile as readFile12, writeFile as writeFile5, mkdir as mkdir8 } from "fs/promises";
3575
3667
  import { dirname as dirname8, isAbsolute as isAbsolute2, join as join11, relative as relative7, resolve as resolve3, sep as sep3 } from "path";
3576
3668
  import { isDeepStrictEqual, promisify as promisify3 } from "util";
3577
- import { z as z39 } from "zod";
3669
+ import { z as z40 } from "zod";
3578
3670
  var execute = promisify3(execFile3);
3579
3671
  var name = ".siteplane/build-source.json";
3580
- var oid = z39.string().regex(/^[0-9a-f]{40}$/u);
3581
- var entrySchema = z39.object({
3582
- path: z39.string().min(1).max(4096),
3583
- mode: z39.enum(["100644", "100755", "120000"]),
3672
+ var oid = z40.string().regex(/^[0-9a-f]{40}$/u);
3673
+ var entrySchema = z40.object({
3674
+ path: z40.string().min(1).max(4096),
3675
+ mode: z40.enum(["100644", "100755", "120000"]),
3584
3676
  oid
3585
3677
  }).strict();
3586
- var schema = z39.object({
3587
- version: z39.literal(2),
3678
+ var schema = z40.object({
3679
+ version: z40.literal(2),
3588
3680
  revision: oid,
3589
- commit: z39.string().min(1).max(1048576),
3590
- entries: z39.array(entrySchema).min(1).max(1e5),
3591
- providerConfigurations: z39.array(z39.object({
3592
- path: z39.string().max(4096).regex(/(?:^|\/)vercel\.json$/u),
3593
- source: z39.string().max(1048576)
3681
+ commit: z40.string().min(1).max(1048576),
3682
+ entries: z40.array(entrySchema).min(1).max(1e5),
3683
+ providerConfigurations: z40.array(z40.object({
3684
+ path: z40.string().max(4096).regex(/(?:^|\/)vercel\.json$/u),
3685
+ source: z40.string().max(1048576)
3594
3686
  }).strict()).max(1e3)
3595
3687
  }).strict();
3596
3688
  async function writeBuildProvenance(checkout, revision) {
@@ -3639,38 +3731,38 @@ import { createHash as createHash4, randomBytes as randomBytes2, randomUUID as r
3639
3731
  import { access as access6, mkdir as mkdir9, mkdtemp, rm as rm5, writeFile as writeFile6 } from "fs/promises";
3640
3732
  import { tmpdir } from "os";
3641
3733
  import { join as join12 } from "path";
3642
- import { z as z40 } from "zod";
3643
- var envSchema = z40.object({
3644
- id: z40.string(),
3645
- key: z40.string(),
3646
- target: z40.array(z40.string()),
3647
- type: z40.string(),
3648
- comment: z40.string().optional(),
3649
- updatedAt: z40.number().optional()
3650
- });
3651
- var deploymentSchema = z40.object({
3652
- id: z40.string(),
3653
- projectId: z40.string(),
3654
- ownerId: z40.string().optional(),
3655
- target: z40.string().nullable(),
3656
- readyState: z40.string(),
3657
- createdAt: z40.number(),
3658
- url: z40.string(),
3659
- meta: z40.record(z40.string(), z40.unknown()).optional(),
3660
- gitSource: z40.object({ sha: z40.string().optional() }).nullable().optional()
3661
- });
3662
- var buildProofSchema = z40.object({
3663
- node: z40.string(),
3664
- packageManager: z40.enum(["npm", "pnpm"]),
3665
- packageManagerVersion: z40.string(),
3666
- lockfileHash: z40.string(),
3667
- revision: z40.string(),
3668
- fieldContractHash: z40.string(),
3669
- siteplane: z40.string(),
3670
- runtimeNext: z40.string(),
3671
- analytics: z40.string().optional(),
3672
- next: z40.string(),
3673
- react: z40.string()
3734
+ import { z as z41 } from "zod";
3735
+ var envSchema = z41.object({
3736
+ id: z41.string(),
3737
+ key: z41.string(),
3738
+ target: z41.array(z41.string()),
3739
+ type: z41.string(),
3740
+ comment: z41.string().optional(),
3741
+ updatedAt: z41.number().optional()
3742
+ });
3743
+ var deploymentSchema = z41.object({
3744
+ id: z41.string(),
3745
+ projectId: z41.string(),
3746
+ ownerId: z41.string().optional(),
3747
+ target: z41.string().nullable(),
3748
+ readyState: z41.string(),
3749
+ createdAt: z41.number(),
3750
+ url: z41.string(),
3751
+ meta: z41.record(z41.string(), z41.unknown()).optional(),
3752
+ gitSource: z41.object({ sha: z41.string().optional() }).nullable().optional()
3753
+ });
3754
+ var buildProofSchema = z41.object({
3755
+ node: z41.string(),
3756
+ packageManager: z41.enum(["npm", "pnpm"]),
3757
+ packageManagerVersion: z41.string(),
3758
+ lockfileHash: z41.string(),
3759
+ revision: z41.string(),
3760
+ fieldContractHash: z41.string(),
3761
+ siteplane: z41.string(),
3762
+ runtimeNext: z41.string(),
3763
+ analytics: z41.string().optional(),
3764
+ next: z41.string(),
3765
+ react: z41.string()
3674
3766
  }).strict();
3675
3767
  var defaults = {
3676
3768
  preflight: setupPreflightCommand,
@@ -3686,7 +3778,7 @@ var defaults = {
3686
3778
  };
3687
3779
 
3688
3780
  // ../cli/dist/commands/setup-claim.js
3689
- import { z as z41 } from "zod";
3781
+ import { z as z42 } from "zod";
3690
3782
  export {
3691
3783
  bookingCheckCommand,
3692
3784
  bookingInitCommand,