@wix/ditto-codegen-public 1.0.339 → 1.0.341
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/out.js +4 -515
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -10651,22 +10651,8 @@ var require_ErrorTypes = __commonJS({
|
|
|
10651
10651
|
exports2.ErrorType = void 0;
|
|
10652
10652
|
var ErrorType;
|
|
10653
10653
|
(function(ErrorType2) {
|
|
10654
|
-
ErrorType2["CODE_VALIDATION_ERROR"] = "CODE_VALIDATION_ERROR";
|
|
10655
|
-
ErrorType2["UNSUPPORTED_EXTENSION_TYPE"] = "UNSUPPORTED_EXTENSION_TYPE";
|
|
10656
|
-
ErrorType2["AI_TOKEN_LIMIT_ERROR"] = "AI_TOKEN_LIMIT_ERROR";
|
|
10657
|
-
ErrorType2["AI_RATE_LIMIT_ERROR"] = "AI_RATE_LIMIT_ERROR";
|
|
10658
|
-
ErrorType2["AI_NETWORK_ERROR"] = "AI_NETWORK_ERROR";
|
|
10659
|
-
ErrorType2["FILE_SYSTEM_ERROR"] = "FILE_SYSTEM_ERROR";
|
|
10660
10654
|
ErrorType2["TIMEOUT_ERROR"] = "TIMEOUT_ERROR";
|
|
10661
10655
|
ErrorType2["PROCESS_EXECUTION_ERROR"] = "PROCESS_EXECUTION_ERROR";
|
|
10662
|
-
ErrorType2["AGENT_CONFIGURATION_ERROR"] = "AGENT_CONFIGURATION_ERROR";
|
|
10663
|
-
ErrorType2["SCAFFOLDING_ERROR"] = "SCAFFOLDING_ERROR";
|
|
10664
|
-
ErrorType2["RESOURCE_NOT_FOUND_ERROR"] = "RESOURCE_NOT_FOUND_ERROR";
|
|
10665
|
-
ErrorType2["PLANNING_ERROR"] = "PLANNING_ERROR";
|
|
10666
|
-
ErrorType2["EXTENSION_GENERATION_ERROR"] = "EXTENSION_GENERATION_ERROR";
|
|
10667
|
-
ErrorType2["VALIDATION_CONFIGURATION_ERROR"] = "VALIDATION_CONFIGURATION_ERROR";
|
|
10668
|
-
ErrorType2["GENERATE_OBJECT_ERROR"] = "GENERATE_OBJECT_ERROR";
|
|
10669
|
-
ErrorType2["AUTO_FIX_ERROR"] = "AUTO_FIX_ERROR";
|
|
10670
10656
|
ErrorType2["UNEXPECTED_ERROR"] = "UNEXPECTED_ERROR";
|
|
10671
10657
|
ErrorType2["MISSING_JOB_ID_ERROR"] = "MISSING_JOB_ID_ERROR";
|
|
10672
10658
|
})(ErrorType || (exports2.ErrorType = ErrorType = {}));
|
|
@@ -10678,43 +10664,19 @@ var require_enums = __commonJS({
|
|
|
10678
10664
|
"../codegen-types/dist/errors/enums.js"(exports2) {
|
|
10679
10665
|
"use strict";
|
|
10680
10666
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10681
|
-
exports2.
|
|
10682
|
-
var ValidationType;
|
|
10683
|
-
(function(ValidationType2) {
|
|
10684
|
-
ValidationType2["TYPESCRIPT"] = "typescript";
|
|
10685
|
-
ValidationType2["BUILD"] = "build";
|
|
10686
|
-
})(ValidationType || (exports2.ValidationType = ValidationType = {}));
|
|
10667
|
+
exports2.ExtensionGenerationOperation = exports2.ProcessType = void 0;
|
|
10687
10668
|
var ProcessType;
|
|
10688
10669
|
(function(ProcessType2) {
|
|
10689
10670
|
ProcessType2["SPAWN"] = "spawn";
|
|
10690
10671
|
ProcessType2["EXECUTION"] = "execution";
|
|
10691
10672
|
ProcessType2["INITIALIZATION"] = "initialization";
|
|
10692
10673
|
})(ProcessType || (exports2.ProcessType = ProcessType = {}));
|
|
10693
|
-
var FileSystemOperation;
|
|
10694
|
-
(function(FileSystemOperation2) {
|
|
10695
|
-
FileSystemOperation2["READ"] = "read";
|
|
10696
|
-
FileSystemOperation2["WRITE"] = "write";
|
|
10697
|
-
FileSystemOperation2["DELETE"] = "delete";
|
|
10698
|
-
FileSystemOperation2["MKDIR"] = "mkdir";
|
|
10699
|
-
})(FileSystemOperation || (exports2.FileSystemOperation = FileSystemOperation = {}));
|
|
10700
10674
|
var ExtensionGenerationOperation;
|
|
10701
10675
|
(function(ExtensionGenerationOperation2) {
|
|
10702
10676
|
ExtensionGenerationOperation2["INSERT"] = "insert";
|
|
10703
|
-
ExtensionGenerationOperation2["UPDATE"] = "update";
|
|
10704
10677
|
ExtensionGenerationOperation2["DELETE"] = "delete";
|
|
10705
10678
|
ExtensionGenerationOperation2["EDIT"] = "edit";
|
|
10706
10679
|
})(ExtensionGenerationOperation || (exports2.ExtensionGenerationOperation = ExtensionGenerationOperation = {}));
|
|
10707
|
-
var ErrorOrigin;
|
|
10708
|
-
(function(ErrorOrigin2) {
|
|
10709
|
-
ErrorOrigin2["ITERATION"] = "iteration";
|
|
10710
|
-
ErrorOrigin2["INITIAL"] = "initial";
|
|
10711
|
-
})(ErrorOrigin || (exports2.ErrorOrigin = ErrorOrigin = {}));
|
|
10712
|
-
var ResourceType;
|
|
10713
|
-
(function(ResourceType2) {
|
|
10714
|
-
ResourceType2["COLLECTION"] = "collection";
|
|
10715
|
-
ResourceType2["FILE"] = "file";
|
|
10716
|
-
ResourceType2["EXTENSION"] = "extension";
|
|
10717
|
-
})(ResourceType || (exports2.ResourceType = ResourceType = {}));
|
|
10718
10680
|
}
|
|
10719
10681
|
});
|
|
10720
10682
|
|
|
@@ -10753,171 +10715,6 @@ var require_BaseCodegenError = __commonJS({
|
|
|
10753
10715
|
}
|
|
10754
10716
|
});
|
|
10755
10717
|
|
|
10756
|
-
// ../codegen-types/dist/errors/CodeValidationError.js
|
|
10757
|
-
var require_CodeValidationError = __commonJS({
|
|
10758
|
-
"../codegen-types/dist/errors/CodeValidationError.js"(exports2) {
|
|
10759
|
-
"use strict";
|
|
10760
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10761
|
-
exports2.CodeValidationError = void 0;
|
|
10762
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
10763
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
10764
|
-
var CodeValidationError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10765
|
-
constructor(message, options) {
|
|
10766
|
-
super(message);
|
|
10767
|
-
this.name = "CodeValidationError";
|
|
10768
|
-
this.errorType = ErrorTypes_1.ErrorType.CODE_VALIDATION_ERROR;
|
|
10769
|
-
this.expected = true;
|
|
10770
|
-
this.retryable = false;
|
|
10771
|
-
this.validationType = options.validationType;
|
|
10772
|
-
this.errors = options.errors || [];
|
|
10773
|
-
}
|
|
10774
|
-
getAdditionalProperties() {
|
|
10775
|
-
const props = {
|
|
10776
|
-
validationType: this.validationType
|
|
10777
|
-
};
|
|
10778
|
-
if (this.errors && this.errors.length > 0)
|
|
10779
|
-
props.errors = this.errors;
|
|
10780
|
-
return props;
|
|
10781
|
-
}
|
|
10782
|
-
};
|
|
10783
|
-
exports2.CodeValidationError = CodeValidationError;
|
|
10784
|
-
}
|
|
10785
|
-
});
|
|
10786
|
-
|
|
10787
|
-
// ../codegen-types/dist/errors/UnsupportedExtensionTypeError.js
|
|
10788
|
-
var require_UnsupportedExtensionTypeError = __commonJS({
|
|
10789
|
-
"../codegen-types/dist/errors/UnsupportedExtensionTypeError.js"(exports2) {
|
|
10790
|
-
"use strict";
|
|
10791
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10792
|
-
exports2.UnsupportedExtensionTypeError = void 0;
|
|
10793
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
10794
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
10795
|
-
var UnsupportedExtensionTypeError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10796
|
-
constructor(message, options) {
|
|
10797
|
-
super(message);
|
|
10798
|
-
this.name = "UnsupportedExtensionTypeError";
|
|
10799
|
-
this.errorType = ErrorTypes_1.ErrorType.UNSUPPORTED_EXTENSION_TYPE;
|
|
10800
|
-
this.expected = true;
|
|
10801
|
-
this.retryable = false;
|
|
10802
|
-
this.extensionType = options.extensionType;
|
|
10803
|
-
this.origin = options.origin;
|
|
10804
|
-
}
|
|
10805
|
-
getAdditionalProperties() {
|
|
10806
|
-
return {
|
|
10807
|
-
extensionType: this.extensionType,
|
|
10808
|
-
origin: this.origin
|
|
10809
|
-
};
|
|
10810
|
-
}
|
|
10811
|
-
};
|
|
10812
|
-
exports2.UnsupportedExtensionTypeError = UnsupportedExtensionTypeError;
|
|
10813
|
-
}
|
|
10814
|
-
});
|
|
10815
|
-
|
|
10816
|
-
// ../codegen-types/dist/errors/AIErrors.js
|
|
10817
|
-
var require_AIErrors = __commonJS({
|
|
10818
|
-
"../codegen-types/dist/errors/AIErrors.js"(exports2) {
|
|
10819
|
-
"use strict";
|
|
10820
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10821
|
-
exports2.AINetworkError = exports2.AIRateLimitError = exports2.AITokenLimitError = void 0;
|
|
10822
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
10823
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
10824
|
-
var AITokenLimitError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10825
|
-
constructor(message, options) {
|
|
10826
|
-
super(message);
|
|
10827
|
-
this.name = "AITokenLimitError";
|
|
10828
|
-
this.errorType = ErrorTypes_1.ErrorType.AI_TOKEN_LIMIT_ERROR;
|
|
10829
|
-
this.expected = false;
|
|
10830
|
-
this.retryable = true;
|
|
10831
|
-
this.filePath = options?.filePath;
|
|
10832
|
-
this.fileSizeKB = options?.fileSizeKB;
|
|
10833
|
-
this.errorCount = options?.errorCount;
|
|
10834
|
-
this.aiError = options?.aiError;
|
|
10835
|
-
}
|
|
10836
|
-
getAdditionalProperties() {
|
|
10837
|
-
const props = {};
|
|
10838
|
-
if (this.filePath)
|
|
10839
|
-
props.filePath = this.filePath;
|
|
10840
|
-
if (this.fileSizeKB !== void 0)
|
|
10841
|
-
props.fileSizeKB = this.fileSizeKB;
|
|
10842
|
-
if (this.errorCount !== void 0)
|
|
10843
|
-
props.errorCount = this.errorCount;
|
|
10844
|
-
if (this.aiError)
|
|
10845
|
-
props.aiError = this.aiError;
|
|
10846
|
-
return props;
|
|
10847
|
-
}
|
|
10848
|
-
};
|
|
10849
|
-
exports2.AITokenLimitError = AITokenLimitError;
|
|
10850
|
-
var AIRateLimitError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10851
|
-
constructor(message, options) {
|
|
10852
|
-
super(message);
|
|
10853
|
-
this.name = "AIRateLimitError";
|
|
10854
|
-
this.errorType = ErrorTypes_1.ErrorType.AI_RATE_LIMIT_ERROR;
|
|
10855
|
-
this.expected = false;
|
|
10856
|
-
this.retryable = true;
|
|
10857
|
-
this.aiError = options?.aiError;
|
|
10858
|
-
}
|
|
10859
|
-
getAdditionalProperties() {
|
|
10860
|
-
const props = {};
|
|
10861
|
-
if (this.aiError)
|
|
10862
|
-
props.aiError = this.aiError;
|
|
10863
|
-
return props;
|
|
10864
|
-
}
|
|
10865
|
-
};
|
|
10866
|
-
exports2.AIRateLimitError = AIRateLimitError;
|
|
10867
|
-
var AINetworkError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10868
|
-
constructor(message, options) {
|
|
10869
|
-
super(message);
|
|
10870
|
-
this.name = "AINetworkError";
|
|
10871
|
-
this.errorType = ErrorTypes_1.ErrorType.AI_NETWORK_ERROR;
|
|
10872
|
-
this.expected = false;
|
|
10873
|
-
this.retryable = true;
|
|
10874
|
-
this.aiError = options?.aiError;
|
|
10875
|
-
}
|
|
10876
|
-
getAdditionalProperties() {
|
|
10877
|
-
const props = {};
|
|
10878
|
-
if (this.aiError)
|
|
10879
|
-
props.aiError = this.aiError;
|
|
10880
|
-
return props;
|
|
10881
|
-
}
|
|
10882
|
-
};
|
|
10883
|
-
exports2.AINetworkError = AINetworkError;
|
|
10884
|
-
}
|
|
10885
|
-
});
|
|
10886
|
-
|
|
10887
|
-
// ../codegen-types/dist/errors/FileSystemError.js
|
|
10888
|
-
var require_FileSystemError = __commonJS({
|
|
10889
|
-
"../codegen-types/dist/errors/FileSystemError.js"(exports2) {
|
|
10890
|
-
"use strict";
|
|
10891
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10892
|
-
exports2.FileSystemError = void 0;
|
|
10893
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
10894
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
10895
|
-
var FileSystemError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10896
|
-
constructor(message, options) {
|
|
10897
|
-
super(message);
|
|
10898
|
-
this.name = "FileSystemError";
|
|
10899
|
-
this.errorType = ErrorTypes_1.ErrorType.FILE_SYSTEM_ERROR;
|
|
10900
|
-
this.expected = false;
|
|
10901
|
-
this.retryable = true;
|
|
10902
|
-
this.filePath = options?.filePath;
|
|
10903
|
-
this.operation = options?.operation;
|
|
10904
|
-
this.cause = options?.cause;
|
|
10905
|
-
}
|
|
10906
|
-
getAdditionalProperties() {
|
|
10907
|
-
const props = {};
|
|
10908
|
-
if (this.filePath)
|
|
10909
|
-
props.filePath = this.filePath;
|
|
10910
|
-
if (this.operation)
|
|
10911
|
-
props.operation = this.operation;
|
|
10912
|
-
if (this.cause)
|
|
10913
|
-
props.cause = this.cause;
|
|
10914
|
-
return props;
|
|
10915
|
-
}
|
|
10916
|
-
};
|
|
10917
|
-
exports2.FileSystemError = FileSystemError;
|
|
10918
|
-
}
|
|
10919
|
-
});
|
|
10920
|
-
|
|
10921
10718
|
// ../codegen-types/dist/errors/ProcessExecutionError.js
|
|
10922
10719
|
var require_ProcessExecutionError = __commonJS({
|
|
10923
10720
|
"../codegen-types/dist/errors/ProcessExecutionError.js"(exports2) {
|
|
@@ -10955,230 +10752,6 @@ var require_ProcessExecutionError = __commonJS({
|
|
|
10955
10752
|
}
|
|
10956
10753
|
});
|
|
10957
10754
|
|
|
10958
|
-
// ../codegen-types/dist/errors/AgentConfigurationError.js
|
|
10959
|
-
var require_AgentConfigurationError = __commonJS({
|
|
10960
|
-
"../codegen-types/dist/errors/AgentConfigurationError.js"(exports2) {
|
|
10961
|
-
"use strict";
|
|
10962
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10963
|
-
exports2.AgentConfigurationError = void 0;
|
|
10964
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
10965
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
10966
|
-
var AgentConfigurationError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10967
|
-
constructor(message, options) {
|
|
10968
|
-
super(message);
|
|
10969
|
-
this.name = "AgentConfigurationError";
|
|
10970
|
-
this.errorType = ErrorTypes_1.ErrorType.AGENT_CONFIGURATION_ERROR;
|
|
10971
|
-
this.expected = false;
|
|
10972
|
-
this.retryable = false;
|
|
10973
|
-
this.extensionType = options?.extensionType;
|
|
10974
|
-
this.agentType = options?.agentType;
|
|
10975
|
-
}
|
|
10976
|
-
getAdditionalProperties() {
|
|
10977
|
-
const props = {};
|
|
10978
|
-
if (this.extensionType)
|
|
10979
|
-
props.extensionType = this.extensionType;
|
|
10980
|
-
if (this.agentType)
|
|
10981
|
-
props.agentType = this.agentType;
|
|
10982
|
-
return props;
|
|
10983
|
-
}
|
|
10984
|
-
};
|
|
10985
|
-
exports2.AgentConfigurationError = AgentConfigurationError;
|
|
10986
|
-
}
|
|
10987
|
-
});
|
|
10988
|
-
|
|
10989
|
-
// ../codegen-types/dist/errors/ScaffoldingError.js
|
|
10990
|
-
var require_ScaffoldingError = __commonJS({
|
|
10991
|
-
"../codegen-types/dist/errors/ScaffoldingError.js"(exports2) {
|
|
10992
|
-
"use strict";
|
|
10993
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
10994
|
-
exports2.ScaffoldingError = void 0;
|
|
10995
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
10996
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
10997
|
-
var ScaffoldingError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
10998
|
-
constructor(message, options) {
|
|
10999
|
-
super(message);
|
|
11000
|
-
this.name = "ScaffoldingError";
|
|
11001
|
-
this.errorType = ErrorTypes_1.ErrorType.SCAFFOLDING_ERROR;
|
|
11002
|
-
this.expected = false;
|
|
11003
|
-
this.retryable = false;
|
|
11004
|
-
this.extensionType = options?.extensionType;
|
|
11005
|
-
this.scaffoldPath = options?.scaffoldPath;
|
|
11006
|
-
this.cause = options?.cause;
|
|
11007
|
-
}
|
|
11008
|
-
getAdditionalProperties() {
|
|
11009
|
-
const props = {};
|
|
11010
|
-
if (this.extensionType)
|
|
11011
|
-
props.extensionType = this.extensionType;
|
|
11012
|
-
if (this.scaffoldPath)
|
|
11013
|
-
props.scaffoldPath = this.scaffoldPath;
|
|
11014
|
-
if (this.cause)
|
|
11015
|
-
props.cause = this.cause;
|
|
11016
|
-
return props;
|
|
11017
|
-
}
|
|
11018
|
-
};
|
|
11019
|
-
exports2.ScaffoldingError = ScaffoldingError;
|
|
11020
|
-
}
|
|
11021
|
-
});
|
|
11022
|
-
|
|
11023
|
-
// ../codegen-types/dist/errors/ResourceNotFoundError.js
|
|
11024
|
-
var require_ResourceNotFoundError = __commonJS({
|
|
11025
|
-
"../codegen-types/dist/errors/ResourceNotFoundError.js"(exports2) {
|
|
11026
|
-
"use strict";
|
|
11027
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11028
|
-
exports2.ResourceNotFoundError = void 0;
|
|
11029
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
11030
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
11031
|
-
var ResourceNotFoundError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
11032
|
-
constructor(message, options) {
|
|
11033
|
-
super(message);
|
|
11034
|
-
this.name = "ResourceNotFoundError";
|
|
11035
|
-
this.errorType = ErrorTypes_1.ErrorType.RESOURCE_NOT_FOUND_ERROR;
|
|
11036
|
-
this.expected = false;
|
|
11037
|
-
this.retryable = false;
|
|
11038
|
-
this.resourceType = options?.resourceType;
|
|
11039
|
-
this.resourceId = options?.resourceId;
|
|
11040
|
-
}
|
|
11041
|
-
getAdditionalProperties() {
|
|
11042
|
-
const props = {};
|
|
11043
|
-
if (this.resourceType)
|
|
11044
|
-
props.resourceType = this.resourceType;
|
|
11045
|
-
if (this.resourceId)
|
|
11046
|
-
props.resourceId = this.resourceId;
|
|
11047
|
-
return props;
|
|
11048
|
-
}
|
|
11049
|
-
};
|
|
11050
|
-
exports2.ResourceNotFoundError = ResourceNotFoundError;
|
|
11051
|
-
}
|
|
11052
|
-
});
|
|
11053
|
-
|
|
11054
|
-
// ../codegen-types/dist/errors/PlanningError.js
|
|
11055
|
-
var require_PlanningError = __commonJS({
|
|
11056
|
-
"../codegen-types/dist/errors/PlanningError.js"(exports2) {
|
|
11057
|
-
"use strict";
|
|
11058
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11059
|
-
exports2.PlanningError = void 0;
|
|
11060
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
11061
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
11062
|
-
var PlanningError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
11063
|
-
constructor(message, options) {
|
|
11064
|
-
super(message);
|
|
11065
|
-
this.name = "PlanningError";
|
|
11066
|
-
this.errorType = ErrorTypes_1.ErrorType.PLANNING_ERROR;
|
|
11067
|
-
this.expected = false;
|
|
11068
|
-
this.retryable = false;
|
|
11069
|
-
this.attemptCount = options?.attemptCount;
|
|
11070
|
-
this.lastError = options?.lastError;
|
|
11071
|
-
}
|
|
11072
|
-
getAdditionalProperties() {
|
|
11073
|
-
const props = {};
|
|
11074
|
-
if (this.attemptCount !== void 0)
|
|
11075
|
-
props.attemptCount = this.attemptCount;
|
|
11076
|
-
if (this.lastError)
|
|
11077
|
-
props.lastError = this.lastError;
|
|
11078
|
-
return props;
|
|
11079
|
-
}
|
|
11080
|
-
};
|
|
11081
|
-
exports2.PlanningError = PlanningError;
|
|
11082
|
-
}
|
|
11083
|
-
});
|
|
11084
|
-
|
|
11085
|
-
// ../codegen-types/dist/errors/ExtensionGenerationError.js
|
|
11086
|
-
var require_ExtensionGenerationError = __commonJS({
|
|
11087
|
-
"../codegen-types/dist/errors/ExtensionGenerationError.js"(exports2) {
|
|
11088
|
-
"use strict";
|
|
11089
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11090
|
-
exports2.ExtensionGenerationError = void 0;
|
|
11091
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
11092
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
11093
|
-
var ExtensionGenerationError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
11094
|
-
constructor(message, options) {
|
|
11095
|
-
super(message);
|
|
11096
|
-
this.name = "ExtensionGenerationError";
|
|
11097
|
-
this.errorType = ErrorTypes_1.ErrorType.EXTENSION_GENERATION_ERROR;
|
|
11098
|
-
this.expected = false;
|
|
11099
|
-
this.retryable = false;
|
|
11100
|
-
this.extensionName = options?.extensionName;
|
|
11101
|
-
this.extensionType = options?.extensionType;
|
|
11102
|
-
this.operation = options?.operation;
|
|
11103
|
-
this.filePath = options?.filePath;
|
|
11104
|
-
}
|
|
11105
|
-
getAdditionalProperties() {
|
|
11106
|
-
const props = {};
|
|
11107
|
-
if (this.extensionName)
|
|
11108
|
-
props.extensionName = this.extensionName;
|
|
11109
|
-
if (this.extensionType)
|
|
11110
|
-
props.extensionType = this.extensionType;
|
|
11111
|
-
if (this.operation)
|
|
11112
|
-
props.operation = this.operation;
|
|
11113
|
-
if (this.filePath)
|
|
11114
|
-
props.filePath = this.filePath;
|
|
11115
|
-
return props;
|
|
11116
|
-
}
|
|
11117
|
-
};
|
|
11118
|
-
exports2.ExtensionGenerationError = ExtensionGenerationError;
|
|
11119
|
-
}
|
|
11120
|
-
});
|
|
11121
|
-
|
|
11122
|
-
// ../codegen-types/dist/errors/ValidationConfigurationError.js
|
|
11123
|
-
var require_ValidationConfigurationError = __commonJS({
|
|
11124
|
-
"../codegen-types/dist/errors/ValidationConfigurationError.js"(exports2) {
|
|
11125
|
-
"use strict";
|
|
11126
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11127
|
-
exports2.ValidationConfigurationError = void 0;
|
|
11128
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
11129
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
11130
|
-
var ValidationConfigurationError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
11131
|
-
constructor(message, options) {
|
|
11132
|
-
super(message);
|
|
11133
|
-
this.name = "ValidationConfigurationError";
|
|
11134
|
-
this.errorType = ErrorTypes_1.ErrorType.VALIDATION_CONFIGURATION_ERROR;
|
|
11135
|
-
this.expected = false;
|
|
11136
|
-
this.retryable = false;
|
|
11137
|
-
this.validatorType = options?.validatorType;
|
|
11138
|
-
this.fixerType = options?.fixerType;
|
|
11139
|
-
}
|
|
11140
|
-
getAdditionalProperties() {
|
|
11141
|
-
const props = {};
|
|
11142
|
-
if (this.validatorType)
|
|
11143
|
-
props.validatorType = this.validatorType;
|
|
11144
|
-
if (this.fixerType)
|
|
11145
|
-
props.fixerType = this.fixerType;
|
|
11146
|
-
return props;
|
|
11147
|
-
}
|
|
11148
|
-
};
|
|
11149
|
-
exports2.ValidationConfigurationError = ValidationConfigurationError;
|
|
11150
|
-
}
|
|
11151
|
-
});
|
|
11152
|
-
|
|
11153
|
-
// ../codegen-types/dist/errors/AutoFixError.js
|
|
11154
|
-
var require_AutoFixError = __commonJS({
|
|
11155
|
-
"../codegen-types/dist/errors/AutoFixError.js"(exports2) {
|
|
11156
|
-
"use strict";
|
|
11157
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11158
|
-
exports2.AutoFixError = void 0;
|
|
11159
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
11160
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
11161
|
-
var AutoFixError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
11162
|
-
constructor(message, options) {
|
|
11163
|
-
super(message);
|
|
11164
|
-
this.name = "AutoFixError";
|
|
11165
|
-
this.errorType = ErrorTypes_1.ErrorType.AUTO_FIX_ERROR;
|
|
11166
|
-
this.expected = false;
|
|
11167
|
-
this.retryable = true;
|
|
11168
|
-
this.validationType = options?.validationType;
|
|
11169
|
-
this.cause = options?.cause;
|
|
11170
|
-
}
|
|
11171
|
-
getAdditionalProperties() {
|
|
11172
|
-
return {
|
|
11173
|
-
validationType: this.validationType,
|
|
11174
|
-
cause: this.cause
|
|
11175
|
-
};
|
|
11176
|
-
}
|
|
11177
|
-
};
|
|
11178
|
-
exports2.AutoFixError = AutoFixError;
|
|
11179
|
-
}
|
|
11180
|
-
});
|
|
11181
|
-
|
|
11182
10755
|
// ../codegen-types/dist/errors/UnexpectedError.js
|
|
11183
10756
|
var require_UnexpectedError = __commonJS({
|
|
11184
10757
|
"../codegen-types/dist/errors/UnexpectedError.js"(exports2) {
|
|
@@ -11228,40 +10801,6 @@ var require_TimeoutError = __commonJS({
|
|
|
11228
10801
|
}
|
|
11229
10802
|
});
|
|
11230
10803
|
|
|
11231
|
-
// ../codegen-types/dist/errors/GenerateCodegenObjectError.js
|
|
11232
|
-
var require_GenerateCodegenObjectError = __commonJS({
|
|
11233
|
-
"../codegen-types/dist/errors/GenerateCodegenObjectError.js"(exports2) {
|
|
11234
|
-
"use strict";
|
|
11235
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11236
|
-
exports2.GenerateObjectError = void 0;
|
|
11237
|
-
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
11238
|
-
var ErrorTypes_1 = require_ErrorTypes();
|
|
11239
|
-
var GenerateObjectError = class extends BaseCodegenError_1.BaseCodegenError {
|
|
11240
|
-
constructor(message, options) {
|
|
11241
|
-
super(message);
|
|
11242
|
-
this.name = "generateObjectError";
|
|
11243
|
-
this.errorType = ErrorTypes_1.ErrorType.GENERATE_OBJECT_ERROR;
|
|
11244
|
-
this.retryable = false;
|
|
11245
|
-
this.expected = false;
|
|
11246
|
-
this.status = options?.status;
|
|
11247
|
-
this.statusText = options?.statusText;
|
|
11248
|
-
this.url = options?.url;
|
|
11249
|
-
}
|
|
11250
|
-
getAdditionalProperties() {
|
|
11251
|
-
const props = {};
|
|
11252
|
-
if (this.status !== void 0)
|
|
11253
|
-
props.status = this.status;
|
|
11254
|
-
if (this.statusText !== void 0)
|
|
11255
|
-
props.statusText = this.statusText;
|
|
11256
|
-
if (this.url !== void 0)
|
|
11257
|
-
props.url = this.url;
|
|
11258
|
-
return props;
|
|
11259
|
-
}
|
|
11260
|
-
};
|
|
11261
|
-
exports2.GenerateObjectError = GenerateObjectError;
|
|
11262
|
-
}
|
|
11263
|
-
});
|
|
11264
|
-
|
|
11265
10804
|
// ../codegen-types/dist/errors/MissingJobIdError.js
|
|
11266
10805
|
var require_MissingJobIdError = __commonJS({
|
|
11267
10806
|
"../codegen-types/dist/errors/MissingJobIdError.js"(exports2) {
|
|
@@ -11290,9 +10829,6 @@ var require_helpers2 = __commonJS({
|
|
|
11290
10829
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11291
10830
|
exports2.isCodegenError = isCodegenError;
|
|
11292
10831
|
exports2.toCodegenError = toCodegenError;
|
|
11293
|
-
exports2.getErrorType = getErrorType;
|
|
11294
|
-
exports2.isRetryableError = isRetryableError;
|
|
11295
|
-
exports2.isExpectedError = isExpectedError;
|
|
11296
10832
|
var BaseCodegenError_1 = require_BaseCodegenError();
|
|
11297
10833
|
var UnexpectedError_1 = require_UnexpectedError();
|
|
11298
10834
|
function isCodegenError(error) {
|
|
@@ -11317,28 +10853,6 @@ var require_helpers2 = __commonJS({
|
|
|
11317
10853
|
originalError: error
|
|
11318
10854
|
});
|
|
11319
10855
|
}
|
|
11320
|
-
function getErrorType(error) {
|
|
11321
|
-
if (typeof error === "object" && error !== null && "name" in error) {
|
|
11322
|
-
return typeof error.name === "string" ? error.name : null;
|
|
11323
|
-
}
|
|
11324
|
-
return null;
|
|
11325
|
-
}
|
|
11326
|
-
function isRetryableError(error) {
|
|
11327
|
-
if (isCodegenError(error)) {
|
|
11328
|
-
if (typeof error === "object" && error !== null && "retryable" in error) {
|
|
11329
|
-
return Boolean(error.retryable);
|
|
11330
|
-
}
|
|
11331
|
-
}
|
|
11332
|
-
return true;
|
|
11333
|
-
}
|
|
11334
|
-
function isExpectedError(error) {
|
|
11335
|
-
if (isCodegenError(error)) {
|
|
11336
|
-
if (typeof error === "object" && error !== null && "expected" in error) {
|
|
11337
|
-
return Boolean(error.expected);
|
|
11338
|
-
}
|
|
11339
|
-
}
|
|
11340
|
-
return false;
|
|
11341
|
-
}
|
|
11342
10856
|
}
|
|
11343
10857
|
});
|
|
11344
10858
|
|
|
@@ -11366,21 +10880,9 @@ var require_errors2 = __commonJS({
|
|
|
11366
10880
|
__exportStar2(require_ErrorTypes(), exports2);
|
|
11367
10881
|
__exportStar2(require_enums(), exports2);
|
|
11368
10882
|
__exportStar2(require_BaseCodegenError(), exports2);
|
|
11369
|
-
__exportStar2(require_CodeValidationError(), exports2);
|
|
11370
|
-
__exportStar2(require_UnsupportedExtensionTypeError(), exports2);
|
|
11371
|
-
__exportStar2(require_AIErrors(), exports2);
|
|
11372
|
-
__exportStar2(require_FileSystemError(), exports2);
|
|
11373
10883
|
__exportStar2(require_ProcessExecutionError(), exports2);
|
|
11374
|
-
__exportStar2(require_AgentConfigurationError(), exports2);
|
|
11375
|
-
__exportStar2(require_ScaffoldingError(), exports2);
|
|
11376
|
-
__exportStar2(require_ResourceNotFoundError(), exports2);
|
|
11377
|
-
__exportStar2(require_PlanningError(), exports2);
|
|
11378
|
-
__exportStar2(require_ExtensionGenerationError(), exports2);
|
|
11379
|
-
__exportStar2(require_ValidationConfigurationError(), exports2);
|
|
11380
|
-
__exportStar2(require_AutoFixError(), exports2);
|
|
11381
10884
|
__exportStar2(require_UnexpectedError(), exports2);
|
|
11382
10885
|
__exportStar2(require_TimeoutError(), exports2);
|
|
11383
|
-
__exportStar2(require_GenerateCodegenObjectError(), exports2);
|
|
11384
10886
|
__exportStar2(require_MissingJobIdError(), exports2);
|
|
11385
10887
|
__exportStar2(require_helpers2(), exports2);
|
|
11386
10888
|
}
|
|
@@ -12123,15 +11625,14 @@ var require_pre_run_decision = __commonJS({
|
|
|
12123
11625
|
const extensionName = siteUIExtension.name;
|
|
12124
11626
|
const currentType = siteUIExtension.type;
|
|
12125
11627
|
logger_12.logger.info(`[PreDecision] Found site UI extension: "${extensionName}" (current type: ${currentType})`);
|
|
12126
|
-
const { widget: widgetType, component: componentType } = getSiteUITypePair(currentType);
|
|
12127
11628
|
const options = [
|
|
12128
11629
|
{
|
|
12129
|
-
id:
|
|
11630
|
+
id: types_1.ExtensionType.CUSTOM_ELEMENT_WIDGET,
|
|
12130
11631
|
label: "Custom Element Widget",
|
|
12131
11632
|
description: "A self-contained widget built as a Custom Element, embedded on the site. Best for standalone, reusable components."
|
|
12132
11633
|
},
|
|
12133
11634
|
{
|
|
12134
|
-
id:
|
|
11635
|
+
id: types_1.ExtensionType.EDITOR_REACT_COMPONENT,
|
|
12135
11636
|
label: "Editor React Component",
|
|
12136
11637
|
description: "A React component that integrates with the site builder. Best for components that need to work with Wix editor features."
|
|
12137
11638
|
}
|
|
@@ -12152,19 +11653,7 @@ var require_pre_run_decision = __commonJS({
|
|
|
12152
11653
|
};
|
|
12153
11654
|
exports2.checkSiteUIDecision = checkSiteUIDecision;
|
|
12154
11655
|
function isSiteUIExtension(extension) {
|
|
12155
|
-
return extension.type === types_1.ExtensionType.
|
|
12156
|
-
}
|
|
12157
|
-
function isLegacySiteUIType(type) {
|
|
12158
|
-
return type === types_1.ExtensionType.SITE_WIDGET || type === types_1.ExtensionType.SITE_COMPONENT;
|
|
12159
|
-
}
|
|
12160
|
-
function getSiteUITypePair(type) {
|
|
12161
|
-
return isLegacySiteUIType(type) ? {
|
|
12162
|
-
widget: types_1.ExtensionType.SITE_WIDGET,
|
|
12163
|
-
component: types_1.ExtensionType.SITE_COMPONENT
|
|
12164
|
-
} : {
|
|
12165
|
-
widget: types_1.ExtensionType.CUSTOM_ELEMENT_WIDGET,
|
|
12166
|
-
component: types_1.ExtensionType.EDITOR_REACT_COMPONENT
|
|
12167
|
-
};
|
|
11656
|
+
return extension.type === types_1.ExtensionType.CUSTOM_ELEMENT_WIDGET || extension.type === types_1.ExtensionType.EDITOR_REACT_COMPONENT;
|
|
12168
11657
|
}
|
|
12169
11658
|
function applyTypeToBlueprint(blueprint, extensionName, type, label) {
|
|
12170
11659
|
const summaryNotice = `[USER DECISION] The user explicitly chose "${label}" for the "${extensionName}" extension. You MUST generate it as type ${type}. Do NOT use any other type.`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.341",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"esbuild": "^0.27.2",
|
|
29
29
|
"vitest": "^4.0.16"
|
|
30
30
|
},
|
|
31
|
-
"falconPackageHash": "
|
|
31
|
+
"falconPackageHash": "ffdf9ad345feb09d586cb8079cb3df12183d901c5c711a37790af82d"
|
|
32
32
|
}
|