@nan0web/release 1.0.3 → 3.1.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 (58) hide show
  1. package/README.md +42 -17
  2. package/bin/nan0release.js +3 -39
  3. package/knip.json +21 -0
  4. package/nan0web.nan0 +16 -0
  5. package/package.json +14 -14
  6. package/src/README.md.js +19 -21
  7. package/src/Release/Person.js +1 -1
  8. package/src/agents/inspectors/git-reviewer.md +35 -0
  9. package/src/agents/inspectors/package-hygiene.md +63 -0
  10. package/src/agents/workflows/commit.md +28 -0
  11. package/src/agents/workflows/npm-release.md +40 -0
  12. package/src/agents/workflows/release.md +205 -0
  13. package/src/agents/workflows/zero-tolerance-git.md +21 -0
  14. package/src/domain/App.js +36 -0
  15. package/src/domain/BumpCommand.js +137 -0
  16. package/src/domain/CheckCommand.js +193 -0
  17. package/src/domain/CloseCommand.js +68 -0
  18. package/src/domain/DepsCommand.js +104 -0
  19. package/src/domain/InitCommand.js +57 -0
  20. package/src/domain/PublishCommand.js +89 -0
  21. package/src/domain/SpecCommand.js +43 -0
  22. package/src/domain/StatusCommand.js +25 -0
  23. package/src/index.js +16 -2
  24. package/types/Release/Person.d.ts +3 -3
  25. package/types/Team.d.ts +3 -3
  26. package/types/commands/CheckCommand.d.ts +24 -0
  27. package/types/commands/CloseCommand.d.ts +2 -1
  28. package/types/commands/Command.d.ts +6 -1
  29. package/types/commands/DepsCommand.d.ts +2 -1
  30. package/types/commands/InitCommand.d.ts +2 -1
  31. package/types/commands/PublishCommand.d.ts +2 -1
  32. package/types/commands/SpecCommand.d.ts +2 -1
  33. package/types/domain/App.d.ts +17 -0
  34. package/types/domain/BumpCommand.d.ts +32 -0
  35. package/types/domain/CheckCommand.d.ts +24 -0
  36. package/types/domain/CloseCommand.d.ts +17 -0
  37. package/types/domain/DepsCommand.d.ts +22 -0
  38. package/types/domain/InitCommand.d.ts +18 -0
  39. package/types/domain/PublishCommand.d.ts +27 -0
  40. package/types/domain/SpecCommand.d.ts +17 -0
  41. package/types/domain/StatusCommand.d.ts +7 -0
  42. package/types/index.d.ts +8 -0
  43. package/types/ui/cli/index.d.ts +1 -0
  44. package/types/utils/runSpawn.d.ts +1 -0
  45. package/src/Team.js +0 -35
  46. package/src/cli/index.js +0 -9
  47. package/src/co/AppCommandOptions.js +0 -25
  48. package/src/commands/CloseCommand.js +0 -67
  49. package/src/commands/Command.js +0 -48
  50. package/src/commands/DepsCommand.js +0 -143
  51. package/src/commands/InitCommand.js +0 -57
  52. package/src/commands/PublishCommand.js +0 -105
  53. package/src/commands/SpecCommand.js +0 -41
  54. package/src/commands/StatusCommand.js +0 -26
  55. package/src/db/ReleaseDB.js +0 -54
  56. package/src/ui/cli/ReleaseCLi.js +0 -52
  57. package/src/ui/cli/index.js +0 -0
  58. package/src/utils/runSpawn.js +0 -0
@@ -1,52 +0,0 @@
1
- /**
2
- * ReleaseCLI – UI‑CLI driven entry point that registers the
3
- * Message‑based release commands.
4
- *
5
- * Usage (from terminal):
6
- *
7
- * npx nan0release <subcommand> [options] [args]
8
- *
9
- * Subcommands:
10
- * init, deps, publish, seal, host, serve, list, validate, chat
11
- *
12
- * Each subcommand is a Message class exporting a `run` async generator
13
- * that yields {@link OutputMessage}s.
14
- *
15
- * @module release/cli/ReleaseCLI
16
- */
17
- import process from 'node:process'
18
-
19
- import { CLI } from '@nan0web/ui-cli'
20
- import Logger from '@nan0web/log'
21
- import DBFS from '@nan0web/db-fs'
22
- import DepsCommand from '../../commands/DepsCommand.js'
23
- import PublishCommand from '../../commands/PublishCommand.js'
24
- import InitCommand from '../../commands/InitCommand.js'
25
- import SpecCommand from '../../commands/SpecCommand.js'
26
- import CloseCommand from '../../commands/CloseCommand.js'
27
- import StatusCommand from '../../commands/StatusCommand.js'
28
-
29
- class ReleaseCLi extends CLI {
30
- /** @type {DBFS} */
31
- fs
32
- constructor(input) {
33
- super(input)
34
- const { fs } = input
35
- this.fs = fs ?? DBFS.from({})
36
- }
37
- }
38
-
39
- export default function createReleaseCLI(
40
- argv = process.argv.slice(2),
41
- logger = new Logger(),
42
- fs = {},
43
- ) {
44
- const cli = new ReleaseCLi({
45
- argv,
46
- commands: {}, // no map‑based commands
47
- Messages: [InitCommand, DepsCommand, PublishCommand, SpecCommand, CloseCommand, StatusCommand],
48
- logger,
49
- fs: DBFS.from(fs),
50
- })
51
- return cli
52
- }
File without changes
File without changes