Skip to content

Commit 082f17e

Browse files
committed
Fix lint errors
1 parent f7d16fd commit 082f17e

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

packages/pwa-storefront-mcp/src/server/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class PwaStorefrontMCPServerHighLevel {
3737
}
3838

3939
setupTools() {
40-
4140
// Register CreateProjectTool
4241
this.server.tool(
4342
CreateProjectTool.name,

packages/pwa-storefront-mcp/src/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
import CreateProjectTool from './pwa-create-app-guideline-tool.js'
88
import DeveloperGuidelinesTool from './pwa-developer-guideline-tool.js'
99

10-
export {CreateProjectTool, DeveloperGuidelinesTool}
10+
export {CreateProjectTool, DeveloperGuidelinesTool}

packages/pwa-storefront-mcp/src/utils/pwa-create-app-guideline-tool.js

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
// First party dependencies
8-
import CREATE_APP_SCHEMA from '@salesforce/pwa-kit-create-app/program.json' assert { type: 'json' }
8+
import CREATE_APP_SCHEMA from '@salesforce/pwa-kit-create-app/program.json' assert {type: 'json'}
99

1010
// Project dependencies
1111
import {EmptyJsonSchema} from './utils.js'
1212

13-
1413
const guidelinesText = `
1514
# PWA Kit Create App — Agent Usage Guidelines
1615
@@ -60,23 +59,23 @@ If the user requests a project using a **template**:
6059

6160
export default {
6261
name: 'create-app_guidelines',
63-
description: guidelinesText,
6462
description: `This tool is used to provide the agent with the instructions on how to use the @salesforce/pwa-kit-create-app CLI tool to create a new PWA Kit projects. Do not attempt to create a project without using this tool first.`,
6563
inputSchema: EmptyJsonSchema,
6664
fn: async () => ({
6765
content: [
6866
{
6967
type: 'text',
7068
text: JSON.stringify(
71-
{
72-
guidelines: guidelinesText,
73-
cli: CREATE_APP_SCHEMA.metadata.description,
74-
schemas: {...CREATE_APP_SCHEMA.schemas},
75-
data: {...CREATE_APP_SCHEMA.data}
76-
},
77-
null,
78-
2
79-
)}
69+
{
70+
guidelines: guidelinesText,
71+
cli: CREATE_APP_SCHEMA.metadata.description,
72+
schemas: {...CREATE_APP_SCHEMA.schemas},
73+
data: {...CREATE_APP_SCHEMA.data}
74+
},
75+
null,
76+
2
77+
)
78+
}
8079
]
8180
})
82-
}
81+
}

0 commit comments

Comments
 (0)