@r_masseater/msch 0.129.2 → 0.129.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.
package/dist/cli.mjs
CHANGED
|
@@ -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.129.
|
|
52
|
+
var version = "0.129.4";
|
|
53
53
|
var homepage = "https://github.com/masseater/ecosystems/tree/main/libs/msch#readme";
|
|
54
54
|
var repository = {
|
|
55
55
|
"type": "git",
|
|
@@ -19954,7 +19954,7 @@ const NAME_GROUP = "name";
|
|
|
19954
19954
|
const SOURCE = /\.[cm]?tsx?$/u;
|
|
19955
19955
|
const DECLARED_COMMAND = /\bCommand\.make\(\s*["'](?<name>[a-z][a-z0-9-]*)["']/gu;
|
|
19956
19956
|
const DECLARED_FLAG = /\bFlag\.[A-Z]\w*\(\s*["'](?<name>[a-z][a-z0-9-]*)["']/gu;
|
|
19957
|
-
const
|
|
19957
|
+
const RUN_COMMANDS = [/\bCommand\.run\(\s*(?<name>[A-Za-z_$][\w$]*)/gu, /\b(?<name>[A-Za-z_$][\w$]*)\.pipe\(\s*Command\.run\(/gu];
|
|
19958
19958
|
const INSTALLED_SKILLS$1 = ".agents/skills";
|
|
19959
19959
|
const COMMAND_FILE = /^bin\/(?<name>[^/.]+)\.[cm]?ts$/u;
|
|
19960
19960
|
const SAFE_NAME = /^[a-z][a-z0-9-]*$/u;
|
|
@@ -19977,7 +19977,7 @@ const declaredIn = (pattern) => (source) => pipe(Array$1.fromIterable(String$1.m
|
|
|
19977
19977
|
index: found.index ?? START$3,
|
|
19978
19978
|
source
|
|
19979
19979
|
})), Option.toArray)));
|
|
19980
|
-
const runIn = (source) => pipe(Array$1.fromIterable(String$1.matchAll(
|
|
19980
|
+
const runIn = (source) => pipe(RUN_COMMANDS, Array$1.flatMap((pattern) => Array$1.fromIterable(String$1.matchAll(pattern)(source.text))), Array$1.flatMap((found) => pipe(Option.fromUndefinedOr(found.groups), Option.flatMap(Record.get(NAME_GROUP)), Option.toArray)));
|
|
19981
19981
|
const isRoot$1 = ({ index, source }) => pipe(runIn(source), Array$1.some((binding) => new RegExp(`\\b${binding}\\s*=\\s*$`, "u").test(String$1.slice(START$3, index)(source.text))));
|
|
19982
19982
|
const elsewhere = (corpus) => ({ source }) => pipe(corpus, Array$1.filter((text) => text.file !== source.file && !isTest(text)));
|
|
19983
19983
|
const passesFlag = (declared) => {
|