mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-07 07:55:13 +02:00
chore: revert repo references to Kaelio/ktx and remove rename-resilience (#252)
The GitHub repo was renamed back from Kaelio/ktx-ai-data-agents-context to Kaelio/ktx, reverting the URL changes from #250 across package metadata, CI (codecov + star-history slugs), issue/security templates, the release runbook, and docs/install commands. Also removes the rename-resilience machinery #250 added: semantic-release now reads the repository URL straight from package.json (Kaelio/ktx) again, so the repositoryUrl() derivation in scripts/semantic-release-config.cjs, its tests, and the rename note in docs/release.md are no longer needed.
This commit is contained in:
parent
13774bfcef
commit
41e20c9ce7
17 changed files with 34 additions and 94 deletions
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
|
|
@ -10,5 +10,5 @@ contact_links:
|
||||||
url: https://docs.kaelio.com/ktx/docs/community/support
|
url: https://docs.kaelio.com/ktx/docs/community/support
|
||||||
about: Full guide on where to ask what — Slack vs. GitHub Issues vs. docs.
|
about: Full guide on where to ask what — Slack vs. GitHub Issues vs. docs.
|
||||||
- name: Security issues
|
- name: Security issues
|
||||||
url: https://github.com/Kaelio/ktx-ai-data-agents-context/security/advisories/new
|
url: https://github.com/Kaelio/ktx/security/advisories/new
|
||||||
about: Report security vulnerabilities privately via GitHub Security Advisories. Please do not file security issues publicly.
|
about: Report security vulnerabilities privately via GitHub Security Advisories. Please do not file security issues publicly.
|
||||||
|
|
|
||||||
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
|
@ -212,7 +212,7 @@ jobs:
|
||||||
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4
|
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
slug: Kaelio/ktx-ai-data-agents-context
|
slug: Kaelio/ktx
|
||||||
files: ./packages/cli/coverage/lcov.info
|
files: ./packages/cli/coverage/lcov.info
|
||||||
flags: typescript
|
flags: typescript
|
||||||
name: typescript
|
name: typescript
|
||||||
|
|
@ -231,7 +231,7 @@ jobs:
|
||||||
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4
|
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.5.4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
slug: Kaelio/ktx-ai-data-agents-context
|
slug: Kaelio/ktx
|
||||||
files: ./coverage/python.xml
|
files: ./coverage/python.xml
|
||||||
flags: python
|
flags: python
|
||||||
name: python
|
name: python
|
||||||
|
|
|
||||||
2
.github/workflows/star-history.yml
vendored
2
.github/workflows/star-history.yml
vendored
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
# cachebust forces star-history to regenerate instead of serving its
|
# cachebust forces star-history to regenerate instead of serving its
|
||||||
# own server-side cache; --location follows the slug-normalizing 301.
|
# own server-side cache; --location follows the slug-normalizing 301.
|
||||||
url="https://api.star-history.com/svg?repos=Kaelio/ktx-ai-data-agents-context&type=Date&cachebust=${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
url="https://api.star-history.com/svg?repos=Kaelio/ktx&type=Date&cachebust=${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
||||||
curl --fail --location --silent --show-error \
|
curl --fail --location --silent --show-error \
|
||||||
--retry 3 --retry-delay 5 --max-time 60 \
|
--retry 3 --retry-delay 5 --max-time 60 \
|
||||||
-o assets/star-history.svg.new "$url"
|
-o assets/star-history.svg.new "$url"
|
||||||
|
|
|
||||||
|
|
@ -381,8 +381,8 @@ rather than silently skipping it.
|
||||||
- **MUST**: Disable monospace ligatures on every surface that uses the
|
- **MUST**: Disable monospace ligatures on every surface that uses the
|
||||||
`var(--font-mono)` family (Geist Mono). Geist Mono fuses `--` into an
|
`var(--font-mono)` family (Geist Mono). Geist Mono fuses `--` into an
|
||||||
em-dash glyph that visually eats the adjacent space, so prompts like
|
em-dash glyph that visually eats the adjacent space, so prompts like
|
||||||
`npx skills add Kaelio/ktx-ai-data-agents-context --skill ktx` render as
|
`npx skills add Kaelio/ktx --skill ktx` render as
|
||||||
`Kaelio/ktx-ai-data-agents-context--skill ktx`.
|
`Kaelio/ktx--skill ktx`.
|
||||||
- **MUST**: When adding a new container that renders user-visible monospace
|
- **MUST**: When adding a new container that renders user-visible monospace
|
||||||
text outside `<code>` / `<pre>` (e.g. a styled `<div className="font-mono">`
|
text outside `<code>` / `<pre>` (e.g. a styled `<div className="font-mono">`
|
||||||
for a copyable prompt), verify the global ligature-off rule in
|
for a copyable prompt), verify the global ligature-off rule in
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ layout, and verification commands, see the
|
||||||
## How to contribute
|
## How to contribute
|
||||||
|
|
||||||
1. Browse open issues labeled
|
1. Browse open issues labeled
|
||||||
[`good first issue`](https://github.com/Kaelio/ktx-ai-data-agents-context/labels/good%20first%20issue)
|
[`good first issue`](https://github.com/Kaelio/ktx/labels/good%20first%20issue)
|
||||||
or [`help wanted`](https://github.com/Kaelio/ktx-ai-data-agents-context/labels/help%20wanted).
|
or [`help wanted`](https://github.com/Kaelio/ktx/labels/help%20wanted).
|
||||||
2. Comment on the issue to claim it. A maintainer will confirm scope and
|
2. Comment on the issue to claim it. A maintainer will confirm scope and
|
||||||
assign it to you.
|
assign it to you.
|
||||||
3. For changes not covered by an existing issue, open one first so we can
|
3. For changes not covered by an existing issue, open one first so we can
|
||||||
|
|
@ -82,7 +82,7 @@ page for the full guide. The short version:
|
||||||
- **Feature requests**: use the
|
- **Feature requests**: use the
|
||||||
[Feature request](.github/ISSUE_TEMPLATE/feature_request.yml) template.
|
[Feature request](.github/ISSUE_TEMPLATE/feature_request.yml) template.
|
||||||
- **Security**: report privately via
|
- **Security**: report privately via
|
||||||
[GitHub Security Advisories](https://github.com/Kaelio/ktx-ai-data-agents-context/security/advisories/new),
|
[GitHub Security Advisories](https://github.com/Kaelio/ktx/security/advisories/new),
|
||||||
not as a public issue.
|
not as a public issue.
|
||||||
|
|
||||||
## Code of conduct
|
## Code of conduct
|
||||||
|
|
|
||||||
12
README.md
12
README.md
|
|
@ -8,11 +8,11 @@
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://www.npmjs.com/package/@kaelio/ktx"><img src="https://img.shields.io/npm/v/@kaelio/ktx?style=flat-square&color=f97316" alt="npm version" /></a>
|
<a href="https://www.npmjs.com/package/@kaelio/ktx"><img src="https://img.shields.io/npm/v/@kaelio/ktx?style=flat-square&color=f97316" alt="npm version" /></a>
|
||||||
<a href="https://codecov.io/gh/Kaelio/ktx-ai-data-agents-context"><img src="https://codecov.io/gh/Kaelio/ktx-ai-data-agents-context/graph/badge.svg?branch=main" alt="Codecov" /></a>
|
<a href="https://codecov.io/gh/Kaelio/ktx"><img src="https://codecov.io/gh/Kaelio/ktx/graph/badge.svg?branch=main" alt="Codecov" /></a>
|
||||||
<a href="https://github.com/Kaelio/ktx-ai-data-agents-context/actions/workflows/ci.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/Kaelio/ktx-ai-data-agents-context/ci.yml?branch=main&label=tests&style=flat-square" alt="Tests" /></a>
|
<a href="https://github.com/Kaelio/ktx/actions/workflows/ci.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/Kaelio/ktx/ci.yml?branch=main&label=tests&style=flat-square" alt="Tests" /></a>
|
||||||
<a href="https://docs.kaelio.com/ktx/docs/"><img src="https://img.shields.io/badge/docs-ktx-22c55e?style=flat-square" alt="Documentation" /></a>
|
<a href="https://docs.kaelio.com/ktx/docs/"><img src="https://img.shields.io/badge/docs-ktx-22c55e?style=flat-square" alt="Documentation" /></a>
|
||||||
<a href="https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ"><img src="https://img.shields.io/badge/slack-join%20community-4A154B?style=flat-square&logo=slack&logoColor=white" alt="Join the ktx Slack community" /></a>
|
<a href="https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ"><img src="https://img.shields.io/badge/slack-join%20community-4A154B?style=flat-square&logo=slack&logoColor=white" alt="Join the ktx Slack community" /></a>
|
||||||
<a href="https://github.com/Kaelio/ktx-ai-data-agents-context/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square" alt="License" /></a>
|
<a href="https://github.com/Kaelio/ktx/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square" alt="License" /></a>
|
||||||
<a href="https://www.ycombinator.com/companies?batch=P25"><img src="https://img.shields.io/badge/Y%20Combinator-P25-orange?style=flat-square" alt="Y Combinator P25" /></a>
|
<a href="https://www.ycombinator.com/companies?batch=P25"><img src="https://img.shields.io/badge/Y%20Combinator-P25-orange?style=flat-square" alt="Y Combinator P25" /></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
@ -130,7 +130,7 @@ Agent integration ready: yes (codex:project)
|
||||||
> your project directory:
|
> your project directory:
|
||||||
>
|
>
|
||||||
> ```text
|
> ```text
|
||||||
> Run npx skills add Kaelio/ktx-ai-data-agents-context --skill ktx and use the ktx skill to install
|
> Run npx skills add Kaelio/ktx --skill ktx and use the ktx skill to install
|
||||||
> and configure ktx in this project.
|
> and configure ktx in this project.
|
||||||
> ```
|
> ```
|
||||||
|
|
||||||
|
|
@ -201,7 +201,7 @@ then the current directory. Pass `--project-dir <path>` when scripting.
|
||||||
## Community
|
## Community
|
||||||
|
|
||||||
- **[Slack](https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ)** — ask questions, share what you're building, and chat with maintainers.
|
- **[Slack](https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ)** — ask questions, share what you're building, and chat with maintainers.
|
||||||
- **[GitHub Issues](https://github.com/Kaelio/ktx-ai-data-agents-context/issues)** — report bugs and request features.
|
- **[GitHub Issues](https://github.com/Kaelio/ktx/issues)** — report bugs and request features.
|
||||||
- **[Contributing](https://docs.kaelio.com/ktx/docs/community/contributing)** — set up the repo, run tests, and open a PR.
|
- **[Contributing](https://docs.kaelio.com/ktx/docs/community/contributing)** — set up the repo, run tests, and open a PR.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
@ -258,7 +258,7 @@ event catalog and opt-out options.
|
||||||
## Star History
|
## Star History
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://star-history.com/#Kaelio/ktx-ai-data-agents-context&Date">
|
<a href="https://star-history.com/#Kaelio/ktx&Date">
|
||||||
<img src="assets/star-history.svg" alt="ktx Star History Chart" width="700" />
|
<img src="assets/star-history.svg" alt="ktx Star History Chart" width="700" />
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
If you believe you've found a security vulnerability in KTX, please report it
|
If you believe you've found a security vulnerability in KTX, please report it
|
||||||
**privately** through GitHub Security Advisories:
|
**privately** through GitHub Security Advisories:
|
||||||
|
|
||||||
[Report a vulnerability](https://github.com/Kaelio/ktx-ai-data-agents-context/security/advisories/new)
|
[Report a vulnerability](https://github.com/Kaelio/ktx/security/advisories/new)
|
||||||
|
|
||||||
If you cannot use GitHub Security Advisories, email `support@kaelio.com`
|
If you cannot use GitHub Security Advisories, email `support@kaelio.com`
|
||||||
instead. Please do **not** open a public issue, post in the KTX Slack, or
|
instead. Please do **not** open a public issue, post in the KTX Slack, or
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ Read https://docs.kaelio.com/ktx/llms.txt first. Then fetch only the ktx Markdow
|
||||||
## Set up a project
|
## Set up a project
|
||||||
|
|
||||||
```text
|
```text
|
||||||
Run npx skills add Kaelio/ktx-ai-data-agents-context --skill ktx and use the ktx skill to install
|
Run npx skills add Kaelio/ktx --skill ktx and use the ktx skill to install
|
||||||
and configure ktx in this project.
|
and configure ktx in this project.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ the core team trade questions, share patterns, and shape the roadmap.
|
||||||
| You want to... | Go here |
|
| You want to... | Go here |
|
||||||
|----------------|---------|
|
|----------------|---------|
|
||||||
| Ask a question or chat with the community | [**ktx** Slack](https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ) |
|
| Ask a question or chat with the community | [**ktx** Slack](https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ) |
|
||||||
| Report a bug or request a feature | [GitHub Issues](https://github.com/Kaelio/ktx-ai-data-agents-context/issues) |
|
| Report a bug or request a feature | [GitHub Issues](https://github.com/Kaelio/ktx/issues) |
|
||||||
| Read or contribute to the docs | [docs.kaelio.com/ktx](https://docs.kaelio.com/ktx/docs/) |
|
| Read or contribute to the docs | [docs.kaelio.com/ktx](https://docs.kaelio.com/ktx/docs/) |
|
||||||
| Contribute code | [Contributing guide](/docs/community/contributing) |
|
| Contribute code | [Contributing guide](/docs/community/contributing) |
|
||||||
|
|
||||||
|
|
@ -30,14 +30,14 @@ Slack is the right place for:
|
||||||
- **Feedback** on the roadmap and early features
|
- **Feedback** on the roadmap and early features
|
||||||
|
|
||||||
For anything reproducible - a crash, a wrong result, an unexpected CLI error -
|
For anything reproducible - a crash, a wrong result, an unexpected CLI error -
|
||||||
open a [GitHub issue](https://github.com/Kaelio/ktx-ai-data-agents-context/issues) instead. Issues are
|
open a [GitHub issue](https://github.com/Kaelio/ktx/issues) instead. Issues are
|
||||||
searchable, get triaged, and stay attached to the eventual fix.
|
searchable, get triaged, and stay attached to the eventual fix.
|
||||||
|
|
||||||
## GitHub
|
## GitHub
|
||||||
|
|
||||||
- **[Issues](https://github.com/Kaelio/ktx-ai-data-agents-context/issues)** - bugs and feature requests
|
- **[Issues](https://github.com/Kaelio/ktx/issues)** - bugs and feature requests
|
||||||
- **[Pull requests](https://github.com/Kaelio/ktx-ai-data-agents-context/pulls)** - code, docs, and connector contributions
|
- **[Pull requests](https://github.com/Kaelio/ktx/pulls)** - code, docs, and connector contributions
|
||||||
- **[Releases](https://github.com/Kaelio/ktx-ai-data-agents-context/releases)** - changelog and published versions
|
- **[Releases](https://github.com/Kaelio/ktx/releases)** - changelog and published versions
|
||||||
|
|
||||||
## Code of conduct
|
## Code of conduct
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,6 @@ best first step for users; contributor setup lives in the community docs.
|
||||||
Have questions, want to share what you're building, or chat with maintainers?
|
Have questions, want to share what you're building, or chat with maintainers?
|
||||||
Join the [**ktx** Slack community](https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ).
|
Join the [**ktx** Slack community](https://join.slack.com/t/ktxcommunity/shared_invite/zt-3y9b44m1x-LVyNNJD5nwaZHq4XS29LMQ).
|
||||||
For bug reports and feature requests, open a
|
For bug reports and feature requests, open a
|
||||||
[GitHub issue](https://github.com/Kaelio/ktx-ai-data-agents-context/issues). See
|
[GitHub issue](https://github.com/Kaelio/ktx/issues). See
|
||||||
[Community & Support](/docs/community/support) for the full guide on where to
|
[Community & Support](/docs/community/support) for the full guide on where to
|
||||||
ask what.
|
ask what.
|
||||||
|
|
|
||||||
|
|
@ -171,14 +171,14 @@ If you're a coding assistant choosing a docs route, start with the
|
||||||
</span>
|
</span>
|
||||||
<CopyButton
|
<CopyButton
|
||||||
text={[
|
text={[
|
||||||
'Run npx skills add Kaelio/ktx-ai-data-agents-context --skill ktx and use the ktx skill',
|
'Run npx skills add Kaelio/ktx --skill ktx and use the ktx skill',
|
||||||
'to install and configure ktx',
|
'to install and configure ktx',
|
||||||
].join(' ')}
|
].join(' ')}
|
||||||
className="-my-1"
|
className="-my-1"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="p-3 font-mono text-[13.5px] leading-6 text-fd-foreground">
|
<div className="p-3 font-mono text-[13.5px] leading-6 text-fd-foreground">
|
||||||
Run {'`npx skills add Kaelio/ktx-ai-data-agents-context --skill ktx`'} and use the ktx skill to install and configure ktx
|
Run {'`npx skills add Kaelio/ktx --skill ktx`'} and use the ktx skill to install and configure ktx
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ ktx provides semantic-layer files, warehouse scans, wiki pages, provenance, and
|
||||||
|
|
||||||
## Agent Entry Points
|
## Agent Entry Points
|
||||||
|
|
||||||
- Installable setup skill: run \`npx skills add Kaelio/ktx-ai-data-agents-context --skill ktx\` from
|
- Installable setup skill: run \`npx skills add Kaelio/ktx --skill ktx\` from
|
||||||
the project you want to configure.
|
the project you want to configure.
|
||||||
${link("/docs/ai-resources/agent-quickstart", "Agent Quickstart", "Task-first route for coding assistants using ktx")}
|
${link("/docs/ai-resources/agent-quickstart", "Agent Quickstart", "Task-first route for coding assistants using ktx")}
|
||||||
${link("/docs/ai-resources/markdown-access", "Markdown Access", "Fetch ktx docs as llms.txt, llms-full.txt, or per-page Markdown")}
|
${link("/docs/ai-resources/markdown-access", "Markdown Access", "Fetch ktx docs as llms.txt, llms-full.txt, or per-page Markdown")}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ The workflow rejects releases from any branch other than `main`.
|
||||||
Before you publish, confirm these requirements:
|
Before you publish, confirm these requirements:
|
||||||
|
|
||||||
- npm Trusted Publishing is configured for `@kaelio/ktx`.
|
- npm Trusted Publishing is configured for `@kaelio/ktx`.
|
||||||
- The trusted publisher points at the `Kaelio/ktx-ai-data-agents-context` repository and the
|
- The trusted publisher points at the `Kaelio/ktx` repository and the
|
||||||
`.github/workflows/release.yml` workflow.
|
`.github/workflows/release.yml` workflow.
|
||||||
- The workflow keeps `id-token: write` permission so npm can verify the
|
- The workflow keeps `id-token: write` permission so npm can verify the
|
||||||
GitHub Actions run through OpenID Connect.
|
GitHub Actions run through OpenID Connect.
|
||||||
|
|
@ -35,15 +35,6 @@ Before you publish, confirm these requirements:
|
||||||
- The repository has a stable baseline tag when you need semantic-release to
|
- The repository has a stable baseline tag when you need semantic-release to
|
||||||
publish the first stable version as `0.1.0`.
|
publish the first stable version as `0.1.0`.
|
||||||
|
|
||||||
If you rename the GitHub repository, the semantic-release run adapts on its
|
|
||||||
own: `scripts/semantic-release-config.cjs` derives `repositoryUrl` from the
|
|
||||||
runner's `GITHUB_REPOSITORY`, so `@semantic-release/github` always matches the
|
|
||||||
current clone URL. The one thing that does **not** auto-update is the npm
|
|
||||||
Trusted Publishing config — re-point it at the new repository name (plus
|
|
||||||
`release.yml`) on npm, or `npm publish --provenance` will fail OIDC
|
|
||||||
verification. The `repository` field in `package.json` is npm-display metadata
|
|
||||||
only and can stay whatever public name you prefer.
|
|
||||||
|
|
||||||
semantic-release doesn't support choosing an arbitrary first `0.x` stable
|
semantic-release doesn't support choosing an arbitrary first `0.x` stable
|
||||||
release. If KTX has no stable tag yet and you need the first stable release to
|
release. If KTX has no stable tag yet and you need the first stable release to
|
||||||
be `0.1.0`, create and push the baseline tag once before running the live
|
be `0.1.0`, create and push the baseline tag once before running the live
|
||||||
|
|
|
||||||
|
|
@ -76,10 +76,10 @@
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/Kaelio/ktx-ai-data-agents-context.git"
|
"url": "git+https://github.com/Kaelio/ktx.git"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/Kaelio/ktx-ai-data-agents-context/issues"
|
"url": "https://github.com/Kaelio/ktx/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/Kaelio/ktx-ai-data-agents-context#readme"
|
"homepage": "https://github.com/Kaelio/ktx#readme"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -93,11 +93,11 @@
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Kaelio/ktx-ai-data-agents-context",
|
"url": "https://github.com/Kaelio/ktx",
|
||||||
"directory": "packages/cli"
|
"directory": "packages/cli"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/Kaelio/ktx-ai-data-agents-context/issues"
|
"url": "https://github.com/Kaelio/ktx/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/Kaelio/ktx-ai-data-agents-context#readme"
|
"homepage": "https://github.com/Kaelio/ktx#readme"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -104,22 +104,6 @@ function releaseTag(kind, env = process.env) {
|
||||||
return `branch-${branchPrereleaseId(branchName)}`;
|
return `branch-${branchPrereleaseId(branchName)}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
function repositoryUrl(env = process.env) {
|
|
||||||
// @semantic-release/github compares this URL's owner/repo against the live
|
|
||||||
// GitHub clone_url with an exact match (no redirect following), so a repo
|
|
||||||
// rename breaks the release unless repositoryUrl tracks the *current* name.
|
|
||||||
// In CI, derive it from the runner's repository so renames never re-break the
|
|
||||||
// release. Outside CI, return undefined so semantic-release falls back to the
|
|
||||||
// package.json `repository` field (its documented default).
|
|
||||||
const repository = env.GITHUB_REPOSITORY;
|
|
||||||
if (!repository) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
const server = env.GITHUB_SERVER_URL || 'https://github.com';
|
|
||||||
return `${server}/${repository}.git`;
|
|
||||||
}
|
|
||||||
|
|
||||||
function releaseBranches(env = process.env) {
|
function releaseBranches(env = process.env) {
|
||||||
const kind = releaseKind(env);
|
const kind = releaseKind(env);
|
||||||
|
|
||||||
|
|
@ -143,12 +127,10 @@ function releaseBranches(env = process.env) {
|
||||||
function createReleaseConfig(env = process.env) {
|
function createReleaseConfig(env = process.env) {
|
||||||
const kind = releaseKind(env);
|
const kind = releaseKind(env);
|
||||||
const tag = releaseTag(kind, env);
|
const tag = releaseTag(kind, env);
|
||||||
const url = repositoryUrl(env);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
tagFormat: 'v${version}',
|
tagFormat: 'v${version}',
|
||||||
branches: releaseBranches(env),
|
branches: releaseBranches(env),
|
||||||
...(url ? { repositoryUrl: url } : {}),
|
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
[
|
||||||
'@semantic-release/commit-analyzer',
|
'@semantic-release/commit-analyzer',
|
||||||
|
|
@ -221,5 +203,4 @@ module.exports = {
|
||||||
releaseBranches,
|
releaseBranches,
|
||||||
releaseKind,
|
releaseKind,
|
||||||
releaseTag,
|
releaseTag,
|
||||||
repositoryUrl,
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { createRequire } from 'node:module';
|
||||||
import { describe, it } from 'node:test';
|
import { describe, it } from 'node:test';
|
||||||
|
|
||||||
const require = createRequire(import.meta.url);
|
const require = createRequire(import.meta.url);
|
||||||
const { createReleaseConfig, releaseBranches, releaseKind, releaseTag, repositoryUrl } = require('./semantic-release-config.cjs');
|
const { createReleaseConfig, releaseBranches, releaseKind, releaseTag } = require('./semantic-release-config.cjs');
|
||||||
|
|
||||||
function prepareExecOptions(config) {
|
function prepareExecOptions(config) {
|
||||||
return config.plugins.find((plugin) => Array.isArray(plugin) && plugin[0] === '@semantic-release/exec' && plugin[1].prepareCmd)[1];
|
return config.plugins.find((plugin) => Array.isArray(plugin) && plugin[0] === '@semantic-release/exec' && plugin[1].prepareCmd)[1];
|
||||||
|
|
@ -141,38 +141,6 @@ describe('semantic-release config', () => {
|
||||||
assert.match(analyzeExec[1].analyzeCommitsCmd, /FORCE_RELEASE === 'true' \? 'patch' : ''/);
|
assert.match(analyzeExec[1].analyzeCommitsCmd, /FORCE_RELEASE === 'true' \? 'patch' : ''/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('pins repositoryUrl to the runner repository so a GitHub rename never re-breaks the release', () => {
|
|
||||||
// @semantic-release/github exact-matches repositoryUrl against the live
|
|
||||||
// clone_url, so the release must track the *current* repo name, not the
|
|
||||||
// static package.json value.
|
|
||||||
assert.equal(
|
|
||||||
repositoryUrl({ GITHUB_REPOSITORY: 'Kaelio/ktx-ai-data-agents-context' }),
|
|
||||||
'https://github.com/Kaelio/ktx-ai-data-agents-context.git',
|
|
||||||
);
|
|
||||||
assert.equal(
|
|
||||||
repositoryUrl({ GITHUB_REPOSITORY: 'Kaelio/ktx' }),
|
|
||||||
'https://github.com/Kaelio/ktx.git',
|
|
||||||
'a later rename back to Kaelio/ktx must resolve without any code change',
|
|
||||||
);
|
|
||||||
assert.equal(
|
|
||||||
repositoryUrl({ GITHUB_REPOSITORY: 'Kaelio/ktx', GITHUB_SERVER_URL: 'https://ghe.example.com' }),
|
|
||||||
'https://ghe.example.com/Kaelio/ktx.git',
|
|
||||||
);
|
|
||||||
|
|
||||||
const config = createReleaseConfig({
|
|
||||||
KTX_RELEASE_KIND: 'stable',
|
|
||||||
GITHUB_REF_NAME: 'main',
|
|
||||||
GITHUB_REPOSITORY: 'Kaelio/ktx-ai-data-agents-context',
|
|
||||||
});
|
|
||||||
assert.equal(config.repositoryUrl, 'https://github.com/Kaelio/ktx-ai-data-agents-context.git');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('omits repositoryUrl outside CI so semantic-release falls back to package.json', () => {
|
|
||||||
assert.equal(repositoryUrl({}), undefined);
|
|
||||||
const config = createReleaseConfig({ KTX_RELEASE_KIND: 'stable', GITHUB_REF_NAME: 'main' });
|
|
||||||
assert.equal('repositoryUrl' in config, false);
|
|
||||||
});
|
|
||||||
|
|
||||||
it('does not configure any commit type to create an automatic major release', () => {
|
it('does not configure any commit type to create an automatic major release', () => {
|
||||||
const config = createReleaseConfig({ KTX_RELEASE_KIND: 'stable', GITHUB_REF_NAME: 'main' });
|
const config = createReleaseConfig({ KTX_RELEASE_KIND: 'stable', GITHUB_REF_NAME: 'main' });
|
||||||
const analyzer = config.plugins.find(
|
const analyzer = config.plugins.find(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue