Metadata-Version: 2.4
Name: pg-language-integrated
Version: 0.3.0rc2
Summary: PG semantic programming language and integrated SDK (community preview)
Keywords: pg-language,semantic,compiler,sdk
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Software Development :: Interpreters
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: cryptography>=46.0.0

# PG Language — Integrated SDK 0.3.0 RC2

**Experimental prerelease / 試験公開候補**

PG is a semantic programming language that fixes word senses, types, units and contracts before execution. This unofficial fan software is inspired by *Trickcal* (トリッカル・もちもちほっぺ大作戦). It is not endorsed by the game developer or publisher. No game artwork, audio or game executable is included. AI-assisted development; the SDK excludes Pira-Raw and PG-Agent/AI Mode.

## Installation

Python 3.11+; install into a fresh virtual environment. Native C execution requires a compatible C compiler. The cryptography dependency is installed by pip.

After publication:

```sh
python -m pip install pg-language-integrated==0.3.0rc2
pg-preview --version
pg-core --help
pg-sdk --help
```

Two profiles are provided: `pg-core` (legacy core, Native C, Saki, Bridge, System) and `pg-preview` (independent runtime, networking, standard library and limited experimental CUDA). Their IR/ABI formats are not interchangeable. Do not install this package alongside other PG distributions that share its module names.

## Quick start

Create `light.pg`:

```text
(recipe: light_observation)
(input: hikari/lit LightValue lux)
(output: sample LightValue)
(Observe)
hikari hakaru => sample
sample wo kiroku/observation ni nokosu
```

Create `light.json`:

```json
{
  "hikari/lit": {
    "value": 42.5,
    "provenance": {
      "source": "demo:synthetic",
      "captured_at": "2026-12-03T00:00:00Z"
    },
    "unit": "lux"
  }
}
```

```sh
pg-preview check light.pg
pg-preview run light.pg light.json
```

## Scope and safety

The integrated SDK includes Core, Native Lite, Saki, Jisho, Live, System, System Link, VM, Mining, Health, Safe, Recovery, Team, Root, OrgNet, Multi-node, Robustness, Chaos, Adaptive and the independent preview runtime. Many legacy components are reference implementations. Full self-hosting, complete multi-host execution, full GPU support and formal 742/750-case conformance are not established.

PG-Net supports policy-controlled HTTPS/JSON, bounded retries and persistent queues. The independent RC2 profile was tested on Windows (119 passed, one TLS fixture skipped) and a public GitHub HTTPS GET succeeded. The integrated build has Linux regression results; its Windows and physical CUDA tests remain pending. Earlier Kaggle matrix multiplication results are not SDK GPU qualification.

**Use trusted programs only.** Legacy Bridge/FFI can execute external code with host permissions. This is not an OS sandbox, a security-certified product, or a production PKI. Do not run untrusted programs or use real secrets. CUDA is optional and requires a compatible PyTorch installation and driver.

## Rights

Author-supplied PG code. Distribution license for downstream modification, redistribution and commercial use has not been selected. Availability for download is not a grant of those permissions. Third-party dependencies retain their own terms. This candidate is for author review before upload; third-party rights and applicable fan-content conditions must be checked before public release. See the official fan-content guidance: https://trickcal.biligames.com/news/jp/?news_detail_id=181782100307091368
