@r_masseater/msch 0.120.8 → 0.120.10

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
@@ -6,9 +6,9 @@ import { C as childrenOf$4, D as propertyValue, E as nestedValues, O as stringsI
6
6
  import { a as parent, i as join, n as isInside, t as baseName$1 } from "./path-DUttmo2s.mjs";
7
7
  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 isIndexSkill, v as shadcnUiOf } from "./published-u44g9ha6.mjs";
8
8
  import { i as USAGE_SPOOL, n as DECISION_TIMEOUT_MS, r as JAPANESE, t as DECISION_MODEL } from "./config-W6Uy7bV8.mjs";
9
- import { a as CI_TASKS, c as meteredCommand, f as isIgnored, h as patternOf$1, m as namedWorkspaces, n as builtTextRuleNames, o as MSCH_TASK_COMMANDS, r as secretsOf, s as MSCH_VERIFY_COMMANDS, t as TEXT_IGNORES, u as existsAt } from "./repository-text-Dtv6Oz3P.mjs";
9
+ import { a as CI_TASKS, c as meteredCommand, f as isIgnored, h as patternOf$1, m as namedWorkspaces, n as builtTextRuleNames, o as MSCH_TASK_COMMANDS, r as secretsOf, s as MSCH_VERIFY_COMMANDS, t as TEXT_IGNORES, u as existsAt } from "./repository-text-3gY3uvJb.mjs";
10
10
  import { t as startedOnce } from "./started-once-muJbvD_I.mjs";
11
- import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, t as MARKDOWN_IGNORES, x as exempt } from "./define-lint-preset-CYgaGe8E.mjs";
11
+ import { g as decisionTestRules, n as MARKDOWN_RULES, p as lint$3, t as MARKDOWN_IGNORES, x as exempt } from "./define-lint-preset-Bh9gBpeZ.mjs";
12
12
  import { builtinModules, isBuiltin } from "node:module";
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, Redacted, Result, Runtime, Schedule, Schema, SchemaTransformation, Semaphore, Stdio, Stream, String as String$1, pipe } from "effect";
14
14
  import { Argument, Command, Flag } from "effect/cli";
@@ -47,7 +47,7 @@ import { Buffer } from "node:buffer";
47
47
  import { createZstdDecompress } from "node:zlib";
48
48
  // package.json
49
49
  var name = "@r_masseater/msch";
50
- var version = "0.120.8";
50
+ var version = "0.120.10";
51
51
  var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
52
52
  var repository = {
53
53
  "type": "git",
@@ -655,6 +655,7 @@ const CrateEntry = Schema.Struct({
655
655
  });
656
656
  const CrateList = Schema.fromJsonString(Schema.Struct({ packages: Schema.Array(CrateEntry) }));
657
657
  const decodeCrateList = Schema.decodeUnknownEffect(CrateList);
658
+ const INSTALLED$1 = /[\\/]node_modules[\\/]/u;
658
659
  const crateOf$1 = (crate) => ({
659
660
  name: crate.name,
660
661
  version: crate.version,
@@ -678,7 +679,7 @@ const cratesIn = Effect.fn("cratesIn")(function* cratesIn(root) {
678
679
  const output = yield* handle.stdout.pipe(Stream.decodeText(), Stream.mkString);
679
680
  if ((yield* handle.exitCode) !== SUCCESS$7) return [];
680
681
  const list = yield* decodeCrateList(output);
681
- return pipe(list.packages, Array$1.map(crateOf$1));
682
+ return pipe(list.packages, Array$1.filter(({ manifest_path }) => !INSTALLED$1.test(manifest_path)), Array$1.map(crateOf$1));
682
683
  }, Effect.scoped);
683
684
  /** @internal */
684
685
  const owningWorkspace = (directories) => (directory) => {
@@ -18224,7 +18225,7 @@ const checkOwnerNames = Effect.fn("checkOwnerNames")(function* checkOwnerNames(r
18224
18225
  });
18225
18226
  // src/features/check-owner-principles/model/owner-principles.ts
18226
18227
  const RULE$20 = "owner-principle-changed";
18227
- const PRINCIPLE_FILE = /(?:^|\/)(?:skills\/principle-[^/]+\/|plugins\/[^/]+-principles\/|PRINCIPLE\.md$)/u;
18228
+ const PRINCIPLE_FILE = /(?:^|\/)(?:skills\/principle-[^/]+\/|PRINCIPLE\.md$)/u;
18228
18229
  const TRAILER = /^Owner-Said:[ \t]*\S/mu;
18229
18230
  const MESSAGE$3 = "changes a principle. Only the owner changes a principle: change it in a session the owner opened with /do-principle, and add the trailer \"Owner-Said: <the owner's words>\" to a commit of the branch. When you only found a fact at odds with the principle, record it as a lesson instead.";
18230
18231
  /** @internal */
@@ -22537,8 +22538,10 @@ const writePlan = Effect.fn("publish.writePlan")(function* writePlan(plan) {
22537
22538
  const Directories = Schema.String.pipe(Schema.Array, Schema.fromJsonString);
22538
22539
  /** @internal */
22539
22540
  const isChecked = Effect.fn("compat.isChecked")(function* isChecked(directory) {
22541
+ const plain = yield* readPackageJson(directory);
22542
+ if (!goesToNpm(plain)) return false;
22540
22543
  const manifest = yield* readVersionedPackageJson(directory);
22541
- return goesToNpm(manifest) && !Array$1.isReadonlyArrayEmpty(compatCasesOf(manifest));
22544
+ return !Array$1.isReadonlyArrayEmpty(compatCasesOf(manifest));
22542
22545
  });
22543
22546
  /** @internal */
22544
22547
  const writeCompatPlan = Effect.fn("publish.compatPlan")(function* writeCompatPlan() {