Skip to content
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Python entry points are `pineforge_codegen.transpile()` and
`pineforge_codegen.transpile_full()`; the Pyodide package ships the
`gate/glue.py` JSON protocol. See `docs/PUBLIC_CONTRACT.md`.

This is the **source-available** half of the PineForge stack (PineForge
Source License 1.2 — see `LICENSE`). The runtime half (`pineforge-engine`,
This is the **source-available** half of the PineForge stack (Tunaxis
Source License 1.3 — see `LICENSE`). The runtime half (`pineforge-engine`,
Apache-2.0) lives in a sibling repo and is typically checked out at
`../pineforge-engine`. From 1.0.0 on, a released codegen `X.Y.Z` pairs only
with engine `vX.Y.Z`; prereleases match exactly. Codegen 1.3.0 pairs with
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ supported as exact pairs; on the 0.x line they are independent. See the
the release commit. A prerelease note describes changes since the preceding
prerelease or stable tag; the final stable note consolidates the series.

## Unreleased

### Renamed to Tunaxis

- The product is named **Tunaxis**.
- The distribution is `tunaxis-codegen`, the import is `tunaxis_codegen`, the
CLI is `tunaxis-cpp-allowlist`, and the npm package is `@tunaxis/codegen-pyodide`.
- The old names keep working through forwarding packages; legacy imports and
CLI names remain available.
- The C++ namespace, headers, macros, environment variables and C ABI remain
unchanged for now.
- The license is now the **Tunaxis Source License 1.3** (the PineForge Source License 1.2, renamed), with the same terms.

## 1.6.1 — 2026-10-18

A patch release of the exact engine/codegen pair, paired with engine `v1.6.1`
Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Python entry points are `pineforge_codegen.transpile()` and
`pineforge_codegen.transpile_full()`; the Pyodide package ships the
`gate/glue.py` JSON protocol. See `docs/PUBLIC_CONTRACT.md`.

This is the **source-available** half of the PineForge stack (PineForge
Source License 1.2 — see `LICENSE`). The runtime half (`pineforge-engine`,
This is the **source-available** half of the PineForge stack (Tunaxis
Source License 1.3 — see `LICENSE`). The runtime half (`pineforge-engine`,
Apache-2.0) lives in a sibling repo and is typically checked out at
`../pineforge-engine`. From 1.0.0 on, a released codegen `X.Y.Z` pairs only
with engine `vX.Y.Z`; prereleases match exactly. Codegen 1.3.0 pairs with
Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to pineforge-codegen
# Contributing to Tunaxis Codegen

This is the source-available PineScript v6 to C++ translator. Read the
[license and contribution terms](LEGAL.md) before sending a material change.
Expand All @@ -10,8 +10,9 @@ contact luis@4pass.com.tw before opening a material pull request.
## Local setup

Use Python 3.11 or newer, Node 22, a C++17 compiler, CMake, and a matching
[`pineforge-engine`](https://github.com/pineforge-4pass/pineforge-engine)
checkout. Clone codegen and engine as siblings, then install the development
checkout of the Tunaxis engine (repository
[`pineforge-engine`](https://github.com/pineforge-4pass/pineforge-engine)).
Clone codegen and engine as siblings, then install the development
dependencies from this repository:

```bash
Expand Down
16 changes: 8 additions & 8 deletions LEGAL.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# Legal information

Summary of licensing, third-party components, and trademarks for `pineforge-codegen`. **Not** legal advice; consult counsel for your use case.
Summary of licensing, third-party components, and trademarks for `tunaxis-codegen` (formerly published as `pineforge-codegen`). **Not** legal advice; consult counsel for your use case.

## License

`pineforge-codegen` is **source-available**, **not** OSI "open source." It is distributed under the **PineForge Source License 1.2** — see [LICENSE](LICENSE), which is the controlling text.
`tunaxis-codegen` is **source-available**, **not** OSI "open source." It is distributed under the **Tunaxis Source License 1.3** — see [LICENSE](LICENSE), which is the controlling text.

- **Noncommercial use** — any noncommercial purpose, and use by a charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization or government institution for its teaching, research and other operations, is free.
- **Personal Trading** — free for a natural person to research, develop or backtest strategies and trade their **own** account with their **own** capital. Household, joint and retirement accounts and ordinary margin count as their own; a company's or fund's account does not, even a company they wholly own. An account that a proprietary-trading firm or funded-trader program provides or allocates to them, including a challenge, evaluation or simulated account, does not count as their own either.
- **Investment management** — managing, advising on or trading investment capital, or researching strategies for it (a friend's, clients' or investors' capital, an endowment, a pension fund, a public fund, a foundation's treasury, or an account a proprietary-trading firm or funded-trader program provides or allocates, including challenge, evaluation and simulated accounts), is **Commercial Use for every individual and every organization**, noncommercial organizations included, except Personal Trading.
- **Commercial Use** — investment management and any other use that is not free, such as use by or for a company or fund, embedding the software or its output in a product or service for others, or operating a hosted/public-facing service with it, requires a **commercial license** (email **enterprise@pineforge.dev**; the commercial-license store is coming soon).
- **Commercial Use** — investment management and any other use that is not free, such as use by or for a company or fund, embedding the software or its output in a product or service for others, or operating a hosted/public-facing service with it, requires a **commercial license** (email **enterprise@tunaxis.com**; the commercial-license store is coming soon).

Describe this project as **"source-available"** rather than "open source." The runtime it targets, [`pineforge-engine`](https://github.com/pineforge-4pass/pineforge-engine), is separate and **Apache-2.0**.

Releases up to and including 1.1.0 were published under the license text that came with them (the PolyForm Noncommercial License 1.0.0 with a PineForge supplement); copies of those releases keep that license. The PineForge Source License is a separate license and is not a PolyForm license.
Releases up to and including 1.1.0 were published under the license text that came with them (the PolyForm Noncommercial License 1.0.0 with a Tunaxis supplement); copies of those releases keep that license. The Tunaxis Source License is a separate license and is not a PolyForm license.

The PineForge Source License 1.1 replaced 1.0, and 1.2 replaces 1.1, for the code on `main` and in releases from 1.3.0 on. Version 1.1 clarified one point, that distributing the software or its output, changed or not, embedded in or bundled with a product or service made available to others is Commercial Use, not free distribution, unless it is for a permitted purpose. Version 1.2 makes two points explicit: an account a proprietary-trading firm or funded-trader program provides or allocates, including a challenge, evaluation or simulated account, is not a person's own account or capital, so trading it is not Personal Trading; and the capital in such an account, real or simulated, is investment capital, so trading it is investment management, which is Commercial Use. It changes nothing else. Release 1.2.0 was published under 1.1 and keeps that text; 1.3.0 is the first release published under 1.2.
The PineForge Source License 1.1 replaced 1.0, and the Tunaxis Source License 1.2 (formerly named the PineForge Source License) replaces 1.1, for the code on `main` and in releases from 1.3.0 on. Version 1.1 clarified one point, that distributing the software or its output, changed or not, embedded in or bundled with a product or service made available to others is Commercial Use, not free distribution, unless it is for a permitted purpose. Version 1.2 makes two points explicit: an account a proprietary-trading firm or funded-trader program provides or allocates, including a challenge, evaluation or simulated account, is not a person's own account or capital, so trading it is not Personal Trading; and the capital in such an account, real or simulated, is investment capital, so trading it is investment management, which is Commercial Use. It changes nothing else. Release 1.2.0 was published under 1.1 and keeps that text; 1.3.0 is the first release published under 1.2. The Tunaxis Source License 1.3, dated 2026-10-29, replaces 1.2 for the code on `main` and in releases after that date; compared with 1.2, it renames the licensor's product to Tunaxis and changes the commercial contact address, and the terms are unchanged.

## Copyright and licensor

The licensor is **PINEFORGE LLC**, a Delaware limited liability company. It holds the copyright in `pineforge-codegen`; the founder's rights in the software are assigned to it. Commercial licenses are granted by PINEFORGE LLC.
The licensor is **PINEFORGE LLC**, a Delaware limited liability company. It holds the copyright in `tunaxis-codegen` (formerly published as `pineforge-codegen`); the founder's rights in the software are assigned to it. Commercial licenses are granted by PINEFORGE LLC.

## What this repository is

A pure-Python PineScript v6 → C++ transpiler that emits source against the public PineForge engine C-ABI. It implements PineScript v6 from **TradingView's publicly published language documentation**; it does **not** incorporate TradingView proprietary source. Names like "PineScript v6" are used **nominatively** to describe the input language.
A pure-Python PineScript v6 → C++ transpiler that emits source against the public Tunaxis engine C-ABI. It implements PineScript v6 from **TradingView's publicly published language documentation**; it does **not** incorporate TradingView proprietary source. Names like "PineScript v6" are used **nominatively** to describe the input language.

## Third-party components

The transpiler has **no runtime dependencies** (`transpile()` and `transpile_full()` are its supported Python entry points). Development/test extras declared in `pyproject.toml` (`pytest`, etc.) are under their own upstream licenses. The opt-in compile checks invoke a C++ compiler against the separately-licensed Apache-2.0 engine headers; they skip cleanly without an engine checkout.

## Trademarks and affiliation

**TradingView** and **PineScript** are trademarks of their respective owners. `pineforge-codegen` is **not** affiliated with, endorsed by, or certified by TradingView. References to "PineScript v6" and any compatibility/parity statements are **nominative** and factual — compatibility and technical testing only, not a partnership or certification.
**TradingView** and **PineScript** are trademarks of their respective owners. `tunaxis-codegen` is **not** affiliated with, endorsed by, or certified by TradingView. References to "PineScript v6" and any compatibility/parity statements are **nominative** and factual — compatibility and technical testing only, not a partnership or certification.

## Contributions

Expand Down
Loading
Loading