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,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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import PROMPT_SOLVE_DEPLOYMENT_ERROR from "./PROMPT_SOLVE_DEPLOYMENT_ERROR.js";
|
|
2
|
+
import PROMPT_DESCRIBE_FLOW from "./PROMPT_DESCRIBE_FLOW.js";
|
|
3
|
+
import PROMPT_DESCRIBE_FLOW_DIFF from "./PROMPT_DESCRIBE_FLOW_DIFF.js";
|
|
4
|
+
import PROMPT_DESCRIBE_OBJECT from "./PROMPT_DESCRIBE_OBJECT.js";
|
|
5
|
+
import PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD from "./PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD.js";
|
|
6
|
+
import PROMPT_DESCRIBE_APEX from "./PROMPT_DESCRIBE_APEX.js";
|
|
7
|
+
import PROMPT_DESCRIBE_PAGE from "./PROMPT_DESCRIBE_PAGE.js";
|
|
8
|
+
import PROMPT_DESCRIBE_PROFILE from "./PROMPT_DESCRIBE_PROFILE.js";
|
|
9
|
+
import PROMPT_DESCRIBE_PERMISSION_SET from "./PROMPT_DESCRIBE_PERMISSION_SET.js";
|
|
10
|
+
import PROMPT_DESCRIBE_PERMISSION_SET_GROUP from "./PROMPT_DESCRIBE_PERMISSION_SET_GROUP.js";
|
|
11
|
+
import PROMPT_DESCRIBE_ASSIGNMENT_RULES from "./PROMPT_DESCRIBE_ASSIGNMENT_RULES.js";
|
|
12
|
+
import PROMPT_DESCRIBE_APPROVAL_PROCESS from "./PROMPT_DESCRIBE_APPROVAL_PROCESS.js";
|
|
13
|
+
import PROMPT_DESCRIBE_LWC from "./PROMPT_DESCRIBE_LWC.js";
|
|
14
|
+
import PROMPT_DESCRIBE_AUTORESPONSE_RULES from "./PROMPT_DESCRIBE_AUTORESPONSE_RULES.js";
|
|
15
|
+
import PROMPT_DESCRIBE_ESCALATION_RULES from "./PROMPT_DESCRIBE_ESCALATION_RULES.js";
|
|
16
|
+
export const PROMPT_TEMPLATES = {
|
|
17
|
+
PROMPT_SOLVE_DEPLOYMENT_ERROR,
|
|
18
|
+
PROMPT_DESCRIBE_FLOW,
|
|
19
|
+
PROMPT_DESCRIBE_FLOW_DIFF,
|
|
20
|
+
PROMPT_DESCRIBE_OBJECT,
|
|
21
|
+
PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD,
|
|
22
|
+
PROMPT_DESCRIBE_APEX,
|
|
23
|
+
PROMPT_DESCRIBE_PAGE,
|
|
24
|
+
PROMPT_DESCRIBE_PROFILE,
|
|
25
|
+
PROMPT_DESCRIBE_PERMISSION_SET,
|
|
26
|
+
PROMPT_DESCRIBE_PERMISSION_SET_GROUP,
|
|
27
|
+
PROMPT_DESCRIBE_ASSIGNMENT_RULES,
|
|
28
|
+
PROMPT_DESCRIBE_APPROVAL_PROCESS,
|
|
29
|
+
PROMPT_DESCRIBE_LWC,
|
|
30
|
+
PROMPT_DESCRIBE_AUTORESPONSE_RULES,
|
|
31
|
+
PROMPT_DESCRIBE_ESCALATION_RULES,
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/index.ts"],"names":[],"mappings":"AAEA,OAAO,6BAA6B,MAAM,oCAAoC,CAAC;AAC/E,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,yBAAyB,MAAM,gCAAgC,CAAC;AACvE,OAAO,sBAAsB,MAAM,6BAA6B,CAAC;AACjE,OAAO,oCAAoC,MAAM,2CAA2C,CAAC;AAC7F,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,oBAAoB,MAAM,2BAA2B,CAAC;AAC7D,OAAO,uBAAuB,MAAM,8BAA8B,CAAC;AACnE,OAAO,8BAA8B,MAAM,qCAAqC,CAAC;AACjF,OAAO,oCAAoC,MAAM,2CAA2C,CAAC;AAC7F,OAAO,gCAAgC,MAAM,uCAAuC,CAAC;AACrF,OAAO,gCAAgC,MAAM,uCAAuC,CAAC;AACrF,OAAO,mBAAmB,MAAM,0BAA0B,CAAC;AAC3D,OAAO,kCAAkC,MAAM,yCAAyC,CAAC;AACzF,OAAO,gCAAgC,MAAM,uCAAuC,CAAC;AAErF,MAAM,CAAC,MAAM,gBAAgB,GAA6C;IACxE,6BAA6B;IAC7B,oBAAoB;IACpB,yBAAyB;IACzB,sBAAsB;IACtB,oCAAoC;IACpC,oBAAoB;IACpB,oBAAoB;IACpB,uBAAuB;IACvB,8BAA8B;IAC9B,oCAAoC;IACpC,gCAAgC;IAChC,gCAAgC;IAChC,mBAAmB;IACnB,kCAAkC;IAClC,gCAAgC;CACjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/common/aiProvider/promptTemplates/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,94 +1,2 @@
|
|
|
1
1
|
export type PromptTemplate = "PROMPT_SOLVE_DEPLOYMENT_ERROR" | "PROMPT_DESCRIBE_FLOW" | "PROMPT_DESCRIBE_FLOW_DIFF" | "PROMPT_DESCRIBE_OBJECT" | "PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD" | "PROMPT_DESCRIBE_APEX" | "PROMPT_DESCRIBE_PAGE" | "PROMPT_DESCRIBE_PROFILE" | "PROMPT_DESCRIBE_PERMISSION_SET" | "PROMPT_DESCRIBE_PERMISSION_SET_GROUP" | "PROMPT_DESCRIBE_ASSIGNMENT_RULES" | "PROMPT_DESCRIBE_APPROVAL_PROCESS" | "PROMPT_DESCRIBE_LWC" | "PROMPT_DESCRIBE_AUTORESPONSE_RULES" | "PROMPT_DESCRIBE_ESCALATION_RULES";
|
|
2
2
|
export declare function buildPromptFromTemplate(template: PromptTemplate, variables: object): string;
|
|
3
|
-
export declare const PROMPT_TEMPLATES: {
|
|
4
|
-
PROMPT_SOLVE_DEPLOYMENT_ERROR: {
|
|
5
|
-
variables: string[];
|
|
6
|
-
text: {
|
|
7
|
-
en: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
PROMPT_DESCRIBE_FLOW: {
|
|
11
|
-
variables: string[];
|
|
12
|
-
text: {
|
|
13
|
-
en: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
PROMPT_DESCRIBE_FLOW_DIFF: {
|
|
17
|
-
variables: string[];
|
|
18
|
-
text: {
|
|
19
|
-
en: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
PROMPT_DESCRIBE_OBJECT: {
|
|
23
|
-
variables: string[];
|
|
24
|
-
text: {
|
|
25
|
-
en: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
PROMPT_COMPLETE_OBJECT_ATTRIBUTES_MD: {
|
|
29
|
-
variables: string[];
|
|
30
|
-
text: {
|
|
31
|
-
en: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
PROMPT_DESCRIBE_APEX: {
|
|
35
|
-
variables: string[];
|
|
36
|
-
text: {
|
|
37
|
-
en: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
PROMPT_DESCRIBE_PAGE: {
|
|
41
|
-
variables: string[];
|
|
42
|
-
text: {
|
|
43
|
-
en: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
PROMPT_DESCRIBE_PROFILE: {
|
|
47
|
-
variables: string[];
|
|
48
|
-
text: {
|
|
49
|
-
en: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
PROMPT_DESCRIBE_PERMISSION_SET: {
|
|
53
|
-
variables: string[];
|
|
54
|
-
text: {
|
|
55
|
-
en: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
PROMPT_DESCRIBE_PERMISSION_SET_GROUP: {
|
|
59
|
-
variables: string[];
|
|
60
|
-
text: {
|
|
61
|
-
en: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
PROMPT_DESCRIBE_ASSIGNMENT_RULES: {
|
|
65
|
-
variables: string[];
|
|
66
|
-
text: {
|
|
67
|
-
en: string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
PROMPT_DESCRIBE_APPROVAL_PROCESS: {
|
|
71
|
-
variables: string[];
|
|
72
|
-
text: {
|
|
73
|
-
en: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
PROMPT_DESCRIBE_LWC: {
|
|
77
|
-
variables: string[];
|
|
78
|
-
text: {
|
|
79
|
-
en: string;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
PROMPT_DESCRIBE_AUTORESPONSE_RULES: {
|
|
83
|
-
variables: string[];
|
|
84
|
-
text: {
|
|
85
|
-
en: string;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
PROMPT_DESCRIBE_ESCALATION_RULES: {
|
|
89
|
-
variables: string[];
|
|
90
|
-
text: {
|
|
91
|
-
en: string;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
};
|