Metadata-Version: 2.4
Name: pycforge-sdk
Version: 0.22.0
Summary: Conversion-extension authoring SDK with an optional PySide6 desktop
License-Expression: GPL-3.0-only
Requires-Python: <3.14,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: gui
Requires-Dist: PySide6<7,>=6.8; extra == "gui"
Dynamic: license-file

<img src="https://res.cloudinary.com/vppzdwxg/image/upload/v1793376351/pcf_sdk_banner.png" alt="PyCForge SDK" width="640">

# PyCForge SDK 0.22.0

PyCForge SDK is for **human developers, engineers and AI programming tools**
creating `*import` conversion extensions. Its desktop, command line and Python
API share one authoring service: create projects, choose engine-supported
operations, write Help, manage fixtures, save and recover work, and package
`.pcfplugin` extensions for PyCForge.

**PyCForge supplies standardized format files** describing available conversion
capabilities, starters, forms and requirements. The SDK uses that data; PyCForge
owns Crucible's conversion semantics and compatibility with C compilation.
The SDK requires no C compiler and never invokes one. It includes no AI model.

## Create an import step by step

**New → Use walkthrough** provides five focused setup steps: starting point,
project location, package identity, export names, and review. Select a starter
from the connected engine and customize its supported fields. Back navigation
keeps your entries; **Create directly** uses the same fields.

The optional authoring guide continues through functions, package Help, function
Help, fixtures, and review. Switch to direct editing whenever useful. Advanced
controls and full project JSON remain available.

- **Author:** edit engine-defined forms, explanations and fixture sources. Add,
  duplicate, rename and remove fixtures through a reviewed change.
- **Check:** Scan identifies incomplete authoring. Check fixtures previews
  conversion results. **Verify conversions** records acceptance, expected
  rejection diagnostics, and source-call coverage for the saved suite.
- **Run fixtures in PyCForge.** After **Verify conversions**, copy the displayed
  command for your selected engine: `python -m pycforge verify-extension PROJECT`.
  PyCForge compiles each runnable fixture and compares its stdout, stderr and exit
  code with the values you authored. It uses PCFC11 by default. An installed GCC
  can be selected by adding `--compiler-family gcc`.
- **Package.** Choose **Scan**, then **Package** when the two checks pass. Review
  the namespace and usage example before registering the extension with PyCForge.

## Save, pause and recover

**Save** writes project fields, Help and expectations. Fixture source has its own
save action. Unfinished work can be saved outside the project:

- **Save setup** retains New Project choices in `.pcfsetup`; open it to resume,
  including offline. Changed starter data requires review.
- **File → Save project draft** retains project edits, Help, expectations and
  authoring position in `.pcfdraft`. It also supports incomplete advanced JSON
  and unfinished fixture inputs.
- **File → Open project draft** compares original, edited and current disk data
  before resuming or explicitly saving. Pending fixture changes apply separately.
- **Save repair as** retains original and edited source in `.pcfrepair`.
  **File → Open source repair** reviews it against the current source.

**Review current draft** helps reconcile external edits while keeping your open
buffer. Checkpoints are explicit saves, not autosave or whole-project backups.
Later unsaved edits and missing source files need separate recovery. Conflict
checks protect existing files; there is no automatic merge or multi-file
transaction. New checkpoints require filesystem hard-link support.

## Install and connect

Use Python 3.11–3.13 and install PyCForge separately. For the desktop:

```sh
python -m pip install --upgrade "./pycforge_sdk-0.22.0-py3-none-any.whl[gui]"
pycforge-sdk-ui
```

On Windows, `py` can replace `python`. Omit `[gui]` for headless use without
PySide6. The headless SDK has no required third-party dependencies.

Startup finds installed PyCForge environments. **Locate PyCForge** handles other
locations. **Engine connection** accepts its interpreter directly:
`Scripts/python.exe` in a Windows environment or `bin/python` on Linux/macOS.
**This Python** selects a shared installation. PyCForge displays its interpreter
under **About → Distribution → SDK Python**.

**Refresh** reads the selected installation's versioned communication files.
Compatible capability additions need no matching SDK release. Unsupported
required protocols are reported explicitly, retaining the compatible cache.
Conversion verification requires authoring format 1.x, supplied by PyCForge
1.3.110 or later. Packaging requires the native fixture report supplied by
PyCForge 1.3.144 or a compatible engine. Older reference remains browsable.
Connecting installs neither product. **Continue offline** supports local editing,
recovery and cached reference.

## Human and automated clients

Press **F1** for Help. `pycforge-sdk manual` reads the installed guide without an
engine. An AI author can start with `pycforge-sdk manual --topic ai-author`
for a worked import, verification decisions and recovery.
Use `--engine-python` for a separate engine environment and global `--json` for
structured results, diagnostics and field locations. Python clients import
`SDK` from `pycforge_sdk` and use the same explicit operations.

Recheck conversions after changing project data, Help, source, SDK or engine.
Historical native reports and existing packages remain intact. New conversion
reports explicitly identify their limited scope. Windows and macOS desktop
behavior require their own platform review; a portable wheel does not establish
that review.

## License

GNU General Public License v3.0 only. The distribution includes `LICENSE`.
