pactree 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
pactree/__init__.py ADDED
@@ -0,0 +1,18 @@
1
+ """Pactree Python shim.
2
+
3
+ The real Pactree runtime is being extracted from Egregore. This package is a
4
+ small, import-safe placeholder for the future standalone API.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ from ._version import __version__
10
+ from .context import Context
11
+ from .engine import EngineUnavailableError, engine_available
12
+
13
+ __all__ = [
14
+ "Context",
15
+ "EngineUnavailableError",
16
+ "__version__",
17
+ "engine_available",
18
+ ]
pactree/_version.py ADDED
@@ -0,0 +1,3 @@
1
+ """Package version."""
2
+
3
+ __version__ = "0.0.1"
pactree/context.py ADDED
@@ -0,0 +1,16 @@
1
+ """Context facade placeholder."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any
6
+
7
+ from .engine import EngineUnavailableError
8
+
9
+
10
+ class Context:
11
+ """Placeholder for the Pactree context API."""
12
+
13
+ def __init__(self, *_: Any, **__: Any) -> None:
14
+ raise EngineUnavailableError(
15
+ "pactree 0.0.1 exposes the package namespace; the Pactree engine is not bundled yet"
16
+ )
pactree/engine.py ADDED
@@ -0,0 +1,13 @@
1
+ """Pactree engine availability."""
2
+
3
+ from __future__ import annotations
4
+
5
+
6
+ class EngineUnavailableError(RuntimeError):
7
+ """Raised when an early package release needs the Pactree engine."""
8
+
9
+
10
+ def engine_available() -> bool:
11
+ """Return whether the Pactree engine is bundled with this Python package."""
12
+
13
+ return False
pactree/file.py ADDED
@@ -0,0 +1,25 @@
1
+ """File API placeholder for `.pact` storage."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import Any
6
+
7
+ from .engine import EngineUnavailableError
8
+
9
+
10
+ def _not_wired() -> EngineUnavailableError:
11
+ return EngineUnavailableError(
12
+ "pactree 0.0.1 exposes the package namespace; the Pactree engine is not bundled yet"
13
+ )
14
+
15
+
16
+ def info(*_: Any, **__: Any) -> dict[str, Any]:
17
+ raise _not_wired()
18
+
19
+
20
+ def materialize(*_: Any, **__: Any) -> dict[str, Any]:
21
+ raise _not_wired()
22
+
23
+
24
+ def validate(*_: Any, **__: Any) -> dict[str, Any]:
25
+ raise _not_wired()
pactree/py.typed ADDED
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,42 @@
1
+ Metadata-Version: 2.4
2
+ Name: pactree
3
+ Version: 0.0.1
4
+ Summary: Deterministic context trees for AI agents and applications.
5
+ Project-URL: Homepage, https://github.com/earldennison/egregore-v2
6
+ Project-URL: Repository, https://github.com/earldennison/egregore-v2
7
+ Author: Earl Dennison Tan
8
+ License-Expression: MIT
9
+ Keywords: agent,context,pact,pactree,tree
10
+ Classifier: Development Status :: 2 - Pre-Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+
21
+ # Pactree
22
+
23
+ Pactree is a deterministic context-tree substrate for AI agents and
24
+ applications. It is designed to make context explicit: ordered, queryable,
25
+ branchable, compact on disk, and stable across Python and Rust runtimes.
26
+
27
+ The project centers on the `.pact` file format and a Rust engine for
28
+ context trees, operations, selectors, projections, traces, and rewind/fork
29
+ workflows. The Python package provides the ergonomic host API that applications
30
+ use to build, inspect, and persist those trees.
31
+
32
+ Core goals:
33
+
34
+ - deterministic tree layout for agent context
35
+ - compact content-addressed storage
36
+ - branch, rewind, and what-if workflows
37
+ - provider-facing projections without losing substrate structure
38
+ - a clean Python API backed by a canonical Rust implementation
39
+
40
+ This is an early `0.0.x` release while the standalone package is being split
41
+ out. The public namespace is available now; the Pactree engine binary and Python
42
+ bindings will land in the next extraction releases.
@@ -0,0 +1,9 @@
1
+ pactree/__init__.py,sha256=97XtoI4z3ZMBmfN3qGfN08pMPDofil0rJz701tbHCDk,432
2
+ pactree/_version.py,sha256=XP1F6gZ-vbdP-QabBKGHC0Zs1gYKePp6oqlBkM-HNoY,46
3
+ pactree/context.py,sha256=JuZeUIOOq16HqaafLz3QjF3a2wfFhn_0Bd_8y95Irhk,404
4
+ pactree/engine.py,sha256=eVdLALQTtwCPiUnJkdR2uNRn8OIhUHYIbejXRiGDOu8,323
5
+ pactree/file.py,sha256=OKEpYtPJnKLtajWdRhA2a7i68BcXs4NNSg7IyG-XEys,562
6
+ pactree/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
+ pactree-0.0.1.dist-info/METADATA,sha256=TXWdFaidESDcpd4hbHnWXsuUurXbD6W0kVAwH4ehiUM,1805
8
+ pactree-0.0.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
9
+ pactree-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.29.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any