Sofuu (素風) JavaScript Runtime
Copyright (c) 2026 Haruhito

================================================================================
OPEN SOURCE ARCHITECTURE — SOFUU & QTSQ
================================================================================
The Sofuu execution runtime (engine, CLI, JavaScript/TypeScript APIs,
agents, MCP, HTTP, vector operations, local memory, embeddings, and core
developer tooling) is open source under the MIT License (see LICENSE).

QTSQ Cognitive Vector Memory Engine:
The Quantum Tensor Sequence (QTSQ) on-device vector memory core is open source
under the Apache License, Version 2.0 and hosted at
https://github.com/haruhito2666/qtsq.
Copyright 2026 Haruhito. The full Apache-2.0 license text ships alongside
this file as `LICENSES/QTSQ-FORMAT.txt`.

================================================================================
THIRD-PARTY OPEN SOURCE COMPONENTS
================================================================================
This software also includes the following third-party open-source components:

--------------------------------------------------------------------------------
QuickJS JavaScript Engine
Copyright (c) 2017-2021 Fabrice Bellard
Copyright (c) 2017-2021 Charlie Gordon
License: MIT — https://bellard.org/quickjs/

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:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

--------------------------------------------------------------------------------
libuv — Asynchronous I/O Library
Copyright (c) 2015-present libuv project contributors
Copyright (c) Joyent, Inc. and other Node contributors
License: MIT — https://github.com/libuv/libuv

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:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

--------------------------------------------------------------------------------
http-parser — HTTP/1.1 Parser
Copyright (c) Joyent, Inc. and other Node contributors
License: MIT — https://github.com/nodejs/http-parser

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:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

--------------------------------------------------------------------------------
libcurl — Client-side URL Transfer Library
Copyright (c) 1996-2024 Daniel Stenberg and curl contributors
License: curl (MIT-style) — https://curl.se/docs/copyright.html

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:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

--------------------------------------------------------------------------------
OpenSSL — Cryptography and TLS Library (Android/iOS libsofuu builds)
Copyright 1998-2024 The OpenSSL Project Authors
License: Apache License, Version 2.0 — https://www.openssl.org/source/license.html

Statically linked into the Android and iOS `libsofuu` builds only (as the TLS
backend of the bundled libcurl); absent from the desktop/server CLI binaries.
The full Apache-2.0 text applies — see https://www.apache.org/licenses/LICENSE-2.0.

--------------------------------------------------------------------------------
libopus (macOS builds with QTSQ audio: linked STATICALLY so the shipped binary
carries no Homebrew dylib — H-05. Build with SOFUU_NO_OPUS_AUDIO=1 to omit audio
decoding entirely; other platforms keep the option via SOFUU_LINK_OPUS=1)
Copyright (c) 2001-2011 Xiph.Org, Skype Limited, Octasic, Jean-Marc Valin,
Timothy B. Terriberry, CSIRO, Gregory Maxwell, Mark Borgerding, Erik de Castro Lopo
License: BSD-3-Clause — https://opus-codec.org/

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.
- Neither the name of the Xiph.Org Foundation nor the names of its
  contributors may be used to endorse or promote products derived from this
  software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE.

--------------------------------------------------------------------------------
Rust crate dependencies

The runtime links roughly 500 third-party Rust crates recorded in `Cargo.lock`.
Every crate in the graph for the shipped CLI binary is licensed under a
permissive licence (MIT, Apache-2.0, BSD-2/3-Clause, ISC, Zlib,
Unicode-3.0 or public domain). There are no GPL, AGPL or SSPL crates in the
graph, and no LGPL-only crate in any shipped configuration.

Two crates (`r-efi` and `getrandom`) offer LGPL-3.0 as one branch of an
OR-expression; Sofuu uses the non-LGPL branch (MIT/Apache-2.0), and the LGPL
branch is only reachable on the UEFI target, which Sofuu never builds.

--------------------------------------------------------------------------------
Desktop wrapper only (NOT part of the shipped CLI binary)

The optional Tauri desktop wrapper under `sofuu-desktop/src-tauri` pulls five MPL-2.0
crates. They are NOT compiled into `sofuu`, `libsofuu.a` or `libsofuu.dylib`;
they exist only when the desktop application is built. MPL-2.0 permits
combination with differently licensed code provided the MPL-covered files
remain under MPL-2.0 and their source is made available — the unmodified
crate sources are published at https://crates.io.

The `sofuu-landing` site carries LGPL-3.0-licensed assets and five SIL OFL-1.1
fonts; those are web assets and are also absent from every binary artefact.
`deps/libuv/docs` is CC-BY-4.0 (documentation only, not linked).

--------------------------------------------------------------------------------
ACCURACY NOTE (AUDIT-2026-10-29)

Earlier revisions of this file ended with the assertion "No GPL, LGPL, or
copyleft licenses are used." That statement was false and has been removed:
it ignored the MPL-2.0 desktop wrapper crates, the LGPL-3.0 web assets, the
OFL fonts, the CC-BY-4.0 documentation and libopus, which was not listed at
all. The claim that holds — and that the release gate now checks — is the
narrower, verifiable one above: no copyleft-licensed code is linked into the
shipped binaries, and every licence that is linked is reproduced in this file.
--------------------------------------------------------------------------------
