opencode-rag-plugin 2.11.2 → 2.12.1

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.
Files changed (50) hide show
  1. package/ReadMe.md +386 -222
  2. package/dist/cli/commands/backend-detect.d.ts +1 -1
  3. package/dist/cli/commands/backend-detect.js +1 -1
  4. package/dist/cli/commands/index.d.ts +0 -1
  5. package/dist/cli/commands/index.js +0 -1
  6. package/dist/cli/commands/setup.js +344 -85
  7. package/dist/cli/commands/{init-helpers.d.ts → workspace-helpers.d.ts} +10 -7
  8. package/dist/cli/commands/{init-helpers.js → workspace-helpers.js} +15 -62
  9. package/dist/cli/index.js +1 -2
  10. package/dist/cli/ollama.d.ts +12 -0
  11. package/dist/cli/ollama.js +26 -0
  12. package/dist/cli/prompt.d.ts +121 -0
  13. package/dist/cli/prompt.js +309 -0
  14. package/dist/cli/types.d.ts +31 -19
  15. package/dist/cli/wizard/apply.d.ts +60 -0
  16. package/dist/cli/wizard/apply.js +243 -0
  17. package/dist/cli/wizard/flow.d.ts +121 -0
  18. package/dist/cli/wizard/flow.js +904 -0
  19. package/dist/cli/wizard/model-catalog.d.ts +80 -0
  20. package/dist/cli/wizard/model-catalog.js +414 -0
  21. package/dist/cli/wizard/presets.d.ts +55 -0
  22. package/dist/cli/wizard/presets.js +70 -0
  23. package/dist/cli/wizard/repair.d.ts +54 -0
  24. package/dist/cli/wizard/repair.js +266 -0
  25. package/dist/cli/wizard/types.d.ts +99 -0
  26. package/dist/cli/wizard/types.js +5 -0
  27. package/dist/cli/workspace.d.ts +57 -0
  28. package/dist/cli/workspace.js +407 -0
  29. package/dist/cli.d.ts +1 -1
  30. package/dist/cli.js +1 -1
  31. package/dist/core/auto-scaffold.d.ts +21 -0
  32. package/dist/core/auto-scaffold.js +80 -0
  33. package/dist/core/config.d.ts +13 -2
  34. package/dist/core/config.js +13 -3
  35. package/dist/core/global-plugin.d.ts +48 -0
  36. package/dist/core/global-plugin.js +114 -0
  37. package/dist/core/provider-defaults.d.ts +2 -0
  38. package/dist/core/provider-defaults.js +4 -0
  39. package/dist/core/setup-runtime.js +40 -26
  40. package/dist/embedder/health.js +44 -2
  41. package/dist/eval/fast-index.js +1 -1
  42. package/dist/opencode/system-guidance.d.ts +1 -1
  43. package/dist/opencode/system-guidance.js +1 -1
  44. package/dist/tui.d.ts +11 -0
  45. package/dist/tui.js +12 -1
  46. package/dist/v2/v2-adapter.js +9 -0
  47. package/package.json +3 -2
  48. package/scripts/postinstall-setup.js +16 -0
  49. package/dist/cli/commands/init.d.ts +0 -51
  50. package/dist/cli/commands/init.js +0 -508
@@ -2,6 +2,7 @@
2
2
  * @fileoverview Shared CLI option interfaces used by all command modules.
3
3
  */
4
4
  /** Shared CLI option interfaces used by all command modules. */
5
+ import type { WizardFlags } from "./wizard/flow.js";
5
6
  /** Standard CLI options shared by most commands (index, query, clear, etc.). */
6
7
  export interface CliOptions {
7
8
  /** Optional path to an `opencode-rag.json` config file. */
@@ -27,26 +28,37 @@ export interface CliOptions {
27
28
  /** Optional system prompt to steer an image description toward specific features. */
28
29
  systemPrompt?: string;
29
30
  }
30
- /** Options for the `init` command. */
31
- export interface InitOptions {
32
- /** Overwrite existing files during initialization. */
31
+ /** Options for the `setup` command. */
32
+ export interface SetupOptions extends WizardFlags {
33
+ /** Remove the runtime and clean up. */
34
+ uninstall?: boolean;
35
+ /** Force re-setup even if up-to-date. */
33
36
  force?: boolean;
34
- /** Skip installing workspace-local plugin dependencies. */
35
- skipInstall?: boolean;
36
- /** Skip provider connectivity and model availability check. */
37
- skipHealthCheck?: boolean;
38
- /** Vector-store backend to write into the config (`lancedb` or `clickhouse`). */
39
- vectorStore?: string;
40
- /** ClickHouse endpoint for `--vector-store clickhouse`. */
41
- clickhouseUrl?: string;
42
- /** ClickHouse database for `--vector-store clickhouse`. */
43
- clickhouseDatabase?: string;
44
- /** ClickHouse user for `--vector-store clickhouse`. */
45
- clickhouseUser?: string;
46
- /** ClickHouse password env var name for `--vector-store clickhouse`. */
47
- clickhousePasswordEnv?: string;
48
- /** ClickHouse project namespace (table suffix) for `--vector-store clickhouse`. */
49
- clickhouseNamespace?: string;
37
+ /** Only inspect the runtime. */
38
+ check?: boolean;
39
+ /** Re-open the configuration wizard even when a config already exists. */
40
+ reconfigure?: boolean;
41
+ /** Non-interactive: never prompt and keep the existing configuration. */
42
+ yes?: boolean;
43
+ /**
44
+ * Skip linking workspace-local plugin dependencies. Commander optional
45
+ * value: `--skip-install`, `--skip-install=false`, `--skip-install off`.
46
+ */
47
+ skipInstall?: boolean | string;
48
+ /**
49
+ * Skip provider connectivity and model availability checks. Commander
50
+ * optional value, like {@link skipInstall}.
51
+ */
52
+ skipHealthCheck?: boolean | string;
53
+ /**
54
+ * Skip the machine-level runtime install (workspace setup only). Commander
55
+ * optional value, like {@link skipInstall}.
56
+ */
57
+ skipRuntime?: boolean | string;
58
+ /** Install the plugin into this workspace instead of the global config. */
59
+ workspacePlugin?: boolean;
60
+ /** Set to `false` by `--no-index`: do not offer to build the index. */
61
+ index?: boolean;
50
62
  }
51
63
  /** Shape of the `package.json` metadata required by CLI helpers. */
52
64
  export interface PackageMetadata {
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @fileoverview Pure mapping from wizard answers to config patches.
3
+ *
4
+ * Split from the interactive flow so the mapping can be unit-tested without a
5
+ * TTY and reused by the flag-driven (`--yes`) path.
6
+ *
7
+ * Layering: provider/model/baseUrl/apiKey/vectorDimension describe the
8
+ * *machine* and go to the global config file; feature toggles and repo
9
+ * concerns go to the workspace config. This mirrors
10
+ * `isProviderScopedPath()` in `src/core/config.ts` (the TUI's rule).
11
+ */
12
+ import type { WizardAnswers } from "./types.js";
13
+ /** A two-layer config patch produced from {@link WizardAnswers}. */
14
+ export interface ConfigPatch {
15
+ /** Machine-level keys written to `~/.config/opencode/opencode-rag.json`. */
16
+ global: Record<string, unknown>;
17
+ /** Repository-level keys written to `.opencode/opencode-rag.json`. */
18
+ workspace: Record<string, unknown>;
19
+ }
20
+ /** Whether a value is a plain object (not `null`, not an array). */
21
+ export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
22
+ /**
23
+ * Deep-merge `patch` into `base`, returning a new object.
24
+ *
25
+ * Arrays, scalars and `null` replace the base value; a `null` value removes
26
+ * the key instead (used to drop a stale `vectorDimension`). Plain objects
27
+ * merge recursively, and `undefined` values are ignored so callers can omit
28
+ * optional keys.
29
+ */
30
+ export declare function mergeConfigObjects(base: Record<string, unknown>, patch: Record<string, unknown>): Record<string, unknown>;
31
+ /**
32
+ * Build the global and workspace patches for a set of answers.
33
+ *
34
+ * The returned objects are sparse: a section that the user did not touch is
35
+ * absent, so merging them never overwrites unrelated settings.
36
+ */
37
+ export declare function buildConfigPatch(answers: WizardAnswers): ConfigPatch;
38
+ /** Read a JSON object from disk, returning `{}` when the file is absent or invalid. */
39
+ export declare function readJsonObjectSafe(filePath: string): Record<string, unknown>;
40
+ /**
41
+ * Merge a patch into a config file, creating the file when needed.
42
+ *
43
+ * A `.bak` copy is written when the file already exists, so a failed setup
44
+ * cannot leave the user without their previous configuration.
45
+ *
46
+ * @returns `true` when the file was written, `false` when the write failed.
47
+ */
48
+ export declare function writeConfigPatch(filePath: string, patch: Record<string, unknown>): boolean;
49
+ /**
50
+ * Detect provider keys that a workspace config inherited from the old
51
+ * `init` template and that now shadow the machine-global layer.
52
+ *
53
+ * The global file is a base layer, so a stale `embedding.provider`/`baseUrl`/
54
+ * `model` in `.opencode/opencode-rag.json` silently overrides the model the
55
+ * wizard wrote to the global file. Returns the dotted paths that should be
56
+ * removed.
57
+ */
58
+ export declare function findShadowingProviderKeys(workspaceConfig: Record<string, unknown>): string[][];
59
+ /** Remove the given dotted paths from a config object, in place. */
60
+ export declare function removeConfigPaths(config: Record<string, unknown>, paths: readonly string[][]): void;
@@ -0,0 +1,243 @@
1
+ /**
2
+ * @fileoverview Pure mapping from wizard answers to config patches.
3
+ *
4
+ * Split from the interactive flow so the mapping can be unit-tested without a
5
+ * TTY and reused by the flag-driven (`--yes`) path.
6
+ *
7
+ * Layering: provider/model/baseUrl/apiKey/vectorDimension describe the
8
+ * *machine* and go to the global config file; feature toggles and repo
9
+ * concerns go to the workspace config. This mirrors
10
+ * `isProviderScopedPath()` in `src/core/config.ts` (the TUI's rule).
11
+ */
12
+ import { existsSync, readFileSync, writeFileSync, mkdirSync, copyFileSync } from "node:fs";
13
+ import path from "node:path";
14
+ /** Whether a value is a plain object (not `null`, not an array). */
15
+ export function isPlainObject(value) {
16
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
17
+ }
18
+ /**
19
+ * Deep-merge `patch` into `base`, returning a new object.
20
+ *
21
+ * Arrays, scalars and `null` replace the base value; a `null` value removes
22
+ * the key instead (used to drop a stale `vectorDimension`). Plain objects
23
+ * merge recursively, and `undefined` values are ignored so callers can omit
24
+ * optional keys.
25
+ */
26
+ export function mergeConfigObjects(base, patch) {
27
+ const next = { ...base };
28
+ for (const [key, value] of Object.entries(patch)) {
29
+ if (value === undefined)
30
+ continue;
31
+ if (value === null) {
32
+ delete next[key];
33
+ continue;
34
+ }
35
+ const existing = next[key];
36
+ if (isPlainObject(existing) && isPlainObject(value)) {
37
+ next[key] = mergeConfigObjects(existing, value);
38
+ }
39
+ else {
40
+ next[key] = value;
41
+ }
42
+ }
43
+ return next;
44
+ }
45
+ /** Drop `undefined` entries from a record (one level deep). */
46
+ function defined(value) {
47
+ const next = {};
48
+ for (const [key, entry] of Object.entries(value)) {
49
+ if (entry !== undefined)
50
+ next[key] = entry;
51
+ }
52
+ return next;
53
+ }
54
+ /**
55
+ * Build the global and workspace patches for a set of answers.
56
+ *
57
+ * The returned objects are sparse: a section that the user did not touch is
58
+ * absent, so merging them never overwrites unrelated settings.
59
+ */
60
+ export function buildConfigPatch(answers) {
61
+ const global = {
62
+ embedding: defined({
63
+ provider: answers.embedding.provider,
64
+ baseUrl: answers.embedding.baseUrl,
65
+ model: answers.embedding.model,
66
+ apiKey: answers.embedding.apiKey,
67
+ // `null` removes a stale dimension from the config file. The wizard only
68
+ // omits the key when it could not establish the value for this model —
69
+ // keeping a previous model's dimension would break the store.
70
+ vectorDimension: answers.embedding.vectorDimension ?? null,
71
+ }),
72
+ };
73
+ if (answers.description) {
74
+ global.description = defined({
75
+ provider: answers.description.provider,
76
+ baseUrl: answers.description.baseUrl,
77
+ model: answers.description.model,
78
+ apiKey: answers.description.apiKey,
79
+ });
80
+ }
81
+ if (answers.imageDescription) {
82
+ global.imageDescription = defined({
83
+ provider: answers.imageDescription.provider,
84
+ baseUrl: answers.imageDescription.baseUrl,
85
+ model: answers.imageDescription.model,
86
+ apiKey: answers.imageDescription.apiKey,
87
+ });
88
+ }
89
+ if (answers.decision?.enabled) {
90
+ global.decision = defined({
91
+ provider: "ollama",
92
+ baseUrl: answers.decision.baseUrl,
93
+ model: answers.decision.model,
94
+ });
95
+ }
96
+ if (answers.reranking?.enabled) {
97
+ global.reranking = defined({
98
+ provider: "llama-server",
99
+ baseUrl: answers.reranking.baseUrl,
100
+ model: answers.reranking.model,
101
+ });
102
+ }
103
+ const workspace = {};
104
+ if (answers.description !== undefined || answers.descriptionEnabled !== undefined) {
105
+ workspace.description = { enabled: answers.descriptionEnabled ?? Boolean(answers.description) };
106
+ }
107
+ if (answers.imageDescription !== undefined || answers.imageDescriptionEnabled !== undefined) {
108
+ workspace.imageDescription = { enabled: answers.imageDescriptionEnabled ?? Boolean(answers.imageDescription) };
109
+ }
110
+ if (answers.decision !== undefined) {
111
+ workspace.decision = defined({
112
+ enabled: answers.decision.enabled,
113
+ routeBeforeAsking: answers.decision.routeBeforeAsking,
114
+ });
115
+ }
116
+ if (answers.reranking !== undefined) {
117
+ workspace.reranking = { enabled: answers.reranking.enabled };
118
+ }
119
+ if (answers.shellGuard) {
120
+ workspace.shellGuard = { enabled: answers.shellGuard.enabled };
121
+ }
122
+ if (answers.memory) {
123
+ workspace.memory = defined({
124
+ passiveCapture: answers.memory.passiveCapture,
125
+ promptEnforcement: answers.memory.promptEnforcement,
126
+ sessionEndExtraction: answers.memory.sessionEndExtraction,
127
+ });
128
+ }
129
+ if (answers.vectorStore) {
130
+ workspace.vectorStore = defined({
131
+ provider: answers.vectorStore.provider,
132
+ clickhouse: answers.vectorStore.clickhouse
133
+ ? defined({
134
+ url: answers.vectorStore.clickhouse.url,
135
+ database: answers.vectorStore.clickhouse.database,
136
+ username: answers.vectorStore.clickhouse.username,
137
+ passwordEnv: answers.vectorStore.clickhouse.passwordEnv,
138
+ namespace: answers.vectorStore.clickhouse.namespace,
139
+ })
140
+ : undefined,
141
+ });
142
+ }
143
+ if (answers.indexing) {
144
+ workspace.indexing = defined({ embedDescriptions: answers.indexing.embedDescriptions });
145
+ }
146
+ if (answers.openCode) {
147
+ workspace.openCode = defined({
148
+ autoIndex: answers.openCode.autoIndex === undefined ? undefined : { enabled: answers.openCode.autoIndex },
149
+ });
150
+ }
151
+ return { global, workspace };
152
+ }
153
+ /** Read a JSON object from disk, returning `{}` when the file is absent or invalid. */
154
+ export function readJsonObjectSafe(filePath) {
155
+ if (!existsSync(filePath))
156
+ return {};
157
+ try {
158
+ const raw = readFileSync(filePath, "utf-8");
159
+ const parsed = raw.charCodeAt(0) === 0xfeff ? raw.slice(1) : raw;
160
+ const value = JSON.parse(parsed);
161
+ return isPlainObject(value) ? value : {};
162
+ }
163
+ catch {
164
+ return {};
165
+ }
166
+ }
167
+ /**
168
+ * Merge a patch into a config file, creating the file when needed.
169
+ *
170
+ * A `.bak` copy is written when the file already exists, so a failed setup
171
+ * cannot leave the user without their previous configuration.
172
+ *
173
+ * @returns `true` when the file was written, `false` when the write failed.
174
+ */
175
+ export function writeConfigPatch(filePath, patch) {
176
+ if (Object.keys(patch).length === 0)
177
+ return false;
178
+ const existed = existsSync(filePath);
179
+ const base = readJsonObjectSafe(filePath);
180
+ const merged = mergeConfigObjects(base, patch);
181
+ try {
182
+ mkdirSync(path.dirname(filePath), { recursive: true });
183
+ const changed = JSON.stringify(merged) !== JSON.stringify(base);
184
+ if (changed) {
185
+ if (existed) {
186
+ try {
187
+ copyFileSync(filePath, `${filePath}.bak`);
188
+ }
189
+ catch {
190
+ // A missing backup must not block the write.
191
+ }
192
+ }
193
+ writeFileSync(filePath, `${JSON.stringify(merged, null, 2)}\n`, "utf-8");
194
+ }
195
+ return true;
196
+ }
197
+ catch {
198
+ return false;
199
+ }
200
+ }
201
+ /**
202
+ * Detect provider keys that a workspace config inherited from the old
203
+ * `init` template and that now shadow the machine-global layer.
204
+ *
205
+ * The global file is a base layer, so a stale `embedding.provider`/`baseUrl`/
206
+ * `model` in `.opencode/opencode-rag.json` silently overrides the model the
207
+ * wizard wrote to the global file. Returns the dotted paths that should be
208
+ * removed.
209
+ */
210
+ export function findShadowingProviderKeys(workspaceConfig) {
211
+ const sections = ["embedding", "description", "imageDescription", "decision", "reranking"];
212
+ const leaves = ["provider", "model", "baseUrl", "apiKey", "vectorDimension"];
213
+ const found = [];
214
+ for (const section of sections) {
215
+ const value = workspaceConfig[section];
216
+ if (!isPlainObject(value))
217
+ continue;
218
+ for (const leaf of leaves) {
219
+ if (value[leaf] !== undefined)
220
+ found.push([section, leaf]);
221
+ }
222
+ }
223
+ return found;
224
+ }
225
+ /** Remove the given dotted paths from a config object, in place. */
226
+ export function removeConfigPaths(config, paths) {
227
+ for (const dotted of paths) {
228
+ let cursor = config;
229
+ for (let i = 0; i < dotted.length - 1; i += 1) {
230
+ const segment = dotted[i];
231
+ if (!segment)
232
+ break;
233
+ const next = cursor[segment];
234
+ cursor = isPlainObject(next) ? next : undefined;
235
+ if (!cursor)
236
+ break;
237
+ }
238
+ const leaf = dotted[dotted.length - 1];
239
+ if (cursor && leaf)
240
+ delete cursor[leaf];
241
+ }
242
+ }
243
+ //# sourceMappingURL=apply.js.map
@@ -0,0 +1,121 @@
1
+ /**
2
+ * @fileoverview Interactive `setup` wizard.
3
+ *
4
+ * The flow is deliberately linear and every question has a default taken from
5
+ * the effective configuration, so pressing Enter through the wizard keeps an
6
+ * existing setup intact. Any prompt resolving `undefined` (Ctrl+C / Ctrl+D)
7
+ * aborts the whole wizard: no configuration is written.
8
+ */
9
+ import { type ProxyConfig } from "../../core/config.js";
10
+ import type { Prompter } from "../prompt.js";
11
+ import { type ModelCatalog, type ModelCapability } from "./model-catalog.js";
12
+ import type { HostChoice, WizardAnswers } from "./types.js";
13
+ /** Provider entries offered by the wizard. */
14
+ export interface ProviderEntry {
15
+ id: string;
16
+ label: string;
17
+ description: string;
18
+ embedding: boolean;
19
+ chat: boolean;
20
+ }
21
+ /** Flags that pre-fill the wizard and make it scriptable. */
22
+ export interface WizardFlags {
23
+ /** Provider id (`ollama`, `openai`, `cohere`, `anthropic`, `google`). */
24
+ provider?: string;
25
+ /** Base URL for the provider. */
26
+ baseUrl?: string;
27
+ /** API key (or `env:NAME` to read an environment variable). */
28
+ apiKey?: string;
29
+ /** Embedding model id. */
30
+ embeddingModel?: string;
31
+ /** Description model id (implies the feature is on). */
32
+ descriptionModel?: string;
33
+ /** Vision model id (implies the feature is on). */
34
+ visionModel?: string;
35
+ /** Decision model id (implies the feature is on). */
36
+ decisionModel?: string;
37
+ /** Explicit on/off for chunk descriptions. */
38
+ description?: boolean;
39
+ /** Explicit on/off for image descriptions. */
40
+ vision?: boolean;
41
+ /** Explicit on/off for the decision model. */
42
+ decision?: boolean;
43
+ /** Explicit on/off for reranking. */
44
+ reranking?: boolean;
45
+ /** Explicit on/off for the shell guard. */
46
+ shellGuard?: boolean;
47
+ /** Explicit on/off for passive quirk capture. */
48
+ memoryCapture?: boolean;
49
+ /** Vector-store backend (`lancedb` or `clickhouse`). */
50
+ vectorStore?: string;
51
+ /** ClickHouse endpoint. */
52
+ clickhouseUrl?: string;
53
+ /** ClickHouse database. */
54
+ clickhouseDatabase?: string;
55
+ /** ClickHouse user. */
56
+ clickhouseUser?: string;
57
+ /** Env var holding the ClickHouse password. */
58
+ clickhousePasswordEnv?: string;
59
+ /** ClickHouse project namespace. */
60
+ clickhouseNamespace?: string;
61
+ }
62
+ /** Inputs for {@link runSetupWizard}. */
63
+ export interface WizardRunOptions extends WizardFlags {
64
+ /** Prompter to use (interactive by construction). */
65
+ prompter: Prompter;
66
+ /** Effective raw config (global < workspace) used to pre-fill defaults. */
67
+ existing: Record<string, unknown>;
68
+ /** Proxy settings inherited from the current embedding config. */
69
+ proxy?: ProxyConfig;
70
+ }
71
+ /** Ask for a provider + base URL + optional API key, then probe its models. */
72
+ export declare function askHost(prompter: Prompter, options: {
73
+ message: string;
74
+ existing: Record<string, unknown>;
75
+ flags: WizardFlags;
76
+ proxy?: ProxyConfig;
77
+ requireEmbedding?: boolean;
78
+ requireChat?: boolean;
79
+ /** Extra entries appended to the built-in list (repair keeps an unlisted provider selectable). */
80
+ extraProviders?: readonly ProviderEntry[];
81
+ /** Ask for a new key even when one is stored (used after an auth failure). */
82
+ forceKeyPrompt?: boolean;
83
+ }): Promise<{
84
+ host: HostChoice;
85
+ catalog: ModelCatalog;
86
+ } | undefined>;
87
+ /**
88
+ * Pick a model from a probed catalog, falling back to free-text entry.
89
+ *
90
+ * `__custom__` is always offered so a model that the provider does not list
91
+ * (or a freshly pulled one) can still be typed.
92
+ */
93
+ export declare function pickModel(prompter: Prompter, options: {
94
+ message: string;
95
+ catalog: ModelCatalog;
96
+ capability: ModelCapability;
97
+ defaultValue?: string;
98
+ allowSkip?: boolean;
99
+ }): Promise<string | undefined>;
100
+ /**
101
+ * Whether the caller passed any flag that should override the stored config.
102
+ *
103
+ * `setup` only rewrites configuration when the wizard ran, when a flag was
104
+ * supplied, or when no config exists yet.
105
+ */
106
+ export declare function hasExplicitSetupFlags(flags: WizardFlags): boolean;
107
+ /**
108
+ * Build answers from CLI flags plus the existing config, for non-interactive
109
+ * runs (`--yes`, CI, piped stdin).
110
+ *
111
+ * Only used when at least one explicit flag is present; otherwise `setup`
112
+ * leaves the stored configuration alone.
113
+ */
114
+ export declare function answersFromFlags(flags: WizardFlags, existing: Record<string, unknown>): WizardAnswers;
115
+ /**
116
+ * Run the interactive wizard.
117
+ *
118
+ * @returns The collected answers, or `undefined` when the user cancelled or
119
+ * declined to apply the configuration.
120
+ */
121
+ export declare function runSetupWizard(options: WizardRunOptions): Promise<WizardAnswers | undefined>;