toolmenu 0.12.0 → 0.13.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.
Files changed (58) hide show
  1. package/README.md +76 -20
  2. package/dist/args.d.ts +31 -5
  3. package/dist/args.js +91 -14
  4. package/dist/auth.d.ts +4 -2
  5. package/dist/auth.js +53 -17
  6. package/dist/auto.d.ts +70 -6
  7. package/dist/auto.js +248 -17
  8. package/dist/breakdown.d.ts +2 -0
  9. package/dist/breakdown.js +62 -19
  10. package/dist/catalog.d.ts +87 -10
  11. package/dist/catalog.js +415 -58
  12. package/dist/cli.js +80 -170
  13. package/dist/config.d.ts +5 -1
  14. package/dist/config.js +14 -0
  15. package/dist/connect.d.ts +4 -0
  16. package/dist/connect.js +132 -11
  17. package/dist/diff.d.ts +23 -1
  18. package/dist/diff.js +526 -114
  19. package/dist/difference.d.ts +2 -0
  20. package/dist/difference.js +13 -12
  21. package/dist/explain.d.ts +103 -0
  22. package/dist/explain.js +434 -0
  23. package/dist/failures.d.ts +9 -0
  24. package/dist/failures.js +17 -0
  25. package/dist/help.d.ts +9 -0
  26. package/dist/help.js +198 -0
  27. package/dist/history.d.ts +13 -0
  28. package/dist/history.js +86 -6
  29. package/dist/init.d.ts +92 -2
  30. package/dist/init.js +507 -20
  31. package/dist/menu.js +10 -2
  32. package/dist/options.d.ts +135 -0
  33. package/dist/options.js +48 -0
  34. package/dist/report.d.ts +1 -1
  35. package/dist/report.js +229 -99
  36. package/dist/rules/description.d.ts +7 -2
  37. package/dist/rules/description.js +85 -42
  38. package/dist/rules/determinism.d.ts +3 -1
  39. package/dist/rules/determinism.js +145 -11
  40. package/dist/rules/ids.d.ts +1 -1
  41. package/dist/rules/ids.js +9 -4
  42. package/dist/rules/index.d.ts +6 -0
  43. package/dist/rules/index.js +12 -4
  44. package/dist/rules/naming.d.ts +1 -1
  45. package/dist/rules/naming.js +66 -19
  46. package/dist/rules/rule.d.ts +18 -0
  47. package/dist/rules/rule.js +25 -1
  48. package/dist/rules/spec.js +33 -9
  49. package/dist/rules/write.d.ts +1 -1
  50. package/dist/rules/write.js +42 -10
  51. package/dist/session.d.ts +18 -8
  52. package/dist/session.js +484 -92
  53. package/dist/snapshot.d.ts +2 -2
  54. package/dist/snapshot.js +17 -2
  55. package/dist/types.d.ts +14 -0
  56. package/dist/words.d.ts +5 -0
  57. package/dist/words.js +14 -0
  58. package/package.json +1 -1
@@ -0,0 +1,135 @@
1
+ export declare const CLI_OPTIONS: {
2
+ readonly out: {
3
+ readonly type: 'string';
4
+ };
5
+ readonly 'no-write': {
6
+ readonly type: 'boolean';
7
+ };
8
+ readonly routes: {
9
+ readonly type: 'string';
10
+ };
11
+ readonly config: {
12
+ readonly type: 'string';
13
+ };
14
+ readonly format: {
15
+ readonly type: 'string';
16
+ };
17
+ readonly json: {
18
+ readonly type: 'boolean';
19
+ };
20
+ readonly 'fail-on': {
21
+ readonly type: 'string';
22
+ };
23
+ readonly header: {
24
+ readonly type: 'string';
25
+ readonly multiple: true;
26
+ };
27
+ readonly env: {
28
+ readonly type: 'string';
29
+ readonly multiple: true;
30
+ };
31
+ readonly timeout: {
32
+ readonly type: 'string';
33
+ };
34
+ readonly 'no-auth': {
35
+ readonly type: 'boolean';
36
+ };
37
+ readonly port: {
38
+ readonly type: 'string';
39
+ };
40
+ readonly scope: {
41
+ readonly type: 'string';
42
+ };
43
+ readonly 'client-id': {
44
+ readonly type: 'string';
45
+ };
46
+ readonly 'client-secret': {
47
+ readonly type: 'string';
48
+ };
49
+ readonly processes: {
50
+ readonly type: 'string';
51
+ };
52
+ readonly versions: {
53
+ readonly type: 'string';
54
+ };
55
+ readonly release: {
56
+ readonly type: 'string';
57
+ };
58
+ readonly 'server-version-is-release': {
59
+ readonly type: 'boolean';
60
+ };
61
+ readonly 'include-prereleases': {
62
+ readonly type: 'boolean';
63
+ };
64
+ readonly arg: {
65
+ readonly type: 'string';
66
+ readonly multiple: true;
67
+ };
68
+ readonly bin: {
69
+ readonly type: 'string';
70
+ };
71
+ readonly cmd: {
72
+ readonly type: 'string';
73
+ };
74
+ readonly 'allow-scripts': {
75
+ readonly type: 'boolean';
76
+ };
77
+ readonly 'install-timeout': {
78
+ readonly type: 'string';
79
+ };
80
+ readonly csv: {
81
+ readonly type: 'string';
82
+ };
83
+ readonly 'keep-installs': {
84
+ readonly type: 'boolean';
85
+ };
86
+ readonly scenario: {
87
+ readonly type: 'string';
88
+ };
89
+ readonly plan: {
90
+ readonly type: 'boolean';
91
+ };
92
+ readonly init: {
93
+ readonly type: 'boolean';
94
+ };
95
+ readonly 'union-out': {
96
+ readonly type: 'string';
97
+ };
98
+ readonly auto: {
99
+ readonly type: 'boolean';
100
+ };
101
+ readonly 'with-session': {
102
+ readonly type: 'boolean';
103
+ };
104
+ readonly catalog: {
105
+ readonly type: 'boolean';
106
+ };
107
+ readonly 'open-world': {
108
+ readonly type: 'boolean';
109
+ };
110
+ readonly 'max-calls': {
111
+ readonly type: 'string';
112
+ };
113
+ readonly 'save-scenario': {
114
+ readonly type: 'string';
115
+ };
116
+ readonly value: {
117
+ readonly type: 'string';
118
+ readonly multiple: true;
119
+ };
120
+ readonly 'values-file': {
121
+ readonly type: 'string';
122
+ };
123
+ readonly 'assume-read-only': {
124
+ readonly type: 'string';
125
+ readonly multiple: true;
126
+ };
127
+ readonly help: {
128
+ readonly type: 'boolean';
129
+ readonly short: 'h';
130
+ };
131
+ readonly version: {
132
+ readonly type: 'boolean';
133
+ readonly short: 'v';
134
+ };
135
+ };
@@ -0,0 +1,48 @@
1
+ /*
2
+ * The options parseArgs accepts, for every command. Kept apart from cli.ts (which runs on
3
+ * import) so the tests can check that help.ts names exactly these.
4
+ */
5
+ export const CLI_OPTIONS = {
6
+ out: { type: 'string' },
7
+ 'no-write': { type: 'boolean' },
8
+ routes: { type: 'string' },
9
+ config: { type: 'string' },
10
+ format: { type: 'string' },
11
+ json: { type: 'boolean' },
12
+ 'fail-on': { type: 'string' },
13
+ header: { type: 'string', multiple: true },
14
+ env: { type: 'string', multiple: true },
15
+ timeout: { type: 'string' },
16
+ 'no-auth': { type: 'boolean' },
17
+ port: { type: 'string' },
18
+ scope: { type: 'string' },
19
+ 'client-id': { type: 'string' },
20
+ 'client-secret': { type: 'string' },
21
+ processes: { type: 'string' },
22
+ versions: { type: 'string' },
23
+ release: { type: 'string' },
24
+ 'server-version-is-release': { type: 'boolean' },
25
+ 'include-prereleases': { type: 'boolean' },
26
+ arg: { type: 'string', multiple: true },
27
+ bin: { type: 'string' },
28
+ cmd: { type: 'string' },
29
+ 'allow-scripts': { type: 'boolean' },
30
+ 'install-timeout': { type: 'string' },
31
+ csv: { type: 'string' },
32
+ 'keep-installs': { type: 'boolean' },
33
+ scenario: { type: 'string' },
34
+ plan: { type: 'boolean' },
35
+ init: { type: 'boolean' },
36
+ 'union-out': { type: 'string' },
37
+ auto: { type: 'boolean' },
38
+ 'with-session': { type: 'boolean' },
39
+ catalog: { type: 'boolean' },
40
+ 'open-world': { type: 'boolean' },
41
+ 'max-calls': { type: 'string' },
42
+ 'save-scenario': { type: 'string' },
43
+ value: { type: 'string', multiple: true },
44
+ 'values-file': { type: 'string' },
45
+ 'assume-read-only': { type: 'string', multiple: true },
46
+ help: { type: 'boolean', short: 'h' },
47
+ version: { type: 'boolean', short: 'v' },
48
+ };
package/dist/report.d.ts CHANGED
@@ -6,6 +6,6 @@ export type Format = 'text' | 'json' | 'github' | 'markdown';
6
6
  export declare function counts(findings: Finding[]): Record<Severity, number>;
7
7
  export declare function formatSnapshot(menu: Menu, findings: Finding[], format: Format, outPath?: string): string;
8
8
  export declare function formatDiff(d: DiffResult, beforeTools: number, afterTools: number, format: Format): string;
9
- export declare function formatHistory(h: HistoryResult, format: Format, outDir: string): string;
9
+ export declare function formatHistory(h: HistoryResult, format: Format, outDir: string, csvPath?: string): string;
10
10
  export declare function formatSession(s: SessionResult, format: Format): string;
11
11
  export declare function formatPlan(scenario: Scenario, name: string): string;