@r_masseater/msch 0.128.0 → 0.129.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.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Array as Array$1, Boolean as Boolean$1, Clock, Config as Config$1, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate as Predicate$1, Record, Redacted, Result, Runtime, Schedule, Schema, SchemaTransformation, Semaphore, Stdio, Stream, String as String$1, pipe } from "effect";
2
+ import { Array as Array$1, Boolean as Boolean$1, Clock, Config as Config$1, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate as Predicate$1, Record, Redacted, Result, Runtime, Schedule, Schema, SchemaTransformation, Semaphore, Stdio, Stream, String as String$1, Struct, pipe } from "effect";
3
3
  import { Argument, Command, Flag } from "effect/cli";
4
4
  import { i as nodeRepositoryFiles, n as NODE_MODULES$2, o as TOOL_NAME$1, r as RepositoryFiles, s as groupOf, t as MSCH_CACHE } from "./repository-files-C_GzAnYp.mjs";
5
5
  import { hookFlags } from "@r_masseater/masseater-utils/hook-flags";
@@ -14,7 +14,7 @@ import { decodePackageJson, decodeVersionedPackageJson, readPackageJson, readRaw
14
14
  import { a as workspaceConfigs, c as publicEntriesOf, d as FRONTMATTER, f as splitFrontmatter, g as deployEntries, h as bundledEntries$1, i as publishedWorkspaces, l as modDirectories, m as workspaceLinks, o as entryNameOf, r as packedWorkspaces, s as isBinEntry, u as INDEX_SKILL, v as shadcnUiOf } from "./published-BbAu-6IS.mjs";
15
15
  import { parse, resolveConfigFromFile } from "vite-plus";
16
16
  import { i as USAGE_SPOOL, n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-B3SYjao5.mjs";
17
- import { _ as isIgnored, a as TEXT_IGNORES, c as CI_TASKS, d as MSCH_VERIFY_COMMANDS, f as meteredCommand, g as existsAt, h as fu4Of, l as GIT_HOOKS, n as FORMAT, o as builtTextRuleNames, p as MDLCT_BIN, r as STAGED$1, s as secretsOf, t as COMMIT_LINT, u as MSCH_TASK_COMMANDS, v as namedWorkspaces, y as patternOf$1 } from "./repository-config-DGEG2Ew6.mjs";
17
+ import { _ as existsAt, a as builtTextRuleNames, b as patternOf$1, c as GIT_HOOKS, d as meteredCommand, f as MDLCT_BIN, g as fu4Of, h as SUBJECT_SCRIPT, i as TEXT_IGNORES, l as MSCH_TASK_COMMANDS, m as COMMIT_LINT, n as STAGED$1, o as secretsOf, s as CI_TASKS, t as FORMAT, u as MSCH_VERIFY_COMMANDS, v as isIgnored, y as namedWorkspaces } from "./repository-config-BdFUhbP3.mjs";
18
18
  import { fileURLToPath, pathToFileURL } from "node:url";
19
19
  import treeSitter from "@vscode/tree-sitter-wasm";
20
20
  import { t as startedOnce } from "./started-once-BN_hLlmU.mjs";
@@ -49,7 +49,7 @@ import { Buffer } from "node:buffer";
49
49
  import { createZstdDecompress } from "node:zlib";
50
50
  // package.json
51
51
  var name = "@r_masseater/msch";
52
- var version = "0.128.0";
52
+ var version = "0.129.0";
53
53
  var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
54
54
  var repository = {
55
55
  "type": "git",
@@ -14815,7 +14815,17 @@ const isSection = (value) => Predicate$1.isObject(value) && !Array$1.isArray(val
14815
14815
  const sectionOf = (value) => pipe(Option.some(value), Option.filter(isSection), Option.getOrElse(() => ({})));
14816
14816
  const listOf$2 = (value) => pipe(Option.some(value), Option.filter(isList), Option.getOrElse(() => []));
14817
14817
  // src/app/section-weakenings.ts
14818
- const fixedWeakenings = (config, expected) => pipe(Record.toEntries(expected.fixed), Array$1.filter(([section, built]) => !Equal.equals(config[section], built)), Array$1.map(([section]) => ({
14818
+ const withoutOptedRules = (section, value) => {
14819
+ if (section !== "commitlint") return value;
14820
+ const commitlint = sectionOf(value);
14821
+ const rules = Struct.omit(sectionOf(commitlint["rules"]), [SUBJECT_SCRIPT]);
14822
+ if (Record.isEmptyRecord(rules)) return Struct.omit(commitlint, ["rules"]);
14823
+ return {
14824
+ ...commitlint,
14825
+ rules
14826
+ };
14827
+ };
14828
+ const fixedWeakenings = (config, expected) => pipe(Record.toEntries(expected.fixed), Array$1.filter(([section, built]) => !Equal.equals(withoutOptedRules(section, config[section]), built)), Array$1.map(([section]) => ({
14819
14829
  anchor: section,
14820
14830
  message: `${section} differs from what repositoryConfig builds, so msch's ${section} settings do not apply. Leave the ${section} section as repositoryConfig builds it.`
14821
14831
  })));