Skip to content

Commit 3cf50b2

Browse files
jomifepecursoragent
andcommitted
chore: point slice-create AI hint to Prismic CLI docs
Update the placeholder comment generated when creating a new slice to suggest using your own AI agent with the Prismic CLI instead of the Prismic MCP server, and link to the corresponding docs section. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 82ad30d commit 3cf50b2

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

packages/adapter-next/src/hooks/slice-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const createComponentFile = async ({
4444
<br />
4545
<strong>You can edit this slice directly in your code editor.</strong>
4646
{/**
47-
* 💡 Use the Prismic MCP server with your code editor
48-
* 📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
47+
* 💡 Use your own AI agent with the Prismic CLI
48+
* 📚 Docs: https://prismic.io/docs/ai#create-slices
4949
*/}`;
5050

5151
if (data.componentContents) {

packages/adapter-nuxt/src/hooks/slice-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const createComponentFile = async ({
4040
<br />
4141
<strong>You can edit this slice directly in your code editor.</strong>
4242
<!--
43-
💡 Use the Prismic MCP server with your code editor
44-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
43+
💡 Use your own AI agent with the Prismic CLI
44+
📚 Docs: https://prismic.io/docs/ai#create-slices
4545
-->`;
4646

4747
if (data.componentContents) {

packages/adapter-nuxt2/src/hooks/slice-create.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const createComponentFile = async ({
3737
<br />
3838
<strong>You can edit this slice directly in your code editor.</strong>
3939
<!--
40-
💡 Use the Prismic MCP server with your code editor
41-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
40+
💡 Use your own AI agent with the Prismic CLI
41+
📚 Docs: https://prismic.io/docs/ai#create-slices
4242
-->
4343
</section>
4444
</template>

packages/adapter-sveltekit/src/hooks/slice-create.templates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Placeholder component for {slice.slice_type} (variation: {slice.variation}) slic
88
<br />
99
<strong>You can edit this slice directly in your code editor.</strong>
1010
<!--
11-
💡 Use the Prismic MCP server with your code editor
12-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
11+
💡 Use your own AI agent with the Prismic CLI
12+
📚 Docs: https://prismic.io/docs/ai#create-slices
1313
-->
1414
`;
1515

packages/adapter-sveltekit/test/__snapshots__/plugin-slice-create.test.ts.snap

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ exports[`Svelte <=4 syntax > component file has correct contents 1`] = `
1515
<br />
1616
<strong>You can edit this slice directly in your code editor.</strong>
1717
<!--
18-
💡 Use the Prismic MCP server with your code editor
19-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
18+
💡 Use your own AI agent with the Prismic CLI
19+
📚 Docs: https://prismic.io/docs/ai#create-slices
2020
-->
2121
</section>
2222
"
@@ -38,8 +38,8 @@ exports[`Svelte <=4 syntax > component file is correctly typed when TypeScript i
3838
<br />
3939
<strong>You can edit this slice directly in your code editor.</strong>
4040
<!--
41-
💡 Use the Prismic MCP server with your code editor
42-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
41+
💡 Use your own AI agent with the Prismic CLI
42+
📚 Docs: https://prismic.io/docs/ai#create-slices
4343
-->
4444
</section>
4545
"
@@ -63,8 +63,8 @@ exports[`component file has correct contents 1`] = `
6363
<br />
6464
<strong>You can edit this slice directly in your code editor.</strong>
6565
<!--
66-
💡 Use the Prismic MCP server with your code editor
67-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
66+
💡 Use your own AI agent with the Prismic CLI
67+
📚 Docs: https://prismic.io/docs/ai#create-slices
6868
-->
6969
</section>
7070
"
@@ -89,8 +89,8 @@ exports[`component file is correctly typed when TypeScript is enabled 1`] = `
8989
<br />
9090
<strong>You can edit this slice directly in your code editor.</strong>
9191
<!--
92-
💡 Use the Prismic MCP server with your code editor
93-
📚 Docs: https://prismic.io/docs/ai#code-with-prismics-mcp-server
92+
💡 Use your own AI agent with the Prismic CLI
93+
📚 Docs: https://prismic.io/docs/ai#create-slices
9494
-->
9595
</section>
9696
"

0 commit comments

Comments
 (0)