@r_masseater/msch 0.67.0 → 0.69.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/cargo-inputs.mjs +2 -2
- package/dist/changed.mjs +4 -4
- package/dist/cli.mjs +22 -14
- package/dist/cli.mjs.map +1 -1
- package/dist/config.mjs +1 -1
- package/dist/config.mjs.map +1 -1
- package/dist/{dependencies-B9hf2aIC.mjs → dependencies-C3kCe35Q.mjs} +2 -2
- package/dist/{dependencies-B9hf2aIC.mjs.map → dependencies-C3kCe35Q.mjs.map} +1 -1
- package/dist/exits.mjs +4 -4
- package/dist/{ignored-directories-DzwJE3Y7.mjs → ignored-directories-BW8gCBE1.mjs} +2 -2
- package/dist/{ignored-directories-DzwJE3Y7.mjs.map → ignored-directories-BW8gCBE1.mjs.map} +1 -1
- package/dist/{lookup-report-FU7iFxSa.mjs → lookup-report-D1VTEK5k.mjs} +3 -3
- package/dist/{lookup-report-FU7iFxSa.mjs.map → lookup-report-D1VTEK5k.mjs.map} +1 -1
- package/dist/{manifest-texts-B8NV4YCS.mjs → manifest-texts-K650kDy8.mjs} +2 -2
- package/dist/{manifest-texts-B8NV4YCS.mjs.map → manifest-texts-K650kDy8.mjs.map} +1 -1
- package/dist/oxlint.mjs +2 -2
- package/dist/{pass-records-C5tcV6Qh.mjs → pass-records-kbx5VgwI.mjs} +4 -4
- package/dist/{pass-records-C5tcV6Qh.mjs.map → pass-records-kbx5VgwI.mjs.map} +1 -1
- package/dist/{problem-BvRpVt97.mjs → problem-Ciud2WGj.mjs} +2 -2
- package/dist/{problem-BvRpVt97.mjs.map → problem-Ciud2WGj.mjs.map} +1 -1
- package/dist/publish.mjs +55 -8
- package/dist/publish.mjs.map +1 -1
- package/dist/{published-l5wN7u0m.mjs → published-CpfXkChq.mjs} +3 -3
- package/dist/{published-l5wN7u0m.mjs.map → published-CpfXkChq.mjs.map} +1 -1
- package/dist/published.mjs +44 -26
- package/dist/published.mjs.map +1 -1
- package/dist/refs.mjs +3 -3
- package/dist/{repository-files-BxmKrOgg.mjs → repository-files-C2gVviac.mjs} +10 -1
- package/dist/repository-files-C2gVviac.mjs.map +1 -0
- package/dist/{runtime-C6khg0XJ.mjs → runtime-1exMm81b.mjs} +2 -2
- package/dist/{runtime-C6khg0XJ.mjs.map → runtime-1exMm81b.mjs.map} +1 -1
- package/dist/{syntax-V4CunkGE.mjs → syntax-Dx4HQIK-.mjs} +2 -2
- package/dist/{syntax-V4CunkGE.mjs.map → syntax-Dx4HQIK-.mjs.map} +1 -1
- package/dist/{upstream-exits-DLZh68ZH.mjs → upstream-exits-Clnl4-G5.mjs} +3 -3
- package/dist/{upstream-exits-DLZh68ZH.mjs.map → upstream-exits-Clnl4-G5.mjs.map} +1 -1
- package/dist/wake.mjs +1 -1
- package/dist/workspace-settings.mjs +4 -4
- package/package.json +2 -2
- package/skills/msch-checks/SKILL.md +2 -2
- package/skills/msch-publishing/SKILL.md +7 -6
- package/dist/repository-files-BxmKrOgg.mjs.map +0 -1
package/dist/cargo-inputs.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as reachable, n as collectPlacedIgnoredDirectories } from "./ignored-directories-
|
|
2
|
-
import { i as nodeServicesLayer, n as RepositoryFiles, r as nodeRepositoryFiles } from "./repository-files-
|
|
1
|
+
import { i as reachable, n as collectPlacedIgnoredDirectories } from "./ignored-directories-BW8gCBE1.mjs";
|
|
2
|
+
import { i as nodeServicesLayer, n as RepositoryFiles, r as nodeRepositoryFiles } from "./repository-files-C2gVviac.mjs";
|
|
3
3
|
import { t as startedOnce } from "./started-once-muJbvD_I.mjs";
|
|
4
4
|
import { i as isWithin, l as toPosix, s as relativeTo } from "./app-BwjhFdKD.mjs";
|
|
5
5
|
import { Array, Console, Effect, Layer, Option, Record, Schema, Stream, String as String$1, pipe } from "effect";
|
package/dist/changed.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { n as ProblemsFound, t as runCli } from "./runtime-
|
|
3
|
-
import { i as installedPackages, n as keepOnly, r as recordsIn, s as workspaceClosure } from "./pass-records-
|
|
4
|
-
import { n as RepositoryFiles, t as NODE_MODULES } from "./repository-files-
|
|
5
|
-
import { s as workspaceDirectories } from "./dependencies-
|
|
2
|
+
import { n as ProblemsFound, t as runCli } from "./runtime-1exMm81b.mjs";
|
|
3
|
+
import { i as installedPackages, n as keepOnly, r as recordsIn, s as workspaceClosure } from "./pass-records-kbx5VgwI.mjs";
|
|
4
|
+
import { n as RepositoryFiles, t as NODE_MODULES } from "./repository-files-C2gVviac.mjs";
|
|
5
|
+
import { s as workspaceDirectories } from "./dependencies-C3kCe35Q.mjs";
|
|
6
6
|
import { Array, Effect, Option, Order, Record, Schema, Stdio, Stream, String as String$1, pipe } from "effect";
|
|
7
7
|
import { ChildProcess, ChildProcessSpawner } from "effect/process";
|
|
8
8
|
import { dual } from "effect/Function";
|
package/dist/cli.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { B as stringsIn, C as VERIFY_TASK, F as childrenOf$1, I as keyName, L as literalOf, N as workspaceConfigOf, P as KeySchema, R as nestedValues, S as RUN_TASKS, T as hasVerifyTask, _ as deployEntries, a as EntryManifestJson, c as publicEntriesOf, d as workspaceLinks, g as bundledEntries, i as publishedWorkspaces, l as targetsIn, m as lockedPackages, o as entryNameOf, p as lockedGraph, r as packedWorkspaces, s as isBinEntry, w as definesTask, y as shadcnUiOf, z as propertyValue } from "./published-
|
|
2
|
+
import { B as stringsIn, C as VERIFY_TASK, F as childrenOf$1, I as keyName, L as literalOf, N as workspaceConfigOf, P as KeySchema, R as nestedValues, S as RUN_TASKS, T as hasVerifyTask, _ as deployEntries, a as EntryManifestJson, c as publicEntriesOf, d as workspaceLinks, g as bundledEntries, i as publishedWorkspaces, l as targetsIn, m as lockedPackages, o as entryNameOf, p as lockedGraph, r as packedWorkspaces, s as isBinEntry, w as definesTask, y as shadcnUiOf, z as propertyValue } from "./published-CpfXkChq.mjs";
|
|
3
3
|
import { t as workspaceManifest } from "./workspace-manifest-BC-1cRIJ.mjs";
|
|
4
|
-
import { C as valueKey, S as schemaTypeOf, _ as formatValues, a as nearestManifestDirectory, b as literalValuesOf, c as listConfigFiles, d as withProject, f as declarationKey, g as finiteValuesOf, h as locationOf, i as installedPackages, l as mentions$1, m as isObjectType, n as keepOnly, o as projectInputs, p as describeLibraryType, r as recordsIn, t as contentKey, u as typeScriptCompiler, v as isSubsetOf, w as vocabularyOf, x as sameValues, y as literalUnionOf } from "./pass-records-
|
|
5
|
-
import { a as groupOf, n as RepositoryFiles, t as NODE_MODULES } from "./repository-files-
|
|
6
|
-
import { a as workspaceDeviations, c as tomlSourceComments, d as problemAtIndex, i as cargoDeviations, l as yamlSourceComments, o as collectNodes, r as WORKSPACE_SECTIONS, s as isRecord, t as checkUpstreamExits, u as positionOf } from "./upstream-exits-
|
|
4
|
+
import { C as valueKey, S as schemaTypeOf, _ as formatValues, a as nearestManifestDirectory, b as literalValuesOf, c as listConfigFiles, d as withProject, f as declarationKey, g as finiteValuesOf, h as locationOf, i as installedPackages, l as mentions$1, m as isObjectType, n as keepOnly, o as projectInputs, p as describeLibraryType, r as recordsIn, t as contentKey, u as typeScriptCompiler, v as isSubsetOf, w as vocabularyOf, x as sameValues, y as literalUnionOf } from "./pass-records-kbx5VgwI.mjs";
|
|
5
|
+
import { a as groupOf, n as RepositoryFiles, t as NODE_MODULES } from "./repository-files-C2gVviac.mjs";
|
|
6
|
+
import { a as workspaceDeviations, c as tomlSourceComments, d as problemAtIndex, i as cargoDeviations, l as yamlSourceComments, o as collectNodes, r as WORKSPACE_SECTIONS, s as isRecord, t as checkUpstreamExits, u as positionOf } from "./upstream-exits-Clnl4-G5.mjs";
|
|
7
7
|
import { a as join, n as baseName, o as parent, r as isInside, t as matcher } from "./app-BwjhFdKD.mjs";
|
|
8
|
-
import { a as publishedProjects, c as workspaceProjects, o as unmatchedWorkspacePatterns, r as readManifest, s as workspaceDirectories, t as MANIFEST_FILE$3 } from "./dependencies-
|
|
9
|
-
import { a as problemAtPosition, i as problemAt$7, o as problemInFile, r as formatProblem, s as sortProblems, t as ProblemList } from "./problem-
|
|
8
|
+
import { a as publishedProjects, c as workspaceProjects, o as unmatchedWorkspacePatterns, r as readManifest, s as workspaceDirectories, t as MANIFEST_FILE$3 } from "./dependencies-C3kCe35Q.mjs";
|
|
9
|
+
import { a as problemAtPosition, i as problemAt$7, o as problemInFile, r as formatProblem, s as sortProblems, t as ProblemList } from "./problem-Ciud2WGj.mjs";
|
|
10
10
|
import { t as JAPANESE } from "./config-CvPuqi4L.mjs";
|
|
11
11
|
import { n as readTree, t as loadLanguage } from "./tree-sitter-BfzHNwTR.mjs";
|
|
12
|
-
import { $ as isPropertyAccessExpression, A as getNameOfDeclaration, B as isExportDeclaration, D as SyntaxKind, E as SymbolFlags, F as isBlock, G as isImportDeclaration, H as isFunctionDeclaration, I as isCallExpression, J as isModuleDeclaration, K as isInterfaceDeclaration, L as isClassDeclaration, M as isArrayLiteralExpression, N as isArrowFunction, O as getJSDocTags, P as isBinaryExpression, Q as isParenthesizedExpression, R as isElementAccessExpression, T as SignatureKind, U as isFunctionExpression, V as isExpressionStatement, W as isIdentifier, X as isNumericLiteral, Y as isNewExpression, Z as isObjectLiteralExpression, _ as referencedSymbols, a as declarationsOf, at as isSpreadElement, b as symbolAtLocation, c as importedModulesOf, ct as isTypeLiteralNode, d as isInsideAny, dt as isVariableDeclaration, et as isPropertyAssignment, f as isOutsideDeclaration, ft as isVariableDeclarationList, g as propertyNamesOf, h as packageOf$1, i as contains, it as isSourceFile, j as getTextOfJSDocComment, l as isExternalDeclaration, lt as isTypeReferenceNode, m as lineOf$3, n as childrenOf$2, nt as isSatisfiesExpression, o as declaresAType, ot as isStringLiteral, p as isTypeDeclaration, pt as isVariableStatement, q as isModuleBlock, r as columnOf, rt as isSignatureDeclaration, s as descendantsOf, st as isTypeAliasDeclaration, t as carriesTag, tt as isReturnStatement, u as isGenericDeclaration, ut as isUnionTypeNode, x as uniqueByReference, y as symbolAt, z as isEnumDeclaration } from "./syntax-
|
|
13
|
-
import { a as fieldsOf, c as namedCatalogsOf, d as specifiedIn, i as decodeManifest$9, l as offsetIn$1, n as baseName$1, o as manifestPattern, r as baseRevision, s as manifestSpecifiers, t as manifestTexts, u as quoted$2 } from "./manifest-texts-
|
|
14
|
-
import { n as ProblemsFound, r as writeStdout, t as runCli } from "./runtime-
|
|
12
|
+
import { $ as isPropertyAccessExpression, A as getNameOfDeclaration, B as isExportDeclaration, D as SyntaxKind, E as SymbolFlags, F as isBlock, G as isImportDeclaration, H as isFunctionDeclaration, I as isCallExpression, J as isModuleDeclaration, K as isInterfaceDeclaration, L as isClassDeclaration, M as isArrayLiteralExpression, N as isArrowFunction, O as getJSDocTags, P as isBinaryExpression, Q as isParenthesizedExpression, R as isElementAccessExpression, T as SignatureKind, U as isFunctionExpression, V as isExpressionStatement, W as isIdentifier, X as isNumericLiteral, Y as isNewExpression, Z as isObjectLiteralExpression, _ as referencedSymbols, a as declarationsOf, at as isSpreadElement, b as symbolAtLocation, c as importedModulesOf, ct as isTypeLiteralNode, d as isInsideAny, dt as isVariableDeclaration, et as isPropertyAssignment, f as isOutsideDeclaration, ft as isVariableDeclarationList, g as propertyNamesOf, h as packageOf$1, i as contains, it as isSourceFile, j as getTextOfJSDocComment, l as isExternalDeclaration, lt as isTypeReferenceNode, m as lineOf$3, n as childrenOf$2, nt as isSatisfiesExpression, o as declaresAType, ot as isStringLiteral, p as isTypeDeclaration, pt as isVariableStatement, q as isModuleBlock, r as columnOf, rt as isSignatureDeclaration, s as descendantsOf, st as isTypeAliasDeclaration, t as carriesTag, tt as isReturnStatement, u as isGenericDeclaration, ut as isUnionTypeNode, x as uniqueByReference, y as symbolAt, z as isEnumDeclaration } from "./syntax-Dx4HQIK-.mjs";
|
|
13
|
+
import { a as fieldsOf, c as namedCatalogsOf, d as specifiedIn, i as decodeManifest$9, l as offsetIn$1, n as baseName$1, o as manifestPattern, r as baseRevision, s as manifestSpecifiers, t as manifestTexts, u as quoted$2 } from "./manifest-texts-K650kDy8.mjs";
|
|
14
|
+
import { n as ProblemsFound, r as writeStdout, t as runCli } from "./runtime-1exMm81b.mjs";
|
|
15
15
|
import "./cli-contract-D7btWrEu.mjs";
|
|
16
16
|
import { builtinModules } from "node:module";
|
|
17
17
|
import { VpToolsError, runVpa } from "@r_masseater/vite-plus-adopt";
|
|
@@ -618,6 +618,8 @@ const checkPackageRegistry = Effect.fn("checkPackageRegistry")(function* checkPa
|
|
|
618
618
|
const overrides = yield* scanText(pipe(listed, Array.filter(({ name }) => NPMRC.test(name))), npmrcProblems);
|
|
619
619
|
return [...yield* checkWorkspace(root), ...overrides];
|
|
620
620
|
});
|
|
621
|
+
// src/entities/package/model/stack-catalog.ts
|
|
622
|
+
const STACK_CATALOG = "catalog:stack";
|
|
621
623
|
// src/entities/package/model/published-manifest.ts
|
|
622
624
|
const EXCLUDED$8 = [":(exclude,attr:linguist-vendored)", ":(exclude,attr:linguist-generated)"];
|
|
623
625
|
const PublishedManifestSchema = Schema.Struct({
|
|
@@ -11245,7 +11247,6 @@ const installedSize = (directory) => {
|
|
|
11245
11247
|
// src/features/measure-install-size/model/install-size.ts
|
|
11246
11248
|
const INSTALL_SIZE = "install-size";
|
|
11247
11249
|
const STACK_DEPENDENCY = "stack-dependency";
|
|
11248
|
-
const STACK_CATALOG = "catalog:stack";
|
|
11249
11250
|
const BUDGET_KEY = "installSize";
|
|
11250
11251
|
const DEPENDENCIES_KEY$1 = "\"dependencies\"";
|
|
11251
11252
|
const LISTED_LARGEST = 5;
|
|
@@ -11270,7 +11271,7 @@ const budgetProblem = Effect.fn("budgetProblem")(function* budgetProblem(overrun
|
|
|
11270
11271
|
file: workspace.configFile,
|
|
11271
11272
|
...positionOf(source)(index),
|
|
11272
11273
|
rule: INSTALL_SIZE,
|
|
11273
|
-
message: `installing this package adds ${megabytes(total)} of dependencies besides its peers, over the ${workspace.installSize} in msch.publish.installSize. Largest: ${listed$1(overrun)}. Make a dependency imported only from some entries an optional peer, move one that the installing project already has to peerDependencies, or replace a heavy one. Raise installSize only when none of these applies.`
|
|
11274
|
+
message: `installing this package adds ${megabytes(total)} of dependencies besides its peers, over the ${workspace.installSize} in msch.publish.installSize. Largest: ${listed$1(overrun)}. Make a dependency imported only from some library entries an optional peer, make one that a bin needs at startup a required peer, move one that the installing project already has to peerDependencies, or replace a heavy one. Raise installSize only when none of these applies.`
|
|
11274
11275
|
};
|
|
11275
11276
|
});
|
|
11276
11277
|
const measure = Effect.fn("measure")(function* measure({ workspace, provided }, direct) {
|
|
@@ -11462,6 +11463,7 @@ const Manifest$4 = Schema.Struct({
|
|
|
11462
11463
|
bin: Schema.optional(Schema.Unknown),
|
|
11463
11464
|
sideEffects: Schema.optional(Schema.Unknown),
|
|
11464
11465
|
dependencies: Schema.optional(Versions),
|
|
11466
|
+
devDependencies: Schema.optional(Versions),
|
|
11465
11467
|
peerDependencies: Schema.optional(Versions),
|
|
11466
11468
|
optionalDependencies: Schema.optional(Versions),
|
|
11467
11469
|
peerDependenciesMeta: Schema.optional(Schema.Record(Schema.String, PeerMeta))
|
|
@@ -11472,6 +11474,7 @@ const runtimeDependenciesOf = ({ dependencies, peerDependencies, optionalDepende
|
|
|
11472
11474
|
optionalDependencies
|
|
11473
11475
|
], Array.flatMap(keysOf), Array.dedupe);
|
|
11474
11476
|
const optionalPeersOf = ({ peerDependenciesMeta }) => pipe(Option.fromUndefinedOr(peerDependenciesMeta), Option.map(Record.filter(({ optional }) => optional === true)), Option.map(Record.keys), Option.getOrElse(() => []));
|
|
11477
|
+
const stackPackagesOf = ({ devDependencies }) => pipe(Option.fromUndefinedOr(devDependencies), Option.map(Record.filter((specifier) => specifier === STACK_CATALOG)), Option.map(Record.keys), Option.getOrElse(() => []));
|
|
11475
11478
|
const decode = Schema.decodeOption(Schema.fromJsonString(Manifest$4));
|
|
11476
11479
|
const manifestOf$1 = (text) => decode(text);
|
|
11477
11480
|
const isFileList = Schema.is(Schema.Array(Schema.String));
|
|
@@ -11518,6 +11521,10 @@ const problemFor$3 = (located, name, importers) => ({
|
|
|
11518
11521
|
rule: RULE$39,
|
|
11519
11522
|
message: `${name} is imported only from ${labelsOf(importers)}, so installing the other entries must not require it. Move it to peerDependencies, mark it optional in peerDependenciesMeta and keep it in devDependencies.`
|
|
11520
11523
|
});
|
|
11524
|
+
const requiredPeerAdvice = (fromStack) => {
|
|
11525
|
+
if (fromStack) return "Make it a required peer by removing it from peerDependenciesMeta; it comes from the stack catalog, so every project that installs this package already has it.";
|
|
11526
|
+
return "Make it a required peer by removing it from peerDependenciesMeta when every project that installs this package already has it, or move it to dependencies, which count toward msch.publish.installSize.";
|
|
11527
|
+
};
|
|
11521
11528
|
const optionalPeerProblems = ({ located, dependencies, used }) => {
|
|
11522
11529
|
const libraries = pipe(used, Array.filter(({ entry }) => !isBinEntry(entry)));
|
|
11523
11530
|
const bins = pipe(used, Array.filter(({ entry }) => isBinEntry(entry)));
|
|
@@ -11529,7 +11536,7 @@ const optionalPeerProblems = ({ located, dependencies, used }) => {
|
|
|
11529
11536
|
return [problemFor$3(located, name, importers)];
|
|
11530
11537
|
}));
|
|
11531
11538
|
};
|
|
11532
|
-
const requiredPeerProblems = ({ located, optional, used }) => {
|
|
11539
|
+
const requiredPeerProblems = ({ located, optional, stack, used }) => {
|
|
11533
11540
|
const libraries = pipe(used, Array.filter(({ entry }) => !isBinEntry(entry)));
|
|
11534
11541
|
return pipe(optional, Array.flatMap((name) => {
|
|
11535
11542
|
const bins = pipe(used, Array.filter((entry) => isBinEntry(entry.entry) && importsPackage(name)(entry)));
|
|
@@ -11540,7 +11547,7 @@ const requiredPeerProblems = ({ located, optional, used }) => {
|
|
|
11540
11547
|
file: located.file,
|
|
11541
11548
|
...positionIn(located, PEER_META_KEY, name),
|
|
11542
11549
|
rule: REQUIRED_RULE,
|
|
11543
|
-
message: `${name} is an optional peer, but ${labelsOf(importers)} import it at startup, so installing the package without it breaks them.
|
|
11550
|
+
message: `${name} is an optional peer, but ${labelsOf(importers)} import it at startup, so installing the package without it breaks them. ${requiredPeerAdvice(Array.contains(stack, name))}`
|
|
11544
11551
|
}];
|
|
11545
11552
|
}));
|
|
11546
11553
|
};
|
|
@@ -11720,6 +11727,7 @@ const analyse = Effect.fn("analyse")(function* analyse(pack) {
|
|
|
11720
11727
|
...requiredPeerProblems({
|
|
11721
11728
|
located,
|
|
11722
11729
|
optional: optionalPeersOf(manifest),
|
|
11730
|
+
stack: stackPackagesOf(manifest),
|
|
11723
11731
|
used
|
|
11724
11732
|
})
|
|
11725
11733
|
];
|
|
@@ -13635,7 +13643,7 @@ const RULE$22 = "publish-trigger";
|
|
|
13635
13643
|
const PUBLISH = /\bmsch-publish\s+(?:plan|npm|release)\b/u;
|
|
13636
13644
|
const MANUAL = "workflow_dispatch";
|
|
13637
13645
|
const TRIGGER_KEY = "on";
|
|
13638
|
-
const MESSAGE$7 = "publishes with `msch-publish plan`, `npm` or `release` from a trigger other than `workflow_dispatch`.
|
|
13646
|
+
const MESSAGE$7 = "publishes with `msch-publish plan`, `npm` or `release` from a trigger other than `workflow_dispatch`. Keep those steps in a workflow that only `workflow_dispatch` starts, and start it on a push to main with `msch-publish dispatch`.";
|
|
13639
13647
|
const triggersOf = (node) => {
|
|
13640
13648
|
if (isScalar(node)) return [String(node.value)];
|
|
13641
13649
|
if (isSeq(node)) return pipe(node.items, Array.filter(isScalar), Array.map((item) => String(item.value)));
|