@shopify/cli 3.64.1 → 3.65.0
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/assets/cli-ruby/lib/project_types/extension/models/specification_handlers/theme_app_extension.rb +1 -1
- package/dist/assets/cli-ruby/lib/shopify_cli/theme/dev_server/proxy.rb +2 -3
- package/dist/{chunk-ZIGJPI5N.js → chunk-2VMOCSNT.js} +39 -11
- package/dist/{chunk-SSAUIEBT.js → chunk-4JHXAPVK.js} +2 -2
- package/dist/{chunk-DX43V2L4.js → chunk-4MMUX74C.js} +4 -4
- package/dist/{chunk-2DXCIFDK.js → chunk-5ASKHNQG.js} +2 -2
- package/dist/{chunk-KUVX423E.js → chunk-5E7BOMYA.js} +2 -2
- package/dist/{chunk-KZTALMEV.js → chunk-6727OHPN.js} +4 -4
- package/dist/{chunk-7PVTYKQI.js → chunk-AEPMFZLL.js} +7 -7
- package/dist/{chunk-XNCQBHNR.js → chunk-AGEDJDVG.js} +5 -5
- package/dist/{chunk-S3HWVIGJ.js → chunk-CAFAFMYK.js} +10 -6
- package/dist/{chunk-ZRGD2HUL.js → chunk-CAITHPIX.js} +3 -3
- package/dist/{chunk-S7A7BHNA.js → chunk-CYWZMOXQ.js} +4 -4
- package/dist/{chunk-UXA5YROL.js → chunk-EIDHNONS.js} +2 -2
- package/dist/{chunk-OVWFZSJT.js → chunk-GNEXBICT.js} +2 -2
- package/dist/{chunk-ZVT2WZZF.js → chunk-HL74OSDI.js} +2 -2
- package/dist/{chunk-FDLU3RD4.js → chunk-HVRGX6N6.js} +4 -4
- package/dist/{chunk-B3D5VLUA.js → chunk-KGLWCSFT.js} +2 -2
- package/dist/{chunk-QNI6VLVR.js → chunk-KX6NLKOX.js} +3 -3
- package/dist/{chunk-NLE3ZLU6.js → chunk-KYAUWGQO.js} +14 -10
- package/dist/{chunk-OXMHVKM3.js → chunk-MJT3HLPT.js} +5 -5
- package/dist/{chunk-V7NH4SZB.js → chunk-MO56ATXB.js} +2 -2
- package/dist/{chunk-7W6SRTYP.js → chunk-O5CFSRZQ.js} +3 -3
- package/dist/{chunk-6PJAGL2L.js → chunk-O6H7FQHP.js} +5 -5
- package/dist/{chunk-H6AQTECB.js → chunk-OGVVZ2S7.js} +21 -7
- package/dist/{chunk-B7RN7IRD.js → chunk-QNY4RVJ6.js} +6 -1
- package/dist/{chunk-WVY52EEZ.js → chunk-QY432MUX.js} +5 -5
- package/dist/{chunk-QYT42J3T.js → chunk-SQBVLHAC.js} +4 -4
- package/dist/{chunk-ARCFCLME.js → chunk-SXEJ7K5S.js} +5 -5
- package/dist/{chunk-NO7MYZEO.js → chunk-UMWKJFTM.js} +2 -2
- package/dist/{chunk-ATGUMSCJ.js → chunk-UOQXKH3J.js} +4 -4
- package/dist/{chunk-ZKWHKX2C.js → chunk-VJLIWDQA.js} +7 -7
- package/dist/{chunk-JNUJZFQL.js → chunk-VZO77ESC.js} +2 -2
- package/dist/{chunk-X3OUSYUQ.js → chunk-WEDQJLHL.js} +4 -4
- package/dist/{chunk-63D4EGTO.js → chunk-X3GS3FMA.js} +3 -3
- package/dist/{chunk-UQQI7TQG.js → chunk-XPX5D55U.js} +3 -3
- package/dist/{chunk-7TIDA343.js → chunk-ZRXUHYJO.js} +3 -3
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +13 -13
- package/dist/cli/commands/debug/command-flags.js +11 -11
- package/dist/cli/commands/demo/catalog.js +12 -12
- package/dist/cli/commands/demo/generate-file.js +12 -12
- package/dist/cli/commands/demo/index.js +12 -12
- package/dist/cli/commands/demo/print-ai-prompt.js +12 -12
- package/dist/cli/commands/docs/generate.js +11 -11
- package/dist/cli/commands/docs/generate.test.js +11 -11
- package/dist/cli/commands/help.js +11 -11
- package/dist/cli/commands/kitchen-sink/async.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/index.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/prompts.js +12 -12
- package/dist/cli/commands/kitchen-sink/prompts.test.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.js +12 -12
- package/dist/cli/commands/kitchen-sink/static.test.js +12 -12
- package/dist/cli/commands/search.js +12 -12
- package/dist/cli/commands/upgrade.js +11 -11
- package/dist/cli/commands/version.js +12 -12
- package/dist/cli/commands/version.test.js +12 -12
- package/dist/cli/services/commands/search.js +4 -4
- package/dist/cli/services/commands/search.test.js +4 -4
- package/dist/cli/services/commands/version.js +6 -6
- package/dist/cli/services/commands/version.test.js +7 -7
- package/dist/cli/services/demo.js +4 -4
- package/dist/cli/services/demo.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +4 -4
- package/dist/cli/services/kitchen-sink/prompts.js +4 -4
- package/dist/cli/services/kitchen-sink/static.js +4 -4
- package/dist/cli/services/upgrade.js +5 -5
- package/dist/cli/services/upgrade.test.js +7 -7
- package/dist/{constants-EVER32LA.js → constants-Y4XF72NG.js} +3 -3
- package/dist/{custom-oclif-loader-BQAFOUNG.js → custom-oclif-loader-PNWG2W6I.js} +4 -4
- package/dist/{error-handler-S56KHSGD.js → error-handler-Z5RKZIZJ.js} +10 -10
- package/dist/hooks/postrun.js +8 -8
- package/dist/hooks/prerun.js +6 -6
- package/dist/index.js +4889 -2903
- package/dist/{local-UQAQKOVL.js → local-DQQ4M6FZ.js} +4 -4
- package/dist/{node-GZYZUMBW.js → node-VYVGZGMI.js} +13 -13
- package/dist/{node-package-manager-AOVZD6TP.js → node-package-manager-GWVEMST6.js} +5 -5
- package/dist/{path-KUSF6CYC.js → path-ZCRJKM4K.js} +4 -2
- package/dist/{system-G7DVECOP.js → system-ACW6VUAL.js} +4 -4
- package/dist/templates/ui-extensions/projects/web_pixel_extension/package.json.liquid +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-2AOZFYFM.js → ui-R5XNTORG.js} +4 -4
- package/dist/{workerd-2MO23YDQ.js → workerd-DIO7G5QX.js} +13 -13
- package/oclif.manifest.json +150 -13
- package/package.json +6 -6
|
@@ -16,7 +16,7 @@ module Extension
|
|
|
16
16
|
SUPPORTED_BUCKETS = %w(assets blocks snippets locales)
|
|
17
17
|
BUNDLE_SIZE_LIMIT = 10 * 1024 * 1024 # 10MB
|
|
18
18
|
LIQUID_SIZE_LIMIT = 100 * 1024 # 100kb
|
|
19
|
-
SUPPORTED_ASSET_EXTS = %w(.jpg .jpeg .js .json .css .png .svg)
|
|
19
|
+
SUPPORTED_ASSET_EXTS = %w(.jpg .jpeg .js .json .css .png .svg .wasm)
|
|
20
20
|
SUPPORTED_LOCALE_EXTS = %w(.json)
|
|
21
21
|
|
|
22
22
|
def create(directory_name, context, getting_started: false)
|
|
@@ -242,9 +242,8 @@ module ShopifyCLI
|
|
|
242
242
|
|
|
243
243
|
new_session_id = extract_shopify_essential_from_response_headers(response_headers)
|
|
244
244
|
if new_session_id
|
|
245
|
-
@ctx.debug("
|
|
246
|
-
@secure_session_id =
|
|
247
|
-
@last_session_cookie_refresh = Time.now
|
|
245
|
+
@ctx.debug("Renew _shopify_essential cookie by the response")
|
|
246
|
+
@secure_session_id = secure_session_id
|
|
248
247
|
end
|
|
249
248
|
|
|
250
249
|
response_headers
|
|
@@ -19,19 +19,19 @@ import {
|
|
|
19
19
|
resolveRequestDocument,
|
|
20
20
|
sanitizedHeadersOutput,
|
|
21
21
|
shopifyFetch
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VJLIWDQA.js";
|
|
23
23
|
import {
|
|
24
24
|
base64URLEncode,
|
|
25
25
|
randomBytes,
|
|
26
26
|
randomHex,
|
|
27
27
|
sha256
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CAFAFMYK.js";
|
|
29
29
|
import {
|
|
30
30
|
cacheRetrieveOrRepopulate,
|
|
31
31
|
getSession,
|
|
32
32
|
removeSession,
|
|
33
33
|
setSession
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WEDQJLHL.js";
|
|
35
35
|
import {
|
|
36
36
|
AbortError,
|
|
37
37
|
BugError,
|
|
@@ -41,8 +41,10 @@ import {
|
|
|
41
41
|
findPathUp,
|
|
42
42
|
firstPartyDev,
|
|
43
43
|
import_ts_error,
|
|
44
|
+
isCloudEnvironment,
|
|
44
45
|
isSpin,
|
|
45
46
|
isSpinEnvironment,
|
|
47
|
+
isTTY,
|
|
46
48
|
isTruthy,
|
|
47
49
|
keypress,
|
|
48
50
|
openURL,
|
|
@@ -59,13 +61,13 @@ import {
|
|
|
59
61
|
spinFqdn,
|
|
60
62
|
stringifyMessage,
|
|
61
63
|
useDeviceAuth
|
|
62
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-KYAUWGQO.js";
|
|
63
65
|
import {
|
|
64
66
|
sessionConstants
|
|
65
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-UMWKJFTM.js";
|
|
66
68
|
import {
|
|
67
69
|
moduleDirectory
|
|
68
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
69
71
|
import {
|
|
70
72
|
__commonJS,
|
|
71
73
|
__require,
|
|
@@ -3573,7 +3575,7 @@ async function partnersFqdn() {
|
|
|
3573
3575
|
}
|
|
3574
3576
|
async function appManagementFqdn() {
|
|
3575
3577
|
const environment = serviceEnvironment();
|
|
3576
|
-
const productionFqdn = "shopify.com";
|
|
3578
|
+
const productionFqdn = "app.shopify.com";
|
|
3577
3579
|
switch (environment) {
|
|
3578
3580
|
case "local":
|
|
3579
3581
|
return "app.shopify.myshopify.io";
|
|
@@ -3583,6 +3585,18 @@ async function appManagementFqdn() {
|
|
|
3583
3585
|
return productionFqdn;
|
|
3584
3586
|
}
|
|
3585
3587
|
}
|
|
3588
|
+
async function developerDashboardFqdn() {
|
|
3589
|
+
const environment = serviceEnvironment();
|
|
3590
|
+
const productionFqdn = "dev.shopify.com";
|
|
3591
|
+
switch (environment) {
|
|
3592
|
+
case "local":
|
|
3593
|
+
return "dev.shopify.myshopify.io";
|
|
3594
|
+
case "spin":
|
|
3595
|
+
return `dev.shopify.${await spinFqdn()}`;
|
|
3596
|
+
default:
|
|
3597
|
+
return productionFqdn;
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3586
3600
|
async function businessPlatformFqdn() {
|
|
3587
3601
|
const environment = serviceEnvironment();
|
|
3588
3602
|
const productionFqdn = "destinations.shopifysvc.com";
|
|
@@ -4127,7 +4141,7 @@ function defaultApiScopes(api, systemEnvironment = process.env) {
|
|
|
4127
4141
|
case "partners":
|
|
4128
4142
|
return ["cli"];
|
|
4129
4143
|
case "business-platform":
|
|
4130
|
-
return ["destinations"];
|
|
4144
|
+
return isTruthy(systemEnvironment.USE_APP_MANAGEMENT_API) ? ["destinations", "store-management"] : ["destinations"];
|
|
4131
4145
|
case "app-management":
|
|
4132
4146
|
return isTruthy(systemEnvironment.USE_APP_MANAGEMENT_API) ? ["app-management"] : [];
|
|
4133
4147
|
default:
|
|
@@ -4148,6 +4162,8 @@ function scopeTransform(scope) {
|
|
|
4148
4162
|
return "https://api.shopify.com/auth/shop.storefront-renderer.devtools";
|
|
4149
4163
|
case "destinations":
|
|
4150
4164
|
return "https://api.shopify.com/auth/destinations.readonly";
|
|
4165
|
+
case "store-management":
|
|
4166
|
+
return "https://api.shopify.com/auth/organization.store-management";
|
|
4151
4167
|
case "app-management":
|
|
4152
4168
|
return "https://api.shopify.com/auth/organization.apps.manage";
|
|
4153
4169
|
default:
|
|
@@ -4520,7 +4536,7 @@ async function terminateBlockingPortProcessPrompt(port, stepDescription) {
|
|
|
4520
4536
|
init_cjs_shims();
|
|
4521
4537
|
async function requestDeviceAuthorization(scopes) {
|
|
4522
4538
|
const fqdn = await identityFqdn();
|
|
4523
|
-
const identityClientId =
|
|
4539
|
+
const identityClientId = clientId();
|
|
4524
4540
|
const queryParams = { client_id: identityClientId, scope: scopes.join(" ") };
|
|
4525
4541
|
const url2 = `https://${fqdn}/oauth/device_authorization`;
|
|
4526
4542
|
const response = await shopifyFetch(url2, {
|
|
@@ -4534,8 +4550,19 @@ async function requestDeviceAuthorization(scopes) {
|
|
|
4534
4550
|
throw new BugError("Failed to start authorization process");
|
|
4535
4551
|
}
|
|
4536
4552
|
outputInfo("\nTo run this command, log in to Shopify.");
|
|
4553
|
+
if (!isTTY()) {
|
|
4554
|
+
throw new AbortError("Authorization is required to continue, but the current environment does not support interactive prompts.", "To resolve this, specify credentials in your environment, or run the command in an interactive environment such as your local terminal.");
|
|
4555
|
+
}
|
|
4537
4556
|
outputInfo(outputContent`User verification code: ${jsonResult.user_code}`);
|
|
4538
|
-
|
|
4557
|
+
const linkToken = outputToken.link(jsonResult.verification_uri_complete);
|
|
4558
|
+
if (isCloudEnvironment()) {
|
|
4559
|
+
outputInfo(outputContent`👉 Open this link to start the auth process: ${linkToken}`);
|
|
4560
|
+
} else {
|
|
4561
|
+
outputInfo("\u{1F449} Press any key to open the login page on your browser");
|
|
4562
|
+
await keypress();
|
|
4563
|
+
await openURL(jsonResult.verification_uri_complete);
|
|
4564
|
+
outputInfo(outputContent`Opened link to start the auth process: ${linkToken}`);
|
|
4565
|
+
}
|
|
4539
4566
|
return {
|
|
4540
4567
|
deviceCode: jsonResult.device_code,
|
|
4541
4568
|
userCode: jsonResult.user_code,
|
|
@@ -5003,6 +5030,7 @@ function logout() {
|
|
|
5003
5030
|
export {
|
|
5004
5031
|
partnersFqdn,
|
|
5005
5032
|
appManagementFqdn,
|
|
5033
|
+
developerDashboardFqdn,
|
|
5006
5034
|
businessPlatformFqdn,
|
|
5007
5035
|
normalizeStoreFqdn,
|
|
5008
5036
|
ok,
|
|
@@ -5024,4 +5052,4 @@ export {
|
|
|
5024
5052
|
ensureAuthenticatedBusinessPlatform,
|
|
5025
5053
|
logout
|
|
5026
5054
|
};
|
|
5027
|
-
//# sourceMappingURL=chunk-
|
|
5055
|
+
//# sourceMappingURL=chunk-2VMOCSNT.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openURL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KYAUWGQO.js";
|
|
4
4
|
import {
|
|
5
5
|
init_cjs_shims
|
|
6
6
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -16,4 +16,4 @@ async function searchService(query) {
|
|
|
16
16
|
export {
|
|
17
17
|
searchService
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=chunk-
|
|
19
|
+
//# sourceMappingURL=chunk-4JHXAPVK.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
findUpAndReadPackageJson,
|
|
5
5
|
getPackageManager,
|
|
6
6
|
usesWorkspaces
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WEDQJLHL.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
exec,
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
outputSuccess,
|
|
16
16
|
outputToken,
|
|
17
17
|
outputWarn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KYAUWGQO.js";
|
|
19
19
|
import {
|
|
20
20
|
dirname,
|
|
21
21
|
joinPath,
|
|
22
22
|
moduleDirectory
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
24
24
|
import {
|
|
25
25
|
init_cjs_shims
|
|
26
26
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -167,4 +167,4 @@ function usingPackageManager({ env } = { env: process.env }) {
|
|
|
167
167
|
export {
|
|
168
168
|
upgrade
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=chunk-
|
|
170
|
+
//# sourceMappingURL=chunk-4MMUX74C.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
execa,
|
|
3
3
|
outputContent,
|
|
4
4
|
outputDebug
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KYAUWGQO.js";
|
|
6
6
|
import {
|
|
7
7
|
init_cjs_shims
|
|
8
8
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -70,4 +70,4 @@ export {
|
|
|
70
70
|
username,
|
|
71
71
|
platformAndArch
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-5ASKHNQG.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
renderSuccess,
|
|
8
8
|
renderTable,
|
|
9
9
|
renderWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KYAUWGQO.js";
|
|
11
11
|
import {
|
|
12
12
|
init_cjs_shims
|
|
13
13
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -194,4 +194,4 @@ async function staticService() {
|
|
|
194
194
|
export {
|
|
195
195
|
staticService
|
|
196
196
|
};
|
|
197
|
-
//# sourceMappingURL=chunk-
|
|
197
|
+
//# sourceMappingURL=chunk-5E7BOMYA.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AGEDJDVG.js";
|
|
4
4
|
import {
|
|
5
5
|
packageManagerFromUserAgent
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WEDQJLHL.js";
|
|
7
7
|
import {
|
|
8
8
|
currentProcessIsGlobal,
|
|
9
9
|
inferPackageManagerForGlobalCLI,
|
|
10
10
|
renderInfo
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KYAUWGQO.js";
|
|
12
12
|
import {
|
|
13
13
|
init_cjs_shims
|
|
14
14
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -44,4 +44,4 @@ var Upgrade = class extends base_command_default {
|
|
|
44
44
|
export {
|
|
45
45
|
Upgrade
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-6727OHPN.js.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fanoutHooks,
|
|
3
3
|
reportAnalyticsEvent
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VJLIWDQA.js";
|
|
5
5
|
import {
|
|
6
6
|
getEnvironmentData
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CAFAFMYK.js";
|
|
8
8
|
import {
|
|
9
9
|
require_once
|
|
10
10
|
} from "./chunk-FMKVOTQK.js";
|
|
11
11
|
import {
|
|
12
12
|
CLI_KIT_VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KGLWCSFT.js";
|
|
14
14
|
import {
|
|
15
15
|
AbortSilentError,
|
|
16
16
|
CancelExecution,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
printEventsJson,
|
|
25
25
|
require_stacktracey,
|
|
26
26
|
shouldReportError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-KYAUWGQO.js";
|
|
28
28
|
import {
|
|
29
29
|
bugsnagApiKey
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UMWKJFTM.js";
|
|
31
31
|
import {
|
|
32
32
|
require_lib
|
|
33
33
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
joinPath,
|
|
38
38
|
normalizePath,
|
|
39
39
|
relativePath
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
41
41
|
import {
|
|
42
42
|
__commonJS,
|
|
43
43
|
__require,
|
|
@@ -3180,4 +3180,4 @@ export {
|
|
|
3180
3180
|
registerCleanBugsnagErrorsFromWithinPlugins,
|
|
3181
3181
|
addBugsnagMetadata
|
|
3182
3182
|
};
|
|
3183
|
-
//# sourceMappingURL=chunk-
|
|
3183
|
+
//# sourceMappingURL=chunk-AEPMFZLL.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandler,
|
|
3
3
|
registerCleanBugsnagErrorsFromWithinPlugins
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AEPMFZLL.js";
|
|
5
5
|
import {
|
|
6
6
|
hashString
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CAFAFMYK.js";
|
|
8
8
|
import {
|
|
9
9
|
AbortError,
|
|
10
10
|
addPublicMetadata,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
renderWarning,
|
|
21
21
|
terminalSupportsRawMode,
|
|
22
22
|
underscore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KYAUWGQO.js";
|
|
24
24
|
import {
|
|
25
25
|
require_lib
|
|
26
26
|
} from "./chunk-GEN4RXTD.js";
|
|
27
27
|
import {
|
|
28
28
|
cwd
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
30
30
|
import {
|
|
31
31
|
__commonJS,
|
|
32
32
|
__require,
|
|
@@ -2297,4 +2297,4 @@ export {
|
|
|
2297
2297
|
encodeToml,
|
|
2298
2298
|
base_command_default
|
|
2299
2299
|
};
|
|
2300
|
-
//# sourceMappingURL=chunk-
|
|
2300
|
+
//# sourceMappingURL=chunk-AGEDJDVG.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
platformAndArch
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5ASKHNQG.js";
|
|
4
4
|
import {
|
|
5
5
|
getPackageManager,
|
|
6
6
|
packageManagerFromUserAgent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WEDQJLHL.js";
|
|
8
8
|
import {
|
|
9
9
|
addPublicMetadata,
|
|
10
10
|
addSensitiveMetadata,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
cloudEnvironment,
|
|
13
13
|
currentProcessIsGlobal,
|
|
14
14
|
macAddress
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-KYAUWGQO.js";
|
|
16
16
|
import {
|
|
17
17
|
cwd
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
19
19
|
import {
|
|
20
20
|
init_cjs_shims
|
|
21
21
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -54,6 +54,10 @@ async function startAnalytics({ commandContent, args, currentTime = (/* @__PURE_
|
|
|
54
54
|
if (commandClass && Object.prototype.hasOwnProperty.call(commandClass, "analyticsNameOverride")) {
|
|
55
55
|
startCommand = commandClass.analyticsNameOverride() ?? commandContent.command;
|
|
56
56
|
}
|
|
57
|
+
let pluginName = commandClass?.plugin?.name;
|
|
58
|
+
if (commandClass && "customPluginName" in commandClass) {
|
|
59
|
+
pluginName = commandClass.customPluginName;
|
|
60
|
+
}
|
|
57
61
|
await addSensitiveMetadata(() => ({
|
|
58
62
|
commandStartOptions: {
|
|
59
63
|
startTime: currentTime,
|
|
@@ -65,7 +69,7 @@ async function startAnalytics({ commandContent, args, currentTime = (/* @__PURE_
|
|
|
65
69
|
cmd_all_launcher: packageManagerFromUserAgent(),
|
|
66
70
|
cmd_all_alias_used: commandContent.alias,
|
|
67
71
|
cmd_all_topic: commandContent.topic,
|
|
68
|
-
cmd_all_plugin:
|
|
72
|
+
cmd_all_plugin: pluginName,
|
|
69
73
|
cmd_all_force: flagIncluded("force", commandClass) ? args.includes("--force") : void 0
|
|
70
74
|
}));
|
|
71
75
|
}
|
|
@@ -116,4 +120,4 @@ export {
|
|
|
116
120
|
getEnvironmentData,
|
|
117
121
|
getSensitiveEnvironmentData
|
|
118
122
|
};
|
|
119
|
-
//# sourceMappingURL=chunk-
|
|
123
|
+
//# sourceMappingURL=chunk-CAFAFMYK.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
searchService
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4JHXAPVK.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AGEDJDVG.js";
|
|
7
7
|
import {
|
|
8
8
|
require_lib
|
|
9
9
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -46,4 +46,4 @@ var Search = class _Search extends base_command_default {
|
|
|
46
46
|
export {
|
|
47
47
|
Search
|
|
48
48
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-CAITHPIX.js.map
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-DLK3F3DC.js";
|
|
4
4
|
import {
|
|
5
5
|
demoStepsSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GNEXBICT.js";
|
|
7
7
|
import {
|
|
8
8
|
base_command_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AGEDJDVG.js";
|
|
10
10
|
import {
|
|
11
11
|
outputInfo,
|
|
12
12
|
renderInfo
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-KYAUWGQO.js";
|
|
14
14
|
import {
|
|
15
15
|
__toESM,
|
|
16
16
|
init_cjs_shims
|
|
@@ -59,4 +59,4 @@ The demo should perform the following steps:
|
|
|
59
59
|
export {
|
|
60
60
|
PrintAIPrompt
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
62
|
+
//# sourceMappingURL=chunk-CYWZMOXQ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
base_command_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AGEDJDVG.js";
|
|
4
4
|
import {
|
|
5
5
|
require_lib
|
|
6
6
|
} from "./chunk-GEN4RXTD.js";
|
|
@@ -45,4 +45,4 @@ var HelpCommand = class _HelpCommand extends base_command_default {
|
|
|
45
45
|
export {
|
|
46
46
|
HelpCommand
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-EIDHNONS.js.map
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
renderTextPrompt,
|
|
18
18
|
renderWarning,
|
|
19
19
|
sleep
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KYAUWGQO.js";
|
|
21
21
|
import {
|
|
22
22
|
init_cjs_shims
|
|
23
23
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -351,4 +351,4 @@ export {
|
|
|
351
351
|
demoStepsSchema,
|
|
352
352
|
demo
|
|
353
353
|
};
|
|
354
|
-
//# sourceMappingURL=chunk-
|
|
354
|
+
//# sourceMappingURL=chunk-GNEXBICT.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearCollectedLogs,
|
|
3
3
|
collectedLogs
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KYAUWGQO.js";
|
|
5
5
|
import {
|
|
6
6
|
init_cjs_shims
|
|
7
7
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -26,4 +26,4 @@ function mockAndCaptureOutput() {
|
|
|
26
26
|
export {
|
|
27
27
|
mockAndCaptureOutput
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-HL74OSDI.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logout
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VMOCSNT.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AGEDJDVG.js";
|
|
7
7
|
import {
|
|
8
8
|
outputSuccess
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KYAUWGQO.js";
|
|
10
10
|
import {
|
|
11
11
|
init_cjs_shims
|
|
12
12
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -26,4 +26,4 @@ var Logout = class extends base_command_default {
|
|
|
26
26
|
export {
|
|
27
27
|
Logout
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=chunk-
|
|
29
|
+
//# sourceMappingURL=chunk-HVRGX6N6.js.map
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// ../cli-kit/dist/public/common/version.js
|
|
6
6
|
init_cjs_shims();
|
|
7
|
-
var CLI_KIT_VERSION = "3.
|
|
7
|
+
var CLI_KIT_VERSION = "3.65.0";
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
CLI_KIT_VERSION
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-KGLWCSFT.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prompts
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MO56ATXB.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AGEDJDVG.js";
|
|
7
7
|
import {
|
|
8
8
|
init_cjs_shims
|
|
9
9
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -25,4 +25,4 @@ var KitchenSinkPrompts = class extends base_command_default {
|
|
|
25
25
|
export {
|
|
26
26
|
KitchenSinkPrompts
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-KX6NLKOX.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
environmentVariables,
|
|
6
6
|
pathConstants
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UMWKJFTM.js";
|
|
8
8
|
import {
|
|
9
9
|
require_cross_spawn,
|
|
10
10
|
require_lib,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
normalizePath,
|
|
26
26
|
relativizePath,
|
|
27
27
|
sniffForPath
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
29
29
|
import {
|
|
30
30
|
require_graceful_fs
|
|
31
31
|
} from "./chunk-LSCXQWNO.js";
|
|
@@ -30396,7 +30396,7 @@ var require_node_abort_controller = __commonJS({
|
|
|
30396
30396
|
"../../node_modules/.pnpm/node-abort-controller@3.1.1/node_modules/node-abort-controller/index.js"(exports, module) {
|
|
30397
30397
|
init_cjs_shims();
|
|
30398
30398
|
var { EventEmitter: EventEmitter4 } = __require("events");
|
|
30399
|
-
var
|
|
30399
|
+
var AbortSignal2 = class {
|
|
30400
30400
|
constructor() {
|
|
30401
30401
|
this.eventEmitter = new EventEmitter4();
|
|
30402
30402
|
this.onabort = null;
|
|
@@ -30440,7 +30440,7 @@ var require_node_abort_controller = __commonJS({
|
|
|
30440
30440
|
};
|
|
30441
30441
|
var AbortController2 = class {
|
|
30442
30442
|
constructor() {
|
|
30443
|
-
this.signal = new
|
|
30443
|
+
this.signal = new AbortSignal2();
|
|
30444
30444
|
}
|
|
30445
30445
|
abort(reason) {
|
|
30446
30446
|
if (this.signal.aborted)
|
|
@@ -30459,7 +30459,7 @@ var require_node_abort_controller = __commonJS({
|
|
|
30459
30459
|
return "AbortController";
|
|
30460
30460
|
}
|
|
30461
30461
|
};
|
|
30462
|
-
module.exports = { AbortController: AbortController2, AbortSignal };
|
|
30462
|
+
module.exports = { AbortController: AbortController2, AbortSignal: AbortSignal2 };
|
|
30463
30463
|
}
|
|
30464
30464
|
});
|
|
30465
30465
|
|
|
@@ -37498,13 +37498,14 @@ var RawContentToken = class extends ContentToken {
|
|
|
37498
37498
|
var LinkContentToken = class extends ContentToken {
|
|
37499
37499
|
constructor(value, link2, fallback) {
|
|
37500
37500
|
super(value);
|
|
37501
|
-
this.link = link2;
|
|
37501
|
+
this.link = link2 ?? stringifyMessage(value);
|
|
37502
37502
|
this.fallback = fallback;
|
|
37503
37503
|
}
|
|
37504
37504
|
output() {
|
|
37505
37505
|
const text = source_default.green(stringifyMessage(this.value));
|
|
37506
37506
|
const url = this.link ?? "";
|
|
37507
|
-
|
|
37507
|
+
const defaultFallback = this.value === this.link ? text : `${text} ( ${url} )`;
|
|
37508
|
+
return terminalLink(text, url, { fallback: () => this.fallback ?? defaultFallback });
|
|
37508
37509
|
}
|
|
37509
37510
|
};
|
|
37510
37511
|
var CommandContentToken = class extends ContentToken {
|
|
@@ -42784,6 +42785,8 @@ init_cjs_shims();
|
|
|
42784
42785
|
var import_node_abort_controller = __toESM(require_node_abort_controller(), 1);
|
|
42785
42786
|
var AbortController = class extends import_node_abort_controller.AbortController {
|
|
42786
42787
|
};
|
|
42788
|
+
var AbortSignal = class extends import_node_abort_controller.AbortSignal {
|
|
42789
|
+
};
|
|
42787
42790
|
|
|
42788
42791
|
// ../cli-kit/dist/public/node/metadata.js
|
|
42789
42792
|
init_cjs_shims();
|
|
@@ -42819,7 +42822,7 @@ function createRuntimeMetadataContainer(defaultPublicMetadata = {}) {
|
|
|
42819
42822
|
try {
|
|
42820
42823
|
await getAndSet();
|
|
42821
42824
|
} catch (error) {
|
|
42822
|
-
const { sendErrorToBugsnag } = await import("./error-handler-
|
|
42825
|
+
const { sendErrorToBugsnag } = await import("./error-handler-Z5RKZIZJ.js");
|
|
42823
42826
|
await sendErrorToBugsnag(error, "unexpected_error");
|
|
42824
42827
|
}
|
|
42825
42828
|
}
|
|
@@ -44991,7 +44994,7 @@ var keypress = async (stdin = process.stdin, uiDebugOptions = defaultUIDebugOpti
|
|
|
44991
44994
|
});
|
|
44992
44995
|
});
|
|
44993
44996
|
};
|
|
44994
|
-
function isTTY({ stdin = void 0, uiDebugOptions = defaultUIDebugOptions }) {
|
|
44997
|
+
function isTTY({ stdin = void 0, uiDebugOptions = defaultUIDebugOptions } = {}) {
|
|
44995
44998
|
return Boolean(uiDebugOptions.skipTTYCheck || stdin || terminalSupportsRawMode());
|
|
44996
44999
|
}
|
|
44997
45000
|
function throwInNonTTY({ message, stdin = void 0 }, uiDebugOptions) {
|
|
@@ -45093,6 +45096,7 @@ export {
|
|
|
45093
45096
|
findPathUp,
|
|
45094
45097
|
matchGlob,
|
|
45095
45098
|
AbortController,
|
|
45099
|
+
AbortSignal,
|
|
45096
45100
|
createRuntimeMetadataContainer,
|
|
45097
45101
|
getAllPublicMetadata,
|
|
45098
45102
|
getAllSensitiveMetadata,
|
|
@@ -45301,4 +45305,4 @@ react-reconciler/cjs/react-reconciler-constants.development.js:
|
|
|
45301
45305
|
* LICENSE file in the root directory of this source tree.
|
|
45302
45306
|
*)
|
|
45303
45307
|
*/
|
|
45304
|
-
//# sourceMappingURL=chunk-
|
|
45308
|
+
//# sourceMappingURL=chunk-KYAUWGQO.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
demo
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GNEXBICT.js";
|
|
4
4
|
import {
|
|
5
5
|
base_command_default
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AGEDJDVG.js";
|
|
7
7
|
import {
|
|
8
8
|
outputInfo,
|
|
9
9
|
readFile,
|
|
10
10
|
renderAutocompletePrompt
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KYAUWGQO.js";
|
|
12
12
|
import {
|
|
13
13
|
joinPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QNY4RVJ6.js";
|
|
15
15
|
import {
|
|
16
16
|
init_cjs_shims
|
|
17
17
|
} from "./chunk-ZPL24Y2D.js";
|
|
@@ -50,4 +50,4 @@ var Catalog = class extends base_command_default {
|
|
|
50
50
|
export {
|
|
51
51
|
Catalog
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-MJT3HLPT.js.map
|