@algolia/wizard 0.31.0 → 0.32.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/dist/main.js +4 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -4064,7 +4064,7 @@ async function runAnalysis(mode, extraInstructions = []) {
|
|
|
4064
4064
|
// package.json
|
|
4065
4065
|
var package_default = {
|
|
4066
4066
|
name: "@algolia/wizard",
|
|
4067
|
-
version: "0.
|
|
4067
|
+
version: "0.32.0",
|
|
4068
4068
|
description: "Magically implement Algolia functionality in your codebase",
|
|
4069
4069
|
type: "module",
|
|
4070
4070
|
engines: {
|
|
@@ -4785,8 +4785,9 @@ function searchInstructions(input) {
|
|
|
4785
4785
|
] : [
|
|
4786
4786
|
"No bundled Algolia SDK reference exists for this stack, so rely on the project's own conventions and Algolia's official client for its language. Do not invent APIs \u2014 keep to the documented search endpoint and its parameters."
|
|
4787
4787
|
],
|
|
4788
|
-
`
|
|
4789
|
-
"
|
|
4788
|
+
`Create the search experience as its own component in a new file, following the project's existing component conventions (location, naming, styling approach). Do not write it inline into an existing file.`,
|
|
4789
|
+
`Import and render that new component from ${input.searchLocation ? `"${input.searchLocation}"` : "the best shared, always-rendered layout location (e.g. a header/nav component)"} so it is reachable across the app \u2014 at least a working search input and results list against the target index.`,
|
|
4790
|
+
"If a search box already exists, replace its usage with an import and render of your new component; remove the old implementation.",
|
|
4790
4791
|
`Read the index name from the ${publicIndexNameVar(input.publicEnvVarPrefix)} env var, which the wizard sets to "${input.targetIndex}". Never hardcode an index name or derive one from the project, file, or component name.`,
|
|
4791
4792
|
"Read the App ID, the search-only API key, and the index name from env vars; never hardcode them. A search-only key is safe to expose client-side.",
|
|
4792
4793
|
// The key is provisioned only after verification passes, and the wizard
|