mustflow 2.22.2 → 2.22.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.
|
@@ -10,6 +10,7 @@ const INTERPRETER_EVALUATION_FLAGS = new Map([
|
|
|
10
10
|
['py', new Set(['-c'])],
|
|
11
11
|
['ruby', new Set(['-e'])],
|
|
12
12
|
['perl', new Set(['-e'])],
|
|
13
|
+
['julia', new Set(['-e', '--eval'])],
|
|
13
14
|
]);
|
|
14
15
|
const INTERPRETER_LONG_RUNNING_MODULES = new Map([
|
|
15
16
|
['python', new Set(['http.server', 'simplehttpserver'])],
|
|
@@ -39,6 +40,14 @@ export const LONG_RUNNING_COMMAND_TEXT_PATTERNS = [
|
|
|
39
40
|
/\bnext\s+(?:dev|start)\b/iu,
|
|
40
41
|
/\bturbo\s+dev\b/iu,
|
|
41
42
|
/\btsx\s+(?:watch|--watch|-w)\b/iu,
|
|
43
|
+
/\bcargo\s+(?:watch|tauri\s+dev)\b/iu,
|
|
44
|
+
/\bzig\s+build\b(?=.*(?:--watch|-w|\bwatch\b))/iu,
|
|
45
|
+
/\btauri\s+dev\b/iu,
|
|
46
|
+
/\bgh\s+(?:run\s+watch|codespace\s+ssh|codespace\s+logs\b.*(?:--follow|-f))\b/iu,
|
|
47
|
+
/\bdeno\s+(?:serve|task\s+(?:dev|start|serve|watch|preview)|run\b.*(?:--watch|-w))\b/iu,
|
|
48
|
+
/\bflutter\s+(?:run|attach|logs)\b/iu,
|
|
49
|
+
/\bdart\s+run\s+build_runner\s+watch\b/iu,
|
|
50
|
+
/\bgo\s+run\s+(?:(?:github\.com\/(?:air-verse|cosmtrek)\/air)(?:\/v\d+)?|.*\bair\b)/iu,
|
|
42
51
|
/\b(?:python|python3|py)\s+-m\s+(?:http\.server|SimpleHTTPServer)\b/u,
|
|
43
52
|
/\b(?:nohup|disown)\b/iu,
|
|
44
53
|
/(?:^|[^&])&(?!&)\s*$/u,
|
|
@@ -125,6 +134,9 @@ function readPackageExecCommand(command, args) {
|
|
|
125
134
|
}
|
|
126
135
|
return null;
|
|
127
136
|
}
|
|
137
|
+
function hasWatchFlag(args) {
|
|
138
|
+
return args.some((arg) => arg === '--watch' || arg === '-w' || arg === 'watch' || arg.startsWith('--watch='));
|
|
139
|
+
}
|
|
128
140
|
function longRunningExecutableDetail(command, args) {
|
|
129
141
|
if (LONG_RUNNING_EXECUTABLES.has(command)) {
|
|
130
142
|
return `executable "${command}" is commonly long-running`;
|
|
@@ -147,6 +159,45 @@ function longRunningExecutableDetail(command, args) {
|
|
|
147
159
|
if (command === 'turbo' && args[0] === 'dev') {
|
|
148
160
|
return 'turbo dev is commonly long-running';
|
|
149
161
|
}
|
|
162
|
+
if (command === 'cargo' && args[0] === 'watch') {
|
|
163
|
+
return 'cargo watch is commonly long-running';
|
|
164
|
+
}
|
|
165
|
+
if (command === 'cargo' && args[0] === 'tauri' && args[1] === 'dev') {
|
|
166
|
+
return 'cargo tauri dev is commonly long-running';
|
|
167
|
+
}
|
|
168
|
+
if (command === 'zig' && args[0] === 'build' && hasWatchFlag(args.slice(1))) {
|
|
169
|
+
return 'zig build watch mode is commonly long-running';
|
|
170
|
+
}
|
|
171
|
+
if (command === 'tauri' && args[0] === 'dev') {
|
|
172
|
+
return 'tauri dev is commonly long-running';
|
|
173
|
+
}
|
|
174
|
+
if (command === 'gh' && args[0] === 'run' && args[1] === 'watch') {
|
|
175
|
+
return 'gh run watch is commonly long-running';
|
|
176
|
+
}
|
|
177
|
+
if (command === 'gh' && args[0] === 'codespace' && args[1] === 'ssh') {
|
|
178
|
+
return 'gh codespace ssh is interactive and commonly long-running';
|
|
179
|
+
}
|
|
180
|
+
if (command === 'gh' && args[0] === 'codespace' && args[1] === 'logs' && (args.includes('--follow') || args.includes('-f'))) {
|
|
181
|
+
return 'gh codespace logs follow mode is commonly long-running';
|
|
182
|
+
}
|
|
183
|
+
if (command === 'deno' && args[0] === 'task' && args[1] && LONG_RUNNING_PACKAGE_SCRIPTS.has(args[1])) {
|
|
184
|
+
return `deno task ${args[1]} is commonly long-running`;
|
|
185
|
+
}
|
|
186
|
+
if (command === 'deno' && args[0] === 'serve') {
|
|
187
|
+
return 'deno serve is commonly long-running';
|
|
188
|
+
}
|
|
189
|
+
if (command === 'deno' && args[0] === 'run' && hasWatchFlag(args.slice(1))) {
|
|
190
|
+
return 'deno run watch mode is commonly long-running';
|
|
191
|
+
}
|
|
192
|
+
if (command === 'flutter' && ['run', 'attach', 'logs'].includes(args[0] ?? '')) {
|
|
193
|
+
return `flutter ${args[0]} is commonly long-running`;
|
|
194
|
+
}
|
|
195
|
+
if (command === 'dart' && args[0] === 'run' && args[1] === 'build_runner' && args[2] === 'watch') {
|
|
196
|
+
return 'dart build_runner watch is commonly long-running';
|
|
197
|
+
}
|
|
198
|
+
if (command === 'go' && args[0] === 'run' && args.some((arg) => /(?:^|\/)(?:air)(?:$|@)/iu.test(arg))) {
|
|
199
|
+
return 'go run air is commonly long-running';
|
|
200
|
+
}
|
|
150
201
|
return null;
|
|
151
202
|
}
|
|
152
203
|
function argvHasBlockedLongRunningPattern(argv) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mustflow",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.4",
|
|
4
4
|
"description": "Agent workflow documents and CLI for mustflow repository roots.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT-0",
|
|
@@ -36,7 +36,9 @@
|
|
|
36
36
|
"test:coverage": "bun run build && node scripts/run-cli-tests.mjs coverage",
|
|
37
37
|
"test:audit": "node scripts/audit-tests.mjs --json",
|
|
38
38
|
"test:release": "bun run build && node scripts/run-cli-tests.mjs release",
|
|
39
|
-
"test:full": "bun run build && node scripts/run-cli-tests.mjs full",
|
|
39
|
+
"test:full": "bun run build && node scripts/run-cli-tests.mjs full-auto",
|
|
40
|
+
"test:full:auto": "bun run build && node scripts/run-cli-tests.mjs full-auto",
|
|
41
|
+
"test:full:serial": "bun run build && node scripts/run-cli-tests.mjs full",
|
|
40
42
|
"check": "bun run check:package && bun run test:full",
|
|
41
43
|
"check:package": "node -e \"const fs=require('fs'); JSON.parse(fs.readFileSync('package.json','utf8')); console.log('package.json ok')\"",
|
|
42
44
|
"check:typecheck": "tsc -p tsconfig.json --noEmit",
|