rolldown-pnpm-config 2.1.2 → 2.1.4

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 (81) hide show
  1. package/bin/rolldown-pnpm-config.js +1 -2
  2. package/catalogs.js +1 -2
  3. package/cli/ast.js +1 -2
  4. package/cli/commands/export.js +1 -2
  5. package/cli/commands/preview.js +1 -2
  6. package/cli/commands/upgrade.js +1 -2
  7. package/cli/cwd.js +1 -2
  8. package/cli/diff/build.js +1 -2
  9. package/cli/diff/render.js +1 -2
  10. package/cli/discover.js +1 -2
  11. package/cli/drift.js +1 -2
  12. package/cli/edits.js +1 -2
  13. package/cli/effective.js +1 -2
  14. package/cli/evaluate.js +1 -2
  15. package/cli/interop-live.js +1 -2
  16. package/cli/interop.js +1 -2
  17. package/cli/load-config.js +1 -2
  18. package/cli/local-merge.js +1 -2
  19. package/cli/main.js +1 -2
  20. package/cli/peer-range.js +1 -2
  21. package/cli/plan.js +1 -2
  22. package/cli/preview-views.js +1 -2
  23. package/cli/release-age.js +1 -2
  24. package/cli/render/legend.js +1 -2
  25. package/cli/render/print.js +1 -2
  26. package/cli/render/report.js +1 -2
  27. package/cli/render/tone.js +1 -2
  28. package/cli/resolve.js +1 -2
  29. package/cli/rewrite.js +1 -2
  30. package/cli/root.js +1 -2
  31. package/cli/select-file.js +1 -2
  32. package/cli/simulated-view.js +1 -2
  33. package/cli/summary.js +1 -2
  34. package/cli/ui/preview-screen.js +1 -2
  35. package/cli/ui/progress-view.js +1 -2
  36. package/cli/ui/progress.js +1 -2
  37. package/cli/ui/screens.js +1 -2
  38. package/cli/ui/walk-screen.js +1 -2
  39. package/cli/validate.js +1 -2
  40. package/cli/version-key.js +1 -2
  41. package/cli/version.js +2 -3
  42. package/cli/walk-plan.js +1 -2
  43. package/cli/walk-reducer.js +1 -2
  44. package/cli/workspace-file.js +1 -2
  45. package/cli/workspace-overlay.js +1 -2
  46. package/cli/workspace-resolve.js +1 -2
  47. package/descriptors/build.js +1 -2
  48. package/descriptors/hoisting.js +1 -2
  49. package/descriptors/index.js +1 -2
  50. package/descriptors/lockfile.js +1 -2
  51. package/descriptors/misc.js +1 -2
  52. package/descriptors/network.js +1 -2
  53. package/descriptors/resolution.js +1 -2
  54. package/descriptors/runtime-cfg.js +1 -2
  55. package/descriptors/schemas.js +1 -2
  56. package/descriptors/workspace.js +1 -2
  57. package/index.d.ts +0 -12
  58. package/package.json +13 -13
  59. package/patches/build.js +1 -2
  60. package/patches/discover.js +1 -2
  61. package/patches/keys.js +1 -2
  62. package/patches/paths.js +1 -2
  63. package/patches/reconcile.js +1 -2
  64. package/plugin/allowed-versions.js +1 -2
  65. package/plugin/freeze.js +1 -2
  66. package/plugin/index.js +1 -2
  67. package/plugin/overrides-from-catalogs.js +1 -2
  68. package/plugin/serialize.js +1 -2
  69. package/registry.js +1 -2
  70. package/runtime/ctx.js +1 -2
  71. package/runtime/enforcement.js +1 -2
  72. package/runtime/strategies/arrays.js +1 -2
  73. package/runtime/strategies/catalogs.js +1 -2
  74. package/runtime/strategies/maps.js +1 -2
  75. package/runtime/strategies/overrides.js +1 -2
  76. package/runtime/strategies/scalar.js +1 -2
  77. package/runtime/strategies/table.js +1 -2
  78. package/runtime/warnings.js +1 -2
  79. package/runtime.d.ts +0 -4
  80. package/runtime.js +1 -2
  81. package/semver-util.js +1 -2
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { main } from "../cli/main.js";
3
3
 
4
- //#region src/cli/bin.ts
4
+ // src/cli/bin.ts
5
5
  main();
6
6
 
7
- //#endregion
8
7
  export { };
package/catalogs.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/catalogs.ts
1
+ // src/catalogs.ts
2
2
  /**
3
3
  * The install range of a catalog spec (bare string or `{ range }` object).
4
4
  *
@@ -30,5 +30,4 @@ function normalizeCatalogs(input) {
30
30
  return out;
31
31
  }
32
32
 
33
- //#endregion
34
33
  export { normalizeCatalogs, rangeOf };
package/cli/ast.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/cli/ast.ts
1
+ // src/cli/ast.ts
2
2
  /**
3
3
  * The static name of an ObjectExpression property key: an Identifier's name
4
4
  * or a Literal's stringified value; undefined for a computed key.
@@ -50,5 +50,4 @@ function findPluginArg(program) {
50
50
  return found;
51
51
  }
52
52
 
53
- //#endregion
54
53
  export { findPluginArg, keyName, prop };
@@ -20,7 +20,7 @@ import { dirname, relative } from "node:path";
20
20
  import { CliDoc, CliMessage } from "@effected/cli";
21
21
  import { Argument, Command, Flag } from "effect/cli";
22
22
 
23
- //#region src/cli/commands/export.ts
23
+ // src/cli/commands/export.ts
24
24
  /**
25
25
  * Typed failure raised when the export run cannot complete.
26
26
  *
@@ -137,5 +137,4 @@ const exportCommand = Command.make("export", {
137
137
  for (const k of result.report.keyMismatches) yield* CliMessage.warning(`patch entry "${k}" does not match its filename`);
138
138
  })).pipe(Command.withDescription("Materialize the plugin config into pnpm-workspace.yaml (--dry-run to preview)"));
139
139
 
140
- //#endregion
141
140
  export { ExportError, WORKSPACE_FIELDS, exportCommand, runExport };
@@ -15,7 +15,7 @@ import { CliDoc, CliInteractive } from "@effected/cli";
15
15
  import { Argument, Command } from "effect/cli";
16
16
  import { CliUi } from "@effected/cli/ui";
17
17
 
18
- //#region src/cli/commands/preview.ts
18
+ // src/cli/commands/preview.ts
19
19
  /** Typed failure for the preview run. @internal */
20
20
  var PreviewError = class extends Data.TaggedError("PreviewError") {
21
21
  /** The failure report `CliRuntime.main` prints: the message, without the class name. */
@@ -65,5 +65,4 @@ const previewCommand = Command.make("preview", { path: pathArg }, ({ path }) =>
65
65
  yield* CliUi.run(previewScreen(views)).pipe(Effect.catchTag("Cancelled", () => Effect.void));
66
66
  })).pipe(Command.withDescription("Interactively preview how pnpm-workspace.yaml would change"));
67
67
 
68
- //#endregion
69
68
  export { PreviewError, previewCommand, runPreviewViews };
@@ -26,7 +26,7 @@ import { Argument, Command, Flag } from "effect/cli";
26
26
  import { CliUi } from "@effected/cli/ui";
27
27
  import { ReleaseAgeGate } from "@effected/npm";
28
28
 
29
- //#region src/cli/commands/upgrade.ts
29
+ // src/cli/commands/upgrade.ts
30
30
  /**
31
31
  * Typed failure raised when the upgrade run cannot complete.
32
32
  *
@@ -763,5 +763,4 @@ const upgradeCommand = Command.make("upgrade", {
763
763
  yield* warnUnresolved(versions.unresolved);
764
764
  })).pipe(Command.withDescription("Upgrade catalog versions in a config file"));
765
765
 
766
- //#endregion
767
766
  export { CHECK_FAILED_LABEL, CheckFailedError, UpgradeError, UpgradeUsageError, applyInteropAndDecisions, checkJsonOutcome, checkOutcome, computeGate, countChangedDecisions, nothingToUpgradeMessage, projectDecisions, readCatalogSource, resolveGatedVersions, resolveProgress, resolveTargetFile, runUpgrade, runUpgradePreview, unresolvedMessage, upgradeCommand, upgradeJsonOutcome, validateJsonMode };
package/cli/cwd.js CHANGED
@@ -2,7 +2,7 @@ import { findWorkspaceFile } from "./workspace-file.js";
2
2
  import { Context, Effect } from "effect";
3
3
  import { join } from "node:path";
4
4
 
5
- //#region src/cli/cwd.ts
5
+ // src/cli/cwd.ts
6
6
  /**
7
7
  * The directory the CLI was invoked from. `main.ts` reads `process.cwd()` once
8
8
  * and provides it here, so no command reads `process` itself.
@@ -21,5 +21,4 @@ function resolveWorkspacePath(explicit) {
21
21
  return Effect.map(WorkingDirectory, (cwd) => explicit ?? findWorkspaceFile(cwd) ?? join(cwd, "pnpm-workspace.yaml"));
22
22
  }
23
23
 
24
- //#endregion
25
24
  export { WorkingDirectory, resolveWorkspacePath };
package/cli/diff/build.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Predicate } from "effect";
2
2
 
3
- //#region src/cli/diff/build.ts
3
+ // src/cli/diff/build.ts
4
4
  const isObject = Predicate.isObject;
5
5
  /** Worst kind among children: changed if any differs, added/removed if uniform, else unchanged. */
6
6
  function rollup(children) {
@@ -118,5 +118,4 @@ function buildDiff(before, after, meta) {
118
118
  };
119
119
  }
120
120
 
121
- //#endregion
122
121
  export { buildDiff };
@@ -1,7 +1,7 @@
1
1
  import { row, tone } from "../render/tone.js";
2
2
  import { Doc } from "@effected/cli";
3
3
 
4
- //#region src/cli/diff/render.ts
4
+ // src/cli/diff/render.ts
5
5
  const CONTEXT = 2;
6
6
  const GUTTER = {
7
7
  added: "+",
@@ -83,5 +83,4 @@ function renderExportDiff(root, opts) {
83
83
  return Doc.lines(out);
84
84
  }
85
85
 
86
- //#endregion
87
86
  export { renderExportDiff, scalarText };
package/cli/discover.js CHANGED
@@ -2,7 +2,7 @@ import { findPluginArg, keyName, prop } from "./ast.js";
2
2
  import { Data } from "effect";
3
3
  import { parseSync } from "oxc-parser";
4
4
 
5
- //#region src/cli/discover.ts
5
+ // src/cli/discover.ts
6
6
  /**
7
7
  * Typed failure raised when the config source cannot be parsed.
8
8
  *
@@ -95,5 +95,4 @@ function discoverCatalogEntries(source, filename) {
95
95
  };
96
96
  }
97
97
 
98
- //#endregion
99
98
  export { DiscoverError, discoverCatalogEntries };
package/cli/drift.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { derivePeerRange } from "./peer-range.js";
2
2
  import { Effect } from "effect";
3
3
 
4
- //#region src/cli/drift.ts
4
+ // src/cli/drift.ts
5
5
  /**
6
6
  * Detect whether an entry's materialized peer range has drifted from what its
7
7
  * strategy would produce from the CURRENT range. Returns the resync target (the
@@ -24,5 +24,4 @@ function detectPeerDrift(entry) {
24
24
  });
25
25
  }
26
26
 
27
- //#endregion
28
27
  export { detectPeerDrift };
package/cli/edits.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { versionKeyOf } from "./version-key.js";
2
2
 
3
- //#region src/cli/edits.ts
3
+ // src/cli/edits.ts
4
4
  /**
5
5
  * The edit constructors for one entry, each tagged with the entry's package
6
6
  * and route-aware version key so `validateEdits` can check it against the
@@ -65,5 +65,4 @@ function buildEdits(decisions) {
65
65
  return edits;
66
66
  }
67
67
 
68
- //#endregion
69
68
  export { buildEdits, entryEdits };
package/cli/effective.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { excludeByRepo } from "../runtime/ctx.js";
2
2
  import { applyLocalDirective } from "./local-merge.js";
3
3
 
4
- //#region src/cli/effective.ts
4
+ // src/cli/effective.ts
5
5
  /** Apply the manifest's excludeByRepo refine to publicHoistPattern, if present. */
6
6
  function applyExcludeByRepo(out, manifest, rootName) {
7
7
  const byRepo = manifest.publicHoistPattern?.options?.excludeByRepo;
@@ -38,5 +38,4 @@ function vanillaManaged(managed, manifest, rootName) {
38
38
  return out;
39
39
  }
40
40
 
41
- //#endregion
42
41
  export { effectiveManaged, vanillaManaged };
package/cli/evaluate.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { findPluginArg, keyName } from "./ast.js";
2
2
  import { parseSync } from "oxc-parser";
3
3
 
4
- //#region src/cli/evaluate.ts
4
+ // src/cli/evaluate.ts
5
5
  /** Evaluate a literal AST node into a plain JS value; unsupported nodes push to `errors`. */
6
6
  function evalNode(node, path, errors) {
7
7
  switch (node.type) {
@@ -65,5 +65,4 @@ function evaluatePluginConfig(source, filename) {
65
65
  };
66
66
  }
67
67
 
68
- //#endregion
69
68
  export { evaluatePluginConfig };
@@ -2,7 +2,7 @@ import { bareVersion, parseRange, parseVersion } from "../semver-util.js";
2
2
  import "./interop.js";
3
3
  import { Effect } from "effect";
4
4
 
5
- //#region src/cli/interop-live.ts
5
+ // src/cli/interop-live.ts
6
6
  /**
7
7
  * Recompute each member's peer floor and conflict for the current selection —
8
8
  * synchronously, from a pre-built {@link GroupModel}. Mirrors `deriveFloors`
@@ -105,5 +105,4 @@ function buildGroupModel(candidatesByPkg, fetchPeer) {
105
105
  });
106
106
  }
107
107
 
108
- //#endregion
109
108
  export { buildGroupModel, computeGroupPeers };
package/cli/interop.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { bareVersion, parseRange, parseVersion } from "../semver-util.js";
2
2
  import { Effect } from "effect";
3
3
 
4
- //#region src/cli/interop.ts
4
+ // src/cli/interop.ts
5
5
  /** Maximum number of concurrent peerDependencies fetches inside runInterop. @internal */
6
6
  const INTEROP_PEER_CONCURRENCY = 8;
7
7
  /**
@@ -223,5 +223,4 @@ function buildInteropEdits(entries, result) {
223
223
  return edits;
224
224
  }
225
225
 
226
- //#endregion
227
226
  export { buildInteropEdits, deriveFloors, interopEntryChanged, makePeerFetcher, resolveGroup, runInterop };
@@ -3,7 +3,7 @@ import { evaluatePluginConfig } from "./evaluate.js";
3
3
  import { Effect, Predicate } from "effect";
4
4
  import { existsSync, readFileSync } from "node:fs";
5
5
 
6
- //#region src/cli/load-config.ts
6
+ // src/cli/load-config.ts
7
7
  /**
8
8
  * The prologue shared by `export` and `preview`: read and statically evaluate
9
9
  * the config file (failing on a missing call or non-literal values), and
@@ -35,5 +35,4 @@ function loadConfigAndWorkspace(opts, mkError) {
35
35
  });
36
36
  }
37
37
 
38
- //#endregion
39
38
  export { loadConfigAndWorkspace };
@@ -1,6 +1,6 @@
1
1
  import { Predicate } from "effect";
2
2
 
3
- //#region src/cli/local-merge.ts
3
+ // src/cli/local-merge.ts
4
4
  /** Default protocols whose existing-file override entries are preserved. @internal */
5
5
  const DEFAULT_PRESERVE = [
6
6
  "file",
@@ -71,5 +71,4 @@ function applyLocalDirective(managed, raw, parsed, field) {
71
71
  return result;
72
72
  }
73
73
 
74
- //#endregion
75
74
  export { DEFAULT_PRESERVE, applyLocalDirective, isLocalDirective };
package/cli/main.js CHANGED
@@ -6,7 +6,7 @@ import { Effect } from "effect";
6
6
  import { NodeRuntime, NodeServices } from "@effect/platform-node";
7
7
  import { CliAudience, CliRuntime } from "@effected/cli";
8
8
 
9
- //#region src/cli/main.ts
9
+ // src/cli/main.ts
10
10
  /**
11
11
  * Assemble and run the CLI. One of the three files allowed to read `process`:
12
12
  * the working directory, argv for the build-time log format, and stderr's
@@ -38,5 +38,4 @@ function main() {
38
38
  }));
39
39
  }
40
40
 
41
- //#endregion
42
41
  export { main };
package/cli/peer-range.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Data, Effect } from "effect";
2
2
  import { SemVer } from "@effected/semver";
3
3
 
4
- //#region src/cli/peer-range.ts
4
+ // src/cli/peer-range.ts
5
5
  /**
6
6
  * Typed failure raised when a peer range cannot be derived from a range string.
7
7
  *
@@ -56,5 +56,4 @@ function derivePeerRange(range, strategy) {
56
56
  });
57
57
  }
58
58
 
59
- //#endregion
60
59
  export { PeerRangeError, derivePeerRange };
package/cli/plan.js CHANGED
@@ -3,7 +3,7 @@ import { derivePeerRange } from "./peer-range.js";
3
3
  import { Effect, Option } from "effect";
4
4
  import { Range, SemVer } from "@effected/semver";
5
5
 
6
- //#region src/cli/plan.ts
6
+ // src/cli/plan.ts
7
7
  /**
8
8
  * Compute the candidate versions for one catalog entry against the list of
9
9
  * published versions. Order: latest in-range (when newer than current), latest
@@ -68,5 +68,4 @@ function defaultPick(entry, candidates) {
68
68
  return entry.source === "workspace" ? candidates.find((c) => c.kind !== "keep") : candidates.find((c) => c.kind === "in-range");
69
69
  }
70
70
 
71
- //#endregion
72
71
  export { defaultPick, planEntry };
@@ -6,7 +6,7 @@ import { overlayWorkspace } from "./workspace-overlay.js";
6
6
  import { WORKSPACE_FIELDS } from "./commands/export.js";
7
7
  import { renderSimulated } from "./simulated-view.js";
8
8
 
9
- //#region src/cli/preview-views.ts
9
+ // src/cli/preview-views.ts
10
10
  /**
11
11
  * Build the three preview views as `Doc` blocks: Changes (parsed→merged diff,
12
12
  * with local + preserve + excludeByRepo), Full (same tree, full verbosity), and
@@ -32,5 +32,4 @@ function buildPreviewViews(input) {
32
32
  };
33
33
  }
34
34
 
35
- //#endregion
36
35
  export { buildPreviewViews };
@@ -1,6 +1,6 @@
1
1
  import { isWrappedField } from "../plugin/freeze.js";
2
2
 
3
- //#region src/cli/release-age.ts
3
+ // src/cli/release-age.ts
4
4
  /**
5
5
  * Read a release-age gate from config and pnpm and combine it with
6
6
  * {@link @effected/npm#ReleaseAgeGate.combine}. The gate model itself
@@ -42,5 +42,4 @@ function parsePnpmGate(age, exclude) {
42
42
  return out.ageMinutes === void 0 && out.exclude === void 0 ? null : out;
43
43
  }
44
44
 
45
- //#endregion
46
45
  export { parsePnpmGate, readConfigReleaseAge };
@@ -1,7 +1,7 @@
1
1
  import { tone } from "./tone.js";
2
2
  import { Doc } from "@effected/cli";
3
3
 
4
- //#region src/cli/render/legend.ts
4
+ // src/cli/render/legend.ts
5
5
  function swatches(entries) {
6
6
  return Doc.line([Doc.text(" Legend: "), ...entries.map(([label, t], i) => tone(`■ ${label}${i < entries.length - 1 ? " " : ""}`, t))], { wrap: false });
7
7
  }
@@ -38,5 +38,4 @@ function simulatedLegend() {
38
38
  ]);
39
39
  }
40
40
 
41
- //#endregion
42
41
  export { legend, simulatedLegend };
@@ -2,7 +2,7 @@ import { Effect } from "effect";
2
2
  import { CliTheme, Doc } from "@effected/cli";
3
3
  import { Audience } from "@effected/env";
4
4
 
5
- //#region src/cli/render/print.ts
5
+ // src/cli/render/print.ts
6
6
  /**
7
7
  * Whether stdout is painted for a person: a human audience at a colour level
8
8
  * above `none`. A legend is only worth printing then — without colour its
@@ -33,5 +33,4 @@ function printView(view, options = {}) {
33
33
  });
34
34
  }
35
35
 
36
- //#endregion
37
36
  export { coloured, printView };
@@ -1,6 +1,6 @@
1
1
  import { Doc, Status } from "@effected/cli";
2
2
 
3
- //#region src/cli/render/report.ts
3
+ // src/cli/render/report.ts
4
4
  function statusDoc(status, message) {
5
5
  const [first = "", ...rest] = message.split("\n");
6
6
  const blocks = [Doc.line([
@@ -34,5 +34,4 @@ function warningDoc(message) {
34
34
  return statusDoc("warning", message);
35
35
  }
36
36
 
37
- //#endregion
38
37
  export { failureDoc, warningDoc };
@@ -1,6 +1,6 @@
1
1
  import { Doc, Token } from "@effected/cli";
2
2
 
3
- //#region src/cli/render/tone.ts
3
+ // src/cli/render/tone.ts
4
4
  /**
5
5
  * The palette: one theme token (or explicit style) per tone. Semantic tones
6
6
  * use the theme's tokens so a theme override restyles them; `unmanaged` is a
@@ -39,5 +39,4 @@ function row(gutter, indent, content, tag) {
39
39
  ];
40
40
  }
41
41
 
42
- //#endregion
43
42
  export { TONES, row, tone };
package/cli/resolve.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Context, Data, Effect, Layer, Predicate } from "effect";
2
2
  import { ChildProcess, ChildProcessSpawner } from "effect/process";
3
3
 
4
- //#region src/cli/resolve.ts
4
+ // src/cli/resolve.ts
5
5
  const Spawner = ChildProcessSpawner.ChildProcessSpawner;
6
6
  /**
7
7
  * Typed failure raised when a package's versions cannot be resolved.
@@ -102,5 +102,4 @@ const RegistryResolverLive = Layer.effect(RegistryResolver, Effect.gen(function*
102
102
  };
103
103
  }));
104
104
 
105
- //#endregion
106
105
  export { RegistryResolver, RegistryResolverLive, ResolveError, parsePeerDeps, parseTimes, parseVersions, stripPnpmNotices };
package/cli/rewrite.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/cli/rewrite.ts
1
+ // src/cli/rewrite.ts
2
2
  /**
3
3
  * Apply span replacements to a source string. Edits are applied in descending
4
4
  * start order so each edit's offsets remain valid as later text shifts. Throws
@@ -18,5 +18,4 @@ function applyEdits(source, edits) {
18
18
  return out;
19
19
  }
20
20
 
21
- //#endregion
22
21
  export { applyEdits };
package/cli/root.js CHANGED
@@ -4,7 +4,7 @@ import { upgradeCommand } from "./commands/upgrade.js";
4
4
  import { CliAudience } from "@effected/cli";
5
5
  import { Command } from "effect/cli";
6
6
 
7
- //#region src/cli/root.ts
7
+ // src/cli/root.ts
8
8
  /**
9
9
  * The `rolldown-pnpm-config` command tree, with the audience flags
10
10
  * (`--audience`, `--human`, `--agent`, `--ci`) shared from the root so every
@@ -18,5 +18,4 @@ const rootCommand = Command.make("rolldown-pnpm-config").pipe(Command.withShared
18
18
  previewCommand
19
19
  ]));
20
20
 
21
- //#endregion
22
21
  export { rootCommand };
@@ -3,7 +3,7 @@ import { Effect } from "effect";
3
3
  import { readFileSync, readdirSync } from "node:fs";
4
4
  import { join } from "node:path";
5
5
 
6
- //#region src/cli/select-file.ts
6
+ // src/cli/select-file.ts
7
7
  /**
8
8
  * Scan a directory for top-level `.ts` files whose source contains a usable
9
9
  * `PnpmConfigPlugin(...)` catalog (discovery yields at least one entry). Read
@@ -61,5 +61,4 @@ function filterEntriesByCatalog(entries, catalog) {
61
61
  return catalog === void 0 ? [...entries] : entries.filter((e) => e.catalog === catalog);
62
62
  }
63
63
 
64
- //#endregion
65
64
  export { filterEntriesByCatalog, findConfigFiles, pickConfigCandidate };
@@ -3,7 +3,7 @@ import { row, tone } from "./render/tone.js";
3
3
  import { scalarText } from "./diff/render.js";
4
4
  import { Doc } from "@effected/cli";
5
5
 
6
- //#region src/cli/simulated-view.ts
6
+ // src/cli/simulated-view.ts
7
7
  /**
8
8
  * How each merge strategy combines a managed field with the consumer's local
9
9
  * value, in the vocabulary the Simulated view shows: `merge` (values combined)
@@ -58,5 +58,4 @@ function renderSimulated(vanilla, manifest) {
58
58
  return Doc.lines(Object.entries(canon).flatMap(([k, v]) => flatten(k, v, 0, annotation(manifest[k]))));
59
59
  }
60
60
 
61
- //#endregion
62
61
  export { renderSimulated };
package/cli/summary.js CHANGED
@@ -2,7 +2,7 @@ import { row, tone } from "./render/tone.js";
2
2
  import { cellTone, displayCandidates, peerFor, tableLayout } from "./walk-reducer.js";
3
3
  import { Doc } from "@effected/cli";
4
4
 
5
- //#region src/cli/summary.ts
5
+ // src/cli/summary.ts
6
6
  /**
7
7
  * Build the pending-decisions summary as a document: one table row per
8
8
  * decision — mirroring the interactive selection table, catalog headers,
@@ -51,5 +51,4 @@ function summaryDoc(decisions, interop, rejected) {
51
51
  return blocks;
52
52
  }
53
53
 
54
- //#endregion
55
54
  export { summaryDoc };
@@ -5,7 +5,7 @@ import { Box, Text } from "ink";
5
5
  import { useEffect, useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
 
8
- //#region src/cli/ui/preview-screen.tsx
8
+ // src/cli/ui/preview-screen.tsx
9
9
  const TABS = [
10
10
  {
11
11
  name: "changes",
@@ -89,5 +89,4 @@ function makePreviewScreen(views) {
89
89
  };
90
90
  }
91
91
 
92
- //#endregion
93
92
  export { makePreviewScreen };
@@ -3,7 +3,7 @@ import { Styled, useGlyphs, useTheme } from "@effected/cli/ui";
3
3
  import { Text } from "ink";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
- //#region src/cli/ui/progress-view.tsx
6
+ // src/cli/ui/progress-view.tsx
7
7
  function Progress({ state, frame }) {
8
8
  const glyphs = useGlyphs();
9
9
  const theme = useTheme();
@@ -38,5 +38,4 @@ function progressView(state, frame) {
38
38
  });
39
39
  }
40
40
 
41
- //#endregion
42
41
  export { progressView as default };
@@ -1,4 +1,4 @@
1
- //#region src/cli/ui/progress.ts
1
+ // src/cli/ui/progress.ts
2
2
  /** The progress fold, kept free of React so it is tested without a terminal. @internal */
3
3
  function reduceProgress(state, event) {
4
4
  switch (event._tag) {
@@ -27,5 +27,4 @@ const initialProgress = {
27
27
  finished: false
28
28
  };
29
29
 
30
- //#endregion
31
30
  export { initialProgress, reduceProgress };
package/cli/ui/screens.js CHANGED
@@ -2,7 +2,7 @@ import { initialProgress, reduceProgress } from "./progress.js";
2
2
  import { Effect, PubSub } from "effect";
3
3
  import { CliUi } from "@effected/cli/ui";
4
4
 
5
- //#region src/cli/ui/screens.ts
5
+ // src/cli/ui/screens.ts
6
6
  /** The interactive upgrade table, loaded on mount. @internal */
7
7
  function walkScreen(props) {
8
8
  return CliUi.lazy(async () => ({ default: (await import("./walk-screen.js")).makeWalkScreen(props) }));
@@ -48,5 +48,4 @@ function withProgress(body) {
48
48
  }));
49
49
  }
50
50
 
51
- //#endregion
52
51
  export { previewScreen, progressOptions, walkScreen, withProgress };
@@ -7,7 +7,7 @@ import { Box, Text } from "ink";
7
7
  import { useRef, useState } from "react";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
 
10
- //#region src/cli/ui/walk-screen.tsx
10
+ // src/cli/ui/walk-screen.tsx
11
11
  /** The table's keys: arrows (or vim keys) to move and pick, Enter to finish. Esc and Ctrl-C are the host's. */
12
12
  function walkKeys(dryRun) {
13
13
  return KeyTable.make([
@@ -172,5 +172,4 @@ function makeWalkScreen(props) {
172
172
  };
173
173
  }
174
174
 
175
- //#endregion
176
175
  export { makeWalkScreen };
package/cli/validate.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { parseRange, parseVersion } from "../semver-util.js";
2
2
  import { Effect } from "effect";
3
3
 
4
- //#region src/cli/validate.ts
4
+ // src/cli/validate.ts
5
5
  /**
6
6
  * Whether at least one published version satisfies `range`.
7
7
  *
@@ -83,5 +83,4 @@ function validateEdits(edits, versionsByPkg) {
83
83
  });
84
84
  }
85
85
 
86
- //#endregion
87
86
  export { rangeIsSatisfiable, validateEdits };
@@ -1,4 +1,4 @@
1
- //#region src/cli/version-key.ts
1
+ // src/cli/version-key.ts
2
2
  /**
3
3
  * Route-aware key for the resolved-version maps returned by
4
4
  * `resolveGatedVersions`. The same package name can appear workspace-sourced
@@ -14,5 +14,4 @@ function versionKeyOf(entry) {
14
14
  return entry.source === "workspace" ? `workspace:${entry.pkg}` : entry.pkg;
15
15
  }
16
16
 
17
- //#endregion
18
17
  export { versionKeyOf };
package/cli/version.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/cli/version.ts
1
+ // src/cli/version.ts
2
2
  /**
3
3
  * The CLI's version. The bundler substitutes `__PACKAGE_VERSION__` at build
4
4
  * time, so this is not a runtime environment read; source runs report
@@ -6,7 +6,6 @@
6
6
  *
7
7
  * @internal
8
8
  */
9
- const CLI_VERSION = "2.1.2";
9
+ const CLI_VERSION = "2.1.4";
10
10
 
11
- //#endregion
12
11
  export { CLI_VERSION };
package/cli/walk-plan.js CHANGED
@@ -4,7 +4,7 @@ import { planEntry } from "./plan.js";
4
4
  import { detectPeerDrift } from "./drift.js";
5
5
  import { Effect } from "effect";
6
6
 
7
- //#region src/cli/walk-plan.ts
7
+ // src/cli/walk-plan.ts
8
8
  /**
9
9
  * Build the interactive walk items: for each entry, its candidate list (from
10
10
  * planEntry against the resolved versions), an up-to-date flag (only the keep
@@ -41,5 +41,4 @@ function buildWalkItems(entries, versionsByPkg) {
41
41
  });
42
42
  }
43
43
 
44
- //#endregion
45
44
  export { buildWalkItems };
@@ -1,4 +1,4 @@
1
- //#region src/cli/walk-reducer.ts
1
+ // src/cli/walk-reducer.ts
2
2
  const ORDER = {
3
3
  keep: 0,
4
4
  "in-range": 1,
@@ -146,5 +146,4 @@ function cellTone(candidate, selected) {
146
146
  return candidate.isMajor ? "changed" : "added";
147
147
  }
148
148
 
149
- //#endregion
150
149
  export { MAJOR_SUFFIX, cellTone, displayCandidates, initTable, peerFor, tableDecisions, tableLayout, tableStep, truncateEnd };