@haystackeditor/cli 0.27.2 → 0.27.3
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/commands/init.js +8 -0
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -535,6 +535,14 @@ export async function initCommand(options) {
|
|
|
535
535
|
const done = plan.changes.length > 0 ? 'The changes above were made, but onboarding' : 'Onboarding';
|
|
536
536
|
throw new Error(`${done} could not start: ${error instanceof Error ? error.message : String(error)} Run \`haystack init\` again to start it.`);
|
|
537
537
|
}
|
|
538
|
+
// New notes for an app that is already set up change nothing about its setup (rule 2, amendment 34: each app is set up once).
|
|
539
|
+
// Said in words, and in --json's notices for the coding agent, which otherwise reads "notes: written" as a new onboarding
|
|
540
|
+
// (Codex on langgenius/dify, 2026-10-07).
|
|
541
|
+
if (notesWritten === 'written' && onboarding.state === 'ready') {
|
|
542
|
+
const notice = 'The app is already set up, so these notes do not change its setup: Haystack sets each app up once and keeps the notes.';
|
|
543
|
+
plan.notices.push(notice);
|
|
544
|
+
say(chalk.dim(notice));
|
|
545
|
+
}
|
|
538
546
|
reportOnboardingState(onboarding);
|
|
539
547
|
say(formatOnboarding(onboarding));
|
|
540
548
|
say('');
|