mustflow 2.18.7 → 2.18.20

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.
Files changed (28) hide show
  1. package/README.md +4 -0
  2. package/dist/cli/commands/dashboard.js +68 -12
  3. package/dist/cli/commands/init.js +20 -20
  4. package/dist/cli/commands/run.js +1 -8
  5. package/dist/cli/commands/update.js +6 -11
  6. package/dist/cli/lib/dashboard-preferences.js +8 -6
  7. package/dist/cli/lib/filesystem.js +11 -1
  8. package/dist/cli/lib/local-index/index.js +30 -9
  9. package/dist/cli/lib/manifest-lock.js +38 -12
  10. package/dist/core/command-classification.js +0 -16
  11. package/dist/core/command-contract-rules.js +17 -3
  12. package/package.json +1 -1
  13. package/templates/default/i18n.toml +42 -6
  14. package/templates/default/locales/en/.mustflow/skills/INDEX.md +11 -5
  15. package/templates/default/locales/en/.mustflow/skills/cli-output-contract-review/SKILL.md +146 -0
  16. package/templates/default/locales/en/.mustflow/skills/command-contract-authoring/SKILL.md +121 -0
  17. package/templates/default/locales/en/.mustflow/skills/cross-platform-filesystem-safety/SKILL.md +137 -0
  18. package/templates/default/locales/en/.mustflow/skills/dependency-reality-check/SKILL.md +19 -6
  19. package/templates/default/locales/en/.mustflow/skills/external-prompt-injection-defense/SKILL.md +26 -10
  20. package/templates/default/locales/en/.mustflow/skills/llm-service-ux-review/SKILL.md +139 -0
  21. package/templates/default/locales/en/.mustflow/skills/process-execution-safety/SKILL.md +120 -0
  22. package/templates/default/locales/en/.mustflow/skills/routes.toml +38 -2
  23. package/templates/default/locales/en/.mustflow/skills/search-ad-content-authoring/SKILL.md +148 -0
  24. package/templates/default/locales/en/.mustflow/skills/security-privacy-review/SKILL.md +46 -12
  25. package/templates/default/locales/en/.mustflow/skills/security-regression-tests/SKILL.md +43 -12
  26. package/templates/default/locales/en/.mustflow/skills/ui-quality-gate/SKILL.md +34 -14
  27. package/templates/default/manifest.toml +23 -1
  28. package/dist/cli/commands/run/builtin-dispatch.js +0 -92
@@ -1,6 +1,6 @@
1
1
  id = "default"
2
2
  name = "default"
3
- version = "2.18.7"
3
+ version = "2.18.20"
4
4
  description = "Minimal workflow for LLM agents to read, edit, and verify their work in a repository."
5
5
  common_root = "common"
6
6
  locales_root = "locales"
@@ -17,9 +17,12 @@ creates = [
17
17
  ".mustflow/skills/behavior-preserving-refactor/SKILL.md",
18
18
  ".mustflow/skills/code-review/SKILL.md",
19
19
  ".mustflow/skills/codebase-orientation/SKILL.md",
20
+ ".mustflow/skills/cli-output-contract-review/SKILL.md",
21
+ ".mustflow/skills/command-contract-authoring/SKILL.md",
20
22
  ".mustflow/skills/command-pattern/SKILL.md",
21
23
  ".mustflow/skills/composition-over-inheritance/SKILL.md",
22
24
  ".mustflow/skills/contract-sync-check/SKILL.md",
25
+ ".mustflow/skills/cross-platform-filesystem-safety/SKILL.md",
23
26
  ".mustflow/skills/date-number-audit/SKILL.md",
24
27
  ".mustflow/skills/database-change-safety/SKILL.md",
25
28
  ".mustflow/skills/dependency-injection/SKILL.md",
@@ -31,6 +34,7 @@ creates = [
31
34
  ".mustflow/skills/test-design-guard/SKILL.md",
32
35
  ".mustflow/skills/test-maintenance/SKILL.md",
33
36
  ".mustflow/skills/vertical-slice-tdd/SKILL.md",
37
+ ".mustflow/skills/llm-service-ux-review/SKILL.md",
34
38
  ".mustflow/skills/ui-quality-gate/SKILL.md",
35
39
  ".mustflow/skills/external-prompt-injection-defense/SKILL.md",
36
40
  ".mustflow/skills/external-skill-intake/SKILL.md",
@@ -43,6 +47,7 @@ creates = [
43
47
  ".mustflow/skills/null-object-pattern/SKILL.md",
44
48
  ".mustflow/skills/performance-budget-check/SKILL.md",
45
49
  ".mustflow/skills/pattern-scout/SKILL.md",
50
+ ".mustflow/skills/process-execution-safety/SKILL.md",
46
51
  ".mustflow/skills/repo-improvement-loop/SKILL.md",
47
52
  ".mustflow/skills/structure-discovery-gate/SKILL.md",
48
53
  ".mustflow/skills/readme-authoring/SKILL.md",
@@ -57,6 +62,7 @@ creates = [
57
62
  ".mustflow/skills/project-context-authoring/SKILL.md",
58
63
  ".mustflow/skills/security-privacy-review/SKILL.md",
59
64
  ".mustflow/skills/security-regression-tests/SKILL.md",
65
+ ".mustflow/skills/search-ad-content-authoring/SKILL.md",
60
66
  ".mustflow/skills/skill-authoring/SKILL.md",
61
67
  ".mustflow/skills/visual-review-artifact/SKILL.md",
62
68
  ".mustflow/skills/visual-review-artifact/resources.toml",
@@ -91,6 +97,7 @@ minimal = [
91
97
  "behavior-preserving-refactor",
92
98
  "code-review",
93
99
  "codebase-orientation",
100
+ "command-contract-authoring",
94
101
  "contract-sync-check",
95
102
  "date-number-audit",
96
103
  "database-change-safety",
@@ -117,6 +124,7 @@ patterns = [
117
124
  "behavior-preserving-refactor",
118
125
  "code-review",
119
126
  "codebase-orientation",
127
+ "command-contract-authoring",
120
128
  "command-pattern",
121
129
  "composition-over-inheritance",
122
130
  "contract-sync-check",
@@ -154,9 +162,12 @@ oss = [
154
162
  "behavior-preserving-refactor",
155
163
  "code-review",
156
164
  "codebase-orientation",
165
+ "cli-output-contract-review",
166
+ "command-contract-authoring",
157
167
  "command-pattern",
158
168
  "composition-over-inheritance",
159
169
  "contract-sync-check",
170
+ "cross-platform-filesystem-safety",
160
171
  "date-number-audit",
161
172
  "database-change-safety",
162
173
  "dependency-injection",
@@ -173,6 +184,7 @@ oss = [
173
184
  "migration-safety-check",
174
185
  "null-object-pattern",
175
186
  "pattern-scout",
187
+ "process-execution-safety",
176
188
  "project-context-authoring",
177
189
  "pure-core-imperative-shell",
178
190
  "readme-authoring",
@@ -199,9 +211,11 @@ team = [
199
211
  "behavior-preserving-refactor",
200
212
  "code-review",
201
213
  "codebase-orientation",
214
+ "command-contract-authoring",
202
215
  "command-pattern",
203
216
  "composition-over-inheritance",
204
217
  "contract-sync-check",
218
+ "cross-platform-filesystem-safety",
205
219
  "date-number-audit",
206
220
  "database-change-safety",
207
221
  "dependency-injection",
@@ -215,6 +229,7 @@ team = [
215
229
  "multi-agent-work-coordination",
216
230
  "null-object-pattern",
217
231
  "pattern-scout",
232
+ "process-execution-safety",
218
233
  "pure-core-imperative-shell",
219
234
  "result-option",
220
235
  "requirement-regression-guard",
@@ -234,6 +249,7 @@ product = [
234
249
  "behavior-preserving-refactor",
235
250
  "code-review",
236
251
  "codebase-orientation",
252
+ "command-contract-authoring",
237
253
  "command-pattern",
238
254
  "composition-over-inheritance",
239
255
  "contract-sync-check",
@@ -247,6 +263,7 @@ product = [
247
263
  "facade-pattern",
248
264
  "failure-triage",
249
265
  "instruction-conflict-scope-check",
266
+ "llm-service-ux-review",
250
267
  "null-object-pattern",
251
268
  "pattern-scout",
252
269
  "performance-budget-check",
@@ -255,6 +272,7 @@ product = [
255
272
  "requirement-regression-guard",
256
273
  "repro-first-debug",
257
274
  "security-privacy-review",
275
+ "search-ad-content-authoring",
258
276
  "source-anchor-authoring",
259
277
  "source-freshness-check",
260
278
  "state-machine-pattern",
@@ -274,9 +292,12 @@ library = [
274
292
  "behavior-preserving-refactor",
275
293
  "code-review",
276
294
  "codebase-orientation",
295
+ "cli-output-contract-review",
296
+ "command-contract-authoring",
277
297
  "command-pattern",
278
298
  "composition-over-inheritance",
279
299
  "contract-sync-check",
300
+ "cross-platform-filesystem-safety",
280
301
  "date-number-audit",
281
302
  "database-change-safety",
282
303
  "dependency-injection",
@@ -292,6 +313,7 @@ library = [
292
313
  "migration-safety-check",
293
314
  "null-object-pattern",
294
315
  "pattern-scout",
316
+ "process-execution-safety",
295
317
  "project-context-authoring",
296
318
  "pure-core-imperative-shell",
297
319
  "readme-authoring",
@@ -1,92 +0,0 @@
1
- import { canRunMustflowBuiltinInProcess, isMustflowBinName } from '../../../core/command-classification.js';
2
- import { getPackageVersion } from '../../lib/package-info.js';
3
- import { createBufferedReporter } from './output.js';
4
- /**
5
- * mf:anchor cli.run.builtin-inprocess
6
- * purpose: Dispatch selected mustflow built-in commands without spawning a nested CLI process.
7
- * search: builtin intent, in-process command, nested mf run, run receipt
8
- * invariant: Only commands classified by command-classification can use this path.
9
- * risk: config, state
10
- */
11
- async function runKnownBuiltinCommand(args, reporter, lang) {
12
- const [command, ...commandArgs] = args;
13
- if ((command === '--version' || command === '-v' || command === 'version') && commandArgs.length === 0) {
14
- reporter.stdout(getPackageVersion());
15
- return 0;
16
- }
17
- if (!canRunMustflowBuiltinInProcess(command)) {
18
- return undefined;
19
- }
20
- if (command === 'check') {
21
- return (await import('../check.js')).runCheck(commandArgs, reporter, lang);
22
- }
23
- if (command === 'classify') {
24
- return (await import('../classify.js')).runClassify(commandArgs, reporter, lang);
25
- }
26
- if (command === 'context') {
27
- return (await import('../context.js')).runContext(commandArgs, reporter, lang);
28
- }
29
- if (command === 'doctor') {
30
- return (await import('../doctor.js')).runDoctor(commandArgs, reporter, lang);
31
- }
32
- if (command === 'help') {
33
- return (await import('../help.js')).runHelp(commandArgs, reporter, lang);
34
- }
35
- if (command === 'impact') {
36
- return (await import('../impact.js')).runImpact(commandArgs, reporter, lang);
37
- }
38
- if (command === 'line-endings') {
39
- return (await import('../line-endings.js')).runLineEndings(commandArgs, reporter, lang);
40
- }
41
- if (command === 'map') {
42
- return (await import('../map.js')).runMap(commandArgs, reporter, lang);
43
- }
44
- if (command === 'status') {
45
- return (await import('../status.js')).runStatus(commandArgs, reporter, lang);
46
- }
47
- if (command === 'update') {
48
- return (await import('../update.js')).runUpdate(commandArgs, reporter, lang);
49
- }
50
- if (command === 'version-sources') {
51
- return (await import('../version-sources.js')).runVersionSources(commandArgs, reporter, lang);
52
- }
53
- return undefined;
54
- }
55
- async function withWorkingDirectory(cwd, callback) {
56
- const previousCwd = process.cwd();
57
- process.chdir(cwd);
58
- try {
59
- return await callback();
60
- }
61
- finally {
62
- process.chdir(previousCwd);
63
- }
64
- }
65
- export async function runBuiltinArgvInProcess(commandArgv, cwd, lang) {
66
- const [command = '', ...builtinArgs] = commandArgv;
67
- if (!isMustflowBinName(command)) {
68
- return undefined;
69
- }
70
- const output = createBufferedReporter();
71
- try {
72
- const status = await withWorkingDirectory(cwd, () => runKnownBuiltinCommand(builtinArgs, output.reporter, lang));
73
- if (status === undefined) {
74
- return undefined;
75
- }
76
- return {
77
- status,
78
- signal: null,
79
- stdout: output.stdout(),
80
- stderr: output.stderr(),
81
- };
82
- }
83
- catch (error) {
84
- const message = error instanceof Error ? error.message : String(error);
85
- return {
86
- status: 1,
87
- signal: null,
88
- stdout: output.stdout(),
89
- stderr: `${output.stderr()}${message}\n`,
90
- };
91
- }
92
- }