Metadata-Version: 2.4
Name: ltcai
Version: 4.6.1
Summary: Lattice AI — local-first Living Brain workspace: conversation, durable memory, hybrid search, real agent/workflow runtimes, advanced graph exploration, and portable encrypted brain archives
Author: TaeSoo Park
License-Expression: MIT
Project-URL: Homepage, https://github.com/TaeSooPark-PTS/LatticeAI
Project-URL: Repository, https://github.com/TaeSooPark-PTS/LatticeAI
Project-URL: Documentation, https://github.com/TaeSooPark-PTS/LatticeAI/blob/main/README.md
Project-URL: Issues, https://github.com/TaeSooPark-PTS/LatticeAI/issues
Project-URL: Changelog, https://github.com/TaeSooPark-PTS/LatticeAI/blob/main/docs/CHANGELOG.md
Keywords: ai,llm,mlx,mcp,rag,vscode
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Framework :: FastAPI
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastapi<1,>=0.110
Requires-Dist: uvicorn<1,>=0.29
Requires-Dist: pydantic<3,>=2.7
Requires-Dist: httpx<1,>=0.27
Requires-Dist: pillow<13,>=10
Requires-Dist: openai<3,>=1.30
Requires-Dist: python-docx<2,>=1.1
Requires-Dist: openpyxl<4,>=3.1
Requires-Dist: python-pptx<2,>=0.6.23
Requires-Dist: python-multipart<0.1,>=0.0.9
Requires-Dist: keyring<26,>=24
Requires-Dist: authlib<2,>=1.3
Requires-Dist: cryptography<49,>=42
Requires-Dist: pdfplumber<0.12,>=0.11
Requires-Dist: pypdfium2<6,>=4.30
Requires-Dist: watchdog<7,>=4
Requires-Dist: psycopg[binary]<4,>=3.2
Provides-Extra: ann
Requires-Dist: sqlite-vec<1,>=0.1; extra == "ann"
Provides-Extra: postgres
Requires-Dist: psycopg[binary]<4,>=3.2; extra == "postgres"
Provides-Extra: local
Requires-Dist: mlx-vlm>=0.6.3; extra == "local"
Requires-Dist: mlx-lm; extra == "local"
Provides-Extra: voice
Requires-Dist: openai-whisper; extra == "voice"
Requires-Dist: SpeechRecognition; extra == "voice"
Requires-Dist: pydub; extra == "voice"
Provides-Extra: all
Requires-Dist: mlx-vlm>=0.6.3; extra == "all"
Requires-Dist: mlx-lm; extra == "all"
Requires-Dist: openai-whisper; extra == "all"
Requires-Dist: SpeechRecognition; extra == "all"
Requires-Dist: pydub; extra == "all"
Requires-Dist: sqlite-vec<1,>=0.1; extra == "all"
Requires-Dist: psycopg[binary]<4,>=3.2; extra == "all"
Dynamic: license-file

# Lattice AI

[![PyPI Version](https://img.shields.io/pypi/v/ltcai?label=PyPI)](https://pypi.org/project/ltcai/)
[![npm Version](https://img.shields.io/npm/v/ltcai?label=npm)](https://www.npmjs.com/package/ltcai)
[![VS Code Marketplace Version](https://vsmarketplacebadges.dev/version-short/parktaesoo.ltcai.svg)](https://marketplace.visualstudio.com/items?itemName=parktaesoo.ltcai)
[![Open VSX Version](https://img.shields.io/open-vsx/v/parktaesoo/ltcai?label=Open%20VSX)](https://open-vsx.org/extension/parktaesoo/ltcai)
[![CI Status](https://github.com/TaeSooPark-PTS/LatticeAI/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/TaeSooPark-PTS/LatticeAI/actions/workflows/ci.yml)
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)

**Lattice AI v4.6.1 is the local-first Living Brain release refresh.** It keeps
the v4 Brain Core, StorageEngine, FastAPI localhost API, Tauri shell, backup,
restore, model runtime, graph, and portability architecture intact while making
the release/publishable version `4.6.1` after the v4.6.0 PyPI immutability
block.

The product opens with a private local profile, studies the computer, recommends
models, asks before install/download/load work, then lands in Brain Chat. The
graph is still real and searchable, but it now grows out of the Brain as the
deepest exploration layer instead of acting like a separate dashboard.

External package registries are owner-published and can lag behind this GitHub
Release. Release uploads must use the exact v4.6.1 artifact filenames below.

## Living Brain Flow

### 1. Login

First launch opens to Login only. The local profile is the beginning of the
Brain, not a dashboard, graph, or setup grid.

![Login](output/release/v4.6.1/screenshots/01-login.png)

### 2. Environment Analysis

Lattice reads the machine locally and summarizes what kind of Brain this
computer can support.

![Environment Analysis](output/release/v4.6.1/screenshots/02-environment-analysis.png)

### 3. Recommended Models

The model step is a short recommendation list. It avoids catalog noise and keeps
runtime/install details behind clear user consent.

![Recommended Models](output/release/v4.6.1/screenshots/03-recommended-models.png)

### 4. Install And Load

The install screen keeps consent visible and shows install, download, validate,
and load progress. No model download or runtime install starts silently.

![Install and Load](output/release/v4.6.1/screenshots/04-install-load-progress.png)

### 5. Brain Chat

After setup, the home experience is the living Brain plus conversation. The Brain
stays present while the user types, recalls context, and receives responses.

![Brain Chat Home](output/release/v4.6.1/screenshots/05-brain-chat-home.png)

## Brain Depths

The user travels inward through the Brain. Each depth keeps conversation nearby
while revealing more structure.

| Depth | Experience | Evidence |
| --- | --- | --- |
| Level 1 | Living Brain presence | ![Living Brain Level 1](output/release/v4.6.1/screenshots/06-living-brain-level-1.png) |
| Level 2 | Memory Layer | ![Memory Layer](output/release/v4.6.1/screenshots/07-memory-layer.png) |
| Level 3 | Knowledge Layer | ![Knowledge Layer](output/release/v4.6.1/screenshots/08-knowledge-layer.png) |
| Level 4 | Relationship Layer | ![Relationship Layer](output/release/v4.6.1/screenshots/09-relationship-layer.png) |
| Level 5 | Knowledge Graph with nodes, edges, search, and focus detail | ![Knowledge Graph Layer](output/release/v4.6.1/screenshots/10-knowledge-graph-layer.png) |

Walkthrough:

![v4.6.1 Living Brain walkthrough](output/release/v4.6.1/gifs/v4.6.1-living-brain-walkthrough.gif)

Model setup status evidence:

![Model setup status](output/release/v4.6.1/screenshots/11-model-setup-status.png)

Screenshot index and capture notes:
[output/release/v4.6.1/SCREENSHOT_INDEX.md](output/release/v4.6.1/SCREENSHOT_INDEX.md)

## Architecture At A Glance

- **Desktop shell**: Tauri 2 is the release desktop shell and starts the
  localhost sidecar.
- **Frontend**: React, TypeScript, Vite, TanStack Query, Zustand, Cytoscape.js,
  React Flow, Tailwind/shadcn-style primitives, and generated OpenAPI types.
- **Backend**: FastAPI on localhost is the UI source of truth.
- **Brain Core**: independent `lattice_brain` package for graph, memory,
  context, conversations, ingestion, runtime, workflow, storage, and
  portability. Isolation tests prevent `lattice_brain` from importing
  `latticeai`.
- **Storage**: `StorageEngine` abstraction with SQLite default and optional
  PostgreSQL/pgvector scale mode.
- **Portability**: encrypted `.latticebrain` archives plus backup, restore,
  inspect, verify, import dry-run, and confirmed restore/import flows.
- **Privacy**: local-first and private-first by default. Cloud models, Telegram,
  Brain Network, Docker/Postgres setup, model downloads, and update checks are
  opt-in paths.

See [ARCHITECTURE.md](ARCHITECTURE.md) for the detailed v4.6.1 architecture.

## Installation

Run from Python:

```bash
pip install ltcai
LTCAI
```

Run from npm:

```bash
npm install -g ltcai
ltcai
```

Open the local app:

```text
http://127.0.0.1:4825/app
```

Apple Silicon local model extras:

```bash
pip install "ltcai[local]"
```

## Release Artifacts

Validated v4.6.1 artifacts:

- `dist/ltcai-4.6.1-py3-none-any.whl`
- `dist/ltcai-4.6.1.tar.gz`
- `ltcai-4.6.1.tgz`
- `dist/ltcai-4.6.1.vsix`
- `src-tauri/target/release/bundle/dmg/Lattice AI_4.6.1_aarch64.dmg`

Attach only those exact files to the GitHub Release. Do not upload `dist/*`.

## Local Development

```bash
npm install
npm run dev
```

Build and validate release artifacts:

```bash
npm run release:artifacts
npm run release:validate
```

Main validation set:

```bash
npm run check:python
node scripts/run_python.mjs -m ruff check .
npm run lint
npm run typecheck
npm run test:unit
npm run test:integration
npm run test:visual
npm run desktop:tauri:check
node scripts/run_python.mjs scripts/wheel_smoke.py --wheel dist/ltcai-4.6.1-py3-none-any.whl
npm pack --dry-run
npm run docs:check-links
```

## Known Limitations

- External package registries are owner-published and can lag behind the GitHub
  Release.
- PostgreSQL/pgvector is optional scale mode. SQLite is the default local brain.
- Docker, model downloads, cloud model calls, Telegram, Brain Network, and
  update checks require explicit user action.
- Conversation does not fabricate answers when no model is loaded.
- Agent/workflow simulation without a loaded LLM is deterministic and does not call a model.
  It is labeled as LLM-free/model-free rather than presented as autonomous model
  success.
- Historical artifacts can remain in `dist/`; uploads must use exact v4.6.1
  filenames.

## Release History

| Version | Theme |
| --- | --- |
| 4.6.1 | Living Brain Release Refresh: publishable version bump after v4.6.0 PyPI immutability, refreshed README/screenshots/GIFs, synchronized release docs, and exact v4.6.1 artifacts |
| 4.6.0 | Living Brain Experience: made Brain plus conversation the home product, added an animated living Brain presence, and moved graph exploration to the deepest intentional layer |
| 4.5.1 | Product Reimagining RC: replaced the desktop shell, navigation model, onboarding journey, first-viewport hierarchy, and visual system while preserving capabilities and local-first architecture |
| 4.5.0 | Product Experience Recovery RC: restored first-run setup, workspace/model onboarding, explicit model install/download/validate/load flow, Gemma 4 runtime compatibility gating, Basic-mode polish, and graph discoverability |
| 4.4.0 | Brain Engine Extraction: Brain Core physically moved into `lattice_brain` with isolation tests |
| 4.3.3 | Dead-Code Cleanup Release |
| 4.3.2 | Product Polish & Graph UX Overhaul RC |
| 4.3.1 | End-User Audit Repair RC |
| 4.3.0 | Portability & Product Hardening RC |
| 4.2.0 | Brain Core & Storage Rebuild |
| 4.1.0 | Frontend & Desktop Rebuild |
| 4.0.1 | Digital Brain maintenance |
| 4.0.0 | Digital Brain Platform foundation |
| 3.0.0 | v3 local-first AI workspace platform |

## Current Documentation

- [ARCHITECTURE.md](ARCHITECTURE.md) - v4.6.1 architecture.
- [FEATURE_STATUS.md](FEATURE_STATUS.md) - current feature status and historical
  status ledger.
- [RELEASE_NOTES.md](RELEASE_NOTES.md) - release notes index.
- [RELEASE_NOTES_v4.6.1.md](RELEASE_NOTES_v4.6.1.md) - v4.6.1 release refresh notes.
- [RELEASE_NOTES_v4.6.0.md](RELEASE_NOTES_v4.6.0.md) - v4.6.0 Living Brain history.
- [RELEASE.md](RELEASE.md) - release checklist and exact artifact guidance.
- [SECURITY.md](SECURITY.md) - security posture.
- [docs/CHANGELOG.md](docs/CHANGELOG.md) - changelog.
- [docs/V4_6_1_RELEASE_REFRESH_REPORT.md](docs/V4_6_1_RELEASE_REFRESH_REPORT.md) - v4.6.1 release refresh report.
- [docs/V4_6_0_LIVING_BRAIN_EXPERIENCE_REPORT.md](docs/V4_6_0_LIVING_BRAIN_EXPERIENCE_REPORT.md) - v4.6.0 Living Brain design notes.

## License

MIT. See [LICENSE](LICENSE).
