sedum-cli 0.1.0-alpha.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/cli.js ADDED
@@ -0,0 +1,66 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ runCli
4
+ } from "./chunk-TU5MIKGA.js";
5
+ import "./chunk-BEV24G7S.js";
6
+ import "./chunk-TZGSCV23.js";
7
+
8
+ // src/cli.ts
9
+ import { createRequire } from "module";
10
+
11
+ // src/interrupts.ts
12
+ function createInterruptState() {
13
+ const controller = new AbortController();
14
+ let accepting = true;
15
+ let interrupted = null;
16
+ return {
17
+ signal: controller.signal,
18
+ request(signal) {
19
+ if (!accepting) return;
20
+ interrupted ??= signal;
21
+ controller.abort();
22
+ },
23
+ commit() {
24
+ accepting = false;
25
+ },
26
+ exitCode(fallback) {
27
+ return interrupted === "SIGINT" ? 130 : interrupted === "SIGTERM" ? 143 : fallback;
28
+ }
29
+ };
30
+ }
31
+
32
+ // src/deadline-watchdog.ts
33
+ function startDeadlineWatchdog(delayMs = 1e4, exit = (code) => process.exit(code)) {
34
+ return setTimeout(() => exit(3), delayMs);
35
+ }
36
+
37
+ // src/cli.ts
38
+ var require2 = createRequire(import.meta.url);
39
+ var pkg = require2("../package.json");
40
+ var interrupts = createInterruptState();
41
+ var deadlineWatchdog;
42
+ var onSigint = () => interrupts.request("SIGINT");
43
+ var onSigterm = () => interrupts.request("SIGTERM");
44
+ process.on("SIGINT", onSigint);
45
+ process.on("SIGTERM", onSigterm);
46
+ var output = await runCli(process.argv.slice(2), pkg.version, {
47
+ signal: interrupts.signal,
48
+ onRunCommitted: interrupts.commit,
49
+ onRunDeadline: () => {
50
+ deadlineWatchdog = startDeadlineWatchdog();
51
+ },
52
+ capabilities: {
53
+ stdoutIsTTY: process.stdout.isTTY === true,
54
+ stderrIsTTY: process.stderr.isTTY === true,
55
+ color: process.stdout.isTTY === true && !("NO_COLOR" in process.env),
56
+ ...process.stdout.columns ? { columns: process.stdout.columns } : {}
57
+ },
58
+ stdout: (value) => process.stdout.write(value),
59
+ stderr: (value) => process.stderr.write(value)
60
+ });
61
+ if (deadlineWatchdog) clearTimeout(deadlineWatchdog);
62
+ process.off("SIGINT", onSigint);
63
+ process.off("SIGTERM", onSigterm);
64
+ if (output.stdout) process.stdout.write(output.stdout);
65
+ if (output.stderr) process.stderr.write(output.stderr);
66
+ process.exitCode = interrupts.exitCode(output.exitCode);
@@ -0,0 +1,17 @@
1
+ import {
2
+ browserAvailable,
3
+ checkOutputWritable,
4
+ executeDoctorCommand,
5
+ keyPresent,
6
+ renderDoctorText,
7
+ supportedNode
8
+ } from "./chunk-OB6ZUJ6X.js";
9
+ import "./chunk-TZGSCV23.js";
10
+ export {
11
+ browserAvailable,
12
+ checkOutputWritable,
13
+ executeDoctorCommand,
14
+ keyPresent,
15
+ renderDoctorText,
16
+ supportedNode
17
+ };
@@ -0,0 +1,179 @@
1
+ import { RunResult, BrowserKind, VerifyPolicy, ClassificationProvider, BrowserInstallResult } from '@sedum-dev/core';
2
+ import { AuthProbeResult } from '@sedum-dev/provider-typesafe';
3
+
4
+ interface OutputCapabilities {
5
+ readonly stdoutIsTTY: boolean;
6
+ readonly stderrIsTTY: boolean;
7
+ readonly color: boolean;
8
+ readonly columns?: number;
9
+ }
10
+ interface RunArtifactPaths {
11
+ readonly progressPath: string;
12
+ readonly resultPath: string;
13
+ readonly htmlPath?: string | undefined;
14
+ readonly markdownPath?: string | undefined;
15
+ readonly junitPath?: string | undefined;
16
+ readonly reporterPath?: string;
17
+ readonly authoritative: boolean;
18
+ }
19
+ declare function renderRunSummary(result: RunResult, capabilities: OutputCapabilities, artifacts: RunArtifactPaths, showCosts: boolean): string;
20
+
21
+ interface ConfigDiagnostic {
22
+ readonly code: string;
23
+ readonly file: string;
24
+ readonly line: number;
25
+ readonly col: number;
26
+ readonly key: string;
27
+ readonly message: string;
28
+ readonly fix: string;
29
+ }
30
+ declare class ProjectConfigError extends Error {
31
+ readonly diagnostics: readonly ConfigDiagnostic[];
32
+ constructor(diagnostics: readonly ConfigDiagnostic[]);
33
+ }
34
+ interface ProjectConfigOverrides {
35
+ readonly environment?: string;
36
+ readonly browser?: BrowserKind;
37
+ readonly viewport?: {
38
+ readonly width?: number;
39
+ readonly height?: number;
40
+ };
41
+ readonly thresholds?: VerifyPolicy;
42
+ readonly outputDir?: string;
43
+ readonly reporterDir?: string;
44
+ readonly baseUrl?: string;
45
+ }
46
+ interface ResolvedProjectConfig {
47
+ readonly projectRoot: string;
48
+ readonly configPath: string | null;
49
+ readonly environment: string | null;
50
+ readonly testDirectory: string;
51
+ readonly include: readonly string[];
52
+ readonly exclude: readonly string[];
53
+ readonly browser: BrowserKind;
54
+ readonly viewport: {
55
+ readonly width: number;
56
+ readonly height: number;
57
+ };
58
+ readonly thresholds: Required<VerifyPolicy>;
59
+ readonly outputDir: string;
60
+ readonly reporterDir: string;
61
+ readonly baseUrl: string | null;
62
+ readonly variables: Readonly<Record<string, string | undefined>>;
63
+ readonly apiKey: string | undefined;
64
+ }
65
+ interface ProjectConfigLoadOptions {
66
+ /**
67
+ * False for commands that must not touch secrets (`validate`, `list`): the
68
+ * project `.env` is not read, so `apiKey` comes only from `hostEnvironment`.
69
+ */
70
+ readonly readEnvironmentFile?: boolean;
71
+ }
72
+ declare function loadProjectConfig(start?: string, hostEnvironment?: Readonly<Record<string, string | undefined>>, overrides?: ProjectConfigOverrides, loadOptions?: ProjectConfigLoadOptions): Promise<ResolvedProjectConfig>;
73
+ declare function discoverConfiguredTests(config: ResolvedProjectConfig): Promise<readonly string[]>;
74
+
75
+ interface CliDiagnostic {
76
+ readonly code: string;
77
+ readonly message: string;
78
+ readonly fix: string;
79
+ }
80
+
81
+ interface RunFilters {
82
+ readonly include?: readonly string[];
83
+ readonly exclude?: readonly string[];
84
+ readonly labels?: readonly string[];
85
+ readonly names?: readonly string[];
86
+ }
87
+
88
+ type ParallelRequest = number | "auto";
89
+
90
+ interface ShardSpec {
91
+ /** 1-based, as in Playwright's `--shard=current/total`. */
92
+ readonly index: number;
93
+ readonly count: number;
94
+ }
95
+
96
+ interface RunCommandOptions {
97
+ readonly file?: string;
98
+ readonly paths?: readonly string[];
99
+ readonly filters?: RunFilters;
100
+ readonly environment?: string;
101
+ readonly browser?: string;
102
+ readonly urlOverride?: string;
103
+ readonly outputDir?: string;
104
+ readonly reporterDir?: string;
105
+ readonly reporters?: readonly string[];
106
+ /** SED-13 strict gate; JUnit records it so the file matches the exit. */
107
+ readonly strict?: boolean;
108
+ readonly headed?: boolean;
109
+ readonly slowMoMs?: number;
110
+ readonly retries?: number;
111
+ readonly timeoutMinutes?: number;
112
+ /** `--parallel`; defaults to one lane. */
113
+ readonly parallel?: ParallelRequest;
114
+ /** `--shard-index`/`--shard-count`, validated by the caller. */
115
+ readonly shard?: ShardSpec;
116
+ /** `--provider-concurrency`; defaults to min(4, lanes x 2). */
117
+ readonly providerConcurrency?: number;
118
+ /** Injected for tests; defaults to `os.availableParallelism()`. */
119
+ readonly availableParallelism?: number;
120
+ readonly replay: boolean;
121
+ readonly evidence: boolean;
122
+ readonly sensitiveOrigins: readonly string[];
123
+ readonly locatorCacheDisabled?: boolean;
124
+ readonly locatorCacheCi?: boolean;
125
+ readonly signal?: AbortSignal;
126
+ readonly onSnapshot?: (snapshot: RunResult, artifacts: RunArtifactPaths) => void;
127
+ readonly onCommitted?: () => void;
128
+ readonly onDeadline?: () => void;
129
+ }
130
+ interface RunCommandExecution {
131
+ readonly result: RunResult;
132
+ readonly artifacts: RunArtifactPaths;
133
+ readonly diagnostic: CliDiagnostic | null;
134
+ readonly reporterFailed?: boolean;
135
+ readonly onReporterFailure?: () => Promise<RunCommandExecution>;
136
+ }
137
+
138
+ interface DoctorProbes {
139
+ readonly nodeVersion?: string;
140
+ readonly loadConfig?: (cwd: string) => Promise<ResolvedProjectConfig>;
141
+ readonly browser?: (kind: BrowserKind) => boolean;
142
+ readonly network?: () => Promise<boolean>;
143
+ readonly auth?: (apiKey: string) => Promise<AuthProbeResult>;
144
+ readonly output?: (config: ResolvedProjectConfig) => Promise<void>;
145
+ }
146
+
147
+ type ClassificationProviderFactory = (options: {
148
+ readonly apiKey?: string;
149
+ }) => ClassificationProvider | Promise<ClassificationProvider>;
150
+
151
+ interface CliOutput {
152
+ readonly stdout: string;
153
+ readonly stderr: string;
154
+ readonly exitCode: number;
155
+ }
156
+ interface CliRuntime {
157
+ readonly capabilities?: OutputCapabilities;
158
+ readonly stdout?: (value: string) => void;
159
+ readonly stderr?: (value: string) => void;
160
+ readonly signal?: AbortSignal;
161
+ readonly onRunCommitted?: () => void;
162
+ readonly onRunDeadline?: () => void;
163
+ readonly executeRun?: (options: RunCommandOptions) => Promise<RunCommandExecution>;
164
+ readonly installChromium?: (withDependencies: boolean) => BrowserInstallResult;
165
+ /** Project root for `validate` and `list`; defaults to the process cwd. */
166
+ readonly cwd?: string;
167
+ /** Used only by `validate --online`. */
168
+ readonly createClassificationProvider?: ClassificationProviderFactory;
169
+ readonly doctorProbes?: DoctorProbes;
170
+ readonly confirmInit?: (question: string) => Promise<boolean>;
171
+ }
172
+ /** Parse and execute explicit argv without reading or exiting the process. */
173
+ declare function runCli(args: readonly string[], version: string, runtime?: CliRuntime): Promise<CliOutput>;
174
+
175
+ type SedumExitCode = 0 | 1 | 2 | 3;
176
+ /** SED-13 gating policy. This never changes the canonical result. */
177
+ declare function runExitCode(result: RunResult, strict: boolean): SedumExitCode;
178
+
179
+ export { type CliOutput, type CliRuntime, type ConfigDiagnostic, type OutputCapabilities, ProjectConfigError, type ProjectConfigOverrides, type ResolvedProjectConfig, discoverConfiguredTests, loadProjectConfig, renderRunSummary, runCli, runExitCode };
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ import {
2
+ renderRunSummary,
3
+ runCli,
4
+ runExitCode
5
+ } from "./chunk-TU5MIKGA.js";
6
+ import "./chunk-BEV24G7S.js";
7
+ import {
8
+ ProjectConfigError,
9
+ discoverConfiguredTests,
10
+ loadProjectConfig
11
+ } from "./chunk-TZGSCV23.js";
12
+ export {
13
+ ProjectConfigError,
14
+ discoverConfiguredTests,
15
+ loadProjectConfig,
16
+ renderRunSummary,
17
+ runCli,
18
+ runExitCode
19
+ };
@@ -0,0 +1,237 @@
1
+ import {
2
+ browserAvailable,
3
+ keyPresent,
4
+ supportedNode
5
+ } from "./chunk-OB6ZUJ6X.js";
6
+ import {
7
+ ProjectConfigError,
8
+ loadProjectConfig
9
+ } from "./chunk-TZGSCV23.js";
10
+
11
+ // src/init-command.ts
12
+ import { constants } from "fs";
13
+ import { lstat, mkdir, open, readFile, writeFile } from "fs/promises";
14
+ import path from "path";
15
+ var CONFIG = `# Sedum starter project. See https://github.com/sedum-dev/sedum/blob/main/docs/configuration.md
16
+ tests:
17
+ directory: tests
18
+ browser: chromium
19
+ outputDir: .sedum/runs
20
+ reporterDir: .sedum/reports
21
+ `;
22
+ var EXAMPLE = `description: Sign in to the SauceDemo sample store
23
+ url: https://www.saucedemo.com/
24
+ data:
25
+ user: standard_user
26
+ password: $SAUCE_PASSWORD
27
+ steps:
28
+ - type {{user}} in the username field
29
+ - type {{password}} in the password field
30
+ - click the login button
31
+ - verify a list of products with prices is shown
32
+ `;
33
+ var ENV_EXAMPLE = `# Get a TypeSafe key and put it in .env, or set it in your shell.
34
+ TYPESAFE_API_KEY=
35
+ # Public SauceDemo sample account; no Sauce Labs account is required.
36
+ SAUCE_PASSWORD=secret_sauce
37
+ `;
38
+ var IGNORE = [".env", ".sedum/runs/", ".sedum/reports/"];
39
+ var WORDMARK = [
40
+ " \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588 \u2588 \u2588 \u2588 \u2588 \u2588\u2588\u2588\u2588 \u2588\u2588\u2588\u2588\u2588 \u2588 \u2588",
41
+ "\u2588 \u2591\u2591\u2591\u2591\u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2591\u2591\u2591\u2588 \u2588\u2591 \u2588\u2591\u2588\u2588 \u2588\u2588\u2591 \u2588\u2591\u2591\u2591\u2588 \u2588\u2591\u2591\u2591\u2591\u2591\u2588\u2591 \u2588\u2591",
42
+ " \u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2591\u2591\u2591\u2588\u2591\u2588\u2591\u2591 \u2588\u2591\u2588\u2591\u2588 \u2588\u2591\u2591 \u2588\u2591\u2591\u2591\u2588\u2591\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2591\u2591 \u2588\u2591\u2591",
43
+ " \u2591\u2591\u2588 \u2588\u2591\u2591\u2591\u2591 \u2588\u2591\u2591 \u2588\u2591\u2588\u2591\u2591 \u2588\u2591\u2588\u2591\u2591\u2591\u2588\u2591\u2591\u2588 \u2588\u2591\u2591 \u2588\u2591\u2588\u2591\u2591\u2591\u2591 \u2588\u2591\u2588 \u2591\u2591",
44
+ "\u2588\u2588\u2588\u2588\u2591\u2591\u2588\u2588\u2588\u2588\u2588\u2591\u2588\u2588\u2588\u2588 \u2591\u2591\u2588\u2588\u2588 \u2591\u2588\u2591\u2591 \u2588\u2591\u2591\u2588\u2591 \u2588\u2588\u2588\u2588 \u2591\u2588\u2588\u2588\u2588\u2588\u2591 \u2588 \u2591 \u2591",
45
+ " \u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591 \u2591 \u2591\u2591\u2591 \u2591\u2591\u2591 \u2591\u2591 \u2591\u2591 \u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591\u2591 \u2591 \u2591",
46
+ " \u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591 \u2591\u2591\u2591 \u2591 \u2591 \u2591 \u2591\u2591\u2591\u2591 \u2591\u2591\u2591\u2591\u2591 \u2591"
47
+ ];
48
+ function initBanner(columns) {
49
+ const green = "\x1B[32m";
50
+ const shadow = "\x1B[90m";
51
+ const reset = "\x1B[0m";
52
+ if (columns !== void 0 && columns < 54)
53
+ return `${green}\x1B[1msedum${reset}
54
+
55
+ `;
56
+ return `${WORDMARK.map((line) => `${green}${line.replaceAll("\u2591", `${shadow}\u2591${green}`)}${reset}`).join("\n")}
57
+
58
+ `;
59
+ }
60
+ function code(error) {
61
+ return error.code;
62
+ }
63
+ async function regularOrAbsent(file) {
64
+ try {
65
+ const info = await lstat(file);
66
+ if (!info.isFile())
67
+ throw new Error(
68
+ `${path.basename(file)} exists but is not a regular file.`
69
+ );
70
+ return true;
71
+ } catch (error) {
72
+ if (code(error) === "ENOENT") return false;
73
+ throw error;
74
+ }
75
+ }
76
+ async function pathExists(file) {
77
+ try {
78
+ await lstat(file);
79
+ return true;
80
+ } catch (error) {
81
+ if (code(error) === "ENOENT") return false;
82
+ throw error;
83
+ }
84
+ }
85
+ async function regularDirectory(directory) {
86
+ try {
87
+ await mkdir(directory);
88
+ } catch (error) {
89
+ if (code(error) !== "EEXIST") throw error;
90
+ }
91
+ const info = await lstat(directory);
92
+ if (!info.isDirectory() || info.isSymbolicLink())
93
+ throw new Error(
94
+ `${path.basename(directory)} exists but is not a regular directory.`
95
+ );
96
+ }
97
+ async function createOrKeep(file, contents) {
98
+ try {
99
+ await writeFile(file, contents, { flag: "wx", mode: 420 });
100
+ return "created";
101
+ } catch (error) {
102
+ if (code(error) !== "EEXIST") throw error;
103
+ await regularOrAbsent(file);
104
+ return "kept";
105
+ }
106
+ }
107
+ async function updateIgnore(root, options) {
108
+ const file = path.join(root, ".gitignore");
109
+ const exists = await regularOrAbsent(file);
110
+ if (!exists) {
111
+ const result = await createOrKeep(file, `${IGNORE.join("\n")}
112
+ `);
113
+ if (result === "created") return "created .gitignore\n";
114
+ }
115
+ const current = await readFile(file, "utf8");
116
+ const present = new Set(current.split(/\r?\n/u).map((line) => line.trim()));
117
+ const missing = IGNORE.filter((entry) => !present.has(entry));
118
+ if (!missing.length) return "kept .gitignore (rules already present)\n";
119
+ const question = `Add ${missing.join(", ")} to existing .gitignore?`;
120
+ if (!options.interactive || !options.confirm || !await options.confirm(question))
121
+ return `kept .gitignore; add these lines manually:
122
+ ${missing.map((line) => ` ${line}`).join("\n")}
123
+ `;
124
+ const handle = await open(
125
+ file,
126
+ constants.O_WRONLY | constants.O_APPEND | constants.O_NOFOLLOW
127
+ );
128
+ try {
129
+ if (!(await handle.stat()).isFile())
130
+ throw new Error(".gitignore changed into a nonregular file.");
131
+ await handle.writeFile(
132
+ `${current.endsWith("\n") ? "" : "\n"}${missing.join("\n")}
133
+ `
134
+ );
135
+ } finally {
136
+ await handle.close();
137
+ }
138
+ return `updated .gitignore (${missing.join(", ")})
139
+ `;
140
+ }
141
+ async function executeInitCommand(options) {
142
+ const root = path.resolve(options.cwd);
143
+ const output = [];
144
+ const say = (value) => {
145
+ output.push(value);
146
+ options.onOutput?.(value);
147
+ };
148
+ try {
149
+ let keptEnvExample = false;
150
+ let createdExample = false;
151
+ if (options.interactive && options.color) say(initBanner(options.columns));
152
+ await regularDirectory(path.join(root, "tests"));
153
+ for (const [name, contents] of [
154
+ ["sedum.config.yaml", CONFIG],
155
+ ["tests/example.test.yaml", EXAMPLE],
156
+ [".env.example", ENV_EXAMPLE]
157
+ ]) {
158
+ const result = await createOrKeep(path.join(root, name), contents);
159
+ if (name === ".env.example" && result === "kept") keptEnvExample = true;
160
+ if (name === "tests/example.test.yaml" && result === "created")
161
+ createdExample = true;
162
+ say(`${result} ${name}
163
+ `);
164
+ }
165
+ say(await updateIgnore(root, options));
166
+ say("\nSedum runs plain-language tests in a browser.\n");
167
+ if (createdExample) {
168
+ const title = "\u2500\u2500 tests/example.test.yaml ";
169
+ const divider = "\u2500".repeat(54);
170
+ say(`
171
+ ${title}${divider.slice(title.length)}
172
+ `);
173
+ say(EXAMPLE);
174
+ say(`${divider}
175
+ `);
176
+ }
177
+ say("\nNext steps:\n");
178
+ let step = 0;
179
+ const next = (title, lines) => {
180
+ say(`
181
+ ${++step}. ${title}
182
+ `);
183
+ for (const line of lines) say(` ${line}
184
+ `);
185
+ };
186
+ if (!supportedNode(options.nodeVersion ?? process.versions.node))
187
+ next("Update Node.js", ["Install Node 20.19.0 or newer."]);
188
+ const config = await loadProjectConfig(root);
189
+ const hasBrowser = (options.browser ?? browserAvailable)(config.browser);
190
+ const hasEnv = await pathExists(path.join(root, ".env"));
191
+ if (!keyPresent(config))
192
+ next("Add your TypeSafe API key", [
193
+ "Get a key at https://typesafe.ai/.",
194
+ ...hasEnv ? [] : ["cp .env.example .env"],
195
+ "Open .env and set TYPESAFE_API_KEY to your key (or set it in your shell)."
196
+ ]);
197
+ if (!hasBrowser)
198
+ next(
199
+ `Install ${config.browser === "chromium" ? "Chromium" : "a browser"}`,
200
+ [
201
+ ...config.browser === "chromium" ? ["sedum browsers install chromium"] : [
202
+ "Install Chrome, or run sedum browsers install chromium and select it in sedum.config.yaml."
203
+ ],
204
+ ...config.browser === "chromium" && process.platform === "linux" ? [
205
+ "If Linux system libraries are missing: sedum browsers install chromium --with-deps"
206
+ ] : []
207
+ ]
208
+ );
209
+ if (keptEnvExample && config.variables.SAUCE_PASSWORD !== "secret_sauce") {
210
+ const template = await readFile(path.join(root, ".env.example"), "utf8");
211
+ if (hasEnv || !/^SAUCE_PASSWORD[ \t]*=[ \t]*["']?secret_sauce["']?[ \t]*$/mu.test(
212
+ template
213
+ ))
214
+ next("Set the sample password", [
215
+ "Your existing .env.example was kept.",
216
+ "For the generated SauceDemo test, set SAUCE_PASSWORD=secret_sauce in .env or your shell."
217
+ ]);
218
+ }
219
+ next("Run the example", [
220
+ "sedum run tests/example.test.yaml --headed",
221
+ "This calls the TypeSafe API and may incur a charge."
222
+ ]);
223
+ return { stdout: output.join(""), stderr: "", exitCode: 0 };
224
+ } catch (error) {
225
+ const message = error instanceof ProjectConfigError ? "sedum.config.yaml or .env could not be loaded. Run `sedum doctor` to inspect the project." : error instanceof Error ? error.message : "Unknown filesystem error.";
226
+ return {
227
+ stdout: output.join(""),
228
+ stderr: `sedum init could not finish: ${message}
229
+ Fix: check the named path and permissions, then rerun sedum init. Existing files were kept.
230
+ `,
231
+ exitCode: 3
232
+ };
233
+ }
234
+ }
235
+ export {
236
+ executeInitCommand
237
+ };