plan-manager-client-dev 0.2.189__tar.gz → 0.2.190__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.
Files changed (44) hide show
  1. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/PKG-INFO +2 -2
  2. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_plan_hrs_mixin.py +4 -4
  3. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_runtime_mixin/authoring_part.py +32 -5
  4. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_runtime_mixin/facade.py +17 -4
  5. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_runtime_mixin/overlay_part.py +4 -4
  6. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client_dev.egg-info/PKG-INFO +2 -2
  7. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client_dev.egg-info/requires.txt +1 -1
  8. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/pyproject.toml +1 -1
  9. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/__init__.py +0 -0
  10. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/_version.py +0 -0
  11. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/authoring_diagnostics.py +0 -0
  12. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/client.py +0 -0
  13. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/config.py +0 -0
  14. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/delivery/__init__.py +0 -0
  15. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/delivery/archive.py +0 -0
  16. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/delivery/atomicity.py +0 -0
  17. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/delivery/commit.py +0 -0
  18. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/delivery/destination.py +0 -0
  19. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/delivery/provenance.py +0 -0
  20. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/delivery/upload.py +0 -0
  21. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/dispatch.py +0 -0
  22. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/export_fetch_chunks.py +0 -0
  23. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/export_fetch_request.py +0 -0
  24. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/export_fetch_unpack.py +0 -0
  25. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/export_fetch_verify.py +0 -0
  26. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_agent_config_mixin.py +0 -0
  27. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_bug_project_mixin.py +0 -0
  28. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_context_gate_mixin.py +0 -0
  29. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_entity_common_mixin.py +0 -0
  30. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_hrs_file_mixin.py +0 -0
  31. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_runtime_mixin/__init__.py +0 -0
  32. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/facade_step_graph_mixin.py +0 -0
  33. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/id_rule.py +0 -0
  34. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/info_walker.py +0 -0
  35. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/scenario_runtime.py +0 -0
  36. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/server_api.py +0 -0
  37. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client/server_api_mutating.py +0 -0
  38. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client_dev.egg-info/SOURCES.txt +0 -0
  39. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client_dev.egg-info/dependency_links.txt +0 -0
  40. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/plan_manager_client_dev.egg-info/top_level.txt +0 -0
  41. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/setup.cfg +0 -0
  42. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/tests/test_client_server_api_sync.py +0 -0
  43. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/tests/test_dispatch_validation_error_classification.py +0 -0
  44. {plan_manager_client_dev-0.2.189 → plan_manager_client_dev-0.2.190}/tests/test_matrix_check_facade_passthrough.py +0 -0
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plan-manager-client-dev
3
- Version: 0.2.189
3
+ Version: 0.2.190
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.15
7
7
  Provides-Extra: ca
8
- Requires-Dist: code-analysis-client-dev>=1.6.359; extra == "ca"
8
+ Requires-Dist: code-analysis-client-dev>=1.6.368; extra == "ca"
9
9
  Provides-Extra: dev
10
10
  Requires-Dist: pytest>=9; extra == "dev"
@@ -19,15 +19,15 @@ class PlanHrsCommandsMixin:
19
19
  """
20
20
 
21
21
  async def plan_create(self, **params: Any) -> Any:
22
- """Create a new plan aggregate with a unique name."""
22
+ """Create a new plan aggregate with a unique name; the answer carries mrs_id, the id of the empty MRS container created with the plan."""
23
23
  return await self._call("plan_create", params)
24
24
 
25
25
  async def plan_list(self, **params: Any) -> Any:
26
- """List a paginated page of plans in the catalog with their bound projects; soft-deleted plans are hidden unless show_deleted is true."""
26
+ """List a paginated page of plans in the catalog with their bound projects; soft-deleted plans are hidden unless show_deleted is true; every row carries mrs_id."""
27
27
  return await self._call("plan_list", params)
28
28
 
29
29
  async def plan_status(self, **params: Any) -> Any:
30
- """Return the dashboard for one plan: counts, gate, and scoring."""
30
+ """Return the dashboard for one plan: counts, gate, and scoring (plan.mrs_id is the id of its MRS container, never null)."""
31
31
  return await self._call("plan_status", params)
32
32
 
33
33
  async def plan_delete(self, **params: Any) -> Any:
@@ -79,7 +79,7 @@ class PlanHrsCommandsMixin:
79
79
  return await self._call("plan_snapshot", params)
80
80
 
81
81
  async def plan_import(self, **params: Any) -> Any:
82
- """Import a plan from a standard file layout under the configured export root."""
82
+ """Import a plan from a standard file layout under the configured export root; a real import answers mrs_id of the new plan."""
83
83
  return await self._call("plan_import", params)
84
84
 
85
85
  async def export_upload_save(self, **params: Any) -> Any:
@@ -150,11 +150,19 @@ class RuntimeAuthoringPart:
150
150
  step: str,
151
151
  session_id: str,
152
152
  orchestrator_model_id: str | None = None,
153
+ caller_id: str | None = None,
153
154
  ) -> Any:
154
- """Start one session-bound authoring job for the step ``step`` (its id, a uuid4)."""
155
+ """Start one session-bound authoring job for the step ``step`` (its id, a uuid4).
156
+
157
+ An external root start presents ``caller_id``: the id of the plan's model-bearing owner, otherwise the id of the plan's MRS
158
+ (the session model); ``orchestrator_model_id`` is only the per-message sender label. The server refuses a start without
159
+ caller_id (-32602) and a caller that is not the plan's authority (AUTHORING_SCOPE_FORBIDDEN).
160
+ """
155
161
  params = {"plan": plan, "step": step, "session_id": session_id}
156
162
  if orchestrator_model_id is not None:
157
163
  params["orchestrator_model_id"] = orchestrator_model_id
164
+ if caller_id is not None:
165
+ params["caller_id"] = caller_id
158
166
  return await self._call("authoring_job_start", params)
159
167
 
160
168
  async def authoring_job_status(
@@ -177,8 +185,13 @@ class RuntimeAuthoringPart:
177
185
  session_id: str,
178
186
  answer: str,
179
187
  orchestrator_model_id: str | None = None,
188
+ caller_id: str | None = None,
180
189
  ) -> Any:
181
- """Answer and resume the waiting authoring job of the step ``step`` (its id, a uuid4)."""
190
+ """Answer and resume the waiting authoring job of the step ``step`` (its id, a uuid4).
191
+
192
+ An external answer to a root escalation presents ``caller_id``, the CURRENT authority of the plan (the id of its model-bearing
193
+ owner, otherwise the id of its MRS); any other caller is refused AUTHORING_SCOPE_DENIED and the answer is not consumed.
194
+ """
182
195
  params = {
183
196
  "plan": plan,
184
197
  "step": step,
@@ -187,6 +200,8 @@ class RuntimeAuthoringPart:
187
200
  }
188
201
  if orchestrator_model_id is not None:
189
202
  params["orchestrator_model_id"] = orchestrator_model_id
203
+ if caller_id is not None:
204
+ params["caller_id"] = caller_id
190
205
  return await self._call("authoring_job_resume", params)
191
206
 
192
207
  async def authoring_job_stop(self, plan: str, step: str, session_id: str) -> Any:
@@ -227,12 +242,24 @@ class RuntimeAuthoringPart:
227
242
  params.update(unknown)
228
243
  return await self._call("authoring_job_update", params)
229
244
 
230
- async def authoring_job_delete(self, job_id: Any = ABSENT, hard: bool = False, recursive: bool = False, **unknown: Any) -> Any:
245
+ async def authoring_job_delete(
246
+ self,
247
+ job_id: Any = ABSENT,
248
+ hard: bool = False,
249
+ recursive: bool = False,
250
+ caller_id: Any = ABSENT,
251
+ emergency: Any = ABSENT,
252
+ reason: Any = ABSENT,
253
+ **unknown: Any,
254
+ ) -> Any:
231
255
  """Soft-delete (mark) one terminal authoring job; hard=True removes an already marked job (server default: false).
232
256
 
233
- A missing job_id or an unknown field is passed to the server unchanged and refused there with -32602.
257
+ ``caller_id`` is the identity of the one who set the job (the step id of the parent job for a child job; for a root job the id of
258
+ the plan's model-bearing owner, otherwise the id of the plan's MRS); the session model deletes another setter's job only with
259
+ ``emergency=True`` and a ``reason`` (1 to 500 characters). The answer carries ``deleted_by`` (starter | session_model).
260
+ A missing job_id or caller_id, an unknown field or a wrong value is passed to the server unchanged and refused there with -32602.
234
261
  """
235
- params = supplied(job_id=job_id)
262
+ params = supplied(job_id=job_id, caller_id=caller_id, emergency=emergency, reason=reason)
236
263
  if hard:
237
264
  params["hard"] = True
238
265
  if recursive:
@@ -215,9 +215,10 @@ class RuntimeCommandsMixin:
215
215
  step: str,
216
216
  session_id: str,
217
217
  orchestrator_model_id: str | None = None,
218
+ caller_id: str | None = None,
218
219
  ) -> Any:
219
220
  return await self.runtimeAuthoringPart.authoring_job_start(
220
- plan, step, session_id, orchestrator_model_id
221
+ plan, step, session_id, orchestrator_model_id, caller_id
221
222
  )
222
223
 
223
224
  async def authoring_job_status(
@@ -234,9 +235,10 @@ class RuntimeCommandsMixin:
234
235
  session_id: str,
235
236
  answer: str,
236
237
  orchestrator_model_id: str | None = None,
238
+ caller_id: str | None = None,
237
239
  ) -> Any:
238
240
  return await self.runtimeAuthoringPart.authoring_job_resume(
239
- plan, step, session_id, answer, orchestrator_model_id
241
+ plan, step, session_id, answer, orchestrator_model_id, caller_id
240
242
  )
241
243
 
242
244
  async def authoring_job_stop(self, plan: str, step: str, session_id: str) -> Any:
@@ -244,8 +246,19 @@ class RuntimeCommandsMixin:
244
246
  plan, step, session_id
245
247
  )
246
248
 
247
- async def authoring_job_delete(self, job_id: Any = ABSENT, hard: bool = False, recursive: bool = False, **unknown: Any) -> Any:
248
- return await self.runtimeAuthoringPart.authoring_job_delete(job_id, hard=hard, recursive=recursive, **unknown)
249
+ async def authoring_job_delete(
250
+ self,
251
+ job_id: Any = ABSENT,
252
+ hard: bool = False,
253
+ recursive: bool = False,
254
+ caller_id: Any = ABSENT,
255
+ emergency: Any = ABSENT,
256
+ reason: Any = ABSENT,
257
+ **unknown: Any,
258
+ ) -> Any:
259
+ return await self.runtimeAuthoringPart.authoring_job_delete(
260
+ job_id, hard=hard, recursive=recursive, caller_id=caller_id, emergency=emergency, reason=reason, **unknown
261
+ )
249
262
 
250
263
  async def authoring_job_get(self, job_id: Any = ABSENT, **unknown: Any) -> Any:
251
264
  return await self.runtimeAuthoringPart.authoring_job_get(job_id, **unknown)
@@ -21,19 +21,19 @@ class RuntimeOverlayPart:
21
21
  return getattr(self._owner, name)
22
22
 
23
23
  async def todo_create(self, **params: Any) -> Any:
24
- """Create a new TODO work item with a primary anchor."""
24
+ """Create a new TODO work item with a primary anchor. model_binding_id (uuid4 or None) names the live model binding of the TODO; the answer always carries the key."""
25
25
  return await self._call("todo_create", params)
26
26
 
27
27
  async def todo_get(self, **params: Any) -> Any:
28
- """Fetch a single TODO work item by identifier."""
28
+ """Fetch a single TODO work item by identifier (the answer carries model_binding_id, null when it names none)."""
29
29
  return await self._call("todo_get", params)
30
30
 
31
31
  async def todo_list(self, **params: Any) -> Any:
32
- """List TODO work items with uniform filtering and pagination."""
32
+ """List TODO work items with uniform filtering and pagination (every row carries model_binding_id)."""
33
33
  return await self._call("todo_list", params)
34
34
 
35
35
  async def todo_update(self, **params: Any) -> Any:
36
- """Update mutable fields of an existing TODO work item."""
36
+ """Update mutable fields of an existing TODO work item. model_binding_id: omit = unchanged, a uuid4 sets it, None clears it (sent as null)."""
37
37
  return await self._call("todo_update", params)
38
38
 
39
39
  async def todo_reanchor(self, **params: Any) -> Any:
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plan-manager-client-dev
3
- Version: 0.2.189
3
+ Version: 0.2.190
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.15
7
7
  Provides-Extra: ca
8
- Requires-Dist: code-analysis-client-dev>=1.6.359; extra == "ca"
8
+ Requires-Dist: code-analysis-client-dev>=1.6.368; extra == "ca"
9
9
  Provides-Extra: dev
10
10
  Requires-Dist: pytest>=9; extra == "dev"
@@ -1,7 +1,7 @@
1
1
  mcp-proxy-adapter==8.11.15
2
2
 
3
3
  [ca]
4
- code-analysis-client-dev>=1.6.359
4
+ code-analysis-client-dev>=1.6.368
5
5
 
6
6
  [dev]
7
7
  pytest>=9
@@ -13,7 +13,7 @@ dependencies = [
13
13
 
14
14
  [project.optional-dependencies]
15
15
  ca = [
16
- "code-analysis-client-dev>=1.6.359",
16
+ "code-analysis-client-dev>=1.6.368",
17
17
  ]
18
18
  dev = [
19
19
  "pytest>=9",