Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ Cubacle remains a separate optional Rust solver provider, not Rust code inside
PuzlWerk. Preserve physical identity, exact frames and sticker-up orientation
when adapting state; color-only codecs cannot carry all printed-sticker data.
Verify API compatibility, provenance and licensing before reuse: CubeAssembler
is MIT, and adopting AGPL-covered code requires an explicit license/distribution
decision, not an assumption that a thin adapter removes obligations.
is AGPL-3.0-or-later, and adopting code under another license requires an explicit
license/distribution decision, not an assumption that a thin adapter removes
obligations. On 2026-11-17 the owner decided to relicense CubeAssembler from MIT to
AGPL-3.0-or-later
([wstein/cube-assembler#29 comment](https://github.com/wstein/cube-assembler/issues/29#issuecomment-6956721339)).

## PuzlWerk naming conventions

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ To release the current version without bumping it (for example the first
there is one, and list the test results.
- Attach before-and-after screenshots for scanner or UI changes.

Contributions are released under the project's [MIT License](LICENSE).
Contributions are released under the project's [AGPL-3.0-or-later license](LICENSE).
682 changes: 661 additions & 21 deletions LICENSE

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ your browser.
[![CI](https://github.com/wstein/cube-assembler/actions/workflows/ci.yml/badge.svg)](https://github.com/wstein/cube-assembler/actions/workflows/ci.yml)
[![Pages](https://github.com/wstein/cube-assembler/actions/workflows/pages.yml/badge.svg)](https://github.com/wstein/cube-assembler/actions/workflows/pages.yml)
![TypeScript: strict](https://img.shields.io/badge/TypeScript-strict-blue)
![License: MIT](https://img.shields.io/badge/License-MIT-cyan.svg)
![License: AGPL-3.0-or-later](https://img.shields.io/badge/License-AGPL--3.0--or--later-cyan.svg)

CubeAssembler figures out which photo belongs to each face and how that face
was rotated. Guided capture narrows the possibilities to 64 arrangements; the
Expand Down Expand Up @@ -79,7 +79,7 @@ for browser tests, lint and formatting, fixture uploads, and Pages deployment.

## License and trademarks

MIT © 2026 Werner Stein. See [LICENSE](LICENSE). The bundled fonts and runtime
AGPL-3.0-or-later © 2026 Werner Stein. See [LICENSE](LICENSE). The bundled fonts and runtime
libraries retain their own licenses; see the [third-party notices](public/licenses/index.html).

Rubik's, Rubik's Cube, GoCube, GAN, QiYi, and other brand names are trademarks
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@
"rubiks-cube",
"wca"
],
"license": "MIT"
"license": "AGPL-3.0-or-later"
}
43 changes: 43 additions & 0 deletions test/projectLicense.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { createHash } from 'node:crypto'
import { readFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'

const read = (path: string): string =>
readFileSync(new URL(`../${path}`, import.meta.url), 'utf8')

// SHA-256 of https://www.gnu.org/licenses/agpl-3.0.txt (LF line endings).
const AGPL_3_SHA256 =
'0d96a4ff68ad6d4b6f1f30f713b18d5184912ba8dd389f86aa7710db079abcb0'

describe('project license', () => {
it('declares AGPL-3.0-or-later in package.json', () => {
const pkg = JSON.parse(read('package.json')) as { license: string }
expect(pkg.license).toBe('AGPL-3.0-or-later')
})

it('declares AGPL-3.0-or-later for the root entry of package-lock.json', () => {
const lock = JSON.parse(read('package-lock.json')) as {
packages: Record<string, { license?: string }>
}
expect(lock.packages[''].license).toBe('AGPL-3.0-or-later')
})

it('ships the complete GNU AGPL version 3 text as LICENSE', () => {
const text = read('LICENSE').replace(/\r\n/g, '\n')
expect(createHash('sha256').update(text).digest('hex')).toBe(AGPL_3_SHA256)
})

it('names the AGPL and not MIT in the own-license statements', () => {
const readme = read('README.md')
const section = readme.slice(readme.indexOf('## License and trademarks'))
expect(section).toContain('AGPL-3.0-or-later')
expect(section).not.toMatch(/\bMIT\b/)
expect(readme).toContain('License-AGPL--3.0--or--later')
expect(readme).not.toContain('License-MIT')
expect(read('CONTRIBUTING.md')).toContain('AGPL-3.0-or-later')
expect(read('CONTRIBUTING.md')).not.toMatch(/project's \[MIT License\]/)
expect(read('AGENTS.md').replace(/\s+/g, ' ')).toContain(
'CubeAssembler is AGPL-3.0-or-later',
)
})
})
Loading