@wix/create-new 0.0.84 → 0.0.85

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.
@@ -13,7 +13,7 @@ import {
13
13
  require_lib,
14
14
  temporaryDirectory,
15
15
  updateEnvFile
16
- } from "./chunk-SFOWMTOT.js";
16
+ } from "./chunk-M3O4ATUB.js";
17
17
  import {
18
18
  __toESM,
19
19
  init_esm_shims
@@ -115,4 +115,4 @@ async function generateApp({
115
115
  export {
116
116
  generateApp
117
117
  };
118
- //# sourceMappingURL=generator-MC3RF2NR.js.map
118
+ //# sourceMappingURL=generator-PHWJIZIQ.js.map
package/build/index.js CHANGED
@@ -118,7 +118,7 @@ import {
118
118
  writeJson,
119
119
  writePackageJson,
120
120
  zod_default
121
- } from "./chunk-SFOWMTOT.js";
121
+ } from "./chunk-M3O4ATUB.js";
122
122
  import {
123
123
  __commonJS,
124
124
  __dirname,
@@ -66016,6 +66016,48 @@ ${errorMessage2}`
66016
66016
  hint: reason
66017
66017
  }
66018
66018
  );
66019
+ },
66020
+ PluginUnknownHook: ({ hook, supportedHooks, pluginName }) => {
66021
+ return () => /* @__PURE__ */ import_react84.default.createElement(
66022
+ ErrorMessage,
66023
+ {
66024
+ cause,
66025
+ message: `Unknown Wix CLI hook "${hook}" in plugin "${pluginName}".`,
66026
+ hint: `Supported hooks: ${supportedHooks.map((supportedHook) => `"${supportedHook}"`).join(", ")}`
66027
+ }
66028
+ );
66029
+ },
66030
+ PluginInvalidHookHandler: ({ hook, pluginName }) => {
66031
+ return () => /* @__PURE__ */ import_react84.default.createElement(
66032
+ ErrorMessage,
66033
+ {
66034
+ cause,
66035
+ message: `Invalid handler for Wix CLI hook "${hook}" in plugin "${pluginName}".`,
66036
+ hint: "Hook handlers must be functions."
66037
+ }
66038
+ );
66039
+ },
66040
+ PluginDuplicateName: ({ name, firstIndex, duplicateIndex }) => {
66041
+ return () => /* @__PURE__ */ import_react84.default.createElement(
66042
+ ErrorMessage,
66043
+ {
66044
+ cause,
66045
+ message: `Duplicate plugin name "${name}".`,
66046
+ hint: `"plugins[${duplicateIndex}].name" conflicts with "plugins[${firstIndex}].name". Plugin names must be unique.`
66047
+ }
66048
+ );
66049
+ },
66050
+ PluginHandlerFailed: ({
66051
+ handlerName,
66052
+ pluginName
66053
+ }) => {
66054
+ return () => /* @__PURE__ */ import_react84.default.createElement(
66055
+ ErrorMessage,
66056
+ {
66057
+ cause,
66058
+ message: `Plugin "${pluginName}" failed while handling "${handlerName}".`
66059
+ }
66060
+ );
66019
66061
  }
66020
66062
  });
66021
66063
  }
@@ -81982,7 +82024,7 @@ function getTasks({
81982
82024
  cause: e2
81983
82025
  });
81984
82026
  }
81985
- const { generateApp } = await import("./generator-MC3RF2NR.js");
82027
+ const { generateApp } = await import("./generator-PHWJIZIQ.js");
81986
82028
  await generateApp({
81987
82029
  packageName,
81988
82030
  packageFolder,
@@ -94018,11 +94060,12 @@ var createBiLogger3 = async ({
94018
94060
  cliVersion,
94019
94061
  cliSessionId: cliSessionId2,
94020
94062
  userId,
94021
- aiAgentName: aiAgentName2
94063
+ aiAgentName: aiAgentName2,
94064
+ command
94022
94065
  }) => {
94023
94066
  const biLogger = await createBiLogger({
94024
94067
  aiAgentName: aiAgentName2,
94025
- command: "create-headless-site",
94068
+ command,
94026
94069
  cliSessionId: cliSessionId2,
94027
94070
  cliVersion,
94028
94071
  userId
@@ -94036,11 +94079,11 @@ var createBiLogger3 = async ({
94036
94079
  })
94037
94080
  );
94038
94081
  });
94039
- function reportCommandStartEvent2(command) {
94082
+ function reportCommandStartEvent2(commandToReport) {
94040
94083
  const commandFields = {
94041
- name: () => "create-headless-site",
94042
- args: command.args,
94043
- opts: () => command.opts()
94084
+ name: () => command,
94085
+ args: commandToReport.args,
94086
+ opts: () => commandToReport.opts()
94044
94087
  };
94045
94088
  return reportCommandStartEvent({
94046
94089
  biLogger,
@@ -94194,7 +94237,8 @@ var getHeadlessInitCommand = ({
94194
94237
  cliVersion,
94195
94238
  cliSessionId: cliSessionId2,
94196
94239
  userId: userInfo2?.userId,
94197
- aiAgentName: aiAgentName2
94240
+ aiAgentName: aiAgentName2,
94241
+ command: "init-headless-site"
94198
94242
  });
94199
94243
  const commandStatus = reportCommandStartEvent2(command);
94200
94244
  const transaction = createCommandTransaction(panorama2, command);
@@ -94253,7 +94297,8 @@ var getHeadlessCommand = ({
94253
94297
  cliVersion,
94254
94298
  cliSessionId: cliSessionId2,
94255
94299
  userId: userInfo2?.userId,
94256
- aiAgentName: aiAgentName2
94300
+ aiAgentName: aiAgentName2,
94301
+ command: "link-headless-site"
94257
94302
  });
94258
94303
  const commandStatus = reportCommandStartEvent2(command);
94259
94304
  const transaction = createCommandTransaction(panorama2, command);
@@ -94339,7 +94384,8 @@ var getHeadlessCommand = ({
94339
94384
  cliVersion,
94340
94385
  cliSessionId: cliSessionId2,
94341
94386
  userId: userInfo2?.userId,
94342
- aiAgentName: aiAgentName2
94387
+ aiAgentName: aiAgentName2,
94388
+ command: "create-headless-site"
94343
94389
  });
94344
94390
  const commandStatus = reportCommandStartEvent2(command);
94345
94391
  const transaction = createCommandTransaction(panorama2, command);
@@ -94372,7 +94418,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
94372
94418
  var package_default = {
94373
94419
  name: "@wix/create-new",
94374
94420
  description: "General entry point for creating Wix projects",
94375
- version: "0.0.84",
94421
+ version: "0.0.85",
94376
94422
  bin: "bin/index.cjs",
94377
94423
  devDependencies: {
94378
94424
  "@commander-js/extra-typings": "^13.0.0",