Skip to content

Commit 608aec7

Browse files
committed
feat: rename project to code-foundry
1 parent 8b7be8b commit 608aec7

9 files changed

Lines changed: 26 additions & 21 deletions

File tree

‎.github/CODEOWNERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Repository owners and administrators are populated by the repo-foundry
1+
# Repository owners and administrators are populated by code-foundry
22
# initializer. GitHub CODEOWNERS does not interpolate shell variables.
33
# Run the initializer in the target repository to replace this default rule.
44
* @OWNER

‎.github/scripts/init-repo.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
source="${REPO_FOUNDRY_SOURCE:-https://github.com/${GITHUB_REPOSITORY_OWNER:-OWNER}/repo-foundry.git}"
4+
source="${REPO_FOUNDRY_SOURCE:-https://github.com/${GITHUB_REPOSITORY_OWNER:-OWNER}/code-foundry.git}"
55
ref="main"
66
protection=false
77
dry_run=false

‎.github/scripts/sync-codeowners.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ fi
5959

6060
tmp_file="$(mktemp)"
6161
{
62-
printf '%s\n' '# Managed by repo-foundry. Repository owners/admins are discovered during initialization.'
62+
printf '%s\n' '# Managed by code-foundry. Repository owners/admins are discovered during initialization.'
6363
printf '* %s\n' "$owner_line"
6464
if [ -n "$existing_file" ]; then
6565
awk '
66-
/^# Managed by repo-foundry\./ { managed=1; next }
66+
/^# Managed by code-foundry\./ { managed=1; next }
6767
managed && /^\* / { managed=0; next }
6868
managed { next }
6969
/^\* @(OWNER|[^[:space:]]+)/ { next }

‎.github/scripts/sync-template.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ fi
133133

134134
if [ -f "$template_root/package.json" ]; then
135135
template_version="$(awk -F'"' '/"version"[[:space:]]*:/ {print $4; exit}' "$template_root/package.json")"
136-
[ -n "$template_version" ] && template_ref="repo-foundry@$template_version"
136+
[ -n "$template_version" ] && template_ref="code-foundry@$template_version"
137137
fi
138138

139139
files=(

‎.github/template.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
version: 1
2-
template: repo-foundry@latest
2+
template: code-foundry@latest
33
languages: typescript
44
features: all
55
package_manager: bun

‎.github/template.yml.example‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Repository-specific settings for the shared initializer and sync scripts.
22
version: 1
3-
template: repo-foundry@latest
3+
template: code-foundry@latest
44
languages: auto
55
features: all
66
package_manager: auto

‎README.md‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
1-
# Repo Foundry
1+
# Code Foundry
22

3-
`repo-foundry` is a repository factory for TypeScript, Rust, Python, Solidity,
3+
[![npm version](https://img.shields.io/npm/v/code-foundry?logo=npm&logoColor=white)](https://www.npmjs.com/package/code-foundry)
4+
[![npm downloads](https://img.shields.io/npm/dm/code-foundry?logo=npm&logoColor=white)](https://www.npmjs.com/package/code-foundry)
5+
[![CI](../../actions/workflows/ci.yml/badge.svg?branch=main)](../../actions/workflows/ci.yml)
6+
[![Latest GitHub release](https://img.shields.io/badge/GitHub%20release-latest-181717?logo=github)](../../releases/latest)
7+
8+
`code-foundry` is a repository factory for TypeScript, Rust, Python, Solidity,
49
and mixed-language projects. It installs agent-ready instructions, fast native
510
testing, security automation, release workflows, hooks, and repository policy
611
from one versioned package.
712

813
## Quick start
914

1015
```bash
11-
npx repo-foundry init
16+
npx code-foundry init
1217
```
1318

1419
Or select the project profile explicitly:
1520

1621
```bash
17-
npx repo-foundry init \
22+
npx code-foundry init \
1823
--languages typescript,python \
1924
--features all \
2025
--package-manager bun
2126
```
2227

23-
Use `repo-foundry sync` to update an existing repository and
24-
`repo-foundry doctor` to validate it. Add `--dry-run` to preview changes.
28+
Use `code-foundry sync` to update an existing repository and
29+
`code-foundry doctor` to validate it. Add `--dry-run` to preview changes.
2530

2631
## Setup
2732

@@ -83,7 +88,7 @@ For npm publication, set `npm_publish: true` and configure npm trusted publishin
8388

8489
The release flow is: promote `staging` into `main`; let Release Please open or update the version/changelog PR; merge that PR to create the GitHub release and tag; then publish to npm only when `npm_publish: true`.
8590

86-
For a repository that does not yet contain the scripts, the initializer can be invoked directly from the published template checkout or a downloaded copy of `init-repo.sh`; it fetches the matching sync helper automatically. The generated `.github/template.yml` is the stable configuration contract for a future npm/package wrapper around these same operations.
91+
For a repository that does not yet contain the scripts, the initializer can be invoked directly from the published package or a downloaded copy of `init-repo.sh`; it fetches the matching sync helper automatically. The generated `.github/template.yml` is the stable configuration contract used by the package and later syncs.
8792

8893
CI formatting and linting use the preloaded `ubuntu-latest` runner by default because dependency setup is usually faster there. Set `REPO_FOUNDRY_FAST_RUNNER=ubuntu-slim` only after measuring a repository where the lean image is faster; use `ubuntu-latest` for dependency-heavy or native-toolchain projects.
8994

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "repo-foundry",
2+
"name": "code-foundry",
33
"version": "0.1.4",
44
"description": "A fast, language-aware repository factory for agent-ready workflows, testing, security, and release automation.",
55
"type": "module",
66
"license": "AGPL-3.0-or-later",
77
"packageManager": "bun@1.3.14",
88
"bin": {
9-
"repo-foundry": "src/cli.mjs"
9+
"code-foundry": "src/cli.mjs"
1010
},
1111
"files": [
1212
"src",

‎src/cli.mjs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { fileURLToPath } from 'node:url'
77

88
const packageRoot = resolve(fileURLToPath(new URL('..', import.meta.url)))
99

10-
const usage = `repo-foundry — initialize and maintain agent-ready repositories
10+
const usage = `code-foundry — initialize and maintain agent-ready repositories
1111
1212
Usage:
13-
repo-foundry init [options]
14-
repo-foundry sync [options]
15-
repo-foundry doctor [--target PATH]
13+
code-foundry init [options]
14+
code-foundry sync [options]
15+
code-foundry doctor [--target PATH]
1616
1717
Init/sync options:
1818
--target PATH Repository directory (default: current directory)
@@ -31,7 +31,7 @@ Init/sync options:
3131
`
3232

3333
function fail(message) {
34-
console.error(`repo-foundry: ${message}`)
34+
console.error(`code-foundry: ${message}`)
3535
process.exit(2)
3636
}
3737

0 commit comments

Comments
 (0)