@ariestools/toolchain 9.0.0 → 9.0.1
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/README.md +94 -0
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/actions/package-lint-pnpm.d.ts +8 -1
- package/dist/actions/package-lint-pnpm.d.ts.map +1 -1
- package/dist/actions/package-lint.d.ts +16 -1
- package/dist/actions/package-lint.d.ts.map +1 -1
- package/dist/actions/packman/lint.d.ts.map +1 -1
- package/dist/actions/ruleCatalog.d.ts +4 -1
- package/dist/actions/ruleCatalog.d.ts.map +1 -1
- package/dist/actions/ruleRunner.d.ts +2 -1
- package/dist/actions/ruleRunner.d.ts.map +1 -1
- package/dist/actions/secure/dependabot.d.ts +22 -0
- package/dist/actions/secure/dependabot.d.ts.map +1 -0
- package/dist/actions/secure/dependabotRules.d.ts +9 -0
- package/dist/actions/secure/dependabotRules.d.ts.map +1 -0
- package/dist/actions/secure/deps.d.ts +18 -0
- package/dist/actions/secure/deps.d.ts.map +1 -0
- package/dist/actions/secure/index.d.ts +5 -0
- package/dist/actions/secure/index.d.ts.map +1 -0
- package/dist/actions/secure/secure.d.ts +16 -0
- package/dist/actions/secure/secure.d.ts.map +1 -0
- package/dist/actions/work/github.d.ts +3 -8
- package/dist/actions/work/github.d.ts.map +1 -1
- package/dist/bin/package/build.mjs +444 -418
- package/dist/bin/package/build.mjs.map +1 -1
- package/dist/bin/package/clean.mjs +36 -30
- package/dist/bin/package/clean.mjs.map +1 -1
- package/dist/bin/package/compile.mjs +28 -28
- package/dist/bin/package/compile.mjs.map +1 -1
- package/dist/bin/package/publint.mjs +395 -369
- package/dist/bin/package/publint.mjs.map +1 -1
- package/dist/bin/package/recompile.mjs +36 -30
- package/dist/bin/package/recompile.mjs.map +1 -1
- package/dist/bin/package/sync-layout.mjs +28 -28
- package/dist/bin/package/sync-layout.mjs.map +1 -1
- package/dist/bin/xy.mjs +1258 -725
- package/dist/bin/xy.mjs.map +1 -1
- package/dist/lib/github/index.d.ts +2 -0
- package/dist/lib/github/index.d.ts.map +1 -0
- package/dist/lib/github/runner.d.ts +25 -0
- package/dist/lib/github/runner.d.ts.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ruleCommandRegistry.d.ts +17 -2
- package/dist/lib/ruleCommandRegistry.d.ts.map +1 -1
- package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts +12 -0
- package/dist/lib/secure/dependabot/fetchDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/index.d.ts +6 -0
- package/dist/lib/secure/dependabot/index.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/interfaces.d.ts +49 -0
- package/dist/lib/secure/dependabot/interfaces.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts +4 -0
- package/dist/lib/secure/dependabot/renderDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts +5 -0
- package/dist/lib/secure/dependabot/summarizeDependabotAlerts.d.ts.map +1 -0
- package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts +21 -0
- package/dist/lib/secure/dependabot/vulnerabilityAlerts.d.ts.map +1 -0
- package/dist/lib/secure/index.d.ts +1 -0
- package/dist/lib/secure/index.d.ts.map +1 -1
- package/dist/lib/secure/renderSecurityAudit.d.ts +4 -0
- package/dist/lib/secure/renderSecurityAudit.d.ts.map +1 -1
- package/dist/xy/common/secure/dependabotCommand.d.ts +3 -0
- package/dist/xy/common/secure/dependabotCommand.d.ts.map +1 -0
- package/dist/xy/common/secure/depsCommand.d.ts +3 -0
- package/dist/xy/common/secure/depsCommand.d.ts.map +1 -0
- package/dist/xy/common/secure/index.d.ts +5 -0
- package/dist/xy/common/secure/index.d.ts.map +1 -0
- package/dist/xy/install/cleanCommand.d.ts.map +1 -1
- package/dist/xy/xy.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -60,6 +60,100 @@ Useful flags:
|
|
|
60
60
|
| `--skip-install` / `--skip-git` | Skip post-scaffold steps |
|
|
61
61
|
| `-y` / `--yes` | Accept wizard defaults (project name still required) |
|
|
62
62
|
|
|
63
|
+
## Security (`xy secure`)
|
|
64
|
+
|
|
65
|
+
`xy secure` is an overview: it runs both audits, prints one summary line each, and points at the subcommands for detail.
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
pnpm xy secure # summary of both
|
|
69
|
+
pnpm xy secure deps # direct dependency age + weekly downloads
|
|
70
|
+
pnpm xy secure dependabot # GitHub Dependabot security alerts
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
`xy secure deps` is the dependency-hygiene audit (age, download volume) — it does not look at CVEs.
|
|
74
|
+
|
|
75
|
+
`xy secure dependabot` reads GitHub's Dependabot alerts through the `gh` CLI, so it needs `gh` installed and authenticated; the standard `repo` scope is enough. Alerts are enabled per repository, and a repo with the feature switched off is reported as such rather than treated as an error.
|
|
76
|
+
|
|
77
|
+
| Flag | Behavior |
|
|
78
|
+
|---|---|
|
|
79
|
+
| `--org <name>` | Report every repository in a GitHub org instead of the current repo |
|
|
80
|
+
| `--scope` | `all` (default) / `runtime` / `development` |
|
|
81
|
+
| `--relationship` | `all` (default) / `direct` / `transitive` |
|
|
82
|
+
| `--state` | `open` (default) / `fixed` / `dismissed` / `all` |
|
|
83
|
+
| `--summary` | Summary line and counts only, no per-alert table |
|
|
84
|
+
| `--rules` | List the dependabot rules and their effective levels |
|
|
85
|
+
|
|
86
|
+
Findings map onto the rule system, one rule per severity plus a check that alerts are switched on at all. Because alerts are overwhelmingly transitive lockfile findings, nothing fails a build by default — `critical` and `high` warn, `medium` and `low` are off. Raise them to gate:
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
const config: XyConfig = {
|
|
90
|
+
commands: {
|
|
91
|
+
dependabot: {
|
|
92
|
+
rules: {
|
|
93
|
+
'dependabot.critical': 'error',
|
|
94
|
+
'dependabot.medium': 'warn',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Console output caps at 50 alerts with a count of what was held back; `--json` always carries every finding.
|
|
102
|
+
|
|
103
|
+
### Enforcing that alerts are on
|
|
104
|
+
|
|
105
|
+
Alerts are only useful where the feature is switched on, so `xy repo lint` carries a companion policy rule:
|
|
106
|
+
|
|
107
|
+
```sh
|
|
108
|
+
pnpm xy repo lint # warns: Dependabot alerts are disabled for this repository
|
|
109
|
+
pnpm xy repo lint --fix # turns them on
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`repo.dependabot-enabled` warns by default and is fixable. The fix needs admin on the repository; without it the rule reports the finding as still open rather than claiming a fix it did not make. The check costs one `gh` subprocess and stays silent when `gh` is missing, unauthenticated, or the remote is not GitHub — an environment it cannot ask about is not a repository finding.
|
|
113
|
+
|
|
114
|
+
## Rules (`xy --rules`)
|
|
115
|
+
|
|
116
|
+
Every rule the toolchain enforces has a namespaced id, a level (`error` / `warn` / `off`), and a config entry at `commands.<command>.rules["<id>"]` in `xy.config.ts`. To list them:
|
|
117
|
+
|
|
118
|
+
```sh
|
|
119
|
+
# every xy-native rule, grouped by command
|
|
120
|
+
pnpm xy --rules
|
|
121
|
+
|
|
122
|
+
# machine-readable
|
|
123
|
+
pnpm xy --rules --json
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Add `--rules` to any individual command to see just that command's rules and the levels currently in effect for this repo:
|
|
127
|
+
|
|
128
|
+
```sh
|
|
129
|
+
pnpm xy deplint --rules
|
|
130
|
+
pnpm xy publint --rules
|
|
131
|
+
pnpm xy repo lint --rules
|
|
132
|
+
pnpm xy clean --rules
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
The `Level` column shows the default; when a repo overrides it, the effective level follows in parentheses (`warn (error)`). `Fix` marks rules that `--fix` can resolve.
|
|
136
|
+
|
|
137
|
+
`pnpm xy --rules` deliberately omits the ~600 upstream ESLint rules — list those separately with `pnpm xy lint --rules`. It also omits the aggregate `xy check` and `xy fix` views, which re-list rules already shown under their owning command; `pnpm xy check --rules` and `pnpm xy fix --rules` show what those commands run.
|
|
138
|
+
|
|
139
|
+
Rule levels accept several config forms:
|
|
140
|
+
|
|
141
|
+
```ts
|
|
142
|
+
const config: XyConfig = {
|
|
143
|
+
commands: {
|
|
144
|
+
repoLint: {
|
|
145
|
+
rules: {
|
|
146
|
+
'repo.spec-layout': 'off',
|
|
147
|
+
'repo.pnpm-no-overrides': 'error',
|
|
148
|
+
'repo.engines-lts': { enabled: false },
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
An unknown rule id is a hard error rather than a silent no-op, so a typo surfaces immediately.
|
|
156
|
+
|
|
63
157
|
## Extending `package-compile` / `package-build` / `package-recompile`
|
|
64
158
|
|
|
65
159
|
To add steps to a per-package build phase, override the matching script in your package's `package.json` and chain to the toolchain default via the matching `-only` bin:
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export * from './result.ts';
|
|
|
42
42
|
export * from './retest.ts';
|
|
43
43
|
export * from './ruleCatalog.ts';
|
|
44
44
|
export { defaultRuleReporter, type RuleCheckContext, type RuleCheckDefinition, type RuleCheckDiagnostic, type RuleCheckOutcome, type RuleRunDiagnostic, type RuleRunnerConfig, type RuleRunnerReporter, type RuleRunReport, type RuleRunResult, runRuleChecks, type RunRuleChecksParams, } from './ruleRunner.ts';
|
|
45
|
-
export * from './secure.ts';
|
|
45
|
+
export * from './secure/index.ts';
|
|
46
46
|
export * from './sitemap.ts';
|
|
47
47
|
export * from './skills/index.ts';
|
|
48
48
|
export * from './sonar.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"m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,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAA;AACxB,cAAc,mBAAmB,CAAA;AACjC,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,yBAAyB,CAAA;AACvC,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA"}
|
|
@@ -7,5 +7,12 @@ export declare function checkPnpmReleaseAgeExcludes(cwd: string, pm: PackageMana
|
|
|
7
7
|
export declare function checkPnpmDependencyOverrides(cwd: string, pm: PackageManagerName, rootPkg: Record<string, unknown>): LintResult;
|
|
8
8
|
export declare function checkPnpmMinimumReleaseAge(cwd: string, pm: PackageManagerName): LintResult;
|
|
9
9
|
export declare function fixPnpmMinimumReleaseAge(cwd: string): void;
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
Rewrites `minimumReleaseAgeExclude` through the YAML document model rather than
|
|
12
|
+
by splicing lines. Scoped patterns start with `@`, a YAML reserved indicator, so
|
|
13
|
+
a hand-built ` - @scope/*` line is not valid YAML — the serializer quotes them.
|
|
14
|
+
|
|
15
|
+
Returns whether the file was updated.
|
|
16
|
+
*/
|
|
17
|
+
export declare function fixPnpmReleaseAgeExcludes(cwd: string, workspaces?: readonly Workspace[], configuredPatterns?: readonly string[]): boolean;
|
|
11
18
|
//# sourceMappingURL=package-lint-pnpm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-lint-pnpm.d.ts","sourceRoot":"","sources":["../../src/actions/package-lint-pnpm.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAG5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAgBnD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAQvF;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAWxE;AAYD,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,kBAAkB,EACtB,UAAU,GAAE,SAAS,SAAS,EAAO,GACpC,UAAU,CAmBZ;AAqCD,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,UAAU,CAuB9H;AAMD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAS1F;AAqBD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ1D;AAED,wBAAgB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"package-lint-pnpm.d.ts","sourceRoot":"","sources":["../../src/actions/package-lint-pnpm.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAG5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAgBnD,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAQvF;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAWxE;AAYD,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,EAAE,EAAE,kBAAkB,EACtB,UAAU,GAAE,SAAS,SAAS,EAAO,GACpC,UAAU,CAmBZ;AAqCD,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,UAAU,CAuB9H;AAMD,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,kBAAkB,GAAG,UAAU,CAS1F;AAqBD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAQ1D;AAED;;;;;;EAME;AACF,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,UAAU,GAAE,SAAS,SAAS,EAAO,EACrC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,GACrC,OAAO,CA8CT"}
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
+
import type { GithubRunner } from '../lib/index.ts';
|
|
2
|
+
import type { PackageManagerName, Workspace } from '../pm/index.ts';
|
|
1
3
|
import type { ActionOutcome } from './result.ts';
|
|
4
|
+
import type { RuleCheckDefinition } from './ruleRunner.ts';
|
|
2
5
|
export interface LintResult {
|
|
3
6
|
errors: string[];
|
|
4
7
|
fixable: string[];
|
|
5
8
|
warnings: string[];
|
|
6
9
|
}
|
|
7
|
-
export
|
|
10
|
+
export interface RepoLintContext {
|
|
11
|
+
cwd: string;
|
|
12
|
+
/** Injectable for tests; rules that talk to GitHub go through this. */
|
|
13
|
+
githubRunner?: GithubRunner;
|
|
14
|
+
pkg: Record<string, unknown>;
|
|
15
|
+
pm: PackageManagerName;
|
|
16
|
+
workspaces: Workspace[];
|
|
17
|
+
}
|
|
18
|
+
export declare const REPO_LINT_RULES: RuleCheckDefinition<RepoLintContext>[];
|
|
19
|
+
export interface PackageLintMonorepoOptions {
|
|
20
|
+
githubRunner?: GithubRunner;
|
|
21
|
+
}
|
|
22
|
+
export declare function packageLintMonorepo(shouldFix?: boolean, options?: PackageLintMonorepoOptions): Promise<ActionOutcome>;
|
|
8
23
|
//# sourceMappingURL=package-lint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-lint.d.ts","sourceRoot":"","sources":["../../src/actions/package-lint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"package-lint.d.ts","sourceRoot":"","sources":["../../src/actions/package-lint.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAUnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AA6BnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,iBAAiB,CAAA;AAGxB,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAsMD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAA;IACX,uEAAuE;IACvE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC5B,EAAE,EAAE,kBAAkB,CAAA;IACtB,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB;AA8DD,eAAO,MAAM,eAAe,EAAE,mBAAmB,CAAC,eAAe,CAAC,EA8IjE,CAAA;AAiCD,MAAM,WAAW,0BAA0B;IACzC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,wBAAsB,mBAAmB,CACvC,SAAS,UAAQ,EACjB,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,aAAa,CAAC,CA4CxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/actions/packman/lint.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/actions/packman/lint.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,mBAAmB,CAAA;AAQ3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAqB,MAAM,kBAAkB,CAAA;AAG9E,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,UAAU,qBAAqB;IAC7B,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAA;IACtC,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,UAAU,kBAAkB;IAC1B,MAAM,EAAE,qBAAqB,CAAA;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,EAAE,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;CAC5C;AA+QD,eAAO,MAAM,aAAa,EAAE,mBAAmB,CAAC,kBAAkB,CAAC,EA6DlE,CAAA;AAQD,wBAAsB,WAAW,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,GAAE,iBAAsB,GAAG,OAAO,CAAC,aAAa,CAAC,CAoCpG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RuleCommandKey } from '../lib/index.ts';
|
|
1
2
|
import { type RuleCatalogEntry } from './ruleCatalogRender.ts';
|
|
2
3
|
export { renderRuleCatalog, type RuleCatalogEntry, ruleCatalogResult, sortRules, } from './ruleCatalogRender.ts';
|
|
3
4
|
export { isRuleLevel, parseRuleLevelSetting } from './ruleRunner.ts';
|
|
@@ -7,6 +8,7 @@ export declare function getDeadRuleCatalog(pkg?: string, options?: {
|
|
|
7
8
|
}): Promise<RuleCatalogEntry[]>;
|
|
8
9
|
export declare function getPublintRuleCatalog(command?: "publint", pkg?: string): Promise<RuleCatalogEntry[]>;
|
|
9
10
|
export declare function getApiExposureRuleCatalog(pkg?: string): Promise<RuleCatalogEntry[]>;
|
|
11
|
+
export declare function getDependabotRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
10
12
|
export declare function getGitlintRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
11
13
|
export declare function getPackmanRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
12
14
|
export declare function getRepoLintRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
@@ -17,8 +19,9 @@ export declare function getSkillsLintRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
|
17
19
|
export declare function getWorkLintRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
18
20
|
export declare function getEslintRuleCatalog(command?: "lint"): Promise<RuleCatalogEntry[]>;
|
|
19
21
|
export declare function getCycleRuleCatalog(depth?: number): RuleCatalogEntry[];
|
|
20
|
-
export declare function getDirectRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
21
22
|
export declare function getCheckRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
22
23
|
export declare function getFixRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
24
|
+
export declare function rootRuleCommandKeys(): RuleCommandKey[];
|
|
25
|
+
export declare function getDirectRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
23
26
|
export declare function getMasterRuleCatalog(): Promise<RuleCatalogEntry[]>;
|
|
24
27
|
//# sourceMappingURL=ruleCatalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleCatalog.d.ts","sourceRoot":"","sources":["../../src/actions/ruleCatalog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ruleCatalog.d.ts","sourceRoot":"","sources":["../../src/actions/ruleCatalog.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAmCrD,OAAO,EACL,KAAK,gBAAgB,EAEtB,MAAM,wBAAwB,CAAA;AAM/B,OAAO,EACL,iBAAiB,EACjB,KAAK,gBAAgB,EACrB,iBAAiB,EACjB,SAAS,GACV,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AA4DpE,wBAAsB,qBAAqB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAiBrF;AAED,wBAAsB,kBAAkB,CAAC,GAAG,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAgBtH;AAED,wBAAsB,qBAAqB,CAAC,OAAO,YAAgC,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAW9H;AAED,wBAAsB,yBAAyB,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAezF;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAO5E;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAEzE;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAEzE;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAE1E;AAED,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAE3D,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAE1E;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAE1E;AAED,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAE5E;AAED,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAO1E;AAoED,wBAAsB,oBAAoB,CAAC,OAAO,SAA6B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAoB5G;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAK,GAAG,gBAAgB,EAAE,CASlE;AAED,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAUvE;AAED,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAUrE;AA4BD,wBAAgB,mBAAmB,IAAI,cAAc,EAAE,CAEtD;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAGxE;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAExE"}
|
|
@@ -7,7 +7,8 @@ export interface RuleRunnerConfig {
|
|
|
7
7
|
export interface RuleCheckContext {
|
|
8
8
|
fix: boolean;
|
|
9
9
|
isExplicit: boolean;
|
|
10
|
-
|
|
10
|
+
/** Never `off` — `runRuleChecks` skips disabled rules before calling `check`. */
|
|
11
|
+
level: Exclude<RuleLevel, 'off'>;
|
|
11
12
|
}
|
|
12
13
|
export interface RuleCheckDiagnostic extends XyJsonDiagnostic {
|
|
13
14
|
level?: Exclude<RuleLevel, 'off'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ruleRunner.d.ts","sourceRoot":"","sources":["../../src/actions/ruleRunner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAGvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAK/C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,EAAE,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"ruleRunner.d.ts","sourceRoot":"","sources":["../../src/actions/ruleRunner.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAGvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAK/C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;IACnB,iFAAiF;IACjF,KAAK,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAA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AAC,QAAQ,CAAC,KAAK,IAAI,CAAA;CACvD;AAED,MAAM,WAAW,mBAAmB,CAAC,QAAQ,GAAG,IAAI;IAClD,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,QAAQ,CAAA;IACjB,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,QAAQ,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IACvC,KAAK,EAAE,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAA;IACtC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,GAAG,SAAS,CAwB5G;AA0FD,wBAAgB,mBAAmB,CAAC,QAAQ,GAAG,OAAO,KAAK,kBAAkB,CAAC,QAAQ,CAAC,CActF;AAoBD,wBAAsB,aAAa,CAAC,QAAQ,GAAG,IAAI,EAAE,EACnD,WAAW,EACX,SAAuB,EACvB,MAAM,EACN,OAAO,EACP,GAAW,EACX,QAAQ,EACR,KAAK,EACL,MAAuB,GACxB,EAAE,mBAAmB,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBxD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DependabotFilter, DependabotReport, DependabotSummary, GithubRunner } from '../../lib/index.ts';
|
|
2
|
+
import type { RuleRunResult } from '../ruleRunner.ts';
|
|
3
|
+
export interface DependabotOptions extends DependabotFilter {
|
|
4
|
+
cwd?: string;
|
|
5
|
+
org?: string;
|
|
6
|
+
runner?: GithubRunner;
|
|
7
|
+
state?: 'all' | 'dismissed' | 'fixed' | 'open';
|
|
8
|
+
strict?: boolean;
|
|
9
|
+
/** Suppress the per-alert table; the summary line still prints. */
|
|
10
|
+
summaryOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface DependabotCollectResult {
|
|
13
|
+
report: DependabotReport;
|
|
14
|
+
summary: DependabotSummary;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
Fetch and filter alerts without rendering — used by `xy secure` to build its
|
|
18
|
+
per-tool summary, and by `xy secure dependabot` before rule evaluation.
|
|
19
|
+
*/
|
|
20
|
+
export declare function collectDependabotAlerts(options?: DependabotOptions): DependabotCollectResult;
|
|
21
|
+
export declare function dependabot(options?: DependabotOptions): Promise<RuleRunResult>;
|
|
22
|
+
//# sourceMappingURL=dependabot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependabot.d.ts","sourceRoot":"","sources":["../../../src/actions/secure/dependabot.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACb,MAAM,oBAAoB,CAAA;AAW3B,OAAO,KAAK,EAAqB,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAKxE,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,KAAK,CAAC,EAAE,KAAK,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,CAAA;IAC9C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,mEAAmE;IACnE,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,gBAAgB,CAAA;IACxB,OAAO,EAAE,iBAAiB,CAAA;CAC3B;AAED;;;EAGE;AACF,wBAAgB,uBAAuB,CAAC,OAAO,GAAE,iBAAsB,GAAG,uBAAuB,CAgBhG;AAkCD,wBAAsB,UAAU,CAAC,OAAO,GAAE,iBAAsB,GAAG,OAAO,CAAC,aAAa,CAAC,CA0CxF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DependabotAlert, DependabotAvailability } from '../../lib/index.ts';
|
|
2
|
+
import type { RuleCheckDefinition } from '../ruleRunner.ts';
|
|
3
|
+
export interface DependabotRuleContext {
|
|
4
|
+
alerts: DependabotAlert[];
|
|
5
|
+
availability: DependabotAvailability;
|
|
6
|
+
target: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DEPENDABOT_RULES: RuleCheckDefinition<DependabotRuleContext>[];
|
|
9
|
+
//# sourceMappingURL=dependabotRules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependabotRules.d.ts","sourceRoot":"","sources":["../../../src/actions/secure/dependabotRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EAEvB,MAAM,oBAAoB,CAAA;AAG3B,OAAO,KAAK,EAAE,mBAAmB,EAAuB,MAAM,kBAAkB,CAAA;AAEhF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,eAAe,EAAE,CAAA;IACzB,YAAY,EAAE,sBAAsB,CAAA;IACpC,MAAM,EAAE,MAAM,CAAA;CACf;AAoCD,eAAO,MAAM,gBAAgB,EAAE,mBAAmB,CAAC,qBAAqB,CAAC,EAgBxE,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SecureAuditRow } from '../../lib/index.ts';
|
|
2
|
+
export interface SecureDepsOptions {
|
|
3
|
+
jobs?: number;
|
|
4
|
+
pkg?: string;
|
|
5
|
+
/** Skip the per-dependency table; callers render their own summary. */
|
|
6
|
+
render?: (rows: SecureAuditRow[]) => void;
|
|
7
|
+
verbose?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const secureDeps: ({ jobs, pkg, render, verbose, }?: SecureDepsOptions) => Promise<number>;
|
|
10
|
+
/**
|
|
11
|
+
Run the dependency audit purely to collect its rows — used by `xy secure` to
|
|
12
|
+
build a summary without printing the full table.
|
|
13
|
+
*/
|
|
14
|
+
export declare const collectSecureDepsRows: (options?: Omit<SecureDepsOptions, 'render'>) => Promise<{
|
|
15
|
+
exitCode: number;
|
|
16
|
+
rows: SecureAuditRow[];
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=deps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../../src/actions/secure/deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAIxD,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,uEAAuE;IACvE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,IAAI,CAAA;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,UAAU,qCAKpB,iBAAiB,KAAQ,OAAO,CAAC,MAAM,CAOzC,CAAA;AAED;;;EAGE;AACF,eAAO,MAAM,qBAAqB,aACvB,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,KACzC,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,cAAc,EAAE,CAAA;CAAE,CAStD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/actions/secure/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GithubRunner } from '../../lib/index.ts';
|
|
2
|
+
import type { ActionOutcome } from '../result.ts';
|
|
3
|
+
export interface SecureOptions {
|
|
4
|
+
cwd?: string;
|
|
5
|
+
jobs?: number;
|
|
6
|
+
org?: string;
|
|
7
|
+
pkg?: string;
|
|
8
|
+
runner?: GithubRunner;
|
|
9
|
+
verbose?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
The `xy secure` overview: run both audits, print one summary line each, and
|
|
13
|
+
point at the subcommands for the detail tables.
|
|
14
|
+
*/
|
|
15
|
+
export declare const secure: (options?: SecureOptions) => Promise<ActionOutcome>;
|
|
16
|
+
//# sourceMappingURL=secure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secure.d.ts","sourceRoot":"","sources":["../../../src/actions/secure/secure.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAKjD,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;EAGE;AACF,eAAO,MAAM,MAAM,aAAmB,aAAa,KAAQ,OAAO,CAAC,aAAa,CAoB/E,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GithubRunner, GithubRunnerResult } from '../../lib/index.ts';
|
|
1
2
|
import type { WorkItem, WorkType } from './schema.ts';
|
|
2
3
|
/**
|
|
3
4
|
Label applied to every GitHub issue created by `xy work`.
|
|
@@ -26,14 +27,8 @@ export interface GithubWorkStoreData {
|
|
|
26
27
|
number: number;
|
|
27
28
|
url: string;
|
|
28
29
|
}
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
stderr: string;
|
|
32
|
-
stdout: string;
|
|
33
|
-
}
|
|
34
|
-
export type GithubWorkRunner = (args: readonly string[], options?: {
|
|
35
|
-
cwd?: string;
|
|
36
|
-
}) => GithubWorkRunnerResult;
|
|
30
|
+
export type GithubWorkRunnerResult = GithubRunnerResult;
|
|
31
|
+
export type GithubWorkRunner = GithubRunner;
|
|
37
32
|
export type GithubIssueListState = 'open' | 'closed' | 'all';
|
|
38
33
|
export interface GithubIssueUpdate {
|
|
39
34
|
body?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/actions/work/github.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/actions/work/github.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAI1E,OAAO,KAAK,EACV,QAAQ,EAAc,QAAQ,EAC/B,MAAM,aAAa,CAAA;AAEpB;;EAEE;AACF,eAAO,MAAM,oBAAoB,YAAY,CAAA;AAE7C;;EAEE;AACF,eAAO,MAAM,iCAAiC,kBAAkB,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MA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