@algolia/wizard 0.99.0 → 0.100.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 +12 -4
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2447,7 +2447,7 @@ async function ensureApplication(resumeAppId) {
|
|
|
2447
2447
|
// package.json
|
|
2448
2448
|
var package_default = {
|
|
2449
2449
|
name: "@algolia/wizard",
|
|
2450
|
-
version: "0.
|
|
2450
|
+
version: "0.100.0",
|
|
2451
2451
|
description: "Magically implement Algolia functionality in your codebase",
|
|
2452
2452
|
type: "module",
|
|
2453
2453
|
engines: {
|
|
@@ -6633,7 +6633,8 @@ function searchInstructions(input) {
|
|
|
6633
6633
|
"Style the search surfaces through the widget's class and CSS-variable overrides (or, when hand-built, the app's existing theme tokens): give the results panel and the element that actually draws the input's border and background \u2014 for a widget, the form or wrapper it renders around the bare input \u2014 non-transparent surfaces, keep that frame distinguishable from the background behind it in every supported theme, and never assume a light surface or reuse the surrounding page's colors unchanged inside the panel.",
|
|
6634
6634
|
"The panel takes its width from the input by default, so a small input makes it unreadably narrow: give it `min-width: min(320px, calc(100vw - 2rem))` independent of the input, cap its maximum width to the viewport, and anchor it to the input edge it opens from so widening does not push it off-screen.",
|
|
6635
6635
|
"Match the application styles closely, including light, dark, and high-contrast themes the project already supports.",
|
|
6636
|
-
"
|
|
6636
|
+
"When you add UI text to a localized dictionary or message file, add the same keys, translated, to every locale the project supports.",
|
|
6637
|
+
"Before reporting, mount the component. Do not run a type check, build, or test command unless a later instruction allows it: the validation pass runs the type check, after the developer agrees to it. If a tool limit is reached or an error remains unresolved, keep the implementation, report status=success, and name the remaining issue in the summary so validation can drive the next pass. Report status=fail only when no search implementation can be written, with the concrete blocker as the reason.",
|
|
6637
6638
|
"The summary should be extremely concise; do not mention manual testing steps."
|
|
6638
6639
|
];
|
|
6639
6640
|
}
|
|
@@ -7059,10 +7060,16 @@ function validationRunInstructions(plan, attempt) {
|
|
|
7059
7060
|
"The developer approved the optional build checks.",
|
|
7060
7061
|
...installCheckInstructions(plan, attempt),
|
|
7061
7062
|
"Do not use npx, dlx, or another package runner that can download an undeclared tool.",
|
|
7062
|
-
"Run the type check once with the project's existing command, when one is available.",
|
|
7063
|
+
"Run the type check once with the project's existing command, when one is available. Run it even when you already found other failures, and put every type error that the changes cause in additionalInstructions, so the next pass can fix them all at once.",
|
|
7063
7064
|
"Do not use an autofix option during validation."
|
|
7064
7065
|
];
|
|
7065
7066
|
}
|
|
7067
|
+
function retryTypeCheckInstructions(plan) {
|
|
7068
|
+
if (!plan.run) return [];
|
|
7069
|
+
return [
|
|
7070
|
+
"The developer approved the type check. After your edits, run it once with the project's existing command. Do not install dependencies, use npx, dlx, or another package runner, or use an autofix option. Fix the errors that your changes cause, and name any error that remains in the summary."
|
|
7071
|
+
];
|
|
7072
|
+
}
|
|
7066
7073
|
async function resolveIngestionSource(ctx, repoRoot) {
|
|
7067
7074
|
let error = void 0;
|
|
7068
7075
|
for (; ; ) {
|
|
@@ -7598,6 +7605,7 @@ ${detail}` : ""}`
|
|
|
7598
7605
|
`The developer asked you to investigate this check failure: ${validation.unrelatedFailure}`
|
|
7599
7606
|
);
|
|
7600
7607
|
}
|
|
7608
|
+
extraInstructions.push(...retryTypeCheckInstructions(buildCheckPlan));
|
|
7601
7609
|
}
|
|
7602
7610
|
if (searchConfigFile) {
|
|
7603
7611
|
const ignoreStatus = await gitIgnoreStatus(
|
|
@@ -10016,7 +10024,7 @@ async function resetProjectState() {
|
|
|
10016
10024
|
// package.json with { type: 'json' }
|
|
10017
10025
|
var package_default2 = {
|
|
10018
10026
|
name: "@algolia/wizard",
|
|
10019
|
-
version: "0.
|
|
10027
|
+
version: "0.100.0",
|
|
10020
10028
|
description: "Magically implement Algolia functionality in your codebase",
|
|
10021
10029
|
type: "module",
|
|
10022
10030
|
engines: {
|