@kirill.konshin/lint 0.5.5 → 0.6.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.
Files changed (91) hide show
  1. package/README.md +38 -3
  2. package/commands/spec-author.md +39 -0
  3. package/dist/configs/base.d.ts +4 -3
  4. package/dist/configs/base.js +61 -74
  5. package/dist/configs/imports.d.ts +3 -2
  6. package/dist/configs/imports.js +95 -146
  7. package/dist/configs/nx.d.ts +4 -3
  8. package/dist/configs/nx.js +31 -41
  9. package/dist/configs/prettier.d.ts +3 -2
  10. package/dist/configs/prettier.js +19 -16
  11. package/dist/configs/promise.d.ts +3 -2
  12. package/dist/configs/promise.js +16 -16
  13. package/dist/configs/react.d.ts +4 -3
  14. package/dist/configs/react.js +178 -217
  15. package/dist/configs/storybook.d.ts +4 -3
  16. package/dist/configs/storybook.js +22 -22
  17. package/dist/configs/tailwind.d.ts +4 -3
  18. package/dist/configs/tailwind.js +67 -91
  19. package/dist/configs/testing.d.ts +7 -6
  20. package/dist/configs/testing.js +112 -146
  21. package/dist/configs/turbo.d.ts +4 -3
  22. package/dist/configs/turbo.js +19 -27
  23. package/dist/configs/typescriptTypeAware.d.ts +4 -3
  24. package/dist/configs/typescriptTypeAware.js +99 -95
  25. package/dist/configs/unicorn.d.ts +3 -2
  26. package/dist/configs/unicorn.js +34 -41
  27. package/dist/exts.d.ts +2 -1
  28. package/dist/exts.js +10 -11
  29. package/dist/index.d.ts +44 -42
  30. package/dist/index.js +53 -85
  31. package/dist/lib.d.ts +21 -21
  32. package/dist/lib.js +262 -301
  33. package/dist/lintPrepare.d.ts +20 -17
  34. package/dist/lintPrepare.js +341 -371
  35. package/dist/lintStaged.d.ts +4 -3
  36. package/dist/lintStaged.js +25 -22
  37. package/dist/prettier.d.ts +4 -3
  38. package/dist/prettier.js +16 -17
  39. package/dist/restrictions.d.ts +11 -10
  40. package/dist/restrictions.js +18 -22
  41. package/dist/yarn.cjs +79 -98
  42. package/dist/yarn.d.cts +3 -2
  43. package/package.json +22 -8
  44. package/rules/agent.md +2 -0
  45. package/rules/openspec.md +1 -1
  46. package/skills/spec-steward/SKILL.md +4 -12
  47. package/skills/spec-steward/references/audit.md +18 -43
  48. package/skills/spec-steward/references/contract.md +9 -9
  49. package/skills/spec-steward/references/criteria.md +4 -4
  50. package/skills/spec-steward/references/review-format.md +6 -6
  51. package/skills/spec-steward/references/wiring.md +2 -2
  52. package/skills/spec-steward/references/worker.md +67 -0
  53. package/skills/spec-steward/sweeps.json +49 -0
  54. package/skills/spec-tools/SKILL.md +48 -0
  55. package/skills/spec-tools/references/contract.md +111 -0
  56. package/skills/spec-tools/references/gitlab.md +120 -0
  57. package/skills/spec-tools/scripts/cli.js +8129 -0
  58. package/skills/spec-verify/SKILL.md +153 -0
  59. package/dist/configs/base.d.ts.map +0 -1
  60. package/dist/configs/imports.d.ts.map +0 -1
  61. package/dist/configs/nx.d.ts.map +0 -1
  62. package/dist/configs/prettier.d.ts.map +0 -1
  63. package/dist/configs/promise.d.ts.map +0 -1
  64. package/dist/configs/react.d.ts.map +0 -1
  65. package/dist/configs/storybook.d.ts.map +0 -1
  66. package/dist/configs/tailwind.d.ts.map +0 -1
  67. package/dist/configs/testing.d.ts.map +0 -1
  68. package/dist/configs/turbo.d.ts.map +0 -1
  69. package/dist/configs/typescriptTypeAware.d.ts.map +0 -1
  70. package/dist/configs/unicorn.d.ts.map +0 -1
  71. package/dist/exts.d.ts.map +0 -1
  72. package/dist/index.d.ts.map +0 -1
  73. package/dist/lib.d.ts.map +0 -1
  74. package/dist/lintPrepare.d.ts.map +0 -1
  75. package/dist/lintStaged.d.ts.map +0 -1
  76. package/dist/prettier.d.ts.map +0 -1
  77. package/dist/restrictions.d.ts.map +0 -1
  78. package/dist/yarn.d.cts.map +0 -1
  79. package/skills/spec-steward/scripts/lib/align.mjs +0 -127
  80. package/skills/spec-steward/scripts/lib/checks.mjs +0 -589
  81. package/skills/spec-steward/scripts/lib/citations.mjs +0 -156
  82. package/skills/spec-steward/scripts/lib/corpus.mjs +0 -256
  83. package/skills/spec-steward/scripts/lib/coverage.mjs +0 -123
  84. package/skills/spec-steward/scripts/lib/evidence.mjs +0 -334
  85. package/skills/spec-steward/scripts/lib/git.mjs +0 -138
  86. package/skills/spec-steward/scripts/lib/review.mjs +0 -347
  87. package/skills/spec-steward/scripts/lib/scan.mjs +0 -364
  88. package/skills/spec-steward/scripts/lib/util.mjs +0 -161
  89. package/skills/spec-steward/scripts/lib/wire.mjs +0 -331
  90. package/skills/spec-steward/scripts/steward.mjs +0 -350
  91. package/skills/spec-steward/workflows/audit.js +0 -539
@@ -1,10 +1,10 @@
1
- #!/usr/bin/env node
1
+ //#region src/lintPrepare.d.ts
2
2
  /**
3
3
  * @kirill.konshin/lint
4
4
  *
5
5
  * This script makes `rules`, `commands` and `skills` real directories in the consuming project's
6
6
  * `.agents` (canonical, cross-tool) and `.claude` (Claude Code), and fills them with
7
- * file symlinks only: package rules and skills (every file a skill folder ships, plus the package
7
+ * file symlinks only: package rules, commands and skills (every file a skill folder ships, plus the package
8
8
  * README.md next to its SKILL.md, so a skill can reference `@README.md`) go into both, pointing
9
9
  * straight at the installed package; the user's own files in `.agents` are mirrored into `.claude`. It also
10
10
  * generates an `AGENTS.md` file for other tools, with `CLAUDE.md` symlinked to `AGENTS.md`.
@@ -21,19 +21,19 @@
21
21
  * A rule file. `paths` scopes it: Claude Code loads it only for matching files.
22
22
  */
23
23
  type Rule = {
24
- file: string;
25
- name: string;
26
- description?: string;
27
- paths?: string[];
28
- content: string;
24
+ file: string;
25
+ name: string;
26
+ description?: string;
27
+ paths?: string[];
28
+ content: string;
29
29
  };
30
30
  type Skill = {
31
- name: string;
31
+ name: string;
32
32
  };
33
33
  type ExistingFile = {
34
- exists: boolean;
35
- generated: boolean;
36
- customSection: string | null;
34
+ exists: boolean;
35
+ generated: boolean;
36
+ customSection: string | null;
37
37
  };
38
38
  /**
39
39
  * Read all markdown files from the package rules directory.
@@ -45,11 +45,15 @@ export declare function readRules(): Rule[];
45
45
  */
46
46
  export declare function readSkills(): Skill[];
47
47
  /**
48
- * Package files to link, keyed by their path inside an agent dir: `rules/<file>`, and every file of a skill at its
49
- * own relative path, plus the package README.md next to its `SKILL.md` (unless the skill ships one), so a skill can
50
- * reference `@README.md`.
48
+ * Read the package commands directory: every markdown file is a command named after the file.
51
49
  */
52
- export declare function packageFiles(rules: Rule[], skills: Skill[]): Map<string, string>;
50
+ export declare function readCommands(): string[];
51
+ /**
52
+ * Package files to link, keyed by their path inside an agent dir: `rules/<file>`, `commands/<file>`, and every file
53
+ * of a skill at its own relative path, plus the package README.md next to its `SKILL.md` (unless the skill ships
54
+ * one), so a skill can reference `@README.md`.
55
+ */
56
+ export declare function packageFiles(rules: Rule[], skills: Skill[], commands?: string[]): Map<string, string>;
53
57
  /**
54
58
  * The user's own files in `.agents` `rules`, `commands` and `skills`, keyed like packageFiles() - everything there
55
59
  * except the package links (and dotfiles).
@@ -104,5 +108,4 @@ export declare function checkExisting(targetPath: string): ExistingFile;
104
108
  * Main function
105
109
  */
106
110
  export declare function main(): void;
107
- export {};
108
- //# sourceMappingURL=lintPrepare.d.ts.map
111
+ //#endregion