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.
@@ -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-D9b88a-q.mjs";
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-Ctqn9LCA.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-D9b88a-q.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-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-CgZKSryj.mjs";
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-CcEaoBI3.mjs";
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-Br6pmZX3.mjs";
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-D9b88a-q.mjs";
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-DTdWjCXa.mjs";
50
- import { f as isValidWordPressVersion, h as isWordPressVersionAtLeast, a as arePathsEqual, g as getWordPressVersionUrl } from "./rewrite-wp-cli-post-content-Ctqn9LCA.mjs";
51
- import { v as validateAdminUsername, m as validateAdminEmail, n as encodePassword } from "./passwords-D9b88a-q.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-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-DTdWjCXa.mjs";
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-DTdWjCXa.mjs";
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-D9b88a-q.mjs";
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-DTdWjCXa.mjs";
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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wp-studio",
3
3
  "author": "Automattic Inc.",
4
- "version": "1.9.0-beta1",
4
+ "version": "1.9.0",
5
5
  "productName": "Studio CLI",
6
6
  "description": "WordPress Studio CLI",
7
7
  "license": "GPL-2.0-or-later",