code-foundry 0.25.0 → 0.26.0
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/.github/licenses/AGPL-3.0-or-later.txt +661 -0
- package/.github/licenses/GPL-3.0-or-later.txt +674 -0
- package/.github/licenses/MIT.txt +4 -16
- package/.github/scripts/init-repo.sh +6 -2
- package/.github/scripts/sync-template.sh +7 -3
- package/CHANGELOG.md +7 -0
- package/README.md +3 -2
- package/docs/CONFIGURATION.md +1 -1
- package/docs/INITIALIZATION.md +3 -0
- package/package.json +1 -1
package/.github/licenses/MIT.txt
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) <year> <copyright holders>
|
|
4
4
|
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
11
6
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
14
8
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -17,7 +17,7 @@ bootstrap=true
|
|
|
17
17
|
release_type="${REPO_FOUNDRY_RELEASE_TYPE:-auto}"
|
|
18
18
|
npm_publish="${REPO_FOUNDRY_NPM_PUBLISH:-false}"
|
|
19
19
|
prune_standard="${REPO_FOUNDRY_PRUNE_STANDARD:-false}"
|
|
20
|
-
license="${REPO_FOUNDRY_LICENSE:-
|
|
20
|
+
license="${REPO_FOUNDRY_LICENSE:-gpl-3.0-or-later}"
|
|
21
21
|
license_file="${REPO_FOUNDRY_LICENSE_FILE:-}"
|
|
22
22
|
runner="${REPO_FOUNDRY_RUNNER:-ubuntu-latest}"
|
|
23
23
|
unit_runner="${REPO_FOUNDRY_UNIT_RUNNER:-ubuntu-slim}"
|
|
@@ -74,7 +74,7 @@ Options:
|
|
|
74
74
|
--runtime-repository OWNER/REPO Reusable workflow runtime repository (auto from source)
|
|
75
75
|
--runtime-ref REF Reusable workflow runtime tag or branch
|
|
76
76
|
--release-type NAME auto, node, python, rust, or simple
|
|
77
|
-
--license NAME agpl-3.0-or-later, mit, preserve, or none
|
|
77
|
+
--license NAME gpl-3.0-or-later, agpl-3.0-or-later, mit, preserve, or none
|
|
78
78
|
--license-file PATH Use an exact custom license file
|
|
79
79
|
--npm-publish Enable npm publication in the release workflow
|
|
80
80
|
--dry-run Preview changes without writing files
|
|
@@ -160,6 +160,10 @@ if [ -f "$config_path" ]; then
|
|
|
160
160
|
[ -n "$turbo_remote" ] || turbo_remote=auto
|
|
161
161
|
[ -n "$prune_standard" ] || prune_standard=false
|
|
162
162
|
[ "$prune_standard" = true ] && prune=true
|
|
163
|
+
elif [ -f LICENSE ] && [ -z "${REPO_FOUNDRY_LICENSE:-}" ] && [ "$license_set" = false ]; then
|
|
164
|
+
# Existing projects keep their authored license unless the user explicitly
|
|
165
|
+
# selects a replacement in the generated configuration.
|
|
166
|
+
license=preserve
|
|
163
167
|
fi
|
|
164
168
|
|
|
165
169
|
case "$package_manager" in
|
|
@@ -15,7 +15,7 @@ Options:
|
|
|
15
15
|
--package-manager NAME auto, bun, pnpm, yarn, or npm
|
|
16
16
|
--runtime-repository OWNER/REPO Reusable workflow runtime repository
|
|
17
17
|
--runtime-ref REF Reusable workflow runtime tag or branch
|
|
18
|
-
--license NAME preserve, agpl-3.0-or-later, mit, or none
|
|
18
|
+
--license NAME preserve, gpl-3.0-or-later, agpl-3.0-or-later, mit, or none
|
|
19
19
|
--license-file PATH Use an exact custom license file
|
|
20
20
|
--check Preview changes (default)
|
|
21
21
|
--apply Apply changes
|
|
@@ -249,7 +249,7 @@ contains_word "$valid_release_types" "$release_type" || {
|
|
|
249
249
|
exit 2
|
|
250
250
|
}
|
|
251
251
|
case "$license" in
|
|
252
|
-
preserve|agpl-3.0-or-later|mit|custom|none) ;;
|
|
252
|
+
preserve|gpl-3.0-or-later|agpl-3.0-or-later|mit|custom|none) ;;
|
|
253
253
|
*) printf 'Unsupported license: %s\n' "$license" >&2; exit 2 ;;
|
|
254
254
|
esac
|
|
255
255
|
[ -z "$license_file" ] || license=custom
|
|
@@ -371,6 +371,9 @@ removed_files=(
|
|
|
371
371
|
.github/scripts/sync-template.sh
|
|
372
372
|
.github/scripts/sitecustomize.py
|
|
373
373
|
.github/scripts/turbo-cache-probe.sh
|
|
374
|
+
.github/licenses/MIT.txt
|
|
375
|
+
.github/licenses/GPL-3.0-or-later.txt
|
|
376
|
+
.github/licenses/AGPL-3.0-or-later.txt
|
|
374
377
|
)
|
|
375
378
|
for file in "${removed_files[@]}"; do
|
|
376
379
|
if [ -e "$file" ]; then
|
|
@@ -533,7 +536,8 @@ write_license() {
|
|
|
533
536
|
license_source="$license_file"
|
|
534
537
|
else
|
|
535
538
|
case "$license" in
|
|
536
|
-
|
|
539
|
+
gpl-3.0-or-later) license_source="$template_root/.github/licenses/GPL-3.0-or-later.txt" ;;
|
|
540
|
+
agpl-3.0-or-later) license_source="$template_root/.github/licenses/AGPL-3.0-or-later.txt" ;;
|
|
537
541
|
mit) license_source="$template_root/.github/licenses/MIT.txt" ;;
|
|
538
542
|
esac
|
|
539
543
|
[ -f "$license_source" ] || { printf 'License template missing: %s\n' "$license_source" >&2; exit 1; }
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.26.0](https://github.com/0xPlayerOne/code-foundry/compare/v0.25.0...v0.26.0) (2026-07-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* default new repositories to gplv3 ([e200135](https://github.com/0xPlayerOne/code-foundry/commit/e200135939779693eb73a64aaf3587eccdc36ffc))
|
|
9
|
+
|
|
3
10
|
## [0.25.0](https://github.com/0xPlayerOne/code-foundry/compare/v0.24.1...v0.25.0) (2026-07-28)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -56,8 +56,9 @@ The generated configuration is the one place to control the baseline. See
|
|
|
56
56
|
guide and [Initialization and synchronization](docs/INITIALIZATION.md) for
|
|
57
57
|
the two-command workflow.
|
|
58
58
|
|
|
59
|
-
New repositories default to
|
|
60
|
-
|
|
59
|
+
New repositories default to GPL-3.0-or-later. Existing projects preserve an
|
|
60
|
+
authored license unless a replacement is explicitly selected. Our maintained
|
|
61
|
+
repositories explicitly select AGPL-3.0-or-later. Authored
|
|
61
62
|
documentation, application files, custom workflows, and existing `.mise.toml`
|
|
62
63
|
files are preserved by default.
|
|
63
64
|
|
package/docs/CONFIGURATION.md
CHANGED
|
@@ -36,7 +36,7 @@ repository manifests and source
|
|
|
36
36
|
| `runtime_ref` | tag or branch | Reusable workflow version |
|
|
37
37
|
| `release_type` | `node`, `python`, `rust`, `simple`, `none` | Release strategy |
|
|
38
38
|
| `npm_publish` | `true` or `false` | Opt into npm publication |
|
|
39
|
-
| `license` |
|
|
39
|
+
| `license` | `gpl-3.0-or-later`, `agpl-3.0-or-later`, `mit`, `preserve`, `none` | License policy; new repositories default to GPLv3 |
|
|
40
40
|
| `runner` fields | GitHub runner names | Per-workflow runner policy |
|
|
41
41
|
|
|
42
42
|
Supported features are `ci`, `codeql`, `security`, `test`, `draft-pr`,
|
package/docs/INITIALIZATION.md
CHANGED
|
@@ -25,6 +25,9 @@ manifests, lockfiles, source extensions, workspace metadata, and existing
|
|
|
25
25
|
project scripts. The generated values are explicit, so later syncs are stable
|
|
26
26
|
until a maintainer changes the file.
|
|
27
27
|
|
|
28
|
+
New repositories receive the GNU GPLv3. Existing repositories with an authored
|
|
29
|
+
`LICENSE` keep that license unless the generated configuration is changed.
|
|
30
|
+
|
|
28
31
|
## Runtime selection
|
|
29
32
|
|
|
30
33
|
Workflow callers use `runtime_repository` and `runtime_ref` from
|
package/package.json
CHANGED