fireflyy 4.0.0-dev.c94480d → 4.0.0-dev.fc28987

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.
@@ -0,0 +1,74 @@
1
+ //#region src/core/environment/debug-flags.ts
2
+ /**
3
+ * Debug flags are environment variables prefixed with `FIREFLY_DEBUG_` that
4
+ * enable diagnostic features during development and troubleshooting.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * if (DebugFlags.showRawError) {
9
+ * logger.error(parseResult.error);
10
+ * }
11
+ * ```
12
+ */
13
+ var DebugFlags = class {
14
+ constructor() {}
15
+ /**
16
+ * When enabled, displays raw Zod validation errors for configuration parsing.
17
+ *
18
+ * Useful for debugging configuration schema issues and understanding
19
+ * why validation failed at a granular level.
20
+ */
21
+ static get showRawError() {
22
+ return Boolean(process.env.FIREFLY_DEBUG_SHOW_RAW_ERROR);
23
+ }
24
+ /**
25
+ * When enabled, logs the loaded configuration file contents.
26
+ *
27
+ * Useful for debugging configuration loading and understanding
28
+ * what values are being read from config files.
29
+ */
30
+ static get showFileConfig() {
31
+ return Boolean(process.env.FIREFLY_DEBUG_SHOW_FILE_CONFIG);
32
+ }
33
+ /**
34
+ * When enabled, displays task graph statistics during release execution.
35
+ *
36
+ * Shows information about task dependencies, execution order,
37
+ * and graph structure for debugging workflow issues.
38
+ */
39
+ static get showTaskGraphStats() {
40
+ return Boolean(process.env.FIREFLY_DEBUG_SHOW_TASK_GRAPH_STATS);
41
+ }
42
+ /**
43
+ * When enabled, prevents truncation of release notes in GitHub CLI logs.
44
+ *
45
+ * By default, release notes are truncated in logs to avoid pollution.
46
+ * Enable this flag to see full release notes content during debugging.
47
+ */
48
+ static get dontTruncateReleaseNotes() {
49
+ return Boolean(process.env.FIREFLY_DEBUG_DONT_TRUNCATE_RELEASE_NOTES?.trim());
50
+ }
51
+ /**
52
+ * When enabled, prevents redaction of sensitive GitHub CLI arguments in logs.
53
+ *
54
+ * By default, sensitive values (tokens, passwords, etc.) are redacted.
55
+ * Enable this flag to see full argument values during debugging.
56
+ *
57
+ * WARNING: Use with caution as this may expose sensitive information.
58
+ */
59
+ static get dontRedactGithubCliArgs() {
60
+ return Boolean(process.env.FIREFLY_DEBUG_DONT_REDACT_GITHUB_CLI_ARGS?.trim());
61
+ }
62
+ /**
63
+ * When enabled, logs verbose details for git commit operations.
64
+ *
65
+ * By default, the verbose log of the git show command is disabled to reduce noise, if commits are many.
66
+ * Enable this flag to see detailed commit information during debugging.
67
+ */
68
+ static get showVerboseGitCommitDetails() {
69
+ return Boolean(process.env.FIREFLY_DEBUG_SHOW_VERBOSE_GIT_COMMIT_DETAILS?.trim());
70
+ }
71
+ };
72
+
73
+ //#endregion
74
+ export { DebugFlags as t };
@@ -1,5 +1,5 @@
1
- import { t as logger } from "./main.js";
2
- import { i as FireflyOkAsync } from "./result.constructors-C9M1MP3_.js";
1
+ import { i as FireflyOkAsync } from "./result.constructors-DoAoYdfF.js";
2
+ import { t as logger } from "./logging-Bpk2RzGc.js";
3
3
 
4
4
  //#region src/infrastructure/dry-run/index.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
- import { t as logger } from "./main.js";
2
- import { c as notFoundErrAsync } from "./result.constructors-C9M1MP3_.js";
3
- import { n as wrapPromise } from "./result.utilities-DC5shlhT.js";
4
- import { t as withDryRun } from "./dry-run-BfYCtldz.js";
1
+ import { l as notFoundErrAsync } from "./result.constructors-DoAoYdfF.js";
2
+ import { n as wrapPromise } from "./result.utilities-DXSJU70_.js";
3
+ import { t as logger } from "./logging-Bpk2RzGc.js";
4
+ import { t as withDryRun } from "./dry-run-C7RaPEq8.js";
5
5
 
6
6
  //#region src/services/implementations/filesystem.service.ts
7
7
  /**
@@ -1,6 +1,7 @@
1
- import { t as logger } from "./main.js";
2
- import { i as FireflyOkAsync, m as failedError, o as failedErrAsync } from "./result.constructors-C9M1MP3_.js";
3
- import { t as withDryRun } from "./dry-run-BfYCtldz.js";
1
+ import { t as DebugFlags } from "./debug-flags-K3yK5B6O.js";
2
+ import { h as failedError, i as FireflyOkAsync, o as failedErrAsync } from "./result.constructors-DoAoYdfF.js";
3
+ import { t as logger } from "./logging-Bpk2RzGc.js";
4
+ import { t as withDryRun } from "./dry-run-C7RaPEq8.js";
4
5
  import { ResultAsync } from "neverthrow";
5
6
  import { z } from "zod";
6
7
 
@@ -397,7 +398,7 @@ var DefaultGitService = class {
397
398
  "--no-patch",
398
399
  `--format=${format}`,
399
400
  hash
400
- ]);
401
+ ], { verbose: DebugFlags.showVerboseGitCommitDetails });
401
402
  }
402
403
  getUnpushedCommits() {
403
404
  return this.getCurrentBranch().andThen((branch) => {
@@ -0,0 +1,20 @@
1
+ import { createConsola } from "consola";
2
+ import { colors } from "consola/utils";
3
+
4
+ //#region src/infrastructure/logging/index.ts
5
+ const opts = {
6
+ date: false,
7
+ compact: true,
8
+ columns: 0
9
+ };
10
+ const _logger = createConsola({ formatOptions: opts });
11
+ const logger = createConsola({
12
+ formatOptions: opts,
13
+ reporters: [{ log(logObj) {
14
+ if (logObj.type === "verbose") console.log(colors.gray(logObj.args.join(" ")));
15
+ else _logger.log(logObj);
16
+ } }]
17
+ });
18
+
19
+ //#endregion
20
+ export { logger as t };
package/dist/main.js CHANGED
@@ -1,7 +1,4 @@
1
1
  #!/usr/bin/env bun
2
- import { createConsola } from "consola";
3
- import { colors } from "consola/utils";
4
-
5
2
  //#region src/core/environment/runtime-env.ts
6
3
  /**
7
4
  * These are set during CLI initialization in main.ts and provide
@@ -53,25 +50,9 @@ var RuntimeEnv = class {
53
50
  }
54
51
  };
55
52
 
56
- //#endregion
57
- //#region src/infrastructure/logging/index.ts
58
- const opts = {
59
- date: false,
60
- compact: true,
61
- columns: 0
62
- };
63
- const _logger = createConsola({ formatOptions: opts });
64
- const logger = createConsola({
65
- formatOptions: opts,
66
- reporters: [{ log(logObj) {
67
- if (logObj.type === "verbose") console.log(colors.gray(logObj.args.join(" ")));
68
- else _logger.log(logObj);
69
- } }]
70
- });
71
-
72
53
  //#endregion
73
54
  //#region package.json
74
- var version = "4.0.0-dev.c94480d";
55
+ var version = "4.0.0-dev.fc28987";
75
56
  var description = " CLI orchestrator for automatic semantic versioning, changelog generation, and creating releases. Built for my own use cases.";
76
57
  var dependencies = {
77
58
  "c12": "^3.3.2",
@@ -99,13 +80,10 @@ async function main() {
99
80
  description,
100
81
  gitCliffVersion: dependencies["git-cliff"]?.replace("^", "") || "unknown"
101
82
  });
102
- const { createFireflyCLI } = await import("./program-DcCz3-Sc.js");
103
- createFireflyCLI().parseAsync(process.argv).catch((error) => {
104
- logger.error("Fatal error:", error);
105
- process.exit(1);
106
- });
83
+ const { createFireflyCLI } = await import("./program-d3d_c7Hx.js");
84
+ createFireflyCLI().parseAsync(process.argv).catch(() => process.exit(1));
107
85
  }
108
86
  main();
109
87
 
110
88
  //#endregion
111
- export { RuntimeEnv as n, logger as t };
89
+ export { RuntimeEnv as t };
@@ -1,6 +1,6 @@
1
- import { t as logger } from "./main.js";
2
- import { d as validationErrAsync, g as toFireflyError, i as FireflyOkAsync, u as validationErr } from "./result.constructors-C9M1MP3_.js";
3
- import { n as parseSchema } from "./schema.utilities-BGd9t1wm.js";
1
+ import { d as validationErr, f as validationErrAsync, i as FireflyOkAsync, v as toFireflyError } from "./result.constructors-DoAoYdfF.js";
2
+ import { t as logger } from "./logging-Bpk2RzGc.js";
3
+ import { n as parseSchema } from "./schema.utilities-C1yimTtB.js";
4
4
  import { Result } from "neverthrow";
5
5
  import z$1 from "zod";
6
6