sfdx-hardis 5.32.1 → 5.33.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 +10 -0
- 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/oclif.lock +272 -49
- package/oclif.manifest.json +766 -766
- package/package.json +15 -6
|
@@ -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"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "OBJECT_NAME",
|
|
5
|
+
description: "The API name of the Salesforce object to describe.",
|
|
6
|
+
example: "Account"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "OBJECT_XML",
|
|
10
|
+
description: "The XML metadata definition of the Salesforce object.",
|
|
11
|
+
example: "<CustomObject>...</CustomObject>"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: "ALL_OBJECTS_LIST",
|
|
15
|
+
description: "A list of all objects in the Salesforce org.",
|
|
16
|
+
example: "Account, Contact, Opportunity, ..."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: "ALL_OBJECT_LINKS",
|
|
20
|
+
description: "The object model (MasterDetail and Lookup relationships) for all objects.",
|
|
21
|
+
example: "Account->Contact (Lookup), Opportunity->Account (MasterDetail)"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
text: {
|
|
25
|
+
"en": `You are a business analyst working on a Salesforce project. Your goal is to describe the Salesforce object "{{OBJECT_NAME}}" in plain English, providing a detailed explanation suitable for a business user.
|
|
26
|
+
|
|
27
|
+
### Instructions:
|
|
28
|
+
|
|
29
|
+
1. **Contextual Overview**:
|
|
30
|
+
- Begin by summarizing the role and purpose of the object "{{OBJECT_NAME}}" in the Salesforce org.
|
|
31
|
+
- Explain its significance in the project, its purpose in the org's implementation, and any key business processes it supports.
|
|
32
|
+
|
|
33
|
+
2. **Relationships**:
|
|
34
|
+
- Use the provided object model data to describe how "{{OBJECT_NAME}}" relates to other objects.
|
|
35
|
+
- Include:
|
|
36
|
+
- Direct relationships (MasterDetail and Lookup fields on the object).
|
|
37
|
+
- Inverse relationships (other objects referencing "{{OBJECT_NAME}}").
|
|
38
|
+
- Highlight any key dependencies or implications of these relationships in plain English.
|
|
39
|
+
|
|
40
|
+
3. **Additional Guidance**:
|
|
41
|
+
- **Do NOT include** fields table or validation rules table in the response
|
|
42
|
+
- Use the acronyms provided to interpret metadata names (e.g., TR: Trigger, VR: Validation Rule, WF: Workflow).
|
|
43
|
+
- If the XML metadata contains sensitive information (e.g., tokens, passwords), replace them with a placeholder (e.g., \`[REDACTED]\`).
|
|
44
|
+
|
|
45
|
+
4. **Formatting Requirements**:
|
|
46
|
+
- Use markdown formatting suitable for embedding in a level 2 header (\`##\`).
|
|
47
|
+
- Add new lines before starting bullet lists so mkdocs-material renders them correctly, including nested lists.
|
|
48
|
+
- Add new lines after a header title so mkdocs-material can display the content correctly.
|
|
49
|
+
- Never truncate any information in the response.
|
|
50
|
+
- Provide a concise summary before detailed sections for quick understanding.
|
|
51
|
+
|
|
52
|
+
### Reference Data:
|
|
53
|
+
|
|
54
|
+
- The list of all objects in the Salesforce org is: {{ALL_OBJECTS_LIST}}
|
|
55
|
+
|
|
56
|
+
- The object model (MasterDetail and Lookup relationships) is: {{ALL_OBJECT_LINKS}}
|
|
57
|
+
|
|
58
|
+
- The metadata XML for "{{OBJECT_NAME}}" is:
|
|
59
|
+
{{OBJECT_XML}}
|
|
60
|
+
|
|
61
|
+
Caution: Redact any sensitive information and replace with \`[REDACTED]\`. Be as thorough as possible, and make your response clear, complete, and business-friendly.
|
|
62
|
+
`,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
export default template;
|
|
66
|
+
//# sourceMappingURL=PROMPT_DESCRIBE_OBJECT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_OBJECT.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_OBJECT.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACvC,SAAS,EAAE;QACP;YACI,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,oDAAoD;YACjE,OAAO,EAAE,SAAS;SACrB;QACD;YACI,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uDAAuD;YACpE,OAAO,EAAE,kCAAkC;SAC9C;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,8CAA8C;YAC3D,OAAO,EAAE,oCAAoC;SAChD;QACD;YACI,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,2EAA2E;YACxF,OAAO,EAAE,gEAAgE;SAC5E;KACJ;IACD,IAAI,EAAE;QACF,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCb;KACI;CACJ,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "PAGE_NAME",
|
|
5
|
+
description: "The name of the Salesforce Lightning Page to describe.",
|
|
6
|
+
example: "Account_Record_Page"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "PAGE_XML",
|
|
10
|
+
description: "The XML metadata for the Lightning Page.",
|
|
11
|
+
example: "<FlexiPage>...</FlexiPage>"
|
|
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 Lightning Page "{{PAGE_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 lightning page.
|
|
21
|
+
- List the key tabs, sections, views, related lists and actions described in the lightning page.
|
|
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 Lightning page "{{PAGE_NAME}}" is:
|
|
33
|
+
{{PAGE_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_PAGE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_PAGE.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PAGE.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,WAAW;YACjB,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE,qBAAqB;SAC/B;QACD;YACE,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,0CAA0C;YACvD,OAAO,EAAE,4BAA4B;SACtC;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: "PERMISSIONSET_NAME",
|
|
5
|
+
description: "The name of the Salesforce Permission Set to describe.",
|
|
6
|
+
example: "PS_CloudityAccount"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "PERMISSIONSET_XML",
|
|
10
|
+
description: "The XML metadata for the Salesforce Permission Set.",
|
|
11
|
+
example: "<PermissionSet>...</PermissionSet>"
|
|
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 PermissionSet "{{PERMISSIONSET_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 Salesforce PermissionSet that you can guess according to the content of the XML. Try to guess the role of users assigned to this permission set according to applicationVisibilities, objectVisibilities and userPermissions.
|
|
21
|
+
- List the key features of the Permission Set.
|
|
22
|
+
- The most important features are License, Applications, User Permissions ,features with default values ,Custom Objects and Record Types
|
|
23
|
+
- Ignore Apex classes and Custom Fields
|
|
24
|
+
- Ignore blocks who has access or visibility set to "false"
|
|
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 Permission Set "{{PERMISSIONSET_NAME}}" is:
|
|
36
|
+
{{PERMISSIONSET_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_PERMISSION_SET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_PERMISSION_SET.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,oBAAoB;YAC1B,WAAW,EAAE,wDAAwD;YACrE,OAAO,EAAE,oBAAoB;SAC9B;QACD;YACE,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,qDAAqD;YAClE,OAAO,EAAE,oCAAoC;SAC9C;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;CAwBT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "PERMISSIONSETGROUP_NAME",
|
|
5
|
+
description: "The name of the Salesforce Permission Set Group to describe.",
|
|
6
|
+
example: "PS_CloudityAdmin"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "PERMISSIONSETGROUP_XML",
|
|
10
|
+
description: "The XML metadata for the Salesforce Permission Set Group.",
|
|
11
|
+
example: "<PermissionSetGroup>...</PermissionSetGroup>"
|
|
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 PermissionSetGroup "{{PERMISSIONSETGROUP_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 Salesforce PermissionSetGroup that you can guess according to the content of the XML. Try to guess the role of users assigned to this permission set group according to the name, description and related Permission Sets
|
|
21
|
+
- List the key features of the Permission Set.
|
|
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 Salesforce Permission Set Group "{{PERMISSIONSETGROUP_NAME}}" is:
|
|
33
|
+
{{PERMISSIONSETGROUP_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_PERMISSION_SET_GROUP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_PERMISSION_SET_GROUP.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PERMISSION_SET_GROUP.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,yBAAyB;YAC/B,WAAW,EAAE,8DAA8D;YAC3E,OAAO,EAAE,kBAAkB;SAC5B;QACD;YACE,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EAAE,2DAA2D;YACxE,OAAO,EAAE,8CAA8C;SACxD;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: "PROFILE_NAME",
|
|
5
|
+
description: "The name of the Salesforce Profile to describe.",
|
|
6
|
+
example: "Cloudity Sales"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
name: "PROFILE_XML",
|
|
10
|
+
description: "The XML metadata for the Salesforce Profile.",
|
|
11
|
+
example: "<Profile>...</Profile>"
|
|
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 Profile "{{PROFILE_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 Salesforce Profile that you can guess according to the content of the XML. Try to guess the role of users assigned to this profile according to applicationVisibilities, objectVisibilities and userPermissions.
|
|
21
|
+
- List the key features of the Profiles.
|
|
22
|
+
- The most important features are License, Applications, User Permissions ,features with default values ,Custom Objects and Record Types
|
|
23
|
+
- Ignore Apex classes and Custom Fields
|
|
24
|
+
- Ignore blocks who has access or visibility set to "false"
|
|
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 Profile "{{PROFILE_NAME}}" is:
|
|
36
|
+
{{PROFILE_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_PROFILE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_DESCRIBE_PROFILE.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_DESCRIBE_PROFILE.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,cAAc;YACpB,WAAW,EAAE,iDAAiD;YAC9D,OAAO,EAAE,gBAAgB;SAC1B;QACD;YACE,IAAI,EAAE,aAAa;YACnB,WAAW,EAAE,8CAA8C;YAC3D,OAAO,EAAE,wBAAwB;SAClC;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;CAwBT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const template = {
|
|
2
|
+
variables: [
|
|
3
|
+
{
|
|
4
|
+
name: "ERROR",
|
|
5
|
+
description: "The Salesforce deployment error message to analyze and solve.",
|
|
6
|
+
example: "Cannot deploy component: missing field 'X' on object 'Y'"
|
|
7
|
+
}
|
|
8
|
+
],
|
|
9
|
+
text: {
|
|
10
|
+
"en": `You are a Salesforce release manager using Salesforce CLI commands to perform deployments. Your goal is to help solve the following Salesforce deployment error in a clear, actionable way for a technical user.
|
|
11
|
+
|
|
12
|
+
### Instructions:
|
|
13
|
+
|
|
14
|
+
1. **Error Analysis**:
|
|
15
|
+
- Analyze the error message and identify the root cause.
|
|
16
|
+
- If the error is ambiguous, suggest possible causes based on Salesforce deployment best practices.
|
|
17
|
+
|
|
18
|
+
2. **Solution Proposal**:
|
|
19
|
+
- Provide a step-by-step solution to resolve the error.
|
|
20
|
+
- If applicable, include the correct sfdx source format or XML example.
|
|
21
|
+
- Do not include instructions on how to retrieve or deploy the changes with Salesforce CLI.
|
|
22
|
+
|
|
23
|
+
3. **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 displays them 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 deployment error returned by Salesforce CLI is:
|
|
33
|
+
{{ERROR}}
|
|
34
|
+
|
|
35
|
+
Caution: If the error message 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 actionable.
|
|
36
|
+
`,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
export default template;
|
|
40
|
+
//# sourceMappingURL=PROMPT_SOLVE_DEPLOYMENT_ERROR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PROMPT_SOLVE_DEPLOYMENT_ERROR.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/PROMPT_SOLVE_DEPLOYMENT_ERROR.ts"],"names":[],"mappings":"AAEA,MAAM,QAAQ,GAA6B;IACzC,SAAS,EAAE;QACT;YACE,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,+DAA+D;YAC5E,OAAO,EAAE,0DAA0D;SACpE;KACF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BT;KACE;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|