Metadata-Version: 2.4
Name: faber-tessera
Version: 0.4.1
Summary: CLI client for the Faber AI code generation service
Author: Faber AI
License-Expression: LicenseRef-Proprietary
Project-URL: Homepage, https://faberai.dev
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: httpx>=0.27
Requires-Dist: click>=8.1
Requires-Dist: pyyaml>=6.0
Requires-Dist: mcp<2,>=1.27.2
Requires-Dist: pydantic>=2.0
Requires-Dist: zstandard>=0.23
Requires-Dist: pynacl>=1.5
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-mock>=3.12; extra == "dev"
Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
Dynamic: license-file

# Faber Tessera

Tessera 0.4.1 is the production Python package containing
its CLI, stdio MCP server and background delivery process. CLI setup configures
credentials, the selected host and any platform-specific service registration;
there are no separately installed runtime components. Setup registers a systemd
user service on Linux or a user LaunchAgent on macOS. The shared delivery process
must remain running while builds finish. Native Windows and remote/cloud worktree
delivery are not supported.

You need Python 3.10 or later and the Codex or Claude Code CLI on your `PATH`.
Install Tessera once with pipx:

```bash
pipx install faber-tessera
```

Alternatively, in a Python virtual environment, use
`python -m pip install --upgrade faber-tessera` instead of pipx.
Both commands install the same package. For an existing pipx installation, run
`pipx upgrade faber-tessera`. After upgrading, run `tessera --version` (this release
reports `0.4.1`) and repeat your host registration below to update the background
process and MCP interpreter. Your existing private configuration is preserved;
you only need to run setup once.

Run setup in your own terminal. Enter your Faber key at the hidden prompt and
accept the remaining defaults unless you need a custom configuration:

```bash
tessera setup
```

Register the development environment you use (run both commands only if you use
both hosts). Registration starts the bundled delivery process automatically:

```bash
# Codex:
tessera install --codex
# Claude Code:
tessera install --claude-code
```

Check that local delivery is ready:

```bash
tessera delivery status
```

Restart the host session and inspect `/mcp`. The installer registers the absolute
interpreter from this Tessera installation through `codex mcp add` or
`claude mcp add --scope user --transport stdio`. No Faber key enters host config,
command arguments or a service definition. `TESSERA_CONFIG` selects a private config
file, and the installer forwards its absolute path to both host and delivery.
For unattended setup, use a private key file with
`tessera setup --defaults --api-key-file /private/faber-key`; never put the key
itself in shell arguments or paste it into an AI conversation. Instructions can
be reopened from your website account without rotating the existing key.

On macOS, run registration in a terminal inside your logged-in desktop session.
The LaunchAgent starts at login and runs independently of Claude Code or Codex.
Laptop sleep suspends local work; receipt recovery resumes when the laptop wakes
and the network returns. Logging out stops the user agent until the next login.
Use `tessera delivery uninstall` to remove the service; saved receipts remain.

Use `faber_decompose_guide` for the current input grammar. Submit `faber_build`
with `decomposition_path`, `oracle_path`, and absolute `worktree_root`. The oracle
is a `faber.acceptance-oracle.v2` JSON packet containing executable source,
target, command, assertion descriptions and optional preparation/compilation.
A complete oracle pass on the resulting source is the acceptance authority.

A receipt acknowledges dispatch only. The independent delivery service monitors
the build and lands its validated files. After a receipt the orchestrator stops
that task without polling or creating a competing implementation. Inspect files
on a later turn; automatic completion notifications are not required or promised.
Missing services and unavailable guidance are typed tool errors. A transport
failure after submission is indeterminate and must not trigger an automatic retry.
When reporting a failure, save the receipt ID and error message. The
delivery status command checks the local process and active receipt count; it
does not report an individual build's result. Check the selected worktree for
landed changes before treating a submission as completed.

For project context, supply the smallest useful `project_root` inside the selected
worktree. Captured paths retain their worktree-relative names. Changed targets,
undeclared output paths and failed builds are not landed. The SQLite ledger
contains receipt, worktree and digest metadata, never source contents.

Configuration is `~/.tessera/config.yaml`; a one-time `tessera setup` creates it
with owner-only permissions. `FABER_NEXUS_ENDPOINT` and `FABER_BUNDLE_PK` can
select another service/public encryption key. Durable installations require
credentials in the private config, since a user service does not inherit a host's
shell environment. Package updates are always explicit.

For development:

```bash
python -m venv .venv
.venv/bin/python -m pip install -r requirements.lock
.venv/bin/python -m pip install --no-deps -e .
.venv/bin/python -m pytest -q
```
