wp-studio 1.7.11-beta1 → 1.7.11

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 { L as LoggerError, c as Logger, x as socketEventSchema, S as SITE_EVENTS, f as SNAPSHOT_EVENTS, A as AUTH_EVENTS, r as readCliConfig, y as siteDetailsSchema } from "./certificate-manager-v-yNLDFJ.mjs";
3
3
  import { o as isEmptyDir } from "./rewrite-wp-cli-post-content-Beo5_Ojo.mjs";
4
4
  import { s as sequential } from "./sequential-BQFuixXz.mjs";
5
- import { M as SITE_EVENTS_SOCKET_PATH, w as SiteCommandLoggerAction, B as connectToDaemon, N as getDaemonBus, O as SITE_PROCESS_PREFIX, J as disconnectFromDaemon, Q as removeSiteFromConfig, m as getSiteUrl, l as isSiteRunning } from "./index-DYlrlauo.mjs";
5
+ import { M as SITE_EVENTS_SOCKET_PATH, w as SiteCommandLoggerAction, B as connectToDaemon, N as getDaemonBus, O as SITE_PROCESS_PREFIX, J as disconnectFromDaemon, Q as removeSiteFromConfig, m as getSiteUrl, l as isSiteRunning } from "./index-ul3DeWvy.mjs";
6
6
  import { __ } from "@wordpress/i18n";
7
7
  import { g as SocketServer } from "./process-manager-ipc-GCdebuBH.mjs";
8
8
  const logger = new Logger();
@@ -1,6 +1,6 @@
1
1
  import { l as listAiSessions, g as getAiSessionsRootDirectory, d as deleteAiSession } from "./paths-D7DniT1Q.mjs";
2
2
  import { __ } from "@wordpress/i18n";
3
- import { c as chooseSessionForAction } from "./helpers-CBl4GQzX.mjs";
3
+ import { c as chooseSessionForAction } from "./helpers-CIAgfdq8.mjs";
4
4
  import { L as LoggerError, c as Logger } from "./certificate-manager-v-yNLDFJ.mjs";
5
5
  const logger = new Logger();
6
6
  async function runCommand(sessionIdOrPrefix) {
@@ -1,7 +1,7 @@
1
1
  import { select } from "@inquirer/prompts";
2
2
  import { visibleWidth, truncateToWidth } from "@mariozechner/pi-tui";
3
3
  import { l as listAiSessions, g as getAiSessionsRootDirectory } from "./paths-D7DniT1Q.mjs";
4
- import { h as chalk } from "./index-DYlrlauo.mjs";
4
+ import { h as chalk } from "./index-ul3DeWvy.mjs";
5
5
  import { __ } from "@wordpress/i18n";
6
6
  function formatSessionTimestamp(timestamp) {
7
7
  const parsed = Date.parse(timestamp);
@@ -1,5 +1,5 @@
1
1
  import { b as getAiSessionsDirectoryForDate, c as buildAiSessionFileName, l as listAiSessions, g as getAiSessionsRootDirectory } from "./paths-D7DniT1Q.mjs";
2
- import { S as STUDIO_SITES_ROOT, c as createRemoteSiteTools, a as createStudioTools, r as readAuthToken, b as getSnapshotsFromConfig, i as isSnapshotExpired, d as captureCommandOutput, e as runCommand$3, f as runCommand$4, h as chalk, j as getSitesRunningStatus, k as getWpComSites, l as isSiteRunning, o as openBrowser, m as getSiteUrl, n as closeSharedBrowser } from "./index-DYlrlauo.mjs";
2
+ import { S as STUDIO_SITES_ROOT, c as createRemoteSiteTools, a as createStudioTools, r as readAuthToken, b as getSnapshotsFromConfig, i as isSnapshotExpired, d as captureCommandOutput, e as runCommand$3, f as runCommand$4, h as chalk, j as getSitesRunningStatus, k as getWpComSites, l as isSiteRunning, o as openBrowser, m as getSiteUrl, n as closeSharedBrowser } from "./index-ul3DeWvy.mjs";
3
3
  import { __, sprintf, _n } from "@wordpress/i18n";
4
4
  import fs__default from "fs";
5
5
  import path__default from "path";
@@ -9,8 +9,8 @@ import { l as lockCliConfig, r as readCliConfig, s as saveCliConfig, u as unlock
9
9
  import { password } from "@inquirer/prompts";
10
10
  import crypto from "crypto";
11
11
  import fs from "fs/promises";
12
- import { runCommand as runCommand$1 } from "./login-CDVrFvfk.mjs";
13
- import { runCommand as runCommand$2 } from "./logout-DLAXkbrZ.mjs";
12
+ import { runCommand as runCommand$1 } from "./login-Dz63Zdfn.mjs";
13
+ import { runCommand as runCommand$2 } from "./logout-CLUKQeZh.mjs";
14
14
  import { ProcessTerminal, TUI, Container, Loader, CombinedAutocompleteProvider, isKeyRelease, matchesKey, Text, SelectList, Input, Markdown, Editor, visibleWidth, CURSOR_MARKER, truncateToWidth } from "@mariozechner/pi-tui";
15
15
  const AI_MODELS = {
16
16
  "claude-sonnet-4-6": "Sonnet 4.6",
@@ -2440,7 +2440,7 @@ ${chalk.hex("#8839ef")(label)}
2440
2440
  this.tui.start();
2441
2441
  }
2442
2442
  showWelcome() {
2443
- const version = "1.7.11-beta1";
2443
+ const version = "1.7.11";
2444
2444
  const cwd = process.cwd();
2445
2445
  const home = process.env.HOME ?? process.env.USERPROFILE ?? "";
2446
2446
  const displayCwd = home && cwd.startsWith(home) ? "~" + cwd.slice(home.length) : cwd;
@@ -77244,7 +77244,7 @@ function formatUpdateBanner(currentVersion, latestVersion) {
77244
77244
  });
77245
77245
  return ["", top, ...paddedLines, bottom, ""].join("\n");
77246
77246
  }
77247
- const version = "1.7.11-beta1";
77247
+ const version = "1.7.11";
77248
77248
  suppressPunycodeWarning();
77249
77249
  async function main() {
77250
77250
  await setupUpdateNotifier(version);
@@ -77309,9 +77309,9 @@ async function main() {
77309
77309
  { registerCommand: registerAuthLogoutCommand },
77310
77310
  { registerCommand: registerAuthStatusCommand }
77311
77311
  ] = await Promise.all([
77312
- import("./login-CDVrFvfk.mjs"),
77313
- import("./logout-DLAXkbrZ.mjs"),
77314
- import("./status-D6Huwi6x.mjs")
77312
+ import("./login-Dz63Zdfn.mjs"),
77313
+ import("./logout-CLUKQeZh.mjs"),
77314
+ import("./status-DU07aAtD.mjs")
77315
77315
  ]);
77316
77316
  registerAuthLoginCommand(authYargs);
77317
77317
  registerAuthLogoutCommand(authYargs);
@@ -77319,7 +77319,7 @@ async function main() {
77319
77319
  authYargs.version(false).demandCommand(1, __("You must provide a valid auth command"));
77320
77320
  });
77321
77321
  const studioCodeCommandBuilder = async (aiYargs) => {
77322
- const { registerCommand: registerAiCommand } = await import("./index-jpyzVGrl.mjs").then((n) => n.i);
77322
+ const { registerCommand: registerAiCommand } = await import("./index-Dhun0W1n.mjs").then((n) => n.i);
77323
77323
  registerAiCommand(aiYargs);
77324
77324
  aiYargs.command("sessions", __("Manage code sessions"), async (sessionsYargs) => {
77325
77325
  const [
@@ -77327,9 +77327,9 @@ async function main() {
77327
77327
  { registerCommand: registerAiSessionsListCommand },
77328
77328
  { registerCommand: registerAiSessionsResumeCommand }
77329
77329
  ] = await Promise.all([
77330
- import("./delete-C4R7DV_E.mjs"),
77331
- import("./list-BRllR-8H.mjs"),
77332
- import("./resume-B8M2e-Ii.mjs")
77330
+ import("./delete-BG-E-HsW.mjs"),
77331
+ import("./list-ck0oK4vb.mjs"),
77332
+ import("./resume-BSIOJnyM.mjs")
77333
77333
  ]);
77334
77334
  sessionsYargs.option("path", {
77335
77335
  hidden: true
@@ -77366,7 +77366,7 @@ async function main() {
77366
77366
  Promise.resolve().then(() => list$2),
77367
77367
  Promise.resolve().then(() => _delete$1),
77368
77368
  Promise.resolve().then(() => update),
77369
- import("./set-CizYT2gE.mjs")
77369
+ import("./set-CtDZnARG.mjs")
77370
77370
  ]);
77371
77371
  registerPreviewCreateCommand(previewYargs);
77372
77372
  registerPreviewListCommand(previewYargs);
@@ -77393,7 +77393,7 @@ async function main() {
77393
77393
  Promise.resolve().then(() => start),
77394
77394
  Promise.resolve().then(() => stop),
77395
77395
  Promise.resolve().then(() => _delete),
77396
- import("./set-_5ABvjxt.mjs")
77396
+ import("./set-PJvs-Yw5.mjs")
77397
77397
  ]);
77398
77398
  registerSiteStatusCommand(sitesYargs);
77399
77399
  registerSiteCreateCommand(sitesYargs);
@@ -77415,7 +77415,7 @@ async function main() {
77415
77415
  });
77416
77416
  },
77417
77417
  handler: async (argv) => {
77418
- const { commandHandler: wpCliCommandHandler } = await import("./wp-BevvZcM1.mjs");
77418
+ const { commandHandler: wpCliCommandHandler } = await import("./wp-_X-h-yuW.mjs");
77419
77419
  return wpCliCommandHandler(argv);
77420
77420
  }
77421
77421
  }).command({
@@ -77423,7 +77423,7 @@ async function main() {
77423
77423
  describe: false,
77424
77424
  // Hidden command
77425
77425
  handler: async () => {
77426
- const { commandHandler: eventsCommandHandler } = await import("./_events-D_POEBYs.mjs");
77426
+ const { commandHandler: eventsCommandHandler } = await import("./_events-B8xQ_baD.mjs");
77427
77427
  return eventsCommandHandler();
77428
77428
  }
77429
77429
  }).demandCommand(1, __("You must provide a valid command")).strict();
@@ -1,6 +1,6 @@
1
1
  import { l as listAiSessions, g as getAiSessionsRootDirectory } from "./paths-D7DniT1Q.mjs";
2
2
  import { __ } from "@wordpress/i18n";
3
- import { d as displaySessionsCompact } from "./helpers-CBl4GQzX.mjs";
3
+ import { d as displaySessionsCompact } from "./helpers-CIAgfdq8.mjs";
4
4
  import { L as LoggerError, c as Logger } from "./certificate-manager-v-yNLDFJ.mjs";
5
5
  const logger = new Logger();
6
6
  async function runCommand(format) {
@@ -1,7 +1,7 @@
1
1
  import { input } from "@inquirer/prompts";
2
2
  import { s as PROTOCOL_PREFIX, t as CLIENT_ID, u as DEFAULT_TOKEN_LIFETIME_MS } from "./well-known-paths-QcSJNi_l.mjs";
3
3
  import { c as Logger, L as LoggerError, A as AUTH_EVENTS } from "./certificate-manager-v-yNLDFJ.mjs";
4
- import { r as readAuthToken, A as AuthCommandLoggerAction, p as getAppLocale, o as openBrowser, g as getUserInfo, u as updateSharedConfig, q as emitCliEvent } from "./index-DYlrlauo.mjs";
4
+ import { r as readAuthToken, A as AuthCommandLoggerAction, p as getAppLocale, o as openBrowser, g as getUserInfo, u as updateSharedConfig, q as emitCliEvent } from "./index-ul3DeWvy.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 { c as Logger, L as LoggerError, A as AUTH_EVENTS } from "./certificate-manager-v-yNLDFJ.mjs";
2
- import { A as AuthCommandLoggerAction, r as readAuthToken, s as revokeAuthToken, u as updateSharedConfig, q as emitCliEvent } from "./index-DYlrlauo.mjs";
2
+ import { A as AuthCommandLoggerAction, r as readAuthToken, s as revokeAuthToken, u as updateSharedConfig, q as emitCliEvent } from "./index-ul3DeWvy.mjs";
3
3
  import { __ } from "@wordpress/i18n";
4
4
  async function runCommand() {
5
5
  const logger = new Logger();
package/dist/cli/main.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import "node:path";
3
- import "./index-DYlrlauo.mjs";
3
+ import "./index-ul3DeWvy.mjs";
4
4
  import "@wordpress/i18n";
5
5
  import "semver";
6
6
  import "yargs";
@@ -1,7 +1,7 @@
1
1
  import { l as listAiSessions, g as getAiSessionsRootDirectory, a as loadAiSession } from "./paths-D7DniT1Q.mjs";
2
2
  import { __ } from "@wordpress/i18n";
3
- import { J as JsonAdapter, A as AiChatUI, r as runCommand$1 } from "./index-jpyzVGrl.mjs";
4
- import { c as chooseSessionForAction } from "./helpers-CBl4GQzX.mjs";
3
+ import { J as JsonAdapter, A as AiChatUI, r as runCommand$1 } from "./index-Dhun0W1n.mjs";
4
+ import { c as chooseSessionForAction } from "./helpers-CIAgfdq8.mjs";
5
5
  import { L as LoggerError, c as Logger } from "./certificate-manager-v-yNLDFJ.mjs";
6
6
  function resolveActiveSiteFromEvents(events) {
7
7
  let state;
@@ -1,5 +1,5 @@
1
1
  import { L as LoggerError, c as Logger, f as SNAPSHOT_EVENTS } from "./certificate-manager-v-yNLDFJ.mjs";
2
- import { t as normalizeHostname, P as PreviewCommandLoggerAction, v as setSnapshotInConfig, q as emitCliEvent } from "./index-DYlrlauo.mjs";
2
+ import { t as normalizeHostname, P as PreviewCommandLoggerAction, v as setSnapshotInConfig, q as emitCliEvent } from "./index-ul3DeWvy.mjs";
3
3
  import { __ } from "@wordpress/i18n";
4
4
  async function runCommand(host, options) {
5
5
  const { name } = options;
@@ -46,7 +46,7 @@ var __callDispose = (stack, error, hasError) => {
46
46
  import { SupportedPHPVersions } from "@php-wasm/universal";
47
47
  import { M as MINIMUM_WORDPRESS_VERSION, m as DEFAULT_WORDPRESS_VERSION } from "./well-known-paths-QcSJNi_l.mjs";
48
48
  import { L as LoggerError, c as Logger, r as readCliConfig, l as lockCliConfig, s as saveCliConfig, u as unlockCliConfig, n as generateSiteCertificate, S as SITE_EVENTS } from "./certificate-manager-v-yNLDFJ.mjs";
49
- import { V as ValidationError, w as SiteCommandLoggerAction, x as getSiteByFolder, y as getDomainNameValidationError, z as updateDomainInHosts, B as connectToDaemon, C as isServerRunning, D as stopWordPressServer, E as validatePhpVersion, F as runWpCliCommand, G as setupCustomDomain, H as startWordPressServer, I as updateSiteLatestCliPid, q as emitCliEvent, J as disconnectFromDaemon } from "./index-DYlrlauo.mjs";
49
+ import { V as ValidationError, w as SiteCommandLoggerAction, x as getSiteByFolder, y as getDomainNameValidationError, z as updateDomainInHosts, B as connectToDaemon, C as isServerRunning, D as stopWordPressServer, E as validatePhpVersion, F as runWpCliCommand, G as setupCustomDomain, H as startWordPressServer, I as updateSiteLatestCliPid, q as emitCliEvent, J as disconnectFromDaemon } from "./index-ul3DeWvy.mjs";
50
50
  import { x as isValidWordPressVersion, y as isWordPressVersionAtLeast, v as validateAdminUsername, t as validateAdminEmail, a as arePathsEqual, u as encodePassword, b as getWordPressVersionUrl } from "./rewrite-wp-cli-post-content-Beo5_Ojo.mjs";
51
51
  import { __, sprintf } from "@wordpress/i18n";
52
52
  function siteNeedsRestart(changes) {
@@ -1,4 +1,4 @@
1
- import { A as AuthCommandLoggerAction, r as readAuthToken, g as getUserInfo } from "./index-DYlrlauo.mjs";
1
+ import { A as AuthCommandLoggerAction, r as readAuthToken, g as getUserInfo } from "./index-ul3DeWvy.mjs";
2
2
  import { __, sprintf } from "@wordpress/i18n";
3
3
  import { c as Logger, L as LoggerError } from "./certificate-manager-v-yNLDFJ.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 { K as runGlobalWpCliCommand, x as getSiteByFolder, E as validatePhpVersion, J as disconnectFromDaemon, B as connectToDaemon, C as isServerRunning, L as sendWpCliCommand, F as runWpCliCommand } from "./index-DYlrlauo.mjs";
48
+ import { K as runGlobalWpCliCommand, x as getSiteByFolder, E as validatePhpVersion, J as disconnectFromDaemon, B as connectToDaemon, C as isServerRunning, L as sendWpCliCommand, F as runWpCliCommand } from "./index-ul3DeWvy.mjs";
49
49
  import { L as LoggerError, c as Logger } from "./certificate-manager-v-yNLDFJ.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.11-beta1",
4
+ "version": "1.7.11",
5
5
  "productName": "Studio CLI",
6
6
  "description": "WordPress Studio CLI",
7
7
  "license": "GPL-2.0-or-later",