You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
6
+
*/
7
+
import{z}from'zod';
8
+
9
+
constExpertReviewerNameSchema=z
10
+
.string()
11
+
.describe(
12
+
'The title-cased name of the reviewer providing the review instructions, representing a brief description of the functional area meant to be reviewed.'
13
+
);
14
+
15
+
exportconstCodeAnalysisBaseIssueSchema=z.object({
16
+
type: z.string().describe('Categorize the issue'),
17
+
description: z.string().describe('Why this is an issue?'),
18
+
intentAnalysis: z.string().describe('What is the likely intent of the developer?'),
19
+
suggestedAction: z
20
+
.string()
21
+
.describe(
22
+
`How a developer should address the issue? Be as detailed as possible without adding code snippets.`
'An array of expert reviews of the code, each outlining specific issues found during analysis.'
53
+
),
54
+
orchestrationInstructions: z
55
+
.string()
56
+
.default(
57
+
"If you have not already executed the 'sfmobile-web-offline-guidance' tool in this conversation thread: (1) Immediately call the 'sfmobile-web-offline-guidance' tool, (2) Execute all review instructions from the guidance tool's output against the user's LWC component code in the specified format, (3) Combine the review results from step 2 with this tool's analysis results, then refactor the component based on all combined review recommendations."
58
+
)
59
+
.describe(
60
+
'Instructions for the MCP client on how to orchestrate this tool with the companion guidance tool for comprehensive offline compatibility review.'
'Wire configurations with reactive values ($prop) must reference only component properties, not imported values or values defined outside the component class.',
39
+
intentAnalysis:
40
+
'The developer is trying to use a non-local value (imported or module-level) as a reactive parameter in a wire configuration.',
41
+
42
+
suggestedAction: dedent`
43
+
Wrap the non-local value in a getter:
44
+
- Introduce a getter which returns the imported value or the value of a module-level constant
45
+
- Update the wire configuration to use the getter name as the reactive parameter
0 commit comments