pyxis-harness-checkpoint-memory 0.1.1.dev6__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,34 @@
1
+ # pyxis-harness-checkpoint-memory
2
+
3
+ 进程内存中的持久化提供者,供临时会话使用:`ctx.temporary`。
4
+
5
+ | 项 | 值 |
6
+ |---|---|
7
+ | 条目 | `checkpoint-temporary`(`base` bundle) |
8
+ | 插件 | `apply`(函数插件) |
9
+ | 注入 | 无 |
10
+
11
+ ## 文件
12
+
13
+ | 文件 | 内容 |
14
+ |---|---|
15
+ | `__init__.py` | 导出 |
16
+ | `plugin.py` | `Config`、`Temporary`、`apply` |
17
+
18
+ ## 服务
19
+
20
+ | 服务 | 实现 |
21
+ |---|---|
22
+ | `ctx.temporary.checkpointer` | `InMemorySaver` |
23
+ | `ctx.temporary.store` | `InMemoryStore` |
24
+
25
+ ## 契约
26
+
27
+ | 项 | 契约 |
28
+ |---|---|
29
+ | `ctx.temporary` | 一对 `checkpointer` 与 `store`,与 `ctx.checkpointer`、`ctx.store` 同形 |
30
+ | 使用者 | `ctx.agents`、`ctx.agentLoop`:临时会话的 thread 与记录 |
31
+ | 落盘 | 无 |
32
+ | 进程结束、重启换代 | 内容清空 |
33
+ | 多副本 | 不适用:各进程各有一份 |
34
+ | 替换 | 另一个提供者经 patch 替换本条目,提供同一个服务 |
@@ -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-memory
3
+ Version: 0.1.1.dev6
4
+ Summary: PyxisHarness plugin: in-memory checkpointer and store for temporary sessions
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-memory
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: langgraph-checkpoint==4.3.1
20
+ Requires-Dist: pyxis-harness-core==0.1.1.dev6
21
+ Description-Content-Type: text/markdown
22
+
23
+ # pyxis-harness-checkpoint-memory
24
+
25
+ 进程内存中的持久化提供者,供临时会话使用:`ctx.temporary`。
26
+
27
+ | 项 | 值 |
28
+ |---|---|
29
+ | 条目 | `checkpoint-temporary`(`base` bundle) |
30
+ | 插件 | `apply`(函数插件) |
31
+ | 注入 | 无 |
32
+
33
+ ## 文件
34
+
35
+ | 文件 | 内容 |
36
+ |---|---|
37
+ | `__init__.py` | 导出 |
38
+ | `plugin.py` | `Config`、`Temporary`、`apply` |
39
+
40
+ ## 服务
41
+
42
+ | 服务 | 实现 |
43
+ |---|---|
44
+ | `ctx.temporary.checkpointer` | `InMemorySaver` |
45
+ | `ctx.temporary.store` | `InMemoryStore` |
46
+
47
+ ## 契约
48
+
49
+ | 项 | 契约 |
50
+ |---|---|
51
+ | `ctx.temporary` | 一对 `checkpointer` 与 `store`,与 `ctx.checkpointer`、`ctx.store` 同形 |
52
+ | 使用者 | `ctx.agents`、`ctx.agentLoop`:临时会话的 thread 与记录 |
53
+ | 落盘 | 无 |
54
+ | 进程结束、重启换代 | 内容清空 |
55
+ | 多副本 | 不适用:各进程各有一份 |
56
+ | 替换 | 另一个提供者经 patch 替换本条目,提供同一个服务 |
@@ -0,0 +1,40 @@
1
+ [project]
2
+ name = "pyxis-harness-checkpoint-memory"
3
+ version = "0.1.1.dev6"
4
+ description = "PyxisHarness plugin: in-memory checkpointer and store for temporary sessions"
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.1.dev6", "langgraph-checkpoint==4.3.1"]
19
+
20
+ [project.entry-points."pyxis_harness.plugins"]
21
+ pyxis-harness-checkpoint-memory = "pyxis_harness_checkpoint_memory"
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-memory"
28
+
29
+ [build-system]
30
+ requires = ["hatchling"]
31
+ build-backend = "hatchling.build"
32
+
33
+ [tool.hatch.build.targets.wheel]
34
+ packages = ["pyxis_harness_checkpoint_memory"]
35
+
36
+ [tool.hatch.build.targets.wheel.force-include]
37
+ "AGENTS.md" = "pyxis_harness_checkpoint_memory/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, Temporary, apply, doc, inject, name
4
+
5
+ __all__ = ["Config", "Temporary", "apply", "doc", "inject", "name"]
@@ -0,0 +1,28 @@
1
+ from __future__ import annotations
2
+
3
+ from dataclasses import dataclass
4
+ from typing import Any
5
+
6
+ from langgraph.checkpoint.memory import InMemorySaver
7
+ from langgraph.store.memory import InMemoryStore
8
+ from pydantic import BaseModel
9
+
10
+ name = "pyxis-harness-checkpoint-memory"
11
+ doc = "Persistence provider in process memory, for temporary sessions: ``ctx.temporary``."
12
+ inject: list[str] = []
13
+
14
+
15
+ class Config(BaseModel):
16
+ pass
17
+
18
+
19
+ @dataclass(frozen=True)
20
+ class Temporary:
21
+ """Persistence of temporary sessions: the pair a durable provider gives as ``checkpointer`` and ``store``."""
22
+
23
+ checkpointer: Any
24
+ store: Any
25
+
26
+
27
+ def apply(ctx: Any, config: Config) -> None:
28
+ ctx.provide("temporary", Temporary(InMemorySaver(), InMemoryStore()))