@algolia/wizard 0.25.0 → 0.26.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 +5 -5
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3747,7 +3747,7 @@ async function runAnalysis(mode, extraInstructions = []) {
|
|
|
3747
3747
|
// package.json
|
|
3748
3748
|
var package_default = {
|
|
3749
3749
|
name: "@algolia/wizard",
|
|
3750
|
-
version: "0.
|
|
3750
|
+
version: "0.26.0",
|
|
3751
3751
|
description: "Magically implement Algolia functionality in your codebase",
|
|
3752
3752
|
type: "module",
|
|
3753
3753
|
engines: {
|
|
@@ -4501,9 +4501,9 @@ function sourceSpecificInstructions(input) {
|
|
|
4501
4501
|
"Never fabricate, hardcode, or substitute a different file."
|
|
4502
4502
|
],
|
|
4503
4503
|
generated: [
|
|
4504
|
-
"No real data source exists;
|
|
4505
|
-
"Call the generateRecord tool once
|
|
4506
|
-
"In the script, read and parse
|
|
4504
|
+
"No real data source exists; generate sample records for the entity.",
|
|
4505
|
+
"Call the generateRecord tool once with a count of 100. It invents the values and unique objectIDs and writes them to a JSON file, returning the file path. Do not write records or objectIDs yourself.",
|
|
4506
|
+
"In the script, read and parse the returned file path at runtime using your language's standard JSON support, instead of inlining the records as literals.",
|
|
4507
4507
|
"Add a prominent TODO where the developer swaps the generated records (and the JSON file under `.algolia-wizard/data/`) for their real record source."
|
|
4508
4508
|
]
|
|
4509
4509
|
};
|
|
@@ -4522,7 +4522,7 @@ function ingestionInstructions(input) {
|
|
|
4522
4522
|
return [
|
|
4523
4523
|
...input.confirmed && input.confirmed.length ? [
|
|
4524
4524
|
`Create an ingestion script under "${input.ingestDir}/" at the repo root.`,
|
|
4525
|
-
`Ingest only
|
|
4525
|
+
`Ingest only the confirmed entity (name, source paths, attributes): ${JSON.stringify(input.confirmed)}.`,
|
|
4526
4526
|
`Ingesting writes to Algolia, so the script needs a write API key and App ID \u2014 read them from the ${API_KEY_VAR} and ${APP_ID_VAR} environment variables rather than hardcoding them. The wizard sets these when it runs the script.`,
|
|
4527
4527
|
`Read the index name from the ${INDEX_NAME_VAR} environment variable, which the wizard sets to "${input.targetIndex}". Never hardcode an index name or derive one from the project, file, or entity name \u2014 the write key only works for that exact index. Exit with an error if ${INDEX_NAME_VAR} is unset.`,
|
|
4528
4528
|
"Write the script in the project's primary language, using Algolia's official client for that language. Do not use the raw HTTP API.",
|