wp-studio 1.9.0-beta1 → 1.9.0
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/cli/{_events-DY_b7zJc.mjs → _events--5mwAK5o.mjs} +2 -2
- package/dist/cli/{config-CgZKSryj.mjs → config-BjoVOLHP.mjs} +1 -1
- package/dist/cli/{delete-BlhONmU3.mjs → delete-Dh2vljg9.mjs} +1 -1
- package/dist/cli/{helpers-CcEaoBI3.mjs → helpers-DImOs-ud.mjs} +1 -1
- package/dist/cli/{index-C-37XeJI.mjs → index-CWQmyvnM.mjs} +1 -1
- package/dist/cli/{index-Br6pmZX3.mjs → index-CrejWZh7.mjs} +5 -5
- package/dist/cli/{index-DTdWjCXa.mjs → index-lbZbk8MB.mjs} +16 -16
- package/dist/cli/{list-C1DNDMuz.mjs → list-CHv5rl5V.mjs} +1 -1
- package/dist/cli/{login-KmehB2ii.mjs → login-Bad3qtWI.mjs} +1 -1
- package/dist/cli/{logout-avLN2-Fw.mjs → logout-CapZ243A.mjs} +1 -1
- package/dist/cli/main.mjs +1 -1
- package/dist/cli/passwords-CdSEzJSy.mjs +788 -0
- package/dist/cli/php-server-child.mjs +1 -1
- package/dist/cli/playground-server-child.mjs +2 -2
- package/dist/cli/{remote-session-C3rlPHy2.mjs → remote-session-BqKWuk9Y.mjs} +1 -1
- package/dist/cli/{resume-53kE5NUQ.mjs → resume-B5NVaJKg.mjs} +2 -2
- package/dist/cli/{rewrite-wp-cli-post-content-Ctqn9LCA.mjs → rewrite-wp-cli-post-content-C1dkgiUn.mjs} +1 -1
- package/dist/cli/{set-CRWWKyJe.mjs → set-C806ek1i.mjs} +3 -3
- package/dist/cli/{set-01CosNkD.mjs → set-D6lFNKau.mjs} +1 -1
- package/dist/cli/{status-1-wmqRpn.mjs → status-CCfKFjub.mjs} +1 -1
- package/dist/cli/{wp-BHi4Bnz4.mjs → wp-CzivCj1O.mjs} +2 -2
- package/package.json +1 -1
- package/dist/cli/passwords-D9b88a-q.mjs +0 -788
|
@@ -3,7 +3,7 @@ import fs from "node:fs";
|
|
|
3
3
|
import os from "node:os";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { D as DEFAULT_PHP_VERSION } from "./well-known-paths-DJJyHACC.mjs";
|
|
6
|
-
import { w as writeStudioMuPluginsForNativePhpRuntime, k as decodePassword, D as DEFAULT_LOCALE, b as getWpCliPharPath, q as getBlueprintsPharPath, e as getPhpBinaryPath } from "./passwords-
|
|
6
|
+
import { w as writeStudioMuPluginsForNativePhpRuntime, k as decodePassword, D as DEFAULT_LOCALE, b as getWpCliPharPath, q as getBlueprintsPharPath, e as getPhpBinaryPath } from "./passwords-CdSEzJSy.mjs";
|
|
7
7
|
import { v as validateNativePhpVersion } from "./php-binary-metadata-Bd22T2V0.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { m as managerMessageSchema } from "./wordpress-server-ipc-PoQqdZGl.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path__default, { dirname } from "path";
|
|
2
2
|
import { D as DEFAULT_PHP_VERSION } from "./well-known-paths-DJJyHACC.mjs";
|
|
3
|
-
import { d as isWordPressDevVersion, I as IS_JSPI_AVAILABLE, i as isWordPressDirectory, m as isSqliteIntegrationInstalled, n as rewriteWpCliPostContentToFile } from "./rewrite-wp-cli-post-content-
|
|
4
|
-
import { c as cleanupLegacyMuPlugins, a as getMuPlugins, b as getWpCliPharPath, d as getSqliteCommandPath, p as getPhpMyAdminPath, D as DEFAULT_LOCALE, k as decodePassword } from "./passwords-
|
|
3
|
+
import { d as isWordPressDevVersion, I as IS_JSPI_AVAILABLE, i as isWordPressDirectory, m as isSqliteIntegrationInstalled, n as rewriteWpCliPostContentToFile } from "./rewrite-wp-cli-post-content-C1dkgiUn.mjs";
|
|
4
|
+
import { c as cleanupLegacyMuPlugins, a as getMuPlugins, b as getWpCliPharPath, d as getSqliteCommandPath, p as getPhpMyAdminPath, D as DEFAULT_LOCALE, k as decodePassword } from "./passwords-CdSEzJSy.mjs";
|
|
5
5
|
import { __ } from "@wordpress/i18n";
|
|
6
6
|
import { s as sequential } from "./sequential-BQFuixXz.mjs";
|
|
7
7
|
import { runCLI } from "@wp-playground/cli";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { q as getRemoteSessionLogPath, r as getRemoteSessionPidPath, s as getRemoteSessionStateLockFilePath, L as LOCKFILE_STALE_TIME, a as LOCKFILE_WAIT_TIME, t as getRemoteSessionStatePath } from "./well-known-paths-DJJyHACC.mjs";
|
|
2
2
|
import { __, sprintf } from "@wordpress/i18n";
|
|
3
3
|
import fs__default from "fs";
|
|
4
|
-
import { g as getDaemonStatus, f as findLastAssistant, l as loadRemoteSessionConfig, i as isDaemonChild, a as installDaemonChildHooks, R as RemoteSessionConfigError, s as startDaemon, D as DaemonAlreadyRunningError, b as DaemonStartTimeoutError, c as stopDaemon } from "./config-
|
|
4
|
+
import { g as getDaemonStatus, f as findLastAssistant, l as loadRemoteSessionConfig, i as isDaemonChild, a as installDaemonChildHooks, R as RemoteSessionConfigError, s as startDaemon, D as DaemonAlreadyRunningError, b as DaemonStartTimeoutError, c as stopDaemon } from "./config-BjoVOLHP.mjs";
|
|
5
5
|
import path__default from "path";
|
|
6
6
|
import { a as lockFileAsync, b as unlockFileAsync } from "./certificate-manager-COt2A5Mi.mjs";
|
|
7
7
|
import { readFile, writeFile } from "atomically";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as isStudioCustomEntryOfType, g as getAiSessionsRootDirectory } from "./migration-AVevhLH0.mjs";
|
|
2
|
-
import { c as chooseSessionForAction, l as listAiSessions, b as loadAiSession } from "./helpers-
|
|
2
|
+
import { c as chooseSessionForAction, l as listAiSessions, b as loadAiSession } from "./helpers-DImOs-ud.mjs";
|
|
3
3
|
import { __ } from "@wordpress/i18n";
|
|
4
|
-
import { J as JsonAdapter, A as AiChatUI, r as runCommand$1 } from "./index-
|
|
4
|
+
import { J as JsonAdapter, A as AiChatUI, r as runCommand$1 } from "./index-CrejWZh7.mjs";
|
|
5
5
|
import { L as LoggerError, c as Logger } from "./certificate-manager-COt2A5Mi.mjs";
|
|
6
6
|
function resolveActiveSiteFromEntries(entries) {
|
|
7
7
|
let state;
|
|
@@ -2,7 +2,7 @@ import fs__default, { promises } from "fs";
|
|
|
2
2
|
import path__default from "path";
|
|
3
3
|
import ignore from "ignore";
|
|
4
4
|
import { i as isErrnoException } from "./is-errno-exception-t38xF2pB.mjs";
|
|
5
|
-
import { f as getWpFilesPath } from "./passwords-
|
|
5
|
+
import { f as getWpFilesPath } from "./passwords-CdSEzJSy.mjs";
|
|
6
6
|
import { randomUUID } from "crypto";
|
|
7
7
|
const DEPLOY_IGNORE_DEFAULTS = [".git", "node_modules", ".DS_Store", "Thumbs.db"];
|
|
8
8
|
function calculateDirectorySizeForArchive(directoryPath, deployIgnore, pathPrefix) {
|
|
@@ -46,9 +46,9 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
46
46
|
import { SupportedPHPVersions } from "@php-wasm/universal";
|
|
47
47
|
import { M as MINIMUM_WORDPRESS_VERSION, k as DEFAULT_WORDPRESS_VERSION } from "./well-known-paths-DJJyHACC.mjs";
|
|
48
48
|
import { L as LoggerError, c as Logger, r as readCliConfig, l as lockCliConfig, s as saveCliConfig, u as unlockCliConfig, o as generateSiteCertificate, S as SITE_EVENTS } from "./certificate-manager-COt2A5Mi.mjs";
|
|
49
|
-
import { ao as ValidationError, ap as SiteCommandLoggerAction, aq as getSiteByFolder, ar as getDomainNameValidationError, as as updateDomainInHosts, at as connectToDaemon, au as isServerRunning, av as stopWordPressServer, aw as runWpCliCommand, ax as setupCustomDomain, ay as startWordPressServer, az as updateSiteLatestCliPid, aj as emitCliEvent, aA as disconnectFromDaemon } from "./index-
|
|
50
|
-
import { f as isValidWordPressVersion, h as isWordPressVersionAtLeast, a as arePathsEqual, g as getWordPressVersionUrl } from "./rewrite-wp-cli-post-content-
|
|
51
|
-
import { v as validateAdminUsername, m as validateAdminEmail, n as encodePassword } from "./passwords-
|
|
49
|
+
import { ao as ValidationError, ap as SiteCommandLoggerAction, aq as getSiteByFolder, ar as getDomainNameValidationError, as as updateDomainInHosts, at as connectToDaemon, au as isServerRunning, av as stopWordPressServer, aw as runWpCliCommand, ax as setupCustomDomain, ay as startWordPressServer, az as updateSiteLatestCliPid, aj as emitCliEvent, aA as disconnectFromDaemon } from "./index-lbZbk8MB.mjs";
|
|
50
|
+
import { f as isValidWordPressVersion, h as isWordPressVersionAtLeast, a as arePathsEqual, g as getWordPressVersionUrl } from "./rewrite-wp-cli-post-content-C1dkgiUn.mjs";
|
|
51
|
+
import { v as validateAdminUsername, m as validateAdminEmail, n as encodePassword } from "./passwords-CdSEzJSy.mjs";
|
|
52
52
|
import { __, sprintf } from "@wordpress/i18n";
|
|
53
53
|
function siteNeedsRestart(changes) {
|
|
54
54
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { L as LoggerError, c as Logger, f as SNAPSHOT_EVENTS } from "./certificate-manager-COt2A5Mi.mjs";
|
|
2
|
-
import { al as normalizeHostname, am as PreviewCommandLoggerAction, an as setSnapshotInConfig, aj as emitCliEvent } from "./index-
|
|
2
|
+
import { al as normalizeHostname, am as PreviewCommandLoggerAction, an as setSnapshotInConfig, aj as emitCliEvent } from "./index-lbZbk8MB.mjs";
|
|
3
3
|
import { __ } from "@wordpress/i18n";
|
|
4
4
|
async function runCommand(host, options) {
|
|
5
5
|
const { name } = options;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AuthCommandLoggerAction, b as readAuthToken, g as getUserInfo } from "./index-
|
|
1
|
+
import { A as AuthCommandLoggerAction, b as readAuthToken, g as getUserInfo } from "./index-lbZbk8MB.mjs";
|
|
2
2
|
import { __, sprintf } from "@wordpress/i18n";
|
|
3
3
|
import { c as Logger, L as LoggerError } from "./certificate-manager-COt2A5Mi.mjs";
|
|
4
4
|
async function runCommand(format = "text") {
|
|
@@ -44,11 +44,11 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
44
44
|
return next();
|
|
45
45
|
};
|
|
46
46
|
import { spawn } from "node:child_process";
|
|
47
|
-
import { w as writeStudioMuPluginsForNativePhpRuntime, e as getPhpBinaryPath, b as getWpCliPharPath } from "./passwords-
|
|
47
|
+
import { w as writeStudioMuPluginsForNativePhpRuntime, e as getPhpBinaryPath, b as getWpCliPharPath } from "./passwords-CdSEzJSy.mjs";
|
|
48
48
|
import { v as validateNativePhpVersion } from "./php-binary-metadata-Bd22T2V0.mjs";
|
|
49
49
|
import { __ } from "@wordpress/i18n";
|
|
50
50
|
import yargsParser from "yargs-parser";
|
|
51
|
-
import { aB as runGlobalWpCliCommand, aq as getSiteByFolder, aC as validatePhpVersion, aA as disconnectFromDaemon, at as connectToDaemon, au as isServerRunning, aD as sendWpCliCommand, aw as runWpCliCommand, aE as ensurePhpBinaryAvailable } from "./index-
|
|
51
|
+
import { aB as runGlobalWpCliCommand, aq as getSiteByFolder, aC as validatePhpVersion, aA as disconnectFromDaemon, at as connectToDaemon, au as isServerRunning, aD as sendWpCliCommand, aw as runWpCliCommand, aE as ensurePhpBinaryAvailable } from "./index-lbZbk8MB.mjs";
|
|
52
52
|
import { L as LoggerError, c as Logger } from "./certificate-manager-COt2A5Mi.mjs";
|
|
53
53
|
const logger = new Logger();
|
|
54
54
|
async function pipePHPResponse(response) {
|