wp-studio 1.7.8-beta1 → 1.7.8-beta2
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-CpYnL6aL.mjs → _events-BRGCap7g.mjs} +1 -1
- package/dist/cli/{index-COE3YuBZ.mjs → index-9Oz-0bqF.mjs} +8 -4
- package/dist/cli/{index-DcwE-uHJ.mjs → index-CT4S2538.mjs} +10 -10
- package/dist/cli/{login-BG1fj9WI.mjs → login-D4E3GoXe.mjs} +1 -1
- package/dist/cli/{logout-ZvmdeOCk.mjs → logout-DE-RoshK.mjs} +1 -1
- package/dist/cli/main.mjs +1 -1
- package/dist/cli/{resume-DAqOqbu7.mjs → resume-DLoXmzNG.mjs} +1 -1
- package/dist/cli/{set-DUft5oIC.mjs → set-B0L-QiXT.mjs} +1 -1
- package/dist/cli/{set-JSHvPScL.mjs → set-B8YYUENH.mjs} +1 -1
- package/dist/cli/{status-PM6pdsVD.mjs → status-DEOAA0yx.mjs} +1 -1
- package/dist/cli/{wp-BzITd9Ic.mjs → wp-CobSX6C6.mjs} +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import fs__default from "fs";
|
|
|
2
2
|
import { k as socketEventSchema, e as SITE_EVENTS, S as SNAPSHOT_EVENTS, A as AUTH_EVENTS, r as readCliConfig, m as siteDetailsSchema } from "./certificate-manager-Dd4zv2_k.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-
|
|
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-CT4S2538.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";
|
|
@@ -1,5 +1,6 @@
|
|
|
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-
|
|
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-CT4S2538.mjs";
|
|
2
2
|
import { __, sprintf, _n } from "@wordpress/i18n";
|
|
3
|
+
import fs__default from "fs";
|
|
3
4
|
import path__default from "path";
|
|
4
5
|
import { query } from "@anthropic-ai/claude-agent-sdk";
|
|
5
6
|
import os from "os";
|
|
@@ -11,8 +12,8 @@ import fs from "fs/promises";
|
|
|
11
12
|
import { g as getAiSessionsDirectoryForDate, b as buildAiSessionFileName } from "./paths-DmFmyv9t.mjs";
|
|
12
13
|
import { ProcessTerminal, TUI, Container, Loader, CombinedAutocompleteProvider, isKeyRelease, matchesKey, Text, SelectList, Input, Markdown, Editor, visibleWidth, CURSOR_MARKER, truncateToWidth } from "@mariozechner/pi-tui";
|
|
13
14
|
import chalk from "chalk";
|
|
14
|
-
import { runCommand as runCommand$1 } from "./login-
|
|
15
|
-
import { runCommand as runCommand$4 } from "./logout-
|
|
15
|
+
import { runCommand as runCommand$1 } from "./login-D4E3GoXe.mjs";
|
|
16
|
+
import { runCommand as runCommand$4 } from "./logout-DE-RoshK.mjs";
|
|
16
17
|
const ALLOWED_TOOLS = [
|
|
17
18
|
"mcp__studio__*",
|
|
18
19
|
"Read",
|
|
@@ -446,6 +447,9 @@ function startAiAgent(config) {
|
|
|
446
447
|
id: activeSite.wpcomSiteId
|
|
447
448
|
}
|
|
448
449
|
} : void 0;
|
|
450
|
+
if (!fs__default.existsSync(STUDIO_ROOT)) {
|
|
451
|
+
fs__default.mkdirSync(STUDIO_ROOT, { recursive: true });
|
|
452
|
+
}
|
|
449
453
|
return query({
|
|
450
454
|
prompt,
|
|
451
455
|
options: {
|
|
@@ -1949,7 +1953,7 @@ ${chalk.dim(message)}
|
|
|
1949
1953
|
this.tui.start();
|
|
1950
1954
|
}
|
|
1951
1955
|
showWelcome() {
|
|
1952
|
-
const version = "1.7.8-
|
|
1956
|
+
const version = "1.7.8-beta2";
|
|
1953
1957
|
const cwd = process.cwd();
|
|
1954
1958
|
const home = process.env.HOME ?? process.env.USERPROFILE ?? "";
|
|
1955
1959
|
const displayCwd = home && cwd.startsWith(home) ? "~" + cwd.slice(home.length) : cwd;
|
|
@@ -76939,7 +76939,7 @@ function getPlatformMetric() {
|
|
|
76939
76939
|
return StatsMetric.UNKNOWN_PLATFORM;
|
|
76940
76940
|
}
|
|
76941
76941
|
}
|
|
76942
|
-
const version = "1.7.8-
|
|
76942
|
+
const version = "1.7.8-beta2";
|
|
76943
76943
|
suppressPunycodeWarning();
|
|
76944
76944
|
async function main() {
|
|
76945
76945
|
const yargsLocale = await loadTranslations();
|
|
@@ -76986,9 +76986,9 @@ async function main() {
|
|
|
76986
76986
|
{ registerCommand: registerAuthLogoutCommand },
|
|
76987
76987
|
{ registerCommand: registerAuthStatusCommand }
|
|
76988
76988
|
] = await Promise.all([
|
|
76989
|
-
import("./login-
|
|
76990
|
-
import("./logout-
|
|
76991
|
-
import("./status-
|
|
76989
|
+
import("./login-D4E3GoXe.mjs"),
|
|
76990
|
+
import("./logout-DE-RoshK.mjs"),
|
|
76991
|
+
import("./status-DEOAA0yx.mjs")
|
|
76992
76992
|
]);
|
|
76993
76993
|
registerAuthLoginCommand(authYargs);
|
|
76994
76994
|
registerAuthLogoutCommand(authYargs);
|
|
@@ -76996,7 +76996,7 @@ async function main() {
|
|
|
76996
76996
|
authYargs.version(false).demandCommand(1, __("You must provide a valid auth command"));
|
|
76997
76997
|
});
|
|
76998
76998
|
const studioCodeCommandBuilder = async (aiYargs) => {
|
|
76999
|
-
const { registerCommand: registerAiCommand } = await import("./index-
|
|
76999
|
+
const { registerCommand: registerAiCommand } = await import("./index-9Oz-0bqF.mjs");
|
|
77000
77000
|
registerAiCommand(aiYargs);
|
|
77001
77001
|
aiYargs.command("sessions", __("Manage code sessions"), async (sessionsYargs) => {
|
|
77002
77002
|
const [
|
|
@@ -77006,7 +77006,7 @@ async function main() {
|
|
|
77006
77006
|
] = await Promise.all([
|
|
77007
77007
|
import("./delete-Cx1BaI3O.mjs"),
|
|
77008
77008
|
import("./list-BCMF7dGI.mjs"),
|
|
77009
|
-
import("./resume-
|
|
77009
|
+
import("./resume-DLoXmzNG.mjs")
|
|
77010
77010
|
]);
|
|
77011
77011
|
sessionsYargs.option("path", {
|
|
77012
77012
|
hidden: true
|
|
@@ -77043,7 +77043,7 @@ async function main() {
|
|
|
77043
77043
|
Promise.resolve().then(() => list$2),
|
|
77044
77044
|
Promise.resolve().then(() => _delete$1),
|
|
77045
77045
|
Promise.resolve().then(() => update),
|
|
77046
|
-
import("./set-
|
|
77046
|
+
import("./set-B0L-QiXT.mjs")
|
|
77047
77047
|
]);
|
|
77048
77048
|
registerPreviewCreateCommand(previewYargs);
|
|
77049
77049
|
registerPreviewListCommand(previewYargs);
|
|
@@ -77070,7 +77070,7 @@ async function main() {
|
|
|
77070
77070
|
Promise.resolve().then(() => start),
|
|
77071
77071
|
Promise.resolve().then(() => stop),
|
|
77072
77072
|
Promise.resolve().then(() => _delete),
|
|
77073
|
-
import("./set-
|
|
77073
|
+
import("./set-B8YYUENH.mjs")
|
|
77074
77074
|
]);
|
|
77075
77075
|
registerSiteStatusCommand(sitesYargs);
|
|
77076
77076
|
registerSiteCreateCommand(sitesYargs);
|
|
@@ -77092,7 +77092,7 @@ async function main() {
|
|
|
77092
77092
|
});
|
|
77093
77093
|
},
|
|
77094
77094
|
handler: async (argv) => {
|
|
77095
|
-
const { commandHandler: wpCliCommandHandler } = await import("./wp-
|
|
77095
|
+
const { commandHandler: wpCliCommandHandler } = await import("./wp-CobSX6C6.mjs");
|
|
77096
77096
|
return wpCliCommandHandler(argv);
|
|
77097
77097
|
}
|
|
77098
77098
|
}).command({
|
|
@@ -77100,7 +77100,7 @@ async function main() {
|
|
|
77100
77100
|
describe: false,
|
|
77101
77101
|
// Hidden command
|
|
77102
77102
|
handler: async () => {
|
|
77103
|
-
const { commandHandler: eventsCommandHandler } = await import("./_events-
|
|
77103
|
+
const { commandHandler: eventsCommandHandler } = await import("./_events-BRGCap7g.mjs");
|
|
77104
77104
|
return eventsCommandHandler();
|
|
77105
77105
|
}
|
|
77106
77106
|
}).demandCommand(1, __("You must provide a valid command")).strict();
|
|
@@ -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-Dd4zv2_k.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-
|
|
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-CT4S2538.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-Dd4zv2_k.mjs";
|
|
2
|
-
import { A as AuthCommandLoggerAction, r as readAuthToken, p as revokeAuthToken, u as updateSharedConfig, n as emitCliEvent } from "./index-
|
|
2
|
+
import { A as AuthCommandLoggerAction, r as readAuthToken, p as revokeAuthToken, u as updateSharedConfig, n as emitCliEvent } from "./index-CT4S2538.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
|
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-
|
|
3
|
+
import { runCommand as runCommand$1 } from "./index-9Oz-0bqF.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 = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SNAPSHOT_EVENTS } from "./certificate-manager-Dd4zv2_k.mjs";
|
|
2
|
-
import { q as normalizeHostname, P as PreviewCommandLoggerAction, s as setSnapshotInConfig, n as emitCliEvent } from "./index-
|
|
2
|
+
import { q as normalizeHostname, P as PreviewCommandLoggerAction, s as setSnapshotInConfig, n as emitCliEvent } from "./index-CT4S2538.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) {
|
|
@@ -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, e as SITE_EVENTS } from "./certificate-manager-Dd4zv2_k.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-
|
|
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-CT4S2538.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,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-CT4S2538.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-
|
|
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-CT4S2538.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) {
|