Impossible SDK

Reference

Commands

Every tool of the SDK and what it takes, as the tool itself says it.

bootstrap.py

python tools/bootstrap.py --help
usage: bootstrap.py [-h] [--archives ARCHIVES]

Install the pinned toolchain once per machine, hash-checked. Stdlib only. It lands in
IMPOSSIBLE_TOOLS when set, otherwise %LOCALAPPDATA%\ImpossibleSDK on Windows and
~/.cache/impossible-sdk on Linux, so every program shares one copy.

options:
  -h, --help           show this help message and exit
  --archives ARCHIVES  folder of already downloaded archives (still hash-checked)

build.py

python tools/build.py --help
usage: build.py [-h] [--no-test] [--out OUT]

Build the SDK and its samples with the pinned toolchain, then run the tests. The same command
works on Windows and in WSL; output goes to build/windows or build/linux. Both build Windows
programs.

options:
  -h, --help  show this help message and exit
  --no-test
  --out OUT   build folder (default build/<host>)

check_imports.py

python tools/check_imports.py --help
usage: check_imports.py [-h] --tier TIER program

Fail when a program needs more of Windows than its tier allows. Stdlib only.

positional arguments:
  program

options:
  -h, --help   show this help message and exit
  --tier TIER

new_app.py

python tools/new_app.py --help
usage: new_app.py [-h] --label LABEL --tier TIER [--window] --license LICENSE [--goal GOAL]
                  [--kits KITS]
                  folder

Start a program's repository: python3 tools/new_app.py <folder> --label <name> --license <file> [--window] --tier <n>

The folder's name is the program's name. It becomes a git repository pinned to
this SDK's commit. With --kits <Conclave-SDK folder> --goal <sentence> it also gets the todo,
reviewer and unattended kits and the Heliograph hook. Nothing is sent anywhere.

positional arguments:
  folder

options:
  -h, --help         show this help message and exit
  --label LABEL
  --tier TIER
  --window
  --license LICENSE  a GPL-3.0 LICENSE file to copy
  --goal GOAL        one sentence for AGENTS.md, with --kits
  --kits KITS        a Conclave-SDK checkout

app_build.py

python tools/app_build.py --help
usage: app_build.py [-h] [--no-test] [--any-sdk] [--out OUT] program

Build and test a program that lives in its own repository.

    python <sdk>/tools/app_build.py <program folder> [--no-test] [--any-sdk]

The program's sdk.json names the SDK commit it is built with. When this checkout
is at another commit or has local changes, that commit is copied out of its
history once and used instead, so a program and the SDK can move separately.
--any-sdk builds with this checkout as it is, for working on both at once.

positional arguments:
  program

options:
  -h, --help  show this help message and exit
  --no-test
  --any-sdk
  --out OUT   build folder (default <program>/build/<host>)

prove.py

python tools/prove.py --help
usage: prove.py [-h] folder

Prove a repository on Windows, from WSL: python3 tools/prove.py <repository folder>

Builds the committed work in WSL, then Windows' own Python runs the tests against
those same programs where they are, on WSL's disk, as one call from WSL. A test
that needs Windows' file system makes its folder with tempfile, which on Windows
is a Windows disk.

positional arguments:
  folder

options:
  -h, --help  show this help message and exit

contribute.py

python tools/contribute.py --help
usage: contribute.py [-h] {start,finish} [folder]

Add to Impossible SDK from a program's run, while other runs work on it too.

    python3 ../ImpossibleSDK/tools/contribute.py start            prints a folder
    python3 ../ImpossibleSDK/tools/contribute.py finish <folder>  from the program's folder

`start` gives a folder of your own with the SDK's newest main: make, commit and
have Codex review the change there, and never in the SDK's own folder, where its
run may be working. `finish` brings it onto the newest main, builds and tests that
very commit in a folder of its own, pushes it, pins the program in this folder to it and removes the folder. One
finish at a time; what does not pass or does not fit is not pushed.

positional arguments:
  {start,finish}
  folder

options:
  -h, --help      show this help message and exit