@kernelius/forge-cli 0.2.1 → 0.3.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/CHANGELOG.md +47 -0
- package/README.md +49 -0
- package/dist/index.js +549 -217
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,53 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.1] - 2026-02-01
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Organization Repository Creation**: Fixed `--org` parameter in `forge repos create` command
|
|
12
|
+
- Now correctly calls `POST /api/orgs/{slug}/repos` for organization repositories
|
|
13
|
+
- Previously was calling the user repository endpoint for all repos
|
|
14
|
+
- Repositories are now properly created under the specified organization
|
|
15
|
+
|
|
16
|
+
### Examples
|
|
17
|
+
```bash
|
|
18
|
+
# Create repository in organization (now works correctly)
|
|
19
|
+
forge repos create --name patient-records \
|
|
20
|
+
--org acme-hospital \
|
|
21
|
+
--template patient-record \
|
|
22
|
+
--visibility private
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## [0.3.0] - 2026-02-01
|
|
26
|
+
|
|
27
|
+
### Added
|
|
28
|
+
- **Templates Command**: New `forge templates` command for repository template discovery
|
|
29
|
+
- `forge templates list` - Show all available templates grouped by organization type
|
|
30
|
+
- `forge templates list --org-type <type>` - Filter templates by category (healthcare, research, company, education, nonprofit)
|
|
31
|
+
- `forge templates view <id>` - View detailed template information including metadata, naming patterns, and usage examples
|
|
32
|
+
- **Template Validation**: Added client-side validation to `forge repos create --template`
|
|
33
|
+
- Validates template ID exists before making API call
|
|
34
|
+
- Shows helpful error messages with guidance when invalid template specified
|
|
35
|
+
- Displays template name after successful repository creation
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
- Enhanced `forge repos create` command with `--template` option for type-specific repositories
|
|
39
|
+
- Updated documentation with template discovery workflow and comprehensive examples
|
|
40
|
+
|
|
41
|
+
### Examples
|
|
42
|
+
```bash
|
|
43
|
+
# Discover available templates
|
|
44
|
+
forge templates list
|
|
45
|
+
forge templates list --org-type healthcare
|
|
46
|
+
forge templates view patient-record
|
|
47
|
+
|
|
48
|
+
# Create repository with template
|
|
49
|
+
forge repos create --name patient-john-doe \
|
|
50
|
+
--template patient-record \
|
|
51
|
+
--description "Medical records for patient" \
|
|
52
|
+
--visibility private
|
|
53
|
+
```
|
|
54
|
+
|
|
8
55
|
## [0.2.1] - 2026-02-01
|
|
9
56
|
|
|
10
57
|
### Added
|
package/README.md
CHANGED
|
@@ -45,6 +45,19 @@ forge auth config
|
|
|
45
45
|
forge auth logout
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
### Templates
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# List all available templates
|
|
52
|
+
forge templates list
|
|
53
|
+
|
|
54
|
+
# List templates for a specific organization type
|
|
55
|
+
forge templates list --org-type healthcare
|
|
56
|
+
|
|
57
|
+
# View detailed information about a template
|
|
58
|
+
forge templates view patient-record
|
|
59
|
+
```
|
|
60
|
+
|
|
48
61
|
### Repositories
|
|
49
62
|
|
|
50
63
|
```bash
|
|
@@ -59,8 +72,44 @@ forge repos clone @owner/repo [destination]
|
|
|
59
72
|
|
|
60
73
|
# Create a new repository
|
|
61
74
|
forge repos create --name my-repo --visibility private
|
|
75
|
+
|
|
76
|
+
# Create a repository from a template
|
|
77
|
+
forge repos create --name my-patient-repo --template patient-record --visibility private
|
|
62
78
|
```
|
|
63
79
|
|
|
80
|
+
#### Repository Templates
|
|
81
|
+
|
|
82
|
+
When creating repositories, you can use type-specific templates that pre-configure metadata and initialize with relevant files.
|
|
83
|
+
|
|
84
|
+
**Discover templates:**
|
|
85
|
+
```bash
|
|
86
|
+
# See all available templates
|
|
87
|
+
forge templates list
|
|
88
|
+
|
|
89
|
+
# Filter by organization type
|
|
90
|
+
forge templates list --org-type healthcare
|
|
91
|
+
|
|
92
|
+
# View template details
|
|
93
|
+
forge templates view patient-record
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Create with template:**
|
|
97
|
+
```bash
|
|
98
|
+
forge repos create --name patient-john-doe \
|
|
99
|
+
--template patient-record \
|
|
100
|
+
--description "Medical records for patient John Doe" \
|
|
101
|
+
--visibility private
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Available template categories:**
|
|
105
|
+
- **Healthcare** - `patient-record`, `fhir-resource`, `medical-protocol`, `clinical-study`
|
|
106
|
+
- **Research** - `research-dataset`, `research-experiment`, `research-publication`, `research-analysis`
|
|
107
|
+
- **Company** - `code-repository`
|
|
108
|
+
- **Education** - `course-materials`
|
|
109
|
+
- **Nonprofit** - `campaign`
|
|
110
|
+
|
|
111
|
+
Use `forge templates list` to see all templates with descriptions.
|
|
112
|
+
|
|
64
113
|
### Issues
|
|
65
114
|
|
|
66
115
|
```bash
|