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.
- package/dist/cli/{_events-D_POEBYs.mjs → _events-B8xQ_baD.mjs} +1 -1
- package/dist/cli/{delete-C4R7DV_E.mjs → delete-BG-E-HsW.mjs} +1 -1
- package/dist/cli/{helpers-CBl4GQzX.mjs → helpers-CIAgfdq8.mjs} +1 -1
- package/dist/cli/{index-jpyzVGrl.mjs → index-Dhun0W1n.mjs} +4 -4
- package/dist/cli/{index-DYlrlauo.mjs → index-ul3DeWvy.mjs} +12 -12
- package/dist/cli/{list-BRllR-8H.mjs → list-ck0oK4vb.mjs} +1 -1
- package/dist/cli/{login-CDVrFvfk.mjs → login-Dz63Zdfn.mjs} +1 -1
- package/dist/cli/{logout-DLAXkbrZ.mjs → logout-CLUKQeZh.mjs} +1 -1
- package/dist/cli/main.mjs +1 -1
- package/dist/cli/{resume-B8M2e-Ii.mjs → resume-BSIOJnyM.mjs} +2 -2
- package/dist/cli/{set-CizYT2gE.mjs → set-CtDZnARG.mjs} +1 -1
- package/dist/cli/{set-_5ABvjxt.mjs → set-PJvs-Yw5.mjs} +1 -1
- package/dist/cli/{status-D6Huwi6x.mjs → status-DU07aAtD.mjs} +1 -1
- package/dist/cli/{wp-BevvZcM1.mjs → wp-_X-h-yuW.mjs} +1 -1
- package/package.json +1 -1
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
13
|
-
import { runCommand as runCommand$2 } from "./logout-
|
|
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
|
|
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
|
|
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-
|
|
77313
|
-
import("./logout-
|
|
77314
|
-
import("./status-
|
|
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-
|
|
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-
|
|
77331
|
-
import("./list-
|
|
77332
|
-
import("./resume-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,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-
|
|
4
|
-
import { c as chooseSessionForAction } from "./helpers-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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) {
|