@algolia/wizard 0.13.0 → 0.14.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 +6 -11
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3443,7 +3443,7 @@ async function runAnalysis(mode, extraInstructions = []) {
|
|
|
3443
3443
|
// package.json
|
|
3444
3444
|
var package_default = {
|
|
3445
3445
|
name: "@algolia/wizard",
|
|
3446
|
-
version: "0.
|
|
3446
|
+
version: "0.14.0",
|
|
3447
3447
|
description: "Magically implement Algolia functionality in your codebase",
|
|
3448
3448
|
type: "module",
|
|
3449
3449
|
engines: {
|
|
@@ -4250,19 +4250,14 @@ function searchInstructions(input) {
|
|
|
4250
4250
|
`Build the search UI for ${input.uiFramework}.`,
|
|
4251
4251
|
"Follow the Algolia JS SDK reference below for client setup and InstantSearch wiring; prefer it over prior knowledge:",
|
|
4252
4252
|
doc,
|
|
4253
|
-
`Add the search UI at ${input.searchLocation ? `"${input.searchLocation}"` : "the best shared, always-rendered layout location (e.g. a header/nav component)"} so it is reachable across the app
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
// The key is provisioned only after verification passes, so the agent never
|
|
4257
|
-
// sees one. It must also leave .env alone: the wizard reads that file to
|
|
4258
|
-
// decide whether a key already exists, and an agent-invented value there
|
|
4259
|
-
// would be reused as if it were real.
|
|
4253
|
+
`Add the search UI at ${input.searchLocation ? `"${input.searchLocation}"` : "the best shared, always-rendered layout location (e.g. a header/nav component)"} so it is reachable across the app.`,
|
|
4254
|
+
"If a search box already exists, replace it with yours.",
|
|
4255
|
+
`Read the index name from the ${searchIndexVar(input.language)} env var, which the wizard sets to "${input.targetIndex}". Do not fabricate the index name.`,
|
|
4260
4256
|
`Add Algolia App ID "${input.appId}"; leave the search-only key as a placeholder. Do not create or edit .env \u2014 the wizard writes the resolved key there itself.`,
|
|
4261
|
-
// Not the agent's to rename: the wizard writes these exact names into
|
|
4262
|
-
// ".env" right after this step, so a renamed prefix would leave the code
|
|
4263
|
-
// reading a var the wizard never wrote.
|
|
4264
4257
|
`Use exactly these public env var names in the code: ${input.searchEnvVars.map(({ name }) => name).join(", ")}.`,
|
|
4258
|
+
"The search-only key is safe to expose client-side.",
|
|
4265
4259
|
'Install any Algolia/InstantSearch packages you import via runShell, and add them to package.json "dependencies" with a valid version range.',
|
|
4260
|
+
"Match the styles of the application as closely as possible",
|
|
4266
4261
|
"The summary should be extremely concise; do not mention env var setup or manual testing steps \u2014 the wizard writes the resolved credentials to .env and reports that separately."
|
|
4267
4262
|
];
|
|
4268
4263
|
}
|