@shopify/create-app 0.0.0-snapshot-20260722190906 → 0.0.0-snapshot-20260722210655
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/{analytics-R763OCOA.js → analytics-7XDTFOIL.js} +11 -11
- package/dist/{analytics-K2GELKMC.js → analytics-IPBNNZ5Y.js} +11 -11
- package/dist/{chunk-3N3YQQWR.js → chunk-3P646RNL.js} +2 -2
- package/dist/{chunk-P55R46AF.js → chunk-4VZMJZEP.js} +12 -4
- package/dist/{chunk-HRZBF7PU.js → chunk-5TYV3KTM.js} +6 -6
- package/dist/{chunk-EV5FOQYQ.js → chunk-AD44PVN7.js} +3 -3
- package/dist/{chunk-S6B3NNCJ.js → chunk-AMNV2F4T.js} +16 -16
- package/dist/{chunk-N3WXWQ6Q.js → chunk-B4DASCHO.js} +10 -10
- package/dist/{chunk-RVRHYUZK.js → chunk-EFCLCT6P.js} +2 -2
- package/dist/{chunk-3OEPNCDO.js → chunk-FKSTGVOB.js} +5 -5
- package/dist/{chunk-OJ4H3L54.js → chunk-G3DLGZ32.js} +10 -10
- package/dist/{chunk-BEUNBVME.js → chunk-I7E7OQVK.js} +1 -1
- package/dist/{chunk-JHP35DLR.js → chunk-II3CBUD2.js} +8 -8
- package/dist/{chunk-5MNVN32X.js → chunk-UPROKMAA.js} +3 -3
- package/dist/{chunk-5265OBKP.js → chunk-Y57TZBWY.js} +3 -3
- package/dist/{chunk-OTQWK73T.js → chunk-YEWVPBEX.js} +6 -6
- package/dist/{chunk-CBTXEFXC.js → chunk-YKGUYXAN.js} +2 -2
- package/dist/{conf-store-R5RWTUGA.js → conf-store-KSTB37EJ.js} +9 -5
- package/dist/{deprecations-YYNCP44F.js → deprecations-4XTFEEB2.js} +7 -7
- package/dist/{environments-QSE2R7U4.js → environments-LPX6YDJT.js} +8 -8
- package/dist/{error-handler-QG2BH6XN.js → error-handler-XQU5O2GT.js} +11 -11
- package/dist/{fs-ZBBKREIT.js → fs-ZLRUBFYB.js} +3 -3
- package/dist/hooks/postrun.js +4 -4
- package/dist/hooks/prerun.js +9 -8
- package/dist/index.js +29 -29
- package/dist/{is-global-VBVHOI5F.js → is-global-2LXJNSNE.js} +3 -3
- package/dist/{local-BR5NEG6P.js → local-Y4N2LHMR.js} +2 -2
- package/dist/{metadata-IBXKIPDT.js → metadata-VVSEGFHN.js} +3 -3
- package/dist/{node-package-manager-FIGONMNL.js → node-package-manager-5LVWZCYT.js} +9 -9
- package/dist/{notifications-system-OAEYBL5Z.js → notifications-system-R5JIMDFN.js} +12 -12
- package/dist/{output-45UBCZFL.js → output-RX2BD4LB.js} +3 -3
- package/dist/{prettier-SS3RRDXK.js → prettier-HWONCVRT.js} +2 -2
- package/dist/skills-QPGB2OSY.js +72 -0
- package/dist/{system-O7H6MBJC.js → system-B5GAWPGJ.js} +7 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-QZTEM2U7.js → ui-VH7SIQSB.js} +7 -7
- package/dist/{upgrade-MFHOVJPE.js → upgrade-CV5AXWLW.js} +13 -13
- package/dist/{version-RMVNUO5D.js → version-7FLIJ5NP.js} +8 -8
- package/dist/{version-4QUBA5EF.js → version-KSTXQY7R.js} +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getSkillAutoInstallCompleted,
|
|
3
|
+
runAtMinimumInterval,
|
|
4
|
+
setSkillAutoInstallCompleted
|
|
5
|
+
} from "./chunk-4VZMJZEP.js";
|
|
6
|
+
import {
|
|
7
|
+
exec
|
|
8
|
+
} from "./chunk-II3CBUD2.js";
|
|
9
|
+
import "./chunk-AD44PVN7.js";
|
|
10
|
+
import "./chunk-UPROKMAA.js";
|
|
11
|
+
import "./chunk-K5NLRHZR.js";
|
|
12
|
+
import "./chunk-ODCXYGJ2.js";
|
|
13
|
+
import "./chunk-LBXDGVFS.js";
|
|
14
|
+
import "./chunk-D6NYWNY2.js";
|
|
15
|
+
import "./chunk-JGGOQOPO.js";
|
|
16
|
+
import "./chunk-OQ3KXXGH.js";
|
|
17
|
+
import "./chunk-EFCLCT6P.js";
|
|
18
|
+
import {
|
|
19
|
+
fileExistsSync,
|
|
20
|
+
outputDebug
|
|
21
|
+
} from "./chunk-5TYV3KTM.js";
|
|
22
|
+
import {
|
|
23
|
+
homeDirectory,
|
|
24
|
+
isDevelopment,
|
|
25
|
+
isTruthy
|
|
26
|
+
} from "./chunk-Y57TZBWY.js";
|
|
27
|
+
import "./chunk-7OHJH7BF.js";
|
|
28
|
+
import {
|
|
29
|
+
joinPath
|
|
30
|
+
} from "./chunk-C3J4HVUN.js";
|
|
31
|
+
import "./chunk-UFLX7QDP.js";
|
|
32
|
+
import "./chunk-SI4LHZYW.js";
|
|
33
|
+
import {
|
|
34
|
+
init_cjs_shims
|
|
35
|
+
} from "./chunk-3XNI6LP4.js";
|
|
36
|
+
|
|
37
|
+
// ../cli-kit/dist/public/node/skills.js
|
|
38
|
+
init_cjs_shims();
|
|
39
|
+
function shopifySkillIsInstalled(env = process.env, homeDir = homeDirectory()) {
|
|
40
|
+
let configHome = env.XDG_CONFIG_HOME ?? joinPath(homeDir, ".config");
|
|
41
|
+
return [
|
|
42
|
+
joinPath(homeDir, ".agents", "skills", "shopify"),
|
|
43
|
+
joinPath(configHome, "agents", "skills", "shopify")
|
|
44
|
+
].some(fileExistsSync);
|
|
45
|
+
}
|
|
46
|
+
async function installShopifySkillInBackground(options) {
|
|
47
|
+
let { currentCommand, argv = process.argv, env = process.env, config, homeDir } = options;
|
|
48
|
+
if (skipSkillAutoInstall(currentCommand, env) || getSkillAutoInstallCompleted(config))
|
|
49
|
+
return;
|
|
50
|
+
if (shopifySkillIsInstalled(env, homeDir)) {
|
|
51
|
+
setSkillAutoInstallCompleted(config);
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
let nodeBinary = argv[0], shopifyBinary = argv[1];
|
|
55
|
+
!nodeBinary || !shopifyBinary || await runAtMinimumInterval("skill-auto-install", { days: 1 }, async () => {
|
|
56
|
+
exec(nodeBinary, [shopifyBinary, "skill", "install"], {
|
|
57
|
+
background: !0,
|
|
58
|
+
env: { ...env, SHOPIFY_CLI_NO_ANALYTICS: "1" },
|
|
59
|
+
externalErrorHandler: async (error) => {
|
|
60
|
+
outputDebug(`Failed to install the Shopify skill in background: ${error.message}`);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}, config);
|
|
64
|
+
}
|
|
65
|
+
function skipSkillAutoInstall(currentCommand, env) {
|
|
66
|
+
return currentCommand.startsWith("skill") || isTruthy(env.CI) || isTruthy(env.SHOPIFY_UNIT_TEST) || isTruthy(env.SHOPIFY_CLI_NO_SKILL_AUTO_INSTALL) || isDevelopment(env);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
installShopifySkillInBackground,
|
|
70
|
+
shopifySkillIsInstalled
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=skills-QPGB2OSY.js.map
|
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
sleep,
|
|
13
13
|
terminalSupportsHyperlinks,
|
|
14
14
|
terminalSupportsPrompting
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-II3CBUD2.js";
|
|
16
|
+
import "./chunk-AD44PVN7.js";
|
|
17
|
+
import "./chunk-UPROKMAA.js";
|
|
18
18
|
import "./chunk-K5NLRHZR.js";
|
|
19
19
|
import "./chunk-ODCXYGJ2.js";
|
|
20
20
|
import "./chunk-LBXDGVFS.js";
|
|
21
21
|
import "./chunk-D6NYWNY2.js";
|
|
22
22
|
import "./chunk-JGGOQOPO.js";
|
|
23
23
|
import "./chunk-OQ3KXXGH.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-EFCLCT6P.js";
|
|
25
|
+
import "./chunk-5TYV3KTM.js";
|
|
26
|
+
import "./chunk-Y57TZBWY.js";
|
|
27
27
|
import "./chunk-7OHJH7BF.js";
|
|
28
28
|
import "./chunk-C3J4HVUN.js";
|
|
29
29
|
import "./chunk-UFLX7QDP.js";
|
|
@@ -44,4 +44,4 @@ export {
|
|
|
44
44
|
terminalSupportsHyperlinks,
|
|
45
45
|
terminalSupportsPrompting
|
|
46
46
|
};
|
|
47
|
-
//# sourceMappingURL=system-
|
|
47
|
+
//# sourceMappingURL=system-B5GAWPGJ.js.map
|