@r_masseater/msch 0.110.0 → 0.111.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,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import { i as nodeRepositoryFiles, n as NODE_MODULES, o as TOOL_NAME$1, r as RepositoryFiles, s as groupOf, t as MSCH_CACHE } from "./repository-files-DbZY3I_3.mjs";
3
3
  import { $ as isIdentifier, A as uniqueByReference, B as getTextOfJSDocComment, C as moduleSpecifierOf, D as resolvedSymbol, E as referencedSymbols, F as SymbolFlags, G as isCallExpression, H as isArrowFunction, I as SyntaxKind, J as isEnumDeclaration, K as isClassDeclaration, L as getJSDocTags, M as IndexKind, N as InternalSymbolName, O as symbolAt, P as SignatureKind, Q as isFunctionExpression, R as getLeadingCommentRanges, S as moduleSpecifierLiteralOf, St as isVariableStatement, T as propertyNamesOf, U as isBinaryExpression, V as isArrayLiteralExpression, W as isBlock, X as isExpressionStatement, Y as isExportDeclaration, Z as isFunctionDeclaration, _ as isGenericDeclaration, _t as isTypeLiteralNode, a as problemAtPosition, at as isNumericLiteral, b as isTypeDeclaration, bt as isVariableDeclaration, c as carriesTag, ct as isPropertyAccessExpression, d as contains, dt as isSatisfiesExpression, et as isImportDeclaration, f as declarationsOf, ft as isSignatureDeclaration, g as isExternalDeclaration, gt as isTypeAliasDeclaration, h as importedModulesOf, ht as isStringLiteral, i as problemAt$6, it as isNewExpression, j as API, k as symbolAtLocation, l as childrenOf$3, lt as isPropertyAssignment, m as descendantsOf, mt as isSpreadElement, nt as isModuleBlock, o as problemInFile, ot as isObjectLiteralExpression, p as declaresAType, pt as isSourceFile, q as isElementAccessExpression, r as formatProblem, rt as isModuleDeclaration, s as sortProblems, st as isParenthesizedExpression, t as ProblemList, tt as isInterfaceDeclaration, u as columnOf, ut as isReturnStatement, v as isInsideAny, vt as isTypeReferenceNode, w as packageOf$1, x as lineOf$5, xt as isVariableDeclarationList, y as isOutsideDeclaration, yt as isUnionTypeNode, z as getNameOfDeclaration } from "./problem-BP2B-3M4.mjs";
4
- import { B as stringsIn, C as VERIFY_TASK, F as childrenOf$4, H as installedManifest, I as keyName, L as literalOf, N as workspaceConfigOf, P as KeySchema, R as nestedValues, S as RUN_TASKS, T as hasVerifyTask, U as readManifest, V as dependencyEntries, W as workspaceDependencies$1, _ as deployEntries, a as workspaceConfigs, c as publicEntriesOf, d as isIndexSkill, f as FRONTMATTER, g as bundledEntries, h as workspaceLinks, i as publishedWorkspaces, l as draftArticlesIn, o as entryNameOf, p as splitFrontmatter, r as packedWorkspaces, s as isBinEntry, u as publishedArticlesIn, w as definesTask, y as shadcnUiOf, z as propertyValue } from "./published-DRs5iHkQ.mjs";
4
+ import { B as installedManifest, C as hasVerifyTask, F as literalOf, H as workspaceDependencies$1, I as nestedValues, L as propertyValue, M as KeySchema, N as childrenOf$4, P as keyName, R as stringsIn, S as definesTask, V as readManifest, _ as shadcnUiOf, a as workspaceConfigs, b as RUN_TASKS, c as publicEntriesOf, d as splitFrontmatter, h as deployEntries, i as publishedWorkspaces, j as workspaceConfigOf, l as isIndexSkill, m as bundledEntries, o as entryNameOf, p as workspaceLinks, r as packedWorkspaces, s as isBinEntry, u as FRONTMATTER, x as VERIFY_TASK, z as dependencyEntries } from "./published-BeHBqOVt.mjs";
5
5
  import { a as workspaceManifest, i as workspaceProjects, n as unmatchedWorkspacePatterns, r as workspaceDirectories, t as publishedProjects } from "./workspace-projects-ycyXdQRo.mjs";
6
6
  import { a as parent, i as join, n as isInside, t as baseName$1 } from "./path-DUttmo2s.mjs";
7
7
  import { n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-BBdsNPSO.mjs";
8
- import { a as MSCH_TASK_COMMANDS, d as namedWorkspaces, f as patternOf$1, l as isIgnored, n as secretsOf, r as textIgnoresOf, s as existsAt, t as builtTextRuleNames } from "./repository-text-BZqpXNEe.mjs";
8
+ import { a as MSCH_TASK_COMMANDS, d as namedWorkspaces, f as patternOf$1, l as isIgnored, n as builtTextRuleNames, r as secretsOf, s as existsAt, t as TEXT_IGNORES } from "./repository-text-ClgnFGgv.mjs";
9
9
  import { t as startedOnce } from "./started-once-muJbvD_I.mjs";
10
- import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, r as markdownIgnoresOf, x as exempt } from "./define-lint-preset-Jiu7pMHB.mjs";
10
+ import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, t as MARKDOWN_IGNORES, x as exempt } from "./define-lint-preset-BXnNnSR9.mjs";
11
11
  import { builtinModules, isBuiltin } from "node:module";
12
12
  import { VpToolsError, findCiDrift, runVpa } from "@r_masseater/vite-plus-adopt";
13
13
  import { Array as Array$1, Boolean as Boolean$1, Clock, Config, Console, Context, Effect, Equal, FileSystem, Function, HashMap, HashSet, Match, Metric, Number as Number$1, Option, Order, Path, Predicate, Record, Result, Runtime, Schedule, Schema, SchemaTransformation, Stdio, Stream, String as String$1, pipe } from "effect";
@@ -43,7 +43,7 @@ import { Base64 } from "effect/encoding";
43
43
  import { dual } from "effect/Function";
44
44
  // package.json
45
45
  var name = "@r_masseater/msch";
46
- var version = "0.110.0";
46
+ var version = "0.111.0";
47
47
  var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
48
48
  var repository = {
49
49
  "type": "git",
@@ -14535,17 +14535,14 @@ const enabledRulesIn = Effect.fn("enabledRulesIn")(function* enabledRulesIn(root
14535
14535
  });
14536
14536
  /** @internal */
14537
14537
  const expectationsIn = Effect.fn("expectationsIn")(function* expectationsIn(root) {
14538
- const enabledRules = yield* enabledRulesIn(root);
14539
- const published = yield* publishedArticlesIn(root);
14540
- const drafts = yield* draftArticlesIn(root);
14541
14538
  return {
14542
- enabledRules,
14539
+ enabledRules: yield* enabledRulesIn(root),
14543
14540
  text: {
14544
- ignores: textIgnoresOf([...published, ...drafts]),
14541
+ ignores: TEXT_IGNORES,
14545
14542
  builtRuleNames: builtTextRuleNames
14546
14543
  },
14547
14544
  markdown: {
14548
- ignores: markdownIgnoresOf(published),
14545
+ ignores: MARKDOWN_IGNORES,
14549
14546
  rules: MARKDOWN_RULES
14550
14547
  },
14551
14548
  tasks: MSCH_TASK_COMMANDS,
@@ -14617,8 +14614,13 @@ const textRuleWeakenings = (expected) => (owner, rules) => [...pipe(expected.bui
14617
14614
  anchor: name,
14618
14615
  message: `${owner} turns off ${name} or one of its rules. Rules are not turned off in a repository that uses msch: rewrite the text, or fix the rule in msch.`
14619
14616
  })))];
14617
+ const checkedBySources = (section) => pipe(listOf$2(section["sources"]), Array$1.flatMap((source) => listOf$2(sectionOf(source)["files"])));
14618
+ const ignoredOutsideSources = (section) => {
14619
+ const checked = checkedBySources(section);
14620
+ return pipe(listOf$2(section["ignores"]), Array$1.filter((ignored) => !Array$1.contains(checked, ignored)));
14621
+ };
14620
14622
  const textWeakenings = (expected) => whenPresent("textlint section, so the Japanese text checks do not run", (section) => [
14621
- ...unless(Equal.equals(section["ignores"], expected.ignores), {
14623
+ ...unless(Equal.equals(ignoredOutsideSources(section), expected.ignores), {
14622
14624
  anchor: "ignores",
14623
14625
  message: "textlint.ignores differs from the files msch exempts. Files are not taken out of the text checks in a repository that uses msch."
14624
14626
  }),