@shopify/cli 3.81.2 → 3.82.1
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/{chunk-3T3ACEB6.js → chunk-2UOPOSAQ.js} +5 -5
- package/dist/{chunk-VHVSXYDG.js → chunk-5NCPSAFZ.js} +2 -2
- package/dist/{chunk-UZOXTQRI.js → chunk-6HSVIAHC.js} +11 -6
- package/dist/{chunk-MUE6EAKT.js → chunk-7AGM22KG.js} +3 -3
- package/dist/{chunk-Q3L5AS4S.js → chunk-7E5ELMEP.js} +6 -6
- package/dist/{chunk-2KWYWUB3.js → chunk-AE3MLJMV.js} +16 -9
- package/dist/{chunk-V2VRGD2W.js → chunk-API6SOPE.js} +3 -3
- package/dist/{chunk-TYFNEBTF.js → chunk-B2IEJ5WW.js} +3 -3
- package/dist/{chunk-SQ5I7L4B.js → chunk-CLFWIHUG.js} +4 -4
- package/dist/{chunk-GNIHBXG6.js → chunk-EE5FOU6D.js} +2 -2
- package/dist/{chunk-NQ5I6XQM.js → chunk-GCPVC7EU.js} +5 -5
- package/dist/{chunk-Y4QJSFVY.js → chunk-HPTCTDPD.js} +3 -3
- package/dist/{chunk-VMOW3UFB.js → chunk-IHFQ3F23.js} +3 -3
- package/dist/{chunk-VLKHGWXM.js → chunk-IXOKLO2J.js} +7 -7
- package/dist/{chunk-QWR45GZB.js → chunk-JFCQDJFN.js} +19 -9
- package/dist/{chunk-6AIVUZDO.js → chunk-LHLR2V5J.js} +2 -2
- package/dist/{chunk-Y4DTNOTB.js → chunk-M4TCGXII.js} +6 -6
- package/dist/{chunk-X2IUQUGP.js → chunk-MBYV3HFV.js} +2 -2
- package/dist/{chunk-MKRZYHOX.js → chunk-MOIB2YST.js} +2 -2
- package/dist/{chunk-KBRGOZ4R.js → chunk-MPCIJZRR.js} +3 -3
- package/dist/{chunk-UD2LINKV.js → chunk-N4LQOIDN.js} +3 -3
- package/dist/{chunk-MKTTOK7P.js → chunk-OSWJJWB4.js} +4 -4
- package/dist/{chunk-JEEL2VDS.js → chunk-QDLC5TZP.js} +3 -3
- package/dist/{chunk-SYSFH5UI.js → chunk-RBHXB7LY.js} +2 -2
- package/dist/{chunk-JZDA5RDA.js → chunk-SFDHLWEI.js} +4 -4
- package/dist/{chunk-RBIBCG2T.js → chunk-SRBYTZSG.js} +4 -4
- package/dist/{chunk-I5GZNFE5.js → chunk-TOYQ6OGF.js} +3 -3
- package/dist/{chunk-ICOQSJ5W.js → chunk-TRPRYAWB.js} +3 -3
- package/dist/{chunk-3LZI32WD.js → chunk-UENXYFT3.js} +9 -7
- package/dist/{chunk-ST2557ZT.js → chunk-VOPDBKMR.js} +3 -3
- package/dist/{chunk-UA6V476X.js → chunk-W7ISQU7I.js} +2 -2
- package/dist/{chunk-V7M7AO2M.js → chunk-YJPCY2LS.js} +3 -3
- package/dist/{chunk-JSV7CLE5.js → chunk-YN4HBUI3.js} +2 -2
- package/dist/{chunk-WNAOEU7P.js → chunk-YPVB6B34.js} +7 -7
- package/dist/cli/commands/auth/logout.js +11 -11
- package/dist/cli/commands/auth/logout.test.js +12 -12
- package/dist/cli/commands/cache/clear.js +10 -10
- package/dist/cli/commands/debug/command-flags.js +10 -10
- package/dist/cli/commands/docs/generate.js +10 -10
- package/dist/cli/commands/docs/generate.test.js +10 -10
- package/dist/cli/commands/help.js +10 -10
- package/dist/cli/commands/kitchen-sink/async.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.test.js +11 -11
- package/dist/cli/commands/kitchen-sink/index.js +13 -13
- package/dist/cli/commands/kitchen-sink/index.test.js +13 -13
- package/dist/cli/commands/kitchen-sink/prompts.js +11 -11
- package/dist/cli/commands/kitchen-sink/prompts.test.js +11 -11
- package/dist/cli/commands/kitchen-sink/static.js +11 -11
- package/dist/cli/commands/kitchen-sink/static.test.js +11 -11
- package/dist/cli/commands/notifications/generate.js +11 -11
- package/dist/cli/commands/notifications/list.js +11 -11
- package/dist/cli/commands/search.js +11 -11
- package/dist/cli/commands/upgrade.js +11 -11
- package/dist/cli/commands/version.js +11 -11
- package/dist/cli/commands/version.test.js +11 -11
- package/dist/cli/services/commands/notifications.js +6 -6
- package/dist/cli/services/commands/search.js +2 -2
- package/dist/cli/services/commands/search.test.js +2 -2
- package/dist/cli/services/commands/version.js +3 -3
- package/dist/cli/services/commands/version.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +2 -2
- package/dist/cli/services/kitchen-sink/prompts.js +2 -2
- package/dist/cli/services/kitchen-sink/static.js +2 -2
- package/dist/cli/services/upgrade.js +3 -3
- package/dist/cli/services/upgrade.test.js +4 -4
- package/dist/{custom-oclif-loader-AGJRZGNY.js → custom-oclif-loader-SQEUSZSS.js} +2 -2
- package/dist/{error-handler-FV7IMU3S.js → error-handler-EUTRPJGF.js} +8 -8
- package/dist/hooks/postrun.js +6 -6
- package/dist/hooks/prerun.js +7 -7
- package/dist/index.js +276 -173
- package/dist/{local-LOH6WNIE.js → local-DTWKQE2A.js} +2 -2
- package/dist/{node-7R7VKIC3.js → node-MZOMVUI6.js} +12 -12
- package/dist/{node-package-manager-4APHMQLC.js → node-package-manager-NJGCZMAX.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-IROK54OF.js → ui-OUT2NXBE.js} +2 -2
- package/dist/{workerd-HIXCYQNX.js → workerd-JR3RQRVU.js} +12 -12
- package/oclif.manifest.json +84 -12
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -119,6 +119,7 @@ import {
|
|
|
119
119
|
partnersRequestDoc,
|
|
120
120
|
patchEnvFile,
|
|
121
121
|
readAndParseDotEnv,
|
|
122
|
+
removeGitRemote,
|
|
122
123
|
renderCssPrompt,
|
|
123
124
|
renderI18nPrompt,
|
|
124
125
|
renderLoginSuccess,
|
|
@@ -135,7 +136,7 @@ import {
|
|
|
135
136
|
supressNodeExperimentalWarnings,
|
|
136
137
|
unsetStorefront,
|
|
137
138
|
waitForJob
|
|
138
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-JFCQDJFN.js";
|
|
139
140
|
import {
|
|
140
141
|
require_fs,
|
|
141
142
|
require_glob,
|
|
@@ -150,69 +151,69 @@ import {
|
|
|
150
151
|
} from "./chunk-3GXB4ZRP.js";
|
|
151
152
|
import {
|
|
152
153
|
List
|
|
153
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-OSWJJWB4.js";
|
|
154
155
|
import {
|
|
155
156
|
Search
|
|
156
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-B2IEJ5WW.js";
|
|
157
158
|
import {
|
|
158
159
|
Upgrade
|
|
159
|
-
} from "./chunk-
|
|
160
|
-
import "./chunk-
|
|
160
|
+
} from "./chunk-SRBYTZSG.js";
|
|
161
|
+
import "./chunk-MPCIJZRR.js";
|
|
161
162
|
import {
|
|
162
163
|
Version
|
|
163
|
-
} from "./chunk-
|
|
164
|
-
import "./chunk-
|
|
165
|
-
import "./chunk-
|
|
164
|
+
} from "./chunk-IHFQ3F23.js";
|
|
165
|
+
import "./chunk-N4LQOIDN.js";
|
|
166
|
+
import "./chunk-W7ISQU7I.js";
|
|
166
167
|
import {
|
|
167
168
|
KitchenSinkAll
|
|
168
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-GCPVC7EU.js";
|
|
169
170
|
import {
|
|
170
171
|
KitchenSinkPrompts
|
|
171
|
-
} from "./chunk-
|
|
172
|
-
import "./chunk-
|
|
172
|
+
} from "./chunk-7AGM22KG.js";
|
|
173
|
+
import "./chunk-RBHXB7LY.js";
|
|
173
174
|
import {
|
|
174
175
|
KitchenSinkStatic
|
|
175
|
-
} from "./chunk-
|
|
176
|
-
import "./chunk-
|
|
176
|
+
} from "./chunk-VOPDBKMR.js";
|
|
177
|
+
import "./chunk-MOIB2YST.js";
|
|
177
178
|
import {
|
|
178
179
|
Generate
|
|
179
|
-
} from "./chunk-
|
|
180
|
-
import "./chunk-
|
|
180
|
+
} from "./chunk-QDLC5TZP.js";
|
|
181
|
+
import "./chunk-2UOPOSAQ.js";
|
|
181
182
|
import {
|
|
182
183
|
Logout
|
|
183
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-SFDHLWEI.js";
|
|
184
185
|
import {
|
|
185
186
|
ensureAuthenticatedAdmin,
|
|
186
187
|
ensureAuthenticatedAppManagementAndBusinessPlatform,
|
|
187
188
|
ensureAuthenticatedPartners,
|
|
188
189
|
ensureAuthenticatedStorefront,
|
|
189
190
|
ensureAuthenticatedThemes
|
|
190
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-CLFWIHUG.js";
|
|
191
192
|
import {
|
|
192
193
|
ClearCache,
|
|
193
194
|
globalFlags,
|
|
194
195
|
jsonFlag,
|
|
195
196
|
runCLI
|
|
196
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-IXOKLO2J.js";
|
|
197
198
|
import {
|
|
198
199
|
CommandFlags
|
|
199
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-TRPRYAWB.js";
|
|
200
201
|
import {
|
|
201
202
|
DocsGenerate
|
|
202
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-TOYQ6OGF.js";
|
|
203
204
|
import {
|
|
204
205
|
HelpCommand
|
|
205
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-MBYV3HFV.js";
|
|
206
207
|
import {
|
|
207
208
|
KitchenSinkAsync
|
|
208
|
-
} from "./chunk-
|
|
209
|
-
import "./chunk-
|
|
209
|
+
} from "./chunk-API6SOPE.js";
|
|
210
|
+
import "./chunk-LHLR2V5J.js";
|
|
210
211
|
import {
|
|
211
212
|
base_command_default,
|
|
212
213
|
decodeToml,
|
|
213
214
|
encodeToml,
|
|
214
215
|
loadEnvironment
|
|
215
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-UENXYFT3.js";
|
|
216
217
|
import {
|
|
217
218
|
require_byline,
|
|
218
219
|
require_end_of_stream,
|
|
@@ -220,7 +221,7 @@ import {
|
|
|
220
221
|
require_iserror,
|
|
221
222
|
require_pump,
|
|
222
223
|
require_stack_generator
|
|
223
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-YPVB6B34.js";
|
|
224
225
|
import {
|
|
225
226
|
require_once
|
|
226
227
|
} from "./chunk-SHWOPMLQ.js";
|
|
@@ -228,7 +229,7 @@ import {
|
|
|
228
229
|
fanoutHooks,
|
|
229
230
|
getListOfTunnelPlugins,
|
|
230
231
|
reportAnalyticsEvent
|
|
231
|
-
} from "./chunk-
|
|
232
|
+
} from "./chunk-M4TCGXII.js";
|
|
232
233
|
import {
|
|
233
234
|
adminFqdn,
|
|
234
235
|
appDevFqdn,
|
|
@@ -239,10 +240,10 @@ import {
|
|
|
239
240
|
normalizeStoreFqdn,
|
|
240
241
|
ok,
|
|
241
242
|
partnersFqdn
|
|
242
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-6HSVIAHC.js";
|
|
243
244
|
import {
|
|
244
245
|
showNotificationsIfNeeded
|
|
245
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-7E5ELMEP.js";
|
|
246
247
|
import {
|
|
247
248
|
ClientError,
|
|
248
249
|
FetchError,
|
|
@@ -264,11 +265,11 @@ import {
|
|
|
264
265
|
require_mime_types,
|
|
265
266
|
shopifyFetch,
|
|
266
267
|
z
|
|
267
|
-
} from "./chunk-
|
|
268
|
+
} from "./chunk-YJPCY2LS.js";
|
|
268
269
|
import "./chunk-25IMI7TH.js";
|
|
269
270
|
import {
|
|
270
271
|
CLI_KIT_VERSION
|
|
271
|
-
} from "./chunk-
|
|
272
|
+
} from "./chunk-EE5FOU6D.js";
|
|
272
273
|
import {
|
|
273
274
|
LocalStorage,
|
|
274
275
|
UnknownPackageManagerError,
|
|
@@ -292,7 +293,7 @@ import {
|
|
|
292
293
|
usesWorkspaces,
|
|
293
294
|
versionSatisfies,
|
|
294
295
|
writePackageJSON
|
|
295
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-YN4HBUI3.js";
|
|
296
297
|
import {
|
|
297
298
|
AbortController as AbortController2,
|
|
298
299
|
AbortError,
|
|
@@ -506,7 +507,7 @@ import {
|
|
|
506
507
|
username,
|
|
507
508
|
writeFile,
|
|
508
509
|
writeFileSync
|
|
509
|
-
} from "./chunk-
|
|
510
|
+
} from "./chunk-AE3MLJMV.js";
|
|
510
511
|
import {
|
|
511
512
|
require_semver
|
|
512
513
|
} from "./chunk-HMDWNGIV.js";
|
|
@@ -193625,7 +193626,7 @@ init_cjs_shims();
|
|
|
193625
193626
|
var import_core = __toESM(require_lib(), 1);
|
|
193626
193627
|
var themeFlags = {
|
|
193627
193628
|
path: import_core.Flags.string({
|
|
193628
|
-
description: "The path to
|
|
193629
|
+
description: "The path where you want to run the command. Defaults to the current working directory.",
|
|
193629
193630
|
env: "SHOPIFY_FLAG_PATH",
|
|
193630
193631
|
parse: async (input) => resolvePath(input),
|
|
193631
193632
|
default: async () => cwd(),
|
|
@@ -193903,7 +193904,7 @@ function assertThemeStoreExists(storage = themeLocalStorage()) {
|
|
|
193903
193904
|
function ensureThemeStore(flags) {
|
|
193904
193905
|
let store = flags.store || getThemeStore();
|
|
193905
193906
|
if (!store)
|
|
193906
|
-
throw new AbortError("A store is required", `Specify the store passing ${outputContent`${outputToken.genericShellCommand(`--${themeFlags.store.name}=
|
|
193907
|
+
throw new AbortError("A store is required", `Specify the store passing ${outputContent`${outputToken.genericShellCommand(`--${themeFlags.store.name}=example.myshopify.com`)}`.value} or set the ${outputContent`${outputToken.genericShellCommand(themeFlags.store.env)}`.value} environment variable.`);
|
|
193907
193908
|
return setThemeStore(store), store;
|
|
193908
193909
|
}
|
|
193909
193910
|
|
|
@@ -193945,33 +193946,53 @@ var ThemeCommand = class extends base_command_default {
|
|
|
193945
193946
|
environmentsFilename() {
|
|
193946
193947
|
return configurationFileName;
|
|
193947
193948
|
}
|
|
193948
|
-
async command(_flags, _session) {
|
|
193949
|
+
async command(_flags, _session, _context) {
|
|
193949
193950
|
}
|
|
193950
193951
|
async run(_opts) {
|
|
193951
193952
|
let klass = this.constructor, requiredFlags = klass.multiEnvironmentsFlags, { flags } = await this.parse(klass);
|
|
193952
|
-
if (!flags.environment) {
|
|
193953
|
+
if (!flags.environment?.length) {
|
|
193953
193954
|
let session = await this.ensureAuthenticated(flags);
|
|
193954
193955
|
await this.command(flags, session);
|
|
193955
193956
|
return;
|
|
193956
193957
|
}
|
|
193957
|
-
let
|
|
193958
|
+
let environments = Array.isArray(flags.environment) ? flags.environment : [flags.environment];
|
|
193959
|
+
if (environments.length === 1) {
|
|
193960
|
+
let session = await this.ensureAuthenticated(flags);
|
|
193961
|
+
await this.command(flags, session);
|
|
193962
|
+
return;
|
|
193963
|
+
}
|
|
193964
|
+
let sessions = {};
|
|
193958
193965
|
for (let environmentName of environments) {
|
|
193959
|
-
let environmentConfig = await loadEnvironment(environmentName, "shopify.theme.toml", {
|
|
193966
|
+
let environmentConfig = await loadEnvironment(environmentName, "shopify.theme.toml", {
|
|
193967
|
+
from: flags.path,
|
|
193968
|
+
silent: !0
|
|
193969
|
+
});
|
|
193960
193970
|
sessions[environmentName] = await this.ensureAuthenticated(environmentConfig);
|
|
193961
193971
|
}
|
|
193962
|
-
|
|
193963
|
-
|
|
193964
|
-
|
|
193965
|
-
|
|
193966
|
-
|
|
193967
|
-
|
|
193968
|
-
|
|
193969
|
-
|
|
193970
|
-
|
|
193971
|
-
|
|
193972
|
-
|
|
193973
|
-
|
|
193974
|
-
|
|
193972
|
+
let abortController = new AbortController2();
|
|
193973
|
+
await renderConcurrent({
|
|
193974
|
+
processes: environments.map((environment) => ({
|
|
193975
|
+
prefix: environment,
|
|
193976
|
+
action: async (stdout, stderr, _signal) => {
|
|
193977
|
+
let environmentConfig = await loadEnvironment(environment, "shopify.theme.toml", {
|
|
193978
|
+
from: flags.path,
|
|
193979
|
+
silent: !0
|
|
193980
|
+
}), environmentFlags = {
|
|
193981
|
+
...flags,
|
|
193982
|
+
...environmentConfig,
|
|
193983
|
+
environment: [environment]
|
|
193984
|
+
};
|
|
193985
|
+
if (!this.validConfig(environmentConfig, requiredFlags, environment))
|
|
193986
|
+
return;
|
|
193987
|
+
let session = sessions[environment];
|
|
193988
|
+
if (!session)
|
|
193989
|
+
throw new AbortError(`No session found for environment ${environment}`);
|
|
193990
|
+
await this.command(environmentFlags, session, { stdout, stderr });
|
|
193991
|
+
}
|
|
193992
|
+
})),
|
|
193993
|
+
abortSignal: abortController.signal,
|
|
193994
|
+
showTimestamps: !0
|
|
193995
|
+
});
|
|
193975
193996
|
}
|
|
193976
193997
|
async ensureAuthenticated(flags) {
|
|
193977
193998
|
let store = flags.store, password = flags.password;
|
|
@@ -195569,7 +195590,7 @@ async function getStorefrontSessionCookies(storeUrl, themeId, password, headers
|
|
|
195569
195590
|
let storefrontDigest = await enrichSessionWithStorefrontPassword(shopifyEssential, storeUrl, password, headers);
|
|
195570
195591
|
return cookieRecord.storefront_digest = storefrontDigest, cookieRecord;
|
|
195571
195592
|
}
|
|
195572
|
-
async function sessionEssentialCookie(storeUrl, themeId, headers) {
|
|
195593
|
+
async function sessionEssentialCookie(storeUrl, themeId, headers, retries = 1) {
|
|
195573
195594
|
let params = new URLSearchParams({
|
|
195574
195595
|
preview_theme_id: themeId,
|
|
195575
195596
|
_fd: "0",
|
|
@@ -195582,12 +195603,18 @@ async function sessionEssentialCookie(storeUrl, themeId, headers) {
|
|
|
195582
195603
|
...defaultHeaders()
|
|
195583
195604
|
}
|
|
195584
195605
|
}), setCookies = response.headers.raw()["set-cookie"] ?? [], shopifyEssential = getCookie(setCookies, "_shopify_essential");
|
|
195585
|
-
if (!shopifyEssential)
|
|
195586
|
-
|
|
195606
|
+
if (!shopifyEssential) {
|
|
195607
|
+
if (outputDebug(`Failed to obtain _shopify_essential cookie.
|
|
195587
195608
|
|
|
195588
195609
|
-Request ID: ${response.headers.get("x-request-id") ?? "unknown"}
|
|
195589
195610
|
|
|
195590
|
-
-Body: ${await response.text()}
|
|
195611
|
+
-Body: ${await response.text()}
|
|
195612
|
+
|
|
195613
|
+
-Status: ${response.status}
|
|
195614
|
+
`), retries > 3)
|
|
195615
|
+
throw new ShopifyEssentialError('Your development session could not be created because the "_shopify_essential" could not be defined. Please, check your internet connection.');
|
|
195616
|
+
return outputDebug("Retrying to obtain the _shopify_essential cookie..."), await sleep(retries), sessionEssentialCookie(storeUrl, themeId, headers, retries + 1);
|
|
195617
|
+
}
|
|
195591
195618
|
return shopifyEssential;
|
|
195592
195619
|
}
|
|
195593
195620
|
async function enrichSessionWithStorefrontPassword(shopifyEssential, storeUrl, password, headers) {
|
|
@@ -197145,9 +197172,7 @@ Console.descriptionWithMarkdown = `Starts the Shopify Liquid REPL (read-eval-pri
|
|
|
197145
197172
|
Console.description = _a2.descriptionWithoutMarkdown();
|
|
197146
197173
|
Console.flags = {
|
|
197147
197174
|
...globalFlags,
|
|
197148
|
-
|
|
197149
|
-
password: themeFlags.password,
|
|
197150
|
-
environment: themeFlags.environment,
|
|
197175
|
+
...themeFlags,
|
|
197151
197176
|
url: import_core3.Flags.string({
|
|
197152
197177
|
description: "The url to be used as context",
|
|
197153
197178
|
env: "SHOPIFY_FLAG_URL",
|
|
@@ -197378,7 +197403,7 @@ Delete.description = _a3.descriptionWithoutMarkdown();
|
|
|
197378
197403
|
Delete.strict = !1;
|
|
197379
197404
|
Delete.flags = {
|
|
197380
197405
|
...globalFlags,
|
|
197381
|
-
|
|
197406
|
+
...themeFlags,
|
|
197382
197407
|
development: import_core4.Flags.boolean({
|
|
197383
197408
|
char: "d",
|
|
197384
197409
|
description: "Delete your development theme.",
|
|
@@ -197399,9 +197424,7 @@ Delete.flags = {
|
|
|
197399
197424
|
description: "Theme ID or name of the remote theme.",
|
|
197400
197425
|
env: "SHOPIFY_FLAG_THEME_ID",
|
|
197401
197426
|
multiple: !0
|
|
197402
|
-
})
|
|
197403
|
-
store: themeFlags.store,
|
|
197404
|
-
environment: themeFlags.environment
|
|
197427
|
+
})
|
|
197405
197428
|
};
|
|
197406
197429
|
var delete_default = Delete;
|
|
197407
197430
|
|
|
@@ -200082,7 +200105,7 @@ You can run this command only in a directory that matches the [default Shopify t
|
|
|
200082
200105
|
Dev.description = _a4.descriptionWithoutMarkdown();
|
|
200083
200106
|
Dev.flags = {
|
|
200084
200107
|
...globalFlags,
|
|
200085
|
-
|
|
200108
|
+
...themeFlags,
|
|
200086
200109
|
host: import_core5.Flags.string({
|
|
200087
200110
|
description: "Set which network interface the web server listens on. The default value is 127.0.0.1.",
|
|
200088
200111
|
env: "SHOPIFY_FLAG_HOST"
|
|
@@ -200118,7 +200141,6 @@ Dev.flags = {
|
|
|
200118
200141
|
description: "Local port to serve theme preview from.",
|
|
200119
200142
|
env: "SHOPIFY_FLAG_PORT"
|
|
200120
200143
|
}),
|
|
200121
|
-
store: themeFlags.store,
|
|
200122
200144
|
theme: import_core5.Flags.string({
|
|
200123
200145
|
char: "t",
|
|
200124
200146
|
description: "Theme ID or name of the remote theme.",
|
|
@@ -200147,8 +200169,6 @@ Dev.flags = {
|
|
|
200147
200169
|
description: "Proceed without confirmation, if current directory does not seem to be theme directory.",
|
|
200148
200170
|
env: "SHOPIFY_FLAG_FORCE"
|
|
200149
200171
|
}),
|
|
200150
|
-
password: themeFlags.password,
|
|
200151
|
-
environment: themeFlags.environment,
|
|
200152
200172
|
notify: import_core5.Flags.string({
|
|
200153
200173
|
description: "The file path or URL. The file path is to a file that you want updated on idle. The URL path is where you want a webhook posted to report on file changes.",
|
|
200154
200174
|
env: "SHOPIFY_FLAG_NOTIFY"
|
|
@@ -200265,9 +200285,7 @@ Info.description = "Displays information about your theme environment, including
|
|
|
200265
200285
|
Info.flags = {
|
|
200266
200286
|
...globalFlags,
|
|
200267
200287
|
...jsonFlag,
|
|
200268
|
-
|
|
200269
|
-
password: themeFlags.password,
|
|
200270
|
-
environment: themeFlags.environment,
|
|
200288
|
+
...themeFlags,
|
|
200271
200289
|
development: import_core6.Flags.boolean({
|
|
200272
200290
|
char: "d",
|
|
200273
200291
|
description: "Retrieve info from your development theme.",
|
|
@@ -200301,8 +200319,9 @@ async function downloadRepository(repoUrl, destination, latestTag) {
|
|
|
200301
200319
|
await downloadGitRepository({
|
|
200302
200320
|
repoUrl,
|
|
200303
200321
|
destination,
|
|
200304
|
-
latestTag
|
|
200305
|
-
|
|
200322
|
+
latestTag,
|
|
200323
|
+
shallow: !0
|
|
200324
|
+
}), await removeGitRemote(destination);
|
|
200306
200325
|
}
|
|
200307
200326
|
}
|
|
200308
200327
|
]);
|
|
@@ -200472,8 +200491,7 @@ List2.description = "Lists the themes in your store, along with their IDs and st
|
|
|
200472
200491
|
List2.flags = {
|
|
200473
200492
|
...globalFlags,
|
|
200474
200493
|
...jsonFlag,
|
|
200475
|
-
|
|
200476
|
-
store: themeFlags.store,
|
|
200494
|
+
...themeFlags,
|
|
200477
200495
|
role: import_core8.Flags.custom({
|
|
200478
200496
|
description: "Only list themes with the given role.",
|
|
200479
200497
|
options: ALLOWED_ROLES,
|
|
@@ -200486,8 +200504,7 @@ List2.flags = {
|
|
|
200486
200504
|
id: import_core8.Flags.integer({
|
|
200487
200505
|
description: "Only list theme with the given ID.",
|
|
200488
200506
|
env: "SHOPIFY_FLAG_ID"
|
|
200489
|
-
})
|
|
200490
|
-
environment: themeFlags.environment
|
|
200507
|
+
})
|
|
200491
200508
|
};
|
|
200492
200509
|
List2.multiEnvironmentsFlags = ["store", "password"];
|
|
200493
200510
|
var list_default = List2;
|
|
@@ -200543,7 +200560,7 @@ Open.descriptionWithMarkdown = `Returns links that let you preview the specified
|
|
|
200543
200560
|
Open.description = _a8.descriptionWithoutMarkdown();
|
|
200544
200561
|
Open.flags = {
|
|
200545
200562
|
...globalFlags,
|
|
200546
|
-
|
|
200563
|
+
...themeFlags,
|
|
200547
200564
|
development: import_core9.Flags.boolean({
|
|
200548
200565
|
char: "d",
|
|
200549
200566
|
description: "Open your development theme.",
|
|
@@ -200563,9 +200580,7 @@ Open.flags = {
|
|
|
200563
200580
|
char: "t",
|
|
200564
200581
|
description: "Theme ID or name of the remote theme.",
|
|
200565
200582
|
env: "SHOPIFY_FLAG_THEME_ID"
|
|
200566
|
-
})
|
|
200567
|
-
store: themeFlags.store,
|
|
200568
|
-
environment: themeFlags.environment
|
|
200583
|
+
})
|
|
200569
200584
|
};
|
|
200570
200585
|
var open_default = Open;
|
|
200571
200586
|
|
|
@@ -200644,6 +200659,7 @@ var import_theme_check_node4 = __toESM(require_dist6(), 1), themeFilesPattern =
|
|
|
200644
200659
|
"blocks/**",
|
|
200645
200660
|
"config/**",
|
|
200646
200661
|
"layout/**",
|
|
200662
|
+
"listings/**/*",
|
|
200647
200663
|
"locales/**",
|
|
200648
200664
|
"sections/**",
|
|
200649
200665
|
"snippets/**",
|
|
@@ -200691,6 +200707,8 @@ Package.descriptionWithMarkdown = `Packages your local theme files into a ZIP fi
|
|
|
200691
200707
|
|
|
200692
200708
|
Only folders that match the [default Shopify theme folder structure](https://shopify.dev/docs/storefronts/themes/tools/cli#directory-structure) are included in the package.
|
|
200693
200709
|
|
|
200710
|
+
The package includes the \`listings\` directory if present (required for multi-preset themes per [Theme Store requirements](https://shopify.dev/docs/storefronts/themes/store/requirements#adding-presets-to-your-theme-zip-submission)).
|
|
200711
|
+
|
|
200694
200712
|
The ZIP file uses the name \`theme_name-theme_version.zip\`, based on parameters in your [settings_schema.json](https://shopify.dev/docs/storefronts/themes/architecture/config/settings-schema-json) file.`;
|
|
200695
200713
|
Package.description = _a9.descriptionWithoutMarkdown();
|
|
200696
200714
|
Package.flags = {
|
|
@@ -200773,8 +200791,7 @@ Profile.descriptionWithMarkdown = `Profile the Shopify Liquid on a given page.
|
|
|
200773
200791
|
Profile.description = _a10.descriptionWithoutMarkdown();
|
|
200774
200792
|
Profile.flags = {
|
|
200775
200793
|
...globalFlags,
|
|
200776
|
-
|
|
200777
|
-
password: themeFlags.password,
|
|
200794
|
+
...themeFlags,
|
|
200778
200795
|
theme: import_core10.Flags.string({
|
|
200779
200796
|
char: "t",
|
|
200780
200797
|
description: "Theme ID or name of the remote theme.",
|
|
@@ -200789,7 +200806,6 @@ Profile.flags = {
|
|
|
200789
200806
|
description: "The password for storefronts with password protection.",
|
|
200790
200807
|
env: "SHOPIFY_FLAG_STORE_PASSWORD"
|
|
200791
200808
|
}),
|
|
200792
|
-
environment: themeFlags.environment,
|
|
200793
200809
|
...jsonFlag
|
|
200794
200810
|
};
|
|
200795
200811
|
var profile_default = Profile;
|
|
@@ -200862,7 +200878,7 @@ Publish.description = _a11.descriptionWithoutMarkdown();
|
|
|
200862
200878
|
Publish.strict = !1;
|
|
200863
200879
|
Publish.flags = {
|
|
200864
200880
|
...globalFlags,
|
|
200865
|
-
|
|
200881
|
+
...themeFlags,
|
|
200866
200882
|
force: import_core11.Flags.boolean({
|
|
200867
200883
|
char: "f",
|
|
200868
200884
|
description: "Skip confirmation.",
|
|
@@ -200872,9 +200888,7 @@ Publish.flags = {
|
|
|
200872
200888
|
char: "t",
|
|
200873
200889
|
description: "Theme ID or name of the remote theme.",
|
|
200874
200890
|
env: "SHOPIFY_FLAG_THEME_ID"
|
|
200875
|
-
})
|
|
200876
|
-
store: themeFlags.store,
|
|
200877
|
-
environment: themeFlags.environment
|
|
200891
|
+
})
|
|
200878
200892
|
};
|
|
200879
200893
|
var publish_default = Publish;
|
|
200880
200894
|
|
|
@@ -201375,9 +201389,7 @@ Rename.descriptionWithMarkdown = `Renames a theme in your store.
|
|
|
201375
201389
|
Rename.description = _a15.descriptionWithoutMarkdown();
|
|
201376
201390
|
Rename.flags = {
|
|
201377
201391
|
...globalFlags,
|
|
201378
|
-
|
|
201379
|
-
password: themeFlags.password,
|
|
201380
|
-
environment: themeFlags.environment,
|
|
201392
|
+
...themeFlags,
|
|
201381
201393
|
name: import_core15.Flags.string({
|
|
201382
201394
|
char: "n",
|
|
201383
201395
|
description: "The new name for the theme.",
|
|
@@ -205151,10 +205163,10 @@ async function buildAssetsUrl(port, root) {
|
|
|
205151
205163
|
async function startMiniOxygen(options, useNodeRuntime = !1) {
|
|
205152
205164
|
if (useNodeRuntime) {
|
|
205153
205165
|
process.env.MINIFLARE_SUBREQUEST_LIMIT = 100;
|
|
205154
|
-
let { startNodeServer } = await import("./node-
|
|
205166
|
+
let { startNodeServer } = await import("./node-MZOMVUI6.js");
|
|
205155
205167
|
return startNodeServer(options);
|
|
205156
205168
|
}
|
|
205157
|
-
let { startWorkerdServer } = await import("./workerd-
|
|
205169
|
+
let { startWorkerdServer } = await import("./workerd-JR3RQRVU.js");
|
|
205158
205170
|
return startWorkerdServer(options);
|
|
205159
205171
|
}
|
|
205160
205172
|
|
|
@@ -208090,7 +208102,6 @@ var environmentVariableNames = {
|
|
|
208090
208102
|
enableAppLogPolling: "SHOPIFY_CLI_ENABLE_APP_LOG_POLLING",
|
|
208091
208103
|
templatesJsonPath: "SHOPIFY_CLI_APP_TEMPLATES_JSON_PATH",
|
|
208092
208104
|
mkcertBinaryPath: "SHOPIFY_CLI_MKCERT_BINARY",
|
|
208093
|
-
enableUnsupportedConfigPropertyChecks: "SHOPIFY_CLI_ENABLE_UNSUPPORTED_CONFIG_PROPERTY_CHECKS",
|
|
208094
208105
|
disableUnsupportedConfigPropertyChecks: "SHOPIFY_CLI_DISABLE_UNSUPPORTED_CONFIG_PROPERTY_CHECKS",
|
|
208095
208106
|
disableMinificationOnDev: "SHOPIFY_CLI_DISABLE_MINIFICATION_ON_DEV",
|
|
208096
208107
|
disableWasmTomlPatch: "SHOPIFY_CLI_DISABLE_WASM_TOML_PATCH"
|
|
@@ -208439,14 +208450,6 @@ async function showApiKeyDeprecationWarning() {
|
|
|
208439
208450
|
});
|
|
208440
208451
|
}
|
|
208441
208452
|
|
|
208442
|
-
// ../app/dist/cli/utilities/app-command.js
|
|
208443
|
-
init_cjs_shims();
|
|
208444
|
-
var AppCommand = class extends base_command_default {
|
|
208445
|
-
environmentsFilename() {
|
|
208446
|
-
return configurationFileNames.appEnvironments;
|
|
208447
|
-
}
|
|
208448
|
-
};
|
|
208449
|
-
|
|
208450
208453
|
// ../app/dist/cli/services/app-context.js
|
|
208451
208454
|
init_cjs_shims();
|
|
208452
208455
|
|
|
@@ -209068,6 +209071,7 @@ var WebConfigurationAuthCallbackPathSchema = z.preprocess(ensurePathStartsWithSl
|
|
|
209068
209071
|
await patchAppHiddenConfigFile(path4, String(this.configuration.client_id), this.hiddenConfig);
|
|
209069
209072
|
}
|
|
209070
209073
|
async preDeployValidation() {
|
|
209074
|
+
this.validateWebhookLegacyFlowCompatibility();
|
|
209071
209075
|
let functionExtensionsWithUiHandle = this.allExtensions.filter((ext) => ext.isFunctionExtension && ext.configuration.ui?.handle);
|
|
209072
209076
|
if (functionExtensionsWithUiHandle.length > 0) {
|
|
209073
209077
|
let errors = validateFunctionExtensionsWithUiHandle(functionExtensionsWithUiHandle, this.allExtensions);
|
|
@@ -209136,6 +209140,25 @@ var WebConfigurationAuthCallbackPathSchema = z.preprocess(ensurePathStartsWithSl
|
|
|
209136
209140
|
prefix: devApplicationURLs.appProxy.proxySubPathPrefix
|
|
209137
209141
|
}), this.configuration.auth?.redirect_urls && (this.configuration.auth.redirect_urls = devApplicationURLs.redirectUrlWhitelist));
|
|
209138
209142
|
}
|
|
209143
|
+
/**
|
|
209144
|
+
* Validates that app-specific webhooks are not used with legacy install flow.
|
|
209145
|
+
* This incompatibility exists because app-specific webhooks require declarative
|
|
209146
|
+
* scopes in the Partner Dashboard, which aren't synced when using legacy flow.
|
|
209147
|
+
* @throws When app-specific webhooks are used with legacy install flow
|
|
209148
|
+
*/
|
|
209149
|
+
validateWebhookLegacyFlowCompatibility() {
|
|
209150
|
+
if (!isCurrentAppSchema(this.configuration))
|
|
209151
|
+
return;
|
|
209152
|
+
let hasAppSpecificWebhooks = (this.configuration.webhooks?.subscriptions?.length ?? 0) > 0, usesLegacyInstallFlow = this.configuration.access_scopes?.use_legacy_install_flow === !0;
|
|
209153
|
+
if (hasAppSpecificWebhooks && usesLegacyInstallFlow)
|
|
209154
|
+
throw new AbortError("App-specific webhook subscriptions are not supported when use_legacy_install_flow is enabled.", `To use app-specific webhooks, you need to:
|
|
209155
|
+
1. Remove 'use_legacy_install_flow = true' from your configuration
|
|
209156
|
+
2. Run 'shopify app deploy' to sync your scopes with the Partner Dashboard
|
|
209157
|
+
|
|
209158
|
+
Alternatively, continue using shop-specific webhooks with the legacy install flow.
|
|
209159
|
+
|
|
209160
|
+
Learn more: https://shopify.dev/docs/apps/build/authentication-authorization/app-installation`);
|
|
209161
|
+
}
|
|
209139
209162
|
};
|
|
209140
209163
|
function validateFunctionExtensionsWithUiHandle(functionExtensionsWithUiHandle, allExtensions) {
|
|
209141
209164
|
let errors = [];
|
|
@@ -210824,7 +210847,7 @@ var CUSTOM_CREDIT_CARD_TARGET = "payments.custom-credit-card.render", MAX_CHECKO
|
|
|
210824
210847
|
multiple_capture: z.boolean(),
|
|
210825
210848
|
checkout_hosted_fields: z.array(z.string()).optional(),
|
|
210826
210849
|
ui_extension_handle: z.string().optional(),
|
|
210827
|
-
encryption_certificate_fingerprint: z.string()
|
|
210850
|
+
encryption_certificate_fingerprint: z.string(),
|
|
210828
210851
|
checkout_payment_method_fields: z.array(z.object({
|
|
210829
210852
|
type: z.union([z.literal("string"), z.literal("number"), z.literal("boolean")]),
|
|
210830
210853
|
required: z.boolean(),
|
|
@@ -210893,7 +210916,7 @@ var CREDIT_CARD_TARGET = "payments.credit-card.render", MAX_CHECKOUT_PAYMENT_MET
|
|
|
210893
210916
|
required_error: "supports_moto is required",
|
|
210894
210917
|
invalid_type_error: "Value must be Boolean"
|
|
210895
210918
|
}),
|
|
210896
|
-
encryption_certificate_fingerprint: z.string()
|
|
210919
|
+
encryption_certificate_fingerprint: z.string(),
|
|
210897
210920
|
checkout_payment_method_fields: z.array(z.object({
|
|
210898
210921
|
type: z.union([z.literal("string"), z.literal("number"), z.literal("boolean")]),
|
|
210899
210922
|
required: z.boolean(),
|
|
@@ -211690,12 +211713,7 @@ function parseConfigurationObjectAgainstSpecification(spec2, filepath, configura
|
|
|
211690
211713
|
}
|
|
211691
211714
|
}
|
|
211692
211715
|
async function shouldFailIfUnsupportedConfigProperty() {
|
|
211693
|
-
let
|
|
211694
|
-
if (isTruthy(enableUnsupportedConfigPropertyChecks))
|
|
211695
|
-
return !0;
|
|
211696
|
-
if (!await isShopify())
|
|
211697
|
-
return !1;
|
|
211698
|
-
let disableUnsupportedConfigPropertyChecks = env4[environmentVariableNames.disableUnsupportedConfigPropertyChecks];
|
|
211716
|
+
let disableUnsupportedConfigPropertyChecks = getEnvironmentVariables()[environmentVariableNames.disableUnsupportedConfigPropertyChecks];
|
|
211699
211717
|
return !isTruthy(disableUnsupportedConfigPropertyChecks);
|
|
211700
211718
|
}
|
|
211701
211719
|
var AppErrors = class {
|
|
@@ -213450,14 +213468,22 @@ var PartnersClient = class {
|
|
|
213450
213468
|
}));
|
|
213451
213469
|
}
|
|
213452
213470
|
async templateSpecifications({ apiKey }) {
|
|
213453
|
-
let variables = { apiKey }
|
|
213454
|
-
return (await this.request(RemoteTemplateSpecificationsQuery, variables)).templateSpecifications.map((template) => {
|
|
213471
|
+
let variables = { apiKey }, templates2 = (await this.request(RemoteTemplateSpecificationsQuery, variables)).templateSpecifications.map((template) => {
|
|
213455
213472
|
let { types, ...rest } = template;
|
|
213456
213473
|
return {
|
|
213457
213474
|
...rest,
|
|
213458
213475
|
...types[0]
|
|
213459
213476
|
};
|
|
213460
|
-
})
|
|
213477
|
+
}), counter = 0, templatesWithPriority = templates2.map((template) => ({
|
|
213478
|
+
...template,
|
|
213479
|
+
sortPriority: template.sortPriority ?? counter++
|
|
213480
|
+
})), groupOrder = [];
|
|
213481
|
+
for (let template of templatesWithPriority)
|
|
213482
|
+
template.group && !groupOrder.includes(template.group) && groupOrder.push(template.group);
|
|
213483
|
+
return {
|
|
213484
|
+
templates: templatesWithPriority,
|
|
213485
|
+
groupOrder
|
|
213486
|
+
};
|
|
213461
213487
|
}
|
|
213462
213488
|
async createApp(org, options) {
|
|
213463
213489
|
let variables = getAppVars(org, options.name, options.isLaunchable, options.scopesArray), result = await this.request(CreateAppQuery, variables);
|
|
@@ -216036,8 +216062,13 @@ var TEMPLATE_JSON_URL = "https://cdn.shopify.com/static/cli/extensions/templates
|
|
|
216036
216062
|
"This likely means a problem with your internet connection."
|
|
216037
216063
|
]);
|
|
216038
216064
|
}
|
|
216039
|
-
let counter = 0;
|
|
216040
|
-
|
|
216065
|
+
let counter = 0, filteredTemplates = (await allowedTemplates(templates2, async (betaFlags) => this.organizationBetaFlags(organizationId, betaFlags))).map((template) => ({ ...template, sortPriority: counter++ })), groupOrder = [];
|
|
216066
|
+
for (let template of templates2)
|
|
216067
|
+
template.group && !groupOrder.includes(template.group) && groupOrder.push(template.group);
|
|
216068
|
+
return {
|
|
216069
|
+
templates: filteredTemplates,
|
|
216070
|
+
groupOrder
|
|
216071
|
+
};
|
|
216041
216072
|
}
|
|
216042
216073
|
async createApp(org, options) {
|
|
216043
216074
|
let apiVersion = (await this.apiVersions(org.id)).publicApiVersions.filter((version) => version !== "unstable").sort().at(-1) ?? "unstable", variables = createAppVars(options, apiVersion), mutation = CreateApp, result = await this.appManagementRequest({
|
|
@@ -218174,10 +218205,34 @@ async function logMetadata(app, organization, resetUsed) {
|
|
|
218174
218205
|
cmd_app_reset_used: resetUsed
|
|
218175
218206
|
}));
|
|
218176
218207
|
}
|
|
218208
|
+
async function localAppContext({ directory, userProvidedConfigName, unsafeReportMode = !1 }) {
|
|
218209
|
+
let specifications = await loadLocalExtensionsSpecifications();
|
|
218210
|
+
return loadApp({
|
|
218211
|
+
directory,
|
|
218212
|
+
userProvidedConfigName,
|
|
218213
|
+
specifications,
|
|
218214
|
+
mode: unsafeReportMode ? "report" : "strict"
|
|
218215
|
+
});
|
|
218216
|
+
}
|
|
218217
|
+
|
|
218218
|
+
// ../app/dist/cli/utilities/app-unlinked-command.js
|
|
218219
|
+
init_cjs_shims();
|
|
218220
|
+
|
|
218221
|
+
// ../app/dist/cli/utilities/app-command.js
|
|
218222
|
+
init_cjs_shims();
|
|
218223
|
+
var AppCommand = class extends base_command_default {
|
|
218224
|
+
environmentsFilename() {
|
|
218225
|
+
return configurationFileNames.appEnvironments;
|
|
218226
|
+
}
|
|
218227
|
+
};
|
|
218228
|
+
|
|
218229
|
+
// ../app/dist/cli/utilities/app-unlinked-command.js
|
|
218230
|
+
var AppUnlinkedCommand = class extends AppCommand {
|
|
218231
|
+
};
|
|
218177
218232
|
|
|
218178
218233
|
// ../app/dist/cli/commands/app/build.js
|
|
218179
218234
|
var import_core30 = __toESM(require_lib(), 1);
|
|
218180
|
-
var _a17, Build2 = class extends
|
|
218235
|
+
var _a17, Build2 = class extends AppUnlinkedCommand {
|
|
218181
218236
|
async run() {
|
|
218182
218237
|
let { flags } = await this.parse(_a17);
|
|
218183
218238
|
flags["api-key"] && await showApiKeyDeprecationWarning();
|
|
@@ -218185,10 +218240,8 @@ var _a17, Build2 = class extends AppCommand {
|
|
|
218185
218240
|
await addPublicMetadata(() => ({
|
|
218186
218241
|
cmd_app_dependency_installation_skipped: flags["skip-dependencies-installation"]
|
|
218187
218242
|
}));
|
|
218188
|
-
let
|
|
218243
|
+
let app = await localAppContext({
|
|
218189
218244
|
directory: flags.path,
|
|
218190
|
-
clientId: apiKey,
|
|
218191
|
-
forceRelink: flags.reset,
|
|
218192
218245
|
userProvidedConfigName: flags.config
|
|
218193
218246
|
});
|
|
218194
218247
|
return await build_default({ app, skipDependenciesInstallation: flags["skip-dependencies-installation"], apiKey }), { app };
|
|
@@ -218218,7 +218271,14 @@ var build_default2 = Build2;
|
|
|
218218
218271
|
|
|
218219
218272
|
// ../app/dist/cli/commands/app/config/link.js
|
|
218220
218273
|
init_cjs_shims();
|
|
218221
|
-
|
|
218274
|
+
|
|
218275
|
+
// ../app/dist/cli/utilities/app-linked-command.js
|
|
218276
|
+
init_cjs_shims();
|
|
218277
|
+
var AppLinkedCommand = class extends AppCommand {
|
|
218278
|
+
};
|
|
218279
|
+
|
|
218280
|
+
// ../app/dist/cli/commands/app/config/link.js
|
|
218281
|
+
var _a18, ConfigLink = class extends AppLinkedCommand {
|
|
218222
218282
|
async run() {
|
|
218223
218283
|
let { flags } = await this.parse(_a18), options = {
|
|
218224
218284
|
directory: flags.path,
|
|
@@ -218249,7 +218309,7 @@ var link_default = ConfigLink;
|
|
|
218249
218309
|
// ../app/dist/cli/commands/app/config/use.js
|
|
218250
218310
|
init_cjs_shims();
|
|
218251
218311
|
var import_core31 = __toESM(require_lib(), 1);
|
|
218252
|
-
var _a19, { config, ...appFlagsWithoutConfig } = appFlags, ConfigUse = class extends
|
|
218312
|
+
var _a19, { config, ...appFlagsWithoutConfig } = appFlags, ConfigUse = class extends AppLinkedCommand {
|
|
218253
218313
|
async run() {
|
|
218254
218314
|
let { flags, args } = await this.parse(_a19);
|
|
218255
218315
|
await checkFolderIsValidApp(flags.path), await use2({ directory: flags.path, configName: args.config, reset: flags.reset });
|
|
@@ -218671,7 +218731,7 @@ var AppEventWatcher = class extends EventEmitter4 {
|
|
|
218671
218731
|
};
|
|
218672
218732
|
|
|
218673
218733
|
// ../app/dist/cli/commands/app/demo/watcher.js
|
|
218674
|
-
var DemoWatcher = class _DemoWatcher extends
|
|
218734
|
+
var DemoWatcher = class _DemoWatcher extends AppLinkedCommand {
|
|
218675
218735
|
async run() {
|
|
218676
218736
|
let { flags } = await this.parse(_DemoWatcher), { app } = await linkedAppContext({
|
|
218677
218737
|
directory: flags.path,
|
|
@@ -218973,7 +219033,7 @@ function validateMessage(message) {
|
|
|
218973
219033
|
|
|
218974
219034
|
// ../app/dist/cli/commands/app/deploy.js
|
|
218975
219035
|
var import_core32 = __toESM(require_lib(), 1);
|
|
218976
|
-
var _a20, Deploy2 = class extends
|
|
219036
|
+
var _a20, Deploy2 = class extends AppLinkedCommand {
|
|
218977
219037
|
async run() {
|
|
218978
219038
|
let { flags } = await this.parse(_a20);
|
|
218979
219039
|
await metadata_default.addPublicMetadata(() => ({
|
|
@@ -219632,7 +219692,7 @@ init_cjs_shims();
|
|
|
219632
219692
|
init_cjs_shims();
|
|
219633
219693
|
var EventType2;
|
|
219634
219694
|
(function(EventType3) {
|
|
219635
|
-
EventType3.Update = "update", EventType3.Dispatch = "dispatch";
|
|
219695
|
+
EventType3.Update = "update", EventType3.Dispatch = "dispatch", EventType3.Log = "log";
|
|
219636
219696
|
})(EventType2 || (EventType2 = {}));
|
|
219637
219697
|
|
|
219638
219698
|
// ../app/dist/cli/services/dev/extension/websocket/handlers.js
|
|
@@ -219652,12 +219712,49 @@ function getConnectionDoneHandler(wss, options) {
|
|
|
219652
219712
|
outputDebug(outputContent`Sending connected payload: ${outputToken.json(connectedPayload)}`, options.stdout), ws.send(JSON.stringify(connectedPayload)), ws.on("message", getOnMessageHandler(wss, options));
|
|
219653
219713
|
};
|
|
219654
219714
|
}
|
|
219715
|
+
function parseLogMessage(message) {
|
|
219716
|
+
try {
|
|
219717
|
+
let parsed = JSON.parse(message);
|
|
219718
|
+
if (!Array.isArray(parsed))
|
|
219719
|
+
return message;
|
|
219720
|
+
let formatted = parsed.map((arg) => typeof arg == "object" && arg !== null ? outputToken.json(arg).output() : String(arg)).join(" ");
|
|
219721
|
+
return outputContent`${formatted}`.value;
|
|
219722
|
+
} catch (error) {
|
|
219723
|
+
if (error instanceof SyntaxError)
|
|
219724
|
+
return message;
|
|
219725
|
+
throw error;
|
|
219726
|
+
}
|
|
219727
|
+
}
|
|
219728
|
+
var consoleTypeColors = {
|
|
219729
|
+
debug: (text) => outputToken.gray(text),
|
|
219730
|
+
warn: (text) => outputToken.yellow(text),
|
|
219731
|
+
error: (text) => outputToken.errorText(text)
|
|
219732
|
+
};
|
|
219733
|
+
function getOutput({ type, message }) {
|
|
219734
|
+
let formattedMessage = parseLogMessage(message);
|
|
219735
|
+
switch (type) {
|
|
219736
|
+
case "debug":
|
|
219737
|
+
case "warn":
|
|
219738
|
+
case "error":
|
|
219739
|
+
return outputContent`${consoleTypeColors[type](type.toUpperCase())}: ${formattedMessage}`.value;
|
|
219740
|
+
case "log":
|
|
219741
|
+
case "info":
|
|
219742
|
+
return formattedMessage;
|
|
219743
|
+
default:
|
|
219744
|
+
return `${type.toUpperCase()}: ${formattedMessage}`;
|
|
219745
|
+
}
|
|
219746
|
+
}
|
|
219747
|
+
function handleLogEvent(eventData, options) {
|
|
219748
|
+
useConcurrentOutputContext({ outputPrefix: eventData.extensionName, stripAnsi: !1 }, () => {
|
|
219749
|
+
options.stdout.write(getOutput(eventData));
|
|
219750
|
+
});
|
|
219751
|
+
}
|
|
219655
219752
|
function getOnMessageHandler(wss, options) {
|
|
219656
219753
|
return (data) => {
|
|
219657
219754
|
let jsonData = JSON.parse(data.toString()), { event: eventType, data: eventData } = jsonData;
|
|
219658
219755
|
if (outputDebug(outputContent`Received websocket message with event type ${eventType} and data:
|
|
219659
219756
|
${outputToken.json(eventData)}
|
|
219660
|
-
`, options.stdout), eventType ===
|
|
219757
|
+
`, options.stdout), eventType === EventType2.Update) {
|
|
219661
219758
|
let payloadStoreApiKey = options.payloadStore.getRawPayload().app.apiKey, eventAppApiKey = eventData.app?.apiKey;
|
|
219662
219759
|
if (eventData.app) {
|
|
219663
219760
|
if (payloadStoreApiKey !== eventAppApiKey)
|
|
@@ -219665,10 +219762,10 @@ ${outputToken.json(eventData)}
|
|
|
219665
219762
|
options.payloadStore.updateApp(eventData.app);
|
|
219666
219763
|
}
|
|
219667
219764
|
eventData.extensions && options.payloadStore.updateExtensions(eventData.extensions);
|
|
219668
|
-
} else if (eventType ===
|
|
219765
|
+
} else if (eventType === EventType2.Dispatch) {
|
|
219669
219766
|
let outGoingMessage = getOutgoingDispatchMessage(jsonData, options);
|
|
219670
219767
|
notifyClients(wss, outGoingMessage, options);
|
|
219671
|
-
}
|
|
219768
|
+
} else eventType === EventType2.Log && handleLogEvent(eventData, options);
|
|
219672
219769
|
};
|
|
219673
219770
|
}
|
|
219674
219771
|
function getPayloadUpdateHandler(wss, options) {
|
|
@@ -223446,7 +223543,7 @@ async function getTunnelMode({ useLocalhost, localhostPort, tunnelUrl }) {
|
|
|
223446
223543
|
|
|
223447
223544
|
// ../app/dist/cli/commands/app/dev.js
|
|
223448
223545
|
var import_core33 = __toESM(require_lib(), 1);
|
|
223449
|
-
var _a21, Dev4 = class extends
|
|
223546
|
+
var _a21, Dev4 = class extends AppLinkedCommand {
|
|
223450
223547
|
static analyticsStopCommand() {
|
|
223451
223548
|
return "app dev stop";
|
|
223452
223549
|
}
|
|
@@ -224056,7 +224153,7 @@ function renderAppLogsConfigInfo(appName, storeFqdn, storeFqdns, configFile, org
|
|
|
224056
224153
|
|
|
224057
224154
|
// ../app/dist/cli/commands/app/logs.js
|
|
224058
224155
|
var import_core34 = __toESM(require_lib(), 1);
|
|
224059
|
-
var _a22, Logs2 = class extends
|
|
224156
|
+
var _a22, Logs2 = class extends AppLinkedCommand {
|
|
224060
224157
|
async run() {
|
|
224061
224158
|
let { flags } = await this.parse(_a22), apiKey = flags["client-id"] ?? flags["api-key"];
|
|
224062
224159
|
await checkFolderIsValidApp(flags.path);
|
|
@@ -224129,7 +224226,7 @@ function sources(app) {
|
|
|
224129
224226
|
}
|
|
224130
224227
|
|
|
224131
224228
|
// ../app/dist/cli/commands/app/app-logs/sources.js
|
|
224132
|
-
var _a23, Sources = class extends
|
|
224229
|
+
var _a23, Sources = class extends AppLinkedCommand {
|
|
224133
224230
|
async run() {
|
|
224134
224231
|
let { flags } = await this.parse(_a23), { app } = await linkedAppContext({
|
|
224135
224232
|
directory: flags.path,
|
|
@@ -224189,7 +224286,7 @@ ${newEnvFileContent}
|
|
|
224189
224286
|
|
|
224190
224287
|
// ../app/dist/cli/commands/app/env/pull.js
|
|
224191
224288
|
var import_core35 = __toESM(require_lib(), 1);
|
|
224192
|
-
var _a24, EnvPull2 = class extends
|
|
224289
|
+
var _a24, EnvPull2 = class extends AppLinkedCommand {
|
|
224193
224290
|
async run() {
|
|
224194
224291
|
let { flags } = await this.parse(_a24), { app, remoteApp, organization } = await linkedAppContext({
|
|
224195
224292
|
directory: flags.path,
|
|
@@ -224236,7 +224333,7 @@ async function outputEnv(app, remoteApp, organization, format5) {
|
|
|
224236
224333
|
}
|
|
224237
224334
|
|
|
224238
224335
|
// ../app/dist/cli/commands/app/env/show.js
|
|
224239
|
-
var _a25, EnvShow = class extends
|
|
224336
|
+
var _a25, EnvShow = class extends AppLinkedCommand {
|
|
224240
224337
|
async run() {
|
|
224241
224338
|
let { flags } = await this.parse(_a25), { app, remoteApp, organization } = await linkedAppContext({
|
|
224242
224339
|
directory: flags.path,
|
|
@@ -224326,17 +224423,21 @@ async function inFunctionContext({ path: path4, userProvidedConfigName, apiKey,
|
|
|
224326
224423
|
clientId: apiKey,
|
|
224327
224424
|
forceRelink: reset2 ?? !1,
|
|
224328
224425
|
userProvidedConfigName
|
|
224329
|
-
}),
|
|
224426
|
+
}), ourFunction = await chooseFunction(app, path4);
|
|
224427
|
+
return callback(app, developerPlatformClient, ourFunction, organization.id);
|
|
224428
|
+
}
|
|
224429
|
+
async function chooseFunction(app, path4) {
|
|
224430
|
+
let allFunctions = app.allExtensions.filter((ext) => ext.isFunctionExtension), ourFunction = allFunctions.find((fun) => fun.directory === path4);
|
|
224330
224431
|
if (ourFunction)
|
|
224331
|
-
return
|
|
224332
|
-
if (
|
|
224333
|
-
|
|
224432
|
+
return ourFunction;
|
|
224433
|
+
if (allFunctions.length === 1 && allFunctions[0])
|
|
224434
|
+
return allFunctions[0];
|
|
224435
|
+
if (isTerminalInteractive())
|
|
224436
|
+
return await renderAutocompletePrompt({
|
|
224334
224437
|
message: "Which function?",
|
|
224335
224438
|
choices: allFunctions.map((shopifyFunction) => ({ label: shopifyFunction.handle, value: shopifyFunction }))
|
|
224336
224439
|
});
|
|
224337
|
-
|
|
224338
|
-
} else
|
|
224339
|
-
throw new AbortError("Run this command from a function directory or use `--path` to specify a function directory.");
|
|
224440
|
+
throw new AbortError("Run this command from a function directory or use `--path` to specify a function directory.");
|
|
224340
224441
|
}
|
|
224341
224442
|
async function getOrGenerateSchemaPath(extension, app, developerPlatformClient, orgId) {
|
|
224342
224443
|
let path4 = joinPath(extension.directory, "schema.graphql");
|
|
@@ -224351,22 +224452,19 @@ async function getOrGenerateSchemaPath(extension, app, developerPlatformClient,
|
|
|
224351
224452
|
}
|
|
224352
224453
|
|
|
224353
224454
|
// ../app/dist/cli/commands/app/function/build.js
|
|
224354
|
-
var _a26, FunctionBuild = class extends
|
|
224455
|
+
var _a26, FunctionBuild = class extends AppUnlinkedCommand {
|
|
224355
224456
|
async run() {
|
|
224356
|
-
let { flags } = await this.parse(_a26)
|
|
224357
|
-
|
|
224358
|
-
|
|
224359
|
-
|
|
224360
|
-
|
|
224361
|
-
|
|
224362
|
-
|
|
224363
|
-
|
|
224364
|
-
|
|
224365
|
-
|
|
224366
|
-
|
|
224367
|
-
environment: "production"
|
|
224368
|
-
}), renderSuccess({ headline: "Function built successfully." }), app2)
|
|
224369
|
-
}) };
|
|
224457
|
+
let { flags } = await this.parse(_a26), app = await localAppContext({
|
|
224458
|
+
directory: flags.path,
|
|
224459
|
+
userProvidedConfigName: flags.config
|
|
224460
|
+
}), ourFunction = await chooseFunction(app, flags.path);
|
|
224461
|
+
return await buildFunctionExtension(ourFunction, {
|
|
224462
|
+
app,
|
|
224463
|
+
stdout: process.stdout,
|
|
224464
|
+
stderr: process.stderr,
|
|
224465
|
+
useTasks: !0,
|
|
224466
|
+
environment: "production"
|
|
224467
|
+
}), renderSuccess({ headline: "Function built successfully." }), { app };
|
|
224370
224468
|
}
|
|
224371
224469
|
};
|
|
224372
224470
|
_a26 = FunctionBuild;
|
|
@@ -224744,7 +224842,7 @@ function getAllFunctionRunFileNames(functionRunsDir) {
|
|
|
224744
224842
|
}
|
|
224745
224843
|
|
|
224746
224844
|
// ../app/dist/cli/commands/app/function/replay.js
|
|
224747
|
-
var import_core37 = __toESM(require_lib(), 1), _a27, FunctionReplay = class extends
|
|
224845
|
+
var import_core37 = __toESM(require_lib(), 1), _a27, FunctionReplay = class extends AppLinkedCommand {
|
|
224748
224846
|
async run() {
|
|
224749
224847
|
let { flags } = await this.parse(_a27);
|
|
224750
224848
|
flags["api-key"] && await showApiKeyDeprecationWarning();
|
|
@@ -224799,7 +224897,7 @@ var replay_default = FunctionReplay;
|
|
|
224799
224897
|
// ../app/dist/cli/commands/app/function/run.js
|
|
224800
224898
|
init_cjs_shims();
|
|
224801
224899
|
var import_core38 = __toESM(require_lib(), 1);
|
|
224802
|
-
var _a28, DEFAULT_FUNCTION_EXPORT = "_start", FunctionRun = class extends
|
|
224900
|
+
var _a28, DEFAULT_FUNCTION_EXPORT = "_start", FunctionRun = class extends AppLinkedCommand {
|
|
224803
224901
|
async run() {
|
|
224804
224902
|
let { flags } = await this.parse(_a28);
|
|
224805
224903
|
return { app: await inFunctionContext({
|
|
@@ -224866,7 +224964,7 @@ var run_default = FunctionRun;
|
|
|
224866
224964
|
// ../app/dist/cli/commands/app/function/schema.js
|
|
224867
224965
|
init_cjs_shims();
|
|
224868
224966
|
var import_core39 = __toESM(require_lib(), 1);
|
|
224869
|
-
var _a29, FetchSchema = class extends
|
|
224967
|
+
var _a29, FetchSchema = class extends AppLinkedCommand {
|
|
224870
224968
|
async run() {
|
|
224871
224969
|
let { flags } = await this.parse(_a29);
|
|
224872
224970
|
flags["api-key"] && await showApiKeyDeprecationWarning();
|
|
@@ -224913,7 +225011,7 @@ var schema_default = FetchSchema;
|
|
|
224913
225011
|
|
|
224914
225012
|
// ../app/dist/cli/commands/app/function/typegen.js
|
|
224915
225013
|
init_cjs_shims();
|
|
224916
|
-
var _a30, FunctionTypegen = class extends
|
|
225014
|
+
var _a30, FunctionTypegen = class extends AppLinkedCommand {
|
|
224917
225015
|
async run() {
|
|
224918
225016
|
let { flags } = await this.parse(_a30);
|
|
224919
225017
|
return { app: await inFunctionContext({
|
|
@@ -224953,11 +225051,14 @@ function isPolarisUnifiedEnabled() {
|
|
|
224953
225051
|
|
|
224954
225052
|
// ../app/dist/cli/services/generate/fetch-template-specifications.js
|
|
224955
225053
|
async function fetchExtensionTemplates(developerPlatformClient, app, availableSpecifications) {
|
|
224956
|
-
let remoteTemplates = await developerPlatformClient.templateSpecifications(app), polarisUnifiedEnabled = isPolarisUnifiedEnabled();
|
|
224957
|
-
return
|
|
224958
|
-
|
|
224959
|
-
|
|
224960
|
-
|
|
225054
|
+
let { templates: remoteTemplates, groupOrder } = await developerPlatformClient.templateSpecifications(app), polarisUnifiedEnabled = isPolarisUnifiedEnabled();
|
|
225055
|
+
return {
|
|
225056
|
+
templates: remoteTemplates.filter((template) => availableSpecifications.includes(template.identifier) || availableSpecifications.includes(template.type)).map((template) => template.type === "ui_extension" ? {
|
|
225057
|
+
...template,
|
|
225058
|
+
supportedFlavors: template.supportedFlavors.filter((flavor) => polarisUnifiedEnabled ? flavor.value === "preact" : flavor.value !== "preact")
|
|
225059
|
+
} : template).filter((template) => template.supportedFlavors.length > 0),
|
|
225060
|
+
groupOrder
|
|
225061
|
+
};
|
|
224961
225062
|
}
|
|
224962
225063
|
|
|
224963
225064
|
// ../app/dist/cli/prompts/generate/extension.js
|
|
@@ -224987,7 +225088,8 @@ var generateExtensionPrompts = async (options) => {
|
|
|
224987
225088
|
throw new AbortError("You have reached the limit for the number of extensions you can create.");
|
|
224988
225089
|
templateType = await renderAutocompletePrompt({
|
|
224989
225090
|
message: "Type of extension?",
|
|
224990
|
-
choices: buildChoices(extensionTemplates, options.unavailableExtensions)
|
|
225091
|
+
choices: buildChoices(extensionTemplates, options.unavailableExtensions),
|
|
225092
|
+
groupOrder: options.groupOrder
|
|
224991
225093
|
});
|
|
224992
225094
|
}
|
|
224993
225095
|
let extensionTemplate = extensionTemplates.find((template) => template.identifier === templateType), name = options.name || await promptName(options.directory, extensionTemplate.defaultName), flavor = options.extensionFlavor ?? await promptFlavor(extensionTemplate);
|
|
@@ -225197,12 +225299,12 @@ async function downloadOrFindTemplateDirectory(url, extensionFlavor, tmpDir, onG
|
|
|
225197
225299
|
|
|
225198
225300
|
// ../app/dist/cli/services/generate.js
|
|
225199
225301
|
async function generate(options) {
|
|
225200
|
-
let { app, developerPlatformClient, remoteApp, specifications, template } = options, availableSpecifications = specifications.map((spec2) => spec2.identifier), extensionTemplates = await fetchExtensionTemplates(developerPlatformClient, remoteApp, availableSpecifications), promptOptions = await buildPromptOptions(extensionTemplates, specifications, app, options), promptAnswers = await extension_default(promptOptions);
|
|
225302
|
+
let { app, developerPlatformClient, remoteApp, specifications, template } = options, availableSpecifications = specifications.map((spec2) => spec2.identifier), { templates: extensionTemplates, groupOrder } = await fetchExtensionTemplates(developerPlatformClient, remoteApp, availableSpecifications), promptOptions = await buildPromptOptions(extensionTemplates, groupOrder, specifications, app, options), promptAnswers = await extension_default(promptOptions);
|
|
225201
225303
|
await saveAnalyticsMetadata(promptAnswers, template);
|
|
225202
225304
|
let generateExtensionOptions = buildGenerateOptions(promptAnswers, app, options, developerPlatformClient), generatedExtension = await generateExtensionTemplate(generateExtensionOptions);
|
|
225203
225305
|
renderSuccessMessage2(generatedExtension, app.packageManager);
|
|
225204
225306
|
}
|
|
225205
|
-
async function buildPromptOptions(extensionTemplates, specifications, app, options) {
|
|
225307
|
+
async function buildPromptOptions(extensionTemplates, groupOrder, specifications, app, options) {
|
|
225206
225308
|
let extensionTemplate = await handleTypeParameter(options.template, app, extensionTemplates, specifications);
|
|
225207
225309
|
validateExtensionFlavor(extensionTemplate, options.flavor);
|
|
225208
225310
|
let { validTemplates, templatesOverlimit } = checkLimits(extensionTemplates, specifications, app);
|
|
@@ -225214,7 +225316,8 @@ async function buildPromptOptions(extensionTemplates, specifications, app, optio
|
|
|
225214
225316
|
app,
|
|
225215
225317
|
extensionTemplates: validTemplates ?? [],
|
|
225216
225318
|
unavailableExtensions: templatesOverlimit ?? [],
|
|
225217
|
-
reset: options.reset
|
|
225319
|
+
reset: options.reset,
|
|
225320
|
+
groupOrder
|
|
225218
225321
|
};
|
|
225219
225322
|
}
|
|
225220
225323
|
function checkLimits(extensionTemplates, specifications, app) {
|
|
@@ -225283,7 +225386,7 @@ var generate_default = generate;
|
|
|
225283
225386
|
|
|
225284
225387
|
// ../app/dist/cli/commands/app/generate/extension.js
|
|
225285
225388
|
var import_core40 = __toESM(require_lib(), 1);
|
|
225286
|
-
var _a31, AppGenerateExtension = class extends
|
|
225389
|
+
var _a31, AppGenerateExtension = class extends AppLinkedCommand {
|
|
225287
225390
|
static analyticsNameOverride() {
|
|
225288
225391
|
return "app scaffold extension";
|
|
225289
225392
|
}
|
|
@@ -225752,7 +225855,7 @@ var getMigrationChoices = () => [
|
|
|
225752
225855
|
extensionTypes: ["app_link", "bulk_action"],
|
|
225753
225856
|
buildTomlObject: buildTomlObject3
|
|
225754
225857
|
}
|
|
225755
|
-
], ImportExtensions = class _ImportExtensions extends
|
|
225858
|
+
], ImportExtensions = class _ImportExtensions extends AppLinkedCommand {
|
|
225756
225859
|
async run() {
|
|
225757
225860
|
let { flags } = await this.parse(_ImportExtensions), appContext = await linkedAppContext({
|
|
225758
225861
|
directory: flags.path,
|
|
@@ -225950,7 +226053,7 @@ Directory components`.toUpperCase(),
|
|
|
225950
226053
|
|
|
225951
226054
|
// ../app/dist/cli/commands/app/info.js
|
|
225952
226055
|
var import_core42 = __toESM(require_lib(), 1);
|
|
225953
|
-
var _a33, AppInfo2 = class extends
|
|
226056
|
+
var _a33, AppInfo2 = class extends AppLinkedCommand {
|
|
225954
226057
|
async run() {
|
|
225955
226058
|
let { flags } = await this.parse(_a33), { app, remoteApp, organization, developerPlatformClient } = await linkedAppContext({
|
|
225956
226059
|
directory: flags.path,
|
|
@@ -226300,7 +226403,7 @@ function validateFlavorValue(template, flavor) {
|
|
|
226300
226403
|
|
|
226301
226404
|
// ../app/dist/cli/commands/app/init.js
|
|
226302
226405
|
var import_core43 = __toESM(require_lib(), 1);
|
|
226303
|
-
var _a34, Init3 = class extends
|
|
226406
|
+
var _a34, Init3 = class extends AppLinkedCommand {
|
|
226304
226407
|
async run() {
|
|
226305
226408
|
let { flags } = await this.parse(_a34);
|
|
226306
226409
|
validateTemplateValue(flags.template), validateFlavorValue(flags.template, flags.flavor);
|
|
@@ -226464,7 +226567,7 @@ ${versionDetails.message}` : ""
|
|
|
226464
226567
|
|
|
226465
226568
|
// ../app/dist/cli/commands/app/release.js
|
|
226466
226569
|
var import_core44 = __toESM(require_lib(), 1);
|
|
226467
|
-
var _a35, Release = class extends
|
|
226570
|
+
var _a35, Release = class extends AppLinkedCommand {
|
|
226468
226571
|
async run() {
|
|
226469
226572
|
let { flags } = await this.parse(_a35);
|
|
226470
226573
|
flags["api-key"] && await showApiKeyDeprecationWarning();
|
|
@@ -226583,7 +226686,7 @@ async function versionList(options) {
|
|
|
226583
226686
|
}
|
|
226584
226687
|
|
|
226585
226688
|
// ../app/dist/cli/commands/app/versions/list.js
|
|
226586
|
-
var import_core45 = __toESM(require_lib(), 1), _a36, VersionsList = class extends
|
|
226689
|
+
var import_core45 = __toESM(require_lib(), 1), _a36, VersionsList = class extends AppLinkedCommand {
|
|
226587
226690
|
async run() {
|
|
226588
226691
|
let { flags } = await this.parse(_a36);
|
|
226589
226692
|
flags["api-key"] && await showApiKeyDeprecationWarning();
|
|
@@ -226755,7 +226858,7 @@ function formatErrors(errors) {
|
|
|
226755
226858
|
|
|
226756
226859
|
// ../app/dist/cli/commands/app/webhook/trigger.js
|
|
226757
226860
|
var import_core46 = __toESM(require_lib(), 1);
|
|
226758
|
-
var _a37, WebhookTrigger = class extends
|
|
226861
|
+
var _a37, WebhookTrigger = class extends AppLinkedCommand {
|
|
226759
226862
|
async run() {
|
|
226760
226863
|
let { flags } = await this.parse(_a37);
|
|
226761
226864
|
flags["shared-secret"] && renderWarning({
|
|
@@ -226914,7 +227017,7 @@ async function devClean(options) {
|
|
|
226914
227017
|
|
|
226915
227018
|
// ../app/dist/cli/commands/app/dev/clean.js
|
|
226916
227019
|
var import_core47 = __toESM(require_lib(), 1);
|
|
226917
|
-
var _a38, DevClean = class extends
|
|
227020
|
+
var _a38, DevClean = class extends AppLinkedCommand {
|
|
226918
227021
|
async run() {
|
|
226919
227022
|
let { flags } = await this.parse(_a38), appContextResult = await linkedAppContext({
|
|
226920
227023
|
directory: flags.path,
|