From 909469fe3e38658b2622b8d4a9d54e50abe43508 Mon Sep 17 00:00:00 2001 From: Liz Ainslie Date: Wed, 16 Sep 2026 04:11:27 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20Maven=20group=20=E2=86=92=20computer.k?= =?UTF-8?q?olektiv.keel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gradle.properties group + install snippets. Dual-publish docs aligned with org spine. Kotlin packages remain dev.kolektiv.keel.* until a follow-up. --- AGENTS.md | 4 +- README.md | 2 +- .../keel.publishing-conventions.gradle.kts | 4 +- docs/CI_DUAL_PUBLISH.md | 55 +++++++++++++++++++ .../src/content/docs/getting-started/host.mdx | 6 +- .../content/docs/getting-started/server.mdx | 10 ++-- gradle.properties | 2 +- llms.txt | 4 +- 8 files changed, 71 insertions(+), 16 deletions(-) create mode 100644 docs/CI_DUAL_PUBLISH.md diff --git a/AGENTS.md b/AGENTS.md index ce724fa..14a3fd1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,8 +12,8 @@ against the same typed contract. | Path | What | | --- | --- | -| `lib/` | Kotlin core (`dev.kolektiv.keel:core`) — seed, manifest, `PageRegistry`, `ActionRegistry`, `FrontendBundle`, typegen. No Ktor dependency. | -| `ktor/` | `dev.kolektiv.keel:ktor` — binds the registry, `respondPage`, actions, HTML shell, visits, pack files. | +| `lib/` | Kotlin core (`computer.kolektiv.keel:core`) — seed, manifest, `PageRegistry`, `ActionRegistry`, `FrontendBundle`, typegen. No Ktor dependency. | +| `ktor/` | `computer.kolektiv.keel:ktor` — binds the registry, `respondPage`, actions, HTML shell, visits, pack files. | | `samples/harbor` | In-memory message board: Ktor + Svelte pack. `./gradlew :samples:harbor:run` → http://127.0.0.1:8090 | | `packages/core` | `@kolektiv/keel` — visits, history, prefetch, `action()` | | `packages/svelte` | `@kolektiv/keel-svelte` — `Link`, `Form`, `Head`, `page()`, `useForm`, `useAction` | diff --git a/README.md b/README.md index eb673e7..efad18b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Host-owned routing and render-time frontend packs for Kotlin servers. | Coordinate | Name | | --- | --- | -| Maven | `dev.kolektiv.keel:core`, `dev.kolektiv.keel:ktor` | +| Maven | `computer.kolektiv.keel:core`, `computer.kolektiv.keel:ktor` | | npm router | `@kolektiv/keel` | | npm adapters | `@kolektiv/keel-svelte`, `@kolektiv/keel-react`, `@kolektiv/keel-vue`, `@kolektiv/keel-solid`, `@kolektiv/keel-preact`, `@kolektiv/keel-lit`, `@kolektiv/keel-angular` | | npm pack toolchain | `@kolektiv/keel-pack` | diff --git a/buildSrc/src/main/kotlin/keel.publishing-conventions.gradle.kts b/buildSrc/src/main/kotlin/keel.publishing-conventions.gradle.kts index b707366..980a0b3 100644 --- a/buildSrc/src/main/kotlin/keel.publishing-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/keel.publishing-conventions.gradle.kts @@ -6,8 +6,8 @@ plugins { val febDisplayName = providers.gradleProperty("keel.displayName").orElse("Keel") val febDescription = providers.gradleProperty("keel.description") .orElse("Host-owned routing and swappable frontend packs for Kotlin servers.") -val febUrl = providers.gradleProperty("keel.url").orElse("https://github.com/kolektiv/keel") -val febScm = providers.gradleProperty("keel.scm").orElse("scm:git:https://github.com/kolektiv/keel.git") +val febUrl = providers.gradleProperty("keel.url").orElse("https://github.com/KolektivComputer/keel") +val febScm = providers.gradleProperty("keel.scm").orElse("scm:git:https://github.com/KolektivComputer/keel.git") val febLicenseName = providers.gradleProperty("keel.licenseName").orElse("Apache-2.0") val febLicenseUrl = providers.gradleProperty("keel.licenseUrl") .orElse("https://www.apache.org/licenses/LICENSE-2.0.txt") diff --git a/docs/CI_DUAL_PUBLISH.md b/docs/CI_DUAL_PUBLISH.md new file mode 100644 index 0000000..eacdacf --- /dev/null +++ b/docs/CI_DUAL_PUBLISH.md @@ -0,0 +1,55 @@ +# Dual-publish (GH Packages + Yuri + JSR) + +Org epic: [KolektivComputer/.github#2](https://github.com/KolektivComputer/.github/issues/2) +Spine: [gradle-conventions#1](https://github.com/KolektivComputer/gradle-conventions/pull/1) → plugin `computer.kolektiv.publishing` + +## Maven +- GroupId: `computer.kolektiv.keel` (org family `computer.kolektiv.*`) +- Dual repositories: GitHub Packages `https://maven.pkg.github.com/KolektivComputer/keel` **and** Yuri Capital (`maven-releases` / `maven-snapshots`) when credentials are present +- Prefer `id("computer.kolektiv.publishing")` once the conventions plugin is published; until then repos are inlined to match that plugin + +## npm +- Scope **`@kolektiv/...` only** — do not invent a second JS scope +- Dual: existing Yuri Capital npm (where used) + `https://npm.pkg.github.com` with `@kolektiv:registry=…` +- Auth: `NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}` with `permissions.packages: write` + +## JSR +- Scope `@kolektiv` (owned) +- Actions: OIDC only — `permissions.id-token: write` — **no org `JSR_TOKEN`** +- Mey: link each package on jsr.io for GitHub Actions trusted publishing +- Not a substitute for npm publish + +## Workflow paste (token may lack `workflows` scope) + +```yaml +permissions: + contents: read + packages: write + id-token: write # JSR OIDC +``` + +Maven job env: +```yaml +GITHUB_ACTOR: ${{ github.actor }} +GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# optional Yuri dual: +# YURI_CAPITAL_REPO_USERNAME / YURI_CAPITAL_REPO_PASSWORD (org secrets) +``` + +npm → GitHub Packages: +```yaml +- uses: actions/setup-node@v4 + with: + registry-url: https://npm.pkg.github.com + scope: "@kolektiv" +env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} +``` + +JSR: +```yaml +- run: npx jsr publish +``` + +Kotlin packages remain `dev.kolektiv.keel.*` until a follow-up; Maven group is `computer.kolektiv.keel`. +npm stays `@kolektiv/*`. diff --git a/docs/src/content/docs/getting-started/host.mdx b/docs/src/content/docs/getting-started/host.mdx index 3c49e6c..eb201ba 100644 --- a/docs/src/content/docs/getting-started/host.mdx +++ b/docs/src/content/docs/getting-started/host.mdx @@ -19,7 +19,7 @@ The pack (framework pages, Vite, `.feb`) is the next page: ## 1. Gradle project Java 17+, Kotlin 2.2, Ktor 3. Add the **releases** repo and -`dev.kolektiv.keel:core` from +`computer.kolektiv.keel:core` from Server Installation. This walkthrough also needs the Ktor adapter and a server engine. @@ -43,7 +43,7 @@ repositories { } dependencies { - implementation("dev.kolektiv.keel:ktor:0.1.0") + implementation("computer.kolektiv.keel:ktor:0.1.0") implementation("io.ktor:ktor-server-netty:3.1.3") } @@ -67,7 +67,7 @@ repositories { } dependencies { - implementation 'dev.kolektiv.keel:ktor:0.1.0' + implementation 'computer.kolektiv.keel:ktor:0.1.0' implementation 'io.ktor:ktor-server-netty:3.1.3' } diff --git a/docs/src/content/docs/getting-started/server.mdx b/docs/src/content/docs/getting-started/server.mdx index cbb2cf6..1f2ae3e 100644 --- a/docs/src/content/docs/getting-started/server.mdx +++ b/docs/src/content/docs/getting-started/server.mdx @@ -1,6 +1,6 @@ --- title: Server installation -description: Add the Yuri Capital Maven releases repo and dev.kolektiv.keel:core. +description: Add the Yuri Capital Maven releases repo and computer.kolektiv.keel:core. category: getting-started order: 2 --- @@ -20,7 +20,7 @@ A version like `0.0.2-SNAPSHOT.4` is **not** a canonical Maven snapshot: snapshots end in `-SNAPSHOT`, and `maven-snapshots` rejects every other version. Do not add more than one. Gradle will mix channels. -This page is **core** only (`dev.kolektiv.keel:core`). It has no Ktor +This page is **core** only (`computer.kolektiv.keel:core`). It has no Ktor dependency. Protocol format `keel/1`. Seed version `1`. ## Releases (recommended) @@ -41,7 +41,7 @@ Current release: `0.1.0`. } dependencies { - implementation("dev.kolektiv.keel:core:0.1.0") + implementation("computer.kolektiv.keel:core:0.1.0") }`, }, { @@ -54,14 +54,14 @@ dependencies { } dependencies { - implementation "dev.kolektiv.keel:core:0.1.0" + implementation "computer.kolektiv.keel:core:0.1.0" }`, }, ]} /> - A Ktor process also needs `dev.kolektiv.keel:ktor` and a server engine. + A Ktor process also needs `computer.kolektiv.keel:ktor` and a server engine. That wiring lives on the Host (Ktor) page, not here. diff --git a/gradle.properties b/gradle.properties index efba7f2..dfc333e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -group=dev.kolektiv.keel +group=computer.kolektiv.keel version=0.1.0 org.gradle.jvmargs=-Xmx1g -Dfile.encoding=UTF-8 diff --git a/llms.txt b/llms.txt index f857551..13a0114 100644 --- a/llms.txt +++ b/llms.txt @@ -2,7 +2,7 @@ > Host-owned routing and render-time frontend packs. The server owns URLs, page ids, and payload types. Packs implement ids — never paths. -Keel is a protocol plus Kotlin/JS libraries. Format `keel/1`. First host adapter is Ktor; seven pack adapters ship — Svelte 5, React 18/19, Vue 3, Solid 1.9, Preact 10, Lit 3, and Angular 19 (Svelte was the first). Maven: `dev.kolektiv.keel:core`, `dev.kolektiv.keel:ktor`. npm: `@kolektiv/keel`, `@kolektiv/keel-svelte`, `@kolektiv/keel-react`, `@kolektiv/keel-vue`, `@kolektiv/keel-solid`, `@kolektiv/keel-preact`, `@kolektiv/keel-lit`, `@kolektiv/keel-angular`, `@kolektiv/keel-pack`. +Keel is a protocol plus Kotlin/JS libraries. Format `keel/1`. First host adapter is Ktor; seven pack adapters ship — Svelte 5, React 18/19, Vue 3, Solid 1.9, Preact 10, Lit 3, and Angular 19 (Svelte was the first). Maven: `computer.kolektiv.keel:core`, `computer.kolektiv.keel:ktor`. npm: `@kolektiv/keel`, `@kolektiv/keel-svelte`, `@kolektiv/keel-react`, `@kolektiv/keel-vue`, `@kolektiv/keel-solid`, `@kolektiv/keel-preact`, `@kolektiv/keel-lit`, `@kolektiv/keel-angular`, `@kolektiv/keel-pack`. Live contract: `GET /__keel/schema` on any Keel host. Scaffold a pack with `keel-scaffold `. @@ -11,7 +11,7 @@ Docs: https://keel.mey.cat/ (Cloudflare Pages; local `pnpm dev` is http://127.0 ## Docs - [What is Keel](https://keel.mey.cat/docs/getting-started/): host-owned routing, packs implement ids -- [Server Installation](https://keel.mey.cat/docs/getting-started/server/): Maven — one repo (`maven-releases`, `maven-snapshots`, or `keel-maven` for unique pre-releases), `dev.kolektiv.keel:core` +- [Server Installation](https://keel.mey.cat/docs/getting-started/server/): Maven — one repo (`maven-releases`, `maven-snapshots`, or `keel-maven` for unique pre-releases), `computer.kolektiv.keel:core` - [Client Setup](https://keel.mey.cat/docs/getting-started/client/): npm — `keel-npm` registry, `@kolektiv/keel*`, install and bootstrap per adapter - [Host (Ktor)](https://keel.mey.cat/docs/getting-started/host/): stand up a Keel host - [Pack](https://keel.mey.cat/docs/getting-started/pack/): keel-scaffold (`--framework`) or keelPack in Vite