pyxis-harness-checkpoint-sqlite 0.1.0rc1__tar.gz

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.
@@ -0,0 +1,27 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ build/
6
+ dist/
7
+
8
+ # Environments
9
+ .venv/
10
+ .env
11
+
12
+ # Tooling
13
+ .pytest_cache/
14
+ .coverage
15
+ htmlcov/
16
+ .idea/
17
+ .vscode/
18
+ .DS_Store
19
+
20
+ # Local harness state
21
+ .pyharness/
22
+ *.sqlite
23
+ *.sqlite-*
24
+
25
+ # Claude desktop app
26
+ .claude/
27
+ /manual/*.pdf
@@ -0,0 +1,33 @@
1
+ # pyxis-harness-checkpoint-sqlite
2
+
3
+ SQLite 上的持久化提供者:`ctx.checkpointer` 与 `ctx.store`。
4
+
5
+ | 项 | 值 |
6
+ |---|---|
7
+ | 条目 | `checkpoint`(`base` bundle) |
8
+ | 插件 | `apply`(函数插件) |
9
+ | 注入 | 无 |
10
+
11
+ ## 文件
12
+
13
+ | 文件 | 内容 |
14
+ |---|---|
15
+ | `__init__.py` | 导出 |
16
+ | `plugin.py` | `Config`、`apply` |
17
+
18
+ ## 服务
19
+
20
+ | 服务 | 实现 | 文件 |
21
+ |---|---|---|
22
+ | `ctx.checkpointer` | `AsyncSqliteSaver` | `config.path` |
23
+ | `ctx.store` | `AsyncSqliteStore` | `config.store_path` |
24
+
25
+ ## PostgreSQL 提供者
26
+
27
+ 条目 id 相同:
28
+
29
+ ```yaml
30
+ - id: checkpoint
31
+ name: pyxis-harness-checkpoint-postgres
32
+ config: {dsn: "${env:PYH_POSTGRES_DSN}"}
33
+ ```
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Onenightcarnival
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,56 @@
1
+ Metadata-Version: 2.5
2
+ Name: pyxis-harness-checkpoint-sqlite
3
+ Version: 0.1.0rc1
4
+ Summary: PyxisHarness plugin: SQLite checkpointer and store
5
+ Project-URL: Homepage, https://github.com/Onenightcarnival/pyharness
6
+ Project-URL: Repository, https://github.com/Onenightcarnival/pyharness
7
+ Project-URL: Issues, https://github.com/Onenightcarnival/pyharness/issues
8
+ Project-URL: Documentation, https://github.com/Onenightcarnival/pyharness/tree/main/packages/checkpoint-sqlite
9
+ Author: Onenightcarnival
10
+ License-Expression: MIT
11
+ Keywords: agent,deepagents,harness,langgraph,llm,plugin
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
18
+ Requires-Python: >=3.12
19
+ Requires-Dist: aiosqlite==0.22.1
20
+ Requires-Dist: langgraph-checkpoint-sqlite==3.1.2
21
+ Requires-Dist: pyxis-harness-core==0.1.0rc1
22
+ Description-Content-Type: text/markdown
23
+
24
+ # pyxis-harness-checkpoint-sqlite
25
+
26
+ SQLite 上的持久化提供者:`ctx.checkpointer` 与 `ctx.store`。
27
+
28
+ | 项 | 值 |
29
+ |---|---|
30
+ | 条目 | `checkpoint`(`base` bundle) |
31
+ | 插件 | `apply`(函数插件) |
32
+ | 注入 | 无 |
33
+
34
+ ## 文件
35
+
36
+ | 文件 | 内容 |
37
+ |---|---|
38
+ | `__init__.py` | 导出 |
39
+ | `plugin.py` | `Config`、`apply` |
40
+
41
+ ## 服务
42
+
43
+ | 服务 | 实现 | 文件 |
44
+ |---|---|---|
45
+ | `ctx.checkpointer` | `AsyncSqliteSaver` | `config.path` |
46
+ | `ctx.store` | `AsyncSqliteStore` | `config.store_path` |
47
+
48
+ ## PostgreSQL 提供者
49
+
50
+ 条目 id 相同:
51
+
52
+ ```yaml
53
+ - id: checkpoint
54
+ name: pyxis-harness-checkpoint-postgres
55
+ config: {dsn: "${env:PYH_POSTGRES_DSN}"}
56
+ ```
@@ -0,0 +1,40 @@
1
+ [project]
2
+ name = "pyxis-harness-checkpoint-sqlite"
3
+ version = "0.1.0rc1"
4
+ description = "PyxisHarness plugin: SQLite checkpointer and store"
5
+ license = "MIT"
6
+ requires-python = ">=3.12"
7
+ readme = "AGENTS.md"
8
+ authors = [{ name = "Onenightcarnival" }]
9
+ keywords = ["agent", "llm", "harness", "plugin", "langgraph", "deepagents"]
10
+ classifiers = [
11
+ "Development Status :: 3 - Alpha",
12
+ "Intended Audience :: Developers",
13
+ "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3.12",
15
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
16
+ "Topic :: Software Development :: Libraries :: Application Frameworks",
17
+ ]
18
+ dependencies = ["pyxis-harness-core==0.1.0rc1", "langgraph-checkpoint-sqlite==3.1.2", "aiosqlite==0.22.1"]
19
+
20
+ [project.entry-points."pyxis_harness.plugins"]
21
+ pyxis-harness-checkpoint-sqlite = "pyxis_harness_checkpoint_sqlite"
22
+
23
+ [project.urls]
24
+ Homepage = "https://github.com/Onenightcarnival/pyharness"
25
+ Repository = "https://github.com/Onenightcarnival/pyharness"
26
+ Issues = "https://github.com/Onenightcarnival/pyharness/issues"
27
+ Documentation = "https://github.com/Onenightcarnival/pyharness/tree/main/packages/checkpoint-sqlite"
28
+
29
+ [build-system]
30
+ requires = ["hatchling"]
31
+ build-backend = "hatchling.build"
32
+
33
+ [tool.hatch.build.targets.wheel]
34
+ packages = ["pyxis_harness_checkpoint_sqlite"]
35
+
36
+ [tool.hatch.build.targets.wheel.force-include]
37
+ "AGENTS.md" = "pyxis_harness_checkpoint_sqlite/AGENTS.md"
38
+
39
+ [tool.hatch.build.targets.sdist.force-include]
40
+ "../../LICENSE" = "LICENSE"
@@ -0,0 +1,5 @@
1
+ from __future__ import annotations
2
+
3
+ from .plugin import Config, apply, doc, inject, name
4
+
5
+ __all__ = ["Config", "apply", "doc", "inject", "name"]
@@ -0,0 +1,29 @@
1
+ from __future__ import annotations
2
+
3
+ from pathlib import Path
4
+ from typing import Any
5
+
6
+ from langgraph.checkpoint.sqlite.aio import AsyncSqliteSaver
7
+ from langgraph.store.sqlite.aio import AsyncSqliteStore
8
+ from pydantic import BaseModel, Field
9
+
10
+ name = "pyxis-harness-checkpoint-sqlite"
11
+ doc = "Persistence provider on SQLite: ``ctx.checkpointer`` and ``ctx.store``."
12
+ inject: list[str] = []
13
+
14
+
15
+ class Config(BaseModel):
16
+ path: str = Field("${data_dir}/checkpoints.sqlite", description="LangGraph checkpoints.")
17
+ store_path: str = Field("${data_dir}/store.sqlite", description="LangGraph store: session metadata, agent memory.")
18
+
19
+
20
+ async def apply(ctx: Any, config: Config) -> None:
21
+ for raw in (config.path, config.store_path):
22
+ Path(raw).expanduser().parent.mkdir(parents=True, exist_ok=True)
23
+ saver = await ctx.enter(AsyncSqliteSaver.from_conn_string(str(Path(config.path).expanduser())))
24
+ await saver.setup()
25
+ store = await ctx.enter(AsyncSqliteStore.from_conn_string(str(Path(config.store_path).expanduser())))
26
+ await store.setup()
27
+ ctx.provide("checkpointer", saver)
28
+ ctx.provide("store", store)
29
+ ctx.logger.debug("sqlite persistence at %s / %s", config.path, config.store_path)