@wix/ditto-codegen-public 1.0.132 → 1.0.133
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 +273 -216
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -117209,6 +117209,23 @@ ${hasEmbeddedScriptExtensions ? (0, embeddedScriptDynamicParameters_1.embeddedSc
|
|
|
117209
117209
|
}
|
|
117210
117210
|
});
|
|
117211
117211
|
|
|
117212
|
+
// dist/agents/utils/caching.js
|
|
117213
|
+
var require_caching = __commonJS({
|
|
117214
|
+
"dist/agents/utils/caching.js"(exports2) {
|
|
117215
|
+
"use strict";
|
|
117216
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
117217
|
+
exports2.withCaching = void 0;
|
|
117218
|
+
var withCaching = (ttl = "5m") => {
|
|
117219
|
+
return {
|
|
117220
|
+
anthropic: {
|
|
117221
|
+
cache_control: { type: "ephemeral", ttl }
|
|
117222
|
+
}
|
|
117223
|
+
};
|
|
117224
|
+
};
|
|
117225
|
+
exports2.withCaching = withCaching;
|
|
117226
|
+
}
|
|
117227
|
+
});
|
|
117228
|
+
|
|
117212
117229
|
// ../../node_modules/zod/index.cjs
|
|
117213
117230
|
var require_zod = __commonJS({
|
|
117214
117231
|
"../../node_modules/zod/index.cjs"(exports2) {
|
|
@@ -117252,117 +117269,6 @@ var require_zod = __commonJS({
|
|
|
117252
117269
|
}
|
|
117253
117270
|
});
|
|
117254
117271
|
|
|
117255
|
-
// dist/agents/utils.js
|
|
117256
|
-
var require_utils11 = __commonJS({
|
|
117257
|
-
"dist/agents/utils.js"(exports2) {
|
|
117258
|
-
"use strict";
|
|
117259
|
-
var __importDefault2 = exports2 && exports2.__importDefault || function(mod2) {
|
|
117260
|
-
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
117261
|
-
};
|
|
117262
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
117263
|
-
exports2.extractApiNames = exports2.getErrorMessage = exports2.withCaching = exports2.FilesSchema = exports2.FileItemSchema = void 0;
|
|
117264
|
-
exports2.shouldUseDataPrompt = shouldUseDataPrompt;
|
|
117265
|
-
exports2.shouldUseDynamicParametersPrompt = shouldUseDynamicParametersPrompt;
|
|
117266
|
-
exports2.loadRelevantFilesAsString = loadRelevantFilesAsString;
|
|
117267
|
-
var zod_1 = require_zod();
|
|
117268
|
-
var fs_1 = __importDefault2(require("fs"));
|
|
117269
|
-
var path_1 = __importDefault2(require("path"));
|
|
117270
|
-
var ditto_codegen_types_12 = require_dist();
|
|
117271
|
-
exports2.FileItemSchema = zod_1.z.discriminatedUnion("operation", [
|
|
117272
|
-
zod_1.z.object({
|
|
117273
|
-
operation: zod_1.z.union([
|
|
117274
|
-
zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
|
|
117275
|
-
zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.UPDATE)
|
|
117276
|
-
]).describe("File operation: insert (new file), update (modify existing)").default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
|
|
117277
|
-
path: zod_1.z.string().describe("Relative file path from project root"),
|
|
117278
|
-
content: zod_1.z.string().describe("Complete file content as a string (for JSON files, stringify the object). Required for insert and update operations.")
|
|
117279
|
-
}),
|
|
117280
|
-
zod_1.z.object({
|
|
117281
|
-
operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.DELETE),
|
|
117282
|
-
path: zod_1.z.string().describe("Relative file path from project root")
|
|
117283
|
-
}),
|
|
117284
|
-
zod_1.z.object({
|
|
117285
|
-
operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.EDIT),
|
|
117286
|
-
path: zod_1.z.string().describe("Relative file path from project root"),
|
|
117287
|
-
replacements: zod_1.z.array(zod_1.z.object({
|
|
117288
|
-
oldString: zod_1.z.string().describe("The text to replace (must match the file contents exactly, including all whitespace and indentation)"),
|
|
117289
|
-
newString: zod_1.z.string().describe("The edited text to replace the oldString"),
|
|
117290
|
-
replaceAll: zod_1.z.boolean().optional().describe("Replace all occurrences of oldString (default false)")
|
|
117291
|
-
})).min(1).describe("List of string replacements to apply")
|
|
117292
|
-
})
|
|
117293
|
-
]).describe(`Representation of an operation that modifies a file on the local file system.
|
|
117294
|
-
Use the 'insert' operation to create a new file.
|
|
117295
|
-
Use the 'delete' operation to remove a file.
|
|
117296
|
-
To modify a file, you can either use the 'edit' operation to replace a specific strings with new strings (THIS IS THE PREFERRED WAY TO MODIFY A FILE), or use the 'update' operation to replace the entire file with new content.`);
|
|
117297
|
-
exports2.FilesSchema = zod_1.z.object({
|
|
117298
|
-
files: zod_1.z.array(exports2.FileItemSchema).default([]).describe("An array of files")
|
|
117299
|
-
});
|
|
117300
|
-
var withCaching = (ttl = "5m") => {
|
|
117301
|
-
return {
|
|
117302
|
-
anthropic: {
|
|
117303
|
-
cache_control: { type: "ephemeral", ttl }
|
|
117304
|
-
}
|
|
117305
|
-
};
|
|
117306
|
-
};
|
|
117307
|
-
exports2.withCaching = withCaching;
|
|
117308
|
-
function shouldUseDataPrompt(params) {
|
|
117309
|
-
const { plan, previousResources } = params;
|
|
117310
|
-
return Boolean(plan?.collections?.length || previousResources?.collections?.length);
|
|
117311
|
-
}
|
|
117312
|
-
function shouldUseDynamicParametersPrompt(params) {
|
|
117313
|
-
const { plan, previousResources } = params;
|
|
117314
|
-
return Boolean(plan?.embeddedScriptParameters?.length || previousResources?.embeddedScriptParameters?.length);
|
|
117315
|
-
}
|
|
117316
|
-
function loadRelevantFiles(relevantFilePaths = [], basePath) {
|
|
117317
|
-
return relevantFilePaths.map((filePath) => {
|
|
117318
|
-
const fullPath = path_1.default.isAbsolute(basePath) ? path_1.default.join(basePath, filePath) : path_1.default.join(process.cwd(), basePath, filePath);
|
|
117319
|
-
try {
|
|
117320
|
-
if (!fs_1.default.existsSync(fullPath)) {
|
|
117321
|
-
return `Path: ${filePath}
|
|
117322
|
-
|
|
117323
|
-
[File does not exist]`;
|
|
117324
|
-
}
|
|
117325
|
-
const stats = fs_1.default.statSync(fullPath);
|
|
117326
|
-
if (stats.isDirectory()) {
|
|
117327
|
-
return `Path: ${filePath}
|
|
117328
|
-
|
|
117329
|
-
[Path is a directory, not a file]`;
|
|
117330
|
-
}
|
|
117331
|
-
const content = fs_1.default.readFileSync(fullPath, "utf8");
|
|
117332
|
-
return `Path: ${filePath}
|
|
117333
|
-
|
|
117334
|
-
${content}`;
|
|
117335
|
-
} catch (error) {
|
|
117336
|
-
return `Path: ${filePath}
|
|
117337
|
-
|
|
117338
|
-
[Could not read file: ${error instanceof Error ? error.message : "Unknown error"}]`;
|
|
117339
|
-
}
|
|
117340
|
-
});
|
|
117341
|
-
}
|
|
117342
|
-
function loadRelevantFilesAsString(relevantFilePaths = [], basePath) {
|
|
117343
|
-
const srcOnlyPaths = relevantFilePaths.filter((p) => {
|
|
117344
|
-
const normalized = path_1.default.normalize(p);
|
|
117345
|
-
return normalized.startsWith("src" + path_1.default.sep);
|
|
117346
|
-
});
|
|
117347
|
-
return loadRelevantFiles(srcOnlyPaths, basePath).join("\n\n---\n\n");
|
|
117348
|
-
}
|
|
117349
|
-
var getErrorMessage = (error) => {
|
|
117350
|
-
if (error?.response?.data && error?.response?.data?.message.length > 0) {
|
|
117351
|
-
return JSON.stringify(error.response.data);
|
|
117352
|
-
} else if (error?.message && error?.message.length > 0) {
|
|
117353
|
-
return JSON.stringify(error.message);
|
|
117354
|
-
} else {
|
|
117355
|
-
return JSON.stringify(error);
|
|
117356
|
-
}
|
|
117357
|
-
};
|
|
117358
|
-
exports2.getErrorMessage = getErrorMessage;
|
|
117359
|
-
var extractApiNames = (extension) => {
|
|
117360
|
-
return extension.relatedApis?.map((api) => api.name).filter((name) => !!name) || [];
|
|
117361
|
-
};
|
|
117362
|
-
exports2.extractApiNames = extractApiNames;
|
|
117363
|
-
}
|
|
117364
|
-
});
|
|
117365
|
-
|
|
117366
117272
|
// dist/ApiSpecSchema.js
|
|
117367
117273
|
var require_ApiSpecSchema = __commonJS({
|
|
117368
117274
|
"dist/ApiSpecSchema.js"(exports2) {
|
|
@@ -117865,7 +117771,7 @@ var require_PlannerAgent = __commonJS({
|
|
|
117865
117771
|
var anthropic_1 = require_dist6();
|
|
117866
117772
|
var ai_1 = require_dist10();
|
|
117867
117773
|
var planner_1 = require_planner();
|
|
117868
|
-
var
|
|
117774
|
+
var caching_1 = require_caching();
|
|
117869
117775
|
var ditto_codegen_types_12 = require_dist();
|
|
117870
117776
|
var PlannerAgentSchema_1 = require_PlannerAgentSchema();
|
|
117871
117777
|
var forceDataPermissionsToAnyone_1 = require_forceDataPermissionsToAnyone();
|
|
@@ -117901,7 +117807,7 @@ ${error}` : ""}
|
|
|
117901
117807
|
{
|
|
117902
117808
|
role: "system",
|
|
117903
117809
|
content: systemPrompt,
|
|
117904
|
-
providerOptions: (0,
|
|
117810
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
117905
117811
|
},
|
|
117906
117812
|
{
|
|
117907
117813
|
role: "user",
|
|
@@ -119701,6 +119607,77 @@ ${useDynamicParameters ? (0, dynamicParameters_1.dynamicParametersManagementProm
|
|
|
119701
119607
|
}
|
|
119702
119608
|
});
|
|
119703
119609
|
|
|
119610
|
+
// dist/agents/utils/file-operations.js
|
|
119611
|
+
var require_file_operations = __commonJS({
|
|
119612
|
+
"dist/agents/utils/file-operations.js"(exports2) {
|
|
119613
|
+
"use strict";
|
|
119614
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
119615
|
+
exports2.FilesSchema = exports2.FileItemSchema = void 0;
|
|
119616
|
+
var zod_1 = require_zod();
|
|
119617
|
+
var ditto_codegen_types_12 = require_dist();
|
|
119618
|
+
exports2.FileItemSchema = zod_1.z.discriminatedUnion("operation", [
|
|
119619
|
+
zod_1.z.object({
|
|
119620
|
+
operation: zod_1.z.union([
|
|
119621
|
+
zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
|
|
119622
|
+
zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.UPDATE)
|
|
119623
|
+
]).describe("File operation: insert (new file), update (modify existing)").default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
|
|
119624
|
+
path: zod_1.z.string().describe("Relative file path from project root"),
|
|
119625
|
+
content: zod_1.z.string().describe("Complete file content as a string (for JSON files, stringify the object). Required for insert and update operations.")
|
|
119626
|
+
}),
|
|
119627
|
+
zod_1.z.object({
|
|
119628
|
+
operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.DELETE),
|
|
119629
|
+
path: zod_1.z.string().describe("Relative file path from project root")
|
|
119630
|
+
}),
|
|
119631
|
+
zod_1.z.object({
|
|
119632
|
+
operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.EDIT),
|
|
119633
|
+
path: zod_1.z.string().describe("Relative file path from project root"),
|
|
119634
|
+
replacements: zod_1.z.array(zod_1.z.object({
|
|
119635
|
+
oldString: zod_1.z.string().describe("The text to replace (must match the file contents exactly, including all whitespace and indentation)"),
|
|
119636
|
+
newString: zod_1.z.string().describe("The edited text to replace the oldString"),
|
|
119637
|
+
replaceAll: zod_1.z.boolean().optional().describe("Replace all occurrences of oldString (default false)")
|
|
119638
|
+
})).min(1).describe("List of string replacements to apply")
|
|
119639
|
+
})
|
|
119640
|
+
]).describe(`Representation of an operation that modifies a file on the local file system.
|
|
119641
|
+
Use the 'insert' operation to create a new file.
|
|
119642
|
+
Use the 'delete' operation to remove a file.
|
|
119643
|
+
To modify a file, you can either use the 'edit' operation to replace a specific strings with new strings (THIS IS THE PREFERRED WAY TO MODIFY A FILE), or use the 'update' operation to replace the entire file with new content.`);
|
|
119644
|
+
exports2.FilesSchema = zod_1.z.object({
|
|
119645
|
+
files: zod_1.z.array(exports2.FileItemSchema).default([]).describe("An array of files")
|
|
119646
|
+
});
|
|
119647
|
+
}
|
|
119648
|
+
});
|
|
119649
|
+
|
|
119650
|
+
// dist/agents/utils/api.js
|
|
119651
|
+
var require_api3 = __commonJS({
|
|
119652
|
+
"dist/agents/utils/api.js"(exports2) {
|
|
119653
|
+
"use strict";
|
|
119654
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
119655
|
+
exports2.extractApiNames = void 0;
|
|
119656
|
+
var extractApiNames = (extension) => {
|
|
119657
|
+
return extension.relatedApis?.map((api) => api.name).filter((name) => !!name) || [];
|
|
119658
|
+
};
|
|
119659
|
+
exports2.extractApiNames = extractApiNames;
|
|
119660
|
+
}
|
|
119661
|
+
});
|
|
119662
|
+
|
|
119663
|
+
// dist/agents/utils/prompt-selectors.js
|
|
119664
|
+
var require_prompt_selectors = __commonJS({
|
|
119665
|
+
"dist/agents/utils/prompt-selectors.js"(exports2) {
|
|
119666
|
+
"use strict";
|
|
119667
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
119668
|
+
exports2.shouldUseDataPrompt = shouldUseDataPrompt;
|
|
119669
|
+
exports2.shouldUseDynamicParametersPrompt = shouldUseDynamicParametersPrompt;
|
|
119670
|
+
function shouldUseDataPrompt(params) {
|
|
119671
|
+
const { plan, previousResources } = params;
|
|
119672
|
+
return Boolean(plan?.collections?.length || previousResources?.collections?.length);
|
|
119673
|
+
}
|
|
119674
|
+
function shouldUseDynamicParametersPrompt(params) {
|
|
119675
|
+
const { plan, previousResources } = params;
|
|
119676
|
+
return Boolean(plan?.embeddedScriptParameters?.length || previousResources?.embeddedScriptParameters?.length);
|
|
119677
|
+
}
|
|
119678
|
+
}
|
|
119679
|
+
});
|
|
119680
|
+
|
|
119704
119681
|
// dist/system-prompts/load-examples.js
|
|
119705
119682
|
var require_load_examples = __commonJS({
|
|
119706
119683
|
"dist/system-prompts/load-examples.js"(exports2) {
|
|
@@ -120389,6 +120366,53 @@ var require_dist12 = __commonJS({
|
|
|
120389
120366
|
}
|
|
120390
120367
|
});
|
|
120391
120368
|
|
|
120369
|
+
// dist/agents/utils/file-loading.js
|
|
120370
|
+
var require_file_loading = __commonJS({
|
|
120371
|
+
"dist/agents/utils/file-loading.js"(exports2) {
|
|
120372
|
+
"use strict";
|
|
120373
|
+
var __importDefault2 = exports2 && exports2.__importDefault || function(mod2) {
|
|
120374
|
+
return mod2 && mod2.__esModule ? mod2 : { "default": mod2 };
|
|
120375
|
+
};
|
|
120376
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
120377
|
+
exports2.loadRelevantFilesAsString = loadRelevantFilesAsString;
|
|
120378
|
+
var fs_1 = __importDefault2(require("fs"));
|
|
120379
|
+
var path_1 = __importDefault2(require("path"));
|
|
120380
|
+
function loadRelevantFiles(relevantFilePaths = [], basePath) {
|
|
120381
|
+
return relevantFilePaths.map((filePath) => {
|
|
120382
|
+
const fullPath = path_1.default.isAbsolute(basePath) ? path_1.default.join(basePath, filePath) : path_1.default.join(process.cwd(), basePath, filePath);
|
|
120383
|
+
try {
|
|
120384
|
+
if (!fs_1.default.existsSync(fullPath)) {
|
|
120385
|
+
return `Path: ${filePath}
|
|
120386
|
+
|
|
120387
|
+
[File does not exist]`;
|
|
120388
|
+
}
|
|
120389
|
+
const stats = fs_1.default.statSync(fullPath);
|
|
120390
|
+
if (stats.isDirectory()) {
|
|
120391
|
+
return `Path: ${filePath}
|
|
120392
|
+
|
|
120393
|
+
[Path is a directory, not a file]`;
|
|
120394
|
+
}
|
|
120395
|
+
const content = fs_1.default.readFileSync(fullPath, "utf8");
|
|
120396
|
+
return `Path: ${filePath}
|
|
120397
|
+
|
|
120398
|
+
${content}`;
|
|
120399
|
+
} catch (error) {
|
|
120400
|
+
return `Path: ${filePath}
|
|
120401
|
+
|
|
120402
|
+
[Could not read file: ${error instanceof Error ? error.message : "Unknown error"}]`;
|
|
120403
|
+
}
|
|
120404
|
+
});
|
|
120405
|
+
}
|
|
120406
|
+
function loadRelevantFilesAsString(relevantFilePaths = [], basePath) {
|
|
120407
|
+
const srcOnlyPaths = relevantFilePaths.filter((p) => {
|
|
120408
|
+
const normalized = path_1.default.normalize(p);
|
|
120409
|
+
return normalized.startsWith("src" + path_1.default.sep);
|
|
120410
|
+
});
|
|
120411
|
+
return loadRelevantFiles(srcOnlyPaths, basePath).join("\n\n---\n\n");
|
|
120412
|
+
}
|
|
120413
|
+
}
|
|
120414
|
+
});
|
|
120415
|
+
|
|
120392
120416
|
// dist/agents/userPrompt.js
|
|
120393
120417
|
var require_userPrompt = __commonJS({
|
|
120394
120418
|
"dist/agents/userPrompt.js"(exports2) {
|
|
@@ -120397,7 +120421,7 @@ var require_userPrompt = __commonJS({
|
|
|
120397
120421
|
exports2.buildUserPromptForCodeGenerationAgent = void 0;
|
|
120398
120422
|
var types_1 = require_types_impl();
|
|
120399
120423
|
var ditto_codegen_types_12 = require_dist();
|
|
120400
|
-
var
|
|
120424
|
+
var file_loading_1 = require_file_loading();
|
|
120401
120425
|
var buildUserPromptForCodeGenerationAgent = (params, primaryAction) => {
|
|
120402
120426
|
const { extension, blueprint, scaffolds, userRequestSummary, relevantFilePaths, plan, basePath, previousResources } = params;
|
|
120403
120427
|
const contextSections = [];
|
|
@@ -120414,7 +120438,7 @@ var require_userPrompt = __commonJS({
|
|
|
120414
120438
|
${userRequestSummary}`);
|
|
120415
120439
|
}
|
|
120416
120440
|
if (relevantFilePaths) {
|
|
120417
|
-
const relevantFiles = (0,
|
|
120441
|
+
const relevantFiles = (0, file_loading_1.loadRelevantFilesAsString)(relevantFilePaths, basePath);
|
|
120418
120442
|
contextSections.push(`
|
|
120419
120443
|
## RELEVANT FILES
|
|
120420
120444
|
${relevantFiles}`);
|
|
@@ -120517,7 +120541,10 @@ var require_DashboardPageAgent2 = __commonJS({
|
|
|
120517
120541
|
var dashboardPagePrompt_1 = require_dashboardPagePrompt();
|
|
120518
120542
|
var anthropic_1 = require_dist6();
|
|
120519
120543
|
var ai_1 = require_dist10();
|
|
120520
|
-
var
|
|
120544
|
+
var file_operations_1 = require_file_operations();
|
|
120545
|
+
var caching_1 = require_caching();
|
|
120546
|
+
var api_1 = require_api3();
|
|
120547
|
+
var prompt_selectors_1 = require_prompt_selectors();
|
|
120521
120548
|
var load_examples_1 = require_load_examples();
|
|
120522
120549
|
var codegen_common_logic_1 = require_dist12();
|
|
120523
120550
|
var userPrompt_1 = require_userPrompt();
|
|
@@ -120536,10 +120563,10 @@ var require_DashboardPageAgent2 = __commonJS({
|
|
|
120536
120563
|
async generate(params) {
|
|
120537
120564
|
const { blueprint, plan } = params;
|
|
120538
120565
|
const examples = (0, load_examples_1.loadExamples)([load_examples_1.types.DashboardPage]);
|
|
120539
|
-
const useData = (0,
|
|
120566
|
+
const useData = (0, prompt_selectors_1.shouldUseDataPrompt)(params);
|
|
120540
120567
|
const useApiSpec = Boolean(plan?.apiSpec);
|
|
120541
|
-
const useDynamicParameters = (0,
|
|
120542
|
-
const apiNames = (0,
|
|
120568
|
+
const useDynamicParameters = (0, prompt_selectors_1.shouldUseDynamicParametersPrompt)(params);
|
|
120569
|
+
const apiNames = (0, api_1.extractApiNames)(params.extension);
|
|
120543
120570
|
const systemPrompt = `${await this.buildSystemPrompt({ useData, useApiSpec, useDynamicParameters, apiNames })}
|
|
120544
120571
|
${examples}
|
|
120545
120572
|
`;
|
|
@@ -120549,12 +120576,12 @@ ${examples}
|
|
|
120549
120576
|
const model = (0, anthropic_1.createAnthropic)({ apiKey: this.apiKey })("claude-sonnet-4-5-20250929");
|
|
120550
120577
|
const result = await (0, ai_1.generateObject)({
|
|
120551
120578
|
model,
|
|
120552
|
-
schema:
|
|
120579
|
+
schema: file_operations_1.FilesSchema,
|
|
120553
120580
|
messages: [
|
|
120554
120581
|
{
|
|
120555
120582
|
role: "system",
|
|
120556
120583
|
content: systemPrompt,
|
|
120557
|
-
providerOptions: (0,
|
|
120584
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
120558
120585
|
},
|
|
120559
120586
|
{
|
|
120560
120587
|
role: "user",
|
|
@@ -120647,7 +120674,9 @@ var require_SiteComponentAgent2 = __commonJS({
|
|
|
120647
120674
|
exports2.SiteComponentAgent = void 0;
|
|
120648
120675
|
var anthropic_1 = require_dist6();
|
|
120649
120676
|
var ai_1 = require_dist10();
|
|
120650
|
-
var
|
|
120677
|
+
var file_operations_1 = require_file_operations();
|
|
120678
|
+
var caching_1 = require_caching();
|
|
120679
|
+
var api_1 = require_api3();
|
|
120651
120680
|
var siteComponentPrompt_1 = require_siteComponentPrompt();
|
|
120652
120681
|
var codegen_common_logic_1 = require_dist12();
|
|
120653
120682
|
var userPrompt_1 = require_userPrompt();
|
|
@@ -120665,7 +120694,7 @@ var require_SiteComponentAgent2 = __commonJS({
|
|
|
120665
120694
|
}
|
|
120666
120695
|
async generate(params) {
|
|
120667
120696
|
const { blueprint, plan } = params;
|
|
120668
|
-
const allApiNames = (0,
|
|
120697
|
+
const allApiNames = (0, api_1.extractApiNames)(params.extension);
|
|
120669
120698
|
const useData = Boolean(plan?.collections?.length);
|
|
120670
120699
|
const systemPrompt = `${await this.buildSystemPrompt(allApiNames, useData)}`;
|
|
120671
120700
|
const appName = blueprint?.appName ? `'${blueprint.appName}'` : "";
|
|
@@ -120674,12 +120703,12 @@ var require_SiteComponentAgent2 = __commonJS({
|
|
|
120674
120703
|
const model = (0, anthropic_1.createAnthropic)({ apiKey: this.apiKey })("claude-sonnet-4-5-20250929");
|
|
120675
120704
|
const result = await (0, ai_1.generateObject)({
|
|
120676
120705
|
model,
|
|
120677
|
-
schema:
|
|
120706
|
+
schema: file_operations_1.FilesSchema,
|
|
120678
120707
|
messages: [
|
|
120679
120708
|
{
|
|
120680
120709
|
role: "system",
|
|
120681
120710
|
content: systemPrompt,
|
|
120682
|
-
providerOptions: (0,
|
|
120711
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
120683
120712
|
},
|
|
120684
120713
|
{
|
|
120685
120714
|
role: "user",
|
|
@@ -120772,7 +120801,9 @@ var require_CustomElementAgent2 = __commonJS({
|
|
|
120772
120801
|
exports2.CustomElementAgent = void 0;
|
|
120773
120802
|
var anthropic_1 = require_dist6();
|
|
120774
120803
|
var ai_1 = require_dist10();
|
|
120775
|
-
var
|
|
120804
|
+
var file_operations_1 = require_file_operations();
|
|
120805
|
+
var caching_1 = require_caching();
|
|
120806
|
+
var api_1 = require_api3();
|
|
120776
120807
|
var customElementPrompt_1 = require_customElementPrompt();
|
|
120777
120808
|
var load_examples_1 = require_load_examples();
|
|
120778
120809
|
var codegen_common_logic_1 = require_dist12();
|
|
@@ -120792,7 +120823,7 @@ var require_CustomElementAgent2 = __commonJS({
|
|
|
120792
120823
|
async generate(params) {
|
|
120793
120824
|
const { blueprint, plan } = params;
|
|
120794
120825
|
const examples = (0, load_examples_1.loadExamples)([load_examples_1.types.CustomElementWidget]);
|
|
120795
|
-
const allApiNames = (0,
|
|
120826
|
+
const allApiNames = (0, api_1.extractApiNames)(params.extension);
|
|
120796
120827
|
const useData = Boolean(plan?.collections?.length);
|
|
120797
120828
|
const systemPrompt = `${await this.buildSystemPrompt(allApiNames, useData)}
|
|
120798
120829
|
${examples}
|
|
@@ -120803,12 +120834,12 @@ var require_CustomElementAgent2 = __commonJS({
|
|
|
120803
120834
|
const model = (0, anthropic_1.createAnthropic)({ apiKey: this.apiKey })("claude-sonnet-4-5-20250929");
|
|
120804
120835
|
const result = await (0, ai_1.generateObject)({
|
|
120805
120836
|
model,
|
|
120806
|
-
schema:
|
|
120837
|
+
schema: file_operations_1.FilesSchema,
|
|
120807
120838
|
messages: [
|
|
120808
120839
|
{
|
|
120809
120840
|
role: "system",
|
|
120810
120841
|
content: systemPrompt,
|
|
120811
|
-
providerOptions: (0,
|
|
120842
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
120812
120843
|
},
|
|
120813
120844
|
{
|
|
120814
120845
|
role: "user",
|
|
@@ -121052,7 +121083,10 @@ var require_SPIAgent2 = __commonJS({
|
|
|
121052
121083
|
var servicePluginPrompt_1 = require_servicePluginPrompt();
|
|
121053
121084
|
var anthropic_1 = require_dist6();
|
|
121054
121085
|
var ai_1 = require_dist10();
|
|
121055
|
-
var
|
|
121086
|
+
var file_operations_1 = require_file_operations();
|
|
121087
|
+
var caching_1 = require_caching();
|
|
121088
|
+
var api_1 = require_api3();
|
|
121089
|
+
var prompt_selectors_1 = require_prompt_selectors();
|
|
121056
121090
|
var load_examples_1 = require_load_examples();
|
|
121057
121091
|
var codegen_common_logic_1 = require_dist12();
|
|
121058
121092
|
var userPrompt_1 = require_userPrompt();
|
|
@@ -121072,8 +121106,8 @@ var require_SPIAgent2 = __commonJS({
|
|
|
121072
121106
|
const { extension, blueprint } = params;
|
|
121073
121107
|
const examples = (0, load_examples_1.loadExamples)([load_examples_1.types.ServicePluginExtension]);
|
|
121074
121108
|
const allSpiNames = extension.relatedSpis?.map((spi) => spi.name).filter((name) => !!name) || [];
|
|
121075
|
-
const apiNames = (0,
|
|
121076
|
-
const useData = (0,
|
|
121109
|
+
const apiNames = (0, api_1.extractApiNames)(params.extension);
|
|
121110
|
+
const useData = (0, prompt_selectors_1.shouldUseDataPrompt)(params);
|
|
121077
121111
|
const systemPrompt = `${this.buildSystemPrompt(allSpiNames, apiNames, useData)}
|
|
121078
121112
|
${examples}
|
|
121079
121113
|
`;
|
|
@@ -121085,12 +121119,12 @@ ${examples}
|
|
|
121085
121119
|
})("claude-sonnet-4-5-20250929");
|
|
121086
121120
|
const result = await (0, ai_1.generateObject)({
|
|
121087
121121
|
model,
|
|
121088
|
-
schema:
|
|
121122
|
+
schema: file_operations_1.FilesSchema,
|
|
121089
121123
|
messages: [
|
|
121090
121124
|
{
|
|
121091
121125
|
role: "system",
|
|
121092
121126
|
content: systemPrompt,
|
|
121093
|
-
providerOptions: (0,
|
|
121127
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
121094
121128
|
},
|
|
121095
121129
|
{
|
|
121096
121130
|
role: "user",
|
|
@@ -121182,7 +121216,10 @@ var require_BackendEventAgent2 = __commonJS({
|
|
|
121182
121216
|
exports2.BackendEventAgent = void 0;
|
|
121183
121217
|
var anthropic_1 = require_dist6();
|
|
121184
121218
|
var ai_1 = require_dist10();
|
|
121185
|
-
var
|
|
121219
|
+
var file_operations_1 = require_file_operations();
|
|
121220
|
+
var caching_1 = require_caching();
|
|
121221
|
+
var prompt_selectors_1 = require_prompt_selectors();
|
|
121222
|
+
var api_1 = require_api3();
|
|
121186
121223
|
var backendEventPrompt_1 = require_backendEventPrompt();
|
|
121187
121224
|
var load_examples_1 = require_load_examples();
|
|
121188
121225
|
var codegen_common_logic_1 = require_dist12();
|
|
@@ -121202,8 +121239,8 @@ var require_BackendEventAgent2 = __commonJS({
|
|
|
121202
121239
|
async generate(params) {
|
|
121203
121240
|
const { blueprint } = params;
|
|
121204
121241
|
const examples = (0, load_examples_1.loadExamples)([load_examples_1.types.BackendEvent]);
|
|
121205
|
-
const allApiNames = (0,
|
|
121206
|
-
const useData = (0,
|
|
121242
|
+
const allApiNames = (0, api_1.extractApiNames)(params.extension);
|
|
121243
|
+
const useData = (0, prompt_selectors_1.shouldUseDataPrompt)(params);
|
|
121207
121244
|
const systemPrompt = `${this.buildSystemPrompt(allApiNames, useData)}
|
|
121208
121245
|
${examples}
|
|
121209
121246
|
`;
|
|
@@ -121213,12 +121250,12 @@ ${examples}
|
|
|
121213
121250
|
const model = (0, anthropic_1.createAnthropic)({ apiKey: this.apiKey })("claude-sonnet-4-5-20250929");
|
|
121214
121251
|
const result = await (0, ai_1.generateObject)({
|
|
121215
121252
|
model,
|
|
121216
|
-
schema:
|
|
121253
|
+
schema: file_operations_1.FilesSchema,
|
|
121217
121254
|
messages: [
|
|
121218
121255
|
{
|
|
121219
121256
|
role: "system",
|
|
121220
121257
|
content: systemPrompt,
|
|
121221
|
-
providerOptions: (0,
|
|
121258
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
121222
121259
|
},
|
|
121223
121260
|
{
|
|
121224
121261
|
role: "user",
|
|
@@ -121341,7 +121378,8 @@ var require_BackendApiAgent2 = __commonJS({
|
|
|
121341
121378
|
exports2.BackendApiAgent = void 0;
|
|
121342
121379
|
var anthropic_1 = require_dist6();
|
|
121343
121380
|
var backendApi_1 = require_backendApi();
|
|
121344
|
-
var
|
|
121381
|
+
var file_operations_1 = require_file_operations();
|
|
121382
|
+
var caching_1 = require_caching();
|
|
121345
121383
|
var ai_1 = require_dist10();
|
|
121346
121384
|
var codegen_common_logic_1 = require_dist12();
|
|
121347
121385
|
var userPrompt_1 = require_userPrompt();
|
|
@@ -121364,12 +121402,12 @@ var require_BackendApiAgent2 = __commonJS({
|
|
|
121364
121402
|
const model = (0, anthropic_1.createAnthropic)({ apiKey: this.apiKey })("claude-sonnet-4-5-20250929");
|
|
121365
121403
|
const result = await (0, ai_1.generateObject)({
|
|
121366
121404
|
model,
|
|
121367
|
-
schema:
|
|
121405
|
+
schema: file_operations_1.FilesSchema,
|
|
121368
121406
|
messages: [
|
|
121369
121407
|
{
|
|
121370
121408
|
role: "system",
|
|
121371
121409
|
content: systemPrompt,
|
|
121372
|
-
providerOptions: (0,
|
|
121410
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
121373
121411
|
},
|
|
121374
121412
|
{
|
|
121375
121413
|
role: "user",
|
|
@@ -121637,7 +121675,10 @@ var require_EmbeddedScriptAgent2 = __commonJS({
|
|
|
121637
121675
|
exports2.EmbeddedScriptAgent = exports2.EmbeddedScriptType = exports2.EmbeddedScriptPlacement = void 0;
|
|
121638
121676
|
var anthropic_1 = require_dist6();
|
|
121639
121677
|
var ai_1 = require_dist10();
|
|
121640
|
-
var
|
|
121678
|
+
var file_operations_1 = require_file_operations();
|
|
121679
|
+
var caching_1 = require_caching();
|
|
121680
|
+
var api_1 = require_api3();
|
|
121681
|
+
var prompt_selectors_1 = require_prompt_selectors();
|
|
121641
121682
|
var load_examples_1 = require_load_examples();
|
|
121642
121683
|
var zod_1 = __importDefault2(require_zod());
|
|
121643
121684
|
var embededScript_1 = require_embededScript();
|
|
@@ -121657,7 +121698,7 @@ var require_EmbeddedScriptAgent2 = __commonJS({
|
|
|
121657
121698
|
EmbeddedScriptType2["ADVERTISING"] = "ADVERTISING";
|
|
121658
121699
|
})(EmbeddedScriptType || (exports2.EmbeddedScriptType = EmbeddedScriptType = {}));
|
|
121659
121700
|
var EmbeddedScriptSchema = zod_1.default.object({
|
|
121660
|
-
files: zod_1.default.array(
|
|
121701
|
+
files: zod_1.default.array(file_operations_1.FileItemSchema).default([]),
|
|
121661
121702
|
scriptType: zod_1.default.enum(Object.values(EmbeddedScriptType)),
|
|
121662
121703
|
placement: zod_1.default.enum(Object.values(EmbeddedScriptPlacement))
|
|
121663
121704
|
});
|
|
@@ -121676,9 +121717,9 @@ var require_EmbeddedScriptAgent2 = __commonJS({
|
|
|
121676
121717
|
async generate(params) {
|
|
121677
121718
|
const { blueprint } = params;
|
|
121678
121719
|
const examples = (0, load_examples_1.loadExamples)([load_examples_1.types.EmbeddedScript]);
|
|
121679
|
-
const hasDynamicParameters = (0,
|
|
121680
|
-
const apiNames = (0,
|
|
121681
|
-
const useData = (0,
|
|
121720
|
+
const hasDynamicParameters = (0, prompt_selectors_1.shouldUseDynamicParametersPrompt)(params);
|
|
121721
|
+
const apiNames = (0, api_1.extractApiNames)(params.extension);
|
|
121722
|
+
const useData = (0, prompt_selectors_1.shouldUseDataPrompt)(params);
|
|
121682
121723
|
const systemPrompt = `${this.buildSystemPrompt(hasDynamicParameters, apiNames, useData)}
|
|
121683
121724
|
${examples}
|
|
121684
121725
|
`;
|
|
@@ -121693,7 +121734,7 @@ ${examples}
|
|
|
121693
121734
|
{
|
|
121694
121735
|
role: "system",
|
|
121695
121736
|
content: systemPrompt,
|
|
121696
|
-
providerOptions: (0,
|
|
121737
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
121697
121738
|
},
|
|
121698
121739
|
{
|
|
121699
121740
|
role: "user",
|
|
@@ -121938,7 +121979,7 @@ var require_IterationAgent = __commonJS({
|
|
|
121938
121979
|
var anthropic_1 = require_dist6();
|
|
121939
121980
|
var ai_1 = require_dist10();
|
|
121940
121981
|
var zod_1 = require_zod();
|
|
121941
|
-
var
|
|
121982
|
+
var caching_1 = require_caching();
|
|
121942
121983
|
var iterationAgentPrompt_1 = require_iterationAgentPrompt();
|
|
121943
121984
|
var AgentsRegistry_1 = require_AgentsRegistry();
|
|
121944
121985
|
var codegen_common_logic_1 = require_dist12();
|
|
@@ -122011,7 +122052,7 @@ ${(0, formatExtensions_1.formatExtensions)(relevantExtensions)}`
|
|
|
122011
122052
|
{
|
|
122012
122053
|
role: "system",
|
|
122013
122054
|
content: this.buildSystemPrompt(),
|
|
122014
|
-
providerOptions: (0,
|
|
122055
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
122015
122056
|
},
|
|
122016
122057
|
{ role: "user", content: userContent }
|
|
122017
122058
|
],
|
|
@@ -122257,7 +122298,8 @@ var require_DashboardDecisionAgent = __commonJS({
|
|
|
122257
122298
|
var ai_1 = require_dist10();
|
|
122258
122299
|
var zod_1 = require_zod();
|
|
122259
122300
|
var autoPatternPrompt_1 = require_autoPatternPrompt();
|
|
122260
|
-
var
|
|
122301
|
+
var caching_1 = require_caching();
|
|
122302
|
+
var prompt_selectors_1 = require_prompt_selectors();
|
|
122261
122303
|
var types_1 = require_types_impl();
|
|
122262
122304
|
var userPrompt_1 = require_userPrompt();
|
|
122263
122305
|
var autoPatternsLlmConfig = zod_1.z.object({
|
|
@@ -122322,7 +122364,7 @@ var require_DashboardDecisionAgent = __commonJS({
|
|
|
122322
122364
|
const hasEmbeddedScriptExtension = blueprint?.extensions?.some((ext) => ext.type === types_1.ExtensionType.EMBEDDED_SCRIPT) ?? false;
|
|
122323
122365
|
const hasOneDashboardPageExtension = blueprint?.extensions?.filter((ext) => ext.type === types_1.ExtensionType.DASHBOARD_PAGE).length === 1;
|
|
122324
122366
|
const shouldImplementEmbeddedScriptParameters = hasOneDashboardPageExtension && hasEmbeddedScriptExtension;
|
|
122325
|
-
const hasCollections = (0,
|
|
122367
|
+
const hasCollections = (0, prompt_selectors_1.shouldUseDataPrompt)(params);
|
|
122326
122368
|
if (!hasCollections || shouldImplementEmbeddedScriptParameters) {
|
|
122327
122369
|
return true;
|
|
122328
122370
|
}
|
|
@@ -122345,7 +122387,7 @@ var require_DashboardDecisionAgent = __commonJS({
|
|
|
122345
122387
|
{
|
|
122346
122388
|
role: "system",
|
|
122347
122389
|
content: systemPrompt,
|
|
122348
|
-
providerOptions: (0,
|
|
122390
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
122349
122391
|
},
|
|
122350
122392
|
{
|
|
122351
122393
|
role: "user",
|
|
@@ -123321,7 +123363,8 @@ var require_ExtensionSelectorAgent = __commonJS({
|
|
|
123321
123363
|
var fs_1 = __importDefault2(require("fs"));
|
|
123322
123364
|
var path_1 = __importDefault2(require("path"));
|
|
123323
123365
|
var tree_node_cli_1 = __importDefault2(require_src32());
|
|
123324
|
-
var
|
|
123366
|
+
var caching_1 = require_caching();
|
|
123367
|
+
var file_loading_1 = require_file_loading();
|
|
123325
123368
|
var extensionsRelevancePrompt_1 = require_extensionsRelevancePrompt();
|
|
123326
123369
|
var ditto_codegen_types_12 = require_dist();
|
|
123327
123370
|
var TOOL_NAMES = {
|
|
@@ -123436,7 +123479,7 @@ ${filesList}`);
|
|
|
123436
123479
|
const model = (0, anthropic_1.createAnthropic)({ apiKey: this.apiKey })("claude-3-5-haiku-latest");
|
|
123437
123480
|
const historyStr = this.formatChatHistory(chatHistory);
|
|
123438
123481
|
const relevantFilePaths = extension.files || [];
|
|
123439
|
-
const relevantFilesContent = (0,
|
|
123482
|
+
const relevantFilesContent = (0, file_loading_1.loadRelevantFilesAsString)(relevantFilePaths, outputPath);
|
|
123440
123483
|
const userContent = [
|
|
123441
123484
|
`
|
|
123442
123485
|
Full Chat History:
|
|
@@ -123465,7 +123508,7 @@ ${relevantFilesContent}`
|
|
|
123465
123508
|
{
|
|
123466
123509
|
role: "system",
|
|
123467
123510
|
content: systemPrompt,
|
|
123468
|
-
providerOptions: (0,
|
|
123511
|
+
providerOptions: (0, caching_1.withCaching)("1h")
|
|
123469
123512
|
},
|
|
123470
123513
|
{ role: "user", content: userContent }
|
|
123471
123514
|
],
|
|
@@ -124560,7 +124603,7 @@ var require_fs = __commonJS({
|
|
|
124560
124603
|
});
|
|
124561
124604
|
|
|
124562
124605
|
// ../../node_modules/fs-extra/lib/mkdirs/utils.js
|
|
124563
|
-
var
|
|
124606
|
+
var require_utils11 = __commonJS({
|
|
124564
124607
|
"../../node_modules/fs-extra/lib/mkdirs/utils.js"(exports2, module2) {
|
|
124565
124608
|
"use strict";
|
|
124566
124609
|
var path2 = require("path");
|
|
@@ -124582,7 +124625,7 @@ var require_make_dir = __commonJS({
|
|
|
124582
124625
|
"../../node_modules/fs-extra/lib/mkdirs/make-dir.js"(exports2, module2) {
|
|
124583
124626
|
"use strict";
|
|
124584
124627
|
var fs4 = require_fs();
|
|
124585
|
-
var { checkPath } =
|
|
124628
|
+
var { checkPath } = require_utils11();
|
|
124586
124629
|
var getMode = (options) => {
|
|
124587
124630
|
const defaults = { mode: 511 };
|
|
124588
124631
|
if (typeof options === "number") return options;
|
|
@@ -125475,7 +125518,7 @@ var require_ensure = __commonJS({
|
|
|
125475
125518
|
});
|
|
125476
125519
|
|
|
125477
125520
|
// ../../node_modules/jsonfile/utils.js
|
|
125478
|
-
var
|
|
125521
|
+
var require_utils12 = __commonJS({
|
|
125479
125522
|
"../../node_modules/jsonfile/utils.js"(exports2, module2) {
|
|
125480
125523
|
function stringify(obj, { EOL = "\n", finalEOL = true, replacer = null, spaces } = {}) {
|
|
125481
125524
|
const EOF = finalEOL ? EOL : "";
|
|
@@ -125500,7 +125543,7 @@ var require_jsonfile = __commonJS({
|
|
|
125500
125543
|
_fs = require("fs");
|
|
125501
125544
|
}
|
|
125502
125545
|
var universalify = require_universalify();
|
|
125503
|
-
var { stringify, stripBom } =
|
|
125546
|
+
var { stringify, stripBom } = require_utils12();
|
|
125504
125547
|
async function _readFile(file, options = {}) {
|
|
125505
125548
|
if (typeof options === "string") {
|
|
125506
125549
|
options = { encoding: options };
|
|
@@ -125611,7 +125654,7 @@ var require_output_file = __commonJS({
|
|
|
125611
125654
|
var require_output_json = __commonJS({
|
|
125612
125655
|
"../../node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
|
|
125613
125656
|
"use strict";
|
|
125614
|
-
var { stringify } =
|
|
125657
|
+
var { stringify } = require_utils12();
|
|
125615
125658
|
var { outputFile } = require_output_file();
|
|
125616
125659
|
async function outputJson(file, data, options = {}) {
|
|
125617
125660
|
const str = stringify(data, options);
|
|
@@ -125625,7 +125668,7 @@ var require_output_json = __commonJS({
|
|
|
125625
125668
|
var require_output_json_sync = __commonJS({
|
|
125626
125669
|
"../../node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
|
|
125627
125670
|
"use strict";
|
|
125628
|
-
var { stringify } =
|
|
125671
|
+
var { stringify } = require_utils12();
|
|
125629
125672
|
var { outputFileSync } = require_output_file();
|
|
125630
125673
|
function outputJsonSync(file, data, options) {
|
|
125631
125674
|
const str = stringify(data, options);
|
|
@@ -126269,7 +126312,7 @@ var require_glob_parent = __commonJS({
|
|
|
126269
126312
|
});
|
|
126270
126313
|
|
|
126271
126314
|
// ../../node_modules/braces/lib/utils.js
|
|
126272
|
-
var
|
|
126315
|
+
var require_utils13 = __commonJS({
|
|
126273
126316
|
"../../node_modules/braces/lib/utils.js"(exports2) {
|
|
126274
126317
|
"use strict";
|
|
126275
126318
|
exports2.isInteger = (num) => {
|
|
@@ -126354,7 +126397,7 @@ var require_utils14 = __commonJS({
|
|
|
126354
126397
|
var require_stringify = __commonJS({
|
|
126355
126398
|
"../../node_modules/braces/lib/stringify.js"(exports2, module2) {
|
|
126356
126399
|
"use strict";
|
|
126357
|
-
var utils =
|
|
126400
|
+
var utils = require_utils13();
|
|
126358
126401
|
module2.exports = (ast, options = {}) => {
|
|
126359
126402
|
const stringify = (node, parent = {}) => {
|
|
126360
126403
|
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
@@ -126807,7 +126850,7 @@ var require_compile = __commonJS({
|
|
|
126807
126850
|
"../../node_modules/braces/lib/compile.js"(exports2, module2) {
|
|
126808
126851
|
"use strict";
|
|
126809
126852
|
var fill = require_fill_range();
|
|
126810
|
-
var utils =
|
|
126853
|
+
var utils = require_utils13();
|
|
126811
126854
|
var compile = (ast, options = {}) => {
|
|
126812
126855
|
const walk = (node, parent = {}) => {
|
|
126813
126856
|
const invalidBlock = utils.isInvalidBrace(parent);
|
|
@@ -126860,7 +126903,7 @@ var require_expand = __commonJS({
|
|
|
126860
126903
|
"use strict";
|
|
126861
126904
|
var fill = require_fill_range();
|
|
126862
126905
|
var stringify = require_stringify();
|
|
126863
|
-
var utils =
|
|
126906
|
+
var utils = require_utils13();
|
|
126864
126907
|
var append = (queue = "", stash = "", enclose = false) => {
|
|
126865
126908
|
const result = [];
|
|
126866
126909
|
queue = [].concat(queue);
|
|
@@ -127548,7 +127591,7 @@ var require_constants6 = __commonJS({
|
|
|
127548
127591
|
});
|
|
127549
127592
|
|
|
127550
127593
|
// ../../node_modules/picomatch/lib/utils.js
|
|
127551
|
-
var
|
|
127594
|
+
var require_utils14 = __commonJS({
|
|
127552
127595
|
"../../node_modules/picomatch/lib/utils.js"(exports2) {
|
|
127553
127596
|
"use strict";
|
|
127554
127597
|
var path2 = require("path");
|
|
@@ -127612,7 +127655,7 @@ var require_utils15 = __commonJS({
|
|
|
127612
127655
|
var require_scan = __commonJS({
|
|
127613
127656
|
"../../node_modules/picomatch/lib/scan.js"(exports2, module2) {
|
|
127614
127657
|
"use strict";
|
|
127615
|
-
var utils =
|
|
127658
|
+
var utils = require_utils14();
|
|
127616
127659
|
var {
|
|
127617
127660
|
CHAR_ASTERISK,
|
|
127618
127661
|
/* * */
|
|
@@ -127943,7 +127986,7 @@ var require_parse5 = __commonJS({
|
|
|
127943
127986
|
"../../node_modules/picomatch/lib/parse.js"(exports2, module2) {
|
|
127944
127987
|
"use strict";
|
|
127945
127988
|
var constants = require_constants6();
|
|
127946
|
-
var utils =
|
|
127989
|
+
var utils = require_utils14();
|
|
127947
127990
|
var {
|
|
127948
127991
|
MAX_LENGTH,
|
|
127949
127992
|
POSIX_REGEX_SOURCE,
|
|
@@ -128718,7 +128761,7 @@ var require_picomatch = __commonJS({
|
|
|
128718
128761
|
var path2 = require("path");
|
|
128719
128762
|
var scan = require_scan();
|
|
128720
128763
|
var parse = require_parse5();
|
|
128721
|
-
var utils =
|
|
128764
|
+
var utils = require_utils14();
|
|
128722
128765
|
var constants = require_constants6();
|
|
128723
128766
|
var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
128724
128767
|
var picomatch = (glob, options, returnState = false) => {
|
|
@@ -128867,7 +128910,7 @@ var require_micromatch = __commonJS({
|
|
|
128867
128910
|
var util = require("util");
|
|
128868
128911
|
var braces = require_braces();
|
|
128869
128912
|
var picomatch = require_picomatch2();
|
|
128870
|
-
var utils =
|
|
128913
|
+
var utils = require_utils14();
|
|
128871
128914
|
var isEmptyString = (v) => v === "" || v === "./";
|
|
128872
128915
|
var hasBraces = (v) => {
|
|
128873
128916
|
const index = v.indexOf("{");
|
|
@@ -129346,7 +129389,7 @@ var require_string = __commonJS({
|
|
|
129346
129389
|
});
|
|
129347
129390
|
|
|
129348
129391
|
// ../../node_modules/fast-glob/out/utils/index.js
|
|
129349
|
-
var
|
|
129392
|
+
var require_utils15 = __commonJS({
|
|
129350
129393
|
"../../node_modules/fast-glob/out/utils/index.js"(exports2) {
|
|
129351
129394
|
"use strict";
|
|
129352
129395
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -129374,7 +129417,7 @@ var require_tasks = __commonJS({
|
|
|
129374
129417
|
"use strict";
|
|
129375
129418
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
129376
129419
|
exports2.convertPatternGroupToTask = exports2.convertPatternGroupsToTasks = exports2.groupPatternsByBaseDirectory = exports2.getNegativePatternsAsPositive = exports2.getPositivePatterns = exports2.convertPatternsToTasks = exports2.generate = void 0;
|
|
129377
|
-
var utils =
|
|
129420
|
+
var utils = require_utils15();
|
|
129378
129421
|
function generate(input, settings) {
|
|
129379
129422
|
const patterns = processPatterns(input, settings);
|
|
129380
129423
|
const ignore = processPatterns(settings.ignore, settings);
|
|
@@ -129717,7 +129760,7 @@ var require_fs4 = __commonJS({
|
|
|
129717
129760
|
});
|
|
129718
129761
|
|
|
129719
129762
|
// ../../node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
129720
|
-
var
|
|
129763
|
+
var require_utils16 = __commonJS({
|
|
129721
129764
|
"../../node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports2) {
|
|
129722
129765
|
"use strict";
|
|
129723
129766
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -129752,7 +129795,7 @@ var require_async4 = __commonJS({
|
|
|
129752
129795
|
var fsStat = require_out();
|
|
129753
129796
|
var rpl = require_run_parallel();
|
|
129754
129797
|
var constants_1 = require_constants7();
|
|
129755
|
-
var utils =
|
|
129798
|
+
var utils = require_utils16();
|
|
129756
129799
|
var common = require_common4();
|
|
129757
129800
|
function read(directory, settings, callback) {
|
|
129758
129801
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -129861,7 +129904,7 @@ var require_sync4 = __commonJS({
|
|
|
129861
129904
|
exports2.readdir = exports2.readdirWithFileTypes = exports2.read = void 0;
|
|
129862
129905
|
var fsStat = require_out();
|
|
129863
129906
|
var constants_1 = require_constants7();
|
|
129864
|
-
var utils =
|
|
129907
|
+
var utils = require_utils16();
|
|
129865
129908
|
var common = require_common4();
|
|
129866
129909
|
function read(directory, settings) {
|
|
129867
129910
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -130685,7 +130728,7 @@ var require_reader3 = __commonJS({
|
|
|
130685
130728
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
130686
130729
|
var path2 = require("path");
|
|
130687
130730
|
var fsStat = require_out();
|
|
130688
|
-
var utils =
|
|
130731
|
+
var utils = require_utils15();
|
|
130689
130732
|
var Reader = class {
|
|
130690
130733
|
constructor(_settings) {
|
|
130691
130734
|
this._settings = _settings;
|
|
@@ -130818,7 +130861,7 @@ var require_matcher = __commonJS({
|
|
|
130818
130861
|
"../../node_modules/fast-glob/out/providers/matchers/matcher.js"(exports2) {
|
|
130819
130862
|
"use strict";
|
|
130820
130863
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
130821
|
-
var utils =
|
|
130864
|
+
var utils = require_utils15();
|
|
130822
130865
|
var Matcher = class {
|
|
130823
130866
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
130824
130867
|
this._patterns = _patterns;
|
|
@@ -130906,7 +130949,7 @@ var require_deep = __commonJS({
|
|
|
130906
130949
|
"../../node_modules/fast-glob/out/providers/filters/deep.js"(exports2) {
|
|
130907
130950
|
"use strict";
|
|
130908
130951
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
130909
|
-
var utils =
|
|
130952
|
+
var utils = require_utils15();
|
|
130910
130953
|
var partial_1 = require_partial();
|
|
130911
130954
|
var DeepFilter = class {
|
|
130912
130955
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -130971,7 +131014,7 @@ var require_entry = __commonJS({
|
|
|
130971
131014
|
"../../node_modules/fast-glob/out/providers/filters/entry.js"(exports2) {
|
|
130972
131015
|
"use strict";
|
|
130973
131016
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
130974
|
-
var utils =
|
|
131017
|
+
var utils = require_utils15();
|
|
130975
131018
|
var EntryFilter = class {
|
|
130976
131019
|
constructor(_settings, _micromatchOptions) {
|
|
130977
131020
|
this._settings = _settings;
|
|
@@ -131059,7 +131102,7 @@ var require_error2 = __commonJS({
|
|
|
131059
131102
|
"../../node_modules/fast-glob/out/providers/filters/error.js"(exports2) {
|
|
131060
131103
|
"use strict";
|
|
131061
131104
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
131062
|
-
var utils =
|
|
131105
|
+
var utils = require_utils15();
|
|
131063
131106
|
var ErrorFilter = class {
|
|
131064
131107
|
constructor(_settings) {
|
|
131065
131108
|
this._settings = _settings;
|
|
@@ -131080,7 +131123,7 @@ var require_entry2 = __commonJS({
|
|
|
131080
131123
|
"../../node_modules/fast-glob/out/providers/transformers/entry.js"(exports2) {
|
|
131081
131124
|
"use strict";
|
|
131082
131125
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
131083
|
-
var utils =
|
|
131126
|
+
var utils = require_utils15();
|
|
131084
131127
|
var EntryTransformer = class {
|
|
131085
131128
|
constructor(_settings) {
|
|
131086
131129
|
this._settings = _settings;
|
|
@@ -131370,7 +131413,7 @@ var require_out4 = __commonJS({
|
|
|
131370
131413
|
var stream_1 = require_stream5();
|
|
131371
131414
|
var sync_1 = require_sync8();
|
|
131372
131415
|
var settings_1 = require_settings4();
|
|
131373
|
-
var utils =
|
|
131416
|
+
var utils = require_utils15();
|
|
131374
131417
|
async function FastGlob(source, options) {
|
|
131375
131418
|
assertPatternsInput2(source);
|
|
131376
131419
|
const works = getWorks(source, async_1.default, options);
|
|
@@ -132423,7 +132466,7 @@ ${errorMessages.join("\n")}`;
|
|
|
132423
132466
|
});
|
|
132424
132467
|
|
|
132425
132468
|
// dist/utils.js
|
|
132426
|
-
var
|
|
132469
|
+
var require_utils17 = __commonJS({
|
|
132427
132470
|
"dist/utils.js"(exports2) {
|
|
132428
132471
|
"use strict";
|
|
132429
132472
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -132761,7 +132804,7 @@ var require_fixFlow = __commonJS({
|
|
|
132761
132804
|
};
|
|
132762
132805
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
132763
132806
|
exports2.startFixFlow = startFixFlow;
|
|
132764
|
-
var utils_1 =
|
|
132807
|
+
var utils_1 = require_utils17();
|
|
132765
132808
|
var ValidatorFactory_1 = __importDefault2(require_ValidatorFactory());
|
|
132766
132809
|
var FixerFactory_1 = __importDefault2(require_FixerFactory());
|
|
132767
132810
|
var ditto_codegen_types_12 = require_dist();
|
|
@@ -132880,6 +132923,19 @@ var require_naturalJsonStringify = __commonJS({
|
|
|
132880
132923
|
}
|
|
132881
132924
|
});
|
|
132882
132925
|
|
|
132926
|
+
// dist/agents/utils/route.js
|
|
132927
|
+
var require_route = __commonJS({
|
|
132928
|
+
"dist/agents/utils/route.js"(exports2) {
|
|
132929
|
+
"use strict";
|
|
132930
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
132931
|
+
exports2.slugify = void 0;
|
|
132932
|
+
var slugify = (str = "") => {
|
|
132933
|
+
return str.toLowerCase().replace(/[^a-zA-Z0-9\s-_]/g, "").replace(/\s+/g, "-");
|
|
132934
|
+
};
|
|
132935
|
+
exports2.slugify = slugify;
|
|
132936
|
+
}
|
|
132937
|
+
});
|
|
132938
|
+
|
|
132883
132939
|
// dist/extensions/extensionGenerators.js
|
|
132884
132940
|
var require_extensionGenerators = __commonJS({
|
|
132885
132941
|
"dist/extensions/extensionGenerators.js"(exports2) {
|
|
@@ -132898,6 +132954,7 @@ var require_extensionGenerators = __commonJS({
|
|
|
132898
132954
|
var EmbeddedScriptAgent_1 = require_EmbeddedScriptAgent2();
|
|
132899
132955
|
var ditto_codegen_types_12 = require_dist();
|
|
132900
132956
|
var naturalJsonStringify_1 = require_naturalJsonStringify();
|
|
132957
|
+
var route_1 = require_route();
|
|
132901
132958
|
var ExtensionFactory = class {
|
|
132902
132959
|
static generateExtension({ extension, outputPath, scaffoldPath, generatedConfig }) {
|
|
132903
132960
|
const scaffoldDir = path_1.default.dirname(scaffoldPath);
|
|
@@ -133039,7 +133096,7 @@ var require_extensionGenerators = __commonJS({
|
|
|
133039
133096
|
}
|
|
133040
133097
|
}
|
|
133041
133098
|
static createDashboardPageData(id, name, scaffoldDir) {
|
|
133042
|
-
const routePath =
|
|
133099
|
+
const routePath = (0, route_1.slugify)(name);
|
|
133043
133100
|
const component = getScaffoldPath(scaffoldDir, "page.tsx");
|
|
133044
133101
|
return {
|
|
133045
133102
|
id,
|
|
@@ -133977,7 +134034,7 @@ var require_domain = __commonJS({
|
|
|
133977
134034
|
});
|
|
133978
134035
|
|
|
133979
134036
|
// ../../node_modules/@wix/metro-runtime/dist/cjs/serialization/utils.js
|
|
133980
|
-
var
|
|
134037
|
+
var require_utils18 = __commonJS({
|
|
133981
134038
|
"../../node_modules/@wix/metro-runtime/dist/cjs/serialization/utils.js"(exports2) {
|
|
133982
134039
|
"use strict";
|
|
133983
134040
|
exports2.__esModule = true;
|
|
@@ -134003,7 +134060,7 @@ var require_serialization = __commonJS({
|
|
|
134003
134060
|
"../../node_modules/@wix/metro-runtime/dist/cjs/serialization/index.js"(exports2) {
|
|
134004
134061
|
"use strict";
|
|
134005
134062
|
exports2.__esModule = true;
|
|
134006
|
-
var _utils =
|
|
134063
|
+
var _utils = require_utils18();
|
|
134007
134064
|
Object.keys(_utils).forEach(function(key) {
|
|
134008
134065
|
if (key === "default" || key === "__esModule") return;
|
|
134009
134066
|
if (key in exports2 && exports2[key] === _utils[key]) return;
|
|
@@ -134013,7 +134070,7 @@ var require_serialization = __commonJS({
|
|
|
134013
134070
|
});
|
|
134014
134071
|
|
|
134015
134072
|
// ../../node_modules/@wix/metro-runtime/dist/cjs/utils.js
|
|
134016
|
-
var
|
|
134073
|
+
var require_utils19 = __commonJS({
|
|
134017
134074
|
"../../node_modules/@wix/metro-runtime/dist/cjs/utils.js"(exports2) {
|
|
134018
134075
|
"use strict";
|
|
134019
134076
|
exports2.__esModule = true;
|
|
@@ -134037,7 +134094,7 @@ var require_url_resolver = __commonJS({
|
|
|
134037
134094
|
"use strict";
|
|
134038
134095
|
exports2.__esModule = true;
|
|
134039
134096
|
exports2.resolveUrl = resolveUrl;
|
|
134040
|
-
var _utils =
|
|
134097
|
+
var _utils = require_utils19();
|
|
134041
134098
|
var USER_DOMAIN = "_";
|
|
134042
134099
|
var DOMAINS = ["wix.com", "editorx.com"];
|
|
134043
134100
|
var WIX_API_DOMAINS = ["42.wixprod.net", "uw2-edt-1.wixprod.net"];
|
|
@@ -134682,7 +134739,7 @@ var require_converters = __commonJS({
|
|
|
134682
134739
|
});
|
|
134683
134740
|
|
|
134684
134741
|
// ../../node_modules/@wix/metro-runtime/dist/cjs/serializer/utils.js
|
|
134685
|
-
var
|
|
134742
|
+
var require_utils20 = __commonJS({
|
|
134686
134743
|
"../../node_modules/@wix/metro-runtime/dist/cjs/serializer/utils.js"(exports2) {
|
|
134687
134744
|
"use strict";
|
|
134688
134745
|
exports2.__esModule = true;
|
|
@@ -134713,7 +134770,7 @@ var require_ambassador_index = __commonJS({
|
|
|
134713
134770
|
var _domain = require_domain();
|
|
134714
134771
|
var _serializer = require_serializer();
|
|
134715
134772
|
var _converters = require_converters();
|
|
134716
|
-
var _utils =
|
|
134773
|
+
var _utils = require_utils20();
|
|
134717
134774
|
var ambassadorConverters = (0, _utils.typeToConverterSet)([..._converters.protobufConverters]);
|
|
134718
134775
|
function serializer(rootSchema, depSchemas = {}) {
|
|
134719
134776
|
const transform = (0, _serializer.schemaSerializer)(rootSchema, depSchemas, ambassadorConverters);
|
|
@@ -135557,7 +135614,7 @@ var require_authorization = __commonJS({
|
|
|
135557
135614
|
});
|
|
135558
135615
|
|
|
135559
135616
|
// ../../node_modules/@wix/headers/dist/cjs/utils.js
|
|
135560
|
-
var
|
|
135617
|
+
var require_utils21 = __commonJS({
|
|
135561
135618
|
"../../node_modules/@wix/headers/dist/cjs/utils.js"(exports2) {
|
|
135562
135619
|
"use strict";
|
|
135563
135620
|
exports2.__esModule = true;
|
|
@@ -135582,7 +135639,7 @@ var require_artifact_id = __commonJS({
|
|
|
135582
135639
|
"use strict";
|
|
135583
135640
|
exports2.__esModule = true;
|
|
135584
135641
|
exports2.artifactId = artifactId;
|
|
135585
|
-
var _utils =
|
|
135642
|
+
var _utils = require_utils21();
|
|
135586
135643
|
function artifactId(override) {
|
|
135587
135644
|
const artifactIdToUse = (0, _utils.isNode)() ? process.env.ARTIFACT_ID ?? process.env.APP_NAME ?? "" : "";
|
|
135588
135645
|
return {
|
|
@@ -135929,7 +135986,7 @@ var require_env_util = __commonJS({
|
|
|
135929
135986
|
});
|
|
135930
135987
|
|
|
135931
135988
|
// ../../node_modules/@wix/http-client/dist/src/utils.js
|
|
135932
|
-
var
|
|
135989
|
+
var require_utils22 = __commonJS({
|
|
135933
135990
|
"../../node_modules/@wix/http-client/dist/src/utils.js"(exports2) {
|
|
135934
135991
|
"use strict";
|
|
135935
135992
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -136081,7 +136138,7 @@ var require_headers = __commonJS({
|
|
|
136081
136138
|
exports2.isWixDomain = exports2.composeHeaders = exports2.requestIdOrEmptyString = void 0;
|
|
136082
136139
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
136083
136140
|
var headers_1 = require_cjs3();
|
|
136084
|
-
var utils_1 =
|
|
136141
|
+
var utils_1 = require_utils22();
|
|
136085
136142
|
var whitelist_json_1 = tslib_1.__importDefault(require_whitelist());
|
|
136086
136143
|
function requestIdOrEmptyString(response) {
|
|
136087
136144
|
var _a2;
|
|
@@ -136163,7 +136220,7 @@ var require_bind = __commonJS({
|
|
|
136163
136220
|
});
|
|
136164
136221
|
|
|
136165
136222
|
// ../../node_modules/@wix/http-client/node_modules/axios/lib/utils.js
|
|
136166
|
-
var
|
|
136223
|
+
var require_utils23 = __commonJS({
|
|
136167
136224
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/utils.js"(exports2, module2) {
|
|
136168
136225
|
"use strict";
|
|
136169
136226
|
var bind = require_bind();
|
|
@@ -136423,7 +136480,7 @@ var require_buildFullPath = __commonJS({
|
|
|
136423
136480
|
var require_buildURL = __commonJS({
|
|
136424
136481
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/buildURL.js"(exports2, module2) {
|
|
136425
136482
|
"use strict";
|
|
136426
|
-
var utils =
|
|
136483
|
+
var utils = require_utils23();
|
|
136427
136484
|
function encode(val) {
|
|
136428
136485
|
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
136429
136486
|
}
|
|
@@ -137080,7 +137137,7 @@ var require_package4 = __commonJS({
|
|
|
137080
137137
|
var require_http = __commonJS({
|
|
137081
137138
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/http.js"(exports2, module2) {
|
|
137082
137139
|
"use strict";
|
|
137083
|
-
var utils =
|
|
137140
|
+
var utils = require_utils23();
|
|
137084
137141
|
var settle = require_settle();
|
|
137085
137142
|
var buildFullPath = require_buildFullPath();
|
|
137086
137143
|
var buildURL = require_buildURL();
|
|
@@ -137942,7 +137999,7 @@ var require_dist16 = __commonJS({
|
|
|
137942
137999
|
var require_InterceptorManager = __commonJS({
|
|
137943
138000
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/core/InterceptorManager.js"(exports2, module2) {
|
|
137944
138001
|
"use strict";
|
|
137945
|
-
var utils =
|
|
138002
|
+
var utils = require_utils23();
|
|
137946
138003
|
function InterceptorManager() {
|
|
137947
138004
|
this.handlers = [];
|
|
137948
138005
|
}
|
|
@@ -137975,7 +138032,7 @@ var require_InterceptorManager = __commonJS({
|
|
|
137975
138032
|
var require_normalizeHeaderName = __commonJS({
|
|
137976
138033
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/normalizeHeaderName.js"(exports2, module2) {
|
|
137977
138034
|
"use strict";
|
|
137978
|
-
var utils =
|
|
138035
|
+
var utils = require_utils23();
|
|
137979
138036
|
module2.exports = function normalizeHeaderName(headers, normalizedName) {
|
|
137980
138037
|
utils.forEach(headers, function processHeader(value, name) {
|
|
137981
138038
|
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
@@ -137991,7 +138048,7 @@ var require_normalizeHeaderName = __commonJS({
|
|
|
137991
138048
|
var require_cookies2 = __commonJS({
|
|
137992
138049
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/cookies.js"(exports2, module2) {
|
|
137993
138050
|
"use strict";
|
|
137994
|
-
var utils =
|
|
138051
|
+
var utils = require_utils23();
|
|
137995
138052
|
module2.exports = utils.isStandardBrowserEnv() ? (
|
|
137996
138053
|
// Standard browser envs support document.cookie
|
|
137997
138054
|
/* @__PURE__ */ (function standardBrowserEnv() {
|
|
@@ -138043,7 +138100,7 @@ var require_cookies2 = __commonJS({
|
|
|
138043
138100
|
var require_parseHeaders = __commonJS({
|
|
138044
138101
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/parseHeaders.js"(exports2, module2) {
|
|
138045
138102
|
"use strict";
|
|
138046
|
-
var utils =
|
|
138103
|
+
var utils = require_utils23();
|
|
138047
138104
|
var ignoreDuplicateOf = [
|
|
138048
138105
|
"age",
|
|
138049
138106
|
"authorization",
|
|
@@ -138095,7 +138152,7 @@ var require_parseHeaders = __commonJS({
|
|
|
138095
138152
|
var require_isURLSameOrigin = __commonJS({
|
|
138096
138153
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/helpers/isURLSameOrigin.js"(exports2, module2) {
|
|
138097
138154
|
"use strict";
|
|
138098
|
-
var utils =
|
|
138155
|
+
var utils = require_utils23();
|
|
138099
138156
|
module2.exports = utils.isStandardBrowserEnv() ? (
|
|
138100
138157
|
// Standard browser envs have full support of the APIs needed to test
|
|
138101
138158
|
// whether the request URL is of the same origin as current location.
|
|
@@ -138142,7 +138199,7 @@ var require_isURLSameOrigin = __commonJS({
|
|
|
138142
138199
|
var require_xhr = __commonJS({
|
|
138143
138200
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/adapters/xhr.js"(exports2, module2) {
|
|
138144
138201
|
"use strict";
|
|
138145
|
-
var utils =
|
|
138202
|
+
var utils = require_utils23();
|
|
138146
138203
|
var settle = require_settle();
|
|
138147
138204
|
var cookies = require_cookies2();
|
|
138148
138205
|
var buildURL = require_buildURL();
|
|
@@ -138271,7 +138328,7 @@ var require_xhr = __commonJS({
|
|
|
138271
138328
|
var require_defaults = __commonJS({
|
|
138272
138329
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/defaults.js"(exports2, module2) {
|
|
138273
138330
|
"use strict";
|
|
138274
|
-
var utils =
|
|
138331
|
+
var utils = require_utils23();
|
|
138275
138332
|
var normalizeHeaderName = require_normalizeHeaderName();
|
|
138276
138333
|
var enhanceError = require_enhanceError();
|
|
138277
138334
|
var DEFAULT_CONTENT_TYPE = {
|
|
@@ -138381,7 +138438,7 @@ var require_defaults = __commonJS({
|
|
|
138381
138438
|
var require_transformData = __commonJS({
|
|
138382
138439
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/core/transformData.js"(exports2, module2) {
|
|
138383
138440
|
"use strict";
|
|
138384
|
-
var utils =
|
|
138441
|
+
var utils = require_utils23();
|
|
138385
138442
|
var defaults = require_defaults();
|
|
138386
138443
|
module2.exports = function transformData(data, headers, fns) {
|
|
138387
138444
|
var context2 = this || defaults;
|
|
@@ -138407,7 +138464,7 @@ var require_isCancel = __commonJS({
|
|
|
138407
138464
|
var require_dispatchRequest = __commonJS({
|
|
138408
138465
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/core/dispatchRequest.js"(exports2, module2) {
|
|
138409
138466
|
"use strict";
|
|
138410
|
-
var utils =
|
|
138467
|
+
var utils = require_utils23();
|
|
138411
138468
|
var transformData = require_transformData();
|
|
138412
138469
|
var isCancel = require_isCancel();
|
|
138413
138470
|
var defaults = require_defaults();
|
|
@@ -138468,7 +138525,7 @@ var require_dispatchRequest = __commonJS({
|
|
|
138468
138525
|
var require_mergeConfig = __commonJS({
|
|
138469
138526
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/core/mergeConfig.js"(exports2, module2) {
|
|
138470
138527
|
"use strict";
|
|
138471
|
-
var utils =
|
|
138528
|
+
var utils = require_utils23();
|
|
138472
138529
|
module2.exports = function mergeConfig(config1, config2) {
|
|
138473
138530
|
config2 = config2 || {};
|
|
138474
138531
|
var config = {};
|
|
@@ -138627,7 +138684,7 @@ var require_validator = __commonJS({
|
|
|
138627
138684
|
var require_Axios = __commonJS({
|
|
138628
138685
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/core/Axios.js"(exports2, module2) {
|
|
138629
138686
|
"use strict";
|
|
138630
|
-
var utils =
|
|
138687
|
+
var utils = require_utils23();
|
|
138631
138688
|
var buildURL = require_buildURL();
|
|
138632
138689
|
var InterceptorManager = require_InterceptorManager();
|
|
138633
138690
|
var dispatchRequest = require_dispatchRequest();
|
|
@@ -138817,7 +138874,7 @@ var require_isAxiosError = __commonJS({
|
|
|
138817
138874
|
var require_axios = __commonJS({
|
|
138818
138875
|
"../../node_modules/@wix/http-client/node_modules/axios/lib/axios.js"(exports2, module2) {
|
|
138819
138876
|
"use strict";
|
|
138820
|
-
var utils =
|
|
138877
|
+
var utils = require_utils23();
|
|
138821
138878
|
var bind = require_bind();
|
|
138822
138879
|
var Axios = require_Axios();
|
|
138823
138880
|
var mergeConfig = require_mergeConfig();
|
|
@@ -138862,7 +138919,7 @@ var require_options = __commonJS({
|
|
|
138862
138919
|
exports2.getUrlHeaders = exports2.buildAllHeaders = exports2.buildOptions = void 0;
|
|
138863
138920
|
var constants_1 = require_constants8();
|
|
138864
138921
|
var headers_1 = require_headers();
|
|
138865
|
-
var utils_1 =
|
|
138922
|
+
var utils_1 = require_utils22();
|
|
138866
138923
|
var buildOptions = ({ requestOptions, urlObject, headers, globalConfig = {
|
|
138867
138924
|
httpMockServer: {
|
|
138868
138925
|
enabled: false
|
|
@@ -138972,7 +139029,7 @@ var require_http_client = __commonJS({
|
|
|
138972
139029
|
var error_1 = require_error3();
|
|
138973
139030
|
var headers_1 = require_headers();
|
|
138974
139031
|
var options_1 = require_options();
|
|
138975
|
-
var utils_1 =
|
|
139032
|
+
var utils_1 = require_utils22();
|
|
138976
139033
|
var HttpClient = class {
|
|
138977
139034
|
constructor(opts = {}) {
|
|
138978
139035
|
this.opts = opts;
|
|
@@ -139328,7 +139385,7 @@ var require_codegen_flow_helpers = __commonJS({
|
|
|
139328
139385
|
var path_1 = __importDefault2(require("path"));
|
|
139329
139386
|
var codeGenerationService_1 = require_codeGenerationService();
|
|
139330
139387
|
var ditto_codegen_types_12 = require_dist();
|
|
139331
|
-
var utils_1 =
|
|
139388
|
+
var utils_1 = require_utils17();
|
|
139332
139389
|
var http_1 = require_http_impl();
|
|
139333
139390
|
var http_client_1 = require_index_node();
|
|
139334
139391
|
var orchestrator_1 = require_orchestrator();
|
|
@@ -353433,7 +353490,7 @@ var require_job_cancellation_monitor = __commonJS({
|
|
|
353433
353490
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
353434
353491
|
exports2.JobCancellationMonitor = void 0;
|
|
353435
353492
|
var ditto_codegen_types_12 = require_dist();
|
|
353436
|
-
var utils_1 =
|
|
353493
|
+
var utils_1 = require_utils17();
|
|
353437
353494
|
var STATUS_CHECK_INTERVAL_MS = 2e3;
|
|
353438
353495
|
var JobCancellationMonitor = class {
|
|
353439
353496
|
constructor(codeGenerationService) {
|
|
@@ -353482,7 +353539,7 @@ var require_job_timeout_monitor = __commonJS({
|
|
|
353482
353539
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
353483
353540
|
exports2.JobTimeoutMonitor = exports2.JOB_TIMEOUT_MS = void 0;
|
|
353484
353541
|
var ditto_codegen_types_12 = require_dist();
|
|
353485
|
-
var utils_1 =
|
|
353542
|
+
var utils_1 = require_utils17();
|
|
353486
353543
|
exports2.JOB_TIMEOUT_MS = 1e3 * 60 * 10;
|
|
353487
353544
|
var JobTimeoutMonitor = class {
|
|
353488
353545
|
constructor(codeGenerationService) {
|
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.133",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@wix/ditto-codegen": "1.0.0",
|
|
25
25
|
"esbuild": "^0.25.9"
|
|
26
26
|
},
|
|
27
|
-
"falconPackageHash": "
|
|
27
|
+
"falconPackageHash": "3fdd2da4c4dbeacc45b656193991ca7c8063d4887b581eecb57fc01f"
|
|
28
28
|
}
|