sfdx-hardis 5.32.0 → 5.32.2-beta202505101931.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/lib/commands/hardis/doc/project2markdown.js +14 -3
- package/lib/commands/hardis/doc/project2markdown.js.map +1 -1
- package/lib/common/aiProvider/index.js +6 -1
- package/lib/common/aiProvider/index.js.map +1 -1
- package/lib/common/aiProvider/langChainProviders/langChainAnthropicProvider.d.ts +6 -0
- package/lib/common/aiProvider/langChainProviders/langChainAnthropicProvider.js +22 -0
- package/lib/common/aiProvider/langChainProviders/langChainAnthropicProvider.js.map +1 -0
- package/lib/common/aiProvider/langChainProviders/langChainBaseProvider.d.ts +24 -0
- package/lib/common/aiProvider/langChainProviders/langChainBaseProvider.js +16 -0
- package/lib/common/aiProvider/langChainProviders/langChainBaseProvider.js.map +1 -0
- package/lib/common/aiProvider/langChainProviders/langChainGoogleGenAi.d.ts +6 -0
- package/lib/common/aiProvider/langChainProviders/langChainGoogleGenAi.js +22 -0
- package/lib/common/aiProvider/langChainProviders/langChainGoogleGenAi.js.map +1 -0
- package/lib/common/aiProvider/langChainProviders/langChainOllamaProvider.d.ts +6 -0
- package/lib/common/aiProvider/langChainProviders/langChainOllamaProvider.js +18 -0
- package/lib/common/aiProvider/langChainProviders/langChainOllamaProvider.js.map +1 -0
- package/lib/common/aiProvider/langChainProviders/langChainOpenAIProvider.d.ts +6 -0
- package/lib/common/aiProvider/langChainProviders/langChainOpenAIProvider.js +22 -0
- package/lib/common/aiProvider/langChainProviders/langChainOpenAIProvider.js.map +1 -0
- package/lib/common/aiProvider/langChainProviders/langChainProviderFactory.d.ts +4 -0
- package/lib/common/aiProvider/langChainProviders/langChainProviderFactory.js +22 -0
- package/lib/common/aiProvider/langChainProviders/langChainProviderFactory.js.map +1 -0
- package/lib/common/aiProvider/langchainProvider.d.ts +10 -0
- package/lib/common/aiProvider/langchainProvider.js +86 -0
- package/lib/common/aiProvider/langchainProvider.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD.js +51 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APEX.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APEX.js +40 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APEX.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APPROVAL_PROCESS.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APPROVAL_PROCESS.js +40 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APPROVAL_PROCESS.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ASSIGNMENT_RULES.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ASSIGNMENT_RULES.js +43 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ASSIGNMENT_RULES.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_AUTORESPONSE_RULES.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_AUTORESPONSE_RULES.js +42 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_AUTORESPONSE_RULES.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ESCALATION_RULES.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ESCALATION_RULES.js +40 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ESCALATION_RULES.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW.js +40 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW_DIFF.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW_DIFF.js +50 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW_DIFF.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_LWC.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_LWC.js +68 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_LWC.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_OBJECT.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_OBJECT.js +66 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_OBJECT.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PAGE.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PAGE.js +40 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PAGE.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET.js +43 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET_GROUP.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET_GROUP.js +40 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET_GROUP.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PROFILE.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PROFILE.js +43 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PROFILE.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_SOLVE_DEPLOYMENT_ERROR.d.ts +3 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_SOLVE_DEPLOYMENT_ERROR.js +40 -0
- package/lib/common/aiProvider/promptTemplates/PROMPT_SOLVE_DEPLOYMENT_ERROR.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/index.d.ts +2 -0
- package/lib/common/aiProvider/promptTemplates/index.js +33 -0
- package/lib/common/aiProvider/promptTemplates/index.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates/types.d.ts +11 -0
- package/lib/common/aiProvider/promptTemplates/types.js +2 -0
- package/lib/common/aiProvider/promptTemplates/types.js.map +1 -0
- package/lib/common/aiProvider/promptTemplates.d.ts +0 -92
- package/lib/common/aiProvider/promptTemplates.js +28 -433
- package/lib/common/aiProvider/promptTemplates.js.map +1 -1
- package/lib/common/aiProvider/utils.d.ts +1 -0
- package/lib/common/aiProvider/utils.js +6 -0
- package/lib/common/aiProvider/utils.js.map +1 -1
- package/lib/common/utils/rulesBuilderUtil.js +6 -2
- package/lib/common/utils/rulesBuilderUtil.js.map +1 -1
- package/oclif.lock +272 -49
- package/oclif.manifest.json +1472 -1472
- package/package.json +15 -6
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { AiProviderRoot } from "./aiProviderRoot.js";
|
|
2
|
+
import c from "chalk";
|
|
3
|
+
import { uxLog } from "../utils/index.js";
|
|
4
|
+
import { getEnvVar } from "../../config/index.js";
|
|
5
|
+
import { LangChainProviderFactory } from "./langChainProviders/langChainProviderFactory.js";
|
|
6
|
+
export class LangChainProvider extends AiProviderRoot {
|
|
7
|
+
model;
|
|
8
|
+
modelName;
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
const provider = getEnvVar("LANGCHAIN_LLM_PROVIDER");
|
|
12
|
+
if (!provider) {
|
|
13
|
+
throw new Error("LANGCHAIN_LLM_PROVIDER environment variable must be set to use LangChain integration");
|
|
14
|
+
}
|
|
15
|
+
const providerType = provider.toLowerCase();
|
|
16
|
+
const modelName = getEnvVar("LANGCHAIN_LLM_MODEL");
|
|
17
|
+
const apiKey = getEnvVar("LANGCHAIN_LLM_MODEL_API_KEY");
|
|
18
|
+
if (!modelName) {
|
|
19
|
+
throw new Error("LANGCHAIN_LLM_MODEL environment variable must be set to use LangChain integration");
|
|
20
|
+
}
|
|
21
|
+
this.modelName = modelName;
|
|
22
|
+
// Common configuration for all providers
|
|
23
|
+
const config = {
|
|
24
|
+
temperature: Number(getEnvVar("LANGCHAIN_LLM_TEMPERATURE")) || undefined,
|
|
25
|
+
timeout: Number(getEnvVar("LANGCHAIN_LLM_TIMEOUT")) || undefined,
|
|
26
|
+
maxTokens: Number(getEnvVar("LANGCHAIN_LLM_MAX_TOKENS")) || undefined,
|
|
27
|
+
maxRetries: Number(getEnvVar("LANGCHAIN_LLM_MAX_RETRIES")) || undefined,
|
|
28
|
+
baseUrl: getEnvVar("LANGCHAIN_LLM_BASE_URL") || undefined,
|
|
29
|
+
apiKey: apiKey || undefined
|
|
30
|
+
};
|
|
31
|
+
// factory pattern so that adding support for new providers is easy in the future
|
|
32
|
+
const llmProvider = LangChainProviderFactory.createProvider(providerType, modelName, config);
|
|
33
|
+
this.model = llmProvider.getModel();
|
|
34
|
+
}
|
|
35
|
+
getLabel() {
|
|
36
|
+
return "LangChain connector";
|
|
37
|
+
}
|
|
38
|
+
async promptAi(promptText, template = null) {
|
|
39
|
+
// re-use the same check for max ai calls number as in the original openai provider implementation
|
|
40
|
+
if (!this.checkMaxAiCallsNumber()) {
|
|
41
|
+
const maxCalls = this.getAiMaxCallsNumber();
|
|
42
|
+
uxLog(this, c.yellow(`[LangChain] Already performed maximum ${maxCalls} calls. Increase it by defining AI_MAXIMUM_CALL_NUMBER env variable`));
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
if (process.env?.DEBUG_PROMPTS === "true") {
|
|
46
|
+
uxLog(this, c.grey(`[LangChain] Requesting the following prompt to ${this.modelName}${template ? ' using template ' + template : ''}:\n${promptText}`));
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
uxLog(this, c.grey(`[LangChain] Requesting prompt to ${this.modelName}${template ? ' using template ' + template : ''} (define DEBUG_PROMPTS=true to see details)`));
|
|
50
|
+
}
|
|
51
|
+
this.incrementAiCallsNumber();
|
|
52
|
+
try {
|
|
53
|
+
const response = await this.model.invoke([
|
|
54
|
+
{
|
|
55
|
+
role: "user",
|
|
56
|
+
content: promptText
|
|
57
|
+
}
|
|
58
|
+
]);
|
|
59
|
+
if (process.env?.DEBUG_PROMPTS === "true") {
|
|
60
|
+
uxLog(this, c.grey("[LangChain] Received prompt response\n" + JSON.stringify(response, null, 2)));
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
uxLog(this, c.grey("[LangChain] Received prompt response"));
|
|
64
|
+
}
|
|
65
|
+
const aiResponse = {
|
|
66
|
+
success: false,
|
|
67
|
+
model: this.modelName,
|
|
68
|
+
};
|
|
69
|
+
if (response.content) {
|
|
70
|
+
aiResponse.success = true;
|
|
71
|
+
aiResponse.promptResponse = typeof response.content === 'string' ? response.content : JSON.stringify(response.content);
|
|
72
|
+
}
|
|
73
|
+
return aiResponse;
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
if (error instanceof Error) {
|
|
77
|
+
uxLog(this, c.red(`[LangChain] Error while calling LLM API: ${error.message}`));
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
uxLog(this, c.red(`[LangChain] Unexpected error occurred`));
|
|
81
|
+
}
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=langchainProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"langchainProvider.js","sourceRoot":"","sources":["../../../src/common/aiProvider/langchainProvider.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "OBJECT_NAME",
|
|
5
|
+
description: "The API name of the Salesforce object whose fields and validation rules are being described.",
|
|
6
|
+
example: "Account"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "MARKDOWN",
|
|
10
|
+
description: "The markdown table containing the fields and validation rules to be reviewed and refined.",
|
|
11
|
+
example: "| Field | Label | Description | ... |\n|-------|-------|-------------| ... |"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
text: {
|
|
15
|
+
"en": `You are a skilled Business Analyst working on a Salesforce project. Your task is to review and refine the fields and validation rules of the Salesforce object "{{OBJECT_NAME}}" and describe them in plain English. The goal is to create a detailed, user-friendly explanation of each field and validation rule that a non-technical business user can easily understand.
|
|
16
|
+
|
|
17
|
+
## Instructions:
|
|
18
|
+
1. **Enhancing Fields Descriptions**:
|
|
19
|
+
- If an field's description is missing, generate a meaningful description using the context provided by the other column values (e.g., name, data type, or usage).
|
|
20
|
+
- If a field description already exists, improve its clarity and comprehensiveness by incorporating insights from the other column values.
|
|
21
|
+
- If an attribute's label is missing, generate a meaningful label using the context provided by the other column values.
|
|
22
|
+
|
|
23
|
+
2. **Enhancing Validation Rules Descriptions**:
|
|
24
|
+
- If an field's description is missing, generate a meaningful description using the context provided by the other column values (especially formula column).
|
|
25
|
+
- If a validation rule description already exists, improve its clarity and comprehensiveness by incorporating insights from the other column values (especially formula column).
|
|
26
|
+
- If an validation rule label is missing, generate a meaningful label using the context provided by the other column values.
|
|
27
|
+
|
|
28
|
+
3. **Output Format**:
|
|
29
|
+
- Return the updated descriptions in the **Markdown tables** format provided below.
|
|
30
|
+
- Ensure the tables aligns with Markdown syntax conventions for proper rendering.
|
|
31
|
+
|
|
32
|
+
4. **Tone and Style**:
|
|
33
|
+
- Use plain English suitable for business users with minimal technical jargon.
|
|
34
|
+
- Focus on clarity, completeness, and practical usage examples if applicable.
|
|
35
|
+
|
|
36
|
+
5. **Output Requirements**:
|
|
37
|
+
- Respond **only in Markdown** format.
|
|
38
|
+
- Do not include any additional text or commentary outside of the Markdown.
|
|
39
|
+
|
|
40
|
+
## Reference Data:
|
|
41
|
+
- Use the following markdown as the basis for your updates:
|
|
42
|
+
{{MARKDOWN}}
|
|
43
|
+
|
|
44
|
+
## Additional Guidance:
|
|
45
|
+
- **Consistency**: Maintain consistent formatting and ensure the descriptions are cohesive across all attributes.
|
|
46
|
+
- **Use Examples**: When applicable, include simple examples to illustrate the attribute's purpose or use case.
|
|
47
|
+
`,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
export default template;
|
|
51
|
+
//# sourceMappingURL=PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACxC,SAAS,EAAE;QACR;YACG,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,8FAA8F;YAC3G,OAAO,EAAE,SAAS;SACpB;QACD;YACG,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,2FAA2F;YACxG,OAAO,EAAE,8EAA8E;SACzF;KACH;IACD,IAAI,EAAE;QACH,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCV;KACE;CACH,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "CLASS_NAME",
|
|
5
|
+
description: "The name of the Salesforce Apex class to describe.",
|
|
6
|
+
example: "MyCustomController"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "APEX_CODE",
|
|
10
|
+
description: "The full source code of the Apex class.",
|
|
11
|
+
example: "public class MyCustomController { ... }"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
text: {
|
|
15
|
+
"en": `You are a developer working on a Salesforce project. Your goal is to summarize the behavior of the Salesforce Apex class "{{CLASS_NAME}}" in plain English, providing a detailed explanation suitable for a business user.
|
|
16
|
+
|
|
17
|
+
### Instructions:
|
|
18
|
+
|
|
19
|
+
1. **Contextual Overview**:
|
|
20
|
+
- Begin by summarizing the role of the apex class.
|
|
21
|
+
- List the key functionalities and business logic implemented in the class.
|
|
22
|
+
|
|
23
|
+
2. **Formatting Requirements**:
|
|
24
|
+
- Use markdown formatting suitable for embedding in a level 2 header (\`##\`).
|
|
25
|
+
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
|
|
26
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
27
|
+
- Never truncate any information in the response.
|
|
28
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
29
|
+
|
|
30
|
+
### Reference Data:
|
|
31
|
+
|
|
32
|
+
- The code for Apex class "{{CLASS_NAME}}" is:
|
|
33
|
+
{{APEX_CODE}}
|
|
34
|
+
|
|
35
|
+
Caution: Redact any sensitive information and replace with \`[REDACTED]\`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
36
|
+
`,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export default template;
|
|
40
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_APEX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_APEX.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APEX.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,oDAAoD;YACjE,OAAO,EAAE,oBAAoB;SAC9B;QACD;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,yCAAyC;YACtD,OAAO,EAAE,yCAAyC;SACnD;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;CAqBT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "APPROVALPROCESS_NAME",
|
|
5
|
+
description: "The name of the Salesforce Approval Process to describe.",
|
|
6
|
+
example: "Opportunity_Approval"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "APPROVALPROCESS_XML",
|
|
10
|
+
description: "The XML metadata for the Salesforce Approval Process.",
|
|
11
|
+
example: "<ApprovalProcess>...</ApprovalProcess>"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
text: {
|
|
15
|
+
"en": `You are a skilled business analyst working on a Salesforce project. Your goal is to explain the what is the Salesforce Approval Process "{{APPROVALPROCESS_NAME}}" about in plain English, provide a detailed explanation suitable for a business user.
|
|
16
|
+
|
|
17
|
+
### Instructions:
|
|
18
|
+
|
|
19
|
+
1. **Contextual Overview**:
|
|
20
|
+
- Begin by summarizing the purpose of the approval process.
|
|
21
|
+
- List the key functionalities and business logic implemented in the approval process.
|
|
22
|
+
|
|
23
|
+
2. **Formatting Requirements**:
|
|
24
|
+
- Use markdown formatting suitable for embedding in a level 2 header (\`##\`).
|
|
25
|
+
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
|
|
26
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
27
|
+
- Never truncate any information in the response.
|
|
28
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
29
|
+
|
|
30
|
+
### Reference Data:
|
|
31
|
+
|
|
32
|
+
- The metadata XML for Approval Process "{{APPROVALPROCESS_NAME}}" is:
|
|
33
|
+
{{APPROVALPROCESS_XML}}
|
|
34
|
+
|
|
35
|
+
Caution: Redact any sensitive information and replace with \`[REDACTED]\`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
36
|
+
`,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export default template;
|
|
40
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_APPROVAL_PROCESS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_APPROVAL_PROCESS.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_APPROVAL_PROCESS.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE,sBAAsB;SAChC;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,wCAAwC;SAClD;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;CAqBT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "ASSIGNMENTRULES_NAME",
|
|
5
|
+
description: "The name of the Salesforce Assignment Rules to describe.",
|
|
6
|
+
example: "Case_Assignment_Rules"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "ASSIGNMENTRULES_XML",
|
|
10
|
+
description: "The XML metadata for the Salesforce Assignment Rules.",
|
|
11
|
+
example: "<AssignmentRules>...</AssignmentRules>"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
text: {
|
|
15
|
+
"en": `You are a skilled business analyst working on a Salesforce project. Your goal is to summarize the content and behavior of the Salesforce Assignment Rules "{{ASSIGNMENTRULES_NAME}}" in plain English, providing a detailed explanation suitable for a business user.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Instructions:
|
|
19
|
+
|
|
20
|
+
1. **Contextual Overview**:
|
|
21
|
+
- Begin by explaining the role of the Salesforce Assignment Rules that you can guess according to the content of the XML and the name.
|
|
22
|
+
Try to guess the role of users assigned to this assignment rule. Do not mention the email of assigned users, but you can mention type of assigned users.
|
|
23
|
+
Based by Criteria items, explain what should so the record will be assigned.
|
|
24
|
+
- Analyze all the assignment rules for objects and in the description tell what are the aim of those rules. What is the role of the object in the system, based by the assignment rules.
|
|
25
|
+
|
|
26
|
+
2. **Formatting Requirements**:
|
|
27
|
+
- Use markdown formatting suitable for embedding in a level 2 header (\`##\`).
|
|
28
|
+
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
|
|
29
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
30
|
+
- Never truncate any information in the response.
|
|
31
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
32
|
+
|
|
33
|
+
### Reference Data:
|
|
34
|
+
|
|
35
|
+
- The metadata XML for Salesforce Assignment Rule "{{ASSIGNMENTRULES_NAME}}" is:
|
|
36
|
+
{{ASSIGNMENTRULES_XML}}
|
|
37
|
+
|
|
38
|
+
Caution: Redact any sensitive information and replace with \`[REDACTED]\`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
39
|
+
`,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
export default template;
|
|
43
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_ASSIGNMENT_RULES.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_ASSIGNMENT_RULES.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ASSIGNMENT_RULES.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,0DAA0D;YACvE,OAAO,EAAE,uBAAuB;SACjC;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,wCAAwC;SAClD;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;CAwBT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "AUTORESPONSERULES_NAME",
|
|
5
|
+
description: "The name of the Salesforce AutoResponse Rules to describe.",
|
|
6
|
+
example: "Case_AutoResponse_Rules"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "AUTORESPONSERULES_XML",
|
|
10
|
+
description: "The XML metadata for the Salesforce AutoResponse Rules.",
|
|
11
|
+
example: "<AutoResponseRules>...</AutoResponseRules>"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
text: {
|
|
15
|
+
"en": `You are a skilled business analyst working on a Salesforce project. Your goal is to summarize the content and behavior of the Salesforce AutoResponse Rules "{{AUTORESPONSERULES_NAME}}" in plain English, providing a detailed explanation suitable for a business user.
|
|
16
|
+
|
|
17
|
+
### Instructions:
|
|
18
|
+
|
|
19
|
+
1. **Contextual Overview**:
|
|
20
|
+
- Begin by explaining the role of the Salesforce AutoResponse Rules that you can guess according to the content of the XML and the name.
|
|
21
|
+
Try to guess the role of users assigned to this AutoResponse rule. Do not mention the email of assigned users, but you can mention type of assigned users.
|
|
22
|
+
- Analyze all the AutoResponse rules for objects and in the description tell what are the aim of those rules. What is the role of the object in the system, based by the AutoResponse rules.
|
|
23
|
+
- Based by Criteria items, explain what would be the response to the user, if the criteria are met.
|
|
24
|
+
|
|
25
|
+
2. **Formatting Requirements**:
|
|
26
|
+
- Use markdown formatting suitable for embedding in a level 2 header (\`##\`).
|
|
27
|
+
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
|
|
28
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
29
|
+
- Never truncate any information in the response.
|
|
30
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
31
|
+
|
|
32
|
+
### Reference Data:
|
|
33
|
+
|
|
34
|
+
- The metadata XML for Salesforce AutoResponse Rule "{{AUTORESPONSERULES_NAME}}" is:
|
|
35
|
+
{{AUTORESPONSERULES_XML}}
|
|
36
|
+
|
|
37
|
+
Caution: Redact any sensitive information and replace with \`[REDACTED]\`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
38
|
+
`,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
export default template;
|
|
42
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_AUTORESPONSE_RULES.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_AUTORESPONSE_RULES.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_AUTORESPONSE_RULES.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EAAE,4DAA4D;YACzE,OAAO,EAAE,yBAAyB;SACnC;QACD;YACE,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,yDAAyD;YACtE,OAAO,EAAE,4CAA4C;SACtD;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;CAuBT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "ESCALATIONRULES_NAME",
|
|
5
|
+
description: "The name of the Salesforce Escalation Rule to describe.",
|
|
6
|
+
example: "Case_Escalation_Rule"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "ESCALATIONRULES_XML",
|
|
10
|
+
description: "The XML metadata for the Salesforce Escalation Rule.",
|
|
11
|
+
example: "<EscalationRules>...</EscalationRules>"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
text: {
|
|
15
|
+
"en": `You are a skilled business analyst working on a Salesforce project. Your goal is to explain the what is the Salesforce Escalation Rule "{{ESCALATIONRULES_NAME}}" about in plain English, provide a detailed explanation suitable for a business user.
|
|
16
|
+
|
|
17
|
+
### Instructions:
|
|
18
|
+
|
|
19
|
+
1. **Contextual Overview**:
|
|
20
|
+
- Begin by summarizing the purpose of the escalation rule.
|
|
21
|
+
- List the key functionalities and business logic implemented in the escalation rule.
|
|
22
|
+
|
|
23
|
+
2. **Formatting Requirements**:
|
|
24
|
+
- Use markdown formatting suitable for embedding in a level 2 header (\`##\`).
|
|
25
|
+
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
|
|
26
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
27
|
+
- Never truncate any information in the response.
|
|
28
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
29
|
+
|
|
30
|
+
### Reference Data:
|
|
31
|
+
|
|
32
|
+
- The metadata XML for Escalation Rule "{{ESCALATIONRULES_NAME}}" is:
|
|
33
|
+
{{ESCALATIONRULES_XML}}
|
|
34
|
+
|
|
35
|
+
Caution: Redact any sensitive information and replace with \`[REDACTED]\`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
36
|
+
`,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export default template;
|
|
40
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_ESCALATION_RULES.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_ESCALATION_RULES.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_ESCALATION_RULES.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,yDAAyD;YACtE,OAAO,EAAE,sBAAsB;SAChC;QACD;YACE,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,wCAAwC;SAClD;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;CAqBT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "FLOW_XML",
|
|
5
|
+
description: "The XML definition of the Salesforce Flow to describe.",
|
|
6
|
+
example: "<Flow>...</Flow>"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
text: {
|
|
10
|
+
"en": `You are a business analyst working on a Salesforce project. Your goal is to describe the Salesforce Flow in plain English, providing a detailed explanation suitable for a business user.
|
|
11
|
+
|
|
12
|
+
### Instructions:
|
|
13
|
+
|
|
14
|
+
1. **Contextual Overview**:
|
|
15
|
+
- Begin by summarizing the purpose and business context of the flow.
|
|
16
|
+
- Explain what business process or automation this flow supports.
|
|
17
|
+
|
|
18
|
+
2. **Step-by-Step Description**:
|
|
19
|
+
- Describe the main steps, decisions, and actions in the flow.
|
|
20
|
+
- Use plain English and avoid technical jargon when possible.
|
|
21
|
+
- If there are sub-flows or important conditions, mention them clearly.
|
|
22
|
+
|
|
23
|
+
3. **Formatting Requirements**:
|
|
24
|
+
- Use markdown formatting suitable for embedding in a level 2 header (##).
|
|
25
|
+
- Add a new line before starting a bullet list so mkdocs-material displays it correctly, including for sub-bullets.
|
|
26
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
27
|
+
- Never truncate any information in the response.
|
|
28
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
29
|
+
|
|
30
|
+
### Reference Data:
|
|
31
|
+
|
|
32
|
+
- The flow XML is:
|
|
33
|
+
{{FLOW_XML}}
|
|
34
|
+
|
|
35
|
+
Caution: If the XML contains secret tokens or passwords, please replace them with a placeholder (e.g., [REDACTED]). Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
36
|
+
`,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export default template;
|
|
40
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_FLOW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_FLOW.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE,kBAAkB;SAC5B;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "FLOW_XML_NEW",
|
|
5
|
+
description: "The XML definition of the new version of the Salesforce Flow.",
|
|
6
|
+
example: "<Flow>...</Flow>"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "FLOW_XML_PREVIOUS",
|
|
10
|
+
description: "The XML definition of the previous version of the Salesforce Flow.",
|
|
11
|
+
example: "<Flow>...</Flow>"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
text: {
|
|
15
|
+
"en": `You are a business analyst working on a Salesforce project. Your goal is to describe the differences between the new and previous versions of a Salesforce Flow in plain English, providing a detailed explanation suitable for a business user.
|
|
16
|
+
|
|
17
|
+
### Instructions:
|
|
18
|
+
|
|
19
|
+
1. **Contextual Overview**:
|
|
20
|
+
- Begin by summarizing the purpose of the flow and the context for the changes.
|
|
21
|
+
- Explain why a new version was created if possible.
|
|
22
|
+
|
|
23
|
+
2. **Describe the Differences**:
|
|
24
|
+
- List and explain the key changes between the new and previous versions.
|
|
25
|
+
- Ignore tags related to location attributes (locationX and locationY) or positions: do not mention them in your response.
|
|
26
|
+
- Ignore nodes and elements that have not changed: do not mention them in your response.
|
|
27
|
+
- Ignore connector changes: do not mention them in your response.
|
|
28
|
+
- Use plain English and avoid technical jargon when possible.
|
|
29
|
+
|
|
30
|
+
3. **Formatting Requirements**:
|
|
31
|
+
- Use markdown formatting suitable for embedding in a level 2 header (##).
|
|
32
|
+
- Add a new line before starting a bullet list so mkdocs-material displays it correctly, including for sub-bullets and sub-sub-bullets.
|
|
33
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
34
|
+
- Never truncate any information in the response.
|
|
35
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
36
|
+
|
|
37
|
+
### Reference Data:
|
|
38
|
+
|
|
39
|
+
- The new version flow XML is:
|
|
40
|
+
{{FLOW_XML_NEW}}
|
|
41
|
+
|
|
42
|
+
- The previous version flow XML is:
|
|
43
|
+
{{FLOW_XML_PREVIOUS}}
|
|
44
|
+
|
|
45
|
+
Caution: If the XML contains secret tokens or passwords, please replace them with a placeholder (e.g., [REDACTED]). Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
46
|
+
`,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
export default template;
|
|
50
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_FLOW_DIFF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_FLOW_DIFF.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_FLOW_DIFF.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,kBAAkB;SAC5B;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,oEAAoE;YACjF,OAAO,EAAE,kBAAkB;SAC5B;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "LWC_NAME",
|
|
5
|
+
description: "The name of the Lightning Web Component to describe.",
|
|
6
|
+
example: "myCustomComponent"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "LWC_JS_CODE",
|
|
10
|
+
description: "The JavaScript code of the Lightning Web Component.",
|
|
11
|
+
example: "import { LightningElement } from 'lwc'; ..."
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "LWC_HTML_CODE",
|
|
15
|
+
description: "The HTML template code of the Lightning Web Component.",
|
|
16
|
+
example: "<template>...</template>"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "LWC_JS_META",
|
|
20
|
+
description: "The meta configuration file for the Lightning Web Component.",
|
|
21
|
+
example: "<LightningComponentBundle>...</LightningComponentBundle>"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
text: {
|
|
25
|
+
"en": `You are a skilled Salesforce developer working on a Lightning Web Components (LWC) project. Your goal is to explain the Salesforce Lightning Web Component "{{LWC_NAME}}" in plain English, providing a detailed explanation suitable for other developers and business users.
|
|
26
|
+
|
|
27
|
+
### Instructions:
|
|
28
|
+
|
|
29
|
+
1. **Contextual Overview**:
|
|
30
|
+
- Begin by summarizing the purpose and functionality of the Lightning Web Component.
|
|
31
|
+
- Describe the key features and capabilities it provides to users.
|
|
32
|
+
- Explain how it interacts with Salesforce data or other components.
|
|
33
|
+
|
|
34
|
+
2. **Technical Analysis**:
|
|
35
|
+
- Describe the main JavaScript methods and their purposes.
|
|
36
|
+
- Explain how the component handles data binding and events.
|
|
37
|
+
- Mention any wire services, apex methods, or external services the component uses.
|
|
38
|
+
- Identify any custom properties or special configurations.
|
|
39
|
+
|
|
40
|
+
3. **Formatting Requirements**:
|
|
41
|
+
- Use markdown formatting suitable for embedding in a level 2 header (\`##\`).
|
|
42
|
+
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
|
|
43
|
+
- Never truncate any information in the response.
|
|
44
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
45
|
+
|
|
46
|
+
### Reference Data:
|
|
47
|
+
|
|
48
|
+
- The HTML template for component "{{LWC_NAME}}":
|
|
49
|
+
\`\`\`
|
|
50
|
+
{{LWC_HTML_CODE}}
|
|
51
|
+
\`\`\`
|
|
52
|
+
|
|
53
|
+
- The JavaScript controller for component "{{LWC_NAME}}":
|
|
54
|
+
\`\`\`
|
|
55
|
+
{{LWC_JS_CODE}}
|
|
56
|
+
\`\`\`
|
|
57
|
+
|
|
58
|
+
- The metadata configuration for component "{{LWC_NAME}}":
|
|
59
|
+
\`\`\`
|
|
60
|
+
{{LWC_JS_META}}
|
|
61
|
+
\`\`\`
|
|
62
|
+
|
|
63
|
+
Caution: Redact any sensitive information and replace with \`[REDACTED]\`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
64
|
+
`,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
export default template;
|
|
68
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_LWC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_LWC.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_LWC.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,sDAAsD;YACnE,OAAO,EAAE,mBAAmB;SAC7B;QACD;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,6CAA6C;SACvD;QACD;YACE,IAAI,EAAE,eAAe;YACrB,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE,0BAA0B;SACpC;QACD;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,8DAA8D;YAC3E,OAAO,EAAE,0DAA0D;SACpE;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|