@builtbyfriends/bwf 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-cmd-Cj0I2_bJ.mjs → account-cmd-Ddt8lGeL.mjs} +2 -2
- package/dist/{auth-link-D-DddkCQ.mjs → auth-link-CCl-hJol.mjs} +2 -2
- package/dist/{auth-router-tWzIwf8f.mjs → auth-router-BG74WFUf.mjs} +2 -2
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/env-schema-probe.mjs +2 -2
- package/dist/{cli-main-HeXRQml6.mjs → cli-main-BfYf6fnB.mjs} +22 -22
- package/dist/{cloudflare-auth-jb-1e43r.mjs → cloudflare-auth-DzkU9H6r.mjs} +1 -1
- package/dist/{cloudflare-cmd-B62t8Fm-.mjs → cloudflare-cmd-Bm6UhzAQ.mjs} +3 -3
- package/dist/{cloudflare-connect-x7IsYghw.mjs → cloudflare-connect-B4ItSbJi.mjs} +2 -2
- package/dist/{cloudflare-operations-C3Uu0Emj.mjs → cloudflare-operations-BcK849ue.mjs} +1 -1
- package/dist/{cloudflare-operations-BeK7bhnP.mjs → cloudflare-operations-DGF7xH7O.mjs} +4 -4
- package/dist/{cloudflare-process-Cc6oiJqk.mjs → cloudflare-process-tThIjEB2.mjs} +1 -1
- package/dist/{connect-hLPNppu3.mjs → connect-CSNWKLzB.mjs} +4 -4
- package/dist/{db-BH_md90k.mjs → db-SOv4E9wr.mjs} +14 -14
- package/dist/deploy-BCSQoKC0.mjs +2 -0
- package/dist/{deploy-C8KHBNsh.mjs → deploy-CWJ3JJs_.mjs} +14 -14
- package/dist/deploy.mjs +2 -2
- package/dist/{domain-C4ZhEiFG.mjs → domain-BJaAbxuQ.mjs} +1 -1
- package/dist/{email-cloudflare-DuAc9zny.mjs → email-cloudflare-oXk2G1G3.mjs} +1 -1
- package/dist/{email-B3TWga7x.mjs → email-rIfZgVAB.mjs} +4 -4
- package/dist/{env-CTAo8ifZ.mjs → env-BGTu3KWZ.mjs} +2 -2
- package/dist/{env-validation-DPqDo4DU.mjs → env-validation-BlXzGgLZ.mjs} +1 -1
- package/dist/{env-validation-BufZConV.mjs → env-validation-DeqFUSKg.mjs} +1 -1
- package/dist/{handler-CVsIfRv7.d.mts → handler-B_ocHStk.d.mts} +1 -1
- package/dist/{handler-CJ7DiiRF.mjs → handler-CNq7aSs1.mjs} +1 -1
- package/dist/{help-Bpv6Qeqn.mjs → help-BK35YcRa.mjs} +2 -2
- package/dist/help-DaRezBj7.mjs +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +8 -8
- package/dist/{init-DRUR0j8C.mjs → init-CXanf5ck.mjs} +9 -9
- package/dist/{list-B84t4BhW.mjs → list-B1WAE9Wt.mjs} +1 -1
- package/dist/{live-Dui0-aj_.d.mts → live-KkEeda1Z.d.mts} +1 -1
- package/dist/{local-d1-C3EeOV7-.mjs → local-d1-bUoAtFUe.mjs} +1 -1
- package/dist/login-BUzyiyHV.mjs +1 -0
- package/dist/{login-Bl5lH8nH.mjs → login-Dbv_T3Ru.mjs} +1 -1
- package/dist/{logs-CaT2N2f7.mjs → logs-BjMJooJQ.mjs} +1 -1
- package/dist/migrate-DjW9_-sS.mjs +1 -0
- package/dist/{migrate-CbGscX-V.mjs → migrate-DtcfKqPW.mjs} +1 -1
- package/dist/{operator-args-BFg32YyY.mjs → operator-args-BiGmSlZx.mjs} +1 -1
- package/dist/operator-cmd-BsHKYJYt.mjs +1 -0
- package/dist/{operator-cmd-C73WWJBl.mjs → operator-cmd-DTIkOAnP.mjs} +3 -3
- package/dist/{package-DO4d3Qz5.mjs → package-BX_giUBX.mjs} +4 -4
- package/dist/platform-args-C-DyuCNX.mjs +1 -0
- package/dist/{platform-args-NI_vfWvD.mjs → platform-args-CyeQWaZ7.mjs} +1 -1
- package/dist/{platform-auth-config-d-lY5-aY.mjs → platform-auth-config-BfXqKSyZ.mjs} +4 -4
- package/dist/{platform-auth-protection-Dhw7lUCk.mjs → platform-auth-protection-5FR6qoP_.mjs} +2 -2
- package/dist/{platform-auth-recovery-DaCc0tlx.mjs → platform-auth-recovery-B5ZlqA8K.mjs} +2 -2
- package/dist/{platform-cmd-5oZq91lI.mjs → platform-cmd-CcFDxtrl.mjs} +1 -1
- package/dist/{platform-cmd-5Ry-C9im.mjs → platform-cmd-ChXeBrRH.mjs} +4 -4
- package/dist/{platform-domain-DLVdGvGG.mjs → platform-domain-CwatS3cz.mjs} +2 -2
- package/dist/{platform-lifecycle-fRt5VMls.mjs → platform-lifecycle-0cXTmMsh.mjs} +20 -20
- package/dist/{platform-lifecycle-CUgjipXO.mjs → platform-lifecycle-BcoBAMux.mjs} +1 -1
- package/dist/{platform-management-Djh1hzLP.mjs → platform-management-6Wbdbob5.mjs} +2 -2
- package/dist/{platform-management-5hEsRfR2.mjs → platform-management-hhnczOzr.mjs} +1 -1
- package/dist/{platform-recovery-Cghx7FCR.mjs → platform-recovery-DgIwlqB-.mjs} +2 -2
- package/dist/{platform-setup-SfwCwnZg.mjs → platform-setup-DX8y_6Kh.mjs} +1 -1
- package/dist/{project-cmd-DTF19-fC.mjs → project-cmd-BydRwr-x.mjs} +6 -6
- package/dist/{provision-DGlFJ3T9.mjs → provision-BA59NCPO.mjs} +1 -1
- package/dist/{provision-mYVLuQiy.mjs → provision-C90fULHJ.mjs} +2 -2
- package/dist/{rollback-BvCHol52.mjs → rollback-wi6WK5T6.mjs} +1 -1
- package/dist/{runner-mysql-DrMKw203.mjs → runner-mysql-BjSoQ-mW.mjs} +1 -1
- package/dist/{runner-mysql-7aA5hGoM.mjs → runner-mysql-BmTI2EiF.mjs} +1 -1
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/handler.mjs +1 -1
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/procedure.d.mts +1 -1
- package/dist/runtime/routing.d.mts +1 -1
- package/dist/runtime/routing.mjs +1 -1
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +1 -1
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/{secret-DCF9RXTc.mjs → secret-D5XrWshs.mjs} +2 -2
- package/dist/{version-metadata-DsSoNsKJ.mjs → version-metadata-DPhqnpaa.mjs} +1 -1
- package/dist/wrangler-C3uyPadQ.mjs +1 -0
- package/dist/{wrangler-DU784Dkf.mjs → wrangler-TqTvJFWS.mjs} +1 -1
- package/dist/{ws-Q_osq9VK.d.mts → ws-DZRiIpYw.d.mts} +1 -1
- package/docs/guide/auth.md +1 -1
- package/docs/guide/platform/administration/zero-trust.md +1 -1
- package/docs/guide/queues.md +1 -1
- package/docs/reference/cli/database.md +1 -1
- package/docs/reference/cli/platform.md +1 -1
- package/package.json +7 -7
- package/dist/deploy-DCZBr7Ey.mjs +0 -2
- package/dist/help-CfZ4Bsw5.mjs +0 -1
- package/dist/login-DoI7AsbY.mjs +0 -1
- package/dist/migrate-Ce3JKLVs.mjs +0 -1
- package/dist/operator-cmd-CdZytuAF.mjs +0 -1
- package/dist/platform-args-ZC1-A1N9.mjs +0 -1
- package/dist/wrangler-Rr9_76DQ.mjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { H as outro } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { n as getOwnVersion } from "./agents-BLiMq9E1.mjs";
|
|
3
|
-
import { n as operatorGroups, t as operatorCommands } from "./operator-args-
|
|
3
|
+
import { n as operatorGroups, t as operatorCommands } from "./operator-args-BiGmSlZx.mjs";
|
|
4
4
|
import { d as helpLine, f as import_picocolors, g as sectionTitle, l as formatUrl, p as note, t as categoryTitle } from "./output-Bb34lF0w.mjs";
|
|
5
5
|
// src/cli/ascii.ts
|
|
6
6
|
const asciiArts = [
|
|
@@ -1856,7 +1856,7 @@ function printGlobalHelp() {
|
|
|
1856
1856
|
helpLine("bwf <command> --help", "Show command-specific help")
|
|
1857
1857
|
].join("\n"), sectionTitle("Commands"));
|
|
1858
1858
|
note([helpLine("BWF_TOKEN", "Auth token (or use `bwf account login`)"), helpLine("BWF_PROJECT", "Deploy target project name override")].join("\n"), sectionTitle("Environment"));
|
|
1859
|
-
outro(formatUrl("https://
|
|
1859
|
+
outro(formatUrl("https://github.com/builtbyfriends/platform"));
|
|
1860
1860
|
}
|
|
1861
1861
|
function printBwfHeader() {
|
|
1862
1862
|
const version = getOwnVersion();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as printHelpPage } from "./help-BK35YcRa.mjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as HandlerInput, a as CloudContextVariables, c as QueueMessage, d as TypedQueueHandler, f as basicAuth, g as defineScheduled, h as defineQueue, i as CloudContext, l as QueueRetryOptions, m as defineMiddleware, n as BwfAssetRewriteError, o as CloudEnv, p as defineHandler, r as CloudBindings, s as QueueBatch, t as BasicAuthOptions, u as TypedHandler, v as ValidatorSlots } from "./handler-
|
|
1
|
+
import { _ as HandlerInput, a as CloudContextVariables, c as QueueMessage, d as TypedQueueHandler, f as basicAuth, g as defineScheduled, h as defineQueue, i as CloudContext, l as QueueRetryOptions, m as defineMiddleware, n as BwfAssetRewriteError, o as CloudEnv, p as defineHandler, r as CloudBindings, s as QueueBatch, t as BasicAuthOptions, u as TypedHandler, v as ValidatorSlots } from "./handler-B_ocHStk.mjs";
|
|
2
2
|
import { i as AuthUser } from "./auth-BKsUmWbT.mjs";
|
|
3
3
|
import { t as QueueMap } from "./queues-Bc3FsBQT.mjs";
|
|
4
4
|
import { Plugin } from "vite";
|
package/dist/index.mjs
CHANGED
|
@@ -4,11 +4,11 @@ import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
|
|
|
4
4
|
import { C as isIdentifier, E as applyBindingOverrides, S as bindingResolver, T as isMemberExpression, _ as isRouteEnabledForEnvironment, a as hasSandboxSqliteMigration, c as resolveSandboxConfig, d as scanQueuesSync, f as readAppIdentity, i as assertSandboxNamespaceConfig, l as sandboxContainerConfig, m as invalidateSourceAnalysis, n as DEFAULT_SANDBOX_CLASS_NAME, o as isSandboxAttached, p as DEFAULT_SCAN_DIRS, r as SANDBOX_MIGRATION_TAG, t as analyzeApplicationSync, v as inferBindingsFromSource, w as isLiteral, x as scanJobsSync } from "./application-analysis-C9Ck2Yeg.mjs";
|
|
5
5
|
import { c as resolveAssetWorkerBypass, d as hasApiRoutes, f as hasDocumentRoutes, i as mergeRoutingRules, m as resolveAssetRoutingPolicy, n as resolveWorkerDirName, o as isAssetBypassRule, r as lintRoutingPhases, s as isGeneratedAssetHeaders, t as resolveDistDir, u as edgeRulesNeedWorker } from "./build-output-dir-Clj_unKN.mjs";
|
|
6
6
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CC7eN00D.mjs";
|
|
7
|
-
import { C as readWranglerWebSocketTombstones, D as syncWranglerDurableObjects, O as syncWranglerWebSockets, a as LIVE_MIGRATION_TAG, d as findBindingNameOwner, f as hasDurableObjectSqliteMigration, g as readExistingLiveBindingConfig, m as normalizeWranglerCompatibilityFlags, p as nextDurableObjectMigrationTag, u as ensureWranglerCompat, w as resolveLiveBindingConfig, y as readWranglerCompat } from "./wrangler-
|
|
7
|
+
import { C as readWranglerWebSocketTombstones, D as syncWranglerDurableObjects, O as syncWranglerWebSockets, a as LIVE_MIGRATION_TAG, d as findBindingNameOwner, f as hasDurableObjectSqliteMigration, g as readExistingLiveBindingConfig, m as normalizeWranglerCompatibilityFlags, p as nextDurableObjectMigrationTag, u as ensureWranglerCompat, w as resolveLiveBindingConfig, y as readWranglerCompat } from "./wrangler-TqTvJFWS.mjs";
|
|
8
8
|
import { c as stashCloudflareDeployPointer, i as materializeCloudflareConfig, o as restoreCloudflarePreviewPointer } from "./cloudflare-config-i8yanry0.mjs";
|
|
9
9
|
import { a as removeAuthTypesIfPresent, c as generateDbDts, n as generateQueueTypes, o as syncAuthTypesFile, r as generateProcedureTypes, s as DRIZZLE_OPERATORS, t as generateRouteTypes, u as syncBindingTypes } from "./route-types-CRWhr93D.mjs";
|
|
10
10
|
import { c as getDatabaseCasing, f as readConfig, l as getDatabaseDialect } from "./config-tNx0HlFv.mjs";
|
|
11
|
-
import { n as writeLocalD1PersistState, t as resolveLocalD1Target } from "./local-d1-
|
|
11
|
+
import { n as writeLocalD1PersistState, t as resolveLocalD1Target } from "./local-d1-bUoAtFUe.mjs";
|
|
12
12
|
import { n as bwfLog, r as bwfWarn, t as bwfError } from "./log-JDnPc0cF.mjs";
|
|
13
13
|
import { a as getApiUrl, c as getToken, o as getProxyUrl } from "./auth-xnkmpZUl.mjs";
|
|
14
14
|
import { n as ensurePlatformProxyAccess } from "./cf-access-Bhz9wX6p.mjs";
|
|
@@ -27,11 +27,11 @@ import { t as loadUserEnvFile } from "./load-user-env-g0ahkZcj.mjs";
|
|
|
27
27
|
import { n as scanWranglerDotenvKeys } from "./dotenv-4NdUCXbB.mjs";
|
|
28
28
|
import { i as loadBwfAuthConfig, n as devAuthConfigImporter, o as viteAuthConfigImporter, t as AUTH_CONFIG_ENVIRONMENT } from "./config-CN_RFRkS.mjs";
|
|
29
29
|
import { n as completeApplicationAnalysis } from "./application-routing-DbR-W5lG.mjs";
|
|
30
|
-
import { d as cloudflareQueueName, n as SEND_EMAIL_BINDING, p as readDeployBuildQueueNames } from "./email-cloudflare-
|
|
30
|
+
import { d as cloudflareQueueName, n as SEND_EMAIL_BINDING, p as readDeployBuildQueueNames } from "./email-cloudflare-oXk2G1G3.mjs";
|
|
31
31
|
import { t as INTERNAL_BINDING_PREFIXES } from "./env-raw-Bo6TtrHU.mjs";
|
|
32
32
|
import { t as ASSET_EXTENSIONS } from "./routing-assets-CSheDWWM.mjs";
|
|
33
|
-
import { r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-
|
|
34
|
-
import { a as defineQueue, i as defineMiddleware, n as basicAuth, o as defineScheduled, r as defineHandler, t as BwfAssetRewriteError } from "./handler-
|
|
33
|
+
import { r as selectNativeVersionMetadataBinding, t as CLOUDFLARE_PRESERVE_BINDINGS_BUILD_ENV } from "./version-metadata-DPhqnpaa.mjs";
|
|
34
|
+
import { a as defineQueue, i as defineMiddleware, n as basicAuth, o as defineScheduled, r as defineHandler, t as BwfAssetRewriteError } from "./handler-CNq7aSs1.mjs";
|
|
35
35
|
import { builtinModules, createRequire } from "node:module";
|
|
36
36
|
import { chmodSync, closeSync, cpSync, existsSync, mkdirSync, mkdtempSync, openSync, readFileSync, readdirSync, realpathSync, rmSync, statSync, writeFileSync, writeSync } from "node:fs";
|
|
37
37
|
import { createRunnableDevEnvironment, isRunnableDevEnvironment, loadEnv, normalizePath, parseSync, resolveEnvPrefix } from "vite";
|
|
@@ -1889,7 +1889,7 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1889
1889
|
const authWithFiles = authUrl !== void 0 && authUrl === url;
|
|
1890
1890
|
if (url) {
|
|
1891
1891
|
const { validateMigrations } = await import("./validate-DbqGdPPY.mjs");
|
|
1892
|
-
const appliedNames = dialect === "mysql" ? await import("./runner-mysql-
|
|
1892
|
+
const appliedNames = dialect === "mysql" ? await import("./runner-mysql-BjSoQ-mW.mjs").then((runner) => runner.getMySqlAppliedMigrations(url)) : await import("./runner-pg-2pjltt0t.mjs").then((runner) => runner.getPgAppliedMigrations(url));
|
|
1893
1893
|
const appliedSet = new Set(appliedNames);
|
|
1894
1894
|
const pending = allMigrations.filter((migration) => !appliedSet.has(migration.name));
|
|
1895
1895
|
if (pending.length > 0) try {
|
|
@@ -1898,14 +1898,14 @@ function migrationPlugin(root, dialect, databaseId = "local", persistRoot = join
|
|
|
1898
1898
|
refuse(err);
|
|
1899
1899
|
return;
|
|
1900
1900
|
}
|
|
1901
|
-
const applied = dialect === "mysql" ? await import("./runner-mysql-
|
|
1901
|
+
const applied = dialect === "mysql" ? await import("./runner-mysql-BjSoQ-mW.mjs").then((runner) => runner.runMySqlMigrations(migrationsDir, url, authWithFiles ? async (names) => {
|
|
1902
1902
|
logApplied(names);
|
|
1903
1903
|
await migrateAuth(url);
|
|
1904
1904
|
} : void 0)) : await import("./runner-pg-2pjltt0t.mjs").then((runner) => runner.runPgMigrations(migrationsDir, url));
|
|
1905
1905
|
if (!authWithFiles) logApplied(applied);
|
|
1906
1906
|
}
|
|
1907
1907
|
if (authUrl && !authWithFiles) {
|
|
1908
|
-
const { withMySqlMigrationLockAt } = await import("./runner-mysql-
|
|
1908
|
+
const { withMySqlMigrationLockAt } = await import("./runner-mysql-BjSoQ-mW.mjs");
|
|
1909
1909
|
await withMySqlMigrationLockAt(authUrl, () => migrateAuth(authUrl));
|
|
1910
1910
|
}
|
|
1911
1911
|
} else if (hasSqlMigrations) {
|
|
@@ -3,23 +3,23 @@ import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative,
|
|
|
3
3
|
import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-i8yanry0.mjs";
|
|
4
4
|
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-P9X952KG.mjs";
|
|
5
5
|
import { n as readProjectPaths } from "./project-paths-iXHKRTTQ.mjs";
|
|
6
|
-
import { A as writeProvisionedWranglerConfig, F as writeBwfProjectConfig, N as canRewriteBwfProjectConfig, P as renderBwfConfig } from "./wrangler-
|
|
6
|
+
import { A as writeProvisionedWranglerConfig, F as writeBwfProjectConfig, N as canRewriteBwfProjectConfig, P as renderBwfConfig } from "./wrangler-TqTvJFWS.mjs";
|
|
7
7
|
import { c as getDatabaseCasing, f as readConfig, l as getDatabaseDialect, s as databaseConfigValue } from "./config-tNx0HlFv.mjs";
|
|
8
8
|
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DOaFIK3w.mjs";
|
|
9
9
|
import { n as snapshotDrizzleOutputs } from "./generate-Da9mWKzU.mjs";
|
|
10
10
|
import { i as readPackageJson, n as hasPackageDependency } from "./package-json-DvS6IFRv.mjs";
|
|
11
11
|
import { n as getOwnVersion, r as getPackageDir, t as detectAgents } from "./agents-BLiMq9E1.mjs";
|
|
12
|
-
import { t as connectCloudflare } from "./cloudflare-connect-
|
|
12
|
+
import { t as connectCloudflare } from "./cloudflare-connect-B4ItSbJi.mjs";
|
|
13
13
|
import { c as getToken } from "./auth-xnkmpZUl.mjs";
|
|
14
14
|
import { r as PlatformClient } from "./client-D3D5RM5h.mjs";
|
|
15
15
|
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-B35ux-LA.mjs";
|
|
16
|
-
import { t as promptForLoginToken } from "./login-
|
|
16
|
+
import { t as promptForLoginToken } from "./login-Dbv_T3Ru.mjs";
|
|
17
17
|
import { l as writeProjectConfig, n as readDeploymentPlatform, r as readProjectConfig, s as writeDeploymentPlatform, t as attachSelectedPlatform } from "./project-CC7eN00D.mjs";
|
|
18
18
|
import { t as parseDotenvFile } from "./dotenv-4NdUCXbB.mjs";
|
|
19
|
-
import { t as migrateLegacyBwfConfig } from "./migrate-
|
|
19
|
+
import { t as migrateLegacyBwfConfig } from "./migrate-DtcfKqPW.mjs";
|
|
20
20
|
import { l as formatUrl, m as printSuccess, p as note } from "./output-Bb34lF0w.mjs";
|
|
21
|
-
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-
|
|
22
|
-
import { o as formatProjectCommand } from "./cloudflare-process-
|
|
21
|
+
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-ChXeBrRH.mjs";
|
|
22
|
+
import { o as formatProjectCommand } from "./cloudflare-process-tThIjEB2.mjs";
|
|
23
23
|
import { t as MagicString } from "./dist-B6eN80gc.mjs";
|
|
24
24
|
import { i as hasLocalLockfile, n as drizzleKitBin, r as findInstalledYarnPnpRuntime, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
25
25
|
import { createRequire } from "node:module";
|
|
@@ -109,7 +109,7 @@ function renderEnvTs(entries) {
|
|
|
109
109
|
if (entries.length === 0) return [
|
|
110
110
|
`import { defineEnv } from '@builtbyfriends/bwf/env';`,
|
|
111
111
|
``,
|
|
112
|
-
`// Define your environment variables here. See https://
|
|
112
|
+
`// Define your environment variables here. See https://github.com/builtbyfriends/platform/blob/main/docs/guide/env-vars.md`,
|
|
113
113
|
`export default defineEnv({});`,
|
|
114
114
|
``
|
|
115
115
|
].join("\n");
|
|
@@ -456,7 +456,7 @@ ${indent(hasDatabase ? `<p>
|
|
|
456
456
|
<p>Your questions, answered</p>
|
|
457
457
|
<ul>
|
|
458
458
|
<li>
|
|
459
|
-
<a href="https://
|
|
459
|
+
<a href="https://github.com/builtbyfriends/platform/blob/main/docs/guide/quickstart.md" target="_blank" rel="noreferrer">
|
|
460
460
|
Quickstart
|
|
461
461
|
</a>
|
|
462
462
|
</li>
|
|
@@ -1681,7 +1681,7 @@ async function promptDeploymentPlatform(root, deploy) {
|
|
|
1681
1681
|
},
|
|
1682
1682
|
{
|
|
1683
1683
|
value: "nosam",
|
|
1684
|
-
label: current === "nosam" ? "bwf [current]" : "
|
|
1684
|
+
label: current === "nosam" ? "bwf [current]" : "Platform",
|
|
1685
1685
|
hint: "Deploy to your company's bwf Platform."
|
|
1686
1686
|
},
|
|
1687
1687
|
{
|
|
@@ -42,7 +42,7 @@ async function runListCommand(root, slug) {
|
|
|
42
42
|
}
|
|
43
43
|
async function showCloudflareDeployments(root, slug) {
|
|
44
44
|
if (slug) throw new Error("project: A project name selects a bwf platform project and is not used for direct Cloudflare apps.");
|
|
45
|
-
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
45
|
+
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-BcK849ue.mjs");
|
|
46
46
|
const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
|
|
47
47
|
if (status.versions.length === 0) {
|
|
48
48
|
outro(`No deployments for ${status.workerName}.`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as AuthUser } from "./auth-BKsUmWbT.mjs";
|
|
2
|
-
import { i as CloudContext, o as CloudEnv } from "./handler-
|
|
2
|
+
import { i as CloudContext, o as CloudEnv } from "./handler-B_ocHStk.mjs";
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
4
|
type LiveControlRequest = {
|
|
5
5
|
connectionId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as join, c as resolve, i as isAbsolute } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { v as readRootWranglerConfig } from "./wrangler-
|
|
2
|
+
import { v as readRootWranglerConfig } from "./wrangler-TqTvJFWS.mjs";
|
|
3
3
|
import { r as getMiniflareDatabasePath } from "./runner-CPerdjIl.mjs";
|
|
4
4
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as selectPlatformLoginMethod } from "./login-Dbv_T3Ru.mjs";
|
|
@@ -30,7 +30,7 @@ async function selectPlatformLoginMethod(platform, requestedId) {
|
|
|
30
30
|
}
|
|
31
31
|
async function promptForLoginToken(root = process.cwd(), platform) {
|
|
32
32
|
const apiUrl = platform?.apiUrl ?? getApiUrl(root);
|
|
33
|
-
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-
|
|
33
|
+
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-CcFDxtrl.mjs")).discoverPlatform(apiUrl));
|
|
34
34
|
const s = createSpinner();
|
|
35
35
|
s.start(`Opening browser for ${providerName} login...`);
|
|
36
36
|
try {
|
|
@@ -10,7 +10,7 @@ async function runLogsCommand(root, filter, range, deployment, level) {
|
|
|
10
10
|
console.log();
|
|
11
11
|
const platform = readDeploymentPlatform(root);
|
|
12
12
|
if (platform === "cloudflare") {
|
|
13
|
-
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-
|
|
13
|
+
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-BcK849ue.mjs");
|
|
14
14
|
if (range !== "1h") log.warn("Cloudflare tail streams live logs; --range does not select historical entries.");
|
|
15
15
|
if (level && level !== "all" && level !== "error") log.warn("Cloudflare tail cannot filter individual console levels; showing all invocation logs.");
|
|
16
16
|
await tailCloudflareWorker(resolveCloudflareOperationContext(root), {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runMigrateCommand } from "./migrate-DtcfKqPW.mjs";
|
|
@@ -2,7 +2,7 @@ import { L as log } from "./dist-STQXl8ck.mjs";
|
|
|
2
2
|
import { a as join } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig, t as BWF_LOCK_FILE } from "./cloudflare-config-i8yanry0.mjs";
|
|
4
4
|
import { a as TYPED_CONFIG_FILE, s as loadTypedBwfConfigFile } from "./project-paths-iXHKRTTQ.mjs";
|
|
5
|
-
import { M as GENERATED_MARKERS, P as renderBwfConfig } from "./wrangler-
|
|
5
|
+
import { M as GENERATED_MARKERS, P as renderBwfConfig } from "./wrangler-TqTvJFWS.mjs";
|
|
6
6
|
import { m as validateConfig } from "./config-tNx0HlFv.mjs";
|
|
7
7
|
import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
8
8
|
import { m as printSuccess } from "./output-Bb34lF0w.mjs";
|
|
@@ -160,7 +160,7 @@ const operatorCommands = [
|
|
|
160
160
|
{
|
|
161
161
|
group: "zero-trust",
|
|
162
162
|
action: "disable",
|
|
163
|
-
description: "Remove
|
|
163
|
+
description: "Remove Platform-managed Access applications and make projects public",
|
|
164
164
|
path: "/zero-trust/disable",
|
|
165
165
|
method: "POST"
|
|
166
166
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as runOperatorCommand } from "./operator-cmd-DTIkOAnP.mjs";
|
|
@@ -181,8 +181,8 @@ async function runAuth(origin, args) {
|
|
|
181
181
|
if (args.action === "login" || args.action === "token" && args.tokenStdin) {
|
|
182
182
|
if (!args.tokenStdin && !process.stdin.isTTY) throw new OperatorClientError("Browser login requires an interactive terminal. Use --token-stdin to exchange an API session.", "interactive_login_required");
|
|
183
183
|
const apiToken = args.tokenStdin ? await readOperatorApiTokenStdin() : await (async () => {
|
|
184
|
-
const { discoverPlatform } = await import("./platform-cmd-
|
|
185
|
-
const { selectPlatformLoginMethod } = await import("./login-
|
|
184
|
+
const { discoverPlatform } = await import("./platform-cmd-CcFDxtrl.mjs");
|
|
185
|
+
const { selectPlatformLoginMethod } = await import("./login-BUzyiyHV.mjs");
|
|
186
186
|
const { runPlatformLogin } = await import("./auth-aKyIWkdS.mjs");
|
|
187
187
|
return runPlatformLogin(origin, (await selectPlatformLoginMethod(await discoverPlatform(origin), args.provider)).id, (url) => process.stderr.write(`Sign in at ${url}\n`));
|
|
188
188
|
})();
|
|
@@ -367,7 +367,7 @@ function aiLoggingProjectId(args) {
|
|
|
367
367
|
}
|
|
368
368
|
async function runOperatorCommand(args) {
|
|
369
369
|
if (!args.action) {
|
|
370
|
-
const { printHelpPage } = await import("./help-
|
|
370
|
+
const { printHelpPage } = await import("./help-DaRezBj7.mjs");
|
|
371
371
|
printHelpPage(["platform", args.group]);
|
|
372
372
|
return;
|
|
373
373
|
}
|
|
@@ -5,7 +5,7 @@ import { t as discoverSchema } from "./discover-DJPmQcL5.mjs";
|
|
|
5
5
|
import { t as collectMigrations } from "./collect-C6Blu9yw.mjs";
|
|
6
6
|
import { i as mergeRoutingRules, r as lintRoutingPhases } from "./build-output-dir-Clj_unKN.mjs";
|
|
7
7
|
import { l as writeProjectConfig, o as shouldLinkDeployProject, t as attachSelectedPlatform } from "./project-CC7eN00D.mjs";
|
|
8
|
-
import { E as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as readExistingLiveBindingConfig, m as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, w as resolveLiveBindingConfig } from "./wrangler-
|
|
8
|
+
import { E as syncWranglerBindings, a as LIVE_MIGRATION_TAG, g as readExistingLiveBindingConfig, m as normalizeWranglerCompatibilityFlags, u as ensureWranglerCompat, w as resolveLiveBindingConfig } from "./wrangler-TqTvJFWS.mjs";
|
|
9
9
|
import { n as buildMigrationPlanBundle } from "./plan-DX4_-OM5.mjs";
|
|
10
10
|
import { l as getTokenSource } from "./auth-xnkmpZUl.mjs";
|
|
11
11
|
import { t as findEnvFile } from "./env-types-Bg-dTh8u.mjs";
|
|
@@ -17,8 +17,8 @@ import { t as formatCloudflareUserMessage } from "./cloudflare-user-output-CqONa
|
|
|
17
17
|
import { c as parsePlatformErrorBody, i as isCliOutdatedError, l as platformErrorMessage, n as PlatformApiError, o as isHeadersTimeoutError } from "./client-D3D5RM5h.mjs";
|
|
18
18
|
import { f as import_picocolors, o as formatCount, u as getErrorMessage } from "./output-Bb34lF0w.mjs";
|
|
19
19
|
import { a as promptProjectSelection, i as reportProjectCreationWarnings, o as promptProjectSetupAction, r as promptAndCreateProject } from "./create-project-B35ux-LA.mjs";
|
|
20
|
-
import { a as detectPreset, l as resolveProjectCommand, o as formatProjectCommand } from "./cloudflare-process-
|
|
21
|
-
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-
|
|
20
|
+
import { a as detectPreset, l as resolveProjectCommand, o as formatProjectCommand } from "./cloudflare-process-tThIjEB2.mjs";
|
|
21
|
+
import { d as formatEnvReport, g as validateProdEnv, u as fetchRemoteSecretNames } from "./env-validation-DeqFUSKg.mjs";
|
|
22
22
|
import { n as drizzleKitBin } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
23
23
|
import { cpSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync } from "node:fs";
|
|
24
24
|
import { createDeployArtifact, createDeployUploadPayload } from "@builtbyfriends/deploy-core";
|
|
@@ -379,7 +379,7 @@ function runDrizzleKitGenerate(root, configPath) {
|
|
|
379
379
|
}
|
|
380
380
|
function getDeploySchemaDriftMessage(root) {
|
|
381
381
|
const migrationsDir = readProjectPaths(root).migrationsDir;
|
|
382
|
-
if (collectMigrations(migrationsDir).length > 0 && !existsSync(join(migrationsDir, "meta", "_journal.json")) && listDrizzleArtifacts(migrationsDir).length === 0) return [`Missing Drizzle metadata in ${`${relative(root, migrationsDir)}/`}.`, "See https://
|
|
382
|
+
if (collectMigrations(migrationsDir).length > 0 && !existsSync(join(migrationsDir, "meta", "_journal.json")) && listDrizzleArtifacts(migrationsDir).length === 0) return [`Missing Drizzle metadata in ${`${relative(root, migrationsDir)}/`}.`, "See https://github.com/builtbyfriends/platform/blob/main/docs/guide/database.md#hand-written-migrations"].join("\n");
|
|
383
383
|
return [`Schema drift detected between your Drizzle schema and ${relative(root, migrationsDir)}/.`, "Run `bwf db generate`, review the generated migration, commit it yourself, then rerun `bwf deploy`."].join("\n");
|
|
384
384
|
}
|
|
385
385
|
function formatDeploySchemaDriftCheckError(error) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { t as parsePlatformArgs } from "./platform-args-CyeQWaZ7.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-
|
|
1
|
+
import { n as operatorGroups, r as parseOperatorArgs } from "./operator-args-BiGmSlZx.mjs";
|
|
2
2
|
import { R2_LOCATION_HINTS, isR2LocationHint } from "@builtbyfriends/deploy-core";
|
|
3
3
|
import { PLATFORM_LOGIN_KINDS, normalizePlatformDashboardUrl, parsePlatformLoginId } from "@builtbyfriends/platform";
|
|
4
4
|
import { parsePlatformPlanId } from "@builtbyfriends/platform/plans";
|
|
@@ -2,9 +2,9 @@ import { A as confirm, K as select, U as password, X as text, z as multiselect }
|
|
|
2
2
|
import { u as openBrowser } from "./auth-xnkmpZUl.mjs";
|
|
3
3
|
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DdYZYEkO.mjs";
|
|
4
4
|
import { n as OperatorClient } from "./operator-client-DBujdELO.mjs";
|
|
5
|
-
import { i as humanLines } from "./operator-cmd-
|
|
5
|
+
import { i as humanLines } from "./operator-cmd-DTIkOAnP.mjs";
|
|
6
6
|
import { l as formatUrl, m as printSuccess } from "./output-Bb34lF0w.mjs";
|
|
7
|
-
import { o as platformPromptAnswer } from "./platform-setup-
|
|
7
|
+
import { o as platformPromptAnswer } from "./platform-setup-DX8y_6Kh.mjs";
|
|
8
8
|
import { parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration } from "@builtbyfriends/platform";
|
|
9
9
|
import { stripVTControlCharacters } from "node:util";
|
|
10
10
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -142,11 +142,11 @@ async function configurationInput(args, existing) {
|
|
|
142
142
|
}
|
|
143
143
|
async function runPlatformAuthConfig(args) {
|
|
144
144
|
if (args.action === "recover") {
|
|
145
|
-
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-
|
|
145
|
+
const { runPlatformAuthRecovery } = await import("./platform-auth-recovery-B5ZlqA8K.mjs");
|
|
146
146
|
return runPlatformAuthRecovery(args);
|
|
147
147
|
}
|
|
148
148
|
if (args.action === "protection") {
|
|
149
|
-
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-
|
|
149
|
+
const { runPlatformProtectionConfig } = await import("./platform-auth-protection-5FR6qoP_.mjs");
|
|
150
150
|
return runPlatformProtectionConfig(args);
|
|
151
151
|
}
|
|
152
152
|
const origin = resolveOperatorOrigin(args.connection);
|
package/dist/{platform-auth-protection-Dhw7lUCk.mjs → platform-auth-protection-5FR6qoP_.mjs}
RENAMED
|
@@ -4,8 +4,8 @@ import { t as ensurePlatformAccessToken } from "./cf-access-Bhz9wX6p.mjs";
|
|
|
4
4
|
import { a as resolveOperatorOrigin, r as readOperatorToken } from "./operator-auth-DdYZYEkO.mjs";
|
|
5
5
|
import { n as OperatorClient } from "./operator-client-DBujdELO.mjs";
|
|
6
6
|
import { m as printSuccess } from "./output-Bb34lF0w.mjs";
|
|
7
|
-
import { J as parsePlatformAccessSetupSpec, W as resolvePlatformCloudflareCredential, Y as preparePlatformAccessSetup, Z as PlatformCloudflareClient, g as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, q as checkpointPlatformAccessResources } from "./platform-lifecycle-
|
|
8
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-
|
|
7
|
+
import { J as parsePlatformAccessSetupSpec, W as resolvePlatformCloudflareCredential, Y as preparePlatformAccessSetup, Z as PlatformCloudflareClient, g as acquirePlatformDatabaseLifecycleLock, n as resolvePlatformInstallDatabaseUrl, q as checkpointPlatformAccessResources } from "./platform-lifecycle-0cXTmMsh.mjs";
|
|
8
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-6Wbdbob5.mjs";
|
|
9
9
|
import { S as writePendingInstallationSecrets, c as normalizePlatformApiUrl, m as readInstallationRecoverySecrets, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-x1m9HBxf.mjs";
|
|
10
10
|
import { parsePlatformAccessProtection, platformProtectionProofMessage } from "@builtbyfriends/platform";
|
|
11
11
|
import { createHmac } from "node:crypto";
|
|
@@ -2,8 +2,8 @@ import { A as confirm, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
|
2
2
|
import { u as openBrowser } from "./auth-xnkmpZUl.mjs";
|
|
3
3
|
import { a as resolveOperatorOrigin } from "./operator-auth-DdYZYEkO.mjs";
|
|
4
4
|
import { l as formatUrl, m as printSuccess } from "./output-Bb34lF0w.mjs";
|
|
5
|
-
import { W as resolvePlatformCloudflareCredential, Z as PlatformCloudflareClient, _ as acquirePlatformDatabaseLifecycleLockConnection, n as resolvePlatformInstallDatabaseUrl, v as platformDatabaseClientUrl } from "./platform-lifecycle-
|
|
6
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-
|
|
5
|
+
import { W as resolvePlatformCloudflareCredential, Z as PlatformCloudflareClient, _ as acquirePlatformDatabaseLifecycleLockConnection, n as resolvePlatformInstallDatabaseUrl, v as platformDatabaseClientUrl } from "./platform-lifecycle-0cXTmMsh.mjs";
|
|
6
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest } from "./platform-management-6Wbdbob5.mjs";
|
|
7
7
|
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest } from "./platform-registry-x1m9HBxf.mjs";
|
|
8
8
|
import { parsePlatformAccessProtection, parsePlatformAdmissionPolicy, parsePlatformLoginConfiguration, platformAuthenticationRecoveryMessage, validatePlatformAdmissionPolicy } from "@builtbyfriends/platform";
|
|
9
9
|
import { createCipheriv, createDecipheriv, createHash, createHmac, hkdfSync, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-
|
|
1
|
+
export { t as discoverPlatform, r as runPlatformCommand } from "./platform-cmd-ChXeBrRH.mjs";
|
|
@@ -96,19 +96,19 @@ async function runPlatformCommand(_root, args) {
|
|
|
96
96
|
}]
|
|
97
97
|
});
|
|
98
98
|
if (isCancel(group)) return;
|
|
99
|
-
const { parsePlatformArgs } = await import("./platform-args-
|
|
99
|
+
const { parsePlatformArgs } = await import("./platform-args-C-DyuCNX.mjs");
|
|
100
100
|
return runPlatformCommand(_root, parsePlatformArgs(["config", group]));
|
|
101
101
|
}
|
|
102
102
|
const { runPlatformPlansConfig } = await import("./platform-plans-config-CkbUKFpm.mjs");
|
|
103
103
|
await runPlatformPlansConfig(args);
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const { runPlatformAuthConfig } = await import("./platform-auth-config-
|
|
106
|
+
const { runPlatformAuthConfig } = await import("./platform-auth-config-BfXqKSyZ.mjs");
|
|
107
107
|
await runPlatformAuthConfig(args);
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
110
|
if (args.subcommand === "operator") {
|
|
111
|
-
const { runOperatorCommand } = await import("./operator-cmd-
|
|
111
|
+
const { runOperatorCommand } = await import("./operator-cmd-BsHKYJYt.mjs");
|
|
112
112
|
await runOperatorCommand(args);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
@@ -176,7 +176,7 @@ async function runPlatformCommand(_root, args) {
|
|
|
176
176
|
console.log(`Capabilities: ${Object.entries(discovery.capabilities).filter(([, enabled]) => enabled).map(([name]) => name).join(", ")}`);
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-
|
|
179
|
+
const { runPlatformLifecycleCommand } = await import("./platform-lifecycle-BcoBAMux.mjs");
|
|
180
180
|
await runPlatformLifecycleCommand(args);
|
|
181
181
|
}
|
|
182
182
|
function showSavedInstallationStatus(manifest) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as confirm, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { t as cfAccessHeaders } from "./cf-access-CUP5L08W.mjs";
|
|
3
3
|
import { m as printSuccess, p as note } from "./output-Bb34lF0w.mjs";
|
|
4
|
-
import { A as recordPlatformWorkerTraffic, O as recordResource, T as createPlatformHealthProbeToken, U as assertPlatformOperatorCredentialCanApplyPlan, W as resolvePlatformCloudflareCredential, Z as PlatformCloudflareClient, g as acquirePlatformDatabaseLifecycleLock, j as createPlatformInstallPlan, n as resolvePlatformInstallDatabaseUrl, t as assertNoninteractivePlatformMutationAcknowledged } from "./platform-lifecycle-
|
|
5
|
-
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-
|
|
4
|
+
import { A as recordPlatformWorkerTraffic, O as recordResource, T as createPlatformHealthProbeToken, U as assertPlatformOperatorCredentialCanApplyPlan, W as resolvePlatformCloudflareCredential, Z as PlatformCloudflareClient, g as acquirePlatformDatabaseLifecycleLock, j as createPlatformInstallPlan, n as resolvePlatformInstallDatabaseUrl, t as assertNoninteractivePlatformMutationAcknowledged } from "./platform-lifecycle-0cXTmMsh.mjs";
|
|
5
|
+
import { d as verifyPlatformInstallationOwnership, l as selectAuthoritativePlatformManifest, o as resolveInstalledPlatformManifest } from "./platform-management-6Wbdbob5.mjs";
|
|
6
6
|
import { m as readInstallationRecoverySecrets, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-x1m9HBxf.mjs";
|
|
7
7
|
import { PLATFORM_HEALTH_HOSTNAME_LABEL, PLATFORM_REMOTE_INSTALLATION_MANIFEST_KEY, createApplicationRoutes, createPlatformDeploymentManifest, normalizeApplicationDomain } from "@builtbyfriends/platform";
|
|
8
8
|
// src/cli/platform-domain.ts
|
|
@@ -2,14 +2,14 @@ import { A as confirm, H as outro, K as select, L as log, U as password, X as te
|
|
|
2
2
|
import { a as join, c as resolve, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { f as import_picocolors, l as formatUrl, m as printSuccess, n as cliCommandName, p as note, r as createSpinner, u as getErrorMessage } from "./output-Bb34lF0w.mjs";
|
|
4
4
|
import { t as cfAccessHeaders } from "./cf-access-CUP5L08W.mjs";
|
|
5
|
-
import { o as createDefaultRunWrangler, v as resolvePinnedApiBaseUrl } from "./provision-
|
|
6
|
-
import { a as platformManagementSetupPage, c as platformSetupLink, d as planWritesDns, i as platformInstallCommandArguments, l as platformSetupPages, n as formatPlatformSetupPlan, o as platformPromptAnswer, r as openPlatformSetupPage, s as platformSetupFieldHelp, t as formatPlatformInstallCommand, u as planCreatesZone } from "./platform-setup-
|
|
7
|
-
import { o as runCloudflareAuthCommand } from "./cloudflare-auth-
|
|
8
|
-
import { c as resolveCloudflareOperationArgv } from "./cloudflare-process-
|
|
5
|
+
import { o as createDefaultRunWrangler, v as resolvePinnedApiBaseUrl } from "./provision-C90fULHJ.mjs";
|
|
6
|
+
import { a as platformManagementSetupPage, c as platformSetupLink, d as planWritesDns, i as platformInstallCommandArguments, l as platformSetupPages, n as formatPlatformSetupPlan, o as platformPromptAnswer, r as openPlatformSetupPage, s as platformSetupFieldHelp, t as formatPlatformInstallCommand, u as planCreatesZone } from "./platform-setup-DX8y_6Kh.mjs";
|
|
7
|
+
import { o as runCloudflareAuthCommand } from "./cloudflare-auth-DzkU9H6r.mjs";
|
|
8
|
+
import { c as resolveCloudflareOperationArgv } from "./cloudflare-process-tThIjEB2.mjs";
|
|
9
9
|
import { S as writePendingInstallationSecrets, a as latestPlatformWorkerCutoverGeneration, c as normalizePlatformApiUrl, d as platformRegistryDirectory, f as platformWorkerSecretUpdateIntentState, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, n as assertPlatformInstallationSlugAvailable, o as listInstallationManifests, p as promoteInstallationSecrets, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-x1m9HBxf.mjs";
|
|
10
10
|
import { t as ensurePlatformAccessToken } from "./cf-access-Bhz9wX6p.mjs";
|
|
11
11
|
import { i as updateProjectWorkerRuntimeLogs, n as assertPlatformRuntimeLogsSupported, r as shouldUpdateProjectWorkerRuntimeLogs } from "./platform-runtime-logs-kkoiYFpF.mjs";
|
|
12
|
-
import { r as assertPlatformStorageSupported, t as parsePlatformArgs } from "./platform-args-
|
|
12
|
+
import { r as assertPlatformStorageSupported, t as parsePlatformArgs } from "./platform-args-CyeQWaZ7.mjs";
|
|
13
13
|
import { t as writeFileAtomic } from "./atomic-write-DA6eD1Kp.mjs";
|
|
14
14
|
import { copyFileSync, cpSync, existsSync, lstatSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
@@ -1440,7 +1440,7 @@ async function verifyPlatformAccessApplication(client, input, app, type, machine
|
|
|
1440
1440
|
function accessSetupGuide() {
|
|
1441
1441
|
return platformSetupLink({
|
|
1442
1442
|
title: "Setup guide and required permissions",
|
|
1443
|
-
url: "https://
|
|
1443
|
+
url: "https://github.com/builtbyfriends/platform/blob/main/docs/guide/platform/installation/setup.md#cloudflare-access"
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
1446
1446
|
/** Parse up to ten exact company email domains, or return undefined when any entry is invalid. */
|
|
@@ -3995,7 +3995,7 @@ function assertCleanPlatformWrangler(result, operation, accountId) {
|
|
|
3995
3995
|
});
|
|
3996
3996
|
if (result.errorCode === ANALYTICS_ENGINE_NOT_ENABLED || result.errors?.some((error) => error.code === ANALYTICS_ENGINE_NOT_ENABLED) || result.errorCode === void 0 && !result.errors?.some((error) => error.code !== void 0) && (diagnostic?.includes("[code: 10089]") || diagnostic?.includes("[10089]"))) {
|
|
3997
3997
|
const dashboard = accountId ? `https://dash.cloudflare.com/${accountId}/workers/analytics-engine` : "https://dash.cloudflare.com/";
|
|
3998
|
-
throw new Error(`platform: Cloudflare could not ${operation}: Analytics Engine is not enabled for this account (code 10089). Open ${formatUrl(dashboard)}${accountId ? "" : ", select your account, and open Analytics Engine"}, then select Enable. Analytics Engine is available on Workers Free. After enabling it, use the printed recovery command if one is shown; otherwise retry this command. If Enable is unavailable, see ${formatUrl("https://
|
|
3998
|
+
throw new Error(`platform: Cloudflare could not ${operation}: Analytics Engine is not enabled for this account (code 10089). Open ${formatUrl(dashboard)}${accountId ? "" : ", select your account, and open Analytics Engine"}, then select Enable. Analytics Engine is available on Workers Free. After enabling it, use the printed recovery command if one is shown; otherwise retry this command. If Enable is unavailable, see ${formatUrl("https://github.com/builtbyfriends/platform/blob/main/docs/guide/platform/installation/prerequisites.md#if-cloudflare-rejects-analytics-engine")}.`);
|
|
3999
3999
|
}
|
|
4000
4000
|
throw new Error(`platform: Cloudflare failed to ${operation} (${diagnostic || `exit ${result.status}`}).`);
|
|
4001
4001
|
}
|
|
@@ -5261,7 +5261,7 @@ var PlatformAccessBlockedError = class extends Error {
|
|
|
5261
5261
|
"The reserved dispatch /health endpoint uses a path-only Access exception and still requires bwf’s private probe token.",
|
|
5262
5262
|
"Resume to verify the health exceptions and saved installer credentials.",
|
|
5263
5263
|
...context.resumeCommand ? [`Resume: ${context.resumeCommand}`] : [],
|
|
5264
|
-
"https://
|
|
5264
|
+
"https://github.com/builtbyfriends/platform/blob/main/docs/guide/platform/installation/maintenance.md#cloudflare-access"
|
|
5265
5265
|
].join("\n") : [
|
|
5266
5266
|
"platform: Cloudflare Access blocked the platform health checks (Default-Deny, error 1050).",
|
|
5267
5267
|
`Blocked URL: ${url}`,
|
|
@@ -5279,7 +5279,7 @@ var PlatformAccessBlockedError = class extends Error {
|
|
|
5279
5279
|
"bwf’s own authentication stays enabled. Keep account-wide Default-Deny on.",
|
|
5280
5280
|
"",
|
|
5281
5281
|
"For platforms that must remain Access-protected:",
|
|
5282
|
-
"https://
|
|
5282
|
+
"https://github.com/builtbyfriends/platform/blob/main/docs/guide/platform/installation/maintenance.md#cloudflare-access"
|
|
5283
5283
|
].join("\n"));
|
|
5284
5284
|
}
|
|
5285
5285
|
};
|
|
@@ -5723,7 +5723,7 @@ async function verifyInstalledPlatformAccessProtection(input) {
|
|
|
5723
5723
|
}
|
|
5724
5724
|
const existingWorkers = input.plan.actions.filter((action) => action.kind === "worker" && action.action === "update").map((action) => action.name);
|
|
5725
5725
|
if (existingWorkers.length) {
|
|
5726
|
-
const { verifyProtectionWorkerOrigins } = await import("./platform-auth-protection-
|
|
5726
|
+
const { verifyProtectionWorkerOrigins } = await import("./platform-auth-protection-5FR6qoP_.mjs");
|
|
5727
5727
|
await verifyProtectionWorkerOrigins({
|
|
5728
5728
|
request: input.client.request.bind(input.client),
|
|
5729
5729
|
listWorkerDomains: input.client.listWorkerDomains.bind(input.client),
|
|
@@ -6086,7 +6086,7 @@ async function readPlatformProjectZeroTrustStateConnection(client) {
|
|
|
6086
6086
|
}
|
|
6087
6087
|
/**
|
|
6088
6088
|
* Take the Zero Trust configuration lock exclusively on this session. Every
|
|
6089
|
-
* API path that records or creates a
|
|
6089
|
+
* API path that records or creates a Platform-managed Access application or
|
|
6090
6090
|
* creates a project holds the same lock, so none can commit until the
|
|
6091
6091
|
* returned release runs.
|
|
6092
6092
|
*/
|
|
@@ -6151,15 +6151,15 @@ async function assertProjectZeroTrustAllowsUninstall(read, options = {}) {
|
|
|
6151
6151
|
`Uninstall turns off the platform API, so bwf could no longer remove its Cloudflare Access applications, and Access would keep asking for sign-in${covered}, including hostnames bwf does not serve.`,
|
|
6152
6152
|
state.usersExist === false ? "No platform user exists yet. Run this command on the computer that installed the platform; it keeps the authority to turn off project Zero Trust." : "Run `bwf platform zero-trust disable`, rerun it until `bwf platform zero-trust status` reports Zero Trust disabled with no operation running, then retry the uninstall.",
|
|
6153
6153
|
"If the platform API does not answer, bring it back with `bwf platform enable` or `bwf platform repair` first.",
|
|
6154
|
-
...state.applications.length ? ["
|
|
6154
|
+
...state.applications.length ? ["Platform-managed Access applications:", formatZeroTrustApplications(state.applications)] : [],
|
|
6155
6155
|
...unfinishedDeletionLines(state),
|
|
6156
6156
|
DASHBOARD_HINT
|
|
6157
6157
|
].join("\n"));
|
|
6158
6158
|
}
|
|
6159
6159
|
if (state.applications.length) throw new Error([
|
|
6160
|
-
"platform: Refusing to uninstall while
|
|
6160
|
+
"platform: Refusing to uninstall while Platform-managed Access applications from project Zero Trust remain.",
|
|
6161
6161
|
"Zero Trust is disabled, but it could not remove the applications of some projects. Retry the uninstall once they are gone.",
|
|
6162
|
-
"
|
|
6162
|
+
"Platform-managed Access applications:",
|
|
6163
6163
|
formatZeroTrustApplications(state.applications),
|
|
6164
6164
|
...state.applications.some((application) => !application.deleting) ? [`Hourly maintenance retries ${state.unfinishedDeletions.length ? "the other applications" : "them"} while the platform is enabled, and clears bwf's records of any you delete in the dashboard.`] : [],
|
|
6165
6165
|
...unfinishedDeletionLines(state),
|
|
@@ -8094,7 +8094,7 @@ function resolvePlatformInstallDatabaseUrl(checkpoint, manifest = null) {
|
|
|
8094
8094
|
}
|
|
8095
8095
|
async function runPlatformLifecycleCommand(commandArgs) {
|
|
8096
8096
|
if (commandArgs.subcommand === "domain") {
|
|
8097
|
-
const { runPlatformDomainCommand } = await import("./platform-domain-
|
|
8097
|
+
const { runPlatformDomainCommand } = await import("./platform-domain-CwatS3cz.mjs");
|
|
8098
8098
|
await runPlatformDomainCommand(commandArgs);
|
|
8099
8099
|
return;
|
|
8100
8100
|
}
|
|
@@ -8102,7 +8102,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
8102
8102
|
log.step("Preparing platform discovery");
|
|
8103
8103
|
const client = new PlatformCloudflareClient((await resolvePlatformCloudflareCredential()).token);
|
|
8104
8104
|
const accountId = await selectAccount(await withPlatformProgress("Reading Cloudflare accounts", () => readAccounts(client)), commandArgs.account);
|
|
8105
|
-
const { recoverPlatformInstallations } = await import("./platform-recovery-
|
|
8105
|
+
const { recoverPlatformInstallations } = await import("./platform-recovery-DgIwlqB-.mjs");
|
|
8106
8106
|
const recovered = await withPlatformProgress("Discovering platform installations", () => recoverPlatformInstallations(client, accountId, void 0, commandArgs.selector));
|
|
8107
8107
|
if (recovered.length === 0) {
|
|
8108
8108
|
log.info(`No recoverable bwf platform installations were found in ${accountId}.`);
|
|
@@ -8113,7 +8113,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
8113
8113
|
return;
|
|
8114
8114
|
}
|
|
8115
8115
|
if (commandArgs.subcommand !== "install") {
|
|
8116
|
-
const { runInstalledPlatformCommand } = await import("./platform-management-
|
|
8116
|
+
const { runInstalledPlatformCommand } = await import("./platform-management-hhnczOzr.mjs");
|
|
8117
8117
|
await runInstalledPlatformCommand(commandArgs);
|
|
8118
8118
|
return;
|
|
8119
8119
|
}
|
|
@@ -8287,7 +8287,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
8287
8287
|
progress?.stop("Read the saved installation.");
|
|
8288
8288
|
progress = void 0;
|
|
8289
8289
|
if (authoritative) {
|
|
8290
|
-
const { selectAuthoritativePlatformManifest } = await import("./platform-management-
|
|
8290
|
+
const { selectAuthoritativePlatformManifest } = await import("./platform-management-hhnczOzr.mjs");
|
|
8291
8291
|
const selected = selectAuthoritativePlatformManifest(existing, authoritative);
|
|
8292
8292
|
authoritativeProvisionIntents = true;
|
|
8293
8293
|
if (!args.plan && JSON.stringify(selected) !== JSON.stringify(existing)) writeInstallationManifest(selected);
|
|
@@ -8680,7 +8680,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
8680
8680
|
});
|
|
8681
8681
|
if (generatedKeys.length) log.info(`bwf generated the ${generatedKeys.join(" and ")} and keeps ${generatedKeys.length > 1 ? "them" : "it"} in this machine’s encrypted recovery data. ` + platformSetupLink({
|
|
8682
8682
|
title: "About these keys",
|
|
8683
|
-
url: "https://
|
|
8683
|
+
url: "https://github.com/builtbyfriends/platform/blob/main/docs/guide/platform/installation/credentials.md#signing-and-encryption-keys"
|
|
8684
8684
|
}));
|
|
8685
8685
|
const outsideChanges = await reviewPlatformWorkerOutsideChanges({
|
|
8686
8686
|
client,
|
|
@@ -8758,7 +8758,7 @@ async function runPlatformLifecycleCommand(commandArgs) {
|
|
|
8758
8758
|
})).actions.filter((action) => action.kind === "worker"),
|
|
8759
8759
|
revalidateBeforeWorkerDeploy: (manifest, action) => revalidatePlatformInstallAction(client, plan, manifest, action),
|
|
8760
8760
|
verifyExistingOwnership: async (manifest, databaseCheckpointExists) => {
|
|
8761
|
-
const { verifyPlatformInstallationOwnership } = await import("./platform-management-
|
|
8761
|
+
const { verifyPlatformInstallationOwnership } = await import("./platform-management-hhnczOzr.mjs");
|
|
8762
8762
|
const retainedReplacementKeys = new Set(plan.actions.filter((action) => {
|
|
8763
8763
|
const previous = manifest.resources.find((resource) => resource.key === action.key);
|
|
8764
8764
|
return action.action === "create" && previous && previous.name !== action.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-
|
|
1
|
+
export { r as runPlatformLifecycleCommand } from "./platform-lifecycle-0cXTmMsh.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as confirm, H as outro, K as select, L as log, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { t as ensurePlatformAccessToken } from "./cf-access-Bhz9wX6p.mjs";
|
|
3
3
|
import { f as import_picocolors, l as formatUrl, m as printSuccess, p as note } from "./output-Bb34lF0w.mjs";
|
|
4
|
-
import { $ as hyperdriveOriginConfigHash, B as revalidatePlatformInstallAction, C as readPlatformDatabase, D as resolveBootstrapGitHubId, E as createPlatformInstallationSecrets, F as legacyResourceConfigHash, G as verifyPlatformCloudflareCredential, H as turnOffInstalledProjectZeroTrust, I as matchesRecordedR2Fingerprint, K as activatePlatformAccessCredentials, L as platformAdoptionIntentHash, M as dnsRecordConfigHash, N as formatPlatformInstallPlan, P as hasProvisionIntentStep, Q as PlatformRuntimeTokenEmailPermissionError, R as r2BucketConfigHash, S as formatZeroTrustApplications, T as createPlatformHealthProbeToken, U as assertPlatformOperatorCredentialCanApplyPlan, V as platformDatabaseNameFromOwnerUrl, W as resolvePlatformCloudflareCredential, X as PlatformCloudflareApiError, Z as PlatformCloudflareClient, a as createPlatformProgress, b as readPlatformProjectZeroTrustState, c as formatPlatformWorkerOutsideChanges, d as authenticationSetupRequestHash, et as hyperdriveOriginFromConnectionString, f as readLoginReplacementFile, g as acquirePlatformDatabaseLifecycleLock, h as installPlatform, j as createPlatformInstallPlan, k as platformTrafficAttachmentWorker, l as reviewPlatformWorkerOutsideChanges, m as REMOTE_INSTALLATION_MANIFEST_KEY, n as resolvePlatformInstallDatabaseUrl, nt as verifyPlatformRuntimeTokenEmailPermissions, o as withPlatformProgress, p as replacePendingInstallationAuthentication, rt as verifyPlatformRuntimeTokenPermissions, s as findPlatformWorkerOutsideChanges, t as assertNoninteractivePlatformMutationAcknowledged, tt as hyperdriveOriginMatches, u as uploadPlatformWorkerOutsideChanges, w as loadPlatformRuntime, x as assertProjectZeroTrustAllowsUninstall, y as readPlatformProjectSlugs, z as resourceMarkerProblem } from "./platform-lifecycle-
|
|
4
|
+
import { $ as hyperdriveOriginConfigHash, B as revalidatePlatformInstallAction, C as readPlatformDatabase, D as resolveBootstrapGitHubId, E as createPlatformInstallationSecrets, F as legacyResourceConfigHash, G as verifyPlatformCloudflareCredential, H as turnOffInstalledProjectZeroTrust, I as matchesRecordedR2Fingerprint, K as activatePlatformAccessCredentials, L as platformAdoptionIntentHash, M as dnsRecordConfigHash, N as formatPlatformInstallPlan, P as hasProvisionIntentStep, Q as PlatformRuntimeTokenEmailPermissionError, R as r2BucketConfigHash, S as formatZeroTrustApplications, T as createPlatformHealthProbeToken, U as assertPlatformOperatorCredentialCanApplyPlan, V as platformDatabaseNameFromOwnerUrl, W as resolvePlatformCloudflareCredential, X as PlatformCloudflareApiError, Z as PlatformCloudflareClient, a as createPlatformProgress, b as readPlatformProjectZeroTrustState, c as formatPlatformWorkerOutsideChanges, d as authenticationSetupRequestHash, et as hyperdriveOriginFromConnectionString, f as readLoginReplacementFile, g as acquirePlatformDatabaseLifecycleLock, h as installPlatform, j as createPlatformInstallPlan, k as platformTrafficAttachmentWorker, l as reviewPlatformWorkerOutsideChanges, m as REMOTE_INSTALLATION_MANIFEST_KEY, n as resolvePlatformInstallDatabaseUrl, nt as verifyPlatformRuntimeTokenEmailPermissions, o as withPlatformProgress, p as replacePendingInstallationAuthentication, rt as verifyPlatformRuntimeTokenPermissions, s as findPlatformWorkerOutsideChanges, t as assertNoninteractivePlatformMutationAcknowledged, tt as hyperdriveOriginMatches, u as uploadPlatformWorkerOutsideChanges, w as loadPlatformRuntime, x as assertProjectZeroTrustAllowsUninstall, y as readPlatformProjectSlugs, z as resourceMarkerProblem } from "./platform-lifecycle-0cXTmMsh.mjs";
|
|
5
5
|
import { S as writePendingInstallationSecrets, _ as removePlatformConnectionForInstallation, g as removeInstallationRecoverySecrets, h as readPendingInstallationSecrets, m as readInstallationRecoverySecrets, o as listInstallationManifests, t as acquirePlatformLifecycleLock, v as resolveInstallationManifest, x as writeInstallationManifest } from "./platform-registry-x1m9HBxf.mjs";
|
|
6
6
|
import { i as updateProjectWorkerRuntimeLogs, n as assertPlatformRuntimeLogsSupported, r as shouldUpdateProjectWorkerRuntimeLogs } from "./platform-runtime-logs-kkoiYFpF.mjs";
|
|
7
|
-
import { r as assertPlatformStorageSupported } from "./platform-args-
|
|
7
|
+
import { r as assertPlatformStorageSupported } from "./platform-args-CyeQWaZ7.mjs";
|
|
8
8
|
import { PLATFORM_DISABLED_KEY, PLATFORM_DISABLED_VALUE, PLATFORM_R2_OWNERSHIP_MARKER_KEY, parsePlatformInstallationManifest, recordInstallationResource, recordInstallationStep, setInstallationDesiredState, transitionInstallation } from "@builtbyfriends/platform";
|
|
9
9
|
import { setTimeout } from "node:timers/promises";
|
|
10
10
|
// src/cli/platform-teardown.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as runInstalledPlatformCommand, l as selectAuthoritativePlatformManifest, d as verifyPlatformInstallationOwnership } from "./platform-management-
|
|
1
|
+
export { c as runInstalledPlatformCommand, l as selectAuthoritativePlatformManifest, d as verifyPlatformInstallationOwnership } from "./platform-management-6Wbdbob5.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cfAccessHeaders } from "./cf-access-CUP5L08W.mjs";
|
|
2
|
-
import { j as createPlatformInstallPlan, m as REMOTE_INSTALLATION_MANIFEST_KEY } from "./platform-lifecycle-
|
|
3
|
-
import { a as recoverDurablyMarkedProvisionIntents, d as verifyPlatformInstallationOwnership, r as isPlatformManifestMonotonicExtension } from "./platform-management-
|
|
2
|
+
import { j as createPlatformInstallPlan, m as REMOTE_INSTALLATION_MANIFEST_KEY } from "./platform-lifecycle-0cXTmMsh.mjs";
|
|
3
|
+
import { a as recoverDurablyMarkedProvisionIntents, d as verifyPlatformInstallationOwnership, r as isPlatformManifestMonotonicExtension } from "./platform-management-6Wbdbob5.mjs";
|
|
4
4
|
import { o as listInstallationManifests, t as acquirePlatformLifecycleLock, x as writeInstallationManifest, y as savePlatformConnection } from "./platform-registry-x1m9HBxf.mjs";
|
|
5
5
|
import { parsePlatformInstallationManifest, setInstallationEndpoints } from "@builtbyfriends/platform";
|
|
6
6
|
// src/cli/platform-recovery.ts
|
|
@@ -25,7 +25,7 @@ function platformSetupLink(page) {
|
|
|
25
25
|
function platformSetupFieldHelp(key) {
|
|
26
26
|
const docs = (page, section, title) => platformSetupLink({
|
|
27
27
|
title,
|
|
28
|
-
url: `https://
|
|
28
|
+
url: `https://github.com/builtbyfriends/platform/blob/main/docs/guide/platform/installation/${page}.md#${section}`
|
|
29
29
|
});
|
|
30
30
|
switch (key) {
|
|
31
31
|
case "databaseUrl": return {
|