@algolia/wizard 0.84.0-rc.202.646 → 0.84.0-rc.202.647
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 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2315,7 +2315,7 @@ async function ensureApplication(resumeAppId) {
|
|
|
2315
2315
|
// package.json
|
|
2316
2316
|
var package_default = {
|
|
2317
2317
|
name: "@algolia/wizard",
|
|
2318
|
-
version: "0.84.0-rc.202.
|
|
2318
|
+
version: "0.84.0-rc.202.647",
|
|
2319
2319
|
description: "Magically implement Algolia functionality in your codebase",
|
|
2320
2320
|
type: "module",
|
|
2321
2321
|
engines: {
|
|
@@ -6302,7 +6302,7 @@ function ingestionInstructions(input) {
|
|
|
6302
6302
|
"For Node.js, module resolution starts from the script path, not the cwd."
|
|
6303
6303
|
] : [],
|
|
6304
6304
|
`When the script is finished, decide the exact command and cwd you will use to run it. Make sure that the script path in the command resolves from that cwd to the filePath. Then call reviewScript with that filePath, command, cwd, the exact selected entityName, and usesGeneratedRecords set to ${input.ingestionSource === "generated"}. Wait for the developer to review it because running it writes records to a live index. Do not run it before that call returns. If you change the command or cwd after a failed run, call reviewScript again before runShell.`,
|
|
6305
|
-
'Then, without changing directories, run the script yourself via runShell using the exact same command and cwd. Report the command you ran as "ingestCommand" so the developer can re-run it. Its explanation must say that running it writes records to Algolia.',
|
|
6305
|
+
'Then, without changing directories, run the script yourself via runShell using the exact same command and cwd. Report the exact command you ran as "ingestCommand", with no cwd note or other text, so the developer can re-run it. Its explanation must say that running it writes records to Algolia.',
|
|
6306
6306
|
"When the script reads from a database or another service, find how the project connects to it locally (env files, README, socket or TCP settings). If that connection needs a local service, such as a database proxy (for example cloud-sql-proxy) or a tunnel, make the script check the connection before it reads, and exit with an error that names the service and the command from the project docs that starts it.",
|
|
6307
6307
|
"If external data access fails, do not run authentication commands, change accounts or machine configuration, or start proxies, containers, or services.",
|
|
6308
6308
|
"Do not troubleshoot unavailable external infrastructure. Preserve the script and command, report success, and let the developer prepare the data source.",
|
|
@@ -6519,16 +6519,13 @@ function relativeIngestCwd(execution, repoRoot) {
|
|
|
6519
6519
|
const cwd = relative7(repoRoot, execution.cwd);
|
|
6520
6520
|
return cwd && cwd !== "." ? cwd : ".";
|
|
6521
6521
|
}
|
|
6522
|
-
|
|
6523
|
-
const cwd = relativeIngestCwd(execution, repoRoot);
|
|
6524
|
-
return cwd === "." ? execution.command : `${execution.command} (run from ${cwd})`;
|
|
6525
|
-
}
|
|
6522
|
+
var CWD_NOTE = /^(.*\S)\s+\((?:run from|cwd:?|from|in)\s+(?:\.\/)?([^()]+?)\/?\)$/;
|
|
6526
6523
|
function ingestOutcome(executions, repoRoot, ingestCommand) {
|
|
6527
6524
|
const newestFirst = [...executions].reverse();
|
|
6528
6525
|
const matchesReportedCommand = (execution) => {
|
|
6529
6526
|
if (execution.command === ingestCommand) return true;
|
|
6530
|
-
|
|
6531
|
-
return
|
|
6527
|
+
const note = ingestCommand?.match(CWD_NOTE);
|
|
6528
|
+
return note?.[1] === execution.command && note[2] === relativeIngestCwd(execution, repoRoot);
|
|
6532
6529
|
};
|
|
6533
6530
|
const withCount = newestFirst.filter(
|
|
6534
6531
|
(e) => parseIngestRecordCount(e.output ?? "") != null
|
|
@@ -9325,7 +9322,7 @@ async function resetProjectState() {
|
|
|
9325
9322
|
// package.json with { type: 'json' }
|
|
9326
9323
|
var package_default2 = {
|
|
9327
9324
|
name: "@algolia/wizard",
|
|
9328
|
-
version: "0.84.0-rc.202.
|
|
9325
|
+
version: "0.84.0-rc.202.647",
|
|
9329
9326
|
description: "Magically implement Algolia functionality in your codebase",
|
|
9330
9327
|
type: "module",
|
|
9331
9328
|
engines: {
|