plan-manager-client 0.2.136__tar.gz → 0.2.138__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.
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/PKG-INFO +1 -1
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_context_gate_mixin.py +16 -20
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_hrs_file_mixin.py +17 -6
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_plan_hrs_mixin.py +6 -6
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_step_graph_mixin.py +1 -1
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/server_api.py +3 -4
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/server_api_mutating.py +1 -3
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client.egg-info/PKG-INFO +1 -1
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/__init__.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/_version.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/authoring_diagnostics.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/client.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/config.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/__init__.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/archive.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/atomicity.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/commit.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/destination.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/provenance.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/upload.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/dispatch.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/export_fetch_chunks.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/export_fetch_request.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/export_fetch_unpack.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/export_fetch_verify.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_agent_config_mixin.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_bug_project_mixin.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_entity_common_mixin.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/facade_runtime_mixin.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/info_walker.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/scenario_runtime.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client.egg-info/SOURCES.txt +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client.egg-info/dependency_links.txt +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client.egg-info/requires.txt +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client.egg-info/top_level.txt +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/pyproject.toml +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/setup.cfg +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/tests/test_client_server_api_sync.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/tests/test_contract_facade_passthrough.py +0 -0
- {plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/tests/test_dispatch_validation_error_classification.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plan-manager-client
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.138
|
|
4
4
|
Summary: First-class client library for the plan_manager JSON-RPC API: full command-surface facade plus export delivery module boundary.
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: mcp-proxy-adapter==8.11.3
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""Context/prompt and gate/
|
|
1
|
+
"""Context/prompt and gate/version/misc command-family facade mixin.
|
|
2
2
|
|
|
3
3
|
Author: Vasiliy Zdanovskiy
|
|
4
4
|
email: vasilyvz@gmail.com
|
|
@@ -11,7 +11,7 @@ from typing import Any
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class ContextGateCommandsMixin:
|
|
14
|
-
"""One method per plan_manager command in the context/prompt and gate/
|
|
14
|
+
"""One method per plan_manager command in the context/prompt and gate/version/misc family.
|
|
15
15
|
|
|
16
16
|
Assumes it is mixed into a class that also inherits
|
|
17
17
|
plan_manager_client.dispatch._CommandDispatchMixin, which supplies the
|
|
@@ -162,7 +162,7 @@ class ContextGateCommandsMixin:
|
|
|
162
162
|
return await self._call("plan_validate", params)
|
|
163
163
|
|
|
164
164
|
async def prompt_validate(self, **params: Any) -> Any:
|
|
165
|
-
"""Run the deterministic prompt contour (
|
|
165
|
+
"""Run the deterministic prompt contour (16 prompt_integrity checks: 15 engine checks and the plan contract check) over a plan or one branch."""
|
|
166
166
|
return await self._call("prompt_validate", params)
|
|
167
167
|
|
|
168
168
|
async def run_all_checks(self, **params: Any) -> Any:
|
|
@@ -173,28 +173,24 @@ class ContextGateCommandsMixin:
|
|
|
173
173
|
"""Run the semantic scoring layer over a plan or one branch and return index, trust, and color."""
|
|
174
174
|
return await self._call("plan_score", params)
|
|
175
175
|
|
|
176
|
-
async def
|
|
177
|
-
"""
|
|
178
|
-
return await self._call("
|
|
179
|
-
|
|
180
|
-
async def cascade_preview(self, **params: Any) -> Any:
|
|
181
|
-
"""Report a plan's open cascade: gate verdict plus compact summary counts by default (view="summary"); pass view="full" (with optional limit/offset/category/check_id/entity_type/step/status) for the paginated change-set/needs_review/gate-findings detail page."""
|
|
182
|
-
return await self._call("cascade_preview", params)
|
|
176
|
+
async def plan_unfreeze(self, **params: Any) -> Any:
|
|
177
|
+
"""Reopen the frozen steps of a plan (or of one branch: a step, its descendants and its ancestors) as drafts; audited, one plan version, no cascade."""
|
|
178
|
+
return await self._call("plan_unfreeze", params)
|
|
183
179
|
|
|
184
|
-
async def
|
|
185
|
-
"""
|
|
186
|
-
return await self._call("
|
|
180
|
+
async def plan_version_list(self, **params: Any) -> Any:
|
|
181
|
+
"""List the versions of a plan (the database version history), newest first."""
|
|
182
|
+
return await self._call("plan_version_list", params)
|
|
187
183
|
|
|
188
|
-
async def
|
|
189
|
-
"""
|
|
190
|
-
return await self._call("
|
|
184
|
+
async def plan_version_diff(self, **params: Any) -> Any:
|
|
185
|
+
"""Compare two versions of a plan chosen by date: added, removed and changed records."""
|
|
186
|
+
return await self._call("plan_version_diff", params)
|
|
191
187
|
|
|
192
|
-
async def
|
|
193
|
-
"""
|
|
194
|
-
return await self._call("
|
|
188
|
+
async def plan_rollback(self, **params: Any) -> Any:
|
|
189
|
+
"""Return a plan to its state at a date: the version with the greatest creation date not later than it."""
|
|
190
|
+
return await self._call("plan_rollback", params)
|
|
195
191
|
|
|
196
192
|
async def srt_snapshot_create(self, **params: Any) -> Any:
|
|
197
|
-
"""Create a semantic tree snapshot: the sole write operation of the SRT command surface. Snapshots the
|
|
193
|
+
"""Create a semantic tree snapshot: the sole write operation of the SRT command surface. Snapshots the plan head."""
|
|
198
194
|
return await self._call("srt_snapshot_create", params)
|
|
199
195
|
|
|
200
196
|
async def srt_snapshot_list(self, **params: Any) -> Any:
|
|
@@ -35,6 +35,18 @@ def _require_uploadable_file(path: str) -> None:
|
|
|
35
35
|
raise ValueError(f"file is empty: {path}")
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
def _reply_payload(reply: Any) -> Any:
|
|
39
|
+
"""Return the command outcome ({success, data|error}) of a reply.
|
|
40
|
+
|
|
41
|
+
The client's _call returns the queued-command job envelope
|
|
42
|
+
{job_id, command, result: {success, data}, status}; a bare outcome is
|
|
43
|
+
returned unchanged.
|
|
44
|
+
"""
|
|
45
|
+
if isinstance(reply, dict) and isinstance(reply.get("result"), dict) and "success" in reply["result"]:
|
|
46
|
+
return reply["result"]
|
|
47
|
+
return reply
|
|
48
|
+
|
|
49
|
+
|
|
38
50
|
class HrsFileCommandsMixin:
|
|
39
51
|
"""Client-side wrappers that move a local file through the server transfer path.
|
|
40
52
|
|
|
@@ -49,7 +61,6 @@ class HrsFileCommandsMixin:
|
|
|
49
61
|
path: str,
|
|
50
62
|
*,
|
|
51
63
|
dry_run: bool = True,
|
|
52
|
-
cascade_uuid: str | None = None,
|
|
53
64
|
convert: bool = False,
|
|
54
65
|
filename: str | None = None,
|
|
55
66
|
compression: str = "identity",
|
|
@@ -79,17 +90,17 @@ class HrsFileCommandsMixin:
|
|
|
79
90
|
"export_upload_save",
|
|
80
91
|
{"transfer_id": receipt.transfer_id, "filename": filename},
|
|
81
92
|
)
|
|
82
|
-
|
|
93
|
+
payload = _reply_payload(saved)
|
|
94
|
+
if isinstance(payload, dict) and payload.get("success") is False:
|
|
83
95
|
return saved
|
|
84
|
-
if
|
|
96
|
+
body = payload.get("data") if isinstance(payload.get("data"), dict) else payload
|
|
97
|
+
if body.get("sha256") != receipt.checksum_value:
|
|
85
98
|
raise ValueError(
|
|
86
99
|
f"uploaded file checksum mismatch for {filename}: "
|
|
87
|
-
f"expected {receipt.checksum_value}, saved {
|
|
100
|
+
f"expected {receipt.checksum_value}, saved {body.get('sha256')}"
|
|
88
101
|
)
|
|
89
102
|
|
|
90
103
|
params: dict[str, Any] = {"plan": plan, "source": filename, "dry_run": dry_run}
|
|
91
|
-
if cascade_uuid is not None:
|
|
92
|
-
params["cascade_uuid"] = cascade_uuid
|
|
93
104
|
if convert:
|
|
94
105
|
params["convert"] = True
|
|
95
106
|
return await self._call("hrs_import", params)
|
|
@@ -163,15 +163,15 @@ class PlanHrsCommandsMixin:
|
|
|
163
163
|
return await self._call("concept_list", params)
|
|
164
164
|
|
|
165
165
|
async def concept_add(self, **params: Any) -> Any:
|
|
166
|
-
"""Add a new concept to the plan MRS
|
|
166
|
+
"""Add a new concept to the plan MRS."""
|
|
167
167
|
return await self._call("concept_add", params)
|
|
168
168
|
|
|
169
169
|
async def concept_update(self, **params: Any) -> Any:
|
|
170
|
-
"""Update fields of an existing concept
|
|
170
|
+
"""Update fields of an existing concept."""
|
|
171
171
|
return await self._call("concept_update", params)
|
|
172
172
|
|
|
173
173
|
async def concept_remove(self, **params: Any) -> Any:
|
|
174
|
-
"""Remove an existing concept from the plan MRS
|
|
174
|
+
"""Remove an existing concept from the plan MRS."""
|
|
175
175
|
return await self._call("concept_remove", params)
|
|
176
176
|
|
|
177
177
|
async def relation_list(self, **params: Any) -> Any:
|
|
@@ -183,15 +183,15 @@ class PlanHrsCommandsMixin:
|
|
|
183
183
|
return await self._call("relation_get", params)
|
|
184
184
|
|
|
185
185
|
async def relation_add(self, **params: Any) -> Any:
|
|
186
|
-
"""Add a new relation between two concepts
|
|
186
|
+
"""Add a new relation between two concepts."""
|
|
187
187
|
return await self._call("relation_add", params)
|
|
188
188
|
|
|
189
189
|
async def relation_update(self, **params: Any) -> Any:
|
|
190
|
-
"""Update the type of an existing relation between two concepts
|
|
190
|
+
"""Update the type of an existing relation between two concepts."""
|
|
191
191
|
return await self._call("relation_update", params)
|
|
192
192
|
|
|
193
193
|
async def relation_remove(self, **params: Any) -> Any:
|
|
194
|
-
"""Remove an existing relation between two concepts
|
|
194
|
+
"""Remove an existing relation between two concepts."""
|
|
195
195
|
return await self._call("relation_remove", params)
|
|
196
196
|
|
|
197
197
|
async def concept_coverage(self, **params: Any) -> Any:
|
|
@@ -43,7 +43,7 @@ class StepGraphCommandsMixin:
|
|
|
43
43
|
return await self._call("step_delete", params)
|
|
44
44
|
|
|
45
45
|
async def step_set_status(self, **params: Any) -> Any:
|
|
46
|
-
"""Transition a step's status, refusing illegal and
|
|
46
|
+
"""Transition a step's status, refusing illegal transitions and the edit of a frozen step."""
|
|
47
47
|
return await self._call("step_set_status", params)
|
|
48
48
|
|
|
49
49
|
async def step_transition(self, **params: Any) -> Any:
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/server_api.py
RENAMED
|
@@ -119,11 +119,10 @@ COMMAND_NAMES: frozenset[str] = frozenset(
|
|
|
119
119
|
"prompt_validate",
|
|
120
120
|
"run_all_checks",
|
|
121
121
|
"plan_score",
|
|
122
|
-
"cascade_begin",
|
|
123
|
-
"cascade_preview",
|
|
124
|
-
"cascade_commit",
|
|
125
|
-
"cascade_abort",
|
|
126
122
|
"plan_unfreeze",
|
|
123
|
+
"plan_version_list",
|
|
124
|
+
"plan_version_diff",
|
|
125
|
+
"plan_rollback",
|
|
127
126
|
"srt_snapshot_create",
|
|
128
127
|
"srt_snapshot_list",
|
|
129
128
|
"srt_diff",
|
|
@@ -52,10 +52,8 @@ MUTATING_COMMAND_NAMES: frozenset[str] = frozenset(
|
|
|
52
52
|
"execution_dependency_apply",
|
|
53
53
|
"namespace_rename_apply",
|
|
54
54
|
"block_rebuild",
|
|
55
|
-
"cascade_begin",
|
|
56
|
-
"cascade_commit",
|
|
57
|
-
"cascade_abort",
|
|
58
55
|
"plan_unfreeze",
|
|
56
|
+
"plan_rollback",
|
|
59
57
|
"bug_reanchor",
|
|
60
58
|
"todo_reanchor",
|
|
61
59
|
"wish_create",
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plan-manager-client
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.138
|
|
4
4
|
Summary: First-class client library for the plan_manager JSON-RPC API: full command-surface facade plus export delivery module boundary.
|
|
5
5
|
Requires-Python: >=3.12
|
|
6
6
|
Requires-Dist: mcp-proxy-adapter==8.11.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/__init__.py
RENAMED
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/archive.py
RENAMED
|
File without changes
|
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/commit.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/delivery/upload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/info_walker.py
RENAMED
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client/scenario_runtime.py
RENAMED
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/plan_manager_client.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{plan_manager_client-0.2.136 → plan_manager_client-0.2.138}/tests/test_client_server_api_sync.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|