wp-studio 1.7.8-beta4 → 1.7.8

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.
@@ -2,7 +2,7 @@ import fs__default from "fs";
2
2
  import { k as socketEventSchema, h as SITE_EVENTS, S as SNAPSHOT_EVENTS, A as AUTH_EVENTS, r as readCliConfig, m as siteDetailsSchema } from "./certificate-manager-BMngpL-s.mjs";
3
3
  import { v as isEmptyDir } from "./rewrite-wp-cli-post-content-CWC1GEL6.mjs";
4
4
  import { s as sequential } from "./sequential-BQFuixXz.mjs";
5
- import { K as SITE_EVENTS_SOCKET_PATH, t as SiteCommandLoggerAction, y as connectToDaemon, L as getDaemonBus, M as SITE_PROCESS_PREFIX, H as disconnectFromDaemon, N as removeSiteFromConfig, e as getSiteUrl, i as isSiteRunning } from "./index-odShRBgM.mjs";
5
+ import { K as SITE_EVENTS_SOCKET_PATH, t as SiteCommandLoggerAction, y as connectToDaemon, L as getDaemonBus, M as SITE_PROCESS_PREFIX, H as disconnectFromDaemon, N as removeSiteFromConfig, e as getSiteUrl, i as isSiteRunning } from "./index-DI29uw2-.mjs";
6
6
  import { __ } from "@wordpress/i18n";
7
7
  import { g as SocketServer } from "./process-manager-ipc-heiF195f.mjs";
8
8
  import { L as LoggerError, d as Logger } from "./well-known-paths-d6uuOzUp.mjs";
@@ -76978,7 +76978,7 @@ const registerCommand = (yargs2) => {
76978
76978
  }
76979
76979
  });
76980
76980
  };
76981
- const version = "1.7.8-beta4";
76981
+ const version = "1.7.8";
76982
76982
  suppressPunycodeWarning();
76983
76983
  async function main() {
76984
76984
  const yargsLocale = await loadTranslations();
@@ -77040,9 +77040,9 @@ async function main() {
77040
77040
  { registerCommand: registerAuthLogoutCommand },
77041
77041
  { registerCommand: registerAuthStatusCommand }
77042
77042
  ] = await Promise.all([
77043
- import("./login-BeT1uKwW.mjs"),
77044
- import("./logout-BFQJBJD0.mjs"),
77045
- import("./status-CbXnAskz.mjs")
77043
+ import("./login-CTN5Q8VB.mjs"),
77044
+ import("./logout-BAlb-5XE.mjs"),
77045
+ import("./status-D5W0EMwo.mjs")
77046
77046
  ]);
77047
77047
  registerAuthLoginCommand(authYargs);
77048
77048
  registerAuthLogoutCommand(authYargs);
@@ -77050,7 +77050,7 @@ async function main() {
77050
77050
  authYargs.version(false).demandCommand(1, __("You must provide a valid auth command"));
77051
77051
  });
77052
77052
  const studioCodeCommandBuilder = async (aiYargs) => {
77053
- const { registerCommand: registerAiCommand } = await import("./index-CkFXAp-n.mjs");
77053
+ const { registerCommand: registerAiCommand } = await import("./index-DWYO_Fzf.mjs");
77054
77054
  registerAiCommand(aiYargs);
77055
77055
  aiYargs.command("sessions", __("Manage code sessions"), async (sessionsYargs) => {
77056
77056
  const [
@@ -77060,7 +77060,7 @@ async function main() {
77060
77060
  ] = await Promise.all([
77061
77061
  import("./delete-Cx1BaI3O.mjs"),
77062
77062
  import("./list-BCMF7dGI.mjs"),
77063
- import("./resume-D_K0QEl5.mjs")
77063
+ import("./resume-BQ0AFFri.mjs")
77064
77064
  ]);
77065
77065
  sessionsYargs.option("path", {
77066
77066
  hidden: true
@@ -77097,7 +77097,7 @@ async function main() {
77097
77097
  Promise.resolve().then(() => list$2),
77098
77098
  Promise.resolve().then(() => _delete$1),
77099
77099
  Promise.resolve().then(() => update),
77100
- import("./set-DzcR6sFr.mjs")
77100
+ import("./set-CaXD3xRR.mjs")
77101
77101
  ]);
77102
77102
  registerPreviewCreateCommand(previewYargs);
77103
77103
  registerPreviewListCommand(previewYargs);
@@ -77124,7 +77124,7 @@ async function main() {
77124
77124
  Promise.resolve().then(() => start),
77125
77125
  Promise.resolve().then(() => stop),
77126
77126
  Promise.resolve().then(() => _delete),
77127
- import("./set-C5l116L7.mjs")
77127
+ import("./set-C1IlYgs1.mjs")
77128
77128
  ]);
77129
77129
  registerSiteStatusCommand(sitesYargs);
77130
77130
  registerSiteCreateCommand(sitesYargs);
@@ -77146,7 +77146,7 @@ async function main() {
77146
77146
  });
77147
77147
  },
77148
77148
  handler: async (argv) => {
77149
- const { commandHandler: wpCliCommandHandler } = await import("./wp-CUKyZNTP.mjs");
77149
+ const { commandHandler: wpCliCommandHandler } = await import("./wp-CVDoHaqX.mjs");
77150
77150
  return wpCliCommandHandler(argv);
77151
77151
  }
77152
77152
  }).command({
@@ -77154,7 +77154,7 @@ async function main() {
77154
77154
  describe: false,
77155
77155
  // Hidden command
77156
77156
  handler: async () => {
77157
- const { commandHandler: eventsCommandHandler } = await import("./_events-C2dFSpKE.mjs");
77157
+ const { commandHandler: eventsCommandHandler } = await import("./_events-DQFT6kWX.mjs");
77158
77158
  return eventsCommandHandler();
77159
77159
  }
77160
77160
  }).demandCommand(1, __("You must provide a valid command")).strict();
@@ -1,4 +1,4 @@
1
- import { S as STUDIO_SITES_ROOT, c as createRemoteSiteTools, a as createStudioTools, r as readAuthToken, b as getSitesRunningStatus, d as getWpComSites, i as isSiteRunning, o as openBrowser, e as getSiteUrl, f as getSnapshotsFromConfig, h as isSnapshotExpired, j as captureCommandOutput, k as runCommand$2, l as runCommand$3 } from "./index-odShRBgM.mjs";
1
+ import { S as STUDIO_SITES_ROOT, c as createRemoteSiteTools, a as createStudioTools, r as readAuthToken, b as getSitesRunningStatus, d as getWpComSites, i as isSiteRunning, o as openBrowser, e as getSiteUrl, f as getSnapshotsFromConfig, h as isSnapshotExpired, j as captureCommandOutput, k as runCommand$2, l as runCommand$3 } from "./index-DI29uw2-.mjs";
2
2
  import { __, sprintf, _n } from "@wordpress/i18n";
3
3
  import fs__default from "fs";
4
4
  import path__default from "path";
@@ -12,8 +12,8 @@ import fs from "fs/promises";
12
12
  import { g as getAiSessionsDirectoryForDate, b as buildAiSessionFileName } from "./paths-DmFmyv9t.mjs";
13
13
  import { ProcessTerminal, TUI, Container, Loader, CombinedAutocompleteProvider, isKeyRelease, matchesKey, Text, SelectList, Input, Markdown, Editor, visibleWidth, CURSOR_MARKER, truncateToWidth } from "@mariozechner/pi-tui";
14
14
  import chalk from "chalk";
15
- import { runCommand as runCommand$1 } from "./login-BeT1uKwW.mjs";
16
- import { runCommand as runCommand$4 } from "./logout-BFQJBJD0.mjs";
15
+ import { runCommand as runCommand$1 } from "./login-CTN5Q8VB.mjs";
16
+ import { runCommand as runCommand$4 } from "./logout-BAlb-5XE.mjs";
17
17
  const ALLOWED_TOOLS = [
18
18
  "mcp__studio__*",
19
19
  "Read",
@@ -1953,7 +1953,7 @@ ${chalk.dim(message)}
1953
1953
  this.tui.start();
1954
1954
  }
1955
1955
  showWelcome() {
1956
- const version = "1.7.8-beta4";
1956
+ const version = "1.7.8";
1957
1957
  const cwd = process.cwd();
1958
1958
  const home = process.env.HOME ?? process.env.USERPROFILE ?? "";
1959
1959
  const displayCwd = home && cwd.startsWith(home) ? "~" + cwd.slice(home.length) : cwd;
@@ -1,7 +1,7 @@
1
1
  import { input } from "@inquirer/prompts";
2
2
  import { z as PROTOCOL_PREFIX, B as CLIENT_ID, d as Logger, L as LoggerError, E as DEFAULT_TOKEN_LIFETIME_MS } from "./well-known-paths-d6uuOzUp.mjs";
3
3
  import { A as AUTH_EVENTS } from "./certificate-manager-BMngpL-s.mjs";
4
- import { r as readAuthToken, A as AuthCommandLoggerAction, m as getAppLocale, o as openBrowser, g as getUserInfo, u as updateSharedConfig, n as emitCliEvent } from "./index-odShRBgM.mjs";
4
+ import { r as readAuthToken, A as AuthCommandLoggerAction, m as getAppLocale, o as openBrowser, g as getUserInfo, u as updateSharedConfig, n as emitCliEvent } from "./index-DI29uw2-.mjs";
5
5
  import { __, sprintf } from "@wordpress/i18n";
6
6
  const SCOPES = "global";
7
7
  const REDIRECT_URI = `${PROTOCOL_PREFIX}://auth`;
@@ -1,5 +1,5 @@
1
1
  import { A as AUTH_EVENTS } from "./certificate-manager-BMngpL-s.mjs";
2
- import { A as AuthCommandLoggerAction, r as readAuthToken, p as revokeAuthToken, u as updateSharedConfig, n as emitCliEvent } from "./index-odShRBgM.mjs";
2
+ import { A as AuthCommandLoggerAction, r as readAuthToken, p as revokeAuthToken, u as updateSharedConfig, n as emitCliEvent } from "./index-DI29uw2-.mjs";
3
3
  import { __ } from "@wordpress/i18n";
4
4
  import { d as Logger, L as LoggerError } from "./well-known-paths-d6uuOzUp.mjs";
5
5
  async function runCommand() {
package/dist/cli/main.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "node:path";
3
- import "./index-odShRBgM.mjs";
3
+ import "./index-DI29uw2-.mjs";
4
4
  import "@wordpress/i18n";
5
5
  import "semver";
6
6
  import "yargs";
@@ -1,6 +1,6 @@
1
1
  import { __ } from "@wordpress/i18n";
2
2
  import { c as chooseSessionForAction, l as listAiSessions, b as loadAiSession } from "./helpers-B-e5rgsh.mjs";
3
- import { runCommand as runCommand$1 } from "./index-CkFXAp-n.mjs";
3
+ import { runCommand as runCommand$1 } from "./index-DWYO_Fzf.mjs";
4
4
  import { L as LoggerError, d as Logger } from "./well-known-paths-d6uuOzUp.mjs";
5
5
  const logger = new Logger();
6
6
  async function runCommand(sessionIdOrPrefix, options = {}) {
@@ -46,7 +46,7 @@ var __callDispose = (stack, error, hasError) => {
46
46
  import { SupportedPHPVersions } from "@php-wasm/universal";
47
47
  import { L as LoggerError, d as Logger, M as MINIMUM_WORDPRESS_VERSION, q as DEFAULT_WORDPRESS_VERSION } from "./well-known-paths-d6uuOzUp.mjs";
48
48
  import { r as readCliConfig, l as lockCliConfig, s as saveCliConfig, u as unlockCliConfig, g as generateSiteCertificate, h as SITE_EVENTS } from "./certificate-manager-BMngpL-s.mjs";
49
- import { V as ValidationError, t as SiteCommandLoggerAction, v as getSiteByFolder, w as getDomainNameValidationError, x as updateDomainInHosts, y as connectToDaemon, z as isServerRunning, B as stopWordPressServer, C as validatePhpVersion, D as runWpCliCommand, E as setupCustomDomain, F as startWordPressServer, G as updateSiteLatestCliPid, n as emitCliEvent, H as disconnectFromDaemon } from "./index-odShRBgM.mjs";
49
+ import { V as ValidationError, t as SiteCommandLoggerAction, v as getSiteByFolder, w as getDomainNameValidationError, x as updateDomainInHosts, y as connectToDaemon, z as isServerRunning, B as stopWordPressServer, C as validatePhpVersion, D as runWpCliCommand, E as setupCustomDomain, F as startWordPressServer, G as updateSiteLatestCliPid, n as emitCliEvent, H as disconnectFromDaemon } from "./index-DI29uw2-.mjs";
50
50
  import { B as isValidWordPressVersion, C as isWordPressVersionAtLeast, x as validateAdminUsername, y as validateAdminEmail, a as arePathsEqual, z as encodePassword, b as getWordPressVersionUrl } from "./rewrite-wp-cli-post-content-CWC1GEL6.mjs";
51
51
  import { __, sprintf } from "@wordpress/i18n";
52
52
  function siteNeedsRestart(changes) {
@@ -1,5 +1,5 @@
1
1
  import { S as SNAPSHOT_EVENTS } from "./certificate-manager-BMngpL-s.mjs";
2
- import { q as normalizeHostname, P as PreviewCommandLoggerAction, s as setSnapshotInConfig, n as emitCliEvent } from "./index-odShRBgM.mjs";
2
+ import { q as normalizeHostname, P as PreviewCommandLoggerAction, s as setSnapshotInConfig, n as emitCliEvent } from "./index-DI29uw2-.mjs";
3
3
  import { __ } from "@wordpress/i18n";
4
4
  import { L as LoggerError, d as Logger } from "./well-known-paths-d6uuOzUp.mjs";
5
5
  async function runCommand(host, options) {
@@ -1,4 +1,4 @@
1
- import { A as AuthCommandLoggerAction, r as readAuthToken, g as getUserInfo } from "./index-odShRBgM.mjs";
1
+ import { A as AuthCommandLoggerAction, r as readAuthToken, g as getUserInfo } from "./index-DI29uw2-.mjs";
2
2
  import { __, sprintf } from "@wordpress/i18n";
3
3
  import { d as Logger, L as LoggerError } from "./well-known-paths-d6uuOzUp.mjs";
4
4
  async function runCommand() {
@@ -45,7 +45,7 @@ var __callDispose = (stack, error, hasError) => {
45
45
  };
46
46
  import { __ } from "@wordpress/i18n";
47
47
  import yargsParser from "yargs-parser";
48
- import { I as runGlobalWpCliCommand, v as getSiteByFolder, C as validatePhpVersion, H as disconnectFromDaemon, y as connectToDaemon, z as isServerRunning, J as sendWpCliCommand, D as runWpCliCommand } from "./index-odShRBgM.mjs";
48
+ import { I as runGlobalWpCliCommand, v as getSiteByFolder, C as validatePhpVersion, H as disconnectFromDaemon, y as connectToDaemon, z as isServerRunning, J as sendWpCliCommand, D as runWpCliCommand } from "./index-DI29uw2-.mjs";
49
49
  import { L as LoggerError, d as Logger } from "./well-known-paths-d6uuOzUp.mjs";
50
50
  const logger = new Logger();
51
51
  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.7.8-beta4",
4
+ "version": "1.7.8",
5
5
  "productName": "Studio CLI",
6
6
  "description": "WordPress Studio CLI",
7
7
  "license": "GPL-2.0-or-later",