@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.
- package/README.md +42 -17
- package/bin/nan0release.js +3 -39
- package/knip.json +21 -0
- package/nan0web.nan0 +16 -0
- package/package.json +14 -14
- package/src/README.md.js +19 -21
- package/src/Release/Person.js +1 -1
- package/src/agents/inspectors/git-reviewer.md +35 -0
- package/src/agents/inspectors/package-hygiene.md +63 -0
- package/src/agents/workflows/commit.md +28 -0
- package/src/agents/workflows/npm-release.md +40 -0
- package/src/agents/workflows/release.md +205 -0
- package/src/agents/workflows/zero-tolerance-git.md +21 -0
- package/src/domain/App.js +36 -0
- package/src/domain/BumpCommand.js +137 -0
- package/src/domain/CheckCommand.js +193 -0
- package/src/domain/CloseCommand.js +68 -0
- package/src/domain/DepsCommand.js +104 -0
- package/src/domain/InitCommand.js +57 -0
- package/src/domain/PublishCommand.js +89 -0
- package/src/domain/SpecCommand.js +43 -0
- package/src/domain/StatusCommand.js +25 -0
- package/src/index.js +16 -2
- package/types/Release/Person.d.ts +3 -3
- package/types/Team.d.ts +3 -3
- package/types/commands/CheckCommand.d.ts +24 -0
- package/types/commands/CloseCommand.d.ts +2 -1
- package/types/commands/Command.d.ts +6 -1
- package/types/commands/DepsCommand.d.ts +2 -1
- package/types/commands/InitCommand.d.ts +2 -1
- package/types/commands/PublishCommand.d.ts +2 -1
- package/types/commands/SpecCommand.d.ts +2 -1
- package/types/domain/App.d.ts +17 -0
- package/types/domain/BumpCommand.d.ts +32 -0
- package/types/domain/CheckCommand.d.ts +24 -0
- package/types/domain/CloseCommand.d.ts +17 -0
- package/types/domain/DepsCommand.d.ts +22 -0
- package/types/domain/InitCommand.d.ts +18 -0
- package/types/domain/PublishCommand.d.ts +27 -0
- package/types/domain/SpecCommand.d.ts +17 -0
- package/types/domain/StatusCommand.d.ts +7 -0
- package/types/index.d.ts +8 -0
- package/types/ui/cli/index.d.ts +1 -0
- package/types/utils/runSpawn.d.ts +1 -0
- package/src/Team.js +0 -35
- package/src/cli/index.js +0 -9
- package/src/co/AppCommandOptions.js +0 -25
- package/src/commands/CloseCommand.js +0 -67
- package/src/commands/Command.js +0 -48
- package/src/commands/DepsCommand.js +0 -143
- package/src/commands/InitCommand.js +0 -57
- package/src/commands/PublishCommand.js +0 -105
- package/src/commands/SpecCommand.js +0 -41
- package/src/commands/StatusCommand.js +0 -26
- package/src/db/ReleaseDB.js +0 -54
- package/src/ui/cli/ReleaseCLi.js +0 -52
- package/src/ui/cli/index.js +0 -0
- package/src/utils/runSpawn.js +0 -0
package/src/ui/cli/ReleaseCLi.js
DELETED
|
@@ -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
|
-
}
|
package/src/ui/cli/index.js
DELETED
|
File without changes
|
package/src/utils/runSpawn.js
DELETED
|
File without changes
|